@prisma/client-generator-js 6.20.0-integration-next.9 → 6.20.0-integration-next.10

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 CHANGED
@@ -4331,7 +4331,7 @@ function fluentWrapperName(modelName) {
4331
4331
  // src/TSClient/TSClient.ts
4332
4332
  var import_dmmf = require("@prisma/dmmf");
4333
4333
  var ts12 = __toESM(require("@prisma/ts-builders"));
4334
- var import_indent_string8 = __toESM(require("indent-string"));
4334
+ var import_indent_string7 = __toESM(require("indent-string"));
4335
4335
  var import_path = __toESM(require("path"));
4336
4336
 
4337
4337
  // src/dmmf.ts
@@ -5276,7 +5276,7 @@ var GenerateContext = class {
5276
5276
  var import_client_common15 = require("@prisma/client-common");
5277
5277
  var import_internals5 = require("@prisma/internals");
5278
5278
  var ts11 = __toESM(require("@prisma/ts-builders"));
5279
- var import_indent_string7 = __toESM(require("indent-string"));
5279
+ var import_indent_string6 = __toESM(require("indent-string"));
5280
5280
 
5281
5281
  // src/utils/runtimeImport.ts
5282
5282
  var ts9 = __toESM(require("@prisma/ts-builders"));
@@ -5284,20 +5284,6 @@ function runtimeImportedType(name) {
5284
5284
  return ts9.namedType(`runtime.${name}`);
5285
5285
  }
5286
5286
 
5287
- // src/TSClient/Datasources.ts
5288
- var import_indent_string6 = __toESM(require("indent-string"));
5289
- var Datasources = class {
5290
- constructor(internalDatasources) {
5291
- this.internalDatasources = internalDatasources;
5292
- }
5293
- toTS() {
5294
- const sources = this.internalDatasources;
5295
- return `export type Datasources = {
5296
- ${(0, import_indent_string6.default)(sources.map((s) => `${s.name}?: Datasource`).join("\n"), 2)}
5297
- }`;
5298
- }
5299
- };
5300
-
5301
5287
  // src/TSClient/globalOmit.ts
5302
5288
  var import_client_common14 = require("@prisma/client-common");
5303
5289
  var ts10 = __toESM(require("@prisma/ts-builders"));
@@ -5618,7 +5604,7 @@ export class PrismaClient<
5618
5604
  > {
5619
5605
  [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['other'] }
5620
5606
 
5621
- ${(0, import_indent_string7.default)(this.jsDoc, TAB_SIZE)}
5607
+ ${(0, import_indent_string6.default)(this.jsDoc, TAB_SIZE)}
5622
5608
 
5623
5609
  constructor(optionsArg ?: Prisma.Subset<ClientOptions, Prisma.PrismaClientOptions>);
5624
5610
  ${eventRegistrationMethodDeclaration(this.runtimeNameTs)}
@@ -5643,7 +5629,7 @@ ${[
5643
5629
  extendsPropertyDefinition()
5644
5630
  ].filter((d) => d !== null).join("\n").trim()}
5645
5631
 
5646
- ${(0, import_indent_string7.default)(
5632
+ ${(0, import_indent_string6.default)(
5647
5633
  dmmf.mappings.modelOperations.filter((m) => m.findMany).map((m) => {
5648
5634
  let methodName = (0, import_client_common15.uncapitalize)(m.model);
5649
5635
  if (methodName === "constructor") {
@@ -5666,8 +5652,7 @@ get ${methodName}(): Prisma.${m.model}Delegate<${generics.join(", ")}>;`;
5666
5652
  }
5667
5653
  toTS() {
5668
5654
  const clientOptions = this.buildClientOptions();
5669
- return `${new Datasources(this.internalDatasources).toTS()}
5670
- ${clientExtensionsDefinitions(this.context)}
5655
+ return `${clientExtensionsDefinitions(this.context)}
5671
5656
  export type DefaultPrismaClient = PrismaClient
5672
5657
  export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
5673
5658
  ${ts11.stringify(ts11.moduleExport(clientOptions))}
@@ -5740,8 +5725,6 @@ export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClie
5740
5725
  }
5741
5726
  buildClientOptions() {
5742
5727
  const clientOptions = ts11.interfaceDeclaration("PrismaClientOptions").add(
5743
- ts11.property("datasources", ts11.namedType("Datasources")).optional().setDocComment(ts11.docComment("Overwrites the datasource url from your schema.prisma file"))
5744
- ).add(
5745
5728
  ts11.property("errorFormat", ts11.namedType("ErrorFormat")).optional().setDocComment(ts11.docComment('@default "colorless"'))
5746
5729
  ).add(
5747
5730
  ts11.property("log", ts11.array(ts11.unionType([ts11.namedType("LogLevel"), ts11.namedType("LogDefinition")]))).optional().setDocComment(ts11.docComment`
@@ -5934,7 +5917,7 @@ ${modelEnumsAliases.join("\n\n")}
5934
5917
  ${prismaClientClass.toTSWithoutNamespace()}
5935
5918
 
5936
5919
  export namespace Prisma {
5937
- ${(0, import_indent_string8.default)(
5920
+ ${(0, import_indent_string7.default)(
5938
5921
  `${commonCode.ts()}
5939
5922
  ${new Enum(
5940
5923
  {
@@ -6843,7 +6826,7 @@ var import_engines_version = require("@prisma/engines-version");
6843
6826
  var import_internals10 = require("@prisma/internals");
6844
6827
 
6845
6828
  // package.json
6846
- var version = "6.20.0-integration-next.9";
6829
+ var version = "6.20.0-integration-next.10";
6847
6830
 
6848
6831
  // src/resolvePrismaClient.ts
6849
6832
  var import_promises2 = __toESM(require("node:fs/promises"));
package/dist/index.mjs CHANGED
@@ -4320,7 +4320,7 @@ function fluentWrapperName(modelName) {
4320
4320
  // src/TSClient/TSClient.ts
4321
4321
  import { datamodelEnumToSchemaEnum, datamodelSchemaEnumToSchemaEnum } from "@prisma/dmmf";
4322
4322
  import * as ts12 from "@prisma/ts-builders";
4323
- import indent8 from "indent-string";
4323
+ import indent7 from "indent-string";
4324
4324
  import path from "path";
4325
4325
 
4326
4326
  // src/dmmf.ts
@@ -5268,7 +5268,7 @@ var GenerateContext = class {
5268
5268
  import { capitalize as capitalize7, uncapitalize as uncapitalize7 } from "@prisma/client-common";
5269
5269
  import { assertNever as assertNever2 } from "@prisma/internals";
5270
5270
  import * as ts11 from "@prisma/ts-builders";
5271
- import indent7 from "indent-string";
5271
+ import indent6 from "indent-string";
5272
5272
 
5273
5273
  // src/utils/runtimeImport.ts
5274
5274
  import * as ts9 from "@prisma/ts-builders";
@@ -5276,20 +5276,6 @@ function runtimeImportedType(name) {
5276
5276
  return ts9.namedType(`runtime.${name}`);
5277
5277
  }
5278
5278
 
5279
- // src/TSClient/Datasources.ts
5280
- import indent6 from "indent-string";
5281
- var Datasources = class {
5282
- constructor(internalDatasources) {
5283
- this.internalDatasources = internalDatasources;
5284
- }
5285
- toTS() {
5286
- const sources = this.internalDatasources;
5287
- return `export type Datasources = {
5288
- ${indent6(sources.map((s) => `${s.name}?: Datasource`).join("\n"), 2)}
5289
- }`;
5290
- }
5291
- };
5292
-
5293
5279
  // src/TSClient/globalOmit.ts
5294
5280
  import { uncapitalize as uncapitalize6 } from "@prisma/client-common";
5295
5281
  import * as ts10 from "@prisma/ts-builders";
@@ -5610,7 +5596,7 @@ export class PrismaClient<
5610
5596
  > {
5611
5597
  [K: symbol]: { types: Prisma.TypeMap<ExtArgs>['other'] }
5612
5598
 
5613
- ${indent7(this.jsDoc, TAB_SIZE)}
5599
+ ${indent6(this.jsDoc, TAB_SIZE)}
5614
5600
 
5615
5601
  constructor(optionsArg ?: Prisma.Subset<ClientOptions, Prisma.PrismaClientOptions>);
5616
5602
  ${eventRegistrationMethodDeclaration(this.runtimeNameTs)}
@@ -5635,7 +5621,7 @@ ${[
5635
5621
  extendsPropertyDefinition()
5636
5622
  ].filter((d) => d !== null).join("\n").trim()}
5637
5623
 
5638
- ${indent7(
5624
+ ${indent6(
5639
5625
  dmmf.mappings.modelOperations.filter((m) => m.findMany).map((m) => {
5640
5626
  let methodName = uncapitalize7(m.model);
5641
5627
  if (methodName === "constructor") {
@@ -5658,8 +5644,7 @@ get ${methodName}(): Prisma.${m.model}Delegate<${generics.join(", ")}>;`;
5658
5644
  }
5659
5645
  toTS() {
5660
5646
  const clientOptions = this.buildClientOptions();
5661
- return `${new Datasources(this.internalDatasources).toTS()}
5662
- ${clientExtensionsDefinitions(this.context)}
5647
+ return `${clientExtensionsDefinitions(this.context)}
5663
5648
  export type DefaultPrismaClient = PrismaClient
5664
5649
  export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
5665
5650
  ${ts11.stringify(ts11.moduleExport(clientOptions))}
@@ -5732,8 +5717,6 @@ export type TransactionClient = Omit<Prisma.DefaultPrismaClient, runtime.ITXClie
5732
5717
  }
5733
5718
  buildClientOptions() {
5734
5719
  const clientOptions = ts11.interfaceDeclaration("PrismaClientOptions").add(
5735
- ts11.property("datasources", ts11.namedType("Datasources")).optional().setDocComment(ts11.docComment("Overwrites the datasource url from your schema.prisma file"))
5736
- ).add(
5737
5720
  ts11.property("errorFormat", ts11.namedType("ErrorFormat")).optional().setDocComment(ts11.docComment('@default "colorless"'))
5738
5721
  ).add(
5739
5722
  ts11.property("log", ts11.array(ts11.unionType([ts11.namedType("LogLevel"), ts11.namedType("LogDefinition")]))).optional().setDocComment(ts11.docComment`
@@ -5926,7 +5909,7 @@ ${modelEnumsAliases.join("\n\n")}
5926
5909
  ${prismaClientClass.toTSWithoutNamespace()}
5927
5910
 
5928
5911
  export namespace Prisma {
5929
- ${indent8(
5912
+ ${indent7(
5930
5913
  `${commonCode.ts()}
5931
5914
  ${new Enum(
5932
5915
  {
@@ -6835,7 +6818,7 @@ import { enginesVersion } from "@prisma/engines-version";
6835
6818
  import { parseEnvValue } from "@prisma/internals";
6836
6819
 
6837
6820
  // package.json
6838
- var version = "6.20.0-integration-next.9";
6821
+ var version = "6.20.0-integration-next.10";
6839
6822
 
6840
6823
  // src/resolvePrismaClient.ts
6841
6824
  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.20.0-integration-next.9",
3
+ "version": "6.20.0-integration-next.10",
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,14 +32,14 @@
32
32
  "package-up": "5.0.0",
33
33
  "pluralize": "8.0.0",
34
34
  "ts-pattern": "5.6.2",
35
- "@prisma/dmmf": "6.20.0-integration-next.9",
36
- "@prisma/client-common": "6.20.0-integration-next.9",
37
- "@prisma/fetch-engine": "6.20.0-integration-next.9",
38
- "@prisma/get-platform": "6.20.0-integration-next.9",
39
- "@prisma/generator": "6.20.0-integration-next.9",
40
- "@prisma/internals": "6.20.0-integration-next.9",
41
- "@prisma/debug": "6.20.0-integration-next.9",
42
- "@prisma/ts-builders": "6.20.0-integration-next.9"
35
+ "@prisma/client-common": "6.20.0-integration-next.10",
36
+ "@prisma/debug": "6.20.0-integration-next.10",
37
+ "@prisma/dmmf": "6.20.0-integration-next.10",
38
+ "@prisma/fetch-engine": "6.20.0-integration-next.10",
39
+ "@prisma/internals": "6.20.0-integration-next.10",
40
+ "@prisma/generator": "6.20.0-integration-next.10",
41
+ "@prisma/get-platform": "6.20.0-integration-next.10",
42
+ "@prisma/ts-builders": "6.20.0-integration-next.10"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@types/pluralize": "0.0.33",
@@ -1,7 +0,0 @@
1
- import { DataSource } from '@prisma/generator';
2
- import type { Generable } from './Generable';
3
- export declare class Datasources implements Generable {
4
- protected readonly internalDatasources: DataSource[];
5
- constructor(internalDatasources: DataSource[]);
6
- toTS(): string;
7
- }