@prisma/client-generator-ts 7.4.0-dev.21 → 7.4.0-dev.22

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 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,25 @@ 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: { strings: [], graph: "" }
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 serialized = (0, import_param_graph_builder.buildAndSerializeParamGraph)(dmmf);
3856
+ const stringsJson = JSON.stringify(JSON.stringify(serialized.strings));
3857
+ return `config.parameterizationSchema = {
3858
+ strings: JSON.parse(${stringsJson}),
3859
+ graph: "${serialized.graph}"
3860
+ }`;
3861
+ }
3850
3862
 
3851
3863
  // src/TSClient/file-generators/ClientFile.ts
3852
3864
  var ts7 = __toESM(require("@prisma/ts-builders"));
@@ -6413,7 +6425,7 @@ var import_internals7 = require("@prisma/internals");
6413
6425
  var import_get_tsconfig = require("get-tsconfig");
6414
6426
 
6415
6427
  // package.json
6416
- var version = "7.4.0-dev.21";
6428
+ var version = "7.4.0-dev.22";
6417
6429
 
6418
6430
  // src/module-format.ts
6419
6431
  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 { buildAndSerializeParamGraph } 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,25 @@ 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: { strings: [], graph: "" }
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 serialized = buildAndSerializeParamGraph(dmmf);
3849
+ const stringsJson = JSON.stringify(JSON.stringify(serialized.strings));
3850
+ return `config.parameterizationSchema = {
3851
+ strings: JSON.parse(${stringsJson}),
3852
+ graph: "${serialized.graph}"
3853
+ }`;
3854
+ }
3843
3855
 
3844
3856
  // src/TSClient/file-generators/ClientFile.ts
3845
3857
  import * as ts7 from "@prisma/ts-builders";
@@ -6406,7 +6418,7 @@ import { parseEnvValue } from "@prisma/internals";
6406
6418
  import { getTsconfig } from "get-tsconfig";
6407
6419
 
6408
6420
  // package.json
6409
- var version = "7.4.0-dev.21";
6421
+ var version = "7.4.0-dev.22";
6410
6422
 
6411
6423
  // src/module-format.ts
6412
6424
  function parseModuleFormat(format) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client-generator-ts",
3
- "version": "7.4.0-dev.21",
3
+ "version": "7.4.0-dev.22",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -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/client-common": "7.4.0-dev.21",
37
- "@prisma/generator": "7.4.0-dev.21",
38
- "@prisma/dmmf": "7.4.0-dev.21",
39
- "@prisma/debug": "7.4.0-dev.21",
40
- "@prisma/fetch-engine": "7.4.0-dev.21",
41
- "@prisma/get-platform": "7.4.0-dev.21",
42
- "@prisma/internals": "7.4.0-dev.21",
43
- "@prisma/ts-builders": "7.4.0-dev.21"
36
+ "@prisma/debug": "7.4.0-dev.22",
37
+ "@prisma/client-common": "7.4.0-dev.22",
38
+ "@prisma/dmmf": "7.4.0-dev.22",
39
+ "@prisma/fetch-engine": "7.4.0-dev.22",
40
+ "@prisma/get-platform": "7.4.0-dev.22",
41
+ "@prisma/generator": "7.4.0-dev.22",
42
+ "@prisma/param-graph-builder": "7.4.0-dev.22",
43
+ "@prisma/internals": "7.4.0-dev.22",
44
+ "@prisma/ts-builders": "7.4.0-dev.22"
44
45
  },
45
46
  "devDependencies": {
46
47
  "@types/pluralize": "0.0.33",