@prisma/orm-mongo 8.0.0-rc.25-dev.29 → 8.0.0-rc.27

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.
Files changed (212) hide show
  1. package/README.md +6 -5
  2. package/dist/bson.d.mts +2 -1
  3. package/dist/components__runtime.d.mts +3 -1
  4. package/dist/config.d.mts +2 -1
  5. package/dist/config.d.mts.map +1 -1
  6. package/dist/contract-builder.d.mts +11 -12
  7. package/dist/contract-builder.d.mts.map +1 -1
  8. package/dist/contract-types.d.mts +5 -3
  9. package/dist/contract__types.d.mts +3 -1
  10. package/dist/control.d.mts +2 -1
  11. package/dist/control.d.mts.map +1 -1
  12. package/dist/family-contract.d.mts +3 -1
  13. package/dist/family-runtime.d.mts +3 -1
  14. package/dist/family.d.mts +2 -1
  15. package/dist/family__control.d.mts +3 -1
  16. package/dist/init-quick-reference.md +1 -1
  17. package/dist/init.d.mts +2 -1
  18. package/dist/init.d.mts.map +1 -1
  19. package/dist/migration-tools__aggregate.d.mts +3 -1
  20. package/dist/migration-tools__hash.d.mts +3 -1
  21. package/dist/migration-tools__io.d.mts +3 -1
  22. package/dist/migration-tools__spaces.d.mts +3 -1
  23. package/dist/migration.d.mts +3 -1
  24. package/dist/{mongo-static-CZlnpepm-DnjIfx0L.mjs → mongo-static-Uk6OGD4r-BoKXE7a6.mjs} +4 -4
  25. package/dist/mongo-static-Uk6OGD4r-BoKXE7a6.mjs.map +1 -0
  26. package/dist/orm.d.mts +3 -1
  27. package/dist/query-ast__execution.d.mts +3 -1
  28. package/dist/query-builder.d.mts +3 -1
  29. package/dist/runtime.d.mts +3 -1
  30. package/dist/runtime.d.mts.map +1 -1
  31. package/dist/runtime.mjs +6 -6
  32. package/dist/runtime.mjs.map +1 -1
  33. package/dist/static.d.mts +2 -1
  34. package/dist/static.d.mts.map +1 -1
  35. package/dist/static.mjs +1 -1
  36. package/dist/target.d.mts +2 -1
  37. package/dist/target__codec-ids.d.mts +3 -1
  38. package/dist/target__codec-types.d.mts +3 -1
  39. package/dist/target__migration.d.mts +3 -1
  40. package/dist/target__runtime.d.mts +2 -1
  41. package/dist/value.d.mts +3 -1
  42. package/dist/vite-plugin-contract-emit.d.mts +3 -1
  43. package/package.json +12 -81
  44. package/skills/prisma-8/SKILL.md +8 -8
  45. package/skills/prisma-8/references/contract.md +9 -9
  46. package/skills/prisma-8/references/debug.md +11 -11
  47. package/skills/prisma-8/references/migration-model.md +17 -17
  48. package/skills/prisma-8/references/migration-review.md +21 -21
  49. package/skills/prisma-8/references/migrations.md +58 -42
  50. package/skills/prisma-8/references/queries-postgres.md +51 -8
  51. package/skills/prisma-8/references/queries.md +2 -2
  52. package/skills/prisma-8/references/quickstart.md +11 -11
  53. package/skills/prisma-8/references/runtime.md +3 -3
  54. package/skills/prisma-8/references/supabase.md +2 -2
  55. package/skills/prisma-8/references/upgrade-app.md +56 -23
  56. package/skills/prisma-8/references/upgrade-extension.md +35 -14
  57. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.25-to-8.0.0-rc.26/instructions.md +2478 -0
  58. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.25-to-8.0.0-rc.26/scripts/contract-hash-inputs/contract-hash-inputs.ts +2125 -0
  59. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.25-to-8.0.0-rc.26/scripts/contract-signature-names/contract-signature-names.ts +759 -0
  60. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.25-to-8.0.0-rc.26/scripts/facade-paths-an-application-uses/facade-paths-an-application-uses.ts +689 -0
  61. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.25-to-8.0.0-rc.26/scripts/platform-paths-an-extension-uses/platform-paths-an-extension-uses.ts +2053 -0
  62. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.25-to-8.0.0-rc.26/scripts/stored-files-format-version/stored-files-format-version.ts +671 -0
  63. package/skills/prisma-8/upgrading/app/upgrades/8.0.0-rc.26-to-8.0.0-rc.27/instructions.md +100 -0
  64. package/skills/prisma-8/upgrading/extension/upgrades/0.11-to-0.12/instructions.md +1 -1
  65. package/skills/prisma-8/upgrading/extension/upgrades/0.8-to-0.9/instructions.md +1 -1
  66. package/skills/prisma-8/upgrading/extension/upgrades/0.9-to-0.10/instructions.md +1 -1
  67. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.25-to-8.0.0-rc.26/instructions.md +2057 -0
  68. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.25-to-8.0.0-rc.26/scripts/contract-hash-inputs/contract-hash-inputs.ts +2125 -0
  69. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.25-to-8.0.0-rc.26/scripts/contract-signature-names/contract-signature-names.ts +759 -0
  70. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.25-to-8.0.0-rc.26/scripts/facade-paths-an-application-uses/facade-paths-an-application-uses.ts +689 -0
  71. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.25-to-8.0.0-rc.26/scripts/platform-paths-an-extension-uses/platform-paths-an-extension-uses.ts +2053 -0
  72. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.25-to-8.0.0-rc.26/scripts/stored-files-format-version/stored-files-format-version.ts +671 -0
  73. package/skills/prisma-8/upgrading/extension/upgrades/8.0.0-rc.26-to-8.0.0-rc.27/instructions.md +56 -0
  74. package/dist/adapter.d.mts +0 -1
  75. package/dist/adapter.mjs +0 -2
  76. package/dist/adapter__control.d.mts +0 -3
  77. package/dist/adapter__control.mjs +0 -3
  78. package/dist/adapter__runtime.d.mts +0 -3
  79. package/dist/adapter__runtime.mjs +0 -3
  80. package/dist/components.d.mts +0 -1
  81. package/dist/components.mjs +0 -2
  82. package/dist/components__authoring.d.mts +0 -1
  83. package/dist/components__authoring.mjs +0 -2
  84. package/dist/components__codec.d.mts +0 -1
  85. package/dist/components__codec.mjs +0 -2
  86. package/dist/components__components.d.mts +0 -1
  87. package/dist/components__components.mjs +0 -2
  88. package/dist/components__control.d.mts +0 -1
  89. package/dist/components__control.mjs +0 -2
  90. package/dist/components__emission.d.mts +0 -1
  91. package/dist/components__emission.mjs +0 -2
  92. package/dist/components__execution.d.mts +0 -1
  93. package/dist/components__execution.mjs +0 -2
  94. package/dist/components__ir.d.mts +0 -1
  95. package/dist/components__ir.mjs +0 -2
  96. package/dist/components__psl-ast.d.mts +0 -1
  97. package/dist/components__psl-ast.mjs +0 -2
  98. package/dist/components__utils.d.mts +0 -1
  99. package/dist/components__utils.mjs +0 -2
  100. package/dist/contract.d.mts +0 -1
  101. package/dist/contract.mjs +0 -2
  102. package/dist/contract__apply-specifier-default-control-policy.d.mts +0 -1
  103. package/dist/contract__apply-specifier-default-control-policy.mjs +0 -2
  104. package/dist/contract__contract-validation-error.d.mts +0 -1
  105. package/dist/contract__contract-validation-error.mjs +0 -2
  106. package/dist/contract__default-namespace.d.mts +0 -1
  107. package/dist/contract__default-namespace.mjs +0 -2
  108. package/dist/contract__enum-accessor.d.mts +0 -1
  109. package/dist/contract__enum-accessor.mjs +0 -2
  110. package/dist/contract__format-version.d.mts +0 -1
  111. package/dist/contract__format-version.mjs +0 -2
  112. package/dist/contract__hashing-utils.d.mts +0 -1
  113. package/dist/contract__hashing-utils.mjs +0 -2
  114. package/dist/contract__hashing.d.mts +0 -1
  115. package/dist/contract__hashing.mjs +0 -2
  116. package/dist/contract__internal__format-version.d.mts +0 -1
  117. package/dist/contract__internal__format-version.mjs +0 -2
  118. package/dist/contract__is-plain-record.d.mts +0 -1
  119. package/dist/contract__is-plain-record.mjs +0 -2
  120. package/dist/contract__resolve-domain-model.d.mts +0 -1
  121. package/dist/contract__resolve-domain-model.mjs +0 -2
  122. package/dist/contract__validate-domain.d.mts +0 -1
  123. package/dist/contract__validate-domain.mjs +0 -2
  124. package/dist/contract__validate-once.d.mts +0 -1
  125. package/dist/contract__validate-once.mjs +0 -2
  126. package/dist/contract__validate-storage.d.mts +0 -1
  127. package/dist/contract__validate-storage.mjs +0 -2
  128. package/dist/driver.d.mts +0 -1
  129. package/dist/driver.mjs +0 -2
  130. package/dist/driver__control.d.mts +0 -3
  131. package/dist/driver__control.mjs +0 -3
  132. package/dist/driver__runtime.d.mts +0 -3
  133. package/dist/driver__runtime.mjs +0 -3
  134. package/dist/family-contract__canonicalization-hooks.d.mts +0 -1
  135. package/dist/family-contract__canonicalization-hooks.mjs +0 -2
  136. package/dist/family-contract__data-type.d.mts +0 -1
  137. package/dist/family-contract__data-type.mjs +0 -2
  138. package/dist/family-contract__entity-kinds.d.mts +0 -1
  139. package/dist/family-contract__entity-kinds.mjs +0 -2
  140. package/dist/family__control-adapter.d.mts +0 -1
  141. package/dist/family__control-adapter.mjs +0 -2
  142. package/dist/family__ir.d.mts +0 -1
  143. package/dist/family__ir.mjs +0 -2
  144. package/dist/family__migration.d.mts +0 -1
  145. package/dist/family__migration.mjs +0 -2
  146. package/dist/family__pack.d.mts +0 -3
  147. package/dist/family__pack.mjs +0 -3
  148. package/dist/family__runtime.d.mts +0 -1
  149. package/dist/family__runtime.mjs +0 -2
  150. package/dist/family__schema-verify.d.mts +0 -1
  151. package/dist/family__schema-verify.mjs +0 -2
  152. package/dist/migration-tools__contract-snapshot-store.d.mts +0 -1
  153. package/dist/migration-tools__contract-snapshot-store.mjs +0 -2
  154. package/dist/mongo-static-CZlnpepm-DnjIfx0L.mjs.map +0 -1
  155. package/dist/query-ast.d.mts +0 -1
  156. package/dist/query-ast.mjs +0 -2
  157. package/dist/query-ast__control.d.mts +0 -1
  158. package/dist/query-ast__control.mjs +0 -2
  159. package/dist/query-builder__contract-free.d.mts +0 -1
  160. package/dist/query-builder__contract-free.mjs +0 -2
  161. package/dist/target__codecs.d.mts +0 -1
  162. package/dist/target__codecs.mjs +0 -2
  163. package/dist/target__control.d.mts +0 -1
  164. package/dist/target__control.mjs +0 -2
  165. package/dist/target__data-types.d.mts +0 -1
  166. package/dist/target__data-types.mjs +0 -2
  167. package/dist/target__pack.d.mts +0 -3
  168. package/dist/target__pack.mjs +0 -3
  169. package/dist/target__server-version.d.mts +0 -1
  170. package/dist/target__server-version.mjs +0 -2
  171. package/dist/utils.d.mts +0 -1
  172. package/dist/utils.mjs +0 -2
  173. package/dist/utils__abortable.d.mts +0 -1
  174. package/dist/utils__abortable.mjs +0 -2
  175. package/dist/utils__array-equal.d.mts +0 -1
  176. package/dist/utils__array-equal.mjs +0 -2
  177. package/dist/utils__assertions.d.mts +0 -1
  178. package/dist/utils__assertions.mjs +0 -2
  179. package/dist/utils__canonical-stringify.d.mts +0 -1
  180. package/dist/utils__canonical-stringify.mjs +0 -2
  181. package/dist/utils__casts.d.mts +0 -1
  182. package/dist/utils__casts.mjs +0 -2
  183. package/dist/utils__defined.d.mts +0 -1
  184. package/dist/utils__defined.mjs +0 -2
  185. package/dist/utils__guards.d.mts +0 -1
  186. package/dist/utils__guards.mjs +0 -2
  187. package/dist/utils__hash-content.d.mts +0 -1
  188. package/dist/utils__hash-content.mjs +0 -2
  189. package/dist/utils__internal-error.d.mts +0 -1
  190. package/dist/utils__internal-error.mjs +0 -2
  191. package/dist/utils__json.d.mts +0 -1
  192. package/dist/utils__json.mjs +0 -2
  193. package/dist/utils__promise.d.mts +0 -1
  194. package/dist/utils__promise.mjs +0 -2
  195. package/dist/utils__redact-db-url.d.mts +0 -1
  196. package/dist/utils__redact-db-url.mjs +0 -2
  197. package/dist/utils__result.d.mts +0 -1
  198. package/dist/utils__result.mjs +0 -2
  199. package/dist/utils__simplify-deep.d.mts +0 -1
  200. package/dist/utils__simplify-deep.mjs +0 -2
  201. package/dist/utils__structured-error.d.mts +0 -1
  202. package/dist/utils__structured-error.mjs +0 -2
  203. package/dist/utils__suppress-idle-connection-errors.d.mts +0 -1
  204. package/dist/utils__suppress-idle-connection-errors.mjs +0 -2
  205. package/dist/utils__text.d.mts +0 -1
  206. package/dist/utils__text.mjs +0 -2
  207. package/dist/utils__types.d.mts +0 -1
  208. package/dist/utils__types.mjs +0 -2
  209. package/dist/utils__upgrade-guides.d.mts +0 -1
  210. package/dist/utils__upgrade-guides.mjs +0 -2
  211. package/dist/value__mongodb-types.d.mts +0 -1
  212. package/dist/value__mongodb-types.mjs +0 -2
