@prisma/client-generator-ts 6.19.0-integration-next.9 → 6.19.0-integration-next.11

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.js CHANGED
@@ -3583,9 +3583,6 @@ var import_indent_string3 = __toESM(require("indent-string"));
3583
3583
 
3584
3584
  // src/utils/runtimeImport.ts
3585
3585
  var ts4 = __toESM(require("@prisma/ts-builders"));
3586
- function runtimeImport(name) {
3587
- return name;
3588
- }
3589
3586
  function runtimeImportedType(name) {
3590
3587
  return ts4.namedType(`runtime.${name}`);
3591
3588
  }
@@ -3729,24 +3726,6 @@ function queryRawTypedDefinition(context) {
3729
3726
  ).setReturnType(prismaPromise(ts5.array(param.toArgument())));
3730
3727
  return ts5.stringify(method3, { indentLevel: 1, newLine: "leading" });
3731
3728
  }
3732
- function metricDefinition(context) {
3733
- if (!context.isPreviewFeatureOn("metrics")) {
3734
- return "";
3735
- }
3736
- const property13 = ts5.property("$metrics", ts5.namedType(`runtime.${runtimeImport("MetricsClient")}`)).setDocComment(
3737
- ts5.docComment`
3738
- Gives access to the client metrics in json or prometheus format.
3739
-
3740
- @example
3741
- \`\`\`
3742
- const metrics = await prisma.$metrics.json()
3743
- // or
3744
- const metrics = await prisma.$metrics.prometheus()
3745
- \`\`\`
3746
- `
3747
- ).readonly();
3748
- return ts5.stringify(property13, { indentLevel: 1, newLine: "leading" });
3749
- }
3750
3729
  function runCommandRawDefinition(context) {
3751
3730
  if (!context.dmmf.mappings.otherOperations.write.includes("runCommandRaw")) {
3752
3731
  return "";
@@ -3840,7 +3819,6 @@ ${[
3840
3819
  batchingTransactionDefinition(this.context),
3841
3820
  interactiveTransactionDefinition(this.context),
3842
3821
  runCommandRawDefinition(this.context),
3843
- metricDefinition(this.context),
3844
3822
  extendsPropertyDefinition()
3845
3823
  ].filter((d) => d !== null).join("\n").trim()}
3846
3824
 
@@ -5254,14 +5232,6 @@ export type Decimal = runtime.Decimal
5254
5232
 
5255
5233
  export type DecimalJsLike = runtime.DecimalJsLike
5256
5234
 
5257
- /**
5258
- * Metrics
5259
- */
5260
- export type Metrics = runtime.Metrics
5261
- export type Metric<T> = runtime.Metric<T>
5262
- export type MetricHistogram = runtime.MetricHistogram
5263
- export type MetricHistogramBucket = runtime.MetricHistogramBucket
5264
-
5265
5235
  /**
5266
5236
  * Extensions
5267
5237
  */
@@ -5950,7 +5920,7 @@ var GenerateContext = class {
5950
5920
  dmmf,
5951
5921
  genericArgsInfo,
5952
5922
  runtimeBase,
5953
- runtimeImport: runtimeImport2,
5923
+ runtimeImport,
5954
5924
  outputFileName,
5955
5925
  importFileName,
5956
5926
  generator
@@ -5958,7 +5928,7 @@ var GenerateContext = class {
5958
5928
  this.dmmf = dmmf;
5959
5929
  this.genericArgsInfo = genericArgsInfo;
5960
5930
  this.runtimeBase = runtimeBase;
5961
- this.runtimeImport = runtimeImport2;
5931
+ this.runtimeImport = runtimeImport;
5962
5932
  this.outputFileName = outputFileName;
5963
5933
  this.importFileName = importFileName;
5964
5934
  this.generator = generator;
@@ -6595,7 +6565,7 @@ var import_get_tsconfig = require("get-tsconfig");
6595
6565
  var import_ts_pattern2 = require("ts-pattern");
6596
6566
 
6597
6567
  // package.json
6598
- var version = "6.19.0-integration-next.9";
6568
+ var version = "6.19.0-integration-next.11";
6599
6569
 
6600
6570
  // src/module-format.ts
6601
6571
  function parseModuleFormat(format) {
package/dist/index.mjs CHANGED
@@ -3582,9 +3582,6 @@ import indent3 from "indent-string";
3582
3582
 
3583
3583
  // src/utils/runtimeImport.ts
3584
3584
  import * as ts4 from "@prisma/ts-builders";
3585
- function runtimeImport(name) {
3586
- return name;
3587
- }
3588
3585
  function runtimeImportedType(name) {
3589
3586
  return ts4.namedType(`runtime.${name}`);
3590
3587
  }
@@ -3728,24 +3725,6 @@ function queryRawTypedDefinition(context) {
3728
3725
  ).setReturnType(prismaPromise(ts5.array(param.toArgument())));
3729
3726
  return ts5.stringify(method3, { indentLevel: 1, newLine: "leading" });
3730
3727
  }
3731
- function metricDefinition(context) {
3732
- if (!context.isPreviewFeatureOn("metrics")) {
3733
- return "";
3734
- }
3735
- const property13 = ts5.property("$metrics", ts5.namedType(`runtime.${runtimeImport("MetricsClient")}`)).setDocComment(
3736
- ts5.docComment`
3737
- Gives access to the client metrics in json or prometheus format.
3738
-
3739
- @example
3740
- \`\`\`
3741
- const metrics = await prisma.$metrics.json()
3742
- // or
3743
- const metrics = await prisma.$metrics.prometheus()
3744
- \`\`\`
3745
- `
3746
- ).readonly();
3747
- return ts5.stringify(property13, { indentLevel: 1, newLine: "leading" });
3748
- }
3749
3728
  function runCommandRawDefinition(context) {
3750
3729
  if (!context.dmmf.mappings.otherOperations.write.includes("runCommandRaw")) {
3751
3730
  return "";
@@ -3839,7 +3818,6 @@ ${[
3839
3818
  batchingTransactionDefinition(this.context),
3840
3819
  interactiveTransactionDefinition(this.context),
3841
3820
  runCommandRawDefinition(this.context),
3842
- metricDefinition(this.context),
3843
3821
  extendsPropertyDefinition()
3844
3822
  ].filter((d) => d !== null).join("\n").trim()}
3845
3823
 
@@ -5253,14 +5231,6 @@ export type Decimal = runtime.Decimal
5253
5231
 
5254
5232
  export type DecimalJsLike = runtime.DecimalJsLike
5255
5233
 
5256
- /**
5257
- * Metrics
5258
- */
5259
- export type Metrics = runtime.Metrics
5260
- export type Metric<T> = runtime.Metric<T>
5261
- export type MetricHistogram = runtime.MetricHistogram
5262
- export type MetricHistogramBucket = runtime.MetricHistogramBucket
5263
-
5264
5234
  /**
5265
5235
  * Extensions
5266
5236
  */
@@ -5949,7 +5919,7 @@ var GenerateContext = class {
5949
5919
  dmmf,
5950
5920
  genericArgsInfo,
5951
5921
  runtimeBase,
5952
- runtimeImport: runtimeImport2,
5922
+ runtimeImport,
5953
5923
  outputFileName,
5954
5924
  importFileName,
5955
5925
  generator
@@ -5957,7 +5927,7 @@ var GenerateContext = class {
5957
5927
  this.dmmf = dmmf;
5958
5928
  this.genericArgsInfo = genericArgsInfo;
5959
5929
  this.runtimeBase = runtimeBase;
5960
- this.runtimeImport = runtimeImport2;
5930
+ this.runtimeImport = runtimeImport;
5961
5931
  this.outputFileName = outputFileName;
5962
5932
  this.importFileName = importFileName;
5963
5933
  this.generator = generator;
@@ -6594,7 +6564,7 @@ import { getTsconfig } from "get-tsconfig";
6594
6564
  import { match as match2 } from "ts-pattern";
6595
6565
 
6596
6566
  // package.json
6597
- var version = "6.19.0-integration-next.9";
6567
+ var version = "6.19.0-integration-next.11";
6598
6568
 
6599
6569
  // src/module-format.ts
6600
6570
  function parseModuleFormat(format) {
@@ -1,11 +1,4 @@
1
1
  import * as ts from '@prisma/ts-builders';
2
2
  type RuntimeExport = keyof typeof import('@prisma/client/runtime/library') & string;
3
- /**
4
- * Helps to ensure that when we want to refer to a type or value, imported from runtime Module
5
- * we are referring to the name, that is actually exported
6
- *
7
- * @param name imported name
8
- */
9
- export declare function runtimeImport(name: RuntimeExport): string;
10
3
  export declare function runtimeImportedType(name: RuntimeExport): ts.NamedType;
11
4
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/client-generator-ts",
3
- "version": "6.19.0-integration-next.9",
3
+ "version": "6.19.0-integration-next.11",
4
4
  "description": "This package is intended for Prisma's internal use",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -25,7 +25,7 @@
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
27
  "@antfu/ni": "0.21.12",
28
- "@prisma/engines-version": "6.19.0-18.next-5d7e37b62b9e0963f1a714ab97b814e0fe4835a0",
28
+ "@prisma/engines-version": "6.19.0-21.next-3ab778d6c5a8df0d39fd88ffd67461d3395af732",
29
29
  "ci-info": "4.2.0",
30
30
  "fast-glob": "3.3.3",
31
31
  "get-tsconfig": "4.10.0",
@@ -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/debug": "6.19.0-integration-next.9",
38
- "@prisma/dmmf": "6.19.0-integration-next.9",
39
- "@prisma/fetch-engine": "6.19.0-integration-next.9",
40
- "@prisma/client-common": "6.19.0-integration-next.9",
41
- "@prisma/generator": "6.19.0-integration-next.9",
42
- "@prisma/internals": "6.19.0-integration-next.9",
43
- "@prisma/get-platform": "6.19.0-integration-next.9",
44
- "@prisma/ts-builders": "6.19.0-integration-next.9"
37
+ "@prisma/client-common": "6.19.0-integration-next.11",
38
+ "@prisma/debug": "6.19.0-integration-next.11",
39
+ "@prisma/dmmf": "6.19.0-integration-next.11",
40
+ "@prisma/fetch-engine": "6.19.0-integration-next.11",
41
+ "@prisma/get-platform": "6.19.0-integration-next.11",
42
+ "@prisma/generator": "6.19.0-integration-next.11",
43
+ "@prisma/ts-builders": "6.19.0-integration-next.11",
44
+ "@prisma/internals": "6.19.0-integration-next.11"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@types/pluralize": "0.0.33",