@prisma/client-generator-ts 6.14.0-dev.37 → 6.14.0-dev.38
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 +18 -17
- package/dist/index.mjs +18 -17
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -3603,8 +3603,8 @@ function optional(innerType) {
|
|
|
3603
3603
|
|
|
3604
3604
|
// src/TSClient/PrismaClient.ts
|
|
3605
3605
|
function extendsPropertyDefinition() {
|
|
3606
|
-
const extendsDefinition = ts4.namedType("runtime.Types.Extensions.ExtendsHook").addGenericArgument(ts4.stringLiteral("extends")).addGenericArgument(ts4.namedType("Prisma.TypeMapCb").addGenericArgument(ts4.namedType("
|
|
3607
|
-
ts4.namedType("runtime.Types.Utils.Call").addGenericArgument(ts4.namedType("Prisma.TypeMapCb").addGenericArgument(ts4.namedType("
|
|
3606
|
+
const extendsDefinition = ts4.namedType("runtime.Types.Extensions.ExtendsHook").addGenericArgument(ts4.stringLiteral("extends")).addGenericArgument(ts4.namedType("Prisma.TypeMapCb").addGenericArgument(ts4.namedType("OmitOpts"))).addGenericArgument(ts4.namedType("ExtArgs")).addGenericArgument(
|
|
3607
|
+
ts4.namedType("runtime.Types.Utils.Call").addGenericArgument(ts4.namedType("Prisma.TypeMapCb").addGenericArgument(ts4.namedType("OmitOpts"))).addGenericArgument(ts4.objectType().add(ts4.property("extArgs", ts4.namedType("ExtArgs"))))
|
|
3608
3608
|
);
|
|
3609
3609
|
return ts4.stringify(ts4.property("$extends", extendsDefinition), { indentLevel: 1 });
|
|
3610
3610
|
}
|
|
@@ -3764,9 +3764,9 @@ function runCommandRawDefinition(context) {
|
|
|
3764
3764
|
}
|
|
3765
3765
|
function eventRegistrationMethodDeclaration(runtimeName) {
|
|
3766
3766
|
if (runtimeName === "binary") {
|
|
3767
|
-
return `$on<V extends (
|
|
3767
|
+
return `$on<V extends (LogOpts | 'beforeExit')>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : V extends 'beforeExit' ? () => runtime.Types.Utils.JsPromise<void> : Prisma.LogEvent) => void): PrismaClient;`;
|
|
3768
3768
|
} else {
|
|
3769
|
-
return `$on<V extends
|
|
3769
|
+
return `$on<V extends LogOpts>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;`;
|
|
3770
3770
|
}
|
|
3771
3771
|
}
|
|
3772
3772
|
function getPrismaClientClassDocComment({ dmmf }) {
|
|
@@ -3809,17 +3809,18 @@ var PrismaClientClass = class {
|
|
|
3809
3809
|
export interface PrismaClientConstructor {
|
|
3810
3810
|
${(0, import_indent_string3.default)(this.jsDoc, TAB_SIZE)}
|
|
3811
3811
|
new <
|
|
3812
|
-
|
|
3813
|
-
|
|
3812
|
+
Options extends Prisma.PrismaClientOptions,
|
|
3813
|
+
LogOpts extends LogOptions<Options>,
|
|
3814
|
+
OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends { omit: infer U } ? U : Prisma.PrismaClientOptions['omit'],
|
|
3814
3815
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs
|
|
3815
|
-
>(options?: Prisma.Subset<
|
|
3816
|
+
>(options?: Prisma.Subset<Options, Prisma.PrismaClientOptions> ): PrismaClient<LogOpts, OmitOpts, ExtArgs>
|
|
3816
3817
|
}
|
|
3817
3818
|
|
|
3818
3819
|
${this.jsDoc}
|
|
3819
3820
|
export interface PrismaClient<
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs
|
|
3821
|
+
in LogOpts extends Prisma.LogLevel = never,
|
|
3822
|
+
in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = Prisma.PrismaClientOptions['omit'],
|
|
3823
|
+
in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs
|
|
3823
3824
|
> {
|
|
3824
3825
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['other'] }
|
|
3825
3826
|
|
|
@@ -3853,7 +3854,7 @@ ${[
|
|
|
3853
3854
|
if (methodName === "constructor") {
|
|
3854
3855
|
methodName = '["constructor"]';
|
|
3855
3856
|
}
|
|
3856
|
-
const generics = ["ExtArgs", "
|
|
3857
|
+
const generics = ["ExtArgs", "{ omit: OmitOpts }"];
|
|
3857
3858
|
return `/**
|
|
3858
3859
|
* \`prisma.${methodName}\`: Exposes CRUD operations for the **${m.model}** model.
|
|
3859
3860
|
* Example usage:
|
|
@@ -4024,11 +4025,11 @@ function createClientFile(context, options) {
|
|
|
4024
4025
|
ts6.moduleExport(
|
|
4025
4026
|
ts6.typeDeclaration(
|
|
4026
4027
|
"PrismaClient",
|
|
4027
|
-
ts6.namedType("$Class.PrismaClient").addGenericArgument(ts6.namedType("
|
|
4028
|
+
ts6.namedType("$Class.PrismaClient").addGenericArgument(ts6.namedType("LogOpts")).addGenericArgument(ts6.namedType("OmitOpts")).addGenericArgument(ts6.namedType("ExtArgs"))
|
|
4028
4029
|
).addGenericParameter(
|
|
4029
|
-
ts6.genericParameter("
|
|
4030
|
+
ts6.genericParameter("LogOpts").extends(ts6.namedType("Prisma.LogLevel")).default(ts6.neverType)
|
|
4030
4031
|
).addGenericParameter(
|
|
4031
|
-
ts6.genericParameter("
|
|
4032
|
+
ts6.genericParameter("OmitOpts").extends(ts6.namedType("Prisma.PrismaClientOptions").subKey("omit")).default(ts6.namedType("Prisma.PrismaClientOptions").subKey("omit"))
|
|
4032
4033
|
).addGenericParameter(
|
|
4033
4034
|
ts6.genericParameter("ExtArgs").extends(ts6.namedType("runtime.Types.Extensions.InternalArgs")).default(ts6.namedType("runtime.Types.Extensions.DefaultArgs"))
|
|
4034
4035
|
)
|
|
@@ -5614,8 +5615,8 @@ var ts16 = __toESM(require("@prisma/ts-builders"));
|
|
|
5614
5615
|
function clientTypeMapDefinition(context) {
|
|
5615
5616
|
const typeMap = `${ts16.stringify(clientTypeMapModelsDefinition(context))} & ${clientTypeMapOthersDefinition(context)}`;
|
|
5616
5617
|
return `
|
|
5617
|
-
export interface TypeMapCb<
|
|
5618
|
-
returns: TypeMap<this['params']['extArgs'],
|
|
5618
|
+
export interface TypeMapCb<GlobalOmitOptions = {}> extends runtime.Types.Utils.Fn<{extArgs: runtime.Types.Extensions.InternalArgs }, runtime.Types.Utils.Record<string, any>> {
|
|
5619
|
+
returns: TypeMap<this['params']['extArgs'], GlobalOmitOptions>
|
|
5619
5620
|
}
|
|
5620
5621
|
|
|
5621
5622
|
export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> = ${typeMap}`;
|
|
@@ -6593,7 +6594,7 @@ var import_get_tsconfig = require("get-tsconfig");
|
|
|
6593
6594
|
var import_ts_pattern2 = require("ts-pattern");
|
|
6594
6595
|
|
|
6595
6596
|
// package.json
|
|
6596
|
-
var version = "6.14.0-dev.
|
|
6597
|
+
var version = "6.14.0-dev.38";
|
|
6597
6598
|
|
|
6598
6599
|
// src/module-format.ts
|
|
6599
6600
|
function parseModuleFormat(format) {
|
package/dist/index.mjs
CHANGED
|
@@ -3602,8 +3602,8 @@ function optional(innerType) {
|
|
|
3602
3602
|
|
|
3603
3603
|
// src/TSClient/PrismaClient.ts
|
|
3604
3604
|
function extendsPropertyDefinition() {
|
|
3605
|
-
const extendsDefinition = ts4.namedType("runtime.Types.Extensions.ExtendsHook").addGenericArgument(ts4.stringLiteral("extends")).addGenericArgument(ts4.namedType("Prisma.TypeMapCb").addGenericArgument(ts4.namedType("
|
|
3606
|
-
ts4.namedType("runtime.Types.Utils.Call").addGenericArgument(ts4.namedType("Prisma.TypeMapCb").addGenericArgument(ts4.namedType("
|
|
3605
|
+
const extendsDefinition = ts4.namedType("runtime.Types.Extensions.ExtendsHook").addGenericArgument(ts4.stringLiteral("extends")).addGenericArgument(ts4.namedType("Prisma.TypeMapCb").addGenericArgument(ts4.namedType("OmitOpts"))).addGenericArgument(ts4.namedType("ExtArgs")).addGenericArgument(
|
|
3606
|
+
ts4.namedType("runtime.Types.Utils.Call").addGenericArgument(ts4.namedType("Prisma.TypeMapCb").addGenericArgument(ts4.namedType("OmitOpts"))).addGenericArgument(ts4.objectType().add(ts4.property("extArgs", ts4.namedType("ExtArgs"))))
|
|
3607
3607
|
);
|
|
3608
3608
|
return ts4.stringify(ts4.property("$extends", extendsDefinition), { indentLevel: 1 });
|
|
3609
3609
|
}
|
|
@@ -3763,9 +3763,9 @@ function runCommandRawDefinition(context) {
|
|
|
3763
3763
|
}
|
|
3764
3764
|
function eventRegistrationMethodDeclaration(runtimeName) {
|
|
3765
3765
|
if (runtimeName === "binary") {
|
|
3766
|
-
return `$on<V extends (
|
|
3766
|
+
return `$on<V extends (LogOpts | 'beforeExit')>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : V extends 'beforeExit' ? () => runtime.Types.Utils.JsPromise<void> : Prisma.LogEvent) => void): PrismaClient;`;
|
|
3767
3767
|
} else {
|
|
3768
|
-
return `$on<V extends
|
|
3768
|
+
return `$on<V extends LogOpts>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;`;
|
|
3769
3769
|
}
|
|
3770
3770
|
}
|
|
3771
3771
|
function getPrismaClientClassDocComment({ dmmf }) {
|
|
@@ -3808,17 +3808,18 @@ var PrismaClientClass = class {
|
|
|
3808
3808
|
export interface PrismaClientConstructor {
|
|
3809
3809
|
${indent3(this.jsDoc, TAB_SIZE)}
|
|
3810
3810
|
new <
|
|
3811
|
-
|
|
3812
|
-
|
|
3811
|
+
Options extends Prisma.PrismaClientOptions,
|
|
3812
|
+
LogOpts extends LogOptions<Options>,
|
|
3813
|
+
OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends { omit: infer U } ? U : Prisma.PrismaClientOptions['omit'],
|
|
3813
3814
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs
|
|
3814
|
-
>(options?: Prisma.Subset<
|
|
3815
|
+
>(options?: Prisma.Subset<Options, Prisma.PrismaClientOptions> ): PrismaClient<LogOpts, OmitOpts, ExtArgs>
|
|
3815
3816
|
}
|
|
3816
3817
|
|
|
3817
3818
|
${this.jsDoc}
|
|
3818
3819
|
export interface PrismaClient<
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs
|
|
3820
|
+
in LogOpts extends Prisma.LogLevel = never,
|
|
3821
|
+
in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = Prisma.PrismaClientOptions['omit'],
|
|
3822
|
+
in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs
|
|
3822
3823
|
> {
|
|
3823
3824
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['other'] }
|
|
3824
3825
|
|
|
@@ -3852,7 +3853,7 @@ ${[
|
|
|
3852
3853
|
if (methodName === "constructor") {
|
|
3853
3854
|
methodName = '["constructor"]';
|
|
3854
3855
|
}
|
|
3855
|
-
const generics = ["ExtArgs", "
|
|
3856
|
+
const generics = ["ExtArgs", "{ omit: OmitOpts }"];
|
|
3856
3857
|
return `/**
|
|
3857
3858
|
* \`prisma.${methodName}\`: Exposes CRUD operations for the **${m.model}** model.
|
|
3858
3859
|
* Example usage:
|
|
@@ -4023,11 +4024,11 @@ function createClientFile(context, options) {
|
|
|
4023
4024
|
ts6.moduleExport(
|
|
4024
4025
|
ts6.typeDeclaration(
|
|
4025
4026
|
"PrismaClient",
|
|
4026
|
-
ts6.namedType("$Class.PrismaClient").addGenericArgument(ts6.namedType("
|
|
4027
|
+
ts6.namedType("$Class.PrismaClient").addGenericArgument(ts6.namedType("LogOpts")).addGenericArgument(ts6.namedType("OmitOpts")).addGenericArgument(ts6.namedType("ExtArgs"))
|
|
4027
4028
|
).addGenericParameter(
|
|
4028
|
-
ts6.genericParameter("
|
|
4029
|
+
ts6.genericParameter("LogOpts").extends(ts6.namedType("Prisma.LogLevel")).default(ts6.neverType)
|
|
4029
4030
|
).addGenericParameter(
|
|
4030
|
-
ts6.genericParameter("
|
|
4031
|
+
ts6.genericParameter("OmitOpts").extends(ts6.namedType("Prisma.PrismaClientOptions").subKey("omit")).default(ts6.namedType("Prisma.PrismaClientOptions").subKey("omit"))
|
|
4031
4032
|
).addGenericParameter(
|
|
4032
4033
|
ts6.genericParameter("ExtArgs").extends(ts6.namedType("runtime.Types.Extensions.InternalArgs")).default(ts6.namedType("runtime.Types.Extensions.DefaultArgs"))
|
|
4033
4034
|
)
|
|
@@ -5613,8 +5614,8 @@ import * as ts16 from "@prisma/ts-builders";
|
|
|
5613
5614
|
function clientTypeMapDefinition(context) {
|
|
5614
5615
|
const typeMap = `${ts16.stringify(clientTypeMapModelsDefinition(context))} & ${clientTypeMapOthersDefinition(context)}`;
|
|
5615
5616
|
return `
|
|
5616
|
-
export interface TypeMapCb<
|
|
5617
|
-
returns: TypeMap<this['params']['extArgs'],
|
|
5617
|
+
export interface TypeMapCb<GlobalOmitOptions = {}> extends runtime.Types.Utils.Fn<{extArgs: runtime.Types.Extensions.InternalArgs }, runtime.Types.Utils.Record<string, any>> {
|
|
5618
|
+
returns: TypeMap<this['params']['extArgs'], GlobalOmitOptions>
|
|
5618
5619
|
}
|
|
5619
5620
|
|
|
5620
5621
|
export type TypeMap<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> = ${typeMap}`;
|
|
@@ -6592,7 +6593,7 @@ import { getTsconfig } from "get-tsconfig";
|
|
|
6592
6593
|
import { match as match2 } from "ts-pattern";
|
|
6593
6594
|
|
|
6594
6595
|
// package.json
|
|
6595
|
-
var version = "6.14.0-dev.
|
|
6596
|
+
var version = "6.14.0-dev.38";
|
|
6596
6597
|
|
|
6597
6598
|
// src/module-format.ts
|
|
6598
6599
|
function parseModuleFormat(format) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-generator-ts",
|
|
3
|
-
"version": "6.14.0-dev.
|
|
3
|
+
"version": "6.14.0-dev.38",
|
|
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
|
"pkg-up": "3.1.0",
|
|
35
35
|
"pluralize": "8.0.0",
|
|
36
36
|
"ts-pattern": "5.6.2",
|
|
37
|
-
"@prisma/
|
|
38
|
-
"@prisma/
|
|
39
|
-
"@prisma/
|
|
40
|
-
"@prisma/
|
|
41
|
-
"@prisma/
|
|
42
|
-
"@prisma/get-platform": "6.14.0-dev.
|
|
43
|
-
"@prisma/internals": "6.14.0-dev.
|
|
44
|
-
"@prisma/ts-builders": "6.14.0-dev.
|
|
37
|
+
"@prisma/debug": "6.14.0-dev.38",
|
|
38
|
+
"@prisma/dmmf": "6.14.0-dev.38",
|
|
39
|
+
"@prisma/client-common": "6.14.0-dev.38",
|
|
40
|
+
"@prisma/generator": "6.14.0-dev.38",
|
|
41
|
+
"@prisma/fetch-engine": "6.14.0-dev.38",
|
|
42
|
+
"@prisma/get-platform": "6.14.0-dev.38",
|
|
43
|
+
"@prisma/internals": "6.14.0-dev.38",
|
|
44
|
+
"@prisma/ts-builders": "6.14.0-dev.38"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/pluralize": "0.0.33",
|