@prisma/client 6.3.0-integration-fix-subcommands-esm-projects.3 → 6.3.0-integration-studio-ux-refinements.2

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.
@@ -266,8 +266,6 @@ export declare type Count<O> = {
266
266
  [K in keyof O]: Count<number>;
267
267
  } & {};
268
268
 
269
- export declare function createParam(name: string): Param<unknown, string>;
270
-
271
269
  /**
272
270
  * Custom fetch function for `DataProxyEngine`.
273
271
  *
@@ -1531,7 +1529,7 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
1531
1529
  * @param values
1532
1530
  * @returns
1533
1531
  */
1534
- $executeRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise_2<unknown, any>;
1532
+ $executeRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise_2<unknown>;
1535
1533
  /**
1536
1534
  * Unsafe counterpart of `$executeRaw` that is susceptible to SQL injections
1537
1535
  * @see https://github.com/prisma/prisma/issues/7142
@@ -1540,14 +1538,14 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
1540
1538
  * @param values
1541
1539
  * @returns
1542
1540
  */
1543
- $executeRawUnsafe(query: string, ...values: RawValue[]): PrismaPromise_2<unknown, any>;
1541
+ $executeRawUnsafe(query: string, ...values: RawValue[]): PrismaPromise_2<unknown>;
1544
1542
  /**
1545
1543
  * Executes a raw command only for MongoDB
1546
1544
  *
1547
1545
  * @param command
1548
1546
  * @returns
1549
1547
  */
1550
- $runCommandRaw(command: Record<string, JsInputValue>): PrismaPromise_2<unknown, any>;
1548
+ $runCommandRaw(command: Record<string, JsInputValue>): PrismaPromise_2<unknown>;
1551
1549
  /**
1552
1550
  * Executes a raw query and returns selected data
1553
1551
  */
@@ -1560,12 +1558,12 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
1560
1558
  * @param values
1561
1559
  * @returns
1562
1560
  */
1563
- $queryRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise_2<unknown, any>;
1561
+ $queryRaw(query: TemplateStringsArray | Sql, ...values: any[]): PrismaPromise_2<unknown>;
1564
1562
  /**
1565
1563
  * Counterpart to $queryRaw, that returns strongly typed results
1566
1564
  * @param typedSql
1567
1565
  */
1568
- $queryRawTyped(typedSql: UnknownTypedSql): PrismaPromise_2<unknown, any>;
1566
+ $queryRawTyped(typedSql: UnknownTypedSql): PrismaPromise_2<unknown>;
1569
1567
  /**
1570
1568
  * Unsafe counterpart of `$queryRaw` that is susceptible to SQL injections
1571
1569
  * @see https://github.com/prisma/prisma/issues/7142
@@ -1574,7 +1572,7 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
1574
1572
  * @param values
1575
1573
  * @returns
1576
1574
  */
1577
- $queryRawUnsafe(query: string, ...values: RawValue[]): PrismaPromise_2<unknown, any>;
1575
+ $queryRawUnsafe(query: string, ...values: RawValue[]): PrismaPromise_2<unknown>;
1578
1576
  /**
1579
1577
  * Execute a batch of requests in a transaction
1580
1578
  * @param requests
@@ -2299,12 +2297,6 @@ export declare type Or<A extends 1 | 0, B extends 1 | 0> = {
2299
2297
  };
2300
2298
  }[A][B];
2301
2299
 
2302
- export declare function Param<$Type, $Value extends string>(name: $Value): Param<$Type, $Value>;
2303
-
2304
- export declare type Param<out $Type, $Value extends string> = {
2305
- readonly name: $Value;
2306
- };
2307
-
2308
2300
  export declare type PatchFlat<O1, O2> = O1 & Omit_2<O2, keyof O1>;
2309
2301
 
2310
2302
  export declare type Path<O, P, Default = never> = O extends unknown ? P extends [infer K, ...infer R] ? K extends keyof O ? Path<O[K], R> : Default : O : never;
@@ -2422,12 +2414,6 @@ export declare class PrismaClientValidationError extends Error {
2422
2414
 
2423
2415
  declare function prismaGraphQLToJSError({ error, user_facing_error }: RequestError, clientVersion: string, activeProvider: string): PrismaClientKnownRequestError | PrismaClientUnknownRequestError;
2424
2416
 
2425
- declare type PrismaOperationSpec<TArgs, TAction = string> = {
2426
- args: TArgs;
2427
- action: TAction;
2428
- model: string;
2429
- };
2430
-
2431
2417
  export declare interface PrismaPromise<T> extends Promise<T> {
2432
2418
  [Symbol.toStringTag]: 'PrismaPromise';
2433
2419
  }
@@ -2437,27 +2423,26 @@ export declare interface PrismaPromise<T> extends Promise<T> {
2437
2423
  * original `Promise` are optional so that it can be backwards-compatible.
2438
2424
  * @see [[createPrismaPromise]]
2439
2425
  */
2440
- declare interface PrismaPromise_2<TResult, TSpec extends PrismaOperationSpec<unknown> = any> extends Promise<TResult> {
2441
- get spec(): TSpec;
2426
+ declare interface PrismaPromise_2<A> extends Promise<A> {
2442
2427
  /**
2443
2428
  * Extension of the original `.then` function
2444
2429
  * @param onfulfilled same as regular promises
2445
2430
  * @param onrejected same as regular promises
2446
2431
  * @param transaction transaction options
2447
2432
  */
2448
- then<R1 = TResult, R2 = never>(onfulfilled?: (value: TResult) => R1 | PromiseLike<R1>, onrejected?: (error: unknown) => R2 | PromiseLike<R2>, transaction?: PrismaPromiseTransaction): Promise<R1 | R2>;
2433
+ then<R1 = A, R2 = never>(onfulfilled?: (value: A) => R1 | PromiseLike<R1>, onrejected?: (error: unknown) => R2 | PromiseLike<R2>, transaction?: PrismaPromiseTransaction): Promise<R1 | R2>;
2449
2434
  /**
2450
2435
  * Extension of the original `.catch` function
2451
2436
  * @param onrejected same as regular promises
2452
2437
  * @param transaction transaction options
2453
2438
  */
2454
- catch<R = never>(onrejected?: ((reason: any) => R | PromiseLike<R>) | undefined | null, transaction?: PrismaPromiseTransaction): Promise<TResult | R>;
2439
+ catch<R = never>(onrejected?: ((reason: any) => R | PromiseLike<R>) | undefined | null, transaction?: PrismaPromiseTransaction): Promise<A | R>;
2455
2440
  /**
2456
2441
  * Extension of the original `.finally` function
2457
2442
  * @param onfinally same as regular promises
2458
2443
  * @param transaction transaction options
2459
2444
  */
2460
- finally(onfinally?: (() => void) | undefined | null, transaction?: PrismaPromiseTransaction): Promise<TResult>;
2445
+ finally(onfinally?: (() => void) | undefined | null, transaction?: PrismaPromiseTransaction): Promise<A>;
2461
2446
  /**
2462
2447
  * Called when executing a batch of regular tx
2463
2448
  * @param transaction transaction options for batch tx
@@ -2473,7 +2458,7 @@ declare type PrismaPromiseBatchTransaction = {
2473
2458
  lock: PromiseLike<void>;
2474
2459
  };
2475
2460
 
2476
- declare type PrismaPromiseCallback = (transaction?: PrismaPromiseTransaction) => Promise<unknown>;
2461
+ declare type PrismaPromiseCallback = (transaction?: PrismaPromiseTransaction) => PrismaPromise_2<unknown>;
2477
2462
 
2478
2463
  /**
2479
2464
  * Creates a [[PrismaPromise]]. It is Prisma's implementation of `Promise` which
@@ -2484,7 +2469,7 @@ declare type PrismaPromiseCallback = (transaction?: PrismaPromiseTransaction) =>
2484
2469
  * @see [[PrismaPromise]]
2485
2470
  * @returns
2486
2471
  */
2487
- declare type PrismaPromiseFactory = <T extends PrismaOperationSpec<unknown>>(callback: PrismaPromiseCallback, op?: T) => PrismaPromise_2<unknown>;
2472
+ declare type PrismaPromiseFactory = (callback: PrismaPromiseCallback) => PrismaPromise_2<unknown>;
2488
2473
 
2489
2474
  declare type PrismaPromiseInteractiveTransaction<PayloadType = unknown> = {
2490
2475
  kind: 'itx';
@@ -2567,7 +2552,6 @@ declare interface QueryEngineConstructor {
2567
2552
  declare type QueryEngineInstance = {
2568
2553
  connect(headers: string, requestId: string): Promise<void>;
2569
2554
  disconnect(headers: string, requestId: string): Promise<void>;
2570
- compile(request: string, humanReadable: boolean): Promise<string>;
2571
2555
  /**
2572
2556
  * @param requestStr JSON.stringified `QueryEngineRequest | QueryEngineBatchRequest`
2573
2557
  * @param headersStr JSON.stringified `QueryEngineRequestHeaders`