@saasicat/adapter-prisma 0.10.0 → 0.10.1
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.cjs +25 -7
- package/dist/index.js +25 -7
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -2239,9 +2239,14 @@ var PrismaPlanCatalogReadSink = class {
|
|
|
2239
2239
|
projectKey,
|
|
2240
2240
|
deletedAt: null
|
|
2241
2241
|
},
|
|
2242
|
-
orderBy:
|
|
2243
|
-
|
|
2244
|
-
|
|
2242
|
+
orderBy: [
|
|
2243
|
+
{
|
|
2244
|
+
sortOrder: "asc"
|
|
2245
|
+
},
|
|
2246
|
+
{
|
|
2247
|
+
planKey: "asc"
|
|
2248
|
+
}
|
|
2249
|
+
]
|
|
2245
2250
|
});
|
|
2246
2251
|
const planKeysByStoredId = new Map(plans.map((plan) => [
|
|
2247
2252
|
this.binding.mode === "normalized-plan-id" ? plan.id : plan.planKey,
|
|
@@ -2259,16 +2264,29 @@ var PrismaPlanCatalogReadSink = class {
|
|
|
2259
2264
|
not: null
|
|
2260
2265
|
},
|
|
2261
2266
|
supersededAt: null
|
|
2262
|
-
}
|
|
2267
|
+
},
|
|
2268
|
+
orderBy: [
|
|
2269
|
+
{
|
|
2270
|
+
planId: "asc"
|
|
2271
|
+
},
|
|
2272
|
+
{
|
|
2273
|
+
version: "asc"
|
|
2274
|
+
}
|
|
2275
|
+
]
|
|
2263
2276
|
});
|
|
2264
2277
|
const featureEntries = await db.featureCatalogEntry.findMany({
|
|
2265
2278
|
where: {
|
|
2266
2279
|
projectKey,
|
|
2267
2280
|
deletedAt: null
|
|
2268
2281
|
},
|
|
2269
|
-
orderBy:
|
|
2270
|
-
|
|
2271
|
-
|
|
2282
|
+
orderBy: [
|
|
2283
|
+
{
|
|
2284
|
+
sortOrder: "asc"
|
|
2285
|
+
},
|
|
2286
|
+
{
|
|
2287
|
+
featureKey: "asc"
|
|
2288
|
+
}
|
|
2289
|
+
]
|
|
2272
2290
|
});
|
|
2273
2291
|
return {
|
|
2274
2292
|
plans: plans.map(toPlanRow),
|
package/dist/index.js
CHANGED
|
@@ -2180,9 +2180,14 @@ var PrismaPlanCatalogReadSink = class {
|
|
|
2180
2180
|
projectKey,
|
|
2181
2181
|
deletedAt: null
|
|
2182
2182
|
},
|
|
2183
|
-
orderBy:
|
|
2184
|
-
|
|
2185
|
-
|
|
2183
|
+
orderBy: [
|
|
2184
|
+
{
|
|
2185
|
+
sortOrder: "asc"
|
|
2186
|
+
},
|
|
2187
|
+
{
|
|
2188
|
+
planKey: "asc"
|
|
2189
|
+
}
|
|
2190
|
+
]
|
|
2186
2191
|
});
|
|
2187
2192
|
const planKeysByStoredId = new Map(plans.map((plan) => [
|
|
2188
2193
|
this.binding.mode === "normalized-plan-id" ? plan.id : plan.planKey,
|
|
@@ -2200,16 +2205,29 @@ var PrismaPlanCatalogReadSink = class {
|
|
|
2200
2205
|
not: null
|
|
2201
2206
|
},
|
|
2202
2207
|
supersededAt: null
|
|
2203
|
-
}
|
|
2208
|
+
},
|
|
2209
|
+
orderBy: [
|
|
2210
|
+
{
|
|
2211
|
+
planId: "asc"
|
|
2212
|
+
},
|
|
2213
|
+
{
|
|
2214
|
+
version: "asc"
|
|
2215
|
+
}
|
|
2216
|
+
]
|
|
2204
2217
|
});
|
|
2205
2218
|
const featureEntries = await db.featureCatalogEntry.findMany({
|
|
2206
2219
|
where: {
|
|
2207
2220
|
projectKey,
|
|
2208
2221
|
deletedAt: null
|
|
2209
2222
|
},
|
|
2210
|
-
orderBy:
|
|
2211
|
-
|
|
2212
|
-
|
|
2223
|
+
orderBy: [
|
|
2224
|
+
{
|
|
2225
|
+
sortOrder: "asc"
|
|
2226
|
+
},
|
|
2227
|
+
{
|
|
2228
|
+
featureKey: "asc"
|
|
2229
|
+
}
|
|
2230
|
+
]
|
|
2213
2231
|
});
|
|
2214
2232
|
return {
|
|
2215
2233
|
plans: plans.map(toPlanRow),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@saasicat/adapter-prisma",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1",
|
|
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.10.
|
|
25
|
+
"@saasicat/types": "^0.10.1"
|
|
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.10.
|
|
38
|
-
"@saasicat/spec": "^0.10.
|
|
37
|
+
"@saasicat/persistence-testing": "^0.10.1",
|
|
38
|
+
"@saasicat/spec": "^0.10.1"
|
|
39
39
|
},
|
|
40
40
|
"license": "Apache-2.0",
|
|
41
41
|
"author": "Taci Uelker",
|