@prisma/client-engine-runtime 7.5.0-dev.5 → 7.5.0-dev.50

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/events.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export type QueryEvent = {
2
2
  timestamp: Date;
3
3
  query: string;
4
- params: unknown[];
4
+ params: readonly unknown[];
5
5
  duration: number;
6
6
  };
package/dist/index.d.mts CHANGED
@@ -80,7 +80,11 @@ export declare type DecimalTaggedValue = {
80
80
  value: string;
81
81
  };
82
82
 
83
- export declare function deserializeJsonResponse(result: unknown): unknown;
83
+ declare type DeepReadonly<T> = T extends undefined | null | boolean | string | number | symbol | Function | Date ? T : T extends Array<infer U> ? ReadonlyArray<DeepReadonly<U>> : unknown extends T ? unknown : {
84
+ readonly [K in keyof T]: DeepReadonly<T[K]>;
85
+ };
86
+
87
+ export declare function deserializeJsonObject(result: unknown): unknown;
84
88
 
85
89
  /**
86
90
  * Checks if two objects representing the names and values of key columns match. A match is
@@ -155,6 +159,9 @@ export declare type Fragment = {
155
159
  type: 'parameter';
156
160
  } | {
157
161
  type: 'parameterTuple';
162
+ itemPrefix: string;
163
+ itemSeparator: string;
164
+ itemSuffix: string;
158
165
  } | {
159
166
  type: 'parameterTupleList';
160
167
  itemPrefix: string;
@@ -187,7 +194,7 @@ export declare type JoinExpression = {
187
194
  isRelationUnique: boolean;
188
195
  };
189
196
 
190
- export declare type JsonInputTaggedValue = DateTaggedValue | DecimalTaggedValue | BytesTaggedValue | BigIntTaggedValue | FieldRefTaggedValue | JsonTaggedValue | EnumTaggedValue;
197
+ export declare type JsonInputTaggedValue = DateTaggedValue | DecimalTaggedValue | BytesTaggedValue | BigIntTaggedValue | FieldRefTaggedValue | JsonTaggedValue | EnumTaggedValue | RawTaggedValue;
191
198
 
192
199
  export declare type JsonOutputTaggedValue = DateTaggedValue | DecimalTaggedValue | BytesTaggedValue | BigIntTaggedValue | JsonTaggedValue;
193
200
 
@@ -243,7 +250,7 @@ export declare type PrismaValuePlaceholder = {
243
250
  export declare type QueryEvent = {
244
251
  timestamp: Date;
245
252
  query: string;
246
- params: unknown[];
253
+ params: readonly unknown[];
247
254
  duration: number;
248
255
  };
249
256
 
@@ -256,7 +263,7 @@ export declare class QueryInterpreter {
256
263
  provider?: SchemaProvider;
257
264
  connectionInfo?: ConnectionInfo;
258
265
  }): QueryInterpreter;
259
- run(queryPlan: QueryPlanNode, options: QueryRuntimeOptions): Promise<unknown>;
266
+ run(queryPlan: DeepReadonly<QueryPlanNode>, options: QueryRuntimeOptions): Promise<unknown>;
260
267
  private interpretNode;
261
268
  }
262
269
 
@@ -348,6 +355,7 @@ export declare type QueryPlanNode = {
348
355
  args: {
349
356
  parent: QueryPlanNode;
350
357
  children: JoinExpression[];
358
+ canAssumeStrictEquality: boolean;
351
359
  };
352
360
  } | {
353
361
  type: 'mapField';
@@ -421,6 +429,11 @@ export declare type RawResponse = {
421
429
  rows: unknown[][];
422
430
  };
423
431
 
432
+ export declare type RawTaggedValue = {
433
+ $type: 'Raw';
434
+ value: unknown;
435
+ };
436
+
424
437
  export declare type ResultNode = {
425
438
  type: 'affectedRows';
426
439
  } | {
@@ -492,6 +505,7 @@ export declare type TransactionOptions = {
492
505
  maxWait?: number;
493
506
  timeout?: number;
494
507
  isolationLevel?: IsolationLevel;
508
+ newTxId?: string;
495
509
  };
496
510
 
497
511
  export declare class UserFacingError extends Error {
@@ -511,14 +525,14 @@ export declare class UserFacingError extends Error {
511
525
  }
512
526
 
513
527
  export declare type ValidationError = {
514
- error_identifier: 'RELATION_VIOLATION';
528
+ errorIdentifier: 'RELATION_VIOLATION';
515
529
  context: {
516
530
  relation: string;
517
531
  modelA: string;
518
532
  modelB: string;
519
533
  };
520
534
  } | {
521
- error_identifier: 'MISSING_RELATED_RECORD';
535
+ errorIdentifier: 'MISSING_RELATED_RECORD';
522
536
  context: {
523
537
  model: string;
524
538
  relation: string;
@@ -527,24 +541,24 @@ export declare type ValidationError = {
527
541
  neededFor?: string;
528
542
  };
529
543
  } | {
530
- error_identifier: 'MISSING_RECORD';
544
+ errorIdentifier: 'MISSING_RECORD';
531
545
  context: {
532
546
  operation: string;
533
547
  };
534
548
  } | {
535
- error_identifier: 'INCOMPLETE_CONNECT_INPUT';
549
+ errorIdentifier: 'INCOMPLETE_CONNECT_INPUT';
536
550
  context: {
537
551
  expectedRows: number;
538
552
  };
539
553
  } | {
540
- error_identifier: 'INCOMPLETE_CONNECT_OUTPUT';
554
+ errorIdentifier: 'INCOMPLETE_CONNECT_OUTPUT';
541
555
  context: {
542
556
  expectedRows: number;
543
557
  relation: string;
544
558
  relationType: string;
545
559
  };
546
560
  } | {
547
- error_identifier: 'RECORDS_NOT_CONNECTED';
561
+ errorIdentifier: 'RECORDS_NOT_CONNECTED';
548
562
  context: {
549
563
  relation: string;
550
564
  parent: string;
package/dist/index.d.ts CHANGED
@@ -80,7 +80,11 @@ export declare type DecimalTaggedValue = {
80
80
  value: string;
81
81
  };
82
82
 
83
- export declare function deserializeJsonResponse(result: unknown): unknown;
83
+ declare type DeepReadonly<T> = T extends undefined | null | boolean | string | number | symbol | Function | Date ? T : T extends Array<infer U> ? ReadonlyArray<DeepReadonly<U>> : unknown extends T ? unknown : {
84
+ readonly [K in keyof T]: DeepReadonly<T[K]>;
85
+ };
86
+
87
+ export declare function deserializeJsonObject(result: unknown): unknown;
84
88
 
85
89
  /**
86
90
  * Checks if two objects representing the names and values of key columns match. A match is
@@ -155,6 +159,9 @@ export declare type Fragment = {
155
159
  type: 'parameter';
156
160
  } | {
157
161
  type: 'parameterTuple';
162
+ itemPrefix: string;
163
+ itemSeparator: string;
164
+ itemSuffix: string;
158
165
  } | {
159
166
  type: 'parameterTupleList';
160
167
  itemPrefix: string;
@@ -187,7 +194,7 @@ export declare type JoinExpression = {
187
194
  isRelationUnique: boolean;
188
195
  };
189
196
 
190
- export declare type JsonInputTaggedValue = DateTaggedValue | DecimalTaggedValue | BytesTaggedValue | BigIntTaggedValue | FieldRefTaggedValue | JsonTaggedValue | EnumTaggedValue;
197
+ export declare type JsonInputTaggedValue = DateTaggedValue | DecimalTaggedValue | BytesTaggedValue | BigIntTaggedValue | FieldRefTaggedValue | JsonTaggedValue | EnumTaggedValue | RawTaggedValue;
191
198
 
192
199
  export declare type JsonOutputTaggedValue = DateTaggedValue | DecimalTaggedValue | BytesTaggedValue | BigIntTaggedValue | JsonTaggedValue;
193
200
 
@@ -243,7 +250,7 @@ export declare type PrismaValuePlaceholder = {
243
250
  export declare type QueryEvent = {
244
251
  timestamp: Date;
245
252
  query: string;
246
- params: unknown[];
253
+ params: readonly unknown[];
247
254
  duration: number;
248
255
  };
249
256
 
@@ -256,7 +263,7 @@ export declare class QueryInterpreter {
256
263
  provider?: SchemaProvider;
257
264
  connectionInfo?: ConnectionInfo;
258
265
  }): QueryInterpreter;
259
- run(queryPlan: QueryPlanNode, options: QueryRuntimeOptions): Promise<unknown>;
266
+ run(queryPlan: DeepReadonly<QueryPlanNode>, options: QueryRuntimeOptions): Promise<unknown>;
260
267
  private interpretNode;
261
268
  }
262
269
 
@@ -348,6 +355,7 @@ export declare type QueryPlanNode = {
348
355
  args: {
349
356
  parent: QueryPlanNode;
350
357
  children: JoinExpression[];
358
+ canAssumeStrictEquality: boolean;
351
359
  };
352
360
  } | {
353
361
  type: 'mapField';
@@ -421,6 +429,11 @@ export declare type RawResponse = {
421
429
  rows: unknown[][];
422
430
  };
423
431
 
432
+ export declare type RawTaggedValue = {
433
+ $type: 'Raw';
434
+ value: unknown;
435
+ };
436
+
424
437
  export declare type ResultNode = {
425
438
  type: 'affectedRows';
426
439
  } | {
@@ -492,6 +505,7 @@ export declare type TransactionOptions = {
492
505
  maxWait?: number;
493
506
  timeout?: number;
494
507
  isolationLevel?: IsolationLevel;
508
+ newTxId?: string;
495
509
  };
496
510
 
497
511
  export declare class UserFacingError extends Error {
@@ -511,14 +525,14 @@ export declare class UserFacingError extends Error {
511
525
  }
512
526
 
513
527
  export declare type ValidationError = {
514
- error_identifier: 'RELATION_VIOLATION';
528
+ errorIdentifier: 'RELATION_VIOLATION';
515
529
  context: {
516
530
  relation: string;
517
531
  modelA: string;
518
532
  modelB: string;
519
533
  };
520
534
  } | {
521
- error_identifier: 'MISSING_RELATED_RECORD';
535
+ errorIdentifier: 'MISSING_RELATED_RECORD';
522
536
  context: {
523
537
  model: string;
524
538
  relation: string;
@@ -527,24 +541,24 @@ export declare type ValidationError = {
527
541
  neededFor?: string;
528
542
  };
529
543
  } | {
530
- error_identifier: 'MISSING_RECORD';
544
+ errorIdentifier: 'MISSING_RECORD';
531
545
  context: {
532
546
  operation: string;
533
547
  };
534
548
  } | {
535
- error_identifier: 'INCOMPLETE_CONNECT_INPUT';
549
+ errorIdentifier: 'INCOMPLETE_CONNECT_INPUT';
536
550
  context: {
537
551
  expectedRows: number;
538
552
  };
539
553
  } | {
540
- error_identifier: 'INCOMPLETE_CONNECT_OUTPUT';
554
+ errorIdentifier: 'INCOMPLETE_CONNECT_OUTPUT';
541
555
  context: {
542
556
  expectedRows: number;
543
557
  relation: string;
544
558
  relationType: string;
545
559
  };
546
560
  } | {
547
- error_identifier: 'RECORDS_NOT_CONNECTED';
561
+ errorIdentifier: 'RECORDS_NOT_CONNECTED';
548
562
  context: {
549
563
  relation: string;
550
564
  parent: string;