@prisma/client-generator-ts 6.13.0-dev.30 → 6.13.0-dev.31
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 +31 -18
- package/dist/index.mjs +31 -18
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -3778,7 +3778,7 @@ export interface PrismaClientConstructor {
|
|
|
3778
3778
|
${(0, import_indent_string3.default)(this.jsDoc, TAB_SIZE)}
|
|
3779
3779
|
new <
|
|
3780
3780
|
ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions,
|
|
3781
|
-
U = LogOptions<ClientOptions>,
|
|
3781
|
+
const U = LogOptions<ClientOptions>,
|
|
3782
3782
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs
|
|
3783
3783
|
>(options?: Prisma.Subset<ClientOptions, Prisma.PrismaClientOptions>): PrismaClient<ClientOptions, U, ExtArgs>
|
|
3784
3784
|
}
|
|
@@ -5693,13 +5693,13 @@ function payloadToResult(modelName) {
|
|
|
5693
5693
|
// src/TSClient/file-generators/PrismaNamespaceFile.ts
|
|
5694
5694
|
var jsDocHeader6 = `/**
|
|
5695
5695
|
* WARNING: This is an internal file that is subject to change!
|
|
5696
|
-
*
|
|
5696
|
+
*
|
|
5697
5697
|
* \u{1F6D1} Under no circumstances should you import this file directly! \u{1F6D1}
|
|
5698
|
-
*
|
|
5698
|
+
*
|
|
5699
5699
|
* All exports from this file are wrapped under a \`Prisma\` namespace object in the client.ts file.
|
|
5700
5700
|
* While this enables partial backward compatibility, it is not part of the stable public API.
|
|
5701
|
-
*
|
|
5702
|
-
* If you are looking for your Models, Enums, and Input Types, please import them from the respective
|
|
5701
|
+
*
|
|
5702
|
+
* If you are looking for your Models, Enums, and Input Types, please import them from the respective
|
|
5703
5703
|
* model files in the \`model\` directory!
|
|
5704
5704
|
*/
|
|
5705
5705
|
`;
|
|
@@ -5735,7 +5735,7 @@ ${prismaEnums?.join("\n\n")}
|
|
|
5735
5735
|
|
|
5736
5736
|
${fieldRefs.length > 0 ? `
|
|
5737
5737
|
/**
|
|
5738
|
-
* Field references
|
|
5738
|
+
* Field references
|
|
5739
5739
|
*/
|
|
5740
5740
|
|
|
5741
5741
|
${fieldRefs.join("\n\n")}` : ""}
|
|
@@ -5761,10 +5761,15 @@ export type LogDefinition = {
|
|
|
5761
5761
|
emit: 'stdout' | 'event'
|
|
5762
5762
|
}
|
|
5763
5763
|
|
|
5764
|
-
export type
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
:
|
|
5764
|
+
export type CheckIsLogLevel<T> = T extends LogLevel ? T : never;
|
|
5765
|
+
|
|
5766
|
+
export type GetLogType<T> = CheckIsLogLevel<
|
|
5767
|
+
T extends LogDefinition ? T['level'] : T
|
|
5768
|
+
>;
|
|
5769
|
+
|
|
5770
|
+
export type GetEvents<T extends any[]> = T extends Array<LogLevel | LogDefinition>
|
|
5771
|
+
? GetLogType<T[number]>
|
|
5772
|
+
: never;
|
|
5768
5773
|
|
|
5769
5774
|
export type QueryEvent = {
|
|
5770
5775
|
timestamp: Date
|
|
@@ -5802,7 +5807,7 @@ export type PrismaAction =
|
|
|
5802
5807
|
| 'aggregate'
|
|
5803
5808
|
| 'count'
|
|
5804
5809
|
| 'runCommandRaw'
|
|
5805
|
-
| 'findRaw'
|
|
5810
|
+
| 'findRaw'
|
|
5806
5811
|
| 'groupBy'
|
|
5807
5812
|
|
|
5808
5813
|
/**
|
|
@@ -5852,16 +5857,24 @@ function buildClientOptions(context, options) {
|
|
|
5852
5857
|
ts17.property("log", ts17.array(ts17.unionType([ts17.namedType("LogLevel"), ts17.namedType("LogDefinition")]))).optional().setDocComment(ts17.docComment`
|
|
5853
5858
|
@example
|
|
5854
5859
|
\`\`\`
|
|
5855
|
-
//
|
|
5860
|
+
// Shorthand for \`emit: 'stdout'\`
|
|
5856
5861
|
log: ['query', 'info', 'warn', 'error']
|
|
5857
5862
|
|
|
5858
|
-
// Emit as events
|
|
5863
|
+
// Emit as events only
|
|
5859
5864
|
log: [
|
|
5860
|
-
{ emit: '
|
|
5861
|
-
{ emit: '
|
|
5862
|
-
{ emit: '
|
|
5863
|
-
{ emit: '
|
|
5865
|
+
{ emit: 'event', level: 'query' },
|
|
5866
|
+
{ emit: 'event', level: 'info' },
|
|
5867
|
+
{ emit: 'event', level: 'warn' }
|
|
5868
|
+
{ emit: 'event', level: 'error' }
|
|
5864
5869
|
]
|
|
5870
|
+
|
|
5871
|
+
// Emit as events and log to stdout
|
|
5872
|
+
log: [
|
|
5873
|
+
{ emit: 'stdout', level: 'query' },
|
|
5874
|
+
{ emit: 'stdout', level: 'info' },
|
|
5875
|
+
{ emit: 'stdout', level: 'warn' }
|
|
5876
|
+
{ emit: 'stdout', level: 'error' }
|
|
5877
|
+
]
|
|
5865
5878
|
\`\`\`
|
|
5866
5879
|
Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).
|
|
5867
5880
|
`)
|
|
@@ -6574,7 +6587,7 @@ var import_get_tsconfig = require("get-tsconfig");
|
|
|
6574
6587
|
var import_ts_pattern2 = require("ts-pattern");
|
|
6575
6588
|
|
|
6576
6589
|
// package.json
|
|
6577
|
-
var version = "6.13.0-dev.
|
|
6590
|
+
var version = "6.13.0-dev.31";
|
|
6578
6591
|
|
|
6579
6592
|
// src/module-format.ts
|
|
6580
6593
|
function parseModuleFormat(format) {
|
package/dist/index.mjs
CHANGED
|
@@ -3777,7 +3777,7 @@ export interface PrismaClientConstructor {
|
|
|
3777
3777
|
${indent3(this.jsDoc, TAB_SIZE)}
|
|
3778
3778
|
new <
|
|
3779
3779
|
ClientOptions extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions,
|
|
3780
|
-
U = LogOptions<ClientOptions>,
|
|
3780
|
+
const U = LogOptions<ClientOptions>,
|
|
3781
3781
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs
|
|
3782
3782
|
>(options?: Prisma.Subset<ClientOptions, Prisma.PrismaClientOptions>): PrismaClient<ClientOptions, U, ExtArgs>
|
|
3783
3783
|
}
|
|
@@ -5692,13 +5692,13 @@ function payloadToResult(modelName) {
|
|
|
5692
5692
|
// src/TSClient/file-generators/PrismaNamespaceFile.ts
|
|
5693
5693
|
var jsDocHeader6 = `/**
|
|
5694
5694
|
* WARNING: This is an internal file that is subject to change!
|
|
5695
|
-
*
|
|
5695
|
+
*
|
|
5696
5696
|
* \u{1F6D1} Under no circumstances should you import this file directly! \u{1F6D1}
|
|
5697
|
-
*
|
|
5697
|
+
*
|
|
5698
5698
|
* All exports from this file are wrapped under a \`Prisma\` namespace object in the client.ts file.
|
|
5699
5699
|
* While this enables partial backward compatibility, it is not part of the stable public API.
|
|
5700
|
-
*
|
|
5701
|
-
* If you are looking for your Models, Enums, and Input Types, please import them from the respective
|
|
5700
|
+
*
|
|
5701
|
+
* If you are looking for your Models, Enums, and Input Types, please import them from the respective
|
|
5702
5702
|
* model files in the \`model\` directory!
|
|
5703
5703
|
*/
|
|
5704
5704
|
`;
|
|
@@ -5734,7 +5734,7 @@ ${prismaEnums?.join("\n\n")}
|
|
|
5734
5734
|
|
|
5735
5735
|
${fieldRefs.length > 0 ? `
|
|
5736
5736
|
/**
|
|
5737
|
-
* Field references
|
|
5737
|
+
* Field references
|
|
5738
5738
|
*/
|
|
5739
5739
|
|
|
5740
5740
|
${fieldRefs.join("\n\n")}` : ""}
|
|
@@ -5760,10 +5760,15 @@ export type LogDefinition = {
|
|
|
5760
5760
|
emit: 'stdout' | 'event'
|
|
5761
5761
|
}
|
|
5762
5762
|
|
|
5763
|
-
export type
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
:
|
|
5763
|
+
export type CheckIsLogLevel<T> = T extends LogLevel ? T : never;
|
|
5764
|
+
|
|
5765
|
+
export type GetLogType<T> = CheckIsLogLevel<
|
|
5766
|
+
T extends LogDefinition ? T['level'] : T
|
|
5767
|
+
>;
|
|
5768
|
+
|
|
5769
|
+
export type GetEvents<T extends any[]> = T extends Array<LogLevel | LogDefinition>
|
|
5770
|
+
? GetLogType<T[number]>
|
|
5771
|
+
: never;
|
|
5767
5772
|
|
|
5768
5773
|
export type QueryEvent = {
|
|
5769
5774
|
timestamp: Date
|
|
@@ -5801,7 +5806,7 @@ export type PrismaAction =
|
|
|
5801
5806
|
| 'aggregate'
|
|
5802
5807
|
| 'count'
|
|
5803
5808
|
| 'runCommandRaw'
|
|
5804
|
-
| 'findRaw'
|
|
5809
|
+
| 'findRaw'
|
|
5805
5810
|
| 'groupBy'
|
|
5806
5811
|
|
|
5807
5812
|
/**
|
|
@@ -5851,16 +5856,24 @@ function buildClientOptions(context, options) {
|
|
|
5851
5856
|
ts17.property("log", ts17.array(ts17.unionType([ts17.namedType("LogLevel"), ts17.namedType("LogDefinition")]))).optional().setDocComment(ts17.docComment`
|
|
5852
5857
|
@example
|
|
5853
5858
|
\`\`\`
|
|
5854
|
-
//
|
|
5859
|
+
// Shorthand for \`emit: 'stdout'\`
|
|
5855
5860
|
log: ['query', 'info', 'warn', 'error']
|
|
5856
5861
|
|
|
5857
|
-
// Emit as events
|
|
5862
|
+
// Emit as events only
|
|
5858
5863
|
log: [
|
|
5859
|
-
{ emit: '
|
|
5860
|
-
{ emit: '
|
|
5861
|
-
{ emit: '
|
|
5862
|
-
{ emit: '
|
|
5864
|
+
{ emit: 'event', level: 'query' },
|
|
5865
|
+
{ emit: 'event', level: 'info' },
|
|
5866
|
+
{ emit: 'event', level: 'warn' }
|
|
5867
|
+
{ emit: 'event', level: 'error' }
|
|
5863
5868
|
]
|
|
5869
|
+
|
|
5870
|
+
// Emit as events and log to stdout
|
|
5871
|
+
log: [
|
|
5872
|
+
{ emit: 'stdout', level: 'query' },
|
|
5873
|
+
{ emit: 'stdout', level: 'info' },
|
|
5874
|
+
{ emit: 'stdout', level: 'warn' }
|
|
5875
|
+
{ emit: 'stdout', level: 'error' }
|
|
5876
|
+
]
|
|
5864
5877
|
\`\`\`
|
|
5865
5878
|
Read more in our [docs](https://www.prisma.io/docs/reference/tools-and-interfaces/prisma-client/logging#the-log-option).
|
|
5866
5879
|
`)
|
|
@@ -6573,7 +6586,7 @@ import { getTsconfig } from "get-tsconfig";
|
|
|
6573
6586
|
import { match as match2 } from "ts-pattern";
|
|
6574
6587
|
|
|
6575
6588
|
// package.json
|
|
6576
|
-
var version = "6.13.0-dev.
|
|
6589
|
+
var version = "6.13.0-dev.31";
|
|
6577
6590
|
|
|
6578
6591
|
// src/module-format.ts
|
|
6579
6592
|
function parseModuleFormat(format) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-generator-ts",
|
|
3
|
-
"version": "6.13.0-dev.
|
|
3
|
+
"version": "6.13.0-dev.31",
|
|
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/client-common": "6.13.0-dev.
|
|
38
|
-
"@prisma/debug": "6.13.0-dev.
|
|
39
|
-
"@prisma/
|
|
40
|
-
"@prisma/
|
|
41
|
-
"@prisma/get-platform": "6.13.0-dev.
|
|
42
|
-
"@prisma/generator": "6.13.0-dev.
|
|
43
|
-
"@prisma/internals": "6.13.0-dev.
|
|
44
|
-
"@prisma/ts-builders": "6.13.0-dev.
|
|
37
|
+
"@prisma/client-common": "6.13.0-dev.31",
|
|
38
|
+
"@prisma/debug": "6.13.0-dev.31",
|
|
39
|
+
"@prisma/fetch-engine": "6.13.0-dev.31",
|
|
40
|
+
"@prisma/dmmf": "6.13.0-dev.31",
|
|
41
|
+
"@prisma/get-platform": "6.13.0-dev.31",
|
|
42
|
+
"@prisma/generator": "6.13.0-dev.31",
|
|
43
|
+
"@prisma/internals": "6.13.0-dev.31",
|
|
44
|
+
"@prisma/ts-builders": "6.13.0-dev.31"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@types/pluralize": "0.0.33",
|