prisma 6.9.0-dev.9 → 6.9.0-integration-push-xtvzqtsrpwpk.3

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.
@@ -98,7 +98,7 @@ export declare type BaseDMMF = {
98
98
  declare type BatchArgs = {
99
99
  queries: BatchQuery[];
100
100
  transaction?: {
101
- isolationLevel?: IsolationLevel;
101
+ isolationLevel?: IsolationLevel_2;
102
102
  };
103
103
  };
104
104
 
@@ -126,7 +126,7 @@ declare type BatchQueryOptionsCbArgs = {
126
126
  declare type BatchResponse = MultiBatchResponse | CompactedBatchResponse;
127
127
 
128
128
  declare type BatchTransactionOptions = {
129
- isolationLevel?: IsolationLevel;
129
+ isolationLevel?: Transaction_2.IsolationLevel;
130
130
  };
131
131
 
132
132
  declare interface BinaryTargetsEnvValue {
@@ -1475,7 +1475,7 @@ export declare type GetAggregateResult<P extends OperationPayload, A> = {
1475
1475
  };
1476
1476
  };
1477
1477
 
1478
- declare function getBatchRequestPayload(batch: JsonQuery[], transaction?: TransactionOptions_3<unknown>): QueryEngineBatchRequest;
1478
+ declare function getBatchRequestPayload(batch: JsonQuery[], transaction?: TransactionOptions_2<unknown>): QueryEngineBatchRequest;
1479
1479
 
1480
1480
  export declare type GetBatchResult = {
1481
1481
  count: number;
@@ -1638,7 +1638,7 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
1638
1638
  */
1639
1639
  _transactionWithCallback({ callback, options, }: {
1640
1640
  callback: (client: Client) => Promise<unknown>;
1641
- options?: TransactionOptions_2;
1641
+ options?: Options;
1642
1642
  }): Promise<unknown>;
1643
1643
  _createItxClient(transaction: PrismaPromiseInteractiveTransaction): Client;
1644
1644
  /**
@@ -1963,6 +1963,8 @@ declare type InternalRequestParams = {
1963
1963
 
1964
1964
  declare type IsolationLevel = 'READ UNCOMMITTED' | 'READ COMMITTED' | 'REPEATABLE READ' | 'SNAPSHOT' | 'SERIALIZABLE';
1965
1965
 
1966
+ declare type IsolationLevel_2 = 'ReadUncommitted' | 'ReadCommitted' | 'RepeatableRead' | 'Snapshot' | 'Serializable';
1967
+
1966
1968
  declare function isSkip(value: unknown): value is Skip;
1967
1969
 
1968
1970
  export declare function isTypedSql(value: unknown): value is UnknownTypedSql;
@@ -2007,7 +2009,7 @@ export declare interface JsonArray extends Array<JsonValue> {
2007
2009
  export declare type JsonBatchQuery = {
2008
2010
  batch: JsonQuery[];
2009
2011
  transaction?: {
2010
- isolationLevel?: IsolationLevel;
2012
+ isolationLevel?: IsolationLevel_2;
2011
2013
  };
2012
2014
  };
2013
2015
 
@@ -2422,6 +2424,15 @@ export declare type OptionalKeys<O> = {
2422
2424
  }[keyof O];
2423
2425
 
2424
2426
  declare type Options = {
2427
+ /** Timeout for starting the transaction */
2428
+ maxWait?: number;
2429
+ /** Timeout for the transaction body */
2430
+ timeout?: number;
2431
+ /** Transaction isolation level */
2432
+ isolationLevel?: IsolationLevel_2;
2433
+ };
2434
+
2435
+ declare type Options_2 = {
2425
2436
  clientVersion: string;
2426
2437
  };
2427
2438
 
@@ -2570,7 +2581,7 @@ export declare class PrismaClientUnknownRequestError extends Error implements Er
2570
2581
  export declare class PrismaClientValidationError extends Error {
2571
2582
  name: string;
2572
2583
  clientVersion: string;
2573
- constructor(message: string, { clientVersion }: Options);
2584
+ constructor(message: string, { clientVersion }: Options_2);
2574
2585
  get [Symbol.toStringTag](): string;
2575
2586
  }
2576
2587
 
@@ -2622,7 +2633,7 @@ declare interface PrismaPromise_2<TResult, TSpec extends PrismaOperationSpec<unk
2622
2633
  declare type PrismaPromiseBatchTransaction = {
2623
2634
  kind: 'batch';
2624
2635
  id: number;
2625
- isolationLevel?: IsolationLevel;
2636
+ isolationLevel?: IsolationLevel_2;
2626
2637
  index: number;
2627
2638
  lock: PromiseLike<void>;
2628
2639
  };
@@ -2705,7 +2716,7 @@ declare type QueryCompilerOptions = {
2705
2716
  declare type QueryEngineBatchGraphQLRequest = {
2706
2717
  batch: QueryEngineRequest[];
2707
2718
  transaction?: boolean;
2708
- isolationLevel?: IsolationLevel;
2719
+ isolationLevel?: IsolationLevel_2;
2709
2720
  };
2710
2721
 
2711
2722
  declare type QueryEngineBatchRequest = QueryEngineBatchGraphQLRequest | JsonBatchQuery;
@@ -2851,7 +2862,7 @@ export declare type RenameAndNestPayloadKeys<P> = {
2851
2862
  };
2852
2863
 
2853
2864
  declare type RequestBatchOptions<InteractiveTransactionPayload> = {
2854
- transaction?: TransactionOptions_3<InteractiveTransactionPayload>;
2865
+ transaction?: TransactionOptions_2<InteractiveTransactionPayload>;
2855
2866
  traceparent?: string;
2856
2867
  numTry?: number;
2857
2868
  containsWrite: boolean;
@@ -3495,7 +3506,8 @@ declare interface Transaction extends AdapterInfo, SqlQueryable {
3495
3506
 
3496
3507
  declare namespace Transaction_2 {
3497
3508
  export {
3498
- TransactionOptions_2 as Options,
3509
+ Options,
3510
+ IsolationLevel_2 as IsolationLevel,
3499
3511
  InteractiveTransactionInfo,
3500
3512
  TransactionHeaders
3501
3513
  }
@@ -3509,13 +3521,7 @@ declare type TransactionOptions = {
3509
3521
  usePhantomQuery: boolean;
3510
3522
  };
3511
3523
 
3512
- declare type TransactionOptions_2 = {
3513
- maxWait?: number;
3514
- timeout?: number;
3515
- isolationLevel?: IsolationLevel;
3516
- };
3517
-
3518
- declare type TransactionOptions_3<InteractiveTransactionPayload> = {
3524
+ declare type TransactionOptions_2<InteractiveTransactionPayload> = {
3519
3525
  kind: 'itx';
3520
3526
  options: InteractiveTransactionOptions<InteractiveTransactionPayload>;
3521
3527
  } | {
@@ -98,7 +98,7 @@ export declare type BaseDMMF = {
98
98
  declare type BatchArgs = {
99
99
  queries: BatchQuery[];
100
100
  transaction?: {
101
- isolationLevel?: IsolationLevel;
101
+ isolationLevel?: IsolationLevel_2;
102
102
  };
103
103
  };
104
104
 
@@ -126,7 +126,7 @@ declare type BatchQueryOptionsCbArgs = {
126
126
  declare type BatchResponse = MultiBatchResponse | CompactedBatchResponse;
127
127
 
128
128
  declare type BatchTransactionOptions = {
129
- isolationLevel?: IsolationLevel;
129
+ isolationLevel?: Transaction_2.IsolationLevel;
130
130
  };
131
131
 
132
132
  declare interface BinaryTargetsEnvValue {
@@ -1475,7 +1475,7 @@ export declare type GetAggregateResult<P extends OperationPayload, A> = {
1475
1475
  };
1476
1476
  };
1477
1477
 
1478
- declare function getBatchRequestPayload(batch: JsonQuery[], transaction?: TransactionOptions_3<unknown>): QueryEngineBatchRequest;
1478
+ declare function getBatchRequestPayload(batch: JsonQuery[], transaction?: TransactionOptions_2<unknown>): QueryEngineBatchRequest;
1479
1479
 
1480
1480
  export declare type GetBatchResult = {
1481
1481
  count: number;
@@ -1638,7 +1638,7 @@ export declare function getPrismaClient(config: GetPrismaClientConfig): {
1638
1638
  */
1639
1639
  _transactionWithCallback({ callback, options, }: {
1640
1640
  callback: (client: Client) => Promise<unknown>;
1641
- options?: TransactionOptions_2;
1641
+ options?: Options;
1642
1642
  }): Promise<unknown>;
1643
1643
  _createItxClient(transaction: PrismaPromiseInteractiveTransaction): Client;
1644
1644
  /**
@@ -1963,6 +1963,8 @@ declare type InternalRequestParams = {
1963
1963
 
1964
1964
  declare type IsolationLevel = 'READ UNCOMMITTED' | 'READ COMMITTED' | 'REPEATABLE READ' | 'SNAPSHOT' | 'SERIALIZABLE';
1965
1965
 
1966
+ declare type IsolationLevel_2 = 'ReadUncommitted' | 'ReadCommitted' | 'RepeatableRead' | 'Snapshot' | 'Serializable';
1967
+
1966
1968
  declare function isSkip(value: unknown): value is Skip;
1967
1969
 
1968
1970
  export declare function isTypedSql(value: unknown): value is UnknownTypedSql;
@@ -2007,7 +2009,7 @@ export declare interface JsonArray extends Array<JsonValue> {
2007
2009
  export declare type JsonBatchQuery = {
2008
2010
  batch: JsonQuery[];
2009
2011
  transaction?: {
2010
- isolationLevel?: IsolationLevel;
2012
+ isolationLevel?: IsolationLevel_2;
2011
2013
  };
2012
2014
  };
2013
2015
 
@@ -2422,6 +2424,15 @@ export declare type OptionalKeys<O> = {
2422
2424
  }[keyof O];
2423
2425
 
2424
2426
  declare type Options = {
2427
+ /** Timeout for starting the transaction */
2428
+ maxWait?: number;
2429
+ /** Timeout for the transaction body */
2430
+ timeout?: number;
2431
+ /** Transaction isolation level */
2432
+ isolationLevel?: IsolationLevel_2;
2433
+ };
2434
+
2435
+ declare type Options_2 = {
2425
2436
  clientVersion: string;
2426
2437
  };
2427
2438
 
@@ -2570,7 +2581,7 @@ export declare class PrismaClientUnknownRequestError extends Error implements Er
2570
2581
  export declare class PrismaClientValidationError extends Error {
2571
2582
  name: string;
2572
2583
  clientVersion: string;
2573
- constructor(message: string, { clientVersion }: Options);
2584
+ constructor(message: string, { clientVersion }: Options_2);
2574
2585
  get [Symbol.toStringTag](): string;
2575
2586
  }
2576
2587
 
@@ -2622,7 +2633,7 @@ declare interface PrismaPromise_2<TResult, TSpec extends PrismaOperationSpec<unk
2622
2633
  declare type PrismaPromiseBatchTransaction = {
2623
2634
  kind: 'batch';
2624
2635
  id: number;
2625
- isolationLevel?: IsolationLevel;
2636
+ isolationLevel?: IsolationLevel_2;
2626
2637
  index: number;
2627
2638
  lock: PromiseLike<void>;
2628
2639
  };
@@ -2705,7 +2716,7 @@ declare type QueryCompilerOptions = {
2705
2716
  declare type QueryEngineBatchGraphQLRequest = {
2706
2717
  batch: QueryEngineRequest[];
2707
2718
  transaction?: boolean;
2708
- isolationLevel?: IsolationLevel;
2719
+ isolationLevel?: IsolationLevel_2;
2709
2720
  };
2710
2721
 
2711
2722
  declare type QueryEngineBatchRequest = QueryEngineBatchGraphQLRequest | JsonBatchQuery;
@@ -2851,7 +2862,7 @@ export declare type RenameAndNestPayloadKeys<P> = {
2851
2862
  };
2852
2863
 
2853
2864
  declare type RequestBatchOptions<InteractiveTransactionPayload> = {
2854
- transaction?: TransactionOptions_3<InteractiveTransactionPayload>;
2865
+ transaction?: TransactionOptions_2<InteractiveTransactionPayload>;
2855
2866
  traceparent?: string;
2856
2867
  numTry?: number;
2857
2868
  containsWrite: boolean;
@@ -3495,7 +3506,8 @@ declare interface Transaction extends AdapterInfo, SqlQueryable {
3495
3506
 
3496
3507
  declare namespace Transaction_2 {
3497
3508
  export {
3498
- TransactionOptions_2 as Options,
3509
+ Options,
3510
+ IsolationLevel_2 as IsolationLevel,
3499
3511
  InteractiveTransactionInfo,
3500
3512
  TransactionHeaders
3501
3513
  }
@@ -3509,13 +3521,7 @@ declare type TransactionOptions = {
3509
3521
  usePhantomQuery: boolean;
3510
3522
  };
3511
3523
 
3512
- declare type TransactionOptions_2 = {
3513
- maxWait?: number;
3514
- timeout?: number;
3515
- isolationLevel?: IsolationLevel;
3516
- };
3517
-
3518
- declare type TransactionOptions_3<InteractiveTransactionPayload> = {
3524
+ declare type TransactionOptions_2<InteractiveTransactionPayload> = {
3519
3525
  kind: 'itx';
3520
3526
  options: InteractiveTransactionOptions<InteractiveTransactionPayload>;
3521
3527
  } | {