@prisma/client-generator-js 6.18.0 → 6.19.0-integration-next.2
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 +43 -29
- package/dist/index.mjs +44 -30
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -2992,7 +2992,7 @@ var package_default = {
|
|
|
2992
2992
|
},
|
|
2993
2993
|
license: "Apache-2.0",
|
|
2994
2994
|
engines: {
|
|
2995
|
-
node: "
|
|
2995
|
+
node: "^20.19 || ^22.12 || ^24.0"
|
|
2996
2996
|
},
|
|
2997
2997
|
homepage: "https://www.prisma.io",
|
|
2998
2998
|
repository: {
|
|
@@ -3084,7 +3084,6 @@ var package_default = {
|
|
|
3084
3084
|
"@prisma/instrumentation": "workspace:*",
|
|
3085
3085
|
"@prisma/internals": "workspace:*",
|
|
3086
3086
|
"@prisma/migrate": "workspace:*",
|
|
3087
|
-
"@prisma/mini-proxy": "0.9.5",
|
|
3088
3087
|
"@prisma/query-compiler-wasm": "6.18.0-8.34b5a692b7bd79939a9a2c3ef97d816e749cda2f",
|
|
3089
3088
|
"@prisma/query-engine-wasm": "6.18.0-8.34b5a692b7bd79939a9a2c3ef97d816e749cda2f",
|
|
3090
3089
|
"@prisma/query-plan-executor": "workspace:*",
|
|
@@ -3099,12 +3098,11 @@ var package_default = {
|
|
|
3099
3098
|
"@types/jest": "29.5.14",
|
|
3100
3099
|
"@types/js-levenshtein": "1.1.3",
|
|
3101
3100
|
"@types/mssql": "9.1.8",
|
|
3102
|
-
"@types/node": "
|
|
3101
|
+
"@types/node": "~20.19.0",
|
|
3103
3102
|
"@types/pg": "8.11.11",
|
|
3104
3103
|
arg: "5.0.2",
|
|
3105
3104
|
benchmark: "2.1.4",
|
|
3106
3105
|
"cookie-es": "2.0.0",
|
|
3107
|
-
"decimal.js": "10.5.0",
|
|
3108
3106
|
execa: "8.0.1",
|
|
3109
3107
|
"expect-type": "1.2.2",
|
|
3110
3108
|
"fs-extra": "11.3.0",
|
|
@@ -3129,7 +3127,6 @@ var package_default = {
|
|
|
3129
3127
|
"simple-statistics": "7.8.8",
|
|
3130
3128
|
"sort-keys": "5.1.0",
|
|
3131
3129
|
"source-map-support": "0.5.21",
|
|
3132
|
-
"sql-template-tag": "5.2.1",
|
|
3133
3130
|
"stacktrace-parser": "0.1.11",
|
|
3134
3131
|
"strip-ansi": "7.1.0",
|
|
3135
3132
|
"strip-indent": "4.0.0",
|
|
@@ -3140,9 +3137,12 @@ var package_default = {
|
|
|
3140
3137
|
undici: "7.4.0",
|
|
3141
3138
|
zx: "8.4.1"
|
|
3142
3139
|
},
|
|
3140
|
+
dependencies: {
|
|
3141
|
+
"@prisma/client-runtime-utils": "workspace:*"
|
|
3142
|
+
},
|
|
3143
3143
|
peerDependencies: {
|
|
3144
3144
|
prisma: "*",
|
|
3145
|
-
typescript: ">=5.
|
|
3145
|
+
typescript: ">=5.4.0"
|
|
3146
3146
|
},
|
|
3147
3147
|
peerDependenciesMeta: {
|
|
3148
3148
|
prisma: {
|
|
@@ -3187,7 +3187,7 @@ var Enum = class {
|
|
|
3187
3187
|
toJS() {
|
|
3188
3188
|
const { type } = this;
|
|
3189
3189
|
const enumVariants = `{
|
|
3190
|
-
${(0, import_indent_string.default)(type.
|
|
3190
|
+
${(0, import_indent_string.default)(type.data.map((v) => `${v.key}: ${this.getValueJS(v.value)}`).join(",\n"), TAB_SIZE)}
|
|
3191
3191
|
}`;
|
|
3192
3192
|
const enumBody = this.isStrictEnum() ? `makeStrictEnum(${enumVariants})` : enumVariants;
|
|
3193
3193
|
return this.useNamespace ? `exports.Prisma.${type.name} = ${enumBody};` : `exports.${type.name} = exports.$Enums.${type.name} = ${enumBody};`;
|
|
@@ -3198,7 +3198,7 @@ ${(0, import_indent_string.default)(type.values.map((v) => `${v}: ${this.getValu
|
|
|
3198
3198
|
toTS() {
|
|
3199
3199
|
const { type } = this;
|
|
3200
3200
|
return `export const ${type.name}: {
|
|
3201
|
-
${(0, import_indent_string.default)(type.
|
|
3201
|
+
${(0, import_indent_string.default)(type.data.map((v) => `${v.key}: ${this.getValueTS(v.value)}`).join(",\n"), TAB_SIZE)}
|
|
3202
3202
|
};
|
|
3203
3203
|
|
|
3204
3204
|
export type ${type.name} = (typeof ${type.name})[keyof typeof ${type.name}]
|
|
@@ -5359,7 +5359,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5359
5359
|
${browser ? `
|
|
5360
5360
|
const {
|
|
5361
5361
|
Decimal,
|
|
5362
|
-
|
|
5362
|
+
DbNull,
|
|
5363
|
+
JsonNull,
|
|
5364
|
+
AnyNull,
|
|
5365
|
+
NullTypes,
|
|
5363
5366
|
makeStrictEnum,
|
|
5364
5367
|
Public,
|
|
5365
5368
|
getRuntime,
|
|
@@ -5380,7 +5383,10 @@ const {
|
|
|
5380
5383
|
skip,
|
|
5381
5384
|
Decimal,
|
|
5382
5385
|
Debug,
|
|
5383
|
-
|
|
5386
|
+
DbNull,
|
|
5387
|
+
JsonNull,
|
|
5388
|
+
AnyNull,
|
|
5389
|
+
NullTypes,
|
|
5384
5390
|
makeStrictEnum,
|
|
5385
5391
|
Extensions,
|
|
5386
5392
|
warnOnce,
|
|
@@ -5430,15 +5436,11 @@ Prisma.defineExtension = ${notSupportOnBrowser("Extensions.defineExtension", bro
|
|
|
5430
5436
|
/**
|
|
5431
5437
|
* Shorthand utilities for JSON filtering
|
|
5432
5438
|
*/
|
|
5433
|
-
Prisma.DbNull =
|
|
5434
|
-
Prisma.JsonNull =
|
|
5435
|
-
Prisma.AnyNull =
|
|
5439
|
+
Prisma.DbNull = DbNull
|
|
5440
|
+
Prisma.JsonNull = JsonNull
|
|
5441
|
+
Prisma.AnyNull = AnyNull
|
|
5436
5442
|
|
|
5437
|
-
Prisma.NullTypes =
|
|
5438
|
-
DbNull: objectEnumValues.classes.DbNull,
|
|
5439
|
-
JsonNull: objectEnumValues.classes.JsonNull,
|
|
5440
|
-
AnyNull: objectEnumValues.classes.AnyNull
|
|
5441
|
-
}
|
|
5443
|
+
Prisma.NullTypes = NullTypes
|
|
5442
5444
|
|
|
5443
5445
|
${buildPrismaSkipJs(generator.previewFeatures)}
|
|
5444
5446
|
`;
|
|
@@ -6504,8 +6506,6 @@ export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClie
|
|
|
6504
6506
|
buildClientOptions() {
|
|
6505
6507
|
const clientOptions = ts11.interfaceDeclaration("PrismaClientOptions").add(
|
|
6506
6508
|
ts11.property("datasources", ts11.namedType("Datasources")).optional().setDocComment(ts11.docComment("Overwrites the datasource url from your schema.prisma file"))
|
|
6507
|
-
).add(
|
|
6508
|
-
ts11.property("datasourceUrl", ts11.stringType).optional().setDocComment(ts11.docComment("Overwrites the datasource url from your schema.prisma file"))
|
|
6509
6509
|
).add(
|
|
6510
6510
|
ts11.property("errorFormat", ts11.namedType("ErrorFormat")).optional().setDocComment(ts11.docComment('@default "colorless"'))
|
|
6511
6511
|
).add(
|
|
@@ -6631,13 +6631,16 @@ ${buildRequirePath(edge)}
|
|
|
6631
6631
|
/**
|
|
6632
6632
|
* Enums
|
|
6633
6633
|
*/
|
|
6634
|
-
${this.dmmf.schema.enumTypes.prisma?.map((type) => new Enum(type, true).toJS()).join("\n\n")}
|
|
6634
|
+
${this.dmmf.schema.enumTypes.prisma?.map((type) => new Enum((0, import_dmmf.datamodelSchemaEnumToSchemaEnum)(type), true).toJS()).join("\n\n")}
|
|
6635
6635
|
${this.dmmf.datamodel.enums.map((datamodelEnum) => new Enum((0, import_dmmf.datamodelEnumToSchemaEnum)(datamodelEnum), false).toJS()).join("\n\n")}
|
|
6636
6636
|
|
|
6637
6637
|
${new Enum(
|
|
6638
6638
|
{
|
|
6639
6639
|
name: "ModelName",
|
|
6640
|
-
|
|
6640
|
+
data: this.dmmf.mappings.modelOperations.map((m) => ({
|
|
6641
|
+
key: m.model,
|
|
6642
|
+
value: m.model
|
|
6643
|
+
}))
|
|
6641
6644
|
},
|
|
6642
6645
|
true
|
|
6643
6646
|
).toJS()}
|
|
@@ -6684,7 +6687,9 @@ ${buildNFTAnnotations(edge || !copyEngine, clientEngineType, binaryTargets, rela
|
|
|
6684
6687
|
}
|
|
6685
6688
|
return acc;
|
|
6686
6689
|
}, []);
|
|
6687
|
-
const prismaEnums = this.dmmf.schema.enumTypes.prisma?.map(
|
|
6690
|
+
const prismaEnums = this.dmmf.schema.enumTypes.prisma?.map(
|
|
6691
|
+
(type) => new Enum((0, import_dmmf.datamodelSchemaEnumToSchemaEnum)(type), true).toTS()
|
|
6692
|
+
);
|
|
6688
6693
|
const modelEnums = [];
|
|
6689
6694
|
const modelEnumsAliases = [];
|
|
6690
6695
|
for (const datamodelEnum of this.dmmf.datamodel.enums) {
|
|
@@ -6726,7 +6731,10 @@ ${(0, import_indent_string8.default)(
|
|
|
6726
6731
|
${new Enum(
|
|
6727
6732
|
{
|
|
6728
6733
|
name: "ModelName",
|
|
6729
|
-
|
|
6734
|
+
data: this.dmmf.mappings.modelOperations.map((m) => ({
|
|
6735
|
+
key: m.model,
|
|
6736
|
+
value: m.model
|
|
6737
|
+
}))
|
|
6730
6738
|
},
|
|
6731
6739
|
true
|
|
6732
6740
|
).toTS()}
|
|
@@ -6810,13 +6818,16 @@ export const dmmf: runtime.BaseDMMF
|
|
|
6810
6818
|
* Enums
|
|
6811
6819
|
*/
|
|
6812
6820
|
|
|
6813
|
-
${this.dmmf.schema.enumTypes.prisma?.map((type) => new Enum(type, true).toJS()).join("\n\n")}
|
|
6814
|
-
${this.dmmf.schema.enumTypes.model?.map((type) => new Enum(type, false).toJS()).join("\n\n") ?? ""}
|
|
6821
|
+
${this.dmmf.schema.enumTypes.prisma?.map((type) => new Enum((0, import_dmmf.datamodelSchemaEnumToSchemaEnum)(type), true).toJS()).join("\n\n")}
|
|
6822
|
+
${this.dmmf.schema.enumTypes.model?.map((type) => new Enum((0, import_dmmf.datamodelSchemaEnumToSchemaEnum)(type), false).toJS()).join("\n\n") ?? ""}
|
|
6815
6823
|
|
|
6816
6824
|
${new Enum(
|
|
6817
6825
|
{
|
|
6818
6826
|
name: "ModelName",
|
|
6819
|
-
|
|
6827
|
+
data: this.dmmf.mappings.modelOperations.map((m) => ({
|
|
6828
|
+
key: m.model,
|
|
6829
|
+
value: m.model
|
|
6830
|
+
}))
|
|
6820
6831
|
},
|
|
6821
6832
|
true
|
|
6822
6833
|
).toJS()}
|
|
@@ -7257,7 +7268,10 @@ async function buildClient({
|
|
|
7257
7268
|
".": exportsMapDefault
|
|
7258
7269
|
},
|
|
7259
7270
|
version: clientVersion,
|
|
7260
|
-
sideEffects: false
|
|
7271
|
+
sideEffects: false,
|
|
7272
|
+
dependencies: {
|
|
7273
|
+
"@prisma/client-runtime-utils": clientVersion
|
|
7274
|
+
}
|
|
7261
7275
|
};
|
|
7262
7276
|
const fileMap = {};
|
|
7263
7277
|
fileMap["index.js"] = JS(nodeClient);
|
|
@@ -7728,7 +7742,7 @@ var import_internals12 = require("@prisma/internals");
|
|
|
7728
7742
|
var import_ts_pattern = require("ts-pattern");
|
|
7729
7743
|
|
|
7730
7744
|
// package.json
|
|
7731
|
-
var version = "6.
|
|
7745
|
+
var version = "6.19.0-integration-next.2";
|
|
7732
7746
|
|
|
7733
7747
|
// src/resolvePrismaClient.ts
|
|
7734
7748
|
var import_promises3 = __toESM(require("node:fs/promises"));
|
package/dist/index.mjs
CHANGED
|
@@ -2987,7 +2987,7 @@ var package_default = {
|
|
|
2987
2987
|
},
|
|
2988
2988
|
license: "Apache-2.0",
|
|
2989
2989
|
engines: {
|
|
2990
|
-
node: "
|
|
2990
|
+
node: "^20.19 || ^22.12 || ^24.0"
|
|
2991
2991
|
},
|
|
2992
2992
|
homepage: "https://www.prisma.io",
|
|
2993
2993
|
repository: {
|
|
@@ -3079,7 +3079,6 @@ var package_default = {
|
|
|
3079
3079
|
"@prisma/instrumentation": "workspace:*",
|
|
3080
3080
|
"@prisma/internals": "workspace:*",
|
|
3081
3081
|
"@prisma/migrate": "workspace:*",
|
|
3082
|
-
"@prisma/mini-proxy": "0.9.5",
|
|
3083
3082
|
"@prisma/query-compiler-wasm": "6.18.0-8.34b5a692b7bd79939a9a2c3ef97d816e749cda2f",
|
|
3084
3083
|
"@prisma/query-engine-wasm": "6.18.0-8.34b5a692b7bd79939a9a2c3ef97d816e749cda2f",
|
|
3085
3084
|
"@prisma/query-plan-executor": "workspace:*",
|
|
@@ -3094,12 +3093,11 @@ var package_default = {
|
|
|
3094
3093
|
"@types/jest": "29.5.14",
|
|
3095
3094
|
"@types/js-levenshtein": "1.1.3",
|
|
3096
3095
|
"@types/mssql": "9.1.8",
|
|
3097
|
-
"@types/node": "
|
|
3096
|
+
"@types/node": "~20.19.0",
|
|
3098
3097
|
"@types/pg": "8.11.11",
|
|
3099
3098
|
arg: "5.0.2",
|
|
3100
3099
|
benchmark: "2.1.4",
|
|
3101
3100
|
"cookie-es": "2.0.0",
|
|
3102
|
-
"decimal.js": "10.5.0",
|
|
3103
3101
|
execa: "8.0.1",
|
|
3104
3102
|
"expect-type": "1.2.2",
|
|
3105
3103
|
"fs-extra": "11.3.0",
|
|
@@ -3124,7 +3122,6 @@ var package_default = {
|
|
|
3124
3122
|
"simple-statistics": "7.8.8",
|
|
3125
3123
|
"sort-keys": "5.1.0",
|
|
3126
3124
|
"source-map-support": "0.5.21",
|
|
3127
|
-
"sql-template-tag": "5.2.1",
|
|
3128
3125
|
"stacktrace-parser": "0.1.11",
|
|
3129
3126
|
"strip-ansi": "7.1.0",
|
|
3130
3127
|
"strip-indent": "4.0.0",
|
|
@@ -3135,9 +3132,12 @@ var package_default = {
|
|
|
3135
3132
|
undici: "7.4.0",
|
|
3136
3133
|
zx: "8.4.1"
|
|
3137
3134
|
},
|
|
3135
|
+
dependencies: {
|
|
3136
|
+
"@prisma/client-runtime-utils": "workspace:*"
|
|
3137
|
+
},
|
|
3138
3138
|
peerDependencies: {
|
|
3139
3139
|
prisma: "*",
|
|
3140
|
-
typescript: ">=5.
|
|
3140
|
+
typescript: ">=5.4.0"
|
|
3141
3141
|
},
|
|
3142
3142
|
peerDependenciesMeta: {
|
|
3143
3143
|
prisma: {
|
|
@@ -3182,7 +3182,7 @@ var Enum = class {
|
|
|
3182
3182
|
toJS() {
|
|
3183
3183
|
const { type } = this;
|
|
3184
3184
|
const enumVariants = `{
|
|
3185
|
-
${indent(type.
|
|
3185
|
+
${indent(type.data.map((v) => `${v.key}: ${this.getValueJS(v.value)}`).join(",\n"), TAB_SIZE)}
|
|
3186
3186
|
}`;
|
|
3187
3187
|
const enumBody = this.isStrictEnum() ? `makeStrictEnum(${enumVariants})` : enumVariants;
|
|
3188
3188
|
return this.useNamespace ? `exports.Prisma.${type.name} = ${enumBody};` : `exports.${type.name} = exports.$Enums.${type.name} = ${enumBody};`;
|
|
@@ -3193,7 +3193,7 @@ ${indent(type.values.map((v) => `${v}: ${this.getValueJS(v)}`).join(",\n"), TAB_
|
|
|
3193
3193
|
toTS() {
|
|
3194
3194
|
const { type } = this;
|
|
3195
3195
|
return `export const ${type.name}: {
|
|
3196
|
-
${indent(type.
|
|
3196
|
+
${indent(type.data.map((v) => `${v.key}: ${this.getValueTS(v.value)}`).join(",\n"), TAB_SIZE)}
|
|
3197
3197
|
};
|
|
3198
3198
|
|
|
3199
3199
|
export type ${type.name} = (typeof ${type.name})[keyof typeof ${type.name}]
|
|
@@ -4919,7 +4919,7 @@ function fluentWrapperName(modelName) {
|
|
|
4919
4919
|
}
|
|
4920
4920
|
|
|
4921
4921
|
// src/TSClient/TSClient.ts
|
|
4922
|
-
import { datamodelEnumToSchemaEnum } from "@prisma/dmmf";
|
|
4922
|
+
import { datamodelEnumToSchemaEnum, datamodelSchemaEnumToSchemaEnum } from "@prisma/dmmf";
|
|
4923
4923
|
import { ClientEngineType as ClientEngineType2, getClientEngineType, pathToPosix as pathToPosix3 } from "@prisma/internals";
|
|
4924
4924
|
import * as ts12 from "@prisma/ts-builders";
|
|
4925
4925
|
import ciInfo from "ci-info";
|
|
@@ -5357,7 +5357,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5357
5357
|
${browser ? `
|
|
5358
5358
|
const {
|
|
5359
5359
|
Decimal,
|
|
5360
|
-
|
|
5360
|
+
DbNull,
|
|
5361
|
+
JsonNull,
|
|
5362
|
+
AnyNull,
|
|
5363
|
+
NullTypes,
|
|
5361
5364
|
makeStrictEnum,
|
|
5362
5365
|
Public,
|
|
5363
5366
|
getRuntime,
|
|
@@ -5378,7 +5381,10 @@ const {
|
|
|
5378
5381
|
skip,
|
|
5379
5382
|
Decimal,
|
|
5380
5383
|
Debug,
|
|
5381
|
-
|
|
5384
|
+
DbNull,
|
|
5385
|
+
JsonNull,
|
|
5386
|
+
AnyNull,
|
|
5387
|
+
NullTypes,
|
|
5382
5388
|
makeStrictEnum,
|
|
5383
5389
|
Extensions,
|
|
5384
5390
|
warnOnce,
|
|
@@ -5428,15 +5434,11 @@ Prisma.defineExtension = ${notSupportOnBrowser("Extensions.defineExtension", bro
|
|
|
5428
5434
|
/**
|
|
5429
5435
|
* Shorthand utilities for JSON filtering
|
|
5430
5436
|
*/
|
|
5431
|
-
Prisma.DbNull =
|
|
5432
|
-
Prisma.JsonNull =
|
|
5433
|
-
Prisma.AnyNull =
|
|
5437
|
+
Prisma.DbNull = DbNull
|
|
5438
|
+
Prisma.JsonNull = JsonNull
|
|
5439
|
+
Prisma.AnyNull = AnyNull
|
|
5434
5440
|
|
|
5435
|
-
Prisma.NullTypes =
|
|
5436
|
-
DbNull: objectEnumValues.classes.DbNull,
|
|
5437
|
-
JsonNull: objectEnumValues.classes.JsonNull,
|
|
5438
|
-
AnyNull: objectEnumValues.classes.AnyNull
|
|
5439
|
-
}
|
|
5441
|
+
Prisma.NullTypes = NullTypes
|
|
5440
5442
|
|
|
5441
5443
|
${buildPrismaSkipJs(generator.previewFeatures)}
|
|
5442
5444
|
`;
|
|
@@ -6502,8 +6504,6 @@ export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClie
|
|
|
6502
6504
|
buildClientOptions() {
|
|
6503
6505
|
const clientOptions = ts11.interfaceDeclaration("PrismaClientOptions").add(
|
|
6504
6506
|
ts11.property("datasources", ts11.namedType("Datasources")).optional().setDocComment(ts11.docComment("Overwrites the datasource url from your schema.prisma file"))
|
|
6505
|
-
).add(
|
|
6506
|
-
ts11.property("datasourceUrl", ts11.stringType).optional().setDocComment(ts11.docComment("Overwrites the datasource url from your schema.prisma file"))
|
|
6507
6507
|
).add(
|
|
6508
6508
|
ts11.property("errorFormat", ts11.namedType("ErrorFormat")).optional().setDocComment(ts11.docComment('@default "colorless"'))
|
|
6509
6509
|
).add(
|
|
@@ -6629,13 +6629,16 @@ ${buildRequirePath(edge)}
|
|
|
6629
6629
|
/**
|
|
6630
6630
|
* Enums
|
|
6631
6631
|
*/
|
|
6632
|
-
${this.dmmf.schema.enumTypes.prisma?.map((type) => new Enum(type, true).toJS()).join("\n\n")}
|
|
6632
|
+
${this.dmmf.schema.enumTypes.prisma?.map((type) => new Enum(datamodelSchemaEnumToSchemaEnum(type), true).toJS()).join("\n\n")}
|
|
6633
6633
|
${this.dmmf.datamodel.enums.map((datamodelEnum) => new Enum(datamodelEnumToSchemaEnum(datamodelEnum), false).toJS()).join("\n\n")}
|
|
6634
6634
|
|
|
6635
6635
|
${new Enum(
|
|
6636
6636
|
{
|
|
6637
6637
|
name: "ModelName",
|
|
6638
|
-
|
|
6638
|
+
data: this.dmmf.mappings.modelOperations.map((m) => ({
|
|
6639
|
+
key: m.model,
|
|
6640
|
+
value: m.model
|
|
6641
|
+
}))
|
|
6639
6642
|
},
|
|
6640
6643
|
true
|
|
6641
6644
|
).toJS()}
|
|
@@ -6682,7 +6685,9 @@ ${buildNFTAnnotations(edge || !copyEngine, clientEngineType, binaryTargets, rela
|
|
|
6682
6685
|
}
|
|
6683
6686
|
return acc;
|
|
6684
6687
|
}, []);
|
|
6685
|
-
const prismaEnums = this.dmmf.schema.enumTypes.prisma?.map(
|
|
6688
|
+
const prismaEnums = this.dmmf.schema.enumTypes.prisma?.map(
|
|
6689
|
+
(type) => new Enum(datamodelSchemaEnumToSchemaEnum(type), true).toTS()
|
|
6690
|
+
);
|
|
6686
6691
|
const modelEnums = [];
|
|
6687
6692
|
const modelEnumsAliases = [];
|
|
6688
6693
|
for (const datamodelEnum of this.dmmf.datamodel.enums) {
|
|
@@ -6724,7 +6729,10 @@ ${indent8(
|
|
|
6724
6729
|
${new Enum(
|
|
6725
6730
|
{
|
|
6726
6731
|
name: "ModelName",
|
|
6727
|
-
|
|
6732
|
+
data: this.dmmf.mappings.modelOperations.map((m) => ({
|
|
6733
|
+
key: m.model,
|
|
6734
|
+
value: m.model
|
|
6735
|
+
}))
|
|
6728
6736
|
},
|
|
6729
6737
|
true
|
|
6730
6738
|
).toTS()}
|
|
@@ -6808,13 +6816,16 @@ export const dmmf: runtime.BaseDMMF
|
|
|
6808
6816
|
* Enums
|
|
6809
6817
|
*/
|
|
6810
6818
|
|
|
6811
|
-
${this.dmmf.schema.enumTypes.prisma?.map((type) => new Enum(type, true).toJS()).join("\n\n")}
|
|
6812
|
-
${this.dmmf.schema.enumTypes.model?.map((type) => new Enum(type, false).toJS()).join("\n\n") ?? ""}
|
|
6819
|
+
${this.dmmf.schema.enumTypes.prisma?.map((type) => new Enum(datamodelSchemaEnumToSchemaEnum(type), true).toJS()).join("\n\n")}
|
|
6820
|
+
${this.dmmf.schema.enumTypes.model?.map((type) => new Enum(datamodelSchemaEnumToSchemaEnum(type), false).toJS()).join("\n\n") ?? ""}
|
|
6813
6821
|
|
|
6814
6822
|
${new Enum(
|
|
6815
6823
|
{
|
|
6816
6824
|
name: "ModelName",
|
|
6817
|
-
|
|
6825
|
+
data: this.dmmf.mappings.modelOperations.map((m) => ({
|
|
6826
|
+
key: m.model,
|
|
6827
|
+
value: m.model
|
|
6828
|
+
}))
|
|
6818
6829
|
},
|
|
6819
6830
|
true
|
|
6820
6831
|
).toJS()}
|
|
@@ -7255,7 +7266,10 @@ async function buildClient({
|
|
|
7255
7266
|
".": exportsMapDefault
|
|
7256
7267
|
},
|
|
7257
7268
|
version: clientVersion,
|
|
7258
|
-
sideEffects: false
|
|
7269
|
+
sideEffects: false,
|
|
7270
|
+
dependencies: {
|
|
7271
|
+
"@prisma/client-runtime-utils": clientVersion
|
|
7272
|
+
}
|
|
7259
7273
|
};
|
|
7260
7274
|
const fileMap = {};
|
|
7261
7275
|
fileMap["index.js"] = JS(nodeClient);
|
|
@@ -7726,7 +7740,7 @@ import { ClientEngineType as ClientEngineType4, getClientEngineType as getClient
|
|
|
7726
7740
|
import { match } from "ts-pattern";
|
|
7727
7741
|
|
|
7728
7742
|
// package.json
|
|
7729
|
-
var version = "6.
|
|
7743
|
+
var version = "6.19.0-integration-next.2";
|
|
7730
7744
|
|
|
7731
7745
|
// src/resolvePrismaClient.ts
|
|
7732
7746
|
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": "6.
|
|
3
|
+
"version": "6.19.0-integration-next.2",
|
|
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,14 @@
|
|
|
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/get-platform": "6.
|
|
42
|
-
"@prisma/ts-builders": "6.
|
|
43
|
-
"@prisma/internals": "6.
|
|
36
|
+
"@prisma/client-common": "6.19.0-integration-next.2",
|
|
37
|
+
"@prisma/debug": "6.19.0-integration-next.2",
|
|
38
|
+
"@prisma/dmmf": "6.19.0-integration-next.2",
|
|
39
|
+
"@prisma/generator": "6.19.0-integration-next.2",
|
|
40
|
+
"@prisma/fetch-engine": "6.19.0-integration-next.2",
|
|
41
|
+
"@prisma/get-platform": "6.19.0-integration-next.2",
|
|
42
|
+
"@prisma/ts-builders": "6.19.0-integration-next.2",
|
|
43
|
+
"@prisma/internals": "6.19.0-integration-next.2"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/pluralize": "0.0.33",
|