@prisma/client-generator-ts 6.17.0-dev.16 → 6.17.0-dev.17

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.
@@ -0,0 +1 @@
1
+ export declare const nullTypes = "\nexport const NullTypes = {\n DbNull: runtime.objectEnumValues.classes.DbNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.DbNull),\n JsonNull: runtime.objectEnumValues.classes.JsonNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.JsonNull),\n AnyNull: runtime.objectEnumValues.classes.AnyNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.AnyNull),\n}\n/**\n * Helper for filtering JSON entries that have `null` on the database (empty on the db)\n *\n * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field\n */\nexport const DbNull = runtime.objectEnumValues.instances.DbNull\n/**\n * Helper for filtering JSON entries that have JSON `null` values (not empty on the db)\n *\n * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field\n */\nexport const JsonNull = runtime.objectEnumValues.instances.JsonNull\n/**\n * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`\n *\n * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field\n */\nexport const AnyNull = runtime.objectEnumValues.instances.AnyNull\n";
package/dist/index.js CHANGED
@@ -5154,6 +5154,35 @@ function createModelsFile(context, modelsNames) {
5154
5154
 
5155
5155
  // src/TSClient/file-generators/PrismaNamespaceBrowserFile.ts
5156
5156
  var ts16 = __toESM(require("@prisma/ts-builders"));
5157
+
5158
+ // src/TSClient/NullTypes.ts
5159
+ var nullTypes = `
5160
+ export const NullTypes = {
5161
+ DbNull: runtime.objectEnumValues.classes.DbNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.DbNull),
5162
+ JsonNull: runtime.objectEnumValues.classes.JsonNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.JsonNull),
5163
+ AnyNull: runtime.objectEnumValues.classes.AnyNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.AnyNull),
5164
+ }
5165
+ /**
5166
+ * Helper for filtering JSON entries that have \`null\` on the database (empty on the db)
5167
+ *
5168
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
5169
+ */
5170
+ export const DbNull = runtime.objectEnumValues.instances.DbNull
5171
+ /**
5172
+ * Helper for filtering JSON entries that have JSON \`null\` values (not empty on the db)
5173
+ *
5174
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
5175
+ */
5176
+ export const JsonNull = runtime.objectEnumValues.instances.JsonNull
5177
+ /**
5178
+ * Helper for filtering JSON entries that are \`Prisma.DbNull\` or \`Prisma.JsonNull\`
5179
+ *
5180
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
5181
+ */
5182
+ export const AnyNull = runtime.objectEnumValues.instances.AnyNull
5183
+ `;
5184
+
5185
+ // src/TSClient/file-generators/PrismaNamespaceBrowserFile.ts
5157
5186
  var jsDocHeader7 = `/*
5158
5187
  * WARNING: This is an internal file that is subject to change!
5159
5188
  *
@@ -5170,9 +5199,14 @@ function createPrismaNamespaceBrowserFile(context) {
5170
5199
  const prismaEnums = context.dmmf.schema.enumTypes.prisma?.map((type) => new Enum(type, true).toTS());
5171
5200
  return `${jsDocHeader7}
5172
5201
  ${ts16.stringify(ts16.moduleImport(`${context.runtimeBase}/index-browser`).asNamespace("runtime"))}
5202
+
5173
5203
  export type * from '${context.importFileName(`../models`)}'
5174
5204
  export type * from '${context.importFileName(`./prismaNamespace`)}'
5205
+
5175
5206
  export const Decimal = runtime.Decimal
5207
+
5208
+ ${nullTypes}
5209
+
5176
5210
  ${new Enum(
5177
5211
  {
5178
5212
  name: "ModelName",
@@ -5180,9 +5214,10 @@ ${new Enum(
5180
5214
  },
5181
5215
  true
5182
5216
  ).toTS()}
5183
- /**
5217
+ /*
5184
5218
  * Enums
5185
5219
  */
5220
+
5186
5221
  ${prismaEnums?.join("\n\n")}
5187
5222
  `;
5188
5223
  }
@@ -5278,32 +5313,7 @@ export type InputJsonObject = runtime.InputJsonObject
5278
5313
  export type InputJsonArray = runtime.InputJsonArray
5279
5314
  export type InputJsonValue = runtime.InputJsonValue
5280
5315
 
5281
- export const NullTypes = {
5282
- DbNull: runtime.objectEnumValues.classes.DbNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.DbNull),
5283
- JsonNull: runtime.objectEnumValues.classes.JsonNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.JsonNull),
5284
- AnyNull: runtime.objectEnumValues.classes.AnyNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.AnyNull),
5285
- }
5286
-
5287
- /**
5288
- * Helper for filtering JSON entries that have \`null\` on the database (empty on the db)
5289
- *
5290
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
5291
- */
5292
- export const DbNull = runtime.objectEnumValues.instances.DbNull
5293
-
5294
- /**
5295
- * Helper for filtering JSON entries that have JSON \`null\` values (not empty on the db)
5296
- *
5297
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
5298
- */
5299
- export const JsonNull = runtime.objectEnumValues.instances.JsonNull
5300
-
5301
- /**
5302
- * Helper for filtering JSON entries that are \`Prisma.DbNull\` or \`Prisma.JsonNull\`
5303
- *
5304
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
5305
- */
5306
- export const AnyNull = runtime.objectEnumValues.instances.AnyNull
5316
+ ${nullTypes}
5307
5317
 
5308
5318
  type SelectAndInclude = {
5309
5319
  select: any
@@ -6608,7 +6618,7 @@ var import_get_tsconfig = require("get-tsconfig");
6608
6618
  var import_ts_pattern2 = require("ts-pattern");
6609
6619
 
6610
6620
  // package.json
6611
- var version = "6.17.0-dev.16";
6621
+ var version = "6.17.0-dev.17";
6612
6622
 
6613
6623
  // src/module-format.ts
6614
6624
  function parseModuleFormat(format) {
package/dist/index.mjs CHANGED
@@ -5153,6 +5153,35 @@ function createModelsFile(context, modelsNames) {
5153
5153
 
5154
5154
  // src/TSClient/file-generators/PrismaNamespaceBrowserFile.ts
5155
5155
  import * as ts16 from "@prisma/ts-builders";
5156
+
5157
+ // src/TSClient/NullTypes.ts
5158
+ var nullTypes = `
5159
+ export const NullTypes = {
5160
+ DbNull: runtime.objectEnumValues.classes.DbNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.DbNull),
5161
+ JsonNull: runtime.objectEnumValues.classes.JsonNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.JsonNull),
5162
+ AnyNull: runtime.objectEnumValues.classes.AnyNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.AnyNull),
5163
+ }
5164
+ /**
5165
+ * Helper for filtering JSON entries that have \`null\` on the database (empty on the db)
5166
+ *
5167
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
5168
+ */
5169
+ export const DbNull = runtime.objectEnumValues.instances.DbNull
5170
+ /**
5171
+ * Helper for filtering JSON entries that have JSON \`null\` values (not empty on the db)
5172
+ *
5173
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
5174
+ */
5175
+ export const JsonNull = runtime.objectEnumValues.instances.JsonNull
5176
+ /**
5177
+ * Helper for filtering JSON entries that are \`Prisma.DbNull\` or \`Prisma.JsonNull\`
5178
+ *
5179
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
5180
+ */
5181
+ export const AnyNull = runtime.objectEnumValues.instances.AnyNull
5182
+ `;
5183
+
5184
+ // src/TSClient/file-generators/PrismaNamespaceBrowserFile.ts
5156
5185
  var jsDocHeader7 = `/*
5157
5186
  * WARNING: This is an internal file that is subject to change!
5158
5187
  *
@@ -5169,9 +5198,14 @@ function createPrismaNamespaceBrowserFile(context) {
5169
5198
  const prismaEnums = context.dmmf.schema.enumTypes.prisma?.map((type) => new Enum(type, true).toTS());
5170
5199
  return `${jsDocHeader7}
5171
5200
  ${ts16.stringify(ts16.moduleImport(`${context.runtimeBase}/index-browser`).asNamespace("runtime"))}
5201
+
5172
5202
  export type * from '${context.importFileName(`../models`)}'
5173
5203
  export type * from '${context.importFileName(`./prismaNamespace`)}'
5204
+
5174
5205
  export const Decimal = runtime.Decimal
5206
+
5207
+ ${nullTypes}
5208
+
5175
5209
  ${new Enum(
5176
5210
  {
5177
5211
  name: "ModelName",
@@ -5179,9 +5213,10 @@ ${new Enum(
5179
5213
  },
5180
5214
  true
5181
5215
  ).toTS()}
5182
- /**
5216
+ /*
5183
5217
  * Enums
5184
5218
  */
