@prisma/client-generator-ts 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
@@ -5406,25 +5406,6 @@ export const skip = runtime.skip
5406
5406
  return "";
5407
5407
  }
5408
5408
 
5409
- // src/TSClient/Datasources.ts
5410
- var import_indent_string6 = __toESM(require("indent-string"));
5411
- var Datasources = class {
5412
- constructor(internalDatasources) {
5413
- this.internalDatasources = internalDatasources;
5414
- }
5415
- toTS() {
5416
- const sources = this.internalDatasources;
5417
- return `
5418
- export type Datasource = {
5419
- url?: string
5420
- }
5421
- export type Datasources = {
5422
- ${(0, import_indent_string6.default)(sources.map((s) => `${s.name}?: Datasource`).join("\n"), 2)}
5423
- }
5424
- `;
5425
- }
5426
- };
5427
-
5428
5409
  // src/TSClient/FieldRefInput.ts
5429
5410
  var FieldRefInput = class {
5430
5411
  constructor(type) {
@@ -5627,7 +5608,6 @@ export type BatchPayload = {
5627
5608
  count: number
5628
5609
  }
5629
5610
 
5630
- ${new Datasources(options.datasources).toTS()}
5631
5611
  ${clientExtensionsDefinitions()}
5632
5612
  export type DefaultPrismaClient = PrismaClient
5633
5613
  export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
@@ -5709,8 +5689,6 @@ function clientExtensionsDefinitions() {
5709
5689
  }
5710
5690
  function buildClientOptions(context, options) {
5711
5691
  const clientOptions = ts19.interfaceDeclaration("PrismaClientOptions").add(
5712
- ts19.property("datasources", ts19.namedType("Datasources")).optional().setDocComment(ts19.docComment("Overwrites the datasource url from your schema.prisma file"))
5713
- ).add(
5714
5692
  ts19.property("errorFormat", ts19.namedType("ErrorFormat")).optional().setDocComment(ts19.docComment('@default "colorless"'))
5715
5693
  ).add(
5716
5694
  ts19.property("log", ts19.array(ts19.unionType([ts19.namedType("LogLevel"), ts19.namedType("LogDefinition")]))).optional().setDocComment(ts19.docComment`
@@ -6403,7 +6381,7 @@ var import_internals7 = require("@prisma/internals");
6403
6381
  var import_get_tsconfig = require("get-tsconfig");
6404
6382
 
6405
6383
  // package.json
6406
- var version = "6.20.0-integration-next.9";
6384
+ var version = "6.20.0-integration-next.10";
6407
6385
 
6408
6386
  // src/module-format.ts
6409
6387
  function parseModuleFormat(format) {
package/dist/index.mjs CHANGED
@@ -5399,25 +5399,6 @@ export const skip = runtime.skip
5399
5399
  return "";
5400
5400
  }
5401
5401
 
5402
- // src/TSClient/Datasources.ts
5403
- import indent6 from "indent-string";
5404
- var Datasources = class {
5405
- constructor(internalDatasources) {
5406
- this.internalDatasources = internalDatasources;
5407
- }
5408
- toTS() {
5409
- const sources = this.internalDatasources;
5410
- return `
5411
- export type Datasource = {
5412
- url?: string
5413
- }
5414
- export type Datasources = {
5415
- ${indent6(sources.map((s) => `${s.name}?: Datasource`).join("\n"), 2)}
5416
- }
5417
- `;
5418
- }
5419
- };
5420
-
5421
5402
  // src/TSClient/FieldRefInput.ts
5422
5403
  var FieldRefInput = class {
5423
5404
  constructor(type) {
@@ -5620,7 +5601,6 @@ export type BatchPayload = {
5620
5601
  count: number
5621
5602
  }
5622
5603
 
5623
- ${new Datasources(options.datasources).toTS()}
5624
5604
  ${clientExtensionsDefinitions()}
5625
5605
  export type DefaultPrismaClient = PrismaClient
5626
5606
  export type ErrorFormat = 'pretty' | 'colorless' | 'minimal'
@@ -5702,8 +5682,6 @@ function clientExtensionsDefinitions() {
5702
5682
  }
5703
5683
  function buildClientOptions(context, options) {
5704
5684
  const clientOptions = ts19.interfaceDeclaration("PrismaClientOptions").add(
5705
- ts19.property("datasources", ts19.namedType("Datasources")).optional().setDocComment(ts19.docComment("Overwrites the datasource url from your schema.prisma file"))
5706
- ).add(
5707
5685
  ts19.property("errorFormat", ts19.namedType("ErrorFormat")).optional().setDocComment(ts19.docComment('@default "colorless"'))
5708
5686
  ).add(
5709
5687
  ts19.property("log", ts19.array(ts19.unionType([ts19.namedType("LogLevel"), ts19.namedType("LogDefinition")]))).optional().setDocComment(ts19.docComment`
@@ -6396,7 +6374,7 @@ import { parseEnvValue } from "@prisma/internals";
6396
6374
  import { getTsconfig } from "get-tsconfig";
6397
6375
 
6398
6376
  // package.json
6399
- var version = "6.20.0-integration-next.9";
6377
+ var version = "6.20.0-integration-next.10";
6400
6378
 
6401
6379
  // src/module-format.ts
6402
6380
  function parseModuleFormat(format) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client-generator-ts",
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",
@@ -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": "6.20.0-integration-next.9",
37
- "@prisma/dmmf": "6.20.0-integration-next.9",
38
- "@prisma/fetch-engine": "6.20.0-integration-next.9",
39
- "@prisma/generator": "6.20.0-integration-next.9",
40
- "@prisma/get-platform": "6.20.0-integration-next.9",
41
- "@prisma/debug": "6.20.0-integration-next.9",
42
- "@prisma/internals": "6.20.0-integration-next.9",
43
- "@prisma/ts-builders": "6.20.0-integration-next.9"
36
+ "@prisma/client-common": "6.20.0-integration-next.10",
37
+ "@prisma/debug": "6.20.0-integration-next.10",
38
+ "@prisma/generator": "6.20.0-integration-next.10",
39
+ "@prisma/fetch-engine": "6.20.0-integration-next.10",
40
+ "@prisma/dmmf": "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
+ "@prisma/internals": "6.20.0-integration-next.10"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@types/pluralize": "0.0.33",
@@ -1,6 +0,0 @@
1
- import { DataSource } from '@prisma/generator';
2
- export declare class Datasources {
3
- protected readonly internalDatasources: DataSource[];
4
- constructor(internalDatasources: DataSource[]);
5
- toTS(): string;
6
- }