@prisma-next/sql-orm-client 0.6.0-dev.7 → 0.6.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.d.mts.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +19 -19
- package/src/collection-internal-types.ts +8 -7
- package/src/types.ts +231 -245
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma-next/sql-orm-client",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"description": "ORM client for Prisma Next — fluent, type-safe model collections",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@prisma-next/contract": "0.6.
|
|
10
|
-
"@prisma-next/
|
|
11
|
-
"@prisma-next/
|
|
12
|
-
"@prisma-next/sql-
|
|
13
|
-
"@prisma-next/sql-
|
|
14
|
-
"@prisma-next/sql-
|
|
15
|
-
"@prisma-next/sql-runtime": "0.6.
|
|
16
|
-
"@prisma-next/utils": "0.6.
|
|
9
|
+
"@prisma-next/contract": "0.6.1",
|
|
10
|
+
"@prisma-next/framework-components": "0.6.1",
|
|
11
|
+
"@prisma-next/operations": "0.6.1",
|
|
12
|
+
"@prisma-next/sql-operations": "0.6.1",
|
|
13
|
+
"@prisma-next/sql-relational-core": "0.6.1",
|
|
14
|
+
"@prisma-next/sql-contract": "0.6.1",
|
|
15
|
+
"@prisma-next/sql-runtime": "0.6.1",
|
|
16
|
+
"@prisma-next/utils": "0.6.1"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/pg": "8.20.0",
|
|
@@ -21,17 +21,17 @@
|
|
|
21
21
|
"tsdown": "0.22.0",
|
|
22
22
|
"typescript": "5.9.3",
|
|
23
23
|
"vitest": "4.1.5",
|
|
24
|
-
"@prisma-next/adapter-postgres": "0.6.
|
|
25
|
-
"@prisma-next/
|
|
26
|
-
"@prisma-next/cli": "0.6.
|
|
27
|
-
"@prisma-next/family-sql": "0.6.
|
|
28
|
-
"@prisma-next/
|
|
29
|
-
"@prisma-next/
|
|
30
|
-
"@prisma-next/sql-contract-ts": "0.6.
|
|
31
|
-
"@prisma-next/target-postgres": "0.6.
|
|
24
|
+
"@prisma-next/adapter-postgres": "0.6.1",
|
|
25
|
+
"@prisma-next/driver-postgres": "0.6.1",
|
|
26
|
+
"@prisma-next/cli": "0.6.1",
|
|
27
|
+
"@prisma-next/family-sql": "0.6.1",
|
|
28
|
+
"@prisma-next/extension-pgvector": "0.6.1",
|
|
29
|
+
"@prisma-next/ids": "0.6.1",
|
|
30
|
+
"@prisma-next/sql-contract-ts": "0.6.1",
|
|
31
|
+
"@prisma-next/target-postgres": "0.6.1",
|
|
32
32
|
"@prisma-next/tsconfig": "0.0.0",
|
|
33
|
-
"@prisma-next/
|
|
34
|
-
"@prisma-next/
|
|
33
|
+
"@prisma-next/tsdown": "0.0.0",
|
|
34
|
+
"@prisma-next/test-utils": "0.0.1"
|
|
35
35
|
},
|
|
36
36
|
"files": [
|
|
37
37
|
"dist",
|
|
@@ -109,13 +109,14 @@ export type IncludeRefinementValue<
|
|
|
109
109
|
RelName extends string,
|
|
110
110
|
DefaultIncludedRow,
|
|
111
111
|
RefinedResult,
|
|
112
|
-
> =
|
|
113
|
-
|
|
114
|
-
//
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
112
|
+
> =
|
|
113
|
+
RefinedResult extends RowSelection<infer V>
|
|
114
|
+
? // IncludeScalar / IncludeCombine carry a final value that must not be
|
|
115
|
+
// cardinality-wrapped; Collection carries a raw row that still needs it.
|
|
116
|
+
RefinedResult extends { readonly kind: 'includeScalar' | 'includeCombine' }
|
|
117
|
+
? V
|
|
118
|
+
: IncludeRelationValue<TContract, ParentModelName, RelName, V>
|
|
119
|
+
: IncludeRelationValue<TContract, ParentModelName, RelName, DefaultIncludedRow>;
|
|
119
120
|
|
|
120
121
|
export type WhereInput<TContract extends Contract<SqlStorage>, ModelName extends string> =
|
|
121
122
|
| ((model: ModelAccessor<TContract, ModelName>) => AnyExpression)
|