@prisma/client 7.3.0-dev.6 → 7.3.0-dev.8

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.
@@ -4573,7 +4573,7 @@ var import_path4 = __toESM(require("path"));
4573
4573
  // package.json
4574
4574
  var package_default = {
4575
4575
  name: "@prisma/client",
4576
- version: "7.3.0-dev.6",
4576
+ version: "7.3.0-dev.8",
4577
4577
  description: "Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.",
4578
4578
  keywords: [
4579
4579
  "ORM",
@@ -4880,7 +4880,7 @@ var Enum = class {
4880
4880
  toJS() {
4881
4881
  const { type } = this;
4882
4882
  const enumVariants = `{
4883
- ${(0, import_indent_string.default)(type.data.map((v) => `${v.key}: ${this.getValueJS(v.value)}`).join(",\n"), TAB_SIZE)}
4883
+ ${(0, import_indent_string.default)(type.values.map((v) => `${v}: ${this.getValueJS(v)}`).join(",\n"), TAB_SIZE)}
4884
4884
  }`;
4885
4885
  const enumBody = this.isStrictEnum() ? `makeStrictEnum(${enumVariants})` : enumVariants;
4886
4886
  return this.useNamespace ? `exports.Prisma.${type.name} = ${enumBody};` : `exports.${type.name} = exports.$Enums.${type.name} = ${enumBody};`;
@@ -4891,7 +4891,7 @@ ${(0, import_indent_string.default)(type.data.map((v) => `${v.key}: ${this.getVa
4891
4891
  toTS() {
4892
4892
  const { type } = this;
4893
4893
  return `export const ${type.name}: {
4894
- ${(0, import_indent_string.default)(type.data.map((v) => `${v.key}: ${this.getValueTS(v.value)}`).join(",\n"), TAB_SIZE)}
4894
+ ${(0, import_indent_string.default)(type.values.map((v) => `${v}: ${this.getValueTS(v)}`).join(",\n"), TAB_SIZE)}
4895
4895
  };
4896
4896
 
4897
4897
  export type ${type.name} = (typeof ${type.name})[keyof typeof ${type.name}]
@@ -6093,19 +6093,7 @@ var import_indent_string2 = __toESM(require_indent_string());
6093
6093
  function datamodelEnumToSchemaEnum(datamodelEnum) {
6094
6094
  return {
6095
6095
  name: datamodelEnum.name,
6096
- data: datamodelEnum.values.map((v) => ({
6097
- key: v.name,
6098
- value: v.dbName ?? v.name
6099
- }))
6100
- };
6101
- }
6102
- function datamodelSchemaEnumToSchemaEnum(datamodelSchemaEnum) {
6103
- return {
6104
- name: datamodelSchemaEnum.name,
6105
- data: datamodelSchemaEnum.values.map((v) => ({
6106
- key: v,
6107
- value: v
6108
- }))
6096
+ values: datamodelEnum.values.map((v) => v.name)
6109
6097
  };
6110
6098
  }
6111
6099
 
@@ -9356,16 +9344,13 @@ ${buildRequirePath(edge)}
9356
9344
  /**
9357
9345
  * Enums
9358
9346
  */
9359
- ${this.dmmf.schema.enumTypes.prisma?.map((type) => new Enum(datamodelSchemaEnumToSchemaEnum(type), true).toJS()).join("\n\n")}
9347
+ ${this.dmmf.schema.enumTypes.prisma?.map((type) => new Enum(type, true).toJS()).join("\n\n")}
9360
9348
  ${this.dmmf.datamodel.enums.map((datamodelEnum) => new Enum(datamodelEnumToSchemaEnum(datamodelEnum), false).toJS()).join("\n\n")}
9361
9349
 
9362
9350
  ${new Enum(
9363
9351
  {
9364
9352
  name: "ModelName",
9365
- data: this.dmmf.mappings.modelOperations.map((m) => ({
9366
- key: m.model,
9367
- value: m.model
9368
- }))
9353
+ values: this.dmmf.mappings.modelOperations.map((m) => m.model)
9369
9354
  },
9370
9355
  true
9371
9356
  ).toJS()}
@@ -9408,9 +9393,7 @@ Object.assign(exports, Prisma)
9408
9393
  }
9409
9394
  return acc;
9410
9395
  }, []);
9411
- const prismaEnums = this.dmmf.schema.enumTypes.prisma?.map(
9412
- (type) => new Enum(datamodelSchemaEnumToSchemaEnum(type), true).toTS()
9413
- );
9396
+ const prismaEnums = this.dmmf.schema.enumTypes.prisma?.map((type) => new Enum(type, true).toTS());
9414
9397
  const modelEnums = [];
9415
9398
  const modelEnumsAliases = [];
9416
9399
  for (const datamodelEnum of this.dmmf.datamodel.enums) {
@@ -9452,10 +9435,7 @@ ${(0, import_indent_string7.default)(
9452
9435
  ${new Enum(
9453
9436
  {
9454
9437
  name: "ModelName",
9455
- data: this.dmmf.mappings.modelOperations.map((m) => ({
9456
- key: m.model,
9457
- value: m.model
9458
- }))
9438
+ values: this.dmmf.mappings.modelOperations.map((m) => m.model)
9459
9439
  },
9460
9440
  true
9461
9441
  ).toTS()}
@@ -9539,16 +9519,13 @@ export const dmmf: runtime.BaseDMMF
9539
9519
  * Enums
9540
9520
  */
9541
9521
 
9542
- ${this.dmmf.schema.enumTypes.prisma?.map((type) => new Enum(datamodelSchemaEnumToSchemaEnum(type), true).toJS()).join("\n\n")}
9543
- ${this.dmmf.schema.enumTypes.model?.map((type) => new Enum(datamodelSchemaEnumToSchemaEnum(type), false).toJS()).join("\n\n") ?? ""}
9522
+ ${this.dmmf.schema.enumTypes.prisma?.map((type) => new Enum(type, true).toJS()).join("\n\n")}
9523
+ ${this.dmmf.schema.enumTypes.model?.map((type) => new Enum(type, false).toJS()).join("\n\n") ?? ""}
9544
9524
 
9545
9525
  ${new Enum(
9546
9526
  {
9547
9527
  name: "ModelName",
9548
- data: this.dmmf.mappings.modelOperations.map((m) => ({
9549
- key: m.model,
9550
- value: m.model
9551
- }))
9528
+ values: this.dmmf.mappings.modelOperations.map((m) => m.model)
9552
9529
  },
9553
9530
  true
9554
9531
  ).toJS()}
@@ -10348,7 +10325,7 @@ var import_node_path4 = __toESM(require("node:path"));
10348
10325
  var import_engines_version = __toESM(require_engines_version());
10349
10326
 
10350
10327
  // ../client-generator-js/package.json
10351
- var version = "7.3.0-dev.6";
10328
+ var version = "7.3.0-dev.8";
10352
10329
 
10353
10330
  // ../client-generator-js/src/resolvePrismaClient.ts
10354
10331
  var import_promises5 = __toESM(require("node:fs/promises"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client",
3
- "version": "7.3.0-dev.6",
3
+ "version": "7.3.0-dev.8",
4
4
  "description": "Prisma Client is an auto-generated, type-safe and modern JavaScript/TypeScript ORM for Node.js that's tailored to your data. Supports PostgreSQL, CockroachDB, MySQL, MariaDB, SQL Server, SQLite & MongoDB databases.",
5
5
  "keywords": [
6
6
  "ORM",
@@ -218,39 +218,39 @@
218
218
  "typescript": "5.4.5",
219
219
  "undici": "7.4.0",
220
220
  "zx": "8.4.1",
221
- "@prisma/adapter-better-sqlite3": "7.3.0-dev.6",
222
- "@prisma/adapter-d1": "7.3.0-dev.6",
223
- "@prisma/adapter-libsql": "7.3.0-dev.6",
224
- "@prisma/adapter-mariadb": "7.3.0-dev.6",
225
- "@prisma/adapter-neon": "7.3.0-dev.6",
226
- "@prisma/adapter-pg": "7.3.0-dev.6",
227
- "@prisma/adapter-mssql": "7.3.0-dev.6",
228
- "@prisma/adapter-planetscale": "7.3.0-dev.6",
229
- "@prisma/client-common": "7.3.0-dev.6",
230
- "@prisma/client-engine-runtime": "7.3.0-dev.6",
231
- "@prisma/client-generator-js": "7.3.0-dev.6",
232
- "@prisma/client-generator-ts": "7.3.0-dev.6",
233
- "@prisma/config": "7.3.0-dev.6",
234
- "@prisma/debug": "7.3.0-dev.6",
235
- "@prisma/dmmf": "7.3.0-dev.6",
236
- "@prisma/driver-adapter-utils": "7.3.0-dev.6",
237
- "@prisma/fetch-engine": "7.3.0-dev.6",
238
- "@prisma/engines": "7.3.0-dev.6",
239
- "@prisma/generator": "7.3.0-dev.6",
240
- "@prisma/get-platform": "7.3.0-dev.6",
241
- "@prisma/instrumentation": "7.3.0-dev.6",
242
- "@prisma/instrumentation-contract": "7.3.0-dev.6",
243
- "@prisma/internals": "7.3.0-dev.6",
244
- "@prisma/json-protocol": "7.3.0-dev.6",
245
- "@prisma/migrate": "7.3.0-dev.6",
246
- "@prisma/generator-helper": "7.3.0-dev.6",
247
- "@prisma/sqlcommenter": "7.3.0-dev.6",
248
- "@prisma/sqlcommenter-trace-context": "7.3.0-dev.6",
249
- "@prisma/ts-builders": "7.3.0-dev.6",
250
- "@prisma/query-plan-executor": "7.3.0-dev.6"
221
+ "@prisma/adapter-better-sqlite3": "7.3.0-dev.8",
222
+ "@prisma/adapter-d1": "7.3.0-dev.8",
223
+ "@prisma/adapter-libsql": "7.3.0-dev.8",
224
+ "@prisma/adapter-mssql": "7.3.0-dev.8",
225
+ "@prisma/adapter-mariadb": "7.3.0-dev.8",
226
+ "@prisma/adapter-neon": "7.3.0-dev.8",
227
+ "@prisma/adapter-pg": "7.3.0-dev.8",
228
+ "@prisma/adapter-planetscale": "7.3.0-dev.8",
229
+ "@prisma/client-common": "7.3.0-dev.8",
230
+ "@prisma/client-engine-runtime": "7.3.0-dev.8",
231
+ "@prisma/client-generator-js": "7.3.0-dev.8",
232
+ "@prisma/client-generator-ts": "7.3.0-dev.8",
233
+ "@prisma/config": "7.3.0-dev.8",
234
+ "@prisma/debug": "7.3.0-dev.8",
235
+ "@prisma/dmmf": "7.3.0-dev.8",
236
+ "@prisma/driver-adapter-utils": "7.3.0-dev.8",
237
+ "@prisma/engines": "7.3.0-dev.8",
238
+ "@prisma/fetch-engine": "7.3.0-dev.8",
239
+ "@prisma/generator-helper": "7.3.0-dev.8",
240
+ "@prisma/get-platform": "7.3.0-dev.8",
241
+ "@prisma/instrumentation": "7.3.0-dev.8",
242
+ "@prisma/instrumentation-contract": "7.3.0-dev.8",
243
+ "@prisma/internals": "7.3.0-dev.8",
244
+ "@prisma/generator": "7.3.0-dev.8",
245
+ "@prisma/migrate": "7.3.0-dev.8",
246
+ "@prisma/query-plan-executor": "7.3.0-dev.8",
247
+ "@prisma/json-protocol": "7.3.0-dev.8",
248
+ "@prisma/ts-builders": "7.3.0-dev.8",
249
+ "@prisma/sqlcommenter": "7.3.0-dev.8",
250
+ "@prisma/sqlcommenter-trace-context": "7.3.0-dev.8"
251
251
  },
252
252
  "dependencies": {
253
- "@prisma/client-runtime-utils": "7.3.0-dev.6"
253
+ "@prisma/client-runtime-utils": "7.3.0-dev.8"
254
254
  },
255
255
  "peerDependencies": {
256
256
  "prisma": "*",
@@ -390,13 +390,6 @@ declare type DatamodelEnum = ReadonlyDeep_2<{
390
390
 
391
391
  declare function datamodelEnumToSchemaEnum(datamodelEnum: DatamodelEnum): SchemaEnum;
392
392
 
393
- declare type DatamodelSchemaEnum = ReadonlyDeep_2<{
394
- name: string;
395
- values: string[];
396
- }>;
397
-
398
- declare function datamodelSchemaEnumToSchemaEnum(datamodelSchemaEnum: DatamodelSchemaEnum): SchemaEnum;
399
-
400
393
  declare type DataRule = {
401
394
  type: 'rowCountEq';
402
395
  args: number;
@@ -505,12 +498,10 @@ export declare type DevTypeMapFnDef = {
505
498
  export declare namespace DMMF {
506
499
  export {
507
500
  datamodelEnumToSchemaEnum,
508
- datamodelSchemaEnumToSchemaEnum,
509
501
  Document_2 as Document,
510
502
  Mappings,
511
503
  OtherOperationMappings,
512
504
  DatamodelEnum,
513
- DatamodelSchemaEnum,
514
505
  SchemaEnum,
515
506
  EnumValue,
516
507
  Datamodel,
@@ -549,12 +540,10 @@ export declare namespace DMMF {
549
540
  declare namespace DMMF_2 {
550
541
  export {
551
542
  datamodelEnumToSchemaEnum,
552
- datamodelSchemaEnumToSchemaEnum,
553
543
  Document_2 as Document,
554
544
  Mappings,
555
545
  OtherOperationMappings,
556
546
  DatamodelEnum,
557
- DatamodelSchemaEnum,
558
547
  SchemaEnum,
559
548
  EnumValue,
560
549
  Datamodel,
@@ -2573,8 +2562,8 @@ declare type Schema = ReadonlyDeep_2<{
2573
2562
  prisma: OutputType[];
2574
2563
  };
2575
2564
  enumTypes: {
2576
- model?: DatamodelSchemaEnum[];
2577
- prisma: DatamodelSchemaEnum[];
2565
+ model?: SchemaEnum[];
2566
+ prisma: SchemaEnum[];
2578
2567
  };
2579
2568
  fieldRefTypes: {
2580
2569
  prisma?: FieldRefType[];
@@ -2593,10 +2582,7 @@ declare type SchemaArg = ReadonlyDeep_2<{
2593
2582
 
2594
2583
  declare type SchemaEnum = ReadonlyDeep_2<{
2595
2584
  name: string;
2596
- data: {
2597
- key: string;
2598
- value: string;
2599
- }[];
2585
+ values: string[];
2600
2586
  }>;
2601
2587
 
2602
2588
  declare type SchemaField = ReadonlyDeep_2<{
@@ -390,13 +390,6 @@ declare type DatamodelEnum = ReadonlyDeep_2<{
390
390
 
391
391
  declare function datamodelEnumToSchemaEnum(datamodelEnum: DatamodelEnum): SchemaEnum;
392
392
 
393
- declare type DatamodelSchemaEnum = ReadonlyDeep_2<{
394
- name: string;
395
- values: string[];
396
- }>;
397
-
398
- declare function datamodelSchemaEnumToSchemaEnum(datamodelSchemaEnum: DatamodelSchemaEnum): SchemaEnum;
399
-
400
393
  declare type DataRule = {
401
394
  type: 'rowCountEq';
402
395
  args: number;
@@ -505,12 +498,10 @@ export declare type DevTypeMapFnDef = {
505
498
  export declare namespace DMMF {
506
499
  export {
507
500
  datamodelEnumToSchemaEnum,
508
- datamodelSchemaEnumToSchemaEnum,
509
501
  Document_2 as Document,
510
502
  Mappings,
511
503
  OtherOperationMappings,
512
504
  DatamodelEnum,
513
- DatamodelSchemaEnum,
514
505
  SchemaEnum,
515
506
  EnumValue,
516
507
  Datamodel,
@@ -549,12 +540,10 @@ export declare namespace DMMF {
549
540
  declare namespace DMMF_2 {
550
541
  export {
551
542
  datamodelEnumToSchemaEnum,
552
- datamodelSchemaEnumToSchemaEnum,
553
543
  Document_2 as Document,
554
544
  Mappings,
555
545
  OtherOperationMappings,
556
546
  DatamodelEnum,
557
- DatamodelSchemaEnum,
558
547
  SchemaEnum,
559
548
  EnumValue,
560
549
  Datamodel,
@@ -2573,8 +2562,8 @@ declare type Schema = ReadonlyDeep_2<{
2573
2562
  prisma: OutputType[];
2574
2563
  };
2575
2564
  enumTypes: {
2576
- model?: DatamodelSchemaEnum[];
2577
- prisma: DatamodelSchemaEnum[];
2565
+ model?: SchemaEnum[];
2566
+ prisma: SchemaEnum[];
2578
2567
  };
2579
2568
  fieldRefTypes: {
2580
2569
  prisma?: FieldRefType[];
@@ -2593,10 +2582,7 @@ declare type SchemaArg = ReadonlyDeep_2<{
2593
2582
 
2594
2583
  declare type SchemaEnum = ReadonlyDeep_2<{
2595
2584
  name: string;
2596
- data: {
2597
- key: string;
2598
- value: string;
2599
- }[];
2585
+ values: string[];
2600
2586
  }>;
2601
2587
 
2602
2588
  declare type SchemaField = ReadonlyDeep_2<{