@saasicat/adapter-prisma 0.19.0 → 0.22.0
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/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -764,7 +764,7 @@ interface PrismaBundleRepositoryOptions {
|
|
|
764
764
|
}
|
|
765
765
|
/**
|
|
766
766
|
* `BundleRepository` against the canonical `bundles` + `bundle_versions`
|
|
767
|
-
* tables
|
|
767
|
+
* tables. Versioning mirrors `PlanVersion`: at most one
|
|
768
768
|
* draft (`publishedAt IS NULL`) per bundle, monotonically incrementing
|
|
769
769
|
* `version`, `supersededAt` marking the previous live version on publish.
|
|
770
770
|
*
|
|
@@ -1042,7 +1042,7 @@ interface SubscriptionBundleClient {
|
|
|
1042
1042
|
}
|
|
1043
1043
|
/**
|
|
1044
1044
|
* `SubscriptionBundleRepository` against the canonical `subscription_bundles`
|
|
1045
|
-
* junction
|
|
1045
|
+
* junction. Dumb persistence: domain constraints
|
|
1046
1046
|
* (plan compatibility, minimum-term default, cancellation-window computation)
|
|
1047
1047
|
* live in the platform's `SubscriptionBundlesService`; `add`/`cancel` here only
|
|
1048
1048
|
* write what they are handed. "Active" is `canceledAt IS NULL OR
|
|
@@ -1298,7 +1298,7 @@ interface PlanRepositoryClient {
|
|
|
1298
1298
|
}
|
|
1299
1299
|
/**
|
|
1300
1300
|
* `PlanRepository` against the canonical `plans` + `plan_versions` tables
|
|
1301
|
-
|
|
1301
|
+
*. Plan stem CRUD (Pack 1) and PlanVersion lifecycle
|
|
1302
1302
|
* (Pack 2a) live in one adapter. Ports always use the semantic **planKey**;
|
|
1303
1303
|
* storage defaults to the 0.6 soft binding
|
|
1304
1304
|
* `PlanVersion.planId === Plan.planKey`. The opt-in normalized binding resolves
|
|
@@ -1350,7 +1350,7 @@ interface CatalogEntryRepositoryClient {
|
|
|
1350
1350
|
}
|
|
1351
1351
|
/**
|
|
1352
1352
|
* `CatalogEntryRepository` against the canonical `capability_catalog_entries`,
|
|
1353
|
-
* `feature_catalog_entries` and `quota_catalog_entries` tables (
|
|
1353
|
+
* `feature_catalog_entries` and `quota_catalog_entries` tables (
|
|
1354
1354
|
* discovery review workflow).
|
|
1355
1355
|
*
|
|
1356
1356
|
* `upsert*` writes only the code-derived fields + the service-resolved status
|
package/dist/index.d.ts
CHANGED
|
@@ -764,7 +764,7 @@ interface PrismaBundleRepositoryOptions {
|
|
|
764
764
|
}
|
|
765
765
|
/**
|
|
766
766
|
* `BundleRepository` against the canonical `bundles` + `bundle_versions`
|
|
767
|
-
* tables
|
|
767
|
+
* tables. Versioning mirrors `PlanVersion`: at most one
|
|
768
768
|
* draft (`publishedAt IS NULL`) per bundle, monotonically incrementing
|
|
769
769
|
* `version`, `supersededAt` marking the previous live version on publish.
|
|
770
770
|
*
|
|
@@ -1042,7 +1042,7 @@ interface SubscriptionBundleClient {
|
|
|
1042
1042
|
}
|
|
1043
1043
|
/**
|
|
1044
1044
|
* `SubscriptionBundleRepository` against the canonical `subscription_bundles`
|
|
1045
|
-
* junction
|
|
1045
|
+
* junction. Dumb persistence: domain constraints
|
|
1046
1046
|
* (plan compatibility, minimum-term default, cancellation-window computation)
|
|
1047
1047
|
* live in the platform's `SubscriptionBundlesService`; `add`/`cancel` here only
|
|
1048
1048
|
* write what they are handed. "Active" is `canceledAt IS NULL OR
|
|
@@ -1298,7 +1298,7 @@ interface PlanRepositoryClient {
|
|
|
1298
1298
|
}
|
|
1299
1299
|
/**
|
|
1300
1300
|
* `PlanRepository` against the canonical `plans` + `plan_versions` tables
|
|
1301
|
-
|
|
1301
|
+
*. Plan stem CRUD (Pack 1) and PlanVersion lifecycle
|
|
1302
1302
|
* (Pack 2a) live in one adapter. Ports always use the semantic **planKey**;
|
|
1303
1303
|
* storage defaults to the 0.6 soft binding
|
|
1304
1304
|
* `PlanVersion.planId === Plan.planKey`. The opt-in normalized binding resolves
|
|
@@ -1350,7 +1350,7 @@ interface CatalogEntryRepositoryClient {
|
|
|
1350
1350
|
}
|
|
1351
1351
|
/**
|
|
1352
1352
|
* `CatalogEntryRepository` against the canonical `capability_catalog_entries`,
|
|
1353
|
-
* `feature_catalog_entries` and `quota_catalog_entries` tables (
|
|
1353
|
+
* `feature_catalog_entries` and `quota_catalog_entries` tables (
|
|
1354
1354
|
* discovery review workflow).
|
|
1355
1355
|
*
|
|
1356
1356
|
* `upsert*` writes only the code-derived fields + the service-resolved status
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saasicat/adapter-prisma",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.22.0",
|
|
4
4
|
"description": "Prisma + PostgreSQL persistence for SaaSiCat: one standard bundle for core, catalog, entitlement, tenant billing, Admin resources and promo, plus individual adapters for custom compositions.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@saasicat/types": "^0.
|
|
25
|
+
"@saasicat/types": "^0.22.0"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"@nestjs/common": "^11.0.0"
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"@prisma/client": "^6.19.0",
|
|
35
35
|
"tsup": "^8.0.0",
|
|
36
36
|
"typescript": "^6.0.0",
|
|
37
|
-
"@saasicat/persistence-testing": "^0.
|
|
38
|
-
"@saasicat/spec": "^0.
|
|
37
|
+
"@saasicat/persistence-testing": "^0.22.0",
|
|
38
|
+
"@saasicat/spec": "^0.22.0"
|
|
39
39
|
},
|
|
40
40
|
"license": "Apache-2.0",
|
|
41
41
|
"author": "Taci Uelker",
|