5219
+
5185
5220
  ${prismaEnums?.join("\n\n")}
5186
5221
  `;
5187
5222
  }
@@ -5277,32 +5312,7 @@ export type InputJsonObject = runtime.InputJsonObject
5277
5312
  export type InputJsonArray = runtime.InputJsonArray
5278
5313
  export type InputJsonValue = runtime.InputJsonValue
5279
5314
 
5280
- export const NullTypes = {
5281
- DbNull: runtime.objectEnumValues.classes.DbNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.DbNull),
5282
- JsonNull: runtime.objectEnumValues.classes.JsonNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.JsonNull),
5283
- AnyNull: runtime.objectEnumValues.classes.AnyNull as (new (secret: never) => typeof runtime.objectEnumValues.instances.AnyNull),
5284
- }
5285
-
5286
- /**
5287
- * Helper for filtering JSON entries that have \`null\` on the database (empty on the db)
5288
- *
5289
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
5290
- */
5291
- export const DbNull = runtime.objectEnumValues.instances.DbNull
5292
-
5293
- /**
5294
- * Helper for filtering JSON entries that have JSON \`null\` values (not empty on the db)
5295
- *
5296
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
5297
- */
5298
- export const JsonNull = runtime.objectEnumValues.instances.JsonNull
5299
-
5300
- /**
5301
- * Helper for filtering JSON entries that are \`Prisma.DbNull\` or \`Prisma.JsonNull\`
5302
- *
5303
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
5304
- */
5305
- export const AnyNull = runtime.objectEnumValues.instances.AnyNull
5315
+ ${nullTypes}
5306
5316
 
5307
5317
  type SelectAndInclude = {
5308
5318
  select: any
@@ -6607,7 +6617,7 @@ import { getTsconfig } from "get-tsconfig";
6607
6617
  import { match as match2 } from "ts-pattern";
6608
6618
 
6609
6619
  // package.json
6610
- var version = "6.17.0-dev.16";
6620
+ var version = "6.17.0-dev.17";
6611
6621
 
6612
6622
  // src/module-format.ts
6613
6623
  function parseModuleFormat(format) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client-generator-ts",
3
- "version": "6.17.0-dev.16",
3
+ "version": "6.17.0-dev.17",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -34,14 +34,14 @@
34
34
  "package-up": "5.0.0",
35
35
  "pluralize": "8.0.0",
36
36
  "ts-pattern": "5.6.2",
37
- "@prisma/client-common": "6.17.0-dev.16",
38
- "@prisma/debug": "6.17.0-dev.16",
39
- "@prisma/dmmf": "6.17.0-dev.16",
40
- "@prisma/generator": "6.17.0-dev.16",
41
- "@prisma/get-platform": "6.17.0-dev.16",
42
- "@prisma/fetch-engine": "6.17.0-dev.16",
43
- "@prisma/internals": "6.17.0-dev.16",
44
- "@prisma/ts-builders": "6.17.0-dev.16"
37
+ "@prisma/client-common": "6.17.0-dev.17",
38
+ "@prisma/debug": "6.17.0-dev.17",
39
+ "@prisma/dmmf": "6.17.0-dev.17",
40
+ "@prisma/fetch-engine": "6.17.0-dev.17",
41
+ "@prisma/get-platform": "6.17.0-dev.17",
42
+ "@prisma/internals": "6.17.0-dev.17",
43
+ "@prisma/ts-builders": "6.17.0-dev.17",
44
+ "@prisma/generator": "6.17.0-dev.17"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/pluralize": "0.0.33",