@prisma/orm-mongo 8.0.0-rc.25-dev.28 → 8.0.0-rc.26

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