@saasicat/adapter-prisma 1.0.0-rc.24 → 1.0.0-rc.25
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/README.md +34 -32
- package/dist/.build-stamp +1 -1
- package/dist/index.cjs +826 -400
- package/dist/index.d.cts +32 -4
- package/dist/index.d.ts +32 -4
- package/dist/index.js +740 -315
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -83,38 +83,40 @@ PromoCodesModule.forRoot({
|
|
|
83
83
|
|
|
84
84
|
## Shipped adapters
|
|
85
85
|
|
|
86
|
-
| Class
|
|
87
|
-
|
|
|
88
|
-
| `PrismaTransactionRunner`
|
|
89
|
-
| `PrismaMfaAdapter`
|
|
90
|
-
| `PrismaAuditAdapter`
|
|
91
|
-
| `PrismaAuditQueryAdapter`
|
|
92
|
-
| `PrismaAuditStatsAdapter`
|
|
93
|
-
| `AsyncLocalRlsBypassAdapter`
|
|
94
|
-
| `PrismaSubscriptionRepository`
|
|
95
|
-
| `PrismaSubscriptionBundleRepository`
|
|
96
|
-
| `PrismaTenantSubscriptionWriteAdapter`
|
|
97
|
-
| `PrismaPlanVersionRepository`
|
|
98
|
-
| `PrismaPromoCodeRepository`
|
|
99
|
-
| `PrismaPromoCodeRedemptionRepository`
|
|
100
|
-
| `PrismaPromoCodeHoldRepository`
|
|
101
|
-
| `PrismaPromoCodeValidationLogRepository`
|
|
102
|
-
| `PrismaPromoSubscriptionLookup`
|
|
103
|
-
| `ZeroPromoRevenueDeductionAggregator`
|
|
104
|
-
| `PrismaSuperAdminBootstrapAdapter`
|
|
105
|
-
| `PrismaPlanCatalogReadSink`
|
|
106
|
-
| `PrismaPlanCatalogImportSink`
|
|
107
|
-
| `PrismaPlanRepository`
|
|
108
|
-
| `PrismaBundleRepository`
|
|
109
|
-
| `PrismaCatalogEntryRepository`
|
|
110
|
-
| `PrismaMarketingProjectionRepository`
|
|
111
|
-
| `PrismaMarketingSettingsRepository`
|
|
112
|
-
| `PrismaPromotionRepository`
|
|
113
|
-
| `PrismaSubscriptionContractRepository`
|
|
114
|
-
| `PrismaSubscriberLedgerRepository`
|
|
115
|
-
| `PrismaAppliedSettingsRepository`
|
|
116
|
-
| `PrismaMaintenanceWindowRepository`
|
|
117
|
-
| `PrismaSubscriptionNoticeRepository`
|
|
86
|
+
| Class | Implements port | Tables |
|
|
87
|
+
| ----------------------------------------- | ----------------------------------- | ------------------------------------------------------------------- |
|
|
88
|
+
| `PrismaTransactionRunner` | `TransactionRunner` | — (`$transaction`) |
|
|
89
|
+
| `PrismaMfaAdapter` | `MfaPort` | `super_admin_mfa` |
|
|
90
|
+
| `PrismaAuditAdapter` | `AuditPort` | `audit_logs` |
|
|
91
|
+
| `PrismaAuditQueryAdapter` | `AuditQueryPort` | `audit_logs` |
|
|
92
|
+
| `PrismaAuditStatsAdapter` | `AuditStatsPort` | `audit_logs` |
|
|
93
|
+
| `AsyncLocalRlsBypassAdapter` | `RlsBypassPort` | (no DB access) |
|
|
94
|
+
| `PrismaSubscriptionRepository` | `SubscriptionRepository` | `subscriptions`, `plan_versions`, optionally `subscription_bundles` |
|
|
95
|
+
| `PrismaSubscriptionBundleRepository` | `SubscriptionBundleRepository` | `subscription_bundles` |
|
|
96
|
+
| `PrismaTenantSubscriptionWriteAdapter` | `TenantSubscriptionWritePort` | `subscriptions`, `plans`, `plan_versions` |
|
|
97
|
+
| `PrismaPlanVersionRepository` | `PlanVersionRepository` | `plan_versions` |
|
|
98
|
+
| `PrismaPromoCodeRepository` | `PromoCodeRepository` | `promo_codes` |
|
|
99
|
+
| `PrismaPromoCodeRedemptionRepository` | `PromoCodeRedemptionRepository` | `promo_code_redemptions` |
|
|
100
|
+
| `PrismaPromoCodeHoldRepository` | `PromoCodeHoldRepository` | `promo_code_holds`, `promo_codes` |
|
|
101
|
+
| `PrismaPromoCodeValidationLogRepository` | `PromoCodeValidationLogRepository` | `promo_code_validation_logs` |
|
|
102
|
+
| `PrismaPromoSubscriptionLookup` | `PromoSubscriptionLookup` | `subscriptions` |
|
|
103
|
+
| `ZeroPromoRevenueDeductionAggregator` | `PromoRevenueDeductionAggregator` | — (constant `'0.00'`) |
|
|
104
|
+
| `PrismaSuperAdminBootstrapAdapter` | `SuperAdminProvisioningPort` | `super_admin_users` |
|
|
105
|
+
| `PrismaPlanCatalogReadSink` | `PlanCatalogReadSink` | `plans`, `plan_versions`, `feature_catalog_entries` |
|
|
106
|
+
| `PrismaPlanCatalogImportSink` | `PlanCatalogImportSink` | same |
|
|
107
|
+
| `PrismaPlanRepository` | `PlanRepository` | `plans`, `plan_versions` |
|
|
108
|
+
| `PrismaBundleRepository` | `BundleRepository` | `bundles`, `bundle_versions` |
|
|
109
|
+
| `PrismaCatalogEntryRepository` | `CatalogEntryRepository` | capability, feature and quota catalog tables |
|
|
110
|
+
| `PrismaMarketingProjectionRepository` | `MarketingProjectionRepository` | `marketing_projections` |
|
|
111
|
+
| `PrismaMarketingSettingsRepository` | `MarketingSettingsRepository` | `marketing_settings` |
|
|
112
|
+
| `PrismaPromotionRepository` | `PromotionRepository` | `promotions` |
|
|
113
|
+
| `PrismaSubscriptionContractRepository` | `SubscriptionContractRepository` | `subscription_contracts`, `contract_line_items` |
|
|
114
|
+
| `PrismaSubscriberLedgerRepository` | `SubscriberLedgerRepository` | `subscriber_ledger_entries` |
|
|
115
|
+
| `PrismaAppliedSettingsRepository` | `AppliedSettingsPort` | `applied_settings`, `settings_changes` |
|
|
116
|
+
| `PrismaMaintenanceWindowRepository` | `MaintenanceWindowPort` | `maintenance_windows` |
|
|
117
|
+
| `PrismaSubscriptionNoticeRepository` | `SubscriptionNoticeRepository` | `subscription_notices` |
|
|
118
|
+
| `PrismaVersionRetirementRepository` | `VersionRetirementRepository` | `version_retirements` |
|
|
119
|
+
| `PrismaBundleVersionRetirementRepository` | `BundleVersionRetirementRepository` | `bundle_version_retirements` |
|
|
118
120
|
|
|
119
121
|
`PrismaMfaAdapter` stores the secret it is handed. The platform seals it first with the
|
|
120
122
|
`SecretSealer` bound in `adapters`, which this bundle does not supply: the key belongs to the
|
package/dist/.build-stamp
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
14b4708a748d842d0a925ffcb3e181b338b3cdd02caf4163f69ac455485a4758
|