@@ -0,0 +1,2053 @@
1
+ #!/usr/bin/env node
2
+ /**
3
+ * Changes each import of a path or name the platform packages (`@prisma/orm-framework`, `@prisma/orm-family-sql`, `@prisma/orm-target-postgres`, `@prisma/orm-toolchain`) no longer publish to a published path that exports the same declaration, and renames the exported names that contained "internal". Most names of a removed path are no longer published anywhere; the script leaves each import of them and lists it. Run it after the `facade-paths-an-application-uses` script, which sends some imports to these paths.
4
+ *
5
+ * Usage: node platform-paths-an-extension-uses.ts [project-root]
6
+ *
7
+ * The script reads each file with the TypeScript compiler of the project, so the project needs its `typescript` package installed. The project root defaults to the working directory. The script walks it, skipping `node_modules`, `dist`, `build`, directories whose name starts with a dot and, in a git repository, the files and folders git ignores, unless git ignores the project root itself, and rewrites each `.ts`, `.mts`, `.cts`, `.tsx`, `.js`, `.mjs`, `.cjs` and `.jsx` file in place. It prints each file it changed, then, under `Not changed:`, each import it could not rewrite and each place it wants checked. It works out every file's new text before it writes any, so a run that stops before writing changes no file. If a write fails, it stops, names the file it failed on, which may be partly written, and names the files it did not write. A second run changes nothing.
8
+ */
9
+ import { spawnSync } from 'node:child_process';
10
+ import { readdirSync, readFileSync, realpathSync, writeFileSync } from 'node:fs';
11
+ import { createRequire } from 'node:module';
12
+ import { join, relative, resolve, sep } from 'node:path';
13
+ import { fileURLToPath, pathToFileURL } from 'node:url';
14
+ import type * as TS from 'typescript';
15
+
16
+ type TypeScript = typeof TS;
17
+
18
+ /**
19
+ * Where the names of a path published at release 8.0.0-rc.25 went. A removed path sends every name
20
+ * to `to` unless `names` says otherwise; a kept path keeps every name but those in `names`. A name
21
+ * goes only to a path that exports the same declaration, and `null` means it is published nowhere.
22
+ */
23
+ interface Destination {
24
+ readonly removed: boolean;
25
+ readonly to: string | null;
26
+ readonly names?: Readonly<Record<string, string | null>>;
27
+ }
28
+
29
+ /** The published paths that exported a name this change renames, at release 8.0.0-rc.25 or now. */
30
+ const RENAMED_EXPORTERS: ReadonlySet<string> = new Set([
31
+ '@prisma/orm-extension-supabase/runtime',
32
+ '@prisma/orm-family-mongo/runtime',
33
+ '@prisma/orm-family-sql/relational-core',
34
+ '@prisma/orm-family-sql/relational-core/middleware',
35
+ '@prisma/orm-family-sql/runtime',
36
+ '@prisma/orm-framework/utils',
37
+ '@prisma/orm-framework/utils/internal-error',
38
+ '@prisma/orm-framework/utils/invariant-error',
39
+ '@prisma/orm-mariadb/family-runtime',
40
+ '@prisma/orm-mongo/family-runtime',
41
+ '@prisma/orm-mysql/family-runtime',
42
+ '@prisma/orm-postgres/family-runtime',
43
+ '@prisma/orm-sqlite/family-runtime',
44
+ ]);
45
+
46
+ export const PATHS: Readonly<Record<string, Destination>> = {
47
+ '@prisma/orm-framework/contract/resolve-domain-model': {
48
+ removed: true,
49
+ to: '@prisma/orm-framework/contract/types',
50
+ },
51
+ '@prisma/orm-framework/psl-parser/tokenizer': { removed: true, to: null },
52
+ '@prisma/orm-framework/target-package-config': {
53
+ removed: true,
54
+ to: '@prisma/orm-framework/target-package-config/type-declarations',
55
+ },
56
+ '@prisma/orm-framework/type-implementations': {
57
+ removed: true,
58
+ to: null,
59
+ names: {
60
+ booleanFromInteger: '@prisma/orm-framework/type-implementations/boolean',
61
+ DATE_STRING_NOW_GENERATOR_ID: '@prisma/orm-framework/type-implementations/now',
62
+ dateOfThisRealm: '@prisma/orm-framework/type-implementations/date',
63
+ dateStringNow: '@prisma/orm-framework/type-implementations/now',
64
+ dateTimeStringNow: '@prisma/orm-framework/type-implementations/now',
65
+ decimalTextWithoutExponent: '@prisma/orm-framework/type-implementations/decimal',
66
+ decimalTextWithoutLeadingZeros: '@prisma/orm-framework/type-implementations/decimal',
67
+ describeValue: '@prisma/orm-framework/type-implementations/temporal-text',
68
+ findNonJsonValue: '@prisma/orm-framework/type-implementations/json',
69
+ FindNonJsonValueOptions: '@prisma/orm-framework/type-implementations/json',
70
+ findTemporal: '@prisma/orm-framework/type-implementations/temporal',
71
+ fractionDigitsOf: '@prisma/orm-framework/type-implementations/now',
72
+ GeneratorParams: '@prisma/orm-framework/type-implementations/now',
73
+ hasDigitsBelow: '@prisma/orm-framework/type-implementations/date',
74
+ hasDigitsBelowAMillisecond: '@prisma/orm-framework/type-implementations/date',
75
+ INSTANT_NOW_GENERATOR_ID: '@prisma/orm-framework/type-implementations/now',
76
+ INSTANT_STRING_NOW_GENERATOR_ID: '@prisma/orm-framework/type-implementations/now',
77
+ instantNow: '@prisma/orm-framework/type-implementations/now',
78
+ instantStringNow: '@prisma/orm-framework/type-implementations/now',
79
+ integerFromBoolean: '@prisma/orm-framework/type-implementations/boolean',
80
+ isDate: '@prisma/orm-framework/type-implementations/date',
81
+ isDecimalText: '@prisma/orm-framework/type-implementations/decimal',
82
+ ISO_DURATION: '@prisma/orm-framework/type-implementations/duration',
83
+ ISO_DURATION_AS_WRITTEN: '@prisma/orm-framework/type-implementations/duration',
84
+ isValidDate: '@prisma/orm-framework/type-implementations/date',
85
+ NonJsonValue: '@prisma/orm-framework/type-implementations/json',
86
+ PLAIN_DATE_NOW_GENERATOR_ID: '@prisma/orm-framework/type-implementations/now',
87
+ PLAIN_DATE_TIME_NOW_GENERATOR_ID: '@prisma/orm-framework/type-implementations/now',
88
+ PLAIN_TIME_NOW_GENERATOR_ID: '@prisma/orm-framework/type-implementations/now',
89
+ plainDateNow: '@prisma/orm-framework/type-implementations/now',
90
+ plainDateTimeNow: '@prisma/orm-framework/type-implementations/now',
91
+ plainTimeNow: '@prisma/orm-framework/type-implementations/now',
92
+ printedDecimalText: '@prisma/orm-framework/type-implementations/decimal',
93
+ setFallbackTemporal: '@prisma/orm-framework/type-implementations/temporal',
94
+ temporalFromText: '@prisma/orm-framework/type-implementations/temporal-text',
95
+ TemporalImplementation: '@prisma/orm-framework/type-implementations/temporal',
96
+ TemporalTag: '@prisma/orm-framework/type-implementations/temporal-text',
97
+ temporalToText: '@prisma/orm-framework/type-implementations/temporal-text',
98
+ TemporalValue: '@prisma/orm-framework/type-implementations/temporal-text',
99
+ TIME_STRING_NOW_GENERATOR_ID: '@prisma/orm-framework/type-implementations/now',
100
+ timeStringNow: '@prisma/orm-framework/type-implementations/now',
101
+ utcIsoTextOf: '@prisma/orm-framework/type-implementations/date',
102
+ withoutUtcDesignator: '@prisma/orm-framework/type-implementations/temporal-text',
103
+ withoutZerosBelowAMillisecond: '@prisma/orm-framework/type-implementations/date',
104
+ withThreeFractionDigits: '@prisma/orm-framework/type-implementations/date',
105
+ },
106
+ },
107
+ '@prisma/orm-framework/utils': {
108
+ removed: true,
109
+ to: null,
110
+ names: {
111
+ abortable: '@prisma/orm-framework/utils/abortable',
112
+ and: '@prisma/orm-framework/utils/result',
113
+ assertDefined: '@prisma/orm-framework/utils/assertions',
114
+ assertNever: '@prisma/orm-framework/utils/invariant-error',
115
+ blindCast: '@prisma/orm-framework/utils/casts',
116
+ canonicalStringify: '@prisma/orm-framework/utils/canonical-stringify',
117
+ castAs: '@prisma/orm-framework/utils/casts',
118
+ clipToUtf8Bytes: '@prisma/orm-framework/utils/text',
119
+ counted: '@prisma/orm-framework/utils/text',
120
+ Diagnostic: '@prisma/orm-framework/utils/structured-error',
121
+ DOCS_BASE: '@prisma/orm-framework/utils/structured-error',
122
+ DOCS_ERRORS_VERSION: '@prisma/orm-framework/utils/structured-error',
123
+ docsUrlFor: '@prisma/orm-framework/utils/structured-error',
124
+ hashContent: '@prisma/orm-framework/utils/hash-content',
125
+ ifDefined: '@prisma/orm-framework/utils/defined',
126
+ InternalError: '@prisma/orm-framework/utils/invariant-error',
127
+ invariant: '@prisma/orm-framework/utils/assertions',
128
+ isArrayEqual: '@prisma/orm-framework/utils/array-equal',
129
+ isInternalError: '@prisma/orm-framework/utils/invariant-error',
130
+ isRecord: '@prisma/orm-framework/utils/guards',
131
+ isStructuredError: '@prisma/orm-framework/utils/structured-error',
132
+ isStructuredErrorCode: '@prisma/orm-framework/utils/structured-error',
133
+ isThenable: '@prisma/orm-framework/utils/promise',
134
+ JsonArray: '@prisma/orm-framework/utils/json',
135
+ JsonObject: '@prisma/orm-framework/utils/json',
136
+ JsonPrimitive: '@prisma/orm-framework/contract/types',
137
+ JsonValue: '@prisma/orm-framework/utils/json',
138
+ NextAction: '@prisma/orm-framework/utils/structured-error',
139
+ notOk: '@prisma/orm-framework/utils/result',
140
+ NotOk: '@prisma/orm-framework/utils/result',
141
+ ok: '@prisma/orm-framework/utils/result',
142
+ Ok: '@prisma/orm-framework/utils/result',
143
+ okVoid: '@prisma/orm-framework/utils/result',
144
+ or: '@prisma/orm-framework/utils/result',
145
+ redactDatabaseUrl: '@prisma/orm-framework/utils/redact-db-url',
146
+ RedactedDatabaseUrl: '@prisma/orm-framework/utils/redact-db-url',
147
+ Result: '@prisma/orm-framework/utils/result',
148
+ Simplify: '@prisma/orm-framework/utils/types',
149
+ SimplifyDeep: '@prisma/orm-framework/utils/simplify-deep',
150
+ structuredError: '@prisma/orm-framework/utils/structured-error',
151
+ StructuredError: '@prisma/orm-framework/utils/structured-error',
152
+ StructuredErrorOptions: '@prisma/orm-framework/utils/structured-error',
153
+ suppressIdleConnectionErrors: '@prisma/orm-framework/utils/suppress-idle-connection-errors',
154
+ UnionToIntersection: '@prisma/orm-framework/utils/types',
155
+ utf8ByteLength: '@prisma/orm-framework/utils/text',
156
+ withoutTrailing: '@prisma/orm-framework/utils/text',
157
+ },
158
+ },
159
+ '@prisma/orm-framework/utils/internal-error': {
160
+ removed: true,
161
+ to: '@prisma/orm-framework/utils/invariant-error',
162
+ },
163
+ '@prisma/orm-family-sql/builder': {
164
+ removed: true,
165
+ to: null,
166
+ names: {
167
+ AggregateFunctions: '@prisma/orm-family-sql/builder/types',
168
+ Db: '@prisma/orm-family-sql/builder/runtime',
169
+ DeleteQuery: '@prisma/orm-family-sql/builder/types',
170
+ Expression: '@prisma/orm-family-sql/relational-core/expression',
171
+ Functions: '@prisma/orm-family-sql/builder/types',
172
+ GatedMethod: '@prisma/orm-family-sql/builder/types',
173
+ GroupedQuery: '@prisma/orm-family-sql/builder/types',
174
+ InsertQuery: '@prisma/orm-family-sql/builder/types',
175
+ QueryContext: '@prisma/orm-family-sql/builder/types',
176
+ ResolveRow: '@prisma/orm-family-sql/builder/types',
177
+ Scope: '@prisma/orm-family-sql/builder/types',
178
+ ScopeField: '@prisma/orm-family-sql/relational-core/expression',
179
+ SelectQuery: '@prisma/orm-family-sql/builder/types',
180
+ Subquery: '@prisma/orm-family-sql/builder/types',
181
+ TableProxy: '@prisma/orm-family-sql/builder/types',
182
+ UpdateQuery: '@prisma/orm-family-sql/builder/types',
183
+ WhereFilter: '@prisma/orm-family-sql/builder/types',
184
+ },
185
+ },
186
+ '@prisma/orm-family-sql/contract': {
187
+ removed: false,
188
+ to: null,
189
+ names: {
190
+ AuthoredCheckInput: null,
191
+ CheckConstraintSchema: null,
192
+ checkSqlDefaultText: '@prisma/orm-family-sql/family/control',
193
+ CodecTraitsLookup: null,
194
+ col: null,
195
+ ColumnDefaultFunctionSchema: null,
196
+ ColumnDefaultLiteralSchema: null,
197
+ ColumnDefaultSchema: null,
198
+ ContractEnumSchema: null,
199
+ createNamespaceEntrySchema: null,
200
+ createSqlContractSchema: null,
201
+ createSqlStorageSchema: null,
202
+ fk: null,
203
+ ForeignKeyReferenceSchema: null,
204
+ ForeignKeySchema: null,
205
+ ForeignKeySourceSchema: null,
206
+ index: null,
207
+ IndexSchema: null,
208
+ lowerAuthoredCheck: null,
209
+ model: null,
210
+ pk: null,
211
+ ReferentialActionSchema: null,
212
+ reservedSqlDefaultText: null,
213
+ resolveSqlToOneRelationStorage: null,
214
+ SqlToOneRelationStorage: null,
215
+ StorageTableSchema: null,
216
+ StorageValueSetSchema: null,
217
+ table: null,
218
+ unique: null,
219
+ validateExecutionDefaultsTargetMappedColumns: null,
220
+ validateIndexTypes: null,
221
+ validateModel: null,
222
+ validateModelStorageReferences: null,
223
+ validateRelationJoinFields: null,
224
+ validateSqlContractFully: null,
225
+ ValidateSqlContractFullyOptions: null,
226
+ validateSqlStorageConsistency: null,
227
+ validateStorage: null,
228
+ validateStorageSemantics: null,
229
+ valueObjectStorageTypeMissingMessage: null,
230
+ },
231
+ },
232
+ '@prisma/orm-family-sql/contract/authored-check-naming': { removed: true, to: null },
233
+ '@prisma/orm-family-sql/contract/factories': { removed: true, to: null },
234
+ '@prisma/orm-family-sql/contract/index-type-validation': { removed: true, to: null },
235
+ '@prisma/orm-family-sql/contract/validators': {
236
+ removed: true,
237
+ to: null,
238
+ names: {
239
+ CheckConstraintSchema: null,
240
+ checkSqlDefaultText: '@prisma/orm-family-sql/family/control',
241
+ ColumnDefaultFunctionSchema: null,
242
+ ColumnDefaultLiteralSchema: null,
243
+ ColumnDefaultSchema: null,
244
+ ContractEnumSchema: null,
245
+ createNamespaceEntrySchema: null,
246
+ createSqlContractSchema: null,
247
+ createSqlStorageSchema: null,
248
+ ForeignKeyReferenceSchema: null,
249
+ ForeignKeySchema: null,
250
+ ForeignKeySourceSchema: null,
251
+ IndexSchema: null,
252
+ ReferentialActionSchema: null,
253
+ reservedSqlDefaultText: null,
254
+ resolveSqlToOneRelationStorage: null,
255
+ SqlToOneRelationStorage: null,
256
+ StorageTableSchema: null,
257
+ StorageValueSetSchema: null,
258
+ validateExecutionDefaultsTargetMappedColumns: null,
259
+ validateModel: null,
260
+ validateModelStorageReferences: null,
261
+ validateRelationJoinFields: null,
262
+ validateSqlContractFully: null,
263
+ ValidateSqlContractFullyOptions: null,
264
+ validateSqlStorageConsistency: null,
265
+ validateStorage: null,
266
+ validateStorageSemantics: null,
267
+ valueObjectStorageTypeMissingMessage: null,
268
+ },
269
+ },
270
+ '@prisma/orm-family-sql/contract-emitter': { removed: true, to: null },
271
+ '@prisma/orm-family-sql/contract-psl': {
272
+ removed: true,
273
+ to: null,
274
+ names: {
275
+ ControlMutationDefaults: '@prisma/orm-framework/components/control',
276
+ DefaultFunctionLoweringContext: '@prisma/orm-framework/components/control',
277
+ interpretPslDocumentToSqlContract: null,
278
+ InterpretPslDocumentToSqlContractInput: null,
279
+ MutationDefaultGeneratorDescriptor: '@prisma/orm-framework/components/control',
280
+ },
281
+ },
282
+ '@prisma/orm-family-sql/contract-psl/attribute-specs': { removed: true, to: null },
283
+ '@prisma/orm-family-sql/contract-psl/default-table-name': { removed: true, to: null },
284
+ '@prisma/orm-family-sql/contract-psl/diagnostics': { removed: true, to: null },
285
+ '@prisma/orm-family-sql/contract-ts': {
286
+ removed: true,
287
+ to: null,
288
+ names: {
289
+ applySqlSpecifierControlPolicy: '@prisma/orm-family-sql/contract-ts/contract-builder',
290
+ AttachedEntities: '@prisma/orm-family-sql/contract-ts/contract-builder',
291
+ AuthoredColumnDefault: '@prisma/orm-family-sql/contract-ts/contract-builder',
292
+ AuthoredColumnDefaultLiteralValue: '@prisma/orm-family-sql/contract-ts/contract-builder',
293
+ autoincrement: '@prisma/orm-family-sql/contract-ts/contract-builder',
294
+ bindEnumType: '@prisma/orm-family-sql/contract-ts/contract-builder',
295
+ BoundEnumType: '@prisma/orm-family-sql/contract-ts/contract-builder',
296
+ buildBoundContract: '@prisma/orm-family-sql/contract-ts/contract-builder',
297
+ buildContractDefinition: '@prisma/orm-family-sql/contract-ts/contract-builder',
298
+ buildSqlContractFromDefinition: '@prisma/orm-family-sql/contract-ts/contract-builder',
299
+ CapabilityContributor: '@prisma/orm-family-sql/contract-ts/contract-builder',
300
+ check: '@prisma/orm-family-sql/contract-ts/contract-builder',
301
+ CheckNode: '@prisma/orm-family-sql/contract-ts/contract-builder',
302
+ CodecInput: '@prisma/orm-family-sql/contract-ts/contract-builder',
303
+ CodecTypeMap: '@prisma/orm-family-sql/contract-ts/contract-builder',
304
+ ColumnNode: '@prisma/orm-family-sql/contract-ts/contract-builder',
305
+ ColumnRef: '@prisma/orm-family-sql/contract-ts/contract-builder',
306
+ columnsPhrase: '@prisma/orm-family-sql/contract-ts/contract-builder',
307
+ ComposedAuthoringHelpers: '@prisma/orm-family-sql/contract-ts/contract-builder',
308
+ composedExtensionPackRefs: '@prisma/orm-family-sql/contract-ts/contract-builder',
309
+ ConfigTarget: '@prisma/orm-family-sql/contract-ts/config-types',
310
+ ContractConfig: '@prisma/orm-family-sql/contract-ts/config-types',
311
+ ContractDefinition: '@prisma/orm-family-sql/contract-ts/contract-builder',
312
+ ContractInput: '@prisma/orm-family-sql/contract-ts/contract-builder',
313
+ ContractModelBuilder: '@prisma/orm-family-sql/contract-ts/contract-builder',
314
+ createComposedAuthoringHelpers: '@prisma/orm-family-sql/contract-ts/contract-builder',
315
+ DeferredIndexColumn: '@prisma/orm-family-sql/contract-ts/contract-builder',
316
+ DeferredIndexExpression: '@prisma/orm-family-sql/contract-ts/contract-builder',
317
+ DeferredIndexOptions: '@prisma/orm-family-sql/contract-ts/contract-builder',
318
+ defineContract: '@prisma/orm-family-sql/contract-ts/contract-builder',
319
+ emptyContract: '@prisma/orm-family-sql/contract-ts/config-types',
320
+ EnumMember: '@prisma/orm-family-sql/contract-ts/contract-builder',
321
+ enumType: '@prisma/orm-family-sql/contract-ts/contract-builder',
322
+ EnumTypeHandle: '@prisma/orm-family-sql/contract-ts/contract-builder',
323
+ extensionModel: '@prisma/orm-family-sql/contract-ts/contract-builder',
324
+ ExtractCodecTypesFromPack: '@prisma/orm-family-sql/contract-ts/contract-builder',
325
+ field: '@prisma/orm-family-sql/contract-ts/contract-builder',
326
+ FieldNode: '@prisma/orm-family-sql/contract-ts/contract-builder',
327
+ ForeignKeyModelReference: '@prisma/orm-family-sql/contract-ts/contract-builder',
328
+ ForeignKeyNode: '@prisma/orm-family-sql/contract-ts/contract-builder',
329
+ ForeignKeyTableReference: '@prisma/orm-family-sql/contract-ts/contract-builder',
330
+ IndexConstraint: '@prisma/orm-family-sql/contract-ts/contract-builder',
331
+ IndexExpressionInput: '@prisma/orm-family-sql/contract-ts/contract-builder',
332
+ IndexNode: '@prisma/orm-family-sql/contract-ts/contract-builder',
333
+ IndexOptionsFunction: '@prisma/orm-family-sql/contract-ts/contract-builder',
334
+ IndexOptionsInput: '@prisma/orm-family-sql/contract-ts/contract-builder',
335
+ isValueObjectMember: '@prisma/orm-family-sql/contract-ts/contract-builder',
336
+ ManyOptions: '@prisma/orm-family-sql/contract-ts/contract-builder',
337
+ member: '@prisma/orm-family-sql/contract-ts/contract-builder',
338
+ MergeEnums: '@prisma/orm-family-sql/contract-ts/contract-builder',
339
+ mergeSharedTable: '@prisma/orm-family-sql/contract-ts/contract-builder',
340
+ model: '@prisma/orm-family-sql/contract-ts/contract-builder',
341
+ ModelLike: '@prisma/orm-family-sql/contract-ts/contract-builder',
342
+ ModelNode: '@prisma/orm-family-sql/contract-ts/contract-builder',
343
+ now: '@prisma/orm-family-sql/contract-ts/contract-builder',
344
+ PrimaryKeyNode: '@prisma/orm-family-sql/contract-ts/contract-builder',
345
+ refuseOtherTargetOnLoad: '@prisma/orm-family-sql/contract-ts/config-types',
346
+ rel: '@prisma/orm-family-sql/contract-ts/contract-builder',
347
+ RelationNode: '@prisma/orm-family-sql/contract-ts/contract-builder',
348
+ ScalarFieldBuilder: '@prisma/orm-family-sql/contract-ts/contract-builder',
349
+ ScalarMemberNode: '@prisma/orm-family-sql/contract-ts/contract-builder',
350
+ SharedForeignKeyView: '@prisma/orm-family-sql/contract-ts/contract-builder',
351
+ SharedTableMerge: '@prisma/orm-family-sql/contract-ts/contract-builder',
352
+ SharedTableRefusal: '@prisma/orm-family-sql/contract-ts/contract-builder',
353
+ sql: '@prisma/orm-family-sql/contract-ts/contract-builder',
354
+ SqlExpression: '@prisma/orm-family-sql/contract-ts/contract-builder',
355
+ SqlNamespaceFactory: '@prisma/orm-family-sql/contract-ts/contract-builder',
356
+ storedAsListColumn: '@prisma/orm-family-sql/contract-ts/contract-builder',
357
+ TableNode: '@prisma/orm-family-sql/contract-ts/contract-builder',
358
+ TableProperties: '@prisma/orm-family-sql/contract-ts/contract-builder',
359
+ TableSharer: '@prisma/orm-family-sql/contract-ts/contract-builder',
360
+ TargetFieldRef: '@prisma/orm-family-sql/contract-ts/contract-builder',
361
+ typescriptContract: '@prisma/orm-family-sql/contract-ts/config-types',
362
+ typescriptContractFromPath: '@prisma/orm-family-sql/contract-ts/config-types',
363
+ TypeScriptContractFromPathOptions: '@prisma/orm-family-sql/contract-ts/config-types',
364
+ TypeScriptContractSpecifierOptions: '@prisma/orm-family-sql/contract-ts/config-types',
365
+ unbound: '@prisma/orm-family-sql/contract-ts/contract-builder',
366
+ UniqueConstraintNode: '@prisma/orm-family-sql/contract-ts/contract-builder',
367
+ ValueObjectFieldNode: '@prisma/orm-family-sql/contract-ts/contract-builder',
368
+ ValueObjectMemberNode: '@prisma/orm-family-sql/contract-ts/contract-builder',
369
+ ValueObjectNode: '@prisma/orm-family-sql/contract-ts/contract-builder',
370
+ VariantTableSharer: '@prisma/orm-family-sql/contract-ts/contract-builder',
371
+ },
372
+ },
373
+ '@prisma/orm-family-sql/family': {
374
+ removed: true,
375
+ to: null,
376
+ names: {
377
+ acceptedByDataType: '@prisma/orm-family-sql/family/control',
378
+ appliedStatementsInOrder: '@prisma/orm-family-sql/family/control',
379
+ arraysEqual: '@prisma/orm-family-sql/family/diff',
380
+ assembleAuthoringContributions: '@prisma/orm-family-sql/family/control',
381
+ backfillOfDefaultedField: '@prisma/orm-family-sql/family/control',
382
+ buildChildRelationField: '@prisma/orm-family-sql/family/psl-infer',
383
+ CallSubjects: '@prisma/orm-family-sql/family/control',
384
+ CallWithCompanions: '@prisma/orm-family-sql/family/control',
385
+ checkDatabasePoliciesHeld: '@prisma/orm-family-sql/family/control',
386
+ checkSqlDefaultText: '@prisma/orm-family-sql/family/control',
387
+ checkSqlExpressionText: '@prisma/orm-family-sql/family/control',
388
+ classifyDiffSubjectGranularity: '@prisma/orm-family-sql/family/diff',
389
+ classifySqlDiffIssue: '@prisma/orm-family-sql/family/diff',
390
+ CodecControlHooks: '@prisma/orm-family-sql/family/control',
391
+ COLUMN_RENAME_UNMATCHED_CODE: '@prisma/orm-family-sql/family/control',
392
+ ColumnOnOneSide: '@prisma/orm-family-sql/family/control',
393
+ ColumnRename: '@prisma/orm-family-sql/family/control',
394
+ ColumnRenameRequest: '@prisma/orm-family-sql/family/control',
395
+ columnTakesTemporaryValue: '@prisma/orm-family-sql/family/control',
396
+ ColumnTypeOf: '@prisma/orm-family-sql/family/psl-build',
397
+ ColumnTypeReadsDefault: '@prisma/orm-family-sql/family/psl-build',
398
+ computeSqlDiffVerdict: '@prisma/orm-family-sql/family/diff',
399
+ computeStorageTypeVerdict: '@prisma/orm-family-sql/family/diff',
400
+ ContractColumn: '@prisma/orm-family-sql/family/control',
401
+ contractColumns: '@prisma/orm-family-sql/family/control',
402
+ ContractColumns: '@prisma/orm-family-sql/family/control',
403
+ ContractMarkerRow: '@prisma/orm-family-sql/family/verify',
404
+ ContractSignatureRow: '@prisma/orm-family-sql/family/verify',
405
+ contractNamespaceToSchemaIR: '@prisma/orm-family-sql/family/control',
406
+ contractToSchemaIR: '@prisma/orm-family-sql/family/control',
407
+ ContractToSchemaIROptions: '@prisma/orm-family-sql/family/control',
408
+ ControlPolicySubject: '@prisma/orm-family-sql/family/control',
409
+ ConvertedColumn: '@prisma/orm-family-sql/family/control',
410
+ convertedColumnMeta: '@prisma/orm-family-sql/family/control',
411
+ convertedColumnOf: '@prisma/orm-family-sql/family/control',
412
+ createMigrationPlan: '@prisma/orm-family-sql/family/control',
413
+ CreateSqlMigrationPlanOptions: '@prisma/orm-family-sql/family/control',
414
+ createSqlTextSources: '@prisma/orm-family-sql/family/control',
415
+ DefaultMappingOptions: '@prisma/orm-family-sql/family/psl-build',
416
+ DefaultMappingResult: '@prisma/orm-family-sql/family/psl-build',
417
+ DefaultResolver: '@prisma/orm-family-sql/family/control',
418
+ DefaultResolverColumn: '@prisma/orm-family-sql/family/control',
419
+ deriveBackRelationFieldName: '@prisma/orm-family-sql/family/psl-infer',
420
+ deriveRelationFieldName: '@prisma/orm-family-sql/family/psl-infer',
421
+ detectDestructiveChanges: '@prisma/orm-family-sql/family/control',
422
+ detectTableNameCaseChanges: '@prisma/orm-family-sql/family/control',
423
+ encodeStoredValue: '@prisma/orm-family-sql/family/control',
424
+ EnumInfo: '@prisma/orm-family-sql/family/psl-infer',
425
+ exactName: '@prisma/orm-family-sql/family/control',
426
+ ExecuteRequestLowerer: '@prisma/orm-family-sql/family/control-adapter',
427
+ extractCodecControlHooks: '@prisma/orm-family-sql/family/control',
428
+ fewestArgumentsCall: '@prisma/orm-family-sql/family/psl-build',
429
+ FieldEvent: '@prisma/orm-family-sql/family/control',
430
+ FieldEventCall: '@prisma/orm-family-sql/family/control',
431
+ FieldEventContext: '@prisma/orm-family-sql/family/control',
432
+ fieldEventStorage: '@prisma/orm-family-sql/family/control',
433
+ fieldOfColumn: '@prisma/orm-family-sql/family/control',
434
+ fieldRenameStorageEffect: '@prisma/orm-family-sql/family/control',
435
+ fieldStatementColumns: '@prisma/orm-family-sql/family/control',
436
+ FieldStatementColumns: '@prisma/orm-family-sql/family/control',
437
+ FieldStorageEffect: '@prisma/orm-family-sql/family/control',
438
+ fillKeyProblem: '@prisma/orm-family-sql/family/control',
439
+ FillValueCheck: '@prisma/orm-family-sql/family/control',
440
+ fillValueProblem: '@prisma/orm-family-sql/family/control',
441
+ FillValueTypes: '@prisma/orm-family-sql/family/control',
442
+ GeneratorCallRefusal: '@prisma/orm-family-sql/family/psl-build',
443
+ generatorCallsFor: '@prisma/orm-family-sql/family/psl-build',
444
+ GeneratorCallsResult: '@prisma/orm-family-sql/family/psl-build',
445
+ idGeneratorFunctionBindings: '@prisma/orm-family-sql/family/pack',
446
+ inferColumnTypes: '@prisma/orm-family-sql/family/psl-build',
447
+ InferredRelations: '@prisma/orm-family-sql/family/psl-infer',
448
+ InferredTypeConstructor: '@prisma/orm-family-sql/family/psl-build',
449
+ inferredTypeConstructors: '@prisma/orm-family-sql/family/psl-build',
450
+ InferredTypeConstructors: '@prisma/orm-family-sql/family/psl-build',
451
+ inferRelations: '@prisma/orm-family-sql/family/psl-infer',
452
+ INIT_ADDITIVE_POLICY: '@prisma/orm-family-sql/family/control',
453
+ IntrospectedTable: '@prisma/orm-family-sql/family/psl-build',
454
+ isUnfilledSlot: '@prisma/orm-family-sql/family/control',
455
+ JsonKeyPath: '@prisma/orm-family-sql/family/control',
456
+ JsonPath: '@prisma/orm-family-sql/family/control',
457
+ JsonPathStep: '@prisma/orm-family-sql/family/control',
458
+ jsonPathText: '@prisma/orm-family-sql/family/control',
459
+ keepRowsEdit: '@prisma/orm-family-sql/family/control',
460
+ keyPathOf: '@prisma/orm-family-sql/family/control',
461
+ Lowerer: '@prisma/orm-family-sql/family/control-adapter',
462
+ mapDefault: '@prisma/orm-family-sql/family/psl-build',
463
+ MarkedRemoval: '@prisma/orm-family-sql/family/control',
464
+ Migration: '@prisma/orm-family-sql/family/migration',
465
+ MigrationOperationClass: '@prisma/orm-family-sql/family/control',
466
+ MigrationOperationPolicy: '@prisma/orm-family-sql/family/control',
467
+ MigrationPlan: '@prisma/orm-family-sql/family/control',
468
+ MigrationPlanner: '@prisma/orm-family-sql/family/control',
469
+ MigrationPlannerConflict: '@prisma/orm-family-sql/family/control',
470
+ MigrationPlannerResult: '@prisma/orm-family-sql/family/control',
471
+ MigrationPlanOperation: '@prisma/orm-family-sql/family/control',
472
+ modelRenameStorageEffect: '@prisma/orm-family-sql/family/control',
473
+ ModelStorageEffect: '@prisma/orm-family-sql/family/control',
474
+ ModelTable: '@prisma/orm-family-sql/family/control',
475
+ NamespaceRename: '@prisma/orm-family-sql/family/control',
476
+ NamespaceStatementTarget: '@prisma/orm-family-sql/family/control',
477
+ NO_RENAMED_ORIGINS: '@prisma/orm-family-sql/family/control',
478
+ NoTable: '@prisma/orm-family-sql/family/control',
479
+ otherSpaceDeclaring: '@prisma/orm-family-sql/family/control',
480
+ parseContractMarkerRow: '@prisma/orm-family-sql/family/verify',
481
+ parseContractSignatureRow: '@prisma/orm-family-sql/family/verify',
482
+ parseJsonPath: '@prisma/orm-family-sql/family/control',
483
+ partitionCallsByControlPolicy: '@prisma/orm-family-sql/family/control',
484
+ partitionIssuesByControlPolicy: '@prisma/orm-family-sql/family/control',
485
+ PhaseCallText: '@prisma/orm-family-sql/family/psl-build',
486
+ planEnumValueRewrites: '@prisma/orm-family-sql/family/control',
487
+ planFieldEventCalls: '@prisma/orm-family-sql/family/control',
488
+ planFieldEventOperations: '@prisma/orm-family-sql/family/control',
489
+ PlanFieldEventOperationsOptions: '@prisma/orm-family-sql/family/control',
490
+ PlannedStatement: '@prisma/orm-family-sql/family/control',
491
+ PlannedStatements: '@prisma/orm-family-sql/family/control',
492
+ PlannedStoredRewrites: '@prisma/orm-family-sql/family/control',
493
+ plannerFailure: '@prisma/orm-family-sql/family/control',
494
+ plannerSuccess: '@prisma/orm-family-sql/family/control',
495
+ planStatements: '@prisma/orm-family-sql/family/control',
496
+ planStoredRewrites: '@prisma/orm-family-sql/family/control',
497
+ planValueObjectFieldFills: '@prisma/orm-family-sql/family/control',
498
+ planValueObjectFieldRewrites: '@prisma/orm-family-sql/family/control',
499
+ planVariantRowRewrites: '@prisma/orm-family-sql/family/control',
500
+ pluralize: '@prisma/orm-family-sql/family/psl-infer',
501
+ PslPrinterOptions: '@prisma/orm-family-sql/family/psl-infer',
502
+ PslTypeArgument: '@prisma/orm-family-sql/family/psl-build',
503
+ PslTypeCall: '@prisma/orm-family-sql/family/psl-build',
504
+ readColumnDefault: '@prisma/orm-family-sql/family/control',
505
+ ReadColumnDefault: '@prisma/orm-family-sql/family/control',
506
+ readReportedDefault: '@prisma/orm-family-sql/family/control',
507
+ ReadReportedDefault: '@prisma/orm-family-sql/family/control',
508
+ RelationField: '@prisma/orm-family-sql/family/psl-infer',
509
+ removalsOfMigration: '@prisma/orm-family-sql/family/control',
510
+ ReportedBody: '@prisma/orm-family-sql/family/control',
511
+ ReportedLiteralDefault: '@prisma/orm-family-sql/family/control',
512
+ RequiredColumn: '@prisma/orm-family-sql/family/control',
513
+ RequiredColumnMark: '@prisma/orm-family-sql/family/control',
514
+ requiredColumnMeta: '@prisma/orm-family-sql/family/control',
515
+ requiredColumnOf: '@prisma/orm-family-sql/family/control',
516
+ requiredColumnsOfMigration: '@prisma/orm-family-sql/family/control',
517
+ resolveColumnRenameAgainst: '@prisma/orm-family-sql/family/control',
518
+ ResolvedDomainModel: '@prisma/orm-family-sql/family/runtime',
519
+ resolveDomainModel: '@prisma/orm-family-sql/family/runtime',
520
+ ResolvedStorageTable: '@prisma/orm-family-sql/contract/resolve-storage-table',
521
+ ResolveIdentityValueInput: '@prisma/orm-family-sql/family/control',
522
+ resolveIntrospectedColumnType: '@prisma/orm-family-sql/family/control-adapter',
523
+ resolveStorageTable: '@prisma/orm-family-sql/contract/resolve-storage-table',
524
+ resolveTableRenameAgainst: '@prisma/orm-family-sql/family/control',
525
+ rowsHoldingValueFailure: '@prisma/orm-family-sql/family/control',
526
+ RowsHoldingValueMark: '@prisma/orm-family-sql/family/control',
527
+ rowsHoldingValueMeta: '@prisma/orm-family-sql/family/control',
528
+ rowsHoldingValueOf: '@prisma/orm-family-sql/family/control',
529
+ rowsWithoutValueFailure: '@prisma/orm-family-sql/family/control',
530
+ rowsWithoutValueSummary: '@prisma/orm-family-sql/family/control',
531
+ runnerFailure: '@prisma/orm-family-sql/family/control',
532
+ runnerSuccess: '@prisma/orm-family-sql/family/control',
533
+ sameInNormalForm: '@prisma/orm-family-sql/family/psl-build',
534
+ SameName: '@prisma/orm-family-sql/family/control',
535
+ scalarTypeNamesOf: '@prisma/orm-family-sql/family/control',
536
+ SchemaTables: '@prisma/orm-family-sql/family/control',
537
+ SingleOperationCall: '@prisma/orm-family-sql/family/control',
538
+ slotSource: '@prisma/orm-family-sql/family/control',
539
+ SqlContractSerializer: '@prisma/orm-family-sql/family/ir',
540
+ SqlContractSerializerBase: '@prisma/orm-family-sql/family/ir',
541
+ SqlControlAdapter: '@prisma/orm-family-sql/family/control-adapter',
542
+ SqlControlExtensionDescriptor: '@prisma/orm-family-sql/family/control',
543
+ SqlControlFamilyInstance: '@prisma/orm-family-sql/family/control',
544
+ SqlControlTargetDescriptor: '@prisma/orm-family-sql/family/control',
545
+ SqlDefaultFunctionName: '@prisma/orm-family-sql/family/control',
546
+ sqlDefaultFunctions: '@prisma/orm-family-sql/family/control',
547
+ SqlDescribedContractSpace: '@prisma/orm-family-sql/family/control',
548
+ SqlDiffVerdict: '@prisma/orm-family-sql/family/diff',
549
+ SqlDiffVerdictInput: '@prisma/orm-family-sql/family/diff',
550
+ SqlEntityHydrationFactory: '@prisma/orm-family-sql/family/ir',
551
+ sqlIntegerArgumentGeneratorFunctions: '@prisma/orm-family-sql/family/pack',
552
+ SqlMigrationPlan: '@prisma/orm-family-sql/family/control',
553
+ SqlMigrationPlanContractInfo: '@prisma/orm-family-sql/family/control',
554
+ SqlMigrationPlanner: '@prisma/orm-family-sql/family/control',
555
+ SqlMigrationPlannerPlanOptions: '@prisma/orm-family-sql/family/control',
556
+ SqlMigrationPlanOperation: '@prisma/orm-family-sql/family/control',
557
+ SqlMigrationPlanOperationStep: '@prisma/orm-family-sql/family/control',
558
+ SqlMigrationPlanOperationTarget: '@prisma/orm-family-sql/family/control',
559
+ SqlMigrationRunner: '@prisma/orm-family-sql/family/control',
560
+ SqlMigrationRunnerErrorCode: '@prisma/orm-family-sql/family/control',
561
+ SqlMigrationRunnerExecuteCallbacks: '@prisma/orm-family-sql/family/control',
562
+ SqlMigrationRunnerExecuteOptions: '@prisma/orm-family-sql/family/control',
563
+ SqlMigrationRunnerFailure: '@prisma/orm-family-sql/family/control',
564
+ SqlMigrationRunnerResult: '@prisma/orm-family-sql/family/control',
565
+ SqlMigrationRunnerSuccessValue: '@prisma/orm-family-sql/family/control',
566
+ sqlOfSlot: '@prisma/orm-family-sql/family/control',
567
+ SqlPlannerConflict: '@prisma/orm-family-sql/family/control',
568
+ SqlPlannerConflictKind: '@prisma/orm-family-sql/family/control',
569
+ SqlPlannerConflictLocation: '@prisma/orm-family-sql/family/control',
570
+ SqlPlannerFailureResult: '@prisma/orm-family-sql/family/control',
571
+ SqlPlannerResult: '@prisma/orm-family-sql/family/control',
572
+ SqlPlannerSuccessResult: '@prisma/orm-family-sql/family/control',
573
+ SqlPlanTargetDetails: '@prisma/orm-family-sql/family/control',
574
+ SqlPslBuildContext: '@prisma/orm-family-sql/family/control',
575
+ SqlQuote: '@prisma/orm-family-sql/family/control',
576
+ SqlQuotingRules: '@prisma/orm-family-sql/family/control',
577
+ SqlSchemaDiffFn: '@prisma/orm-family-sql/family/control',
578
+ SqlSchemaDiffInput: '@prisma/orm-family-sql/family/control',
579
+ SqlSchemaDiffResult: '@prisma/orm-family-sql/family/control',
580
+ SqlSchemaVerifierBase: '@prisma/orm-family-sql/family/ir',
581
+ SqlSlot: '@prisma/orm-family-sql/family/control',
582
+ sqlTargetTypeConstructors: '@prisma/orm-family-sql/family/pack',
583
+ SqlTextSources: '@prisma/orm-family-sql/family/control',
584
+ sqlTypeLookupsOf: '@prisma/orm-family-sql/family/control',
585
+ StatementColumn: '@prisma/orm-family-sql/family/control',
586
+ StatementOperations: '@prisma/orm-family-sql/family/control',
587
+ StatementOwnership: '@prisma/orm-family-sql/family/control',
588
+ StatementPlanningTarget: '@prisma/orm-family-sql/family/control',
589
+ storageNameOfOperation: '@prisma/orm-family-sql/family/control',
590
+ StorageRenames: '@prisma/orm-family-sql/family/control',
591
+ StorageTypePlanResult: '@prisma/orm-family-sql/family/control',
592
+ StorageTypeVerdict: '@prisma/orm-family-sql/family/diff',
593
+ StorageTypeVerdictInput: '@prisma/orm-family-sql/family/diff',
594
+ StoredEnumValue: '@prisma/orm-family-sql/family/control',
595
+ StoredKeyFill: '@prisma/orm-family-sql/family/control',
596
+ StoredKeyFillField: '@prisma/orm-family-sql/family/control',
597
+ StoredKeyRewrite: '@prisma/orm-family-sql/family/control',
598
+ StoredRewrite: '@prisma/orm-family-sql/family/control',
599
+ StoredRewriteCalls: '@prisma/orm-family-sql/family/control',
600
+ StoredValueCallClasses: '@prisma/orm-family-sql/family/control',
601
+ StoredValueCodec: '@prisma/orm-family-sql/family/control',
602
+ storedValueOperationIndexes: '@prisma/orm-family-sql/family/control',
603
+ StoredValueReplacement: '@prisma/orm-family-sql/family/control',
604
+ StoredValueRewrite: '@prisma/orm-family-sql/family/control',
605
+ StoredValueSubject: '@prisma/orm-family-sql/family/control',
606
+ storedValueSubjects: '@prisma/orm-family-sql/family/control',
607
+ subjectsOfCalls: '@prisma/orm-family-sql/family/control',
608
+ SubjectStorage: '@prisma/orm-family-sql/family/control',
609
+ SuppressionRecord: '@prisma/orm-family-sql/family/control',
610
+ TABLE_NAME_CASE_CHANGED_CODE: '@prisma/orm-family-sql/family/control',
611
+ TableMove: '@prisma/orm-family-sql/family/control',
612
+ TableNameCaseGuardTable: '@prisma/orm-family-sql/family/control',
613
+ TableRename: '@prisma/orm-family-sql/family/control',
614
+ TableRenameByHand: '@prisma/orm-family-sql/family/control',
615
+ TableRenameRequest: '@prisma/orm-family-sql/family/control',
616
+ TargetMigrationsCapability: '@prisma/orm-family-sql/family/control',
617
+ TargetRefusal: '@prisma/orm-family-sql/family/control',
618
+ timestampNowRuntimeGenerator: '@prisma/orm-family-sql/family/runtime',
619
+ toEnumMemberName: '@prisma/orm-family-sql/family/psl-build',
620
+ toEnumName: '@prisma/orm-family-sql/family/psl-infer',
621
+ toFieldName: '@prisma/orm-family-sql/family/psl-infer',
622
+ toModelName: '@prisma/orm-family-sql/family/psl-infer',
623
+ UNBOUND_DOMAIN_NAMESPACE_ID: '@prisma/orm-family-sql/family/runtime',
624
+ unconvertedFieldOf: '@prisma/orm-family-sql/family/control',
625
+ UnfilledValue: '@prisma/orm-family-sql/family/control',
626
+ unknownCallNames: '@prisma/orm-family-sql/family/control',
627
+ unmatchedColumnRename: '@prisma/orm-family-sql/family/control',
628
+ unmatchedTableRename: '@prisma/orm-family-sql/family/control',
629
+ UnnamedFieldFill: '@prisma/orm-family-sql/family/control',
630
+ unnamedFieldFillOf: '@prisma/orm-family-sql/family/control',
631
+ VariantRowRewrite: '@prisma/orm-family-sql/family/control',
632
+ verifySqlSchemaByDiff: '@prisma/orm-family-sql/family/diff',
633
+ VerifySqlSchemaByDiffInput: '@prisma/orm-family-sql/family/diff',
634
+ WorkingSchemaOrigins: '@prisma/orm-family-sql/family/control',
635
+ WrittenPslTypeCall: '@prisma/orm-family-sql/family/psl-build',
636
+ writtenTypeChoiceCall: '@prisma/orm-family-sql/family/psl-build',
637
+ WrittenTypeChoiceCall: '@prisma/orm-family-sql/family/psl-build',
638
+ },
639
+ },
640
+ '@prisma/orm-family-sql/relational-core/functions': {
641
+ removed: true,
642
+ to: null,
643
+ names: {
644
+ BooleanCodecType: '@prisma/orm-family-sql/builder/types',
645
+ BuiltinFunctions: null,
646
+ createFunctions: '@prisma/orm-family-sql/builder/runtime',
647
+ Functions: '@prisma/orm-family-sql/builder/types',
648
+ FunctionsContext: null,
649
+ Subquery: '@prisma/orm-family-sql/builder/types',
650
+ SubqueryMarker: null,
651
+ },
652
+ },
653
+ '@prisma/orm-family-sql/relational-core/middleware': {
654
+ removed: true,
655
+ to: '@prisma/orm-family-sql/relational-core',
656
+ },
657
+ '@prisma/orm-family-sql/schema-ir': {
658
+ removed: true,
659
+ to: '@prisma/orm-family-sql/schema-ir/types',
660
+ },
661
+ '@prisma/orm-target-postgres/adapter': {
662
+ removed: true,
663
+ to: null,
664
+ names: {
665
+ BinaryExpr: '@prisma/orm-family-sql/relational-core/ast',
666
+ bitColumn: '@prisma/orm-target-postgres/adapter/column-types',
667
+ boolColumn: '@prisma/orm-target-postgres/adapter/column-types',
668
+ byteaColumn: '@prisma/orm-target-postgres/adapter/column-types',
669
+ charColumn: '@prisma/orm-target-postgres/adapter/column-types',
670
+ ColumnRef: '@prisma/orm-family-sql/relational-core/ast',
671
+ createPostgresAdapter: '@prisma/orm-target-postgres/adapter/adapter',
672
+ createPostgresBuiltinCodecLookup: '@prisma/orm-target-postgres/adapter/control',
673
+ createPostgresCodecRegistryWithBuiltins: '@prisma/orm-target-postgres/adapter/control',
674
+ dateStringColumn: '@prisma/orm-target-postgres/adapter/column-types',
675
+ dateTemporalColumn: '@prisma/orm-target-postgres/adapter/column-types',
676
+ Direction: '@prisma/orm-family-sql/relational-core/ast',
677
+ escapeLiteral: '@prisma/orm-target-postgres/target/sql-utils',
678
+ Expr: null,
679
+ float4Column: '@prisma/orm-target-postgres/adapter/column-types',
680
+ float8Column: '@prisma/orm-target-postgres/adapter/column-types',
681
+ int2Column: '@prisma/orm-target-postgres/adapter/column-types',
682
+ int4Column: '@prisma/orm-target-postgres/adapter/column-types',
683
+ int8BigIntColumn: '@prisma/orm-target-postgres/adapter/column-types',
684
+ intervalPartsColumn: '@prisma/orm-target-postgres/adapter/column-types',
685
+ intervalStringColumn: '@prisma/orm-target-postgres/adapter/column-types',
686
+ jsonbColumn: '@prisma/orm-target-postgres/adapter/column-types',
687
+ numericStringColumn: '@prisma/orm-target-postgres/adapter/column-types',
688
+ OrderClause: null,
689
+ ParamRef: '@prisma/orm-family-sql/relational-core/ast',
690
+ plainJsonColumn: '@prisma/orm-target-postgres/adapter/column-types',
691
+ postgresAdapterCapabilities: '@prisma/orm-target-postgres/adapter/adapter',
692
+ postgresAdapterContractContributions: '@prisma/orm-target-postgres/adapter/adapter',
693
+ PostgresAdapterOptions: null,
694
+ PostgresCodecRegistry: '@prisma/orm-target-postgres/target/codecs',
695
+ PostgresContract: '@prisma/orm-target-postgres/target/types',
696
+ PostgresControlAdapter: '@prisma/orm-target-postgres/adapter/control',
697
+ PostgresLoweredStatement: null,
698
+ postgresRawCodecInferer: '@prisma/orm-target-postgres/adapter/adapter',
699
+ qualifyName: '@prisma/orm-target-postgres/target/sql-utils',
700
+ quoteIdentifier: '@prisma/orm-target-postgres/target/sql-utils',
701
+ rawColumn: '@prisma/orm-target-postgres/adapter/column-types',
702
+ renderLoweredSql: null,
703
+ SelectAst: '@prisma/orm-family-sql/relational-core/ast',
704
+ SqlRuntimeAdapter: '@prisma/orm-target-postgres/adapter/runtime',
705
+ StorageColumn: '@prisma/orm-family-sql/contract/types',
706
+ StorageTable: '@prisma/orm-family-sql/contract/types',
707
+ textColumn: '@prisma/orm-target-postgres/adapter/column-types',
708
+ timestampInstantColumn: '@prisma/orm-target-postgres/adapter/column-types',
709
+ timestampJsDateColumn: '@prisma/orm-target-postgres/adapter/column-types',
710
+ timestampStringColumn: '@prisma/orm-target-postgres/adapter/column-types',
711
+ timestampTemporalColumn: '@prisma/orm-target-postgres/adapter/column-types',
712
+ timestamptzJsDateColumn: '@prisma/orm-target-postgres/adapter/column-types',
713
+ timestamptzStringColumn: '@prisma/orm-target-postgres/adapter/column-types',
714
+ timestamptzTemporalColumn: '@prisma/orm-target-postgres/adapter/column-types',
715
+ timeStringColumn: '@prisma/orm-target-postgres/adapter/column-types',
716
+ timeTemporalColumn: '@prisma/orm-target-postgres/adapter/column-types',
717
+ timetzColumn: '@prisma/orm-target-postgres/adapter/column-types',
718
+ varbitColumn: '@prisma/orm-target-postgres/adapter/column-types',
719
+ varcharColumn: '@prisma/orm-target-postgres/adapter/column-types',
720
+ },
721
+ },
722
+ '@prisma/orm-target-postgres/adapter/sql-renderer': { removed: true, to: null },
723
+ '@prisma/orm-target-postgres/adapter/types': {
724
+ removed: true,
725
+ to: null,
726
+ names: {
727
+ BinaryExpr: '@prisma/orm-family-sql/relational-core/ast',
728
+ ColumnRef: '@prisma/orm-family-sql/relational-core/ast',
729
+ Direction: '@prisma/orm-family-sql/relational-core/ast',
730
+ Expr: null,
731
+ OrderClause: null,
732
+ ParamRef: '@prisma/orm-family-sql/relational-core/ast',
733
+ PostgresAdapterOptions: null,
734
+ PostgresCodecRegistry: '@prisma/orm-target-postgres/target/codecs',
735
+ PostgresContract: '@prisma/orm-target-postgres/target/types',
736
+ PostgresLoweredStatement: null,
737
+ SelectAst: '@prisma/orm-family-sql/relational-core/ast',
738
+ StorageColumn: '@prisma/orm-family-sql/contract/types',
739
+ StorageTable: '@prisma/orm-family-sql/contract/types',
740
+ },
741
+ },
742
+ '@prisma/orm-target-postgres/target': {
743
+ removed: true,
744
+ to: null,
745
+ names: {
746
+ AdaptedPostgresCodecDescriptor: '@prisma/orm-target-postgres/target/codec-descriptor',
747
+ AddCheckConstraintCall: null,
748
+ addColumnAction: null,
749
+ AddColumnAction: null,
750
+ AddColumnCall: null,
751
+ AddColumnWithTemporaryDefaultCall: null,
752
+ addConstraintAction: null,
753
+ AddConstraintAction: null,
754
+ AddForeignKeyCall: null,
755
+ AddNativeEnumValueCall: null,
756
+ AddPrimaryKeyCall: null,
757
+ AddRequiredColumnToEmptyTableCall: null,
758
+ AddUniqueCall: null,
759
+ alterColumnTypeAction: null,
760
+ AlterColumnTypeAction: null,
761
+ AlterColumnTypeCall: null,
762
+ alterTable: null,
763
+ AlterTableActionVisitor: null,
764
+ alterTypeCheck: null,
765
+ AnyAlterTableAction: null,
766
+ AnyPostgresCodecDescriptor: '@prisma/orm-target-postgres/target/codec-descriptor',
767
+ AnyPostgresDdlNode: null,
768
+ assemblePostgresCodecRegistry: '@prisma/orm-target-postgres/target/codecs',
769
+ assemblePostgresCodecRegistryWithBuiltins: '@prisma/orm-target-postgres/target/codecs',
770
+ Bit: '@prisma/orm-target-postgres/target/codec-types',
771
+ buildBuiltinIdentityValue: null,
772
+ buildColumnTypeSql: null,
773
+ buildPostgresCodecDescriptorRegistry: '@prisma/orm-target-postgres/target/codec-descriptor',
774
+ buildPostgresPlanDiff: null,
775
+ buildSchemaLookupMap: null,
776
+ CatalogColumnType: null,
777
+ Char: '@prisma/orm-target-postgres/target/codec-types',
778
+ checkExpression: '@prisma/orm-target-postgres/target/migration',
779
+ coalesceSubtreeIssues: null,
780
+ CodecTypes: '@prisma/orm-target-postgres/target/codec-types',
781
+ col: '@prisma/orm-target-postgres/target/migration',
782
+ columnDefaultAst: null,
783
+ ColumnDefaultCheckBuilder: null,
784
+ columnDefaultSequenceAst: null,
785
+ columnExistsAst: null,
786
+ ColumnExistsCheckBuilder: null,
787
+ columnNullabilityAst: null,
788
+ columnTypeAst: null,
789
+ ColumnTypeCheck: null,
790
+ computeContentHash: '@prisma/orm-target-postgres/target/rls-canonicalize',
791
+ constraintExistsAst: null,
792
+ ConstraintExistsCheckBuilder: null,
793
+ ContentHashParts: '@prisma/orm-target-postgres/target/rls-canonicalize',
794
+ contractToPostgresDatabaseSchemaNode: null,
795
+ CONTROL_PLANE_LC_MONETARY: '@prisma/orm-target-postgres/target/sql-utils',
796
+ CreateExtensionCall: null,
797
+ CreateIndexCall: null,
798
+ CreateIndexElements: null,
799
+ CreateNativeEnumTypeCall: null,
800
+ createPostgresBuiltinCodecLookup: '@prisma/orm-target-postgres/adapter/control',
801
+ createPostgresBuiltinDataTypeLookup: '@prisma/orm-target-postgres/target/data-types',
802
+ createPostgresCodecRegistryWithBuiltins: '@prisma/orm-target-postgres/adapter/control',
803
+ createPostgresMigrationPlanner: null,
804
+ CreatePostgresRlsPolicyCall: null,
805
+ createSchema: null,
806
+ CreateSchemaCall: null,
807
+ createTable: null,
808
+ CreateTableCall: null,
809
+ dataTransform: null,
810
+ DataTransformCall: null,
811
+ DataTransformClosure: '@prisma/orm-target-postgres/target/migration',
812
+ DataTransformOptions: '@prisma/orm-target-postgres/target/migration',
813
+ DdlIndexElements: null,
814
+ decodePostgresListText: '@prisma/orm-target-postgres/target/control',
815
+ DEFAULT_FULL_TEXT_SEARCH_LANGUAGE: '@prisma/orm-target-postgres/target/sql-utils',
816
+ definePostgresCodecs: '@prisma/orm-target-postgres/target/codec-descriptor',
817
+ DeleteRowsCall: null,
818
+ describeFullTextIndexProblem: '@prisma/orm-target-postgres/target/full-text-index-authoring',
819
+ DisableRowLevelSecurityCall: null,
820
+ DropCheckConstraintCall: null,
821
+ DropColumnCall: null,
822
+ DropConstraintCall: null,
823
+ dropDefaultAction: null,
824
+ DropDefaultAction: null,
825
+ DropDefaultCall: null,
826
+ DropExtensionCall: null,
827
+ DropIndexCall: null,
828
+ DropNativeEnumTypeCall: null,
829
+ DropNotNullCall: null,
830
+ DropPostgresRlsPolicyCall: null,
831
+ DropSchemaCall: null,
832
+ DropTableCall: null,
833
+ EnableRowLevelSecurityCall: null,
834
+ errorPostgresMigrationStackMissing: null,
835
+ escapeLiteral: '@prisma/orm-target-postgres/target/sql-utils',
836
+ extensionExistsAst: null,
837
+ ExtensionExistsCheckBuilder: null,
838
+ extensionInSchemaAst: null,
839
+ FillStoredKeyCall: null,
840
+ fn: '@prisma/orm-target-postgres/target/migration',
841
+ foreignKey: '@prisma/orm-target-postgres/target/migration',
842
+ FULL_TEXT_INDEX_TYPE: '@prisma/orm-target-postgres/target/full-text-index-authoring',
843
+ FullTextColumnCodecs: '@prisma/orm-target-postgres/target/full-text-index-authoring',
844
+ fullTextDocument: '@prisma/orm-target-postgres/target/full-text',
845
+ FullTextDocument: '@prisma/orm-target-postgres/target/full-text',
846
+ FullTextDocumentColumn: '@prisma/orm-target-postgres/target/full-text',
847
+ FullTextDocumentGroups: '@prisma/orm-target-postgres/target/full-text',
848
+ FullTextFieldsInput: '@prisma/orm-target-postgres/target/full-text-index-authoring',
849
+ FullTextHeadlineOptions: '@prisma/orm-target-postgres/target/operation-types',
850
+ FullTextIndexCandidate: '@prisma/orm-target-postgres/target/full-text-index-authoring',
851
+ FullTextIndexDefinition: '@prisma/orm-target-postgres/target/full-text-index-authoring',
852
+ FullTextIndexProblem: '@prisma/orm-target-postgres/target/full-text-index-authoring',
853
+ fullTextIndexProblems: '@prisma/orm-target-postgres/target/full-text-index-authoring',
854
+ FullTextIndexReference: '@prisma/orm-target-postgres/target/operation-types',
855
+ FullTextMatchesOptions: '@prisma/orm-target-postgres/target/operation-types',
856
+ FullTextRankOptions: '@prisma/orm-target-postgres/target/operation-types',
857
+ FullTextSearchLanguage: '@prisma/orm-target-postgres/target/operation-types',
858
+ hasForeignKey: null,
859
+ hasIndex: null,
860
+ hasUniqueConstraint: null,
861
+ indexExistsAst: null,
862
+ IndexExistsCheckBuilder: null,
863
+ inlineLiteral: '@prisma/orm-target-postgres/target/sql-utils',
864
+ int4: null,
865
+ int8: null,
866
+ introspectedTypeText: null,
867
+ IntrospectedTypeText: null,
868
+ isPgEnumParams: '@prisma/orm-target-postgres/target/codecs',
869
+ isPgOid: '@prisma/orm-target-postgres/target/data-types',
870
+ isPostgresCodecDescriptor: '@prisma/orm-target-postgres/target/codec-descriptor',
871
+ isPostgresSchema: '@prisma/orm-target-postgres/target/types',
872
+ jsonb: null,
873
+ JsonValue: '@prisma/orm-target-postgres/target/codec-types',
874
+ lit: '@prisma/orm-target-postgres/target/migration',
875
+ MARKER_LOCK_KEY: null,
876
+ MARKER_LOCK_SQL: null,
877
+ Migration: '@prisma/orm-target-postgres/target/migration',
878
+ MIGRATION_MODULE: null,
879
+ MigrationCLI: '@prisma/orm-target-postgres/target/migration',
880
+ moneyTextOfCents: '@prisma/orm-target-postgres/target/data-types',
881
+ noNullValuesAst: null,
882
+ Numeric: '@prisma/orm-target-postgres/target/codec-types',
883
+ ParameterizedOutputTypesForTypeParams: '@prisma/orm-target-postgres/target/codec-types',
884
+ parsePostgresListText: '@prisma/orm-target-postgres/target/control',
885
+ PG_BIT_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
886
+ PG_BOOL_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
887
+ PG_BYTEA_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
888
+ PG_CHAR_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
889
+ PG_DATE_STRING_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
890
+ PG_DATE_TEMPORAL_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
891
+ PG_ENUM_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
892
+ PG_FLOAT_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
893
+ PG_FLOAT4_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
894
+ PG_FLOAT8_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
895
+ PG_INET_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
896
+ PG_INT_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
897
+ PG_INT2_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
898
+ PG_INT4_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
899
+ PG_INT8_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
900
+ PG_INT8_NUMBER_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
901
+ PG_INTERVAL_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
902
+ PG_INTERVAL_STRING_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
903
+ PG_JSON_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
904
+ PG_JSONB_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
905
+ PG_MONEY_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
906
+ PG_NUMERIC_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
907
+ PG_OID_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
908
+ PG_TEXT_ARRAY_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
909
+ PG_TEXT_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
910
+ PG_TIME_STRING_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
911
+ PG_TIME_TEMPORAL_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
912
+ PG_TIMESTAMP_DATE_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
913
+ PG_TIMESTAMP_INSTANT_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
914
+ PG_TIMESTAMP_STRING_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
915
+ PG_TIMESTAMP_TEMPORAL_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
916
+ PG_TIMESTAMPTZ_DATE_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
917
+ PG_TIMESTAMPTZ_STRING_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
918
+ PG_TIMESTAMPTZ_TEMPORAL_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
919
+ PG_TIMETZ_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
920
+ PG_TSQUERY_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
921
+ PG_UNBOUNDED_INT_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
922
+ PG_UUID_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
923
+ PG_VARBIT_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
924
+ PG_VARCHAR_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
925
+ PG_XML_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
926
+ pgBit: '@prisma/orm-target-postgres/target/data-types',
927
+ pgBitColumn: '@prisma/orm-target-postgres/target/codecs',
928
+ PgBitDescriptor: '@prisma/orm-target-postgres/target/codecs',
929
+ pgBitLengthParams: '@prisma/orm-target-postgres/target/data-types',
930
+ pgBool: '@prisma/orm-target-postgres/target/data-types',
931
+ pgBoolColumn: '@prisma/orm-target-postgres/target/codecs',
932
+ PgBoolDescriptor: '@prisma/orm-target-postgres/target/codecs',
933
+ pgBytea: '@prisma/orm-target-postgres/target/data-types',
934
+ pgChar: '@prisma/orm-target-postgres/target/data-types',
935
+ pgCharacterLengthParams: '@prisma/orm-target-postgres/target/data-types',
936
+ pgCharColumn: '@prisma/orm-target-postgres/target/codecs',
937
+ PgCharDescriptor: '@prisma/orm-target-postgres/target/codecs',
938
+ pgDate: '@prisma/orm-target-postgres/target/data-types',
939
+ pgDateStoredText: '@prisma/orm-target-postgres/target/data-types',
940
+ pgEnum: '@prisma/orm-target-postgres/target/data-types',
941
+ PgEnumCodec: '@prisma/orm-target-postgres/target/codecs',
942
+ pgEnumDescriptor: '@prisma/orm-target-postgres/target/codecs',
943
+ PgEnumDescriptor: '@prisma/orm-target-postgres/target/codecs',
944
+ pgEnumParams: '@prisma/orm-target-postgres/target/data-types',
945
+ PgEnumParams: '@prisma/orm-target-postgres/target/codecs',
946
+ pgFloat4: '@prisma/orm-target-postgres/target/data-types',
947
+ pgFloat4Column: '@prisma/orm-target-postgres/target/codecs',
948
+ PgFloat4Descriptor: '@prisma/orm-target-postgres/target/codecs',
949
+ pgFloat8: '@prisma/orm-target-postgres/target/data-types',
950
+ pgFloat8Column: '@prisma/orm-target-postgres/target/codecs',
951
+ PgFloat8Descriptor: '@prisma/orm-target-postgres/target/codecs',
952
+ pgFloatColumn: '@prisma/orm-target-postgres/target/codecs',
953
+ PgFloatDescriptor: '@prisma/orm-target-postgres/target/codecs',
954
+ pgInet: '@prisma/orm-target-postgres/target/data-types',
955
+ pgInetColumn: '@prisma/orm-target-postgres/target/codecs',
956
+ PgInetDescriptor: '@prisma/orm-target-postgres/target/codecs',
957
+ pgInt2: '@prisma/orm-target-postgres/target/data-types',
958
+ pgInt2Column: '@prisma/orm-target-postgres/target/codecs',
959
+ PgInt2Descriptor: '@prisma/orm-target-postgres/target/codecs',
960
+ pgInt4: '@prisma/orm-target-postgres/target/data-types',
961
+ pgInt4Column: '@prisma/orm-target-postgres/target/codecs',
962
+ PgInt4Descriptor: '@prisma/orm-target-postgres/target/codecs',
963
+ pgInt8: '@prisma/orm-target-postgres/target/data-types',
964
+ pgInt8Column: '@prisma/orm-target-postgres/target/codecs',
965
+ PgInt8Descriptor: '@prisma/orm-target-postgres/target/codecs',
966
+ pgInt8NumberColumn: '@prisma/orm-target-postgres/target/codecs',
967
+ PgInt8NumberDescriptor: '@prisma/orm-target-postgres/target/codecs',
968
+ pgIntColumn: '@prisma/orm-target-postgres/target/codecs',
969
+ PgIntDescriptor: '@prisma/orm-target-postgres/target/codecs',
970
+ pgInterval: '@prisma/orm-target-postgres/target/data-types',
971
+ PgInterval: '@prisma/orm-target-postgres/target/codec-types',
972
+ pgIntervalColumn: '@prisma/orm-target-postgres/target/codecs',
973
+ PgIntervalDescriptor: '@prisma/orm-target-postgres/target/codecs',
974
+ PgIntervalStringCodec: '@prisma/orm-target-postgres/target/codecs',
975
+ pgIntervalStringColumn: '@prisma/orm-target-postgres/target/codecs',
976
+ pgIntervalStringDescriptor: '@prisma/orm-target-postgres/target/codecs',
977
+ PgIntervalStringDescriptor: '@prisma/orm-target-postgres/target/codecs',
978
+ pgJson: '@prisma/orm-target-postgres/target/data-types',
979
+ pgJsonb: '@prisma/orm-target-postgres/target/data-types',
980
+ pgJsonbColumn: '@prisma/orm-target-postgres/target/codecs',
981
+ PgJsonbDescriptor: '@prisma/orm-target-postgres/target/codecs',
982
+ pgJsonbEnumRefusal: '@prisma/orm-target-postgres/target/data-types',
983
+ pgJsonColumn: '@prisma/orm-target-postgres/target/codecs',
984
+ PgJsonDescriptor: '@prisma/orm-target-postgres/target/codecs',
985
+ pgMoney: '@prisma/orm-target-postgres/target/data-types',
986
+ pgMoneyColumn: '@prisma/orm-target-postgres/target/codecs',
987
+ PgMoneyDescriptor: '@prisma/orm-target-postgres/target/codecs',
988
+ pgMoneyStoredText: '@prisma/orm-target-postgres/target/data-types',
989
+ pgNumeric: '@prisma/orm-target-postgres/target/data-types',
990
+ pgNumericColumn: '@prisma/orm-target-postgres/target/codecs',
991
+ PgNumericDescriptor: '@prisma/orm-target-postgres/target/codecs',
992
+ pgNumericParams: '@prisma/orm-target-postgres/target/data-types',
993
+ pgOid: '@prisma/orm-target-postgres/target/data-types',
994
+ pgOidColumn: '@prisma/orm-target-postgres/target/codecs',
995
+ PgOidDescriptor: '@prisma/orm-target-postgres/target/codecs',
996
+ pgPrecisionParams: '@prisma/orm-target-postgres/target/data-types',
997
+ pgTable: null,
998
+ pgText: '@prisma/orm-target-postgres/target/data-types',
999
+ pgTextArray: '@prisma/orm-target-postgres/target/data-types',
1000
+ pgTextColumn: '@prisma/orm-target-postgres/target/codecs',
1001
+ PgTextDescriptor: '@prisma/orm-target-postgres/target/codecs',
1002
+ pgTime: '@prisma/orm-target-postgres/target/data-types',
1003
+ pgTimestamp: '@prisma/orm-target-postgres/target/data-types',
1004
+ PgTimestampDateCodec: '@prisma/orm-target-postgres/target/codecs',
1005
+ pgTimestampDateColumn: '@prisma/orm-target-postgres/target/codecs',
1006
+ pgTimestampDateDescriptor: '@prisma/orm-target-postgres/target/codecs',
1007
+ PgTimestampDateDescriptor: '@prisma/orm-target-postgres/target/codecs',
1008
+ pgTimestampStoredText: '@prisma/orm-target-postgres/target/data-types',
1009
+ pgTimestamptz: '@prisma/orm-target-postgres/target/data-types',
1010
+ PgTimestamptzDateCodec: '@prisma/orm-target-postgres/target/codecs',
1011
+ pgTimestamptzDateColumn: '@prisma/orm-target-postgres/target/codecs',
1012
+ pgTimestamptzDateDescriptor: '@prisma/orm-target-postgres/target/codecs',
1013
+ PgTimestamptzDateDescriptor: '@prisma/orm-target-postgres/target/codecs',
1014
+ pgTimestamptzStoredText: '@prisma/orm-target-postgres/target/data-types',
1015
+ pgTimeStoredText: '@prisma/orm-target-postgres/target/data-types',
1016
+ pgTimetz: '@prisma/orm-target-postgres/target/data-types',
1017
+ pgTimetzColumn: '@prisma/orm-target-postgres/target/codecs',
1018
+ PgTimetzDescriptor: '@prisma/orm-target-postgres/target/codecs',
1019
+ pgTimetzStoredText: '@prisma/orm-target-postgres/target/data-types',
1020
+ pgTsquery: '@prisma/orm-target-postgres/target/data-types',
1021
+ pgUnboundedIntColumn: '@prisma/orm-target-postgres/target/codecs',
1022
+ PgUnboundedIntDescriptor: '@prisma/orm-target-postgres/target/codecs',
1023
+ pgUuid: '@prisma/orm-target-postgres/target/data-types',
1024
+ pgUuidColumn: '@prisma/orm-target-postgres/target/codecs',
1025
+ PgUuidDescriptor: '@prisma/orm-target-postgres/target/codecs',
1026
+ pgVarbit: '@prisma/orm-target-postgres/target/data-types',
1027
+ pgVarbitColumn: '@prisma/orm-target-postgres/target/codecs',
1028
+ PgVarbitDescriptor: '@prisma/orm-target-postgres/target/codecs',
1029
+ pgVarchar: '@prisma/orm-target-postgres/target/data-types',
1030
+ pgVarcharColumn: '@prisma/orm-target-postgres/target/codecs',
1031
+ PgVarcharDescriptor: '@prisma/orm-target-postgres/target/codecs',
1032
+ pgXml: '@prisma/orm-target-postgres/target/data-types',
1033
+ pgXmlColumn: '@prisma/orm-target-postgres/target/codecs',
1034
+ PgXmlDescriptor: '@prisma/orm-target-postgres/target/codecs',
1035
+ phrasetoTsquery: '@prisma/orm-target-postgres/target/full-text',
1036
+ placeholder: '@prisma/orm-target-postgres/target/migration',
1037
+ plaintoTsquery: '@prisma/orm-target-postgres/target/full-text',
1038
+ planIssues: null,
1039
+ POLICY_COMMAND_SQL: '@prisma/orm-target-postgres/target/rls-canonicalize',
1040
+ POLICY_OPERATION_PREDICATES: '@prisma/orm-target-postgres/target/rls-canonicalize',
1041
+ policyInputFromSerialized: '@prisma/orm-target-postgres/target/types',
1042
+ policyRoleList: '@prisma/orm-target-postgres/target/rls-canonicalize',
1043
+ POSTGRES_MIN_SERVER_VERSION: '@prisma/orm-target-postgres/target/server-version-range',
1044
+ postgresAggregateDescriptors: null,
1045
+ PostgresAlterIndexRename: null,
1046
+ PostgresAlterPolicyRename: null,
1047
+ PostgresAlterSchemaRename: null,
1048
+ PostgresAlterTable: null,
1049
+ PostgresAlterTableSetSchema: null,
1050
+ postgresCodec: '@prisma/orm-target-postgres/target/codec-descriptor',
1051
+ PostgresCodecDescriptor: '@prisma/orm-target-postgres/target/codec-descriptor',
1052
+ postgresCodecDescriptorRegistry: '@prisma/orm-target-postgres/target/codecs',
1053
+ PostgresCodecDescriptorRegistry: '@prisma/orm-target-postgres/target/codec-descriptor',
1054
+ PostgresCodecOptions: '@prisma/orm-target-postgres/target/codec-descriptor',
1055
+ postgresCodecRegistry: '@prisma/orm-target-postgres/target/codecs',
1056
+ PostgresCodecRegistry: '@prisma/orm-target-postgres/target/codecs',
1057
+ postgresCodecTraitsOf: '@prisma/orm-target-postgres/target/full-text-index-authoring',
1058
+ PostgresColumnDefault: '@prisma/orm-target-postgres/target/types',
1059
+ PostgresContract: '@prisma/orm-target-postgres/target/types',
1060
+ PostgresContractSerializer: '@prisma/orm-target-postgres/target/runtime',
1061
+ PostgresContractView: '@prisma/orm-target-postgres/target/runtime',
1062
+ PostgresCreateIndex: null,
1063
+ postgresCreateNamespace: '@prisma/orm-target-postgres/target/types',
1064
+ PostgresCreatePolicy: null,
1065
+ PostgresCreateSchema: null,
1066
+ PostgresCreateTable: null,
1067
+ PostgresCreateType: null,
1068
+ PostgresDatabaseSchemaNode: '@prisma/orm-target-postgres/target/types',
1069
+ PostgresDatabaseSchemaNodeInput: '@prisma/orm-target-postgres/target/types',
1070
+ postgresDataTypeEntries: '@prisma/orm-target-postgres/target/data-types',
1071
+ postgresDataTypes: '@prisma/orm-target-postgres/target/data-types',
1072
+ PostgresDdlNode: null,
1073
+ PostgresDdlVisitor: null,
1074
+ PostgresDisableRowLevelSecurity: null,
1075
+ PostgresDropIndex: null,
1076
+ PostgresDropPolicy: null,
1077
+ PostgresDropSchema: null,
1078
+ PostgresDropType: null,
1079
+ postgresError: null,
1080
+ postgresExplicitTypes: '@prisma/orm-target-postgres/target/control',
1081
+ PostgresExtension: '@prisma/orm-target-postgres/target/types',
1082
+ PostgresExtensionInput: '@prisma/orm-target-postgres/target/types',
1083
+ PostgresExtensionSchemaNode: '@prisma/orm-target-postgres/target/types',
1084
+ PostgresExtensionSchemaNodeInput: '@prisma/orm-target-postgres/target/types',
1085
+ PostgresFullTextMethods: '@prisma/orm-target-postgres/target/full-text',
1086
+ PostgresIsolationLevel: '@prisma/orm-target-postgres/target/runtime',
1087
+ postgresIsolationLevels: '@prisma/orm-target-postgres/target/runtime',
1088
+ postgresIsolationLevelSchema: '@prisma/orm-target-postgres/target/runtime',
1089
+ PostgresListDecoder: '@prisma/orm-target-postgres/target/runtime',
1090
+ PostgresNamespaceSchemaNode: '@prisma/orm-target-postgres/target/types',
1091
+ PostgresNamespaceSchemaNodeInput: '@prisma/orm-target-postgres/target/types',
1092
+ PostgresNativeEnum: '@prisma/orm-target-postgres/target/types',
1093
+ PostgresNativeEnumInput: '@prisma/orm-target-postgres/target/types',
1094
+ PostgresNativeEnumSchemaNode: '@prisma/orm-target-postgres/target/types',
1095
+ PostgresNativeEnumSchemaNodeInput: '@prisma/orm-target-postgres/target/types',
1096
+ postgresNowGeneratorControlDescriptors: '@prisma/orm-target-postgres/target/control',
1097
+ postgresNowGenerators: '@prisma/orm-target-postgres/target/runtime',
1098
+ PostgresPlanTargetDetails: '@prisma/orm-target-postgres/target/planner-target-details',
1099
+ PostgresPolicySchemaNode: '@prisma/orm-target-postgres/target/types',
1100
+ PostgresPolicySchemaNodeInput: '@prisma/orm-target-postgres/target/types',
1101
+ postgresRenderCheckExpressions: '@prisma/orm-target-postgres/target/types',
1102
+ PostgresReportedDefault: null,
1103
+ postgresResolveDefault: null,
1104
+ PostgresRlsEnablement: '@prisma/orm-target-postgres/target/types',
1105
+ PostgresRlsEnablementInput: '@prisma/orm-target-postgres/target/types',
1106
+ PostgresRlsPolicy: '@prisma/orm-target-postgres/target/types',
1107
+ PostgresRlsPolicyInput: '@prisma/orm-target-postgres/target/types',
1108
+ PostgresRole: '@prisma/orm-target-postgres/target/types',
1109
+ PostgresRoleInput: '@prisma/orm-target-postgres/target/types',
1110
+ PostgresRoleSchemaNode: '@prisma/orm-target-postgres/target/types',
1111
+ PostgresRoleSchemaNodeInput: '@prisma/orm-target-postgres/target/types',
1112
+ PostgresRuntimeTargetInstance: '@prisma/orm-target-postgres/target/runtime',
1113
+ postgresScalarTypes: '@prisma/orm-target-postgres/target/control',
1114
+ PostgresSchema: '@prisma/orm-target-postgres/target/types',
1115
+ PostgresSchemaNodeKind: '@prisma/orm-target-postgres/target/types',
1116
+ PostgresTableSchemaNode: '@prisma/orm-target-postgres/target/types',
1117
+ PostgresTableSchemaNodeInput: '@prisma/orm-target-postgres/target/types',
1118
+ PostgresTableSource: null,
1119
+ postgresTextDataTypes: '@prisma/orm-target-postgres/target/data-types',
1120
+ PostgresTsqueryArgument: '@prisma/orm-target-postgres/target/full-text',
1121
+ PostgresUnboundSchema: '@prisma/orm-target-postgres/target/types',
1122
+ primaryKey: '@prisma/orm-target-postgres/target/migration',
1123
+ prisma7PostgresBinding: '@prisma/orm-target-postgres/target/prisma7-binding',
1124
+ qualifiedEnumName: '@prisma/orm-target-postgres/target/data-types',
1125
+ qualifyName: '@prisma/orm-target-postgres/target/sql-utils',
1126
+ qualifyTableName: null,
1127
+ QueryOperationTypes: '@prisma/orm-target-postgres/target/operation-types',
1128
+ QueryOperationTypesForCodecs: '@prisma/orm-target-postgres/target/operation-types',
1129
+ quoteIdentifier: '@prisma/orm-target-postgres/target/sql-utils',
1130
+ quoteQualifiedName: '@prisma/orm-target-postgres/target/sql-utils',
1131
+ rawSql: '@prisma/orm-target-postgres/target/migration',
1132
+ RawSqlCall: null,
1133
+ readPostgresDefault: null,
1134
+ RemoveStoredKeyCall: null,
1135
+ RemoveStoredValueCall: null,
1136
+ RenameColumnCall: null,
1137
+ RenameConstraintCall: null,
1138
+ RenameIndexCall: null,
1139
+ RenamePostgresRlsPolicyCall: null,
1140
+ RenameSchemaCall: null,
1141
+ RenameStoredKeyCall: null,
1142
+ RenameTableCall: null,
1143
+ renderCallsToTypeScript: null,
1144
+ RenderedRlsPolicyLiteral: '@prisma/orm-target-postgres/target/types',
1145
+ renderFullTextIndexDocument: '@prisma/orm-target-postgres/target/sql-utils',
1146
+ renderOps: null,
1147
+ ReplaceStoredValueCall: null,
1148
+ resolveDdlSchemaForNamespaceStorage: null,
1149
+ resolveIdentityValue: null,
1150
+ rlsEnabledAst: null,
1151
+ RlsEnabledCheckBuilder: null,
1152
+ rlsPolicyExistsAst: null,
1153
+ RlsPolicyExistsCheckBuilder: null,
1154
+ sequenceNameAvailableAst: null,
1155
+ SerializedRlsPolicy: '@prisma/orm-target-postgres/target/types',
1156
+ SetDefaultCall: null,
1157
+ SetExtensionSchemaCall: null,
1158
+ SetNotNullCall: null,
1159
+ SetTableSchemaCall: null,
1160
+ sql: '@prisma/orm-target-postgres/target/migration',
1161
+ SQL_CHAR_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
1162
+ SQL_FLOAT_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
1163
+ SQL_INT_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
1164
+ SQL_RAW_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
1165
+ SQL_TEXT_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
1166
+ SQL_VARCHAR_CODEC_ID: '@prisma/orm-target-postgres/target/codec-ids',
1167
+ stackDataTypes: null,
1168
+ tableExistsAst: null,
1169
+ TableExistsCheckBuilder: null,
1170
+ tableIsEmptyAst: null,
1171
+ tablePrimaryKeyAst: null,
1172
+ TablePrimaryKeyCheckBuilder: null,
1173
+ text: null,
1174
+ TextArgument: '@prisma/orm-target-postgres/target/full-text',
1175
+ textArray: null,
1176
+ TimestampString: '@prisma/orm-target-postgres/target/codec-types',
1177
+ timestamptz: null,
1178
+ timestamptzJsDate: null,
1179
+ TimestamptzString: '@prisma/orm-target-postgres/target/codec-types',
1180
+ TimeString: '@prisma/orm-target-postgres/target/codec-types',
1181
+ Timetz: '@prisma/orm-target-postgres/target/codec-types',
1182
+ toRegclass: null,
1183
+ toTsquery: '@prisma/orm-target-postgres/target/full-text',
1184
+ tsquery: '@prisma/orm-target-postgres/target/full-text',
1185
+ TsqueryArgument: '@prisma/orm-target-postgres/target/operation-types',
1186
+ TsqueryExpression: '@prisma/orm-target-postgres/target/full-text',
1187
+ TsqueryParser: '@prisma/orm-target-postgres/target/full-text',
1188
+ TsqueryParserOptions: '@prisma/orm-target-postgres/target/full-text',
1189
+ TsqueryTag: '@prisma/orm-target-postgres/target/full-text',
1190
+ TypeScriptRenderablePostgresMigration: null,
1191
+ unique: '@prisma/orm-target-postgres/target/migration',
1192
+ validateEnumValueLength: '@prisma/orm-target-postgres/target/sql-utils',
1193
+ validatePostgresIsolationLevel: '@prisma/orm-target-postgres/target/runtime',
1194
+ VarBit: '@prisma/orm-target-postgres/target/codec-types',
1195
+ Varchar: '@prisma/orm-target-postgres/target/codec-types',
1196
+ websearchToTsquery: '@prisma/orm-target-postgres/target/full-text',
1197
+ weightGroupsOf: '@prisma/orm-target-postgres/target/full-text-index-authoring',
1198
+ },
1199
+ },
1200
+ '@prisma/orm-target-postgres/target/aggregates': { removed: true, to: null },
1201
+ '@prisma/orm-target-postgres/target/contract-free': { removed: true, to: null },
1202
+ '@prisma/orm-target-postgres/target/data-transform': { removed: true, to: null },
1203
+ '@prisma/orm-target-postgres/target/ddl': {
1204
+ removed: true,
1205
+ to: null,
1206
+ names: {
1207
+ AddColumnAction: null,
1208
+ AddConstraintAction: null,
1209
+ AlterColumnTypeAction: null,
1210
+ AlterTableActionVisitor: null,
1211
+ AnyAlterTableAction: null,
1212
+ AnyPostgresDdlNode: null,
1213
+ CreateIndexElements: null,
1214
+ DdlIndexElements: null,
1215
+ DropDefaultAction: null,
1216
+ PostgresAlterIndexRename: null,
1217
+ PostgresAlterPolicyRename: null,
1218
+ PostgresAlterSchemaRename: null,
1219
+ PostgresAlterTable: null,
1220
+ PostgresAlterTableSetSchema: null,
1221
+ PostgresCreateIndex: null,
1222
+ PostgresCreatePolicy: null,
1223
+ PostgresCreateSchema: null,
1224
+ PostgresCreateTable: null,
1225
+ PostgresCreateType: null,
1226
+ PostgresDdlNode: null,
1227
+ PostgresDdlVisitor: null,
1228
+ PostgresDisableRowLevelSecurity: null,
1229
+ PostgresDropIndex: null,
1230
+ PostgresDropPolicy: null,
1231
+ PostgresDropSchema: null,
1232
+ PostgresDropType: null,
1233
+ RlsPolicyOperation: '@prisma/orm-target-postgres/target/rls-canonicalize',
1234
+ },
1235
+ },
1236
+ '@prisma/orm-target-postgres/target/default-normalizer': { removed: true, to: null },
1237
+ '@prisma/orm-target-postgres/target/diff-database-schema': { removed: true, to: null },
1238
+ '@prisma/orm-target-postgres/target/errors': { removed: true, to: null },
1239
+ '@prisma/orm-target-postgres/target/issue-planner': { removed: true, to: null },
1240
+ '@prisma/orm-target-postgres/target/marker-lock': { removed: true, to: null },
1241
+ '@prisma/orm-target-postgres/target/native-type-normalizer': { removed: true, to: null },
1242
+ '@prisma/orm-target-postgres/target/op-factory-call': { removed: true, to: null },
1243
+ '@prisma/orm-target-postgres/target/planner': { removed: true, to: null },
1244
+ '@prisma/orm-target-postgres/target/planner-ddl-builders': { removed: true, to: null },
1245
+ '@prisma/orm-target-postgres/target/planner-identity-values': { removed: true, to: null },
1246
+ '@prisma/orm-target-postgres/target/planner-produced-postgres-migration': {
1247
+ removed: true,
1248
+ to: null,
1249
+ },
1250
+ '@prisma/orm-target-postgres/target/planner-schema-lookup': { removed: true, to: null },
1251
+ '@prisma/orm-target-postgres/target/planner-sql-checks': { removed: true, to: null },
1252
+ '@prisma/orm-target-postgres/target/render-ops': { removed: true, to: null },
1253
+ '@prisma/orm-target-postgres/target/render-typescript': { removed: true, to: null },
1254
+ '@prisma/orm-target-postgres/target/schema-ir-annotations': { removed: true, to: null },
1255
+ '@prisma/orm-toolchain/cli/control-api/testing': { removed: true, to: null },
1256
+ '@prisma/orm-toolchain/cli/init-output': { removed: true, to: null },
1257
+ '@prisma/orm-toolchain/cli-telemetry': { removed: true, to: null },
1258
+ '@prisma/orm-toolchain/cli-telemetry/sender': { removed: true, to: null },
1259
+ '@prisma/orm-toolchain/emitter': {
1260
+ removed: true,
1261
+ to: null,
1262
+ names: {
1263
+ deduplicateImports: '@prisma/orm-toolchain/emitter/domain-type-generation',
1264
+ emit: null,
1265
+ EmitOptions: null,
1266
+ EmitResult: null,
1267
+ EmitStackInput: null,
1268
+ EmittedArtifactPaths: null,
1269
+ generateCodecTypeIntersection: '@prisma/orm-toolchain/emitter/domain-type-generation',
1270
+ generateContractDts: null,
1271
+ generateHashTypeAliases: '@prisma/orm-toolchain/emitter/domain-type-generation',
1272
+ generateModelRelationsType: '@prisma/orm-toolchain/emitter/domain-type-generation',
1273
+ generateRootsType: '@prisma/orm-toolchain/emitter/domain-type-generation',
1274
+ getEmittedArtifactPaths: null,
1275
+ serializeObjectKey: '@prisma/orm-toolchain/emitter/domain-type-generation',
1276
+ serializeValue: '@prisma/orm-toolchain/emitter/domain-type-generation',
1277
+ typesImportRequirements: '@prisma/orm-toolchain/emitter/domain-type-generation',
1278
+ },
1279
+ },
1280
+ '@prisma/orm-toolchain/emitter/type-expression-safety': { removed: true, to: null },
1281
+ '@prisma/orm-toolchain/migration-tools': {
1282
+ removed: false,
1283
+ to: null,
1284
+ names: {
1285
+ assertHashIsGraphNode: null,
1286
+ ContractRef: null,
1287
+ ContractRefProvenance: null,
1288
+ contractSnapshotDir: null,
1289
+ contractSnapshotFiles: null,
1290
+ ContractSnapshotInput: null,
1291
+ createSnapshotContentVerifier: null,
1292
+ detectCycles: null,
1293
+ detectOrphans: null,
1294
+ EMPTY_CONTRACT_HASH: null,
1295
+ EMPTY_CONTRACT_REF: null,
1296
+ errorContractDeserializationFailed: null,
1297
+ errorContractSnapshotHashMismatch: null,
1298
+ errorContractSnapshotMissing: null,
1299
+ errorDescriptorHeadHashMismatch: null,
1300
+ errorInvalidJson: null,
1301
+ errorInvalidRefFile: null,
1302
+ errorInvalidRefName: null,
1303
+ errorNoInvariantPath: null,
1304
+ errorUnknownInvariant: null,
1305
+ findEdgeByDirName: null,
1306
+ findPath: null,
1307
+ findPathWithDecision: null,
1308
+ findPathWithInvariants: null,
1309
+ hasContractSnapshot: null,
1310
+ historyEndsFrom: null,
1311
+ isGraphNode: null,
1312
+ isInSpaceHistory: null,
1313
+ isLiveMarkerRef: null,
1314
+ isReservedContractRef: null,
1315
+ LIVE_MARKER_REF: null,
1316
+ MigrationEdge: null,
1317
+ MigrationGraph: null,
1318
+ MigrationMetadata: '@prisma/orm-framework/components/control',
1319
+ MigrationRef: null,
1320
+ MigrationRefProvenance: null,
1321
+ MigrationToolsError: null,
1322
+ NoInvariantPathExtensionSpace: null,
1323
+ NoInvariantPathStructuralEdge: null,
1324
+ parseContractRef: null,
1325
+ parseMigrationRef: null,
1326
+ PathDecision: null,
1327
+ readContractSnapshotJson: null,
1328
+ readContractSnapshotJsonTolerant: null,
1329
+ reconstructGraph: null,
1330
+ RefResolutionAmbiguous: null,
1331
+ RefResolutionContext: null,
1332
+ RefResolutionError: null,
1333
+ RefResolutionInvalidFormat: null,
1334
+ RefResolutionNotFound: null,
1335
+ RefResolutionWrongGrammar: null,
1336
+ RESERVED_CONTRACT_REFS: null,
1337
+ singleLineDeclarations: null,
1338
+ SnapshotContentVerifier: null,
1339
+ snapshotsImportPathFrom: null,
1340
+ WORKING_CONTRACT_REF: null,
1341
+ writeContractSnapshot: null,
1342
+ },
1343
+ },
1344
+ '@prisma/orm-toolchain/migration-tools/constants': { removed: true, to: null },
1345
+ '@prisma/orm-toolchain/migration-tools/contract-snapshot-store': { removed: true, to: null },
1346
+ '@prisma/orm-toolchain/migration-tools/errors': { removed: true, to: null },
1347
+ '@prisma/orm-toolchain/migration-tools/graph': { removed: true, to: null },
1348
+ '@prisma/orm-toolchain/migration-tools/metadata': {
1349
+ removed: true,
1350
+ to: '@prisma/orm-framework/components/control',
1351
+ },
1352
+ '@prisma/orm-toolchain/migration-tools/migration-graph': { removed: true, to: null },
1353
+ '@prisma/orm-toolchain/migration-tools/ref-resolution': { removed: true, to: null },
1354
+ };
1355
+
1356
+ /** The exported names that contained "internal", the two this script moves that the contract signature renamed, and their new names. */
1357
+ export const RENAMED: Readonly<Record<string, string>> = {
1358
+ ContractMarkerRow: 'ContractSignatureRow',
1359
+ parseContractMarkerRow: 'parseContractSignatureRow',
1360
+ InternalError: 'InvariantError',
1361
+ isInternalError: 'isInvariantError',
1362
+ PreparedStatementInternals: 'LoweredPreparedStatement',
1363
+ SqlParamRefMutatorInternal: 'SqlRuntimeParamRefMutator',
1364
+ MongoParamRefMutatorInternal: 'MongoRuntimeParamRefMutator',
1365
+ SupabaseInternalDb: 'SupabaseSchemasDb',
1366
+ SupabaseExtensionContract: 'SupabaseSchemasContract',
1367
+ };
1368
+
1369
+ /** A removed path whose module is still published under a new path, so a mock of it can follow. */
1370
+ const SAME_MODULE: Readonly<Record<string, string>> = {
1371
+ '@prisma/orm-framework/utils/internal-error': '@prisma/orm-framework/utils/invariant-error',
1372
+ };
1373
+
1374
+ /** The database packages, each with its control client and the family package whose `typescriptContract` it takes. */
1375
+ const DATABASES = {
1376
+ postgres: { client: 'createPostgresControlClient', family: '@prisma/orm-family-sql' },
1377
+ sqlite: { client: 'createSqliteControlClient', family: '@prisma/orm-family-sql' },
1378
+ mysql: { client: 'createMysqlControlClient', family: '@prisma/orm-family-sql' },
1379
+ mariadb: { client: 'createMariadbControlClient', family: '@prisma/orm-family-sql' },
1380
+ mongo: { client: 'createMongoControlClient', family: '@prisma/orm-family-mongo' },
1381
+ } as const;
1382
+
1383
+ export type Database = keyof typeof DATABASES;
1384
+
1385
+ const isDatabase = (name: string): name is Database => Object.hasOwn(DATABASES, name);
1386
+
1387
+ /** The one database package the project at `root` depends on, if it names exactly one. */
1388
+ export function databaseOf(root: string): Database | undefined {
1389
+ let manifest: Record<string, unknown>;
1390
+ try {
1391
+ manifest = JSON.parse(readFileSync(join(root, 'package.json'), 'utf8'));
1392
+ } catch {
1393
+ return undefined;
1394
+ }
1395
+ const found = new Set<Database>();
1396
+ for (const field of ['dependencies', 'devDependencies', 'peerDependencies']) {
1397
+ const deps = manifest[field];
1398
+ if (typeof deps !== 'object' || deps === null) continue;
1399
+ for (const name of Object.keys(deps)) {
1400
+ const database = /^@prisma\/orm-([a-z]+)$/.exec(name)?.[1];
1401
+ if (database !== undefined && isDatabase(database)) found.add(database);
1402
+ }
1403
+ }
1404
+ return found.size === 1 ? [...found][0] : undefined;
1405
+ }
1406
+
1407
+ /** How the control client replaces a name with no published home, or `undefined` when it does not. */
1408
+ function controlClientHint(name: string, database: Database | undefined): string | undefined {
1409
+ const family = database === undefined ? undefined : DATABASES[database].family;
1410
+ const contractSource =
1411
+ family === undefined
1412
+ ? '`typescriptContract(contract)` from `@prisma/orm-family-sql/contract-ts/config-types`, or from `@prisma/orm-family-mongo/contract-ts/config-types` on MongoDB'
1413
+ : `\`typescriptContract(contract)\` from \`${family}/contract-ts/config-types\``;
1414
+ const client =
1415
+ database === undefined
1416
+ ? "your database package's control client: `createPostgresControlClient()` from `@prisma/orm-postgres/control`, or `createSqliteControlClient`, `createMysqlControlClient`, `createMariadbControlClient` or `createMongoControlClient` from that package's `control`"
1417
+ : `\`${DATABASES[database].client}()\` from \`@prisma/orm-${database}/control\``;
1418
+ switch (name) {
1419
+ case 'emit':
1420
+ return `give your database package's \`defineConfig\` the contract (a file path, or ${contractSource}), then pass its contract's \`source\`, \`output\` and \`typesModule\` to the \`emit\` of ${client}; its result carries \`contractJson\` and \`contractDts\`, and the guide has a complete example`;
1421
+ case 'interpretPslDocumentToSqlContract':
1422
+ return `emit through ${client}, as the guide's example does, with the path of the \`.prisma\` file as the \`contract\` of \`defineConfig\``;
1423
+ case 'generateContractDts':
1424
+ return `call \`renderContractDts({ contract, typesModule })\` on ${client}, with the parsed \`contract.json\` and the \`typesModule\` of the config's contract`;
1425
+ case 'getEmittedArtifactPaths':
1426
+ return 'the `.d.ts` is written beside the `.json`: its path is the `.json` path with the `.json` extension replaced by `.d.ts`';
1427
+ default:
1428
+ return undefined;
1429
+ }
1430
+ }
1431
+
1432
+ /** The paths that exported `InternalError` and `isInternalError`. */
1433
+ const ERROR_PATHS: ReadonlySet<string> = new Set([
1434
+ '@prisma/orm-framework/utils',
1435
+ '@prisma/orm-framework/utils/internal-error',
1436
+ '@prisma/orm-framework/utils/invariant-error',
1437
+ ]);
1438
+
1439
+ const PRISMA_ERROR_FLAG = 'isPrismaInternalError';
1440
+ const PRISMA_ERROR_FLAG_RENAMED = 'isPrismaInvariantError';
1441
+ const OLD_CLASS_NAME = 'InternalError';
1442
+ const NEW_CLASS_NAME = 'InvariantError';
1443
+
1444
+ const MOCKS = new Set(['mock', 'doMock', 'unmock', 'doUnmock']);
1445
+ const LOADERS = new Set(['importActual', 'importMock', 'requireActual', 'requireMock']);
1446
+
1447
+ const isPrisma = (specifier: string) => specifier.startsWith('@prisma/orm-');
1448
+
1449
+ /** Where a name imported from `path` is published now: the same path, another one, or nowhere (`null`). */
1450
+ export function destinationOf(path: string, name: string): string | null {
1451
+ const entry = PATHS[path];
1452
+ if (entry === undefined) return path;
1453
+ if (entry.names !== undefined && name in entry.names) return entry.names[name] ?? null;
1454
+ return entry.removed ? entry.to : path;
1455
+ }
1456
+
1457
+ /** The one path that publishes every name `path` did, for a form whose names the script cannot follow. */
1458
+ function wholeDestinationOf(path: string): string | null | undefined {
1459
+ const entry = PATHS[path];
1460
+ if (entry === undefined) return undefined;
1461
+ if (!entry.removed) return entry.names === undefined ? undefined : null;
1462
+ return entry.names === undefined ? entry.to : null;
1463
+ }
1464
+
1465
+ interface Edit {
1466
+ readonly start: number;
1467
+ readonly end: number;
1468
+ readonly text: string;
1469
+ }
1470
+
1471
+ export interface Rewritten {
1472
+ readonly source: string;
1473
+ /** What the script could not rewrite, or rewrote and wants the user to check, one line each. */
1474
+ readonly left: readonly string[];
1475
+ }
1476
+
1477
+ const DEFAULT_IMPORT = 'the default export';
1478
+
1479
+ export function rewriteWith(
1480
+ ts: TypeScript,
1481
+ fileName: string,
1482
+ source: string,
1483
+ database?: Database,
1484
+ ): Rewritten {
1485
+ const kind = /\.(tsx|jsx)$/.test(fileName)
1486
+ ? ts.ScriptKind.TSX
1487
+ : /\.(js|mjs|cjs)$/.test(fileName)
1488
+ ? ts.ScriptKind.JS
1489
+ : ts.ScriptKind.TS;
1490
+ const file = ts.createSourceFile(fileName, source, ts.ScriptTarget.Latest, true, kind);
1491
+ const edits: Edit[] = [];
1492
+ const left: string[] = [];
1493
+ const renamedBindings = new Map<string, string>();
1494
+ const renamedImportNames: TS.Identifier[] = [];
1495
+ const namespaces = new Map<string, string>();
1496
+ const namespaceImportNames: TS.Identifier[] = [];
1497
+ let importsPrisma = false;
1498
+ /** Whether a Prisma import binds `InternalError` or `isInternalError` in this file, so a check of the old class name means Prisma's error. */
1499
+ let bindsPrismaError = false;
1500
+
1501
+ const replace = (node: TS.Node, text: string) =>
1502
+ edits.push({ start: node.getStart(file), end: node.getEnd(), text });
1503
+ const quoteOf = (literal: TS.StringLiteralLike) => literal.getText(file)[0] ?? "'";
1504
+ const retarget = (literal: TS.StringLiteralLike, path: string) =>
1505
+ replace(literal, `${quoteOf(literal)}${path}${quoteOf(literal)}`);
1506
+
1507
+ /** The rewritten statements for an import or a re-export of `elements` from `path`. */
1508
+ function splitNamed(
1509
+ statement: TS.ImportDeclaration | TS.ExportDeclaration,
1510
+ literal: TS.StringLiteralLike,
1511
+ elements: readonly (TS.ImportSpecifier | TS.ExportSpecifier)[],
1512
+ defaultName: string | undefined,
1513
+ ): void {
1514
+ const path = literal.text;
1515
+ const keyword = ts.isImportDeclaration(statement) ? 'import' : 'export';
1516
+ const typeOnly = ts.isImportDeclaration(statement)
1517
+ ? statement.importClause?.isTypeOnly === true
1518
+ : statement.isTypeOnly;
1519
+ const groups = new Map<string, string[]>();
1520
+ const texts = new Map<TS.ImportSpecifier | TS.ExportSpecifier, string>();
1521
+ const stays: string[] = [];
1522
+ const lost: string[] = [];
1523
+ let changed = false;
1524
+ for (const element of elements) {
1525
+ const imported = (element.propertyName ?? element.name).getText(file);
1526
+ const local = element.name.getText(file);
1527
+ const target = destinationOf(path, imported);
1528
+ const renamed = RENAMED[imported];
1529
+ const type = element.isTypeOnly ? 'type ' : '';
1530
+ let text = element.getText(file);
1531
+ if (renamed !== undefined) {
1532
+ changed = true;
1533
+ if (keyword === 'export') {
1534
+ text = `${type}${renamed} as ${local}`;
1535
+ if (local === imported)
1536
+ left.push(
1537
+ `${path}: this file re-exports ${local} under its old name; ${imported} is now ${renamed}, so rename it where the project imports it`,
1538
+ );
1539
+ } else if (element.propertyName !== undefined) {
1540
+ text = `${type}${renamed} as ${local}`;
1541
+ if (imported === 'InternalError' || imported === 'isInternalError')
1542
+ bindsPrismaError = true;
1543
+ } else {
1544
+ text = `${type}${renamed}`;
1545
+ renamedBindings.set(local, renamed);
1546
+ renamedImportNames.push(element.name);
1547
+ if (imported === 'InternalError' || imported === 'isInternalError')
1548
+ bindsPrismaError = true;
1549
+ }
1550
+ }
1551
+ texts.set(element, text);
1552
+ if (target === null) {
1553
+ stays.push(text);
1554
+ lost.push(imported);
1555
+ continue;
1556
+ }
1557
+ if (target !== path) changed = true;
1558
+ groups.set(target, [...(groups.get(target) ?? []), text]);
1559
+ }
1560
+ if (!changed && stays.length === 0) return;
1561
+ const [only] = [...groups.keys()];
1562
+ if (stays.length === 0 && groups.size === 1 && only !== undefined) {
1563
+ for (const [element, text] of texts)
1564
+ if (text !== element.getText(file)) replace(element, text);
1565
+ if (only !== path) retarget(literal, only);
1566
+ return;
1567
+ }
1568
+ if (lost.length > 0) left.push(`${path}: ${lost.join(', ')}, which no published path exports`);
1569
+ for (const name of lost) {
1570
+ const hint = controlClientHint(name, database);
1571
+ if (hint !== undefined) left.push(`${path}: for ${name}, ${hint}`);
1572
+ }
1573
+ const quote = quoteOf(literal);
1574
+ const type = typeOnly ? ' type' : '';
1575
+ const write = (names: readonly string[], target: string, withDefault: boolean) => {
1576
+ const head = withDefault && defaultName !== undefined ? ` ${defaultName},` : '';
1577
+ return `${keyword}${type}${head} { ${names.join(', ')} } from ${quote}${target}${quote};`;
1578
+ };
1579
+ const statements: string[] = [];
1580
+ if (stays.length > 0) statements.push(write(stays, path, true));
1581
+ else if (defaultName !== undefined && groups.size === 0) statements.push(write([], path, true));
1582
+ let first = statements.length === 0;
1583
+ for (const [target, names] of groups) {
1584
+ statements.push(write(names, target, first));
1585
+ first = false;
1586
+ }
1587
+ if (first && defaultName !== undefined) {
1588
+ left.push(`${path}: ${DEFAULT_IMPORT}, which the script cannot follow`);
1589
+ }
1590
+ replace(statement, statements.join('\n'));
1591
+ }
1592
+
1593
+ function wholeModule(literal: TS.StringLiteralLike, form: string): void {
1594
+ const path = literal.text;
1595
+ const whole = wholeDestinationOf(path);
1596
+ if (whole === undefined) return;
1597
+ if (whole === null) {
1598
+ const entry = PATHS[path];
1599
+ left.push(
1600
+ entry?.removed !== true
1601
+ ? `${path}: ${form} of a path that no longer exports some of its names`
1602
+ : entry.names === undefined
1603
+ ? `${path}: ${form}; no published path exports its names`
1604
+ : `${path}: ${form}, whose names are not all published on one path`,
1605
+ );
1606
+ return;
1607
+ }
1608
+ retarget(literal, whole);
1609
+ }
1610
+
1611
+ function visitImport(statement: TS.ImportDeclaration): void {
1612
+ const literal = statement.moduleSpecifier;
1613
+ if (!ts.isStringLiteral(literal) || !isPrisma(literal.text)) return;
1614
+ importsPrisma = true;
1615
+ const clause = statement.importClause;
1616
+ if (clause === undefined) {
1617
+ wholeModule(literal, 'a side-effect import');
1618
+ return;
1619
+ }
1620
+ const bindings = clause.namedBindings;
1621
+ if (bindings !== undefined && ts.isNamespaceImport(bindings)) {
1622
+ namespaces.set(bindings.name.text, literal.text);
1623
+ namespaceImportNames.push(bindings.name);
1624
+ if (ERROR_PATHS.has(literal.text)) bindsPrismaError = true;
1625
+ wholeModule(literal, 'a namespace import');
1626
+ return;
1627
+ }
1628
+ const elements = bindings !== undefined && ts.isNamedImports(bindings) ? bindings.elements : [];
1629
+ if (elements.length === 0 && clause.name !== undefined) {
1630
+ wholeModule(literal, DEFAULT_IMPORT);
1631
+ return;
1632
+ }
1633
+ splitNamed(statement, literal, elements, clause.name?.text);
1634
+ }
1635
+
1636
+ function visitExport(statement: TS.ExportDeclaration): void {
1637
+ const literal = statement.moduleSpecifier;
1638
+ if (literal === undefined || !ts.isStringLiteral(literal) || !isPrisma(literal.text)) return;
1639
+ importsPrisma = true;
1640
+ const clause = statement.exportClause;
1641
+ if (clause === undefined || ts.isNamespaceExport(clause)) {
1642
+ const form = clause === undefined ? '`export *`' : '`export * as`';
1643
+ if (RENAMED_EXPORTERS.has(literal.text))
1644
+ left.push(
1645
+ `${literal.text}: this file re-exports it with ${form}, so it now exports the new names of the renamed names in the guide's table; rename them where the project imports them`,
1646
+ );
1647
+ wholeModule(literal, form);
1648
+ return;
1649
+ }
1650
+ splitNamed(statement, literal, clause.elements, undefined);
1651
+ }
1652
+
1653
+ function visitCall(call: TS.CallExpression): void {
1654
+ const [first, second] = call.arguments;
1655
+ if (first === undefined || !ts.isStringLiteralLike(first) || !isPrisma(first.text)) return;
1656
+ const callee = call.expression;
1657
+ const method = ts.isPropertyAccessExpression(callee) ? callee.name.text : undefined;
1658
+ const path = first.text;
1659
+ if (
1660
+ callee.kind === ts.SyntaxKind.ImportKeyword ||
1661
+ (ts.isIdentifier(callee) && callee.text === 'require') ||
1662
+ (method !== undefined && LOADERS.has(method))
1663
+ ) {
1664
+ importsPrisma = true;
1665
+ const whole = wholeDestinationOf(path);
1666
+ if (whole === undefined) {
1667
+ if (RENAMED_EXPORTERS.has(path))
1668
+ left.push(
1669
+ `${path}: a dynamic import or \`require\`: check the names it uses, as some are renamed`,
1670
+ );
1671
+ return;
1672
+ }
1673
+ if (whole === null) {
1674
+ left.push(
1675
+ `${path}: a dynamic import or \`require\` of a path whose names are no longer published together`,
1676
+ );
1677
+ return;
1678
+ }
1679
+ retarget(first, whole);
1680
+ left.push(
1681
+ `${path}: a dynamic import or \`require\`, now of ${whole}: check the names it uses`,
1682
+ );
1683
+ return;
1684
+ }
1685
+ if (method !== undefined && MOCKS.has(method)) {
1686
+ importsPrisma = true;
1687
+ if (PATHS[path] === undefined) {
1688
+ if (second !== undefined && RENAMED_EXPORTERS.has(path))
1689
+ left.push(
1690
+ `${path}: a mock with a factory of a path whose names are renamed; rename what its factory returns, as the guide's table says`,
1691
+ );
1692
+ return;
1693
+ }
1694
+ const same = SAME_MODULE[path];
1695
+ if (same !== undefined && second === undefined) {
1696
+ retarget(first, same);
1697
+ return;
1698
+ }
1699
+ left.push(
1700
+ `${path}: a mock of a path this change moves; point it at the module the code under test now imports, and rename what its factory returns`,
1701
+ );
1702
+ }
1703
+ }
1704
+
1705
+ const isShorthandName = (parent: TS.Node, node: TS.Identifier): boolean =>
1706
+ ts.isShorthandPropertyAssignment(parent) && parent.name === node;
1707
+
1708
+ const isNameNotReference = (node: TS.Identifier): boolean => {
1709
+ const parent = node.parent;
1710
+ if (parent === undefined) return true;
1711
+ if (ts.isPropertyAccessExpression(parent) && parent.name === node) return true;
1712
+ if (ts.isQualifiedName(parent) && parent.right === node) return true;
1713
+ if (ts.isImportSpecifier(parent) || ts.isExportSpecifier(parent) || ts.isImportClause(parent))
1714
+ return true;
1715
+ if (ts.isBindingElement(parent) && parent.propertyName === node) return true;
1716
+ if (
1717
+ (ts.isPropertyAssignment(parent) ||
1718
+ ts.isPropertyDeclaration(parent) ||
1719
+ ts.isPropertySignature(parent) ||
1720
+ ts.isMethodDeclaration(parent) ||
1721
+ ts.isMethodSignature(parent) ||
1722
+ ts.isGetAccessorDeclaration(parent) ||
1723
+ ts.isSetAccessorDeclaration(parent) ||
1724
+ ts.isEnumMember(parent)) &&
1725
+ parent.name === node
1726
+ )
1727
+ return true;
1728
+ return false;
1729
+ };
1730
+
1731
+ const nameChecks: TS.StringLiteralLike[] = [];
1732
+ const flagUses: TS.Node[] = [];
1733
+
1734
+ function collect(node: TS.Node): void {
1735
+ if (ts.isImportDeclaration(node)) visitImport(node);
1736
+ else if (ts.isExportDeclaration(node)) visitExport(node);
1737
+ else if (ts.isCallExpression(node)) visitCall(node);
1738
+ else if (
1739
+ ts.isImportTypeNode(node) &&
1740
+ ts.isLiteralTypeNode(node.argument) &&
1741
+ ts.isStringLiteral(node.argument.literal) &&
1742
+ isPrisma(node.argument.literal.text)
1743
+ ) {
1744
+ importsPrisma = true;
1745
+ wholeModule(node.argument.literal, 'an `import()` type');
1746
+ const member =
1747
+ node.qualifier !== undefined && ts.isIdentifier(node.qualifier)
1748
+ ? node.qualifier
1749
+ : undefined;
1750
+ const renamed = member === undefined ? undefined : RENAMED[member.text];
1751
+ if (member !== undefined && renamed !== undefined) replace(member, renamed);
1752
+ }
1753
+ if (ts.isBinaryExpression(node)) {
1754
+ const equality = [
1755
+ ts.SyntaxKind.EqualsEqualsEqualsToken,
1756
+ ts.SyntaxKind.ExclamationEqualsEqualsToken,
1757
+ ts.SyntaxKind.EqualsEqualsToken,
1758
+ ts.SyntaxKind.ExclamationEqualsToken,
1759
+ ].includes(node.operatorToken.kind);
1760
+ const isName = (side: TS.Expression) =>
1761
+ ts.isPropertyAccessExpression(side) && side.name.text === 'name';
1762
+ for (const [side, other] of [
1763
+ [node.left, node.right],
1764
+ [node.right, node.left],
1765
+ ] as const) {
1766
+ if (
1767
+ equality &&
1768
+ ts.isStringLiteralLike(side) &&
1769
+ side.text === OLD_CLASS_NAME &&
1770
+ isName(other)
1771
+ )
1772
+ nameChecks.push(side);
1773
+ }
1774
+ }
1775
+ if (
1776
+ ts.isCaseClause(node) &&
1777
+ ts.isStringLiteralLike(node.expression) &&
1778
+ node.expression.text === OLD_CLASS_NAME &&
1779
+ ts.isPropertyAccessExpression(node.parent.parent.expression) &&
1780
+ node.parent.parent.expression.name.text === 'name'
1781
+ )
1782
+ nameChecks.push(node.expression);
1783
+ if (
1784
+ (ts.isStringLiteral(node) && node.text === PRISMA_ERROR_FLAG) ||
1785
+ (ts.isIdentifier(node) && node.text === PRISMA_ERROR_FLAG)
1786
+ )
1787
+ flagUses.push(node);
1788
+ ts.forEachChild(node, collect);
1789
+ }
1790
+ collect(file);
1791
+
1792
+ // A local binding of a renamed name or of a namespace import's name, such as a parameter, shadows the import and keeps its name and its members.
1793
+ let bindsImport = (_node: TS.Identifier): boolean => true;
1794
+ if (renamedImportNames.length > 0 || namespaceImportNames.length > 0) {
1795
+ const host = ts.createCompilerHost({});
1796
+ host.getSourceFile = (name) => (name === file.fileName ? file : undefined);
1797
+ host.fileExists = (name) => name === file.fileName;
1798
+ const program = ts.createProgram({
1799
+ rootNames: [file.fileName],
1800
+ options: { noLib: true, noResolve: true, allowJs: true },
1801
+ host,
1802
+ });
1803
+ if (program.getSourceFile(file.fileName) !== file)
1804
+ throw new ScriptStop(
1805
+ `TypeScript did not take in ${fileName}, so the script cannot tell a local binding from an import there.`,
1806
+ );
1807
+ const checker = program.getTypeChecker();
1808
+ const imported = new Set(
1809
+ [...renamedImportNames, ...namespaceImportNames].map((name) =>
1810
+ checker.getSymbolAtLocation(name),
1811
+ ),
1812
+ );
1813
+ bindsImport = (node) => {
1814
+ const parent = node.parent;
1815
+ const symbol =
1816
+ parent !== undefined && isShorthandName(parent, node)
1817
+ ? checker.getShorthandAssignmentValueSymbol(parent)
1818
+ : parent !== undefined && ts.isExportSpecifier(parent)
1819
+ ? checker.getExportSpecifierLocalTargetSymbol(parent)
1820
+ : checker.getSymbolAtLocation(node);
1821
+ return symbol === undefined || imported.has(symbol);
1822
+ };
1823
+ }
1824
+
1825
+ function rename(node: TS.Node): void {
1826
+ if (ts.isIdentifier(node)) {
1827
+ const bound = renamedBindings.has(node.text) && bindsImport(node);
1828
+ const renamed = bound ? renamedBindings.get(node.text) : undefined;
1829
+ if (renamed !== undefined && !isNameNotReference(node)) {
1830
+ const parent = node.parent;
1831
+ if (parent !== undefined && isShorthandName(parent, node))
1832
+ replace(node, `${node.text}: ${renamed}`);
1833
+ else replace(node, renamed);
1834
+ }
1835
+ if (renamed !== undefined && node.parent !== undefined && ts.isExportSpecifier(node.parent)) {
1836
+ const specifier = node.parent;
1837
+ if (
1838
+ specifier.parent.parent.moduleSpecifier === undefined &&
1839
+ (specifier.propertyName ?? specifier.name) === node
1840
+ ) {
1841
+ replace(
1842
+ specifier,
1843
+ `${specifier.isTypeOnly ? 'type ' : ''}${renamed} as ${specifier.name.text}`,
1844
+ );
1845
+ if (specifier.name.text === node.text)
1846
+ left.push(
1847
+ `${specifier.name.text}: this file exports it under its old name; it is now ${renamed}, so rename it where the project imports it`,
1848
+ );
1849
+ }
1850
+ }
1851
+ }
1852
+ if (
1853
+ ts.isPropertyAccessExpression(node) &&
1854
+ ts.isIdentifier(node.expression) &&
1855
+ namespaces.has(node.expression.text) &&
1856
+ bindsImport(node.expression)
1857
+ ) {
1858
+ const renamed = RENAMED[node.name.text];
1859
+ if (namespaces.has(node.expression.text) && renamed !== undefined)
1860
+ replace(node.name, renamed);
1861
+ const path = namespaces.get(node.expression.text);
1862
+ if (
1863
+ path !== undefined &&
1864
+ destinationOf(path, node.name.text) === null &&
1865
+ PATHS[path]?.removed !== true
1866
+ )
1867
+ left.push(`${path}: ${node.name.text}, which no published path exports`);
1868
+ }
1869
+ if (
1870
+ ts.isQualifiedName(node) &&
1871
+ ts.isIdentifier(node.left) &&
1872
+ namespaces.has(node.left.text) &&
1873
+ bindsImport(node.left)
1874
+ ) {
1875
+ const renamed = RENAMED[node.right.text];
1876
+ if (renamed !== undefined) replace(node.right, renamed);
1877
+ }
1878
+ ts.forEachChild(node, rename);
1879
+ }
1880
+ rename(file);
1881
+
1882
+ for (const literal of nameChecks) {
1883
+ if (bindsPrismaError)
1884
+ replace(literal, `${quoteOf(literal)}${NEW_CLASS_NAME}${quoteOf(literal)}`);
1885
+ else
1886
+ left.push(
1887
+ `a check of an error's name against '${OLD_CLASS_NAME}', in a file with no Prisma import of InternalError; if it means Prisma's error, use isInvariantError`,
1888
+ );
1889
+ }
1890
+ for (const node of flagUses) {
1891
+ if (!importsPrisma) {
1892
+ left.push(
1893
+ `${PRISMA_ERROR_FLAG}, in a file that imports nothing from Prisma; Prisma's error now carries ${PRISMA_ERROR_FLAG_RENAMED}`,
1894
+ );
1895
+ continue;
1896
+ }
1897
+ replace(
1898
+ node,
1899
+ ts.isStringLiteral(node)
1900
+ ? `${quoteOf(node)}${PRISMA_ERROR_FLAG_RENAMED}${quoteOf(node)}`
1901
+ : PRISMA_ERROR_FLAG_RENAMED,
1902
+ );
1903
+ }
1904
+
1905
+ const sorted = edits
1906
+ .filter(
1907
+ (edit, index) =>
1908
+ edits.findIndex((other) => other.start === edit.start && other.end === edit.end) === index,
1909
+ )
1910
+ .sort((a, b) => b.start - a.start);
1911
+ let result = source;
1912
+ let floor = Number.POSITIVE_INFINITY;
1913
+ for (const edit of sorted) {
1914
+ if (edit.end > floor) continue;
1915
+ result = `${result.slice(0, edit.start)}${edit.text}${result.slice(edit.end)}`;
1916
+ floor = edit.start;
1917
+ }
1918
+ return { source: result, left: [...new Set(left)] };
1919
+ }
1920
+
1921
+ /** A stop the script expects, such as a missing `typescript`, as against a fault in the script. */
1922
+ class ScriptStop extends Error {}
1923
+
1924
+ function hasCompilerApi(module: unknown): module is TypeScript {
1925
+ return (
1926
+ typeof module === 'object' &&
1927
+ module !== null &&
1928
+ 'createProgram' in module &&
1929
+ typeof module.createProgram === 'function'
1930
+ );
1931
+ }
1932
+
1933
+ function versionOf(module: unknown): string {
1934
+ return typeof module === 'object' &&
1935
+ module !== null &&
1936
+ 'version' in module &&
1937
+ typeof module.version === 'string'
1938
+ ? module.version
1939
+ : 'unknown';
1940
+ }
1941
+
1942
+ /** TypeScript's compiler, from the project the script works on, or else from beside the script. */
1943
+ export function loadTypeScript(root: string): TypeScript {
1944
+ const withoutCompiler = new Set<string>();
1945
+ for (const from of [join(root, 'package.json'), fileURLToPath(import.meta.url)]) {
1946
+ let found: unknown;
1947
+ try {
1948
+ found = createRequire(from)('typescript');
1949
+ } catch {
1950
+ continue;
1951
+ }
1952
+ if (hasCompilerApi(found)) return found;
1953
+ withoutCompiler.add(versionOf(found));
1954
+ }
1955
+ if (withoutCompiler.size > 0)
1956
+ throw new ScriptStop(
1957
+ `This script reads code with the TypeScript compiler, and the \`typescript\` package it found, version ${[...withoutCompiler].join(' and ')}, has no compiler: the \`typescript\` package of TypeScript 7 exports only its version. The script needs TypeScript 5 or 6. Either install TypeScript 5 in the project for the run, for example with \`pnpm add -D typescript@5\`, and put your version back afterwards; or install \`typescript@5\` in an empty folder, copy this script into that folder, and run the copy with the project folder as its argument: \`node <folder>/<script>.ts <project folder>\`.`,
1958
+ );
1959
+ throw new ScriptStop(
1960
+ 'This script reads code with TypeScript, and found no `typescript` package in the project or beside the script. Prisma lists `typescript` as an optional peer dependency, so the project may not have it: install it in the project, for example as a development dependency, then run the script again.',
1961
+ );
1962
+ }
1963
+
1964
+ function stopMessage(error: unknown): string {
1965
+ if (error instanceof ScriptStop) return `${error.message}\nThe script changed no file.`;
1966
+ const detail = error instanceof Error ? (error.stack ?? error.message) : String(error);
1967
+ return `The script failed on an unexpected error, before it changed any file. This is a fault in the script; report it to Prisma with this output:\n${detail}`;
1968
+ }
1969
+
1970
+ const SKIPPED_DIRECTORIES = new Set(['node_modules', 'dist', 'build']);
1971
+ const SOURCE_FILE = /\.(ts|mts|cts|tsx|js|mjs|cjs|jsx)$/;
1972
+
1973
+ /** A test of whether git ignores a file or folder under `root`. Outside a git repository it ignores nothing, and so it does when git ignores `root` itself, which the user then named on purpose. */
1974
+ function gitIgnores(root: string): (path: string) => boolean {
1975
+ const listed = spawnSync(
1976
+ 'git',
1977
+ ['ls-files', '--others', '--ignored', '--exclude-standard', '--directory', '-z'],
1978
+ { cwd: root, encoding: 'utf8', maxBuffer: 2 ** 30 },
1979
+ );
1980
+ if (listed.status !== 0) return () => false;
1981
+ const ignored = new Set(
1982
+ listed.stdout
1983
+ .split('\0')
1984
+ .filter((path) => path !== '')
1985
+ .map((path) => path.replace(/\/$/, '')),
1986
+ );
1987
+ if (ignored.has('.')) return () => false;
1988
+ const bases = [root, realpathSync(root)];
1989
+ return (path) => bases.some((base) => ignored.has(relative(base, path).split(sep).join('/')));
1990
+ }
1991
+
1992
+ function* sourceFiles(dir: string, ignored: (path: string) => boolean): Generator<string> {
1993
+ for (const entry of readdirSync(dir, { withFileTypes: true })) {
1994
+ const path = join(dir, entry.name);
1995
+ if (ignored(path)) continue;
1996
+ if (entry.isDirectory()) {
1997
+ if (SKIPPED_DIRECTORIES.has(entry.name) || entry.name.startsWith('.')) continue;
1998
+ yield* sourceFiles(path, ignored);
1999
+ } else if (entry.isFile() && SOURCE_FILE.test(entry.name)) {
2000
+ yield path;
2001
+ }
2002
+ }
2003
+ }
2004
+
2005
+ function main(): void {
2006
+ const root = resolve(process.argv[2] ?? process.cwd());
2007
+ const changes: Array<readonly [string, string]> = [];
2008
+ const leftovers: string[] = [];
2009
+ try {
2010
+ const ts = loadTypeScript(root);
2011
+ const database = databaseOf(root);
2012
+ for (const file of sourceFiles(root, gitIgnores(root))) {
2013
+ const source = readFileSync(file, 'utf8');
2014
+ const { source: rewritten, left } = rewriteWith(ts, file, source, database);
2015
+ for (const entry of left) leftovers.push(`${relative(root, file)}: ${entry}`);
2016
+ if (rewritten !== source) changes.push([file, rewritten]);
2017
+ }
2018
+ } catch (error) {
2019
+ console.error(stopMessage(error));
2020
+ process.exitCode = 1;
2021
+ return;
2022
+ }
2023
+ let written = 0;
2024
+ try {
2025
+ for (const [file, rewritten] of changes) {
2026
+ writeFileSync(file, rewritten);
2027
+ written++;
2028
+ console.log(relative(root, file));
2029
+ }
2030
+ } catch (error) {
2031
+ console.error(
2032
+ [
2033
+ error instanceof Error ? error.message : String(error),
2034
+ `The write to ${relative(root, changes[written]?.[0] ?? root)} failed, so that file may be partly written.`,
2035
+ 'The script changed the files listed above, and none of these:',
2036
+ ...changes.slice(written + 1).map(([file]) => ` ${relative(root, file)}`),
2037
+ 'Fix the cause and run the script again, or restore the changed files from version control.',
2038
+ ].join('\n'),
2039
+ );
2040
+ process.exitCode = 1;
2041
+ return;
2042
+ }
2043
+ if (leftovers.length === 0) return;
2044
+ console.log('Not changed: the guide says what to do with each of these.');
2045
+ for (const entry of leftovers) console.log(` ${entry}`);
2046
+ }
2047
+
2048
+ // Node names the module by its real path, so a script reached through a symbolic link compares that.
2049
+ if (
2050
+ process.argv[1] !== undefined &&
2051
+ import.meta.url === pathToFileURL(realpathSync(process.argv[1])).href
2052
+ )
2053
+ main();