@prisma/client-generator-js 6.19.0 → 6.20.0-integration-next.1

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.
@@ -1,10 +1,9 @@
1
- import { EnvPaths } from '@prisma/internals';
2
1
  import type { O } from 'ts-toolbelt';
3
2
  import { DMMFHelper } from '../dmmf';
4
3
  import { GenerateClientOptions } from '../generateClient';
5
4
  import { GenericArgsInfo } from '../GenericsArgsInfo';
6
5
  import { type Generable } from './Generable';
7
- type RuntimeName = 'binary' | 'library' | 'wasm-engine-edge' | 'wasm-compiler-edge' | 'edge' | 'edge-esm' | 'index-browser' | 'react-native' | 'client' | (string & {});
6
+ type RuntimeName = 'library' | 'wasm-compiler-edge' | 'index-browser' | 'client' | (string & {});
8
7
  export type TSClientOptions = O.Required<GenerateClientOptions, 'runtimeBase'> & {
9
8
  /** More granular way to define JS runtime name */
10
9
  runtimeNameJs: RuntimeName;
@@ -20,8 +19,6 @@ export type TSClientOptions = O.Required<GenerateClientOptions, 'runtimeBase'> &
20
19
  reusedTs?: string;
21
20
  /** When js doesn't need to be regenerated */
22
21
  reusedJs?: string;
23
- /** result of getEnvPaths call */
24
- envPaths: EnvPaths;
25
22
  };
26
23
  export declare class TSClient implements Generable {
27
24
  protected readonly options: TSClientOptions;
@@ -1,6 +1,5 @@
1
1
  import type * as DMMF from '@prisma/dmmf';
2
2
  import type { ActiveConnectorType, BinaryPaths, DataSource, GeneratorConfig, SqlQueryOutput } from '@prisma/generator';
3
- import { EnvPaths } from '@prisma/internals';
4
3
  import type { O } from 'ts-toolbelt';
5
4
  export declare class DenylistError extends Error {
6
5
  constructor(message: string);
@@ -22,11 +21,8 @@ export interface GenerateClientOptions {
22
21
  engineVersion: string;
23
22
  clientVersion: string;
24
23
  activeProvider: ActiveConnectorType;
25
- envPaths?: EnvPaths;
26
24
  /** When --postinstall is passed via CLI */
27
25
  postinstall?: boolean;
28
- /** When --no-engine is passed via CLI */
29
- copyEngine?: boolean;
30
26
  typedSql?: SqlQueryOutput[];
31
27
  }
32
28
  export interface FileMap {
@@ -36,5 +32,5 @@ export interface BuildClientResult {
36
32
  fileMap: FileMap;
37
33
  prismaClientDmmf: DMMF.Document;
38
34
  }
39
- export declare function buildClient({ schemaPath, runtimeBase, runtimeSourcePath, datamodel, binaryPaths, outputDir, generator, dmmf, datasources, engineVersion, clientVersion, activeProvider, postinstall, copyEngine, envPaths, typedSql, }: O.Required<GenerateClientOptions, 'runtimeBase'>): Promise<BuildClientResult>;
35
+ export declare function buildClient({ schemaPath, runtimeBase, runtimeSourcePath, datamodel, binaryPaths, outputDir, generator, dmmf, datasources, engineVersion, clientVersion, activeProvider, postinstall, typedSql, }: O.Required<GenerateClientOptions, 'runtimeBase'>): Promise<BuildClientResult>;
40
36
  export declare function generateClient(options: GenerateClientOptions): Promise<void>;
package/dist/index.d.mts CHANGED
@@ -2,7 +2,6 @@ import type { ActiveConnectorType } from '@prisma/generator';
2
2
  import type { BinaryPaths } from '@prisma/generator';
3
3
  import type { DataSource } from '@prisma/generator';
4
4
  import * as DMMF from '@prisma/dmmf';
5
- import { EnvPaths } from '@prisma/internals';
6
5
  import { Generator as Generator_2 } from '@prisma/generator';
7
6
  import { GeneratorConfig } from '@prisma/generator';
8
7
  import { GeneratorManifest } from '@prisma/generator';
@@ -41,11 +40,8 @@ export declare interface GenerateClientOptions {
41
40
  engineVersion: string;
42
41
  clientVersion: string;
43
42
  activeProvider: ActiveConnectorType;
44
- envPaths?: EnvPaths;
45
43
  /** When --postinstall is passed via CLI */
46
44
  postinstall?: boolean;
47
- /** When --no-engine is passed via CLI */
48
- copyEngine?: boolean;
49
45
  typedSql?: SqlQueryOutput[];
50
46
  }
51
47
 
package/dist/index.d.ts CHANGED
@@ -2,7 +2,6 @@ import type { ActiveConnectorType } from '@prisma/generator';
2
2
  import type { BinaryPaths } from '@prisma/generator';
3
3
  import type { DataSource } from '@prisma/generator';
4
4
  import * as DMMF from '@prisma/dmmf';
5
- import { EnvPaths } from '@prisma/internals';
6
5
  import { Generator as Generator_2 } from '@prisma/generator';
7
6
  import { GeneratorConfig } from '@prisma/generator';
8
7
  import { GeneratorManifest } from '@prisma/generator';
@@ -41,11 +40,8 @@ export declare interface GenerateClientOptions {
41
40
  engineVersion: string;
42
41
  clientVersion: string;
43
42
  activeProvider: ActiveConnectorType;
44
- envPaths?: EnvPaths;
45
43
  /** When --postinstall is passed via CLI */
46
44
  postinstall?: boolean;
47
- /** When --no-engine is passed via CLI */
48
- copyEngine?: boolean;
49
45
  typedSql?: SqlQueryOutput[];
50
46
  }
51
47