@prisma/generator-helper 5.19.0-dev.14 → 5.19.0-dev.16
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/types.d.ts +22 -0
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -94,6 +94,7 @@ export type GeneratorOptions = {
|
|
|
94
94
|
noHints?: boolean;
|
|
95
95
|
allowNoModels?: boolean;
|
|
96
96
|
envPaths?: EnvPaths;
|
|
97
|
+
typedSql?: SqlQueryOutput[];
|
|
97
98
|
};
|
|
98
99
|
export type EngineType = 'queryEngine' | 'libqueryEngine' | 'schemaEngine';
|
|
99
100
|
export type GeneratorManifest = {
|
|
@@ -108,3 +109,24 @@ export type GeneratorManifest = {
|
|
|
108
109
|
version?: string;
|
|
109
110
|
requiresEngineVersion?: string;
|
|
110
111
|
};
|
|
112
|
+
export type SqlQueryOutput = {
|
|
113
|
+
name: string;
|
|
114
|
+
source: string;
|
|
115
|
+
documentation: string | null;
|
|
116
|
+
parameters: SqlQueryParameterOutput[];
|
|
117
|
+
resultColumns: SqlQueryColumnOutput[];
|
|
118
|
+
};
|
|
119
|
+
export type SqlQueryParameterOutput = {
|
|
120
|
+
name: string;
|
|
121
|
+
query: string;
|
|
122
|
+
typ: QueryIntrospectionType;
|
|
123
|
+
documentation: string | null;
|
|
124
|
+
nullable: boolean;
|
|
125
|
+
};
|
|
126
|
+
export type SqlQueryColumnOutput = {
|
|
127
|
+
name: string;
|
|
128
|
+
typ: QueryIntrospectionType;
|
|
129
|
+
nullable: boolean;
|
|
130
|
+
};
|
|
131
|
+
export type QueryIntrospectionType = QueryIntrospectionBuiltinType | (string & {});
|
|
132
|
+
export type QueryIntrospectionBuiltinType = 'int' | 'bigint' | 'float' | 'double' | 'string' | 'enum' | 'bytes' | 'bool' | 'char' | 'decimal' | 'json' | 'xml' | 'uuid' | 'datetime' | 'date' | 'time' | 'int-array' | 'bigint-array' | 'float-array' | 'double-array' | 'string-array' | 'char-array' | 'bytes-array' | 'bool-array' | 'decimal-array' | 'json-array' | 'xml-array' | 'uuid-array' | 'datetime-array' | 'date-array' | 'time-array' | 'null' | 'unknown';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/generator-helper",
|
|
3
|
-
"version": "5.19.0-dev.
|
|
3
|
+
"version": "5.19.0-dev.16",
|
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"homepage": "https://www.prisma.io",
|
|
16
16
|
"bugs": "https://github.com/prisma/prisma/issues",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@prisma/debug": "5.19.0-dev.
|
|
18
|
+
"@prisma/debug": "5.19.0-dev.16"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@swc-node/register": "1.10.9",
|