@prisma/client-generator-ts 7.3.0-integration-engines-7-3-0-15-parameterization-751774bd0247fad96ff209ca5a958e4a0f0f036a.1 → 7.3.0-integration-parameterization.9
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/TSClient/Args.d.ts +1 -0
- package/dist/index.js +13 -3
- package/dist/index.mjs +13 -3
- package/package.json +11 -10
package/dist/TSClient/Args.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export declare class ArgsTypeBuilder {
|
|
|
22
22
|
isNullable: boolean;
|
|
23
23
|
isRequired: boolean;
|
|
24
24
|
inputTypes: DMMF.InputTypeRef[];
|
|
25
|
+
isParameterizable: boolean;
|
|
25
26
|
requiresOtherFields?: string[] | undefined;
|
|
26
27
|
deprecation?: DMMF.ReadonlyDeep<{
|
|
27
28
|
sinceVersion: string;
|
package/dist/index.js
CHANGED
|
@@ -2933,6 +2933,7 @@ ${modelExports(context).join("\n")}
|
|
|
2933
2933
|
}
|
|
2934
2934
|
|
|
2935
2935
|
// src/TSClient/file-generators/ClassFile.ts
|
|
2936
|
+
var import_param_graph_builder = require("@prisma/param-graph-builder");
|
|
2936
2937
|
var ts6 = __toESM(require("@prisma/ts-builders"));
|
|
2937
2938
|
|
|
2938
2939
|
// src/utils/buildDebugInitialization.ts
|
|
@@ -3830,7 +3831,8 @@ function clientConfig(context, options) {
|
|
|
3830
3831
|
target,
|
|
3831
3832
|
activeProvider,
|
|
3832
3833
|
moduleFormat,
|
|
3833
|
-
compilerBuild
|
|
3834
|
+
compilerBuild,
|
|
3835
|
+
dmmf
|
|
3834
3836
|
} = options;
|
|
3835
3837
|
const config = {
|
|
3836
3838
|
previewFeatures: generator.previewFeatures,
|
|
@@ -3838,15 +3840,22 @@ function clientConfig(context, options) {
|
|
|
3838
3840
|
engineVersion: options.engineVersion,
|
|
3839
3841
|
activeProvider: options.activeProvider,
|
|
3840
3842
|
inlineSchema,
|
|
3841
|
-
runtimeDataModel: { models: {}, enums: {}, types: {} }
|
|
3843
|
+
runtimeDataModel: { models: {}, enums: {}, types: {} },
|
|
3844
|
+
parameterizationSchema: { s: [], e: [], i: [], o: [], r: {} }
|
|
3842
3845
|
};
|
|
3843
3846
|
return `
|
|
3844
3847
|
const config: runtime.GetPrismaClientConfig = ${JSON.stringify(config, null, 2)}
|
|
3845
3848
|
${buildRuntimeDataModel(context.dmmf.datamodel, runtimeName)}
|
|
3849
|
+
${buildParameterizationSchema(dmmf)}
|
|
3846
3850
|
${buildGetWasmModule({ runtimeBase, runtimeName, target, activeProvider, moduleFormat, compilerBuild })}
|
|
3847
3851
|
${buildDebugInitialization(edge)}
|
|
3848
3852
|
`;
|
|
3849
3853
|
}
|
|
3854
|
+
function buildParameterizationSchema(dmmf) {
|
|
3855
|
+
const paramGraph = (0, import_param_graph_builder.buildParamGraph)(dmmf);
|
|
3856
|
+
const paramGraphJson = JSON.stringify(JSON.stringify(paramGraph));
|
|
3857
|
+
return `config.parameterizationSchema = JSON.parse(${paramGraphJson})`;
|
|
3858
|
+
}
|
|
3850
3859
|
|
|
3851
3860
|
// src/TSClient/file-generators/ClientFile.ts
|
|
3852
3861
|
var ts7 = __toESM(require("@prisma/ts-builders"));
|
|
@@ -4477,6 +4486,7 @@ ${aggregateTypes.length > 1 ? aggregateTypes.slice(1).map((type) => {
|
|
|
4477
4486
|
name: field.name,
|
|
4478
4487
|
isNullable: false,
|
|
4479
4488
|
isRequired: false,
|
|
4489
|
+
isParameterizable: false,
|
|
4480
4490
|
inputTypes: [
|
|
4481
4491
|
{
|
|
4482
4492
|
isList: false,
|
|
@@ -6412,7 +6422,7 @@ var import_internals7 = require("@prisma/internals");
|
|
|
6412
6422
|
var import_get_tsconfig = require("get-tsconfig");
|
|
6413
6423
|
|
|
6414
6424
|
// package.json
|
|
6415
|
-
var version = "7.3.0-integration-
|
|
6425
|
+
var version = "7.3.0-integration-parameterization.9";
|
|
6416
6426
|
|
|
6417
6427
|
// src/module-format.ts
|
|
6418
6428
|
function parseModuleFormat(format) {
|
package/dist/index.mjs
CHANGED
|
@@ -2923,6 +2923,7 @@ ${modelExports(context).join("\n")}
|
|
|
2923
2923
|
}
|
|
2924
2924
|
|
|
2925
2925
|
// src/TSClient/file-generators/ClassFile.ts
|
|
2926
|
+
import { buildParamGraph } from "@prisma/param-graph-builder";
|
|
2926
2927
|
import * as ts6 from "@prisma/ts-builders";
|
|
2927
2928
|
|
|
2928
2929
|
// src/utils/buildDebugInitialization.ts
|
|
@@ -3823,7 +3824,8 @@ function clientConfig(context, options) {
|
|
|
3823
3824
|
target,
|
|
3824
3825
|
activeProvider,
|
|
3825
3826
|
moduleFormat,
|
|
3826
|
-
compilerBuild
|
|
3827
|
+
compilerBuild,
|
|
3828
|
+
dmmf
|
|
3827
3829
|
} = options;
|
|
3828
3830
|
const config = {
|
|
3829
3831
|
previewFeatures: generator.previewFeatures,
|
|
@@ -3831,15 +3833,22 @@ function clientConfig(context, options) {
|
|
|
3831
3833
|
engineVersion: options.engineVersion,
|
|
3832
3834
|
activeProvider: options.activeProvider,
|
|
3833
3835
|
inlineSchema,
|
|
3834
|
-
runtimeDataModel: { models: {}, enums: {}, types: {} }
|
|
3836
|
+
runtimeDataModel: { models: {}, enums: {}, types: {} },
|
|
3837
|
+
parameterizationSchema: { s: [], e: [], i: [], o: [], r: {} }
|
|
3835
3838
|
};
|
|
3836
3839
|
return `
|
|
3837
3840
|
const config: runtime.GetPrismaClientConfig = ${JSON.stringify(config, null, 2)}
|
|
3838
3841
|
${buildRuntimeDataModel(context.dmmf.datamodel, runtimeName)}
|
|
3842
|
+
${buildParameterizationSchema(dmmf)}
|
|
3839
3843
|
${buildGetWasmModule({ runtimeBase, runtimeName, target, activeProvider, moduleFormat, compilerBuild })}
|
|
3840
3844
|
${buildDebugInitialization(edge)}
|
|
3841
3845
|
`;
|
|
3842
3846
|
}
|
|
3847
|
+
function buildParameterizationSchema(dmmf) {
|
|
3848
|
+
const paramGraph = buildParamGraph(dmmf);
|
|
3849
|
+
const paramGraphJson = JSON.stringify(JSON.stringify(paramGraph));
|
|
3850
|
+
return `config.parameterizationSchema = JSON.parse(${paramGraphJson})`;
|
|
3851
|
+
}
|
|
3843
3852
|
|
|
3844
3853
|
// src/TSClient/file-generators/ClientFile.ts
|
|
3845
3854
|
import * as ts7 from "@prisma/ts-builders";
|
|
@@ -4470,6 +4479,7 @@ ${aggregateTypes.length > 1 ? aggregateTypes.slice(1).map((type) => {
|
|
|
4470
4479
|
name: field.name,
|
|
4471
4480
|
isNullable: false,
|
|
4472
4481
|
isRequired: false,
|
|
4482
|
+
isParameterizable: false,
|
|
4473
4483
|
inputTypes: [
|
|
4474
4484
|
{
|
|
4475
4485
|
isList: false,
|
|
@@ -6405,7 +6415,7 @@ import { parseEnvValue } from "@prisma/internals";
|
|
|
6405
6415
|
import { getTsconfig } from "get-tsconfig";
|
|
6406
6416
|
|
|
6407
6417
|
// package.json
|
|
6408
|
-
var version = "7.3.0-integration-
|
|
6418
|
+
var version = "7.3.0-integration-parameterization.9";
|
|
6409
6419
|
|
|
6410
6420
|
// src/module-format.ts
|
|
6411
6421
|
function parseModuleFormat(format) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-generator-ts",
|
|
3
|
-
"version": "7.3.0-integration-
|
|
3
|
+
"version": "7.3.0-integration-parameterization.9",
|
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@antfu/ni": "0.21.12",
|
|
28
|
-
"@prisma/engines-version": "7.3.0-
|
|
28
|
+
"@prisma/engines-version": "7.3.0-14.parameterization-11aa30d30257422cbc5419b3ee255fa98d60bbab",
|
|
29
29
|
"fast-glob": "3.3.3",
|
|
30
30
|
"get-tsconfig": "4.10.0",
|
|
31
31
|
"indent-string": "4.0.0",
|
|
@@ -33,14 +33,15 @@
|
|
|
33
33
|
"package-up": "5.0.0",
|
|
34
34
|
"pluralize": "8.0.0",
|
|
35
35
|
"ts-pattern": "5.6.2",
|
|
36
|
-
"@prisma/
|
|
37
|
-
"@prisma/
|
|
38
|
-
"@prisma/
|
|
39
|
-
"@prisma/
|
|
40
|
-
"@prisma/
|
|
41
|
-
"@prisma/
|
|
42
|
-
"@prisma/internals": "7.3.0-integration-
|
|
43
|
-
"@prisma/
|
|
36
|
+
"@prisma/client-common": "7.3.0-integration-parameterization.9",
|
|
37
|
+
"@prisma/debug": "7.3.0-integration-parameterization.9",
|
|
38
|
+
"@prisma/dmmf": "7.3.0-integration-parameterization.9",
|
|
39
|
+
"@prisma/fetch-engine": "7.3.0-integration-parameterization.9",
|
|
40
|
+
"@prisma/get-platform": "7.3.0-integration-parameterization.9",
|
|
41
|
+
"@prisma/generator": "7.3.0-integration-parameterization.9",
|
|
42
|
+
"@prisma/internals": "7.3.0-integration-parameterization.9",
|
|
43
|
+
"@prisma/param-graph-builder": "7.3.0-integration-parameterization.9",
|
|
44
|
+
"@prisma/ts-builders": "7.3.0-integration-parameterization.9"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
46
47
|
"@types/pluralize": "0.0.33",
|