@adaptware/eagles-db 0.5.35 → 0.5.37
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 +4 -83
- package/client/index-browser.js +1 -80
- package/client/index.d.ts +225 -5397
- package/client/index.js +4 -83
- package/client/package.json +1 -1
- package/client/schema.prisma +0 -116
- package/client/wasm.js +4 -83
- package/package.json +1 -1
- package/prisma/schema/integration.prisma +0 -1
- package/prisma/schema/organisation.prisma +64 -66
- 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
|
@@ -1837,7 +1837,6 @@ enum IntegrationProvider {
|
|
|
1837
1837
|
MICROSOFT
|
|
1838
1838
|
ZOOM
|
|
1839
1839
|
CALENDLY
|
|
1840
|
-
RAZORPAY
|
|
1841
1840
|
|
|
1842
1841
|
@@schema("public")
|
|
1843
1842
|
}
|
|
@@ -3555,8 +3554,6 @@ model Organisation {
|
|
|
3555
3554
|
hiring_plans HiringPlan[]
|
|
3556
3555
|
employees Employee[]
|
|
3557
3556
|
competency_dictionaries CompetencyDictionary[]
|
|
3558
|
-
billing_transactions BillingTransaction[]
|
|
3559
|
-
payment_webhook_events PaymentWebhookEvent[]
|
|
3560
3557
|
purchased_license_packages PurchasedLicensePackage[]
|
|
3561
3558
|
purchased_hiring_units PurchasedHiringUnit[]
|
|
3562
3559
|
purchased_top_ups PurchasedTopUp[]
|
|
@@ -3582,119 +3579,6 @@ model OrganisationConfig {
|
|
|
3582
3579
|
@@schema("public")
|
|
3583
3580
|
}
|
|
3584
3581
|
|
|
3585
|
-
// PAYMENT SERVICE boundary — portable payment microservice owns these enums/columns.
|
|
3586
|
-
|
|
3587
|
-
enum BillingTransactionStatus {
|
|
3588
|
-
INITIATED
|
|
3589
|
-
ORDER_CREATED
|
|
3590
|
-
PAYMENT_PENDING
|
|
3591
|
-
SUCCESS
|
|
3592
|
-
FAILED
|
|
3593
|
-
CANCELLED
|
|
3594
|
-
REFUND_PENDING
|
|
3595
|
-
REFUND_FAILED
|
|
3596
|
-
REFUNDED
|
|
3597
|
-
|
|
3598
|
-
@@schema("public")
|
|
3599
|
-
}
|
|
3600
|
-
|
|
3601
|
-
enum BillingTransactionType {
|
|
3602
|
-
PURCHASE
|
|
3603
|
-
TOP_UP
|
|
3604
|
-
REFUND
|
|
3605
|
-
|
|
3606
|
-
@@schema("public")
|
|
3607
|
-
}
|
|
3608
|
-
|
|
3609
|
-
enum BillingTransactionFailureCategory {
|
|
3610
|
-
RAZORPAY_ORDER
|
|
3611
|
-
RAZORPAY_PAYMENT
|
|
3612
|
-
REFUND
|
|
3613
|
-
INTERNAL
|
|
3614
|
-
|
|
3615
|
-
@@schema("public")
|
|
3616
|
-
}
|
|
3617
|
-
|
|
3618
|
-
/// Payment reconciliation state when Treadspace status is FAILED but Razorpay captured payment.
|
|
3619
|
-
enum BillingPaymentMismatchStatus {
|
|
3620
|
-
DETECTED
|
|
3621
|
-
UNFULFILLED
|
|
3622
|
-
|
|
3623
|
-
@@schema("public")
|
|
3624
|
-
}
|
|
3625
|
-
|
|
3626
|
-
/// Financial transaction lifecycle for organisation billing purchases.
|
|
3627
|
-
model BillingTransaction {
|
|
3628
|
-
id String @id @default(uuid())
|
|
3629
|
-
organisation_id String
|
|
3630
|
-
/// Opaque plan/product identity supplied at checkout. Not a catalog FK.
|
|
3631
|
-
purchase_reference String
|
|
3632
|
-
/// Human-readable snapshot captured at checkout for invoices and receipts.
|
|
3633
|
-
purchase_display_name String?
|
|
3634
|
-
transaction_type BillingTransactionType
|
|
3635
|
-
status BillingTransactionStatus @default(INITIATED)
|
|
3636
|
-
failure_category BillingTransactionFailureCategory?
|
|
3637
|
-
/// Human-readable or provider detail (e.g. Razorpay error_description).
|
|
3638
|
-
failure_reason String?
|
|
3639
|
-
amount Int
|
|
3640
|
-
currency String @default("INR")
|
|
3641
|
-
razorpay_order_id String?
|
|
3642
|
-
razorpay_payment_id String? @unique
|
|
3643
|
-
/// Razorpay payment method at capture (card, netbanking, upi, wallet, etc.).
|
|
3644
|
-
payment_method String?
|
|
3645
|
-
razorpay_subscription_id String?
|
|
3646
|
-
razorpay_refund_id String?
|
|
3647
|
-
refund_reason String?
|
|
3648
|
-
refund_amount Int?
|
|
3649
|
-
idempotency_key String @unique
|
|
3650
|
-
invoice_number String? @unique
|
|
3651
|
-
/// Email of the org Admin who initiated checkout (bill-to).
|
|
3652
|
-
purchaser_email String?
|
|
3653
|
-
/// Set when FAILED but Razorpay order/payment is captured (reconciliation path).
|
|
3654
|
-
payment_mismatch_status BillingPaymentMismatchStatus?
|
|
3655
|
-
/// Strict same-intent SUCCESS transaction that fulfilled the purchase (UNFULFILLED only).
|
|
3656
|
-
payment_mismatch_fulfilled_by_id String?
|
|
3657
|
-
created_at DateTime @default(now())
|
|
3658
|
-
updated_at DateTime @updatedAt
|
|
3659
|
-
|
|
3660
|
-
organisation Organisation @relation(fields: [organisation_id], references: [id])
|
|
3661
|
-
|
|
3662
|
-
@@index([organisation_id, status])
|
|
3663
|
-
@@index([purchase_reference])
|
|
3664
|
-
@@index([razorpay_order_id])
|
|
3665
|
-
@@map("billing_transactions")
|
|
3666
|
-
@@schema("public")
|
|
3667
|
-
}
|
|
3668
|
-
|
|
3669
|
-
enum PaymentWebhookEventStatus {
|
|
3670
|
-
RECEIVED
|
|
3671
|
-
PROCESSED
|
|
3672
|
-
FAILED
|
|
3673
|
-
|
|
3674
|
-
@@schema("public")
|
|
3675
|
-
}
|
|
3676
|
-
|
|
3677
|
-
/// Idempotent record of payment provider webhook deliveries.
|
|
3678
|
-
model PaymentWebhookEvent {
|
|
3679
|
-
id String @id @default(uuid())
|
|
3680
|
-
organisation_id String?
|
|
3681
|
-
provider String
|
|
3682
|
-
provider_event_id String
|
|
3683
|
-
event_type String
|
|
3684
|
-
status PaymentWebhookEventStatus @default(RECEIVED)
|
|
3685
|
-
billing_transaction_id String?
|
|
3686
|
-
error_message String?
|
|
3687
|
-
processed_at DateTime?
|
|
3688
|
-
created_at DateTime @default(now())
|
|
3689
|
-
|
|
3690
|
-
organisation Organisation? @relation(fields: [organisation_id], references: [id])
|
|
3691
|
-
|
|
3692
|
-
@@unique([provider, provider_event_id])
|
|
3693
|
-
@@index([status, created_at])
|
|
3694
|
-
@@map("payment_webhook_events")
|
|
3695
|
-
@@schema("public")
|
|
3696
|
-
}
|
|
3697
|
-
|
|
3698
3582
|
model Permission {
|
|
3699
3583
|
id String @id @default(uuid())
|
|
3700
3584
|
permissions String[] @default([])
|