@prisma/client-engine-runtime 7.5.0-dev.29 → 7.5.0-dev.30

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.d.mts CHANGED
@@ -520,14 +520,14 @@ export declare class UserFacingError extends Error {
520
520
  }
521
521
 
522
522
  export declare type ValidationError = {
523
- error_identifier: 'RELATION_VIOLATION';
523
+ errorIdentifier: 'RELATION_VIOLATION';
524
524
  context: {
525
525
  relation: string;
526
526
  modelA: string;
527
527
  modelB: string;
528
528
  };
529
529
  } | {
530
- error_identifier: 'MISSING_RELATED_RECORD';
530
+ errorIdentifier: 'MISSING_RELATED_RECORD';
531
531
  context: {
532
532
  model: string;
533
533
  relation: string;
@@ -536,24 +536,24 @@ export declare type ValidationError = {
536
536
  neededFor?: string;
537
537
  };
538
538
  } | {
539
- error_identifier: 'MISSING_RECORD';
539
+ errorIdentifier: 'MISSING_RECORD';
540
540
  context: {
541
541
  operation: string;
542
542
  };
543
543
  } | {
544
- error_identifier: 'INCOMPLETE_CONNECT_INPUT';
544
+ errorIdentifier: 'INCOMPLETE_CONNECT_INPUT';
545
545
  context: {
546
546
  expectedRows: number;
547
547
  };
548
548
  } | {
549
- error_identifier: 'INCOMPLETE_CONNECT_OUTPUT';
549
+ errorIdentifier: 'INCOMPLETE_CONNECT_OUTPUT';
550
550
  context: {
551
551
  expectedRows: number;
552
552
  relation: string;
553
553
  relationType: string;
554
554
  };
555
555
  } | {
556
- error_identifier: 'RECORDS_NOT_CONNECTED';
556
+ errorIdentifier: 'RECORDS_NOT_CONNECTED';
557
557
  context: {
558
558
  relation: string;
559
559
  parent: string;
package/dist/index.d.ts CHANGED
@@ -520,14 +520,14 @@ export declare class UserFacingError extends Error {
520
520
  }
521
521
 
522
522
  export declare type ValidationError = {
523
- error_identifier: 'RELATION_VIOLATION';
523
+ errorIdentifier: 'RELATION_VIOLATION';
524
524
  context: {
525
525
  relation: string;
526
526
  modelA: string;
527
527
  modelB: string;
528
528
  };
529
529
  } | {
530
- error_identifier: 'MISSING_RELATED_RECORD';
530
+ errorIdentifier: 'MISSING_RELATED_RECORD';
531
531
  context: {
532
532
  model: string;
533
533
  relation: string;
@@ -536,24 +536,24 @@ export declare type ValidationError = {
536
536
  neededFor?: string;
537
537
  };
538
538
  } | {
539
- error_identifier: 'MISSING_RECORD';
539
+ errorIdentifier: 'MISSING_RECORD';
540
540
  context: {
541
541
  operation: string;
542
542
  };
543
543
  } | {
544
- error_identifier: 'INCOMPLETE_CONNECT_INPUT';
544
+ errorIdentifier: 'INCOMPLETE_CONNECT_INPUT';
545
545
  context: {
546
546
  expectedRows: number;
547
547
  };
548
548
  } | {
549
- error_identifier: 'INCOMPLETE_CONNECT_OUTPUT';
549
+ errorIdentifier: 'INCOMPLETE_CONNECT_OUTPUT';
550
550
  context: {
551
551
  expectedRows: number;
552
552
  relation: string;
553
553
  relationType: string;
554
554
  };
555
555
  } | {
556
- error_identifier: 'RECORDS_NOT_CONNECTED';
556
+ errorIdentifier: 'RECORDS_NOT_CONNECTED';
557
557
  context: {
558
558
  relation: string;
559
559
  parent: string;
package/dist/index.js CHANGED
@@ -1498,7 +1498,7 @@ function doesSatisfyRule(data, rule) {
1498
1498
  }
1499
1499
  }
1500
1500
  function renderMessage(data, error) {
1501
- switch (error.error_identifier) {
1501
+ switch (error.errorIdentifier) {
1502
1502
  case "RELATION_VIOLATION":
1503
1503
  return `The change you are trying to make would violate the required relation '${error.context.relation}' between the \`${error.context.modelA}\` and \`${error.context.modelB}\` models.`;
1504
1504
  case "MISSING_RECORD":
@@ -1518,7 +1518,7 @@ function renderMessage(data, error) {
1518
1518
  }
1519
1519
  }
1520
1520
  function getErrorCode2(error) {
1521
- switch (error.error_identifier) {
1521
+ switch (error.errorIdentifier) {
1522
1522
  case "RELATION_VIOLATION":
1523
1523
  return "P2014";
1524
1524
  case "RECORDS_NOT_CONNECTED":
package/dist/index.mjs CHANGED
@@ -1447,7 +1447,7 @@ function doesSatisfyRule(data, rule) {
1447
1447
  }
1448
1448
  }
1449
1449
  function renderMessage(data, error) {
1450
- switch (error.error_identifier) {
1450
+ switch (error.errorIdentifier) {
1451
1451
  case "RELATION_VIOLATION":
1452
1452
  return `The change you are trying to make would violate the required relation '${error.context.relation}' between the \`${error.context.modelA}\` and \`${error.context.modelB}\` models.`;
1453
1453
  case "MISSING_RECORD":
@@ -1467,7 +1467,7 @@ function renderMessage(data, error) {
1467
1467
  }
1468
1468
  }
1469
1469
  function getErrorCode2(error) {
1470
- switch (error.error_identifier) {
1470
+ switch (error.errorIdentifier) {
1471
1471
  case "RELATION_VIOLATION":
1472
1472
  return "P2014";
1473
1473
  case "RECORDS_NOT_CONNECTED":
@@ -230,14 +230,14 @@ export type DataRule = {
230
230
  type: 'never';
231
231
  };
232
232
  export type ValidationError = {
233
- error_identifier: 'RELATION_VIOLATION';
233
+ errorIdentifier: 'RELATION_VIOLATION';
234
234
  context: {
235
235
  relation: string;
236
236
  modelA: string;
237
237
  modelB: string;
238
238
  };
239
239
  } | {
240
- error_identifier: 'MISSING_RELATED_RECORD';
240
+ errorIdentifier: 'MISSING_RELATED_RECORD';
241
241
  context: {
242
242
  model: string;
243
243
  relation: string;
@@ -246,24 +246,24 @@ export type ValidationError = {
246
246
  neededFor?: string;
247
247
  };
248
248
  } | {
249
- error_identifier: 'MISSING_RECORD';
249
+ errorIdentifier: 'MISSING_RECORD';
250
250
  context: {
251
251
  operation: string;
252
252
  };
253
253
  } | {
254
- error_identifier: 'INCOMPLETE_CONNECT_INPUT';
254
+ errorIdentifier: 'INCOMPLETE_CONNECT_INPUT';
255
255
  context: {
256
256
  expectedRows: number;
257
257
  };
258
258
  } | {
259
- error_identifier: 'INCOMPLETE_CONNECT_OUTPUT';
259
+ errorIdentifier: 'INCOMPLETE_CONNECT_OUTPUT';
260
260
  context: {
261
261
  expectedRows: number;
262
262
  relation: string;
263
263
  relationType: string;
264
264
  };
265
265
  } | {
266
- error_identifier: 'RECORDS_NOT_CONNECTED';
266
+ errorIdentifier: 'RECORDS_NOT_CONNECTED';
267
267
  context: {
268
268
  relation: string;
269
269
  parent: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client-engine-runtime",
3
- "version": "7.5.0-dev.29",
3
+ "version": "7.5.0-dev.30",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -31,10 +31,10 @@
31
31
  "nanoid": "5.1.5",
32
32
  "ulid": "3.0.0",
33
33
  "uuid": "11.1.0",
34
- "@prisma/client-runtime-utils": "7.5.0-dev.29",
35
- "@prisma/debug": "7.5.0-dev.29",
36
- "@prisma/driver-adapter-utils": "7.5.0-dev.29",
37
- "@prisma/sqlcommenter": "7.5.0-dev.29"
34
+ "@prisma/client-runtime-utils": "7.5.0-dev.30",
35
+ "@prisma/debug": "7.5.0-dev.30",
36
+ "@prisma/sqlcommenter": "7.5.0-dev.30",
37
+ "@prisma/driver-adapter-utils": "7.5.0-dev.30"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@codspeed/benchmark.js-plugin": "4.0.0",