@prisma/generator-helper 6.3.0-integration-simpler-typeinfo-query.1 → 6.3.0-integration-studio-ux-refinements.1

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.
@@ -18,10 +18,10 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var GeneratorProcess_exports = {};
20
20
  __export(GeneratorProcess_exports, {
21
- GeneratorError: () => import_chunk_XSSRFZR7.GeneratorError,
22
- GeneratorProcess: () => import_chunk_XSSRFZR7.GeneratorProcess
21
+ GeneratorError: () => import_chunk_YCVAQFCS.GeneratorError,
22
+ GeneratorProcess: () => import_chunk_YCVAQFCS.GeneratorProcess
23
23
  });
24
24
  module.exports = __toCommonJS(GeneratorProcess_exports);
25
- var import_chunk_XSSRFZR7 = require("./chunk-XSSRFZR7.js");
25
+ var import_chunk_YCVAQFCS = require("./chunk-YCVAQFCS.js");
26
26
  var import_chunk_EOPVK4AE = require("./chunk-EOPVK4AE.js");
27
27
  var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
@@ -16,11 +16,18 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var chunk_UFMBEGJ3_exports = {};
20
- __export(chunk_UFMBEGJ3_exports, {
21
- DMMF: () => DMMF
19
+ var chunk_JU65QD3H_exports = {};
20
+ __export(chunk_JU65QD3H_exports, {
21
+ DMMF: () => DMMF,
22
+ datamodelEnumToSchemaEnum: () => datamodelEnumToSchemaEnum
22
23
  });
23
- module.exports = __toCommonJS(chunk_UFMBEGJ3_exports);
24
+ module.exports = __toCommonJS(chunk_JU65QD3H_exports);
25
+ function datamodelEnumToSchemaEnum(datamodelEnum) {
26
+ return {
27
+ name: datamodelEnum.name,
28
+ values: datamodelEnum.values.map((v) => v.name)
29
+ };
30
+ }
24
31
  var DMMF;
25
32
  ((DMMF2) => {
26
33
  let ModelAction;
@@ -35,6 +42,7 @@ var DMMF;
35
42
  ModelAction2["createManyAndReturn"] = "createManyAndReturn";
36
43
  ModelAction2["update"] = "update";
37
44
  ModelAction2["updateMany"] = "updateMany";
45
+ ModelAction2["updateManyAndReturn"] = "updateManyAndReturn";
38
46
  ModelAction2["upsert"] = "upsert";
39
47
  ModelAction2["delete"] = "delete";
40
48
  ModelAction2["deleteMany"] = "deleteMany";
@@ -26,12 +26,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
26
26
  mod
27
27
  ));
28
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
- var chunk_XSSRFZR7_exports = {};
30
- __export(chunk_XSSRFZR7_exports, {
29
+ var chunk_YCVAQFCS_exports = {};
30
+ __export(chunk_YCVAQFCS_exports, {
31
31
  GeneratorError: () => GeneratorError,
32
32
  GeneratorProcess: () => GeneratorProcess
33
33
  });
34
- module.exports = __toCommonJS(chunk_XSSRFZR7_exports);
34
+ module.exports = __toCommonJS(chunk_YCVAQFCS_exports);
35
35
  var import_chunk_EOPVK4AE = require("./chunk-EOPVK4AE.js");
36
36
  var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
37
37
  var import_debug = __toESM(require("@prisma/debug"));
@@ -272,7 +272,7 @@ var require_path_key = (0, import_chunk_QGM4M3NI.__commonJS)({
272
272
  }
273
273
  });
274
274
  var require_resolveCommand = (0, import_chunk_QGM4M3NI.__commonJS)({
275
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module2) {
275
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module2) {
276
276
  "use strict";
277
277
  var path = (0, import_chunk_QGM4M3NI.__require)("path");
278
278
  var which = require_which();
@@ -312,7 +312,7 @@ var require_resolveCommand = (0, import_chunk_QGM4M3NI.__commonJS)({
312
312
  }
313
313
  });
314
314
  var require_escape = (0, import_chunk_QGM4M3NI.__commonJS)({
315
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/escape.js"(exports, module2) {
315
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports, module2) {
316
316
  "use strict";
317
317
  var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
318
318
  function escapeCommand(arg) {
@@ -321,8 +321,8 @@ var require_escape = (0, import_chunk_QGM4M3NI.__commonJS)({
321
321
  }
322
322
  function escapeArgument(arg, doubleEscapeMetaChars) {
323
323
  arg = `${arg}`;
324
- arg = arg.replace(/(\\*)"/g, '$1$1\\"');
325
- arg = arg.replace(/(\\*)$/, "$1$1");
324
+ arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
325
+ arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
326
326
  arg = `"${arg}"`;
327
327
  arg = arg.replace(metaCharsRegExp, "^$1");
328
328
  if (doubleEscapeMetaChars) {
@@ -359,7 +359,7 @@ var require_shebang_command = (0, import_chunk_QGM4M3NI.__commonJS)({
359
359
  }
360
360
  });
361
361
  var require_readShebang = (0, import_chunk_QGM4M3NI.__commonJS)({
362
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module2) {
362
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module2) {
363
363
  "use strict";
364
364
  var fs = (0, import_chunk_QGM4M3NI.__require)("fs");
365
365
  var shebangCommand = require_shebang_command();
@@ -379,7 +379,7 @@ var require_readShebang = (0, import_chunk_QGM4M3NI.__commonJS)({
379
379
  }
380
380
  });
381
381
  var require_parse = (0, import_chunk_QGM4M3NI.__commonJS)({
382
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/parse.js"(exports, module2) {
382
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports, module2) {
383
383
  "use strict";
384
384
  var path = (0, import_chunk_QGM4M3NI.__require)("path");
385
385
  var resolveCommand = require_resolveCommand();
@@ -439,7 +439,7 @@ var require_parse = (0, import_chunk_QGM4M3NI.__commonJS)({
439
439
  }
440
440
  });
441
441
  var require_enoent = (0, import_chunk_QGM4M3NI.__commonJS)({
442
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/lib/enoent.js"(exports, module2) {
442
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports, module2) {
443
443
  "use strict";
444
444
  var isWin = process.platform === "win32";
445
445
  function notFoundError(original, syscall) {
@@ -458,7 +458,7 @@ var require_enoent = (0, import_chunk_QGM4M3NI.__commonJS)({
458
458
  const originalEmit = cp.emit;
459
459
  cp.emit = function(name, arg1) {
460
460
  if (name === "exit") {
461
- const err = verifyENOENT(arg1, parsed, "spawn");
461
+ const err = verifyENOENT(arg1, parsed);
462
462
  if (err) {
463
463
  return originalEmit.call(cp, "error", err);
464
464
  }
@@ -487,7 +487,7 @@ var require_enoent = (0, import_chunk_QGM4M3NI.__commonJS)({
487
487
  }
488
488
  });
489
489
  var require_cross_spawn = (0, import_chunk_QGM4M3NI.__commonJS)({
490
- "../../node_modules/.pnpm/cross-spawn@7.0.3/node_modules/cross-spawn/index.js"(exports, module2) {
490
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports, module2) {
491
491
  "use strict";
492
492
  var cp = (0, import_chunk_QGM4M3NI.__require)("child_process");
493
493
  var parse = require_parse();
package/dist/dmmf.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  export type ReadonlyDeep<O> = {
2
2
  +readonly [K in keyof O]: ReadonlyDeep<O[K]>;
3
3
  };
4
+ export declare function datamodelEnumToSchemaEnum(datamodelEnum: DMMF.DatamodelEnum): DMMF.SchemaEnum;
4
5
  export declare namespace DMMF {
5
6
  type Document = ReadonlyDeep<{
6
7
  datamodel: Datamodel;
@@ -49,6 +50,7 @@ export declare namespace DMMF {
49
50
  type Model = ReadonlyDeep<{
50
51
  name: string;
51
52
  dbName: string | null;
53
+ schema: string | null;
52
54
  fields: Field[];
53
55
  uniqueFields: string[][];
54
56
  uniqueIndexes: uniqueIndex[];
@@ -74,18 +76,25 @@ export declare namespace DMMF {
74
76
  * BigInt, Boolean, Bytes, DateTime, Decimal, Float, Int, JSON, String, $ModelName
75
77
  */
76
78
  type: string;
79
+ /**
80
+ * Native database type, if specified.
81
+ * For example, `@db.VarChar(191)` is encoded as `['VarChar', ['191']]`,
82
+ * `@db.Text` is encoded as `['Text', []]`.
83
+ */
84
+ nativeType?: [string, string[]] | null;
77
85
  dbName?: string | null;
78
86
  hasDefaultValue: boolean;
79
87
  default?: FieldDefault | FieldDefaultScalar | FieldDefaultScalar[];
80
88
  relationFromFields?: string[];
81
89
  relationToFields?: string[];
82
90
  relationOnDelete?: string;
91
+ relationOnUpdate?: string;
83
92
  relationName?: string;
84
93
  documentation?: string;
85
94
  }>;
86
95
  type FieldDefault = ReadonlyDeep<{
87
96
  name: string;
88
- args: any[];
97
+ args: Array<string | number>;
89
98
  }>;
90
99
  type FieldDefaultScalar = string | boolean | number;
91
100
  type Index = ReadonlyDeep<{
@@ -199,6 +208,7 @@ export declare namespace DMMF {
199
208
  createManyAndReturn?: string | null;
200
209
  update?: string | null;
201
210
  updateMany?: string | null;
211
+ updateManyAndReturn?: string | null;
202
212
  upsert?: string | null;
203
213
  delete?: string | null;
204
214
  deleteMany?: string | null;
@@ -219,6 +229,7 @@ export declare namespace DMMF {
219
229
  createManyAndReturn = "createManyAndReturn",
220
230
  update = "update",
221
231
  updateMany = "updateMany",
232
+ updateManyAndReturn = "updateManyAndReturn",
222
233
  upsert = "upsert",
223
234
  delete = "delete",
224
235
  deleteMany = "deleteMany",
package/dist/dmmf.js CHANGED
@@ -18,8 +18,9 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var dmmf_exports = {};
20
20
  __export(dmmf_exports, {
21
- DMMF: () => import_chunk_UFMBEGJ3.DMMF
21
+ DMMF: () => import_chunk_JU65QD3H.DMMF,
22
+ datamodelEnumToSchemaEnum: () => import_chunk_JU65QD3H.datamodelEnumToSchemaEnum
22
23
  });
23
24
  module.exports = __toCommonJS(dmmf_exports);
24
- var import_chunk_UFMBEGJ3 = require("./chunk-UFMBEGJ3.js");
25
+ var import_chunk_JU65QD3H = require("./chunk-JU65QD3H.js");
25
26
  var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
package/dist/index.js CHANGED
@@ -16,16 +16,17 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var dist_exports = {};
20
- __export(dist_exports, {
21
- DMMF: () => import_chunk_UFMBEGJ3.DMMF,
22
- GeneratorError: () => import_chunk_XSSRFZR7.GeneratorError,
23
- GeneratorProcess: () => import_chunk_XSSRFZR7.GeneratorProcess,
19
+ var index_exports = {};
20
+ __export(index_exports, {
21
+ DMMF: () => import_chunk_JU65QD3H.DMMF,
22
+ GeneratorError: () => import_chunk_YCVAQFCS.GeneratorError,
23
+ GeneratorProcess: () => import_chunk_YCVAQFCS.GeneratorProcess,
24
+ datamodelEnumToSchemaEnum: () => import_chunk_JU65QD3H.datamodelEnumToSchemaEnum,
24
25
  generatorHandler: () => import_chunk_NAG6CCUN.generatorHandler
25
26
  });
26
- module.exports = __toCommonJS(dist_exports);
27
- var import_chunk_XSSRFZR7 = require("./chunk-XSSRFZR7.js");
28
- var import_chunk_UFMBEGJ3 = require("./chunk-UFMBEGJ3.js");
27
+ module.exports = __toCommonJS(index_exports);
28
+ var import_chunk_YCVAQFCS = require("./chunk-YCVAQFCS.js");
29
+ var import_chunk_JU65QD3H = require("./chunk-JU65QD3H.js");
29
30
  var import_chunk_NAG6CCUN = require("./chunk-NAG6CCUN.js");
30
31
  var import_chunk_EOPVK4AE = require("./chunk-EOPVK4AE.js");
31
32
  var import_chunk_QGM4M3NI = require("./chunk-QGM4M3NI.js");
package/dist/types.d.ts CHANGED
@@ -53,8 +53,8 @@ export interface BinaryTargetsEnvValue {
53
53
  value: string;
54
54
  native?: boolean;
55
55
  }
56
- export type ConnectorType = 'mysql' | 'mongodb' | 'sqlite' | 'postgresql' | 'postgres' | 'sqlserver' | 'cockroachdb';
57
- export type ActiveConnectorType = Exclude<ConnectorType, 'postgres'>;
56
+ export type ConnectorType = 'mysql' | 'mongodb' | 'sqlite' | 'postgresql' | 'postgres' | 'prisma+postgres' | 'sqlserver' | 'cockroachdb';
57
+ export type ActiveConnectorType = Exclude<ConnectorType, 'postgres' | 'prisma+postgres'>;
58
58
  export interface DataSource {
59
59
  name: string;
60
60
  provider: ConnectorType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/generator-helper",
3
- "version": "6.3.0-integration-simpler-typeinfo-query.1",
3
+ "version": "6.3.0-integration-studio-ux-refinements.1",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -15,21 +15,21 @@
15
15
  "homepage": "https://www.prisma.io",
16
16
  "bugs": "https://github.com/prisma/prisma/issues",
17
17
  "dependencies": {
18
- "@prisma/debug": "6.3.0-integration-simpler-typeinfo-query.1"
18
+ "@prisma/debug": "6.3.0-integration-studio-ux-refinements.1"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@swc-node/register": "1.10.9",
22
- "@swc/core": "1.6.13",
23
- "@swc/jest": "0.2.36",
24
- "@types/jest": "29.5.12",
22
+ "@swc/core": "1.10.1",
23
+ "@swc/jest": "0.2.37",
24
+ "@types/jest": "29.5.14",
25
25
  "@types/node": "18.19.31",
26
- "esbuild": "0.23.0",
26
+ "esbuild": "0.24.2",
27
27
  "jest": "29.7.0",
28
28
  "jest-junit": "16.0.0",
29
29
  "ts-node": "10.9.2",
30
30
  "typescript": "5.4.5",
31
31
  "@types/cross-spawn": "6.0.6",
32
- "cross-spawn": "7.0.3",
32
+ "cross-spawn": "7.0.6",
33
33
  "kleur": "4.1.5"
34
34
  },
35
35
  "files": [