@prisma/client-generator-js 7.9.0-dev.12 → 7.9.0-dev.13
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 +36 -10
- package/dist/index.mjs +36 -10
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -4817,6 +4817,19 @@ export type Subset<T, U> = {
|
|
|
4817
4817
|
[key in keyof T]: key extends keyof U ? T[key] : never;
|
|
4818
4818
|
};
|
|
4819
4819
|
|
|
4820
|
+
/**
|
|
4821
|
+
* Resolved type of the argument passed to the \`PrismaClient\` constructor.
|
|
4822
|
+
*
|
|
4823
|
+
* When called without a narrower options type (the common case), this resolves
|
|
4824
|
+
* to \`PrismaClientOptions\` directly, which produces a clear TypeScript error
|
|
4825
|
+
* message (\`not assignable to parameter of type 'PrismaClientOptions'\`) when
|
|
4826
|
+
* the argument is missing or incomplete. When the user supplies a narrower
|
|
4827
|
+
* options type (e.g. via a literal), it falls back to \`Subset\` to keep
|
|
4828
|
+
* filtering out unknown properties.
|
|
4829
|
+
*/
|
|
4830
|
+
export type PrismaClientConstructorArgs<Options extends PrismaClientOptions> =
|
|
4831
|
+
[PrismaClientOptions] extends [Options] ? PrismaClientOptions : Subset<Options, PrismaClientOptions>;
|
|
4832
|
+
|
|
4820
4833
|
/**
|
|
4821
4834
|
* SelectSubset
|
|
4822
4835
|
* @desc From \`T\` pick properties that exist in \`U\`. Simple version of Intersection.
|
|
@@ -5534,7 +5547,7 @@ export class PrismaClient<
|
|
|
5534
5547
|
|
|
5535
5548
|
${(0, import_indent_string6.default)(this.jsDoc, TAB_SIZE)}
|
|
5536
5549
|
|
|
5537
|
-
constructor(optionsArg ?: Prisma.
|
|
5550
|
+
constructor(optionsArg ?: Prisma.PrismaClientConstructorArgs<ClientOptions>);
|
|
5538
5551
|
$on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
|
|
5539
5552
|
|
|
5540
5553
|
/**
|
|
@@ -5697,17 +5710,30 @@ export type TransactionClient = Omit<Prisma.DefaultPrismaClient, ${transactionCl
|
|
|
5697
5710
|
this.internalDatasources.some((d) => d.provider !== "mongodb")
|
|
5698
5711
|
) {
|
|
5699
5712
|
clientOptions.add(
|
|
5700
|
-
ts11.property("adapter", ts11.namedType("runtime.SqlDriverAdapterFactory")).optional().setDocComment(
|
|
5701
|
-
|
|
5702
|
-
|
|
5713
|
+
ts11.property("adapter", ts11.namedType("runtime.SqlDriverAdapterFactory")).optional().setDocComment(ts11.docComment`
|
|
5714
|
+
A driver adapter that PrismaClient uses to connect to your database, such as the ones provided by \`@prisma/adapter-pg\`, \`@prisma/adapter-libsql\`, \`@prisma/adapter-planetscale\`, etc.
|
|
5715
|
+
|
|
5716
|
+
A driver adapter is **required** unless you connect to your database through Prisma Accelerate (in which case use \`accelerateUrl\` instead).
|
|
5717
|
+
|
|
5718
|
+
Learn more: https://pris.ly/d/driver-adapters
|
|
5719
|
+
|
|
5720
|
+
@example
|
|
5721
|
+
\`\`\`ts
|
|
5722
|
+
import { PrismaPg } from '@prisma/adapter-pg'
|
|
5723
|
+
import { PrismaClient } from './generated/prisma/client'
|
|
5724
|
+
|
|
5725
|
+
const adapter = new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
|
5726
|
+
const prisma = new PrismaClient({ adapter })
|
|
5727
|
+
\`\`\`
|
|
5728
|
+
`)
|
|
5703
5729
|
);
|
|
5704
5730
|
}
|
|
5705
5731
|
clientOptions.add(
|
|
5706
|
-
ts11.property("accelerateUrl", ts11.stringType).optional().setDocComment(
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
|
|
5710
|
-
|
|
5732
|
+
ts11.property("accelerateUrl", ts11.stringType).optional().setDocComment(ts11.docComment`
|
|
5733
|
+
The Prisma Accelerate connection URL. Use this option to connect to your database through Prisma Accelerate instead of using a driver adapter to connect directly.
|
|
5734
|
+
|
|
5735
|
+
Learn more: https://pris.ly/d/accelerate
|
|
5736
|
+
`)
|
|
5711
5737
|
);
|
|
5712
5738
|
clientOptions.add(
|
|
5713
5739
|
ts11.property("omit", ts11.namedType("Prisma.GlobalOmitConfig")).optional().setDocComment(ts11.docComment`
|
|
@@ -6776,7 +6802,7 @@ var import_engines_version = require("@prisma/engines-version");
|
|
|
6776
6802
|
var import_internals9 = require("@prisma/internals");
|
|
6777
6803
|
|
|
6778
6804
|
// package.json
|
|
6779
|
-
var version = "7.9.0-dev.
|
|
6805
|
+
var version = "7.9.0-dev.13";
|
|
6780
6806
|
|
|
6781
6807
|
// src/resolvePrismaClient.ts
|
|
6782
6808
|
var import_promises2 = __toESM(require("node:fs/promises"));
|
package/dist/index.mjs
CHANGED
|
@@ -4810,6 +4810,19 @@ export type Subset<T, U> = {
|
|
|
4810
4810
|
[key in keyof T]: key extends keyof U ? T[key] : never;
|
|
4811
4811
|
};
|
|
4812
4812
|
|
|
4813
|
+
/**
|
|
4814
|
+
* Resolved type of the argument passed to the \`PrismaClient\` constructor.
|
|
4815
|
+
*
|
|
4816
|
+
* When called without a narrower options type (the common case), this resolves
|
|
4817
|
+
* to \`PrismaClientOptions\` directly, which produces a clear TypeScript error
|
|
4818
|
+
* message (\`not assignable to parameter of type 'PrismaClientOptions'\`) when
|
|
4819
|
+
* the argument is missing or incomplete. When the user supplies a narrower
|
|
4820
|
+
* options type (e.g. via a literal), it falls back to \`Subset\` to keep
|
|
4821
|
+
* filtering out unknown properties.
|
|
4822
|
+
*/
|
|
4823
|
+
export type PrismaClientConstructorArgs<Options extends PrismaClientOptions> =
|
|
4824
|
+
[PrismaClientOptions] extends [Options] ? PrismaClientOptions : Subset<Options, PrismaClientOptions>;
|
|
4825
|
+
|
|
4813
4826
|
/**
|
|
4814
4827
|
* SelectSubset
|
|
4815
4828
|
* @desc From \`T\` pick properties that exist in \`U\`. Simple version of Intersection.
|
|
@@ -5527,7 +5540,7 @@ export class PrismaClient<
|
|
|
5527
5540
|
|
|
5528
5541
|
${indent6(this.jsDoc, TAB_SIZE)}
|
|
5529
5542
|
|
|
5530
|
-
constructor(optionsArg ?: Prisma.
|
|
5543
|
+
constructor(optionsArg ?: Prisma.PrismaClientConstructorArgs<ClientOptions>);
|
|
5531
5544
|
$on<V extends U>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
|
|
5532
5545
|
|
|
5533
5546
|
/**
|
|
@@ -5690,17 +5703,30 @@ export type TransactionClient = Omit<Prisma.DefaultPrismaClient, ${transactionCl
|
|
|
5690
5703
|
this.internalDatasources.some((d) => d.provider !== "mongodb")
|
|
5691
5704
|
) {
|
|
5692
5705
|
clientOptions.add(
|
|
5693
|
-
ts11.property("adapter", ts11.namedType("runtime.SqlDriverAdapterFactory")).optional().setDocComment(
|
|
5694
|
-
|
|
5695
|
-
|
|
5706
|
+
ts11.property("adapter", ts11.namedType("runtime.SqlDriverAdapterFactory")).optional().setDocComment(ts11.docComment`
|
|
5707
|
+
A driver adapter that PrismaClient uses to connect to your database, such as the ones provided by \`@prisma/adapter-pg\`, \`@prisma/adapter-libsql\`, \`@prisma/adapter-planetscale\`, etc.
|
|
5708
|
+
|
|
5709
|
+
A driver adapter is **required** unless you connect to your database through Prisma Accelerate (in which case use \`accelerateUrl\` instead).
|
|
5710
|
+
|
|
5711
|
+
Learn more: https://pris.ly/d/driver-adapters
|
|
5712
|
+
|
|
5713
|
+
@example
|
|
5714
|
+
\`\`\`ts
|
|
5715
|
+
import { PrismaPg } from '@prisma/adapter-pg'
|
|
5716
|
+
import { PrismaClient } from './generated/prisma/client'
|
|
5717
|
+
|
|
5718
|
+
const adapter = new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
|
5719
|
+
const prisma = new PrismaClient({ adapter })
|
|
5720
|
+
\`\`\`
|
|
5721
|
+
`)
|
|
5696
5722
|
);
|
|
5697
5723
|
}
|
|
5698
5724
|
clientOptions.add(
|
|
5699
|
-
ts11.property("accelerateUrl", ts11.stringType).optional().setDocComment(
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5703
|
-
|
|
5725
|
+
ts11.property("accelerateUrl", ts11.stringType).optional().setDocComment(ts11.docComment`
|
|
5726
|
+
The Prisma Accelerate connection URL. Use this option to connect to your database through Prisma Accelerate instead of using a driver adapter to connect directly.
|
|
5727
|
+
|
|
5728
|
+
Learn more: https://pris.ly/d/accelerate
|
|
5729
|
+
`)
|
|
5704
5730
|
);
|
|
5705
5731
|
clientOptions.add(
|
|
5706
5732
|
ts11.property("omit", ts11.namedType("Prisma.GlobalOmitConfig")).optional().setDocComment(ts11.docComment`
|
|
@@ -6769,7 +6795,7 @@ import { enginesVersion } from "@prisma/engines-version";
|
|
|
6769
6795
|
import { BuiltInProvider, parseEnvValue } from "@prisma/internals";
|
|
6770
6796
|
|
|
6771
6797
|
// package.json
|
|
6772
|
-
var version = "7.9.0-dev.
|
|
6798
|
+
var version = "7.9.0-dev.13";
|
|
6773
6799
|
|
|
6774
6800
|
// src/resolvePrismaClient.ts
|
|
6775
6801
|
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.9.0-dev.
|
|
3
|
+
"version": "7.9.0-dev.13",
|
|
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,15 +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.9.0-dev.
|
|
36
|
-
"@prisma/
|
|
37
|
-
"@prisma/
|
|
38
|
-
"@prisma/
|
|
39
|
-
"@prisma/
|
|
40
|
-
"@prisma/
|
|
41
|
-
"@prisma/param-graph-builder": "7.9.0-dev.
|
|
42
|
-
"@prisma/
|
|
43
|
-
"@prisma/ts-builders": "7.9.0-dev.
|
|
35
|
+
"@prisma/client-common": "7.9.0-dev.13",
|
|
36
|
+
"@prisma/dmmf": "7.9.0-dev.13",
|
|
37
|
+
"@prisma/fetch-engine": "7.9.0-dev.13",
|
|
38
|
+
"@prisma/debug": "7.9.0-dev.13",
|
|
39
|
+
"@prisma/get-platform": "7.9.0-dev.13",
|
|
40
|
+
"@prisma/internals": "7.9.0-dev.13",
|
|
41
|
+
"@prisma/param-graph-builder": "7.9.0-dev.13",
|
|
42
|
+
"@prisma/generator": "7.9.0-dev.13",
|
|
43
|
+
"@prisma/ts-builders": "7.9.0-dev.13"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/pluralize": "0.0.33"
|