@prisma/client-generator-ts 6.20.0-integration-next.19 → 7.0.0
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 -18
- package/dist/index.mjs +18 -18
- package/package.json +9 -9
package/dist/index.js
CHANGED
|
@@ -3724,7 +3724,7 @@ export interface PrismaClientConstructor {
|
|
|
3724
3724
|
LogOpts extends LogOptions<Options> = LogOptions<Options>,
|
|
3725
3725
|
OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends { omit: infer U } ? U : Prisma.PrismaClientOptions['omit'],
|
|
3726
3726
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs
|
|
3727
|
-
>(options
|
|
3727
|
+
>(options: Prisma.Subset<Options, Prisma.PrismaClientOptions> ): PrismaClient<LogOpts, OmitOpts, ExtArgs>
|
|
3728
3728
|
}
|
|
3729
3729
|
|
|
3730
3730
|
${this.jsDoc}
|
|
@@ -5689,7 +5689,18 @@ function clientExtensionsDefinitions() {
|
|
|
5689
5689
|
return ts19.stringify(define);
|
|
5690
5690
|
}
|
|
5691
5691
|
function buildClientOptions(context) {
|
|
5692
|
-
const
|
|
5692
|
+
const adapterOption = ts19.objectType().add(
|
|
5693
|
+
ts19.property("adapter", ts19.namedType("runtime.SqlDriverAdapterFactory")).setDocComment(ts19.docComment("Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-pg`."))
|
|
5694
|
+
).add(ts19.property("accelerateUrl", ts19.neverType).optional());
|
|
5695
|
+
const accelerateUrlOption = ts19.objectType().add(
|
|
5696
|
+
ts19.property("accelerateUrl", ts19.stringType).setDocComment(
|
|
5697
|
+
ts19.docComment(
|
|
5698
|
+
"Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database."
|
|
5699
|
+
)
|
|
5700
|
+
)
|
|
5701
|
+
).add(ts19.property("adapter", ts19.neverType).optional());
|
|
5702
|
+
const mutuallyExclusiveOptions = ts19.unionType([adapterOption, accelerateUrlOption]);
|
|
5703
|
+
const otherOptions = ts19.objectType().add(
|
|
5693
5704
|
ts19.property("errorFormat", ts19.namedType("ErrorFormat")).optional().setDocComment(ts19.docComment('@default "colorless"'))
|
|
5694
5705
|
).add(
|
|
5695
5706
|
ts19.property("log", ts19.array(ts19.unionType([ts19.namedType("LogLevel"), ts19.namedType("LogDefinition")]))).optional().setDocComment(ts19.docComment`
|
|
@@ -5721,26 +5732,14 @@ function buildClientOptions(context) {
|
|
|
5721
5732
|
if (context.dmmf.hasEnumInNamespace("TransactionIsolationLevel", "prisma")) {
|
|
5722
5733
|
transactionOptions.add(ts19.property("isolationLevel", ts19.namedType("TransactionIsolationLevel")).optional());
|
|
5723
5734
|
}
|
|
5724
|
-
|
|
5735
|
+
otherOptions.add(
|
|
5725
5736
|
ts19.property("transactionOptions", transactionOptions).optional().setDocComment(ts19.docComment`
|
|
5726
5737
|
The default values for transactionOptions
|
|
5727
5738
|
maxWait ?= 2000
|
|
5728
5739
|
timeout ?= 5000
|
|
5729
5740
|
`)
|
|
5730
5741
|
);
|
|
5731
|
-
|
|
5732
|
-
ts19.property("adapter", ts19.namedType("runtime.SqlDriverAdapterFactory")).optional().setDocComment(
|
|
5733
|
-
ts19.docComment("Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale`")
|
|
5734
|
-
)
|
|
5735
|
-
);
|
|
5736
|
-
clientOptions.add(
|
|
5737
|
-
ts19.property("accelerateUrl", ts19.stringType).optional().setDocComment(
|
|
5738
|
-
ts19.docComment(
|
|
5739
|
-
"Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database."
|
|
5740
|
-
)
|
|
5741
|
-
)
|
|
5742
|
-
);
|
|
5743
|
-
clientOptions.add(
|
|
5742
|
+
otherOptions.add(
|
|
5744
5743
|
ts19.property("omit", ts19.namedType("GlobalOmitConfig")).optional().setDocComment(ts19.docComment`
|
|
5745
5744
|
Global configuration for omitting model fields by default.
|
|
5746
5745
|
|
|
@@ -5756,7 +5755,8 @@ function buildClientOptions(context) {
|
|
|
5756
5755
|
\`\`\`
|
|
5757
5756
|
`)
|
|
5758
5757
|
);
|
|
5759
|
-
|
|
5758
|
+
const prismaClientOptions = ts19.intersectionType([mutuallyExclusiveOptions, otherOptions]);
|
|
5759
|
+
return ts19.typeDeclaration("PrismaClientOptions", prismaClientOptions);
|
|
5760
5760
|
}
|
|
5761
5761
|
|
|
5762
5762
|
// src/TSClient/GenerateContext.ts
|
|
@@ -6380,7 +6380,7 @@ var import_internals7 = require("@prisma/internals");
|
|
|
6380
6380
|
var import_get_tsconfig = require("get-tsconfig");
|
|
6381
6381
|
|
|
6382
6382
|
// package.json
|
|
6383
|
-
var version = "
|
|
6383
|
+
var version = "7.0.0";
|
|
6384
6384
|
|
|
6385
6385
|
// src/module-format.ts
|
|
6386
6386
|
function parseModuleFormat(format) {
|
package/dist/index.mjs
CHANGED
|
@@ -3717,7 +3717,7 @@ export interface PrismaClientConstructor {
|
|
|
3717
3717
|
LogOpts extends LogOptions<Options> = LogOptions<Options>,
|
|
3718
3718
|
OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends { omit: infer U } ? U : Prisma.PrismaClientOptions['omit'],
|
|
3719
3719
|
ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs
|
|
3720
|
-
>(options
|
|
3720
|
+
>(options: Prisma.Subset<Options, Prisma.PrismaClientOptions> ): PrismaClient<LogOpts, OmitOpts, ExtArgs>
|
|
3721
3721
|
}
|
|
3722
3722
|
|
|
3723
3723
|
${this.jsDoc}
|
|
@@ -5682,7 +5682,18 @@ function clientExtensionsDefinitions() {
|
|
|
5682
5682
|
return ts19.stringify(define);
|
|
5683
5683
|
}
|
|
5684
5684
|
function buildClientOptions(context) {
|
|
5685
|
-
const
|
|
5685
|
+
const adapterOption = ts19.objectType().add(
|
|
5686
|
+
ts19.property("adapter", ts19.namedType("runtime.SqlDriverAdapterFactory")).setDocComment(ts19.docComment("Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-pg`."))
|
|
5687
|
+
).add(ts19.property("accelerateUrl", ts19.neverType).optional());
|
|
5688
|
+
const accelerateUrlOption = ts19.objectType().add(
|
|
5689
|
+
ts19.property("accelerateUrl", ts19.stringType).setDocComment(
|
|
5690
|
+
ts19.docComment(
|
|
5691
|
+
"Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database."
|
|
5692
|
+
)
|
|
5693
|
+
)
|
|
5694
|
+
).add(ts19.property("adapter", ts19.neverType).optional());
|
|
5695
|
+
const mutuallyExclusiveOptions = ts19.unionType([adapterOption, accelerateUrlOption]);
|
|
5696
|
+
const otherOptions = ts19.objectType().add(
|
|
5686
5697
|
ts19.property("errorFormat", ts19.namedType("ErrorFormat")).optional().setDocComment(ts19.docComment('@default "colorless"'))
|
|
5687
5698
|
).add(
|
|
5688
5699
|
ts19.property("log", ts19.array(ts19.unionType([ts19.namedType("LogLevel"), ts19.namedType("LogDefinition")]))).optional().setDocComment(ts19.docComment`
|
|
@@ -5714,26 +5725,14 @@ function buildClientOptions(context) {
|
|
|
5714
5725
|
if (context.dmmf.hasEnumInNamespace("TransactionIsolationLevel", "prisma")) {
|
|
5715
5726
|
transactionOptions.add(ts19.property("isolationLevel", ts19.namedType("TransactionIsolationLevel")).optional());
|
|
5716
5727
|
}
|
|
5717
|
-
|
|
5728
|
+
otherOptions.add(
|
|
5718
5729
|
ts19.property("transactionOptions", transactionOptions).optional().setDocComment(ts19.docComment`
|
|
5719
5730
|
The default values for transactionOptions
|
|
5720
5731
|
maxWait ?= 2000
|
|
5721
5732
|
timeout ?= 5000
|
|
5722
5733
|
`)
|
|
5723
5734
|
);
|
|
5724
|
-
|
|
5725
|
-
ts19.property("adapter", ts19.namedType("runtime.SqlDriverAdapterFactory")).optional().setDocComment(
|
|
5726
|
-
ts19.docComment("Instance of a Driver Adapter, e.g., like one provided by `@prisma/adapter-planetscale`")
|
|
5727
|
-
)
|
|
5728
|
-
);
|
|
5729
|
-
clientOptions.add(
|
|
5730
|
-
ts19.property("accelerateUrl", ts19.stringType).optional().setDocComment(
|
|
5731
|
-
ts19.docComment(
|
|
5732
|
-
"Prisma Accelerate URL allowing the client to connect through Accelerate instead of a direct database."
|
|
5733
|
-
)
|
|
5734
|
-
)
|
|
5735
|
-
);
|
|
5736
|
-
clientOptions.add(
|
|
5735
|
+
otherOptions.add(
|
|
5737
5736
|
ts19.property("omit", ts19.namedType("GlobalOmitConfig")).optional().setDocComment(ts19.docComment`
|
|
5738
5737
|
Global configuration for omitting model fields by default.
|
|
5739
5738
|
|
|
@@ -5749,7 +5748,8 @@ function buildClientOptions(context) {
|
|
|
5749
5748
|
\`\`\`
|
|
5750
5749
|
`)
|
|
5751
5750
|
);
|
|
5752
|
-
|
|
5751
|
+
const prismaClientOptions = ts19.intersectionType([mutuallyExclusiveOptions, otherOptions]);
|
|
5752
|
+
return ts19.typeDeclaration("PrismaClientOptions", prismaClientOptions);
|
|
5753
5753
|
}
|
|
5754
5754
|
|
|
5755
5755
|
// src/TSClient/GenerateContext.ts
|
|
@@ -6373,7 +6373,7 @@ import { parseEnvValue } from "@prisma/internals";
|
|
|
6373
6373
|
import { getTsconfig } from "get-tsconfig";
|
|
6374
6374
|
|
|
6375
6375
|
// package.json
|
|
6376
|
-
var version = "
|
|
6376
|
+
var version = "7.0.0";
|
|
6377
6377
|
|
|
6378
6378
|
// src/module-format.ts
|
|
6379
6379
|
function parseModuleFormat(format) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/client-generator-ts",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
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/client-common": "
|
|
37
|
-
"@prisma/
|
|
38
|
-
"@prisma/dmmf": "
|
|
39
|
-
"@prisma/
|
|
40
|
-
"@prisma/
|
|
41
|
-
"@prisma/
|
|
42
|
-
"@prisma/ts-builders": "
|
|
43
|
-
"@prisma/internals": "
|
|
36
|
+
"@prisma/client-common": "7.0.0",
|
|
37
|
+
"@prisma/debug": "7.0.0",
|
|
38
|
+
"@prisma/dmmf": "7.0.0",
|
|
39
|
+
"@prisma/get-platform": "7.0.0",
|
|
40
|
+
"@prisma/fetch-engine": "7.0.0",
|
|
41
|
+
"@prisma/generator": "7.0.0",
|
|
42
|
+
"@prisma/ts-builders": "7.0.0",
|
|
43
|
+
"@prisma/internals": "7.0.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/pluralize": "0.0.33",
|