@zenstackhq/schema 3.9.0-beta.1 → 3.9.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.cts +6 -0
- package/dist/index.d.mts +6 -0
- package/package.json +5 -5
package/dist/index.d.cts
CHANGED
|
@@ -117,6 +117,12 @@ type FieldDef = {
|
|
|
117
117
|
relation?: RelationInfo;
|
|
118
118
|
foreignKeyFor?: readonly string[];
|
|
119
119
|
computed?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* For a parameterized computed field, the parameters it declares (keyed by name). The
|
|
122
|
+
* corresponding arguments are supplied at query time wherever the field is used — `orderBy`,
|
|
123
|
+
* `where`/`having`, `select`/`include`, the aggregate inputs, and `groupBy`.
|
|
124
|
+
*/
|
|
125
|
+
params?: Record<string, ProcedureParam>;
|
|
120
126
|
originModel?: string;
|
|
121
127
|
isDiscriminator?: boolean;
|
|
122
128
|
};
|
package/dist/index.d.mts
CHANGED
|
@@ -117,6 +117,12 @@ type FieldDef = {
|
|
|
117
117
|
relation?: RelationInfo;
|
|
118
118
|
foreignKeyFor?: readonly string[];
|
|
119
119
|
computed?: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* For a parameterized computed field, the parameters it declares (keyed by name). The
|
|
122
|
+
* corresponding arguments are supplied at query time wherever the field is used — `orderBy`,
|
|
123
|
+
* `where`/`having`, `select`/`include`, the aggregate inputs, and `groupBy`.
|
|
124
|
+
*/
|
|
125
|
+
params?: Record<string, ProcedureParam>;
|
|
120
126
|
originModel?: string;
|
|
121
127
|
isDiscriminator?: boolean;
|
|
122
128
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@zenstackhq/schema",
|
|
3
3
|
"displayName": "ZenStack Schema Object Model",
|
|
4
4
|
"description": "TypeScript representation of ZModel schema",
|
|
5
|
-
"version": "3.9.
|
|
5
|
+
"version": "3.9.1",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"author": {
|
|
8
8
|
"name": "ZenStack Team",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"decimal.js": "^10.4.3"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@zenstackhq/eslint-config": "3.9.
|
|
42
|
-
"@zenstackhq/tsdown-config": "3.9.
|
|
43
|
-
"@zenstackhq/
|
|
44
|
-
"@zenstackhq/
|
|
41
|
+
"@zenstackhq/eslint-config": "3.9.1",
|
|
42
|
+
"@zenstackhq/tsdown-config": "3.9.1",
|
|
43
|
+
"@zenstackhq/vitest-config": "3.9.1",
|
|
44
|
+
"@zenstackhq/typescript-config": "3.9.1"
|
|
45
45
|
},
|
|
46
46
|
"funding": "https://github.com/sponsors/zenstackhq",
|
|
47
47
|
"scripts": {
|