@adaptware/eagles-db 0.5.65 → 0.5.68
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 +85 -6
- package/client/index-browser.js +80 -1
- package/client/index.d.ts +5405 -225
- package/client/index.js +85 -6
- package/client/package.json +1 -1
- package/client/schema.prisma +116 -0
- package/client/wasm.js +85 -6
- package/package.json +1 -1
- package/prisma/schema/integration.prisma +1 -0
- package/prisma/schema/migrations/20260522120000_ongoing_evaluation_record_kind/migration.sql +25 -0
- package/prisma/schema/migrations/20260523120000_replace_record_kind_with_is_committed/migration.sql +24 -0
- package/prisma/schema/migrations/20260528120000_drop_job_description_recommendation_config/migration.sql +2 -0
- package/prisma/schema/migrations/20260710120000_add_resume_rendered_export_fields/migration.sql +9 -0
- package/prisma/schema/migrations/20260714120000_add_job_description_display_html_document/migration.sql +8 -0
- package/prisma/schema/migrations/20260716120000_add_offer_letters/migration.sql +183 -0
- package/prisma/schema/migrations/20260716140000_offer_schema_refinements/migration.sql +13 -0
- package/prisma/schema/migrations/20260716160000_offer_schema_hardening/migration.sql +95 -0
- package/prisma/schema/migrations/20260716180000_offer_letter_template_config/migration.sql +2 -0
- package/prisma/schema/migrations/20260716190000_add_evaluation_focus_areas/migration.sql +6 -0
- package/prisma/schema/migrations/20260717120000_offer_workflow_approval/migration.sql +30 -0
- package/prisma/schema/migrations/20260720120000_offer_letter_template_is_draft/migration.sql +5 -0
- package/prisma/schema/migrations/20260720140000_offer_status_split/migration.sql +51 -0
- package/prisma/schema/migrations/20260720140001_offer_status_split_backfill/migration.sql +37 -0
- package/prisma/schema/migrations/20260722120000_offer_draft_edited_html/migration.sql +13 -0
- package/prisma/schema/migrations/20260723150000_offer_withdraw_actor_no_show_reason/migration.sql +10 -0
- package/prisma/schema/migrations/20260724120000_open_job_offer_accepted_declined_counts/migration.sql +7 -0
- package/prisma/schema/migrations/20260811120000_add_integration_provider_razorpay/migration.sql +6 -0
- package/prisma/schema/migrations/20260812120000_add_billing_transactions/migration.sql +49 -0
- package/prisma/schema/migrations/20260812130000_drop_billing_transaction_gst_snapshots/migration.sql +3 -0
- package/prisma/schema/migrations/20260812180000_billing_transaction_invoice_number/migration.sql +5 -0
- package/prisma/schema/migrations/20260813120000_payment_webhooks_gst_refunds/migration.sql +79 -0
- package/prisma/schema/migrations/20260813140000_platform_gst_profiles/migration.sql +49 -0
- package/prisma/schema/migrations/20260813150000_rename_gst_profiles/migration.sql +53 -0
- package/prisma/schema/migrations/20260813160000_remove_gst_billing/migration.sql +16 -0
- package/prisma/schema/migrations/20260813170000_billing_licensing_unrecoverable/migration.sql +2 -0
- package/prisma/schema/migrations/20260813180000_billing_transaction_payment_method/migration.sql +2 -0
- package/prisma/schema/migrations/20260814090000_billing_transaction_purchaser_email/migration.sql +2 -0
- package/prisma/schema/migrations/20260816100000_billing_product_organisations/migration.sql +35 -0
- package/prisma/schema/migrations/20260816120000_merge_billing_product_organisations/migration.sql +25 -0
- package/prisma/schema/migrations/20260817120000_billing_payment_mismatch/migration.sql +7 -0
- package/prisma/schema/migrations/20260819120000_billing_product_prices/migration.sql +62 -0
- package/prisma/schema/migrations/20260819140000_billing_exchange_rates/migration.sql +25 -0
- package/prisma/schema/migrations/20260820120000_billing_transaction_failure_category/migration.sql +31 -0
- package/prisma/schema/migrations/20260820130000_backfill_billing_transaction_failure_details/migration.sql +23 -0
- package/prisma/schema/migrations/20260820140000_drop_billing_product_price_overrides/migration.sql +2 -0
- package/prisma/schema/migrations/20260821120000_drop_billing_product_and_mock_licensing/migration.sql +38 -0
- package/prisma/schema/migrations/20260824120000_billing_transaction_purchase_display_name/migration.sql +2 -0
- package/prisma/schema/migrations/20260831120000_user_communication_email/migration.sql +6 -0
- package/prisma/schema/migrations/20260901143000_assessment_question_bank_state/migration.sql +15 -0
- package/prisma/schema/migrations/20260902120000_question_category_two_values/migration.sql +16 -0
- package/prisma/schema/migrations/20260902143000_question_bank_item_key/migration.sql +17 -0
- package/prisma/schema/migrations/20260903120000_split_round_type_assessment/migration.sql +9 -0
- package/prisma/schema/migrations/20260904110000_restore_round_type_assessment_enum/migration.sql +5 -0
- package/prisma/schema/migrations/20260904120000_revert_wrong_split_assessment_round_types/migration.sql +42 -0
- package/prisma/schema/migrations/20260909140000_profile_interview_session/migration.sql +99 -0
- package/prisma/schema/migrations/20260911120000_unify_profile_interview_into_interview/migration.sql +139 -0
- package/prisma/schema/organisation.prisma +2 -0
- package/prisma/schema/payment/billingTransaction.prisma +83 -0
- package/prisma/schema/payment/paymentWebhookEvent.prisma +28 -0
- package/prisma/.DS_Store +0 -0
- package/prisma/schema/.DS_Store +0 -0
- package/prisma/schema/migrations/.DS_Store +0 -0
- package/prisma/schema/migrations/20260826160000_add_application_fit_check_report_document/.DS_Store +0 -0
package/client/package.json
CHANGED
package/client/schema.prisma
CHANGED
|
@@ -1843,6 +1843,7 @@ enum IntegrationProvider {
|
|
|
1843
1843
|
MICROSOFT
|
|
1844
1844
|
ZOOM
|
|
1845
1845
|
CALENDLY
|
|
1846
|
+
RAZORPAY
|
|
1846
1847
|
|
|
1847
1848
|
@@schema("public")
|
|
1848
1849
|
}
|
|
@@ -3609,6 +3610,8 @@ model Organisation {
|
|
|
3609
3610
|
licensing_ledger_entries LicensingLedgerEntry[]
|
|
3610
3611
|
license_package_organisations LicensePackageOrganisation[]
|
|
3611
3612
|
ai_cost_ledger_entries AiCostLedgerEntry[]
|
|
3613
|
+
billing_transactions BillingTransaction[]
|
|
3614
|
+
payment_webhook_events PaymentWebhookEvent[]
|
|
3612
3615
|
|
|
3613
3616
|
@@index([name])
|
|
3614
3617
|
@@schema("public")
|
|
@@ -3628,6 +3631,119 @@ model OrganisationConfig {
|
|
|
3628
3631
|
@@schema("public")
|
|
3629
3632
|
}
|
|
3630
3633
|
|
|
3634
|
+
// PAYMENT SERVICE boundary — portable payment microservice owns these enums/columns.
|
|
3635
|
+
|
|
3636
|
+
enum BillingTransactionStatus {
|
|
3637
|
+
INITIATED
|
|
3638
|
+
ORDER_CREATED
|
|
3639
|
+
PAYMENT_PENDING
|
|
3640
|
+
SUCCESS
|
|
3641
|
+
FAILED
|
|
3642
|
+
CANCELLED
|
|
3643
|
+
REFUND_PENDING
|
|
3644
|
+
REFUND_FAILED
|
|
3645
|
+
REFUNDED
|
|
3646
|
+
|
|
3647
|
+
@@schema("public")
|
|
3648
|
+
}
|
|
3649
|
+
|
|
3650
|
+
enum BillingTransactionType {
|
|
3651
|
+
PURCHASE
|
|
3652
|
+
TOP_UP
|
|
3653
|
+
REFUND
|
|
3654
|
+
|
|
3655
|
+
@@schema("public")
|
|
3656
|
+
}
|
|
3657
|
+
|
|
3658
|
+
enum BillingTransactionFailureCategory {
|
|
3659
|
+
RAZORPAY_ORDER
|
|
3660
|
+
RAZORPAY_PAYMENT
|
|
3661
|
+
REFUND
|
|
3662
|
+
INTERNAL
|
|
3663
|
+
|
|
3664
|
+
@@schema("public")
|
|
3665
|
+
}
|
|
3666
|
+
|
|
3667
|
+
/// Payment reconciliation state when Treadspace status is FAILED but Razorpay captured payment.
|
|
3668
|
+
enum BillingPaymentMismatchStatus {
|
|
3669
|
+
DETECTED
|
|
3670
|
+
UNFULFILLED
|
|
3671
|
+
|
|
3672
|
+
@@schema("public")
|
|
3673
|
+
}
|
|
3674
|
+
|
|
3675
|
+
/// Financial transaction lifecycle for organisation billing purchases.
|
|
3676
|
+
model BillingTransaction {
|
|
3677
|
+
id String @id @default(uuid())
|
|
3678
|
+
organisation_id String
|
|
3679
|
+
/// Opaque plan/product identity supplied at checkout. Not a catalog FK.
|
|
3680
|
+
purchase_reference String
|
|
3681
|
+
/// Human-readable snapshot captured at checkout for invoices and receipts.
|
|
3682
|
+
purchase_display_name String?
|
|
3683
|
+
transaction_type BillingTransactionType
|
|
3684
|
+
status BillingTransactionStatus @default(INITIATED)
|
|
3685
|
+
failure_category BillingTransactionFailureCategory?
|
|
3686
|
+
/// Human-readable or provider detail (e.g. Razorpay error_description).
|
|
3687
|
+
failure_reason String?
|
|
3688
|
+
amount Int
|
|
3689
|
+
currency String @default("INR")
|
|
3690
|
+
razorpay_order_id String?
|
|
3691
|
+
razorpay_payment_id String? @unique
|
|
3692
|
+
/// Razorpay payment method at capture (card, netbanking, upi, wallet, etc.).
|
|
3693
|
+
payment_method String?
|
|
3694
|
+
razorpay_subscription_id String?
|
|
3695
|
+
razorpay_refund_id String?
|
|
3696
|
+
refund_reason String?
|
|
3697
|
+
refund_amount Int?
|
|
3698
|
+
idempotency_key String @unique
|
|
3699
|
+
invoice_number String? @unique
|
|
3700
|
+
/// Email of the org Admin who initiated checkout (bill-to).
|
|
3701
|
+
purchaser_email String?
|
|
3702
|
+
/// Set when FAILED but Razorpay order/payment is captured (reconciliation path).
|
|
3703
|
+
payment_mismatch_status BillingPaymentMismatchStatus?
|
|
3704
|
+
/// Strict same-intent SUCCESS transaction that fulfilled the purchase (UNFULFILLED only).
|
|
3705
|
+
payment_mismatch_fulfilled_by_id String?
|
|
3706
|
+
created_at DateTime @default(now())
|
|
3707
|
+
updated_at DateTime @updatedAt
|
|
3708
|
+
|
|
3709
|
+
organisation Organisation @relation(fields: [organisation_id], references: [id])
|
|
3710
|
+
|
|
3711
|
+
@@index([organisation_id, status])
|
|
3712
|
+
@@index([purchase_reference])
|
|
3713
|
+
@@index([razorpay_order_id])
|
|
3714
|
+
@@map("billing_transactions")
|
|
3715
|
+
@@schema("public")
|
|
3716
|
+
}
|
|
3717
|
+
|
|
3718
|
+
enum PaymentWebhookEventStatus {
|
|
3719
|
+
RECEIVED
|
|
3720
|
+
PROCESSED
|
|
3721
|
+
FAILED
|
|
3722
|
+
|
|
3723
|
+
@@schema("public")
|
|
3724
|
+
}
|
|
3725
|
+
|
|
3726
|
+
/// Idempotent record of payment provider webhook deliveries.
|
|
3727
|
+
model PaymentWebhookEvent {
|
|
3728
|
+
id String @id @default(uuid())
|
|
3729
|
+
organisation_id String?
|
|
3730
|
+
provider String
|
|
3731
|
+
provider_event_id String
|
|
3732
|
+
event_type String
|
|
3733
|
+
status PaymentWebhookEventStatus @default(RECEIVED)
|
|
3734
|
+
billing_transaction_id String?
|
|
3735
|
+
error_message String?
|
|
3736
|
+
processed_at DateTime?
|
|
3737
|
+
created_at DateTime @default(now())
|
|
3738
|
+
|
|
3739
|
+
organisation Organisation? @relation(fields: [organisation_id], references: [id])
|
|
3740
|
+
|
|
3741
|
+
@@unique([provider, provider_event_id])
|
|
3742
|
+
@@index([status, created_at])
|
|
3743
|
+
@@map("payment_webhook_events")
|
|
3744
|
+
@@schema("public")
|
|
3745
|
+
}
|
|
3746
|
+
|
|
3631
3747
|
model Permission {
|
|
3632
3748
|
id String @id @default(uuid())
|
|
3633
3749
|
permissions String[] @default([])
|