@prisma/client-generator-ts 6.16.0-dev.33 → 6.16.0-dev.35
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.js +2 -20
- package/dist/index.mjs +2 -20
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -3984,6 +3984,7 @@ function createClientFile(context, options) {
|
|
|
3984
3984
|
].map((i) => ts6.stringify(i));
|
|
3985
3985
|
const exports2 = [
|
|
3986
3986
|
ts6.moduleExportFrom(context.importFileName("./enums")).asNamespace("$Enums"),
|
|
3987
|
+
ts6.moduleExportFrom(context.importFileName("./enums")),
|
|
3987
3988
|
ts6.moduleExport(
|
|
3988
3989
|
ts6.constDeclaration("PrismaClient").setValue(ts6.functionCall("$Class.getPrismaClientClass", [ts6.namedValue("__dirname")]))
|
|
3989
3990
|
).setDocComment(getPrismaClientClassDocComment(context)),
|
|
@@ -4008,18 +4009,6 @@ function createClientFile(context, options) {
|
|
|
4008
4009
|
const modelTypeExport = ts6.moduleExport(ts6.typeDeclaration(model.name, ts6.namedType(`Prisma.${model.name}Model`))).setDocComment(ts6.docComment(docs));
|
|
4009
4010
|
return ts6.stringify(modelTypeExport);
|
|
4010
4011
|
});
|
|
4011
|
-
const modelEnumsAliases = context.dmmf.datamodel.enums.map((datamodelEnum) => {
|
|
4012
|
-
return [
|
|
4013
|
-
ts6.stringify(
|
|
4014
|
-
ts6.moduleExport(ts6.typeDeclaration(datamodelEnum.name, ts6.namedType(`$Enums.${datamodelEnum.name}`)))
|
|
4015
|
-
),
|
|
4016
|
-
ts6.stringify(
|
|
4017
|
-
ts6.moduleExport(
|
|
4018
|
-
ts6.constDeclaration(datamodelEnum.name).setValue(ts6.namedValue(`$Enums.${datamodelEnum.name}`))
|
|
4019
|
-
)
|
|
4020
|
-
)
|
|
4021
|
-
].join("\n");
|
|
4022
|
-
});
|
|
4023
4012
|
const binaryTargets = clientEngineType === import_internals5.ClientEngineType.Library ? Object.keys(options.binaryPaths.libqueryEngine ?? {}) : Object.keys(options.binaryPaths.queryEngine ?? {});
|
|
4024
4013
|
const relativeOutdir = import_node_path3.default.relative(process.cwd(), options.outputDir);
|
|
4025
4014
|
return `${jsDocHeader2}
|
|
@@ -4032,8 +4021,6 @@ export { Prisma }
|
|
|
4032
4021
|
${buildNFTAnnotations(options.edge || !options.copyEngine, clientEngineType, binaryTargets, relativeOutdir)}
|
|
4033
4022
|
|
|
4034
4023
|
${modelExports.join("\n")}
|
|
4035
|
-
|
|
4036
|
-
${modelEnumsAliases.length > 0 ? `${modelEnumsAliases.join("\n\n")}` : ""}
|
|
4037
4024
|
`;
|
|
4038
4025
|
}
|
|
4039
4026
|
function buildPreamble(edge, moduleFormat) {
|
|
@@ -5141,11 +5128,6 @@ var commonCodeTS = ({ clientVersion, engineVersion, generator }) => {
|
|
|
5141
5128
|
|
|
5142
5129
|
export type PrismaPromise<T> = runtime.Types.Public.PrismaPromise<T>
|
|
5143
5130
|
|
|
5144
|
-
/**
|
|
5145
|
-
* Validator
|
|
5146
|
-
*/
|
|
5147
|
-
export const validator = runtime.Public.validator
|
|
5148
|
-
|
|
5149
5131
|
/**
|
|
5150
5132
|
* Prisma Errors
|
|
5151
5133
|
*/
|
|
@@ -6556,7 +6538,7 @@ var import_get_tsconfig = require("get-tsconfig");
|
|
|
6556
6538
|
var import_ts_pattern2 = require("ts-pattern");
|
|
6557
6539
|
|
|
6558
6540
|
// package.json
|
|
6559
|
-
var version = "6.16.0-dev.
|
|
6541
|
+
var version = "6.16.0-dev.35";
|
|
6560
6542
|
|
|
6561
6543
|
// src/module-format.ts
|
|
6562
6544
|
function parseModuleFormat(format) {
|
package/dist/index.mjs
CHANGED
|
@@ -3983,6 +3983,7 @@ function createClientFile(context, options) {
|
|
|
3983
3983
|
].map((i) => ts6.stringify(i));
|
|
3984
3984
|
const exports = [
|
|
3985
3985
|
ts6.moduleExportFrom(context.importFileName("./enums")).asNamespace("$Enums"),
|
|
3986
|
+
ts6.moduleExportFrom(context.importFileName("./enums")),
|
|
3986
3987
|
ts6.moduleExport(
|
|
3987
3988
|
ts6.constDeclaration("PrismaClient").setValue(ts6.functionCall("$Class.getPrismaClientClass", [ts6.namedValue("__dirname")]))
|
|
3988
3989
|
).setDocComment(getPrismaClientClassDocComment(context)),
|
|
@@ -4007,18 +4008,6 @@ function createClientFile(context, options) {
|
|
|
4007
4008
|
const modelTypeExport = ts6.moduleExport(ts6.typeDeclaration(model.name, ts6.namedType(`Prisma.${model.name}Model`))).setDocComment(ts6.docComment(docs));
|
|
4008
4009
|
return ts6.stringify(modelTypeExport);
|
|
4009
4010
|
});
|
|
4010
|
-
const modelEnumsAliases = context.dmmf.datamodel.enums.map((datamodelEnum) => {
|
|
4011
|
-
return [
|
|
4012
|
-
ts6.stringify(
|
|
4013
|
-
ts6.moduleExport(ts6.typeDeclaration(datamodelEnum.name, ts6.namedType(`$Enums.${datamodelEnum.name}`)))
|
|
4014
|
-
),
|
|
4015
|
-
ts6.stringify(
|
|
4016
|
-
ts6.moduleExport(
|
|
4017
|
-
ts6.constDeclaration(datamodelEnum.name).setValue(ts6.namedValue(`$Enums.${datamodelEnum.name}`))
|
|
4018
|
-
)
|
|
4019
|
-
)
|
|
4020
|
-
].join("\n");
|
|
4021
|
-
});
|
|
4022
4011
|
const binaryTargets = clientEngineType === ClientEngineType2.Library ? Object.keys(options.binaryPaths.libqueryEngine ?? {}) : Object.keys(options.binaryPaths.queryEngine ?? {});
|
|
4023
4012
|
const relativeOutdir = path4.relative(process.cwd(), options.outputDir);
|
|
4024
4013
|
return `${jsDocHeader2}
|
|
@@ -4031,8 +4020,6 @@ export { Prisma }
|
|
|
4031
4020
|
${buildNFTAnnotations(options.edge || !options.copyEngine, clientEngineType, binaryTargets, relativeOutdir)}
|
|
4032
4021
|
|
|
4033
4022
|
${modelExports.join("\n")}
|
|
4034
|
-
|
|
4035
|
-
${modelEnumsAliases.length > 0 ? `${modelEnumsAliases.join("\n\n")}` : ""}
|
|
4036
4023
|
`;
|
|
4037
4024
|
}
|
|
4038
4025
|
function buildPreamble(edge, moduleFormat) {
|
|
@@ -5140,11 +5127,6 @@ var commonCodeTS = ({ clientVersion, engineVersion, generator }) => {
|
|
|
5140
5127
|
|
|
5141
5128
|
export type PrismaPromise<T> = runtime.Types.Public.PrismaPromise<T>
|
|
5142
5129
|
|
|
5143
|
-
/**
|
|
5144
|
-
* Validator
|
|
5145
|
-
*/
|
|
5146
|
-
export const validator = runtime.Public.validator
|
|
5147
|
-
|
|
5148
5130
|
/**
|
|
5149
5131
|
* Prisma Errors
|
|
5150
5132
|
*/
|
|
@@ -6555,7 +6537,7 @@ import { getTsconfig } from "get-tsconfig";
|
|
|
6555
6537
|
import { match as match2 } from "ts-pattern";
|
|
6556
6538
|
|
|
6557
6539
|
// package.json
|
|
6558
|
-
var version = "6.16.0-dev.
|
|
6540
|
+
var version = "6.16.0-dev.35";
|
|
6559
6541
|
|
|
6560
6542
|
// src/module-format.ts
|
|
6561
6543
|
function parseModuleFormat(format) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-generator-ts",
|
|
3
|
-
"version": "6.16.0-dev.
|
|
3
|
+
"version": "6.16.0-dev.35",
|
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -34,14 +34,14 @@
|
|
|
34
34
|
"package-up": "5.0.0",
|
|
35
35
|
"pluralize": "8.0.0",
|
|
36
36
|
"ts-pattern": "5.6.2",
|
|
37
|
-
"@prisma/client-common": "6.16.0-dev.
|
|
38
|
-
"@prisma/debug": "6.16.0-dev.
|
|
39
|
-
"@prisma/
|
|
40
|
-
"@prisma/
|
|
41
|
-
"@prisma/
|
|
42
|
-
"@prisma/
|
|
43
|
-
"@prisma/
|
|
44
|
-
"@prisma/
|
|
37
|
+
"@prisma/client-common": "6.16.0-dev.35",
|
|
38
|
+
"@prisma/debug": "6.16.0-dev.35",
|
|
39
|
+
"@prisma/fetch-engine": "6.16.0-dev.35",
|
|
40
|
+
"@prisma/dmmf": "6.16.0-dev.35",
|
|
41
|
+
"@prisma/generator": "6.16.0-dev.35",
|
|
42
|
+
"@prisma/get-platform": "6.16.0-dev.35",
|
|
43
|
+
"@prisma/internals": "6.16.0-dev.35",
|
|
44
|
+
"@prisma/ts-builders": "6.16.0-dev.35"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/pluralize": "0.0.33",
|