@prisma/client-generator-js 7.3.0-integration-engines-7-3-0-13-parameterization-ffcc2ffa23a1cf2fa93cc75600377a7bcf8b3b08.1 → 7.3.0-integration-parameterization.5
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/TSClient/TSClient.d.ts +1 -0
- package/dist/index.js +11 -1
- package/dist/index.mjs +11 -1
- package/package.json +10 -9
package/dist/TSClient/Args.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export declare class ArgsTypeBuilder {
|
|
|
23
23
|
isNullable: boolean;
|
|
24
24
|
isRequired: boolean;
|
|
25
25
|
inputTypes: DMMF.InputTypeRef[];
|
|
26
|
+
isParameterizable: boolean;
|
|
26
27
|
requiresOtherFields?: string[] | undefined;
|
|
27
28
|
deprecation?: DMMF.ReadonlyDeep<{
|
|
28
29
|
sinceVersion: string;
|
|
@@ -23,6 +23,7 @@ export declare class TSClient implements Generable {
|
|
|
23
23
|
protected readonly dmmf: DMMFHelper;
|
|
24
24
|
protected readonly genericsInfo: GenericArgsInfo;
|
|
25
25
|
constructor(options: TSClientOptions);
|
|
26
|
+
private buildParamGraphConfig;
|
|
26
27
|
toJS(): string;
|
|
27
28
|
toTS(): string;
|
|
28
29
|
toBrowserJS(): string;
|
package/dist/index.js
CHANGED
|
@@ -2493,6 +2493,8 @@ var package_default = {
|
|
|
2493
2493
|
"@prisma/internals": "workspace:*",
|
|
2494
2494
|
"@prisma/json-protocol": "workspace:*",
|
|
2495
2495
|
"@prisma/migrate": "workspace:*",
|
|
2496
|
+
"@prisma/param-graph": "workspace:*",
|
|
2497
|
+
"@prisma/param-graph-builder": "workspace:*",
|
|
2496
2498
|
"@prisma/query-compiler-wasm": "7.3.0-13.parameterization-ffcc2ffa23a1cf2fa93cc75600377a7bcf8b3b08",
|
|
2497
2499
|
"@prisma/query-plan-executor": "workspace:*",
|
|
2498
2500
|
"@prisma/sqlcommenter": "workspace:*",
|
|
@@ -3862,6 +3864,7 @@ ${aggregateTypes.length > 1 ? aggregateTypes.slice(1).map((type) => {
|
|
|
3862
3864
|
name: field.name,
|
|
3863
3865
|
isNullable: false,
|
|
3864
3866
|
isRequired: false,
|
|
3867
|
+
isParameterizable: false,
|
|
3865
3868
|
inputTypes: [
|
|
3866
3869
|
{
|
|
3867
3870
|
isList: false,
|
|
@@ -4335,6 +4338,7 @@ function fluentWrapperName(modelName) {
|
|
|
4335
4338
|
|
|
4336
4339
|
// src/TSClient/TSClient.ts
|
|
4337
4340
|
var import_dmmf = require("@prisma/dmmf");
|
|
4341
|
+
var import_param_graph_builder = require("@prisma/param-graph-builder");
|
|
4338
4342
|
var ts12 = __toESM(require("@prisma/ts-builders"));
|
|
4339
4343
|
var import_indent_string7 = __toESM(require("indent-string"));
|
|
4340
4344
|
|
|
@@ -5803,6 +5807,11 @@ var TSClient = class {
|
|
|
5803
5807
|
}
|
|
5804
5808
|
dmmf;
|
|
5805
5809
|
genericsInfo;
|
|
5810
|
+
buildParamGraphConfig() {
|
|
5811
|
+
const paramGraph = (0, import_param_graph_builder.buildParamGraph)(this.options.dmmf);
|
|
5812
|
+
const paramGraphJson = JSON.stringify(JSON.stringify(paramGraph));
|
|
5813
|
+
return `config.parameterizationSchema = JSON.parse(${paramGraphJson})`;
|
|
5814
|
+
}
|
|
5806
5815
|
toJS() {
|
|
5807
5816
|
const { edge, wasm, generator, datamodel: inlineSchema, runtimeName, reusedJs, compilerBuild } = this.options;
|
|
5808
5817
|
if (reusedJs) {
|
|
@@ -5836,6 +5845,7 @@ ${new Enum(
|
|
|
5836
5845
|
*/
|
|
5837
5846
|
const config = ${JSON.stringify(config, null, 2)}
|
|
5838
5847
|
${buildRuntimeDataModel(this.dmmf.datamodel, runtimeName)}
|
|
5848
|
+
${this.buildParamGraphConfig()}
|
|
5839
5849
|
${buildQueryCompilerWasmModule(wasm, runtimeName, compilerBuild)}
|
|
5840
5850
|
${buildDebugInitialization(edge)}
|
|
5841
5851
|
const PrismaClient = getPrismaClient(config)
|
|
@@ -6813,7 +6823,7 @@ var import_engines_version = require("@prisma/engines-version");
|
|
|
6813
6823
|
var import_internals9 = require("@prisma/internals");
|
|
6814
6824
|
|
|
6815
6825
|
// package.json
|
|
6816
|
-
var version = "7.3.0-integration-
|
|
6826
|
+
var version = "7.3.0-integration-parameterization.5";
|
|
6817
6827
|
|
|
6818
6828
|
// src/resolvePrismaClient.ts
|
|
6819
6829
|
var import_promises2 = __toESM(require("node:fs/promises"));
|
package/dist/index.mjs
CHANGED
|
@@ -2482,6 +2482,8 @@ var package_default = {
|
|
|
2482
2482
|
"@prisma/internals": "workspace:*",
|
|
2483
2483
|
"@prisma/json-protocol": "workspace:*",
|
|
2484
2484
|
"@prisma/migrate": "workspace:*",
|
|
2485
|
+
"@prisma/param-graph": "workspace:*",
|
|
2486
|
+
"@prisma/param-graph-builder": "workspace:*",
|
|
2485
2487
|
"@prisma/query-compiler-wasm": "7.3.0-13.parameterization-ffcc2ffa23a1cf2fa93cc75600377a7bcf8b3b08",
|
|
2486
2488
|
"@prisma/query-plan-executor": "workspace:*",
|
|
2487
2489
|
"@prisma/sqlcommenter": "workspace:*",
|
|
@@ -3851,6 +3853,7 @@ ${aggregateTypes.length > 1 ? aggregateTypes.slice(1).map((type) => {
|
|
|
3851
3853
|
name: field.name,
|
|
3852
3854
|
isNullable: false,
|
|
3853
3855
|
isRequired: false,
|
|
3856
|
+
isParameterizable: false,
|
|
3854
3857
|
inputTypes: [
|
|
3855
3858
|
{
|
|
3856
3859
|
isList: false,
|
|
@@ -4324,6 +4327,7 @@ function fluentWrapperName(modelName) {
|
|
|
4324
4327
|
|
|
4325
4328
|
// src/TSClient/TSClient.ts
|
|
4326
4329
|
import { datamodelEnumToSchemaEnum } from "@prisma/dmmf";
|
|
4330
|
+
import { buildParamGraph } from "@prisma/param-graph-builder";
|
|
4327
4331
|
import * as ts12 from "@prisma/ts-builders";
|
|
4328
4332
|
import indent7 from "indent-string";
|
|
4329
4333
|
|
|
@@ -5795,6 +5799,11 @@ var TSClient = class {
|
|
|
5795
5799
|
}
|
|
5796
5800
|
dmmf;
|
|
5797
5801
|
genericsInfo;
|
|
5802
|
+
buildParamGraphConfig() {
|
|
5803
|
+
const paramGraph = buildParamGraph(this.options.dmmf);
|
|
5804
|
+
const paramGraphJson = JSON.stringify(JSON.stringify(paramGraph));
|
|
5805
|
+
return `config.parameterizationSchema = JSON.parse(${paramGraphJson})`;
|
|
5806
|
+
}
|
|
5798
5807
|
toJS() {
|
|
5799
5808
|
const { edge, wasm, generator, datamodel: inlineSchema, runtimeName, reusedJs, compilerBuild } = this.options;
|
|
5800
5809
|
if (reusedJs) {
|
|
@@ -5828,6 +5837,7 @@ ${new Enum(
|
|
|
5828
5837
|
*/
|
|
5829
5838
|
const config = ${JSON.stringify(config, null, 2)}
|
|
5830
5839
|
${buildRuntimeDataModel(this.dmmf.datamodel, runtimeName)}
|
|
5840
|
+
${this.buildParamGraphConfig()}
|
|
5831
5841
|
${buildQueryCompilerWasmModule(wasm, runtimeName, compilerBuild)}
|
|
5832
5842
|
${buildDebugInitialization(edge)}
|
|
5833
5843
|
const PrismaClient = getPrismaClient(config)
|
|
@@ -6805,7 +6815,7 @@ import { enginesVersion } from "@prisma/engines-version";
|
|
|
6805
6815
|
import { parseEnvValue } from "@prisma/internals";
|
|
6806
6816
|
|
|
6807
6817
|
// package.json
|
|
6808
|
-
var version = "7.3.0-integration-
|
|
6818
|
+
var version = "7.3.0-integration-parameterization.5";
|
|
6809
6819
|
|
|
6810
6820
|
// src/resolvePrismaClient.ts
|
|
6811
6821
|
import fs2 from "node:fs/promises";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-generator-js",
|
|
3
|
-
"version": "7.3.0-integration-
|
|
3
|
+
"version": "7.3.0-integration-parameterization.5",
|
|
4
4
|
"description": "This package is intended for Prisma's internal use",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -32,14 +32,15 @@
|
|
|
32
32
|
"package-up": "5.0.0",
|
|
33
33
|
"pluralize": "8.0.0",
|
|
34
34
|
"ts-pattern": "5.6.2",
|
|
35
|
-
"@prisma/client-common": "7.3.0-integration-
|
|
36
|
-
"@prisma/debug": "7.3.0-integration-
|
|
37
|
-
"@prisma/fetch-engine": "7.3.0-integration-
|
|
38
|
-
"@prisma/
|
|
39
|
-
"@prisma/
|
|
40
|
-
"@prisma/get-platform": "7.3.0-integration-
|
|
41
|
-
"@prisma/internals": "7.3.0-integration-
|
|
42
|
-
"@prisma/
|
|
35
|
+
"@prisma/client-common": "7.3.0-integration-parameterization.5",
|
|
36
|
+
"@prisma/debug": "7.3.0-integration-parameterization.5",
|
|
37
|
+
"@prisma/fetch-engine": "7.3.0-integration-parameterization.5",
|
|
38
|
+
"@prisma/generator": "7.3.0-integration-parameterization.5",
|
|
39
|
+
"@prisma/dmmf": "7.3.0-integration-parameterization.5",
|
|
40
|
+
"@prisma/get-platform": "7.3.0-integration-parameterization.5",
|
|
41
|
+
"@prisma/internals": "7.3.0-integration-parameterization.5",
|
|
42
|
+
"@prisma/param-graph-builder": "7.3.0-integration-parameterization.5",
|
|
43
|
+
"@prisma/ts-builders": "7.3.0-integration-parameterization.5"
|
|
43
44
|
},
|
|
44
45
|
"devDependencies": {
|
|
45
46
|
"@types/pluralize": "0.0.33",
|