@adaptware/eagles-db 0.5.53 → 0.5.55
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 +8 -87
- package/client/index-browser.js +2 -80
- package/client/index.d.ts +307 -5406
- package/client/index.js +8 -87
- package/client/package.json +1 -1
- package/client/schema.prisma +6 -116
- package/client/wasm.js +8 -87
- package/package.json +1 -1
- package/prisma/schema/integration.prisma +0 -1
- package/prisma/schema/migrations/20260918120000_add_resume_intake_raw_snapshot/migration.sql +12 -0
- package/prisma/schema/organisation.prisma +0 -2
- package/prisma/schema/resume.prisma +6 -0
- package/prisma/schema/user.prisma +1 -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/migrations/20260909140000_profile_interview_session/migration.sql +0 -99
- package/prisma/schema/migrations/20260911120000_unify_profile_interview_into_interview/migration.sql +0 -139
- 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
|
@@ -1826,7 +1826,6 @@ enum IntegrationProvider {
|
|
|
1826
1826
|
MICROSOFT
|
|
1827
1827
|
ZOOM
|
|
1828
1828
|
CALENDLY
|
|
1829
|
-
RAZORPAY
|
|
1830
1829
|
|
|
1831
1830
|
@@schema("public")
|
|
1832
1831
|
}
|
|
@@ -3578,8 +3577,6 @@ model Organisation {
|
|
|
3578
3577
|
licensing_ledger_entries LicensingLedgerEntry[]
|
|
3579
3578
|
license_package_organisations LicensePackageOrganisation[]
|
|
3580
3579
|
ai_cost_ledger_entries AiCostLedgerEntry[]
|
|
3581
|
-
billing_transactions BillingTransaction[]
|
|
3582
|
-
payment_webhook_events PaymentWebhookEvent[]
|
|
3583
3580
|
|
|
3584
3581
|
@@index([name])
|
|
3585
3582
|
@@schema("public")
|
|
@@ -3599,119 +3596,6 @@ model OrganisationConfig {
|
|
|
3599
3596
|
@@schema("public")
|
|
3600
3597
|
}
|
|
3601
3598
|
|
|
3602
|
-
// PAYMENT SERVICE boundary — portable payment microservice owns these enums/columns.
|
|
3603
|
-
|
|
3604
|
-
enum BillingTransactionStatus {
|
|
3605
|
-
INITIATED
|
|
3606
|
-
ORDER_CREATED
|
|
3607
|
-
PAYMENT_PENDING
|
|
3608
|
-
SUCCESS
|
|
3609
|
-
FAILED
|
|
3610
|
-
CANCELLED
|
|
3611
|
-
REFUND_PENDING
|
|
3612
|
-
REFUND_FAILED
|
|
3613
|
-
REFUNDED
|
|
3614
|
-
|
|
3615
|
-
@@schema("public")
|
|
3616
|
-
}
|
|
3617
|
-
|
|
3618
|
-
enum BillingTransactionType {
|
|
3619
|
-
PURCHASE
|
|
3620
|
-
TOP_UP
|
|
3621
|
-
REFUND
|
|
3622
|
-
|
|
3623
|
-
@@schema("public")
|
|
3624
|
-
}
|
|
3625
|
-
|
|
3626
|
-
enum BillingTransactionFailureCategory {
|
|
3627
|
-
RAZORPAY_ORDER
|
|
3628
|
-
RAZORPAY_PAYMENT
|
|
3629
|
-
REFUND
|
|
3630
|
-
INTERNAL
|
|
3631
|
-
|
|
3632
|
-
@@schema("public")
|
|
3633
|
-
}
|
|
3634
|
-
|
|
3635
|
-
/// Payment reconciliation state when Treadspace status is FAILED but Razorpay captured payment.
|
|
3636
|
-
enum BillingPaymentMismatchStatus {
|
|
3637
|
-
DETECTED
|
|
3638
|
-
UNFULFILLED
|
|
3639
|
-
|
|
3640
|
-
@@schema("public")
|
|
3641
|
-
}
|
|
3642
|
-
|
|
3643
|
-
/// Financial transaction lifecycle for organisation billing purchases.
|
|
3644
|
-
model BillingTransaction {
|
|
3645
|
-
id String @id @default(uuid())
|
|
3646
|
-
organisation_id String
|
|
3647
|
-
/// Opaque plan/product identity supplied at checkout. Not a catalog FK.
|
|
3648
|
-
purchase_reference String
|
|
3649
|
-
/// Human-readable snapshot captured at checkout for invoices and receipts.
|
|
3650
|
-
purchase_display_name String?
|
|
3651
|
-
transaction_type BillingTransactionType
|
|
3652
|
-
status BillingTransactionStatus @default(INITIATED)
|
|
3653
|
-
failure_category BillingTransactionFailureCategory?
|
|
3654
|
-
/// Human-readable or provider detail (e.g. Razorpay error_description).
|
|
3655
|
-
failure_reason String?
|
|
3656
|
-
amount Int
|
|
3657
|
-
currency String @default("INR")
|
|
3658
|
-
razorpay_order_id String?
|
|
3659
|
-
razorpay_payment_id String? @unique
|
|
3660
|
-
/// Razorpay payment method at capture (card, netbanking, upi, wallet, etc.).
|
|
3661
|
-
payment_method String?
|
|
3662
|
-
razorpay_subscription_id String?
|
|
3663
|
-
razorpay_refund_id String?
|
|
3664
|
-
refund_reason String?
|
|
3665
|
-
refund_amount Int?
|
|
3666
|
-
idempotency_key String @unique
|
|
3667
|
-
invoice_number String? @unique
|
|
3668
|
-
/// Email of the org Admin who initiated checkout (bill-to).
|
|
3669
|
-
purchaser_email String?
|
|
3670
|
-
/// Set when FAILED but Razorpay order/payment is captured (reconciliation path).
|
|
3671
|
-
payment_mismatch_status BillingPaymentMismatchStatus?
|
|
3672
|
-
/// Strict same-intent SUCCESS transaction that fulfilled the purchase (UNFULFILLED only).
|
|
3673
|
-
payment_mismatch_fulfilled_by_id String?
|
|
3674
|
-
created_at DateTime @default(now())
|
|
3675
|
-
updated_at DateTime @updatedAt
|
|
3676
|
-
|
|
3677
|
-
organisation Organisation @relation(fields: [organisation_id], references: [id])
|
|
3678
|
-
|
|
3679
|
-
@@index([organisation_id, status])
|
|
3680
|
-
@@index([purchase_reference])
|
|
3681
|
-
@@index([razorpay_order_id])
|
|
3682
|
-
@@map("billing_transactions")
|
|
3683
|
-
@@schema("public")
|
|
3684
|
-
}
|
|
3685
|
-
|
|
3686
|
-
enum PaymentWebhookEventStatus {
|
|
3687
|
-
RECEIVED
|
|
3688
|
-
PROCESSED
|
|
3689
|
-
FAILED
|
|
3690
|
-
|
|
3691
|
-
@@schema("public")
|
|
3692
|
-
}
|
|
3693
|
-
|
|
3694
|
-
/// Idempotent record of payment provider webhook deliveries.
|
|
3695
|
-
model PaymentWebhookEvent {
|
|
3696
|
-
id String @id @default(uuid())
|
|
3697
|
-
organisation_id String?
|
|
3698
|
-
provider String
|
|
3699
|
-
provider_event_id String
|
|
3700
|
-
event_type String
|
|
3701
|
-
status PaymentWebhookEventStatus @default(RECEIVED)
|
|
3702
|
-
billing_transaction_id String?
|
|
3703
|
-
error_message String?
|
|
3704
|
-
processed_at DateTime?
|
|
3705
|
-
created_at DateTime @default(now())
|
|
3706
|
-
|
|
3707
|
-
organisation Organisation? @relation(fields: [organisation_id], references: [id])
|
|
3708
|
-
|
|
3709
|
-
@@unique([provider, provider_event_id])
|
|
3710
|
-
@@index([status, created_at])
|
|
3711
|
-
@@map("payment_webhook_events")
|
|
3712
|
-
@@schema("public")
|
|
3713
|
-
}
|
|
3714
|
-
|
|
3715
3599
|
model Permission {
|
|
3716
3600
|
id String @id @default(uuid())
|
|
3717
3601
|
permissions String[] @default([])
|
|
@@ -4017,6 +3901,12 @@ model Resume {
|
|
|
4017
3901
|
intake_progress Int?
|
|
4018
3902
|
/// Last Orion execution id for the intake/generate workflow, for tracing.
|
|
4019
3903
|
orion_execution_id String?
|
|
3904
|
+
/// Snapshot of the candidate's own words, taken immediately before the
|
|
3905
|
+
/// `GenerateResumeFromIntake` polish overwrites `resume_data`. Makes the
|
|
3906
|
+
/// polish reversible, keeps regeneration idempotent (always polish from raw,
|
|
3907
|
+
/// never from already-polished prose), and is the base for a "what changed"
|
|
3908
|
+
/// diff. Null until the first generate; cleared again on revert.
|
|
3909
|
+
intake_raw_data Json?
|
|
4020
3910
|
|
|
4021
3911
|
/// Raw job description text the candidate pasted to start a tailoring session.
|
|
4022
3912
|
tailoring_jd_text String?
|