@adaptware/eagles-db 0.5.75 → 0.6.2
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 +88 -7
- package/client/index-browser.js +83 -2
- package/client/index.d.ts +5505 -320
- package/client/index.js +88 -7
- package/client/libquery_engine-darwin.dylib.node +0 -0
- package/client/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/client/package.json +1 -1
- package/client/query_engine-windows.dll.node +0 -0
- package/client/schema.prisma +120 -1
- package/client/wasm.js +88 -7
- package/package.json +1 -1
- package/prisma/schema/competencyDictionary.prisma +22 -20
- package/prisma/schema/fitCheck.prisma +2 -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/migrations/20260922110000_fitcheck_overall_score_optional/migration.sql +2 -0
- package/prisma/schema/migrations/20260929120000_add_competency_category_soft_skills_culture_fit/migration.sql +3 -0
- package/prisma/schema/migrations/20260929120000_add_evaluation_type_in_person/migration.sql +2 -0
- package/prisma/schema/organisation.prisma +2 -0
- package/prisma/schema/payment/billingTransaction.prisma +83 -0
- package/prisma/schema/payment/paymentWebhookEvent.prisma +28 -0
|
Binary file
|
|
Binary file
|
package/client/package.json
CHANGED
|
Binary file
|
package/client/schema.prisma
CHANGED
|
@@ -1203,6 +1203,8 @@ enum CompetencyCategory {
|
|
|
1203
1203
|
AI
|
|
1204
1204
|
/// FitCheck analysis only — not a dictionary / job-profile catalog category.
|
|
1205
1205
|
EXPERIENCE_RELEVANCE
|
|
1206
|
+
SOFT_SKILLS
|
|
1207
|
+
CULTURE_FIT
|
|
1206
1208
|
|
|
1207
1209
|
@@schema("public")
|
|
1208
1210
|
}
|
|
@@ -1716,7 +1718,8 @@ model FitCheck {
|
|
|
1716
1718
|
application_id String? @unique
|
|
1717
1719
|
skills_analysis Json?
|
|
1718
1720
|
overall_analysis Json?
|
|
1719
|
-
|
|
1721
|
+
/// Optional; new FitChecks from Orion omit a numeric score.
|
|
1722
|
+
overall_score Float?
|
|
1720
1723
|
/// Free-text from Overall Analysis agent; preferred over recommendation Json.
|
|
1721
1724
|
overall_recommendation String?
|
|
1722
1725
|
/// Why `overall_score` is this value. Distinct from `overall_recommendation`.
|
|
@@ -1979,6 +1982,7 @@ enum IntegrationProvider {
|
|
|
1979
1982
|
MICROSOFT
|
|
1980
1983
|
ZOOM
|
|
1981
1984
|
CALENDLY
|
|
1985
|
+
RAZORPAY
|
|
1982
1986
|
|
|
1983
1987
|
@@schema("public")
|
|
1984
1988
|
}
|
|
@@ -3748,6 +3752,8 @@ model Organisation {
|
|
|
3748
3752
|
licensing_ledger_entries LicensingLedgerEntry[]
|
|
3749
3753
|
license_package_organisations LicensePackageOrganisation[]
|
|
3750
3754
|
ai_cost_ledger_entries AiCostLedgerEntry[]
|
|
3755
|
+
billing_transactions BillingTransaction[]
|
|
3756
|
+
payment_webhook_events PaymentWebhookEvent[]
|
|
3751
3757
|
|
|
3752
3758
|
@@index([name])
|
|
3753
3759
|
@@schema("public")
|
|
@@ -3767,6 +3773,119 @@ model OrganisationConfig {
|
|
|
3767
3773
|
@@schema("public")
|
|
3768
3774
|
}
|
|
3769
3775
|
|
|
3776
|
+
// PAYMENT SERVICE boundary — portable payment microservice owns these enums/columns.
|
|
3777
|
+
|
|
3778
|
+
enum BillingTransactionStatus {
|
|
3779
|
+
INITIATED
|
|
3780
|
+
ORDER_CREATED
|
|
3781
|
+
PAYMENT_PENDING
|
|
3782
|
+
SUCCESS
|
|
3783
|
+
FAILED
|
|
3784
|
+
CANCELLED
|
|
3785
|
+
REFUND_PENDING
|
|
3786
|
+
REFUND_FAILED
|
|
3787
|
+
REFUNDED
|
|
3788
|
+
|
|
3789
|
+
@@schema("public")
|
|
3790
|
+
}
|
|
3791
|
+
|
|
3792
|
+
enum BillingTransactionType {
|
|
3793
|
+
PURCHASE
|
|
3794
|
+
TOP_UP
|
|
3795
|
+
REFUND
|
|
3796
|
+
|
|
3797
|
+
@@schema("public")
|
|
3798
|
+
}
|
|
3799
|
+
|
|
3800
|
+
enum BillingTransactionFailureCategory {
|
|
3801
|
+
RAZORPAY_ORDER
|
|
3802
|
+
RAZORPAY_PAYMENT
|
|
3803
|
+
REFUND
|
|
3804
|
+
INTERNAL
|
|
3805
|
+
|
|
3806
|
+
@@schema("public")
|
|
3807
|
+
}
|
|
3808
|
+
|
|
3809
|
+
/// Payment reconciliation state when Treadspace status is FAILED but Razorpay captured payment.
|
|
3810
|
+
enum BillingPaymentMismatchStatus {
|
|
3811
|
+
DETECTED
|
|
3812
|
+
UNFULFILLED
|
|
3813
|
+
|
|
3814
|
+
@@schema("public")
|
|
3815
|
+
}
|
|
3816
|
+
|
|
3817
|
+
/// Financial transaction lifecycle for organisation billing purchases.
|
|
3818
|
+
model BillingTransaction {
|
|
3819
|
+
id String @id @default(uuid())
|
|
3820
|
+
organisation_id String
|
|
3821
|
+
/// Opaque plan/product identity supplied at checkout. Not a catalog FK.
|
|
3822
|
+
purchase_reference String
|
|
3823
|
+
/// Human-readable snapshot captured at checkout for invoices and receipts.
|
|
3824
|
+
purchase_display_name String?
|
|
3825
|
+
transaction_type BillingTransactionType
|
|
3826
|
+
status BillingTransactionStatus @default(INITIATED)
|
|
3827
|
+
failure_category BillingTransactionFailureCategory?
|
|
3828
|
+
/// Human-readable or provider detail (e.g. Razorpay error_description).
|
|
3829
|
+
failure_reason String?
|
|
3830
|
+
amount Int
|
|
3831
|
+
currency String @default("INR")
|
|
3832
|
+
razorpay_order_id String?
|
|
3833
|
+
razorpay_payment_id String? @unique
|
|
3834
|
+
/// Razorpay payment method at capture (card, netbanking, upi, wallet, etc.).
|
|
3835
|
+
payment_method String?
|
|
3836
|
+
razorpay_subscription_id String?
|
|
3837
|
+
razorpay_refund_id String?
|
|
3838
|
+
refund_reason String?
|
|
3839
|
+
refund_amount Int?
|
|
3840
|
+
idempotency_key String @unique
|
|
3841
|
+
invoice_number String? @unique
|
|
3842
|
+
/// Email of the org Admin who initiated checkout (bill-to).
|
|
3843
|
+
purchaser_email String?
|
|
3844
|
+
/// Set when FAILED but Razorpay order/payment is captured (reconciliation path).
|
|
3845
|
+
payment_mismatch_status BillingPaymentMismatchStatus?
|
|
3846
|
+
/// Strict same-intent SUCCESS transaction that fulfilled the purchase (UNFULFILLED only).
|
|
3847
|
+
payment_mismatch_fulfilled_by_id String?
|
|
3848
|
+
created_at DateTime @default(now())
|
|
3849
|
+
updated_at DateTime @updatedAt
|
|
3850
|
+
|
|
3851
|
+
organisation Organisation @relation(fields: [organisation_id], references: [id])
|
|
3852
|
+
|
|
3853
|
+
@@index([organisation_id, status])
|
|
3854
|
+
@@index([purchase_reference])
|
|
3855
|
+
@@index([razorpay_order_id])
|
|
3856
|
+
@@map("billing_transactions")
|
|
3857
|
+
@@schema("public")
|
|
3858
|
+
}
|
|
3859
|
+
|
|
3860
|
+
enum PaymentWebhookEventStatus {
|
|
3861
|
+
RECEIVED
|
|
3862
|
+
PROCESSED
|
|
3863
|
+
FAILED
|
|
3864
|
+
|
|
3865
|
+
@@schema("public")
|
|
3866
|
+
}
|
|
3867
|
+
|
|
3868
|
+
/// Idempotent record of payment provider webhook deliveries.
|
|
3869
|
+
model PaymentWebhookEvent {
|
|
3870
|
+
id String @id @default(uuid())
|
|
3871
|
+
organisation_id String?
|
|
3872
|
+
provider String
|
|
3873
|
+
provider_event_id String
|
|
3874
|
+
event_type String
|
|
3875
|
+
status PaymentWebhookEventStatus @default(RECEIVED)
|
|
3876
|
+
billing_transaction_id String?
|
|
3877
|
+
error_message String?
|
|
3878
|
+
processed_at DateTime?
|
|
3879
|
+
created_at DateTime @default(now())
|
|
3880
|
+
|
|
3881
|
+
organisation Organisation? @relation(fields: [organisation_id], references: [id])
|
|
3882
|
+
|
|
3883
|
+
@@unique([provider, provider_event_id])
|
|
3884
|
+
@@index([status, created_at])
|
|
3885
|
+
@@map("payment_webhook_events")
|
|
3886
|
+
@@schema("public")
|
|
3887
|
+
}
|
|
3888
|
+
|
|
3770
3889
|
model Permission {
|
|
3771
3890
|
id String @id @default(uuid())
|
|
3772
3891
|
permissions String[] @default([])
|