@adaptware/eagles-db 0.5.69 → 0.5.71
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 +6 -84
- package/client/index-browser.js +3 -81
- package/client/index.d.ts +227 -5406
- package/client/index.js +6 -84
- package/client/package.json +1 -1
- package/client/schema.prisma +2 -117
- package/client/wasm.js +6 -84
- package/package.json +1 -1
- package/prisma/schema/evaluationPlan.prisma +1 -0
- package/prisma/schema/integration.prisma +0 -1
- package/prisma/schema/interview.prisma +1 -1
- package/prisma/schema/organisation.prisma +0 -2
- 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
|
@@ -1476,6 +1476,7 @@ enum EvaluationType {
|
|
|
1476
1476
|
TREADSPACE_FULL_AI
|
|
1477
1477
|
EXTERNAL_AI_ASSISTED
|
|
1478
1478
|
NON_AI_ASSISTED
|
|
1479
|
+
IN_PERSON
|
|
1479
1480
|
|
|
1480
1481
|
@@schema("public")
|
|
1481
1482
|
}
|
|
@@ -1843,7 +1844,6 @@ enum IntegrationProvider {
|
|
|
1843
1844
|
MICROSOFT
|
|
1844
1845
|
ZOOM
|
|
1845
1846
|
CALENDLY
|
|
1846
|
-
RAZORPAY
|
|
1847
1847
|
|
|
1848
1848
|
@@schema("public")
|
|
1849
1849
|
}
|
|
@@ -2002,7 +2002,7 @@ model Interview {
|
|
|
2002
2002
|
recording_url String?
|
|
2003
2003
|
recording_document_id String? @unique
|
|
2004
2004
|
evaluation_type EvaluationType? @default(TREADSPACE_AI_ASSISTED)
|
|
2005
|
-
is_proctored Boolean @default(
|
|
2005
|
+
is_proctored Boolean @default(false) @map("is_proctored")
|
|
2006
2006
|
ai_assistance_mode AiAssistanceMode? @default(ASSISTED)
|
|
2007
2007
|
interview_status InterviewStatus @default(SCHEDULED)
|
|
2008
2008
|
interview_platform InterviewPlatform @default(TREADSPACE)
|
|
@@ -3610,8 +3610,6 @@ model Organisation {
|
|
|
3610
3610
|
licensing_ledger_entries LicensingLedgerEntry[]
|
|
3611
3611
|
license_package_organisations LicensePackageOrganisation[]
|
|
3612
3612
|
ai_cost_ledger_entries AiCostLedgerEntry[]
|
|
3613
|
-
billing_transactions BillingTransaction[]
|
|
3614
|
-
payment_webhook_events PaymentWebhookEvent[]
|
|
3615
3613
|
|
|
3616
3614
|
@@index([name])
|
|
3617
3615
|
@@schema("public")
|
|
@@ -3631,119 +3629,6 @@ model OrganisationConfig {
|
|
|
3631
3629
|
@@schema("public")
|
|
3632
3630
|
}
|
|
3633
3631
|
|
|
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
|
-
|
|
3747
3632
|
model Permission {
|
|
3748
3633
|
id String @id @default(uuid())
|
|
3749
3634
|
permissions String[] @default([])
|