@prisma/orm-family-sql 8.0.0-rc.14-dev.6 → 8.0.0-rc.14-dev.8

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 (195) hide show
  1. package/dist/{ast-CJd4157-.mjs → ast-5hifzBHC.mjs} +84 -35
  2. package/dist/ast-5hifzBHC.mjs.map +1 -0
  3. package/dist/{ast-B53rACdv.d.mts → ast-BQOF33Tw.d.mts} +40 -16
  4. package/dist/ast-BQOF33Tw.d.mts.map +1 -0
  5. package/dist/{authoring-entity-types-CZ-vdwYS-D6R9QovE.d.mts → authoring-entity-types-CZ-vdwYS-BCsVtN8A.d.mts} +2 -2
  6. package/dist/{authoring-entity-types-CZ-vdwYS-D6R9QovE.d.mts.map → authoring-entity-types-CZ-vdwYS-BCsVtN8A.d.mts.map} +1 -1
  7. package/dist/{authoring-type-constructors-DQZEX4Sb-D6uFhwhG.mjs → authoring-type-constructors-DIyheCzv-BgR6EC_E.mjs} +7 -66
  8. package/dist/authoring-type-constructors-DIyheCzv-BgR6EC_E.mjs.map +1 -0
  9. package/dist/builder.d.mts +2 -2
  10. package/dist/builder__runtime.d.mts +9 -9
  11. package/dist/builder__runtime.mjs +1 -1
  12. package/dist/builder__types.d.mts +2 -2
  13. package/dist/{codec-descriptor-registry-Cj-tqpFL.mjs → codec-descriptor-registry-B1v3GEdK.mjs} +13 -22
  14. package/dist/codec-descriptor-registry-B1v3GEdK.mjs.map +1 -0
  15. package/dist/{config-types-CEXpi8FV.mjs → config-types-BzCtgjh6.mjs} +2 -2
  16. package/dist/{config-types-CEXpi8FV.mjs.map → config-types-BzCtgjh6.mjs.map} +1 -1
  17. package/dist/{config-types-Bd3ud-mX.d.mts → config-types-VJ5O9Ert.d.mts} +4 -4
  18. package/dist/{config-types-Bd3ud-mX.d.mts.map → config-types-VJ5O9Ert.d.mts.map} +1 -1
  19. package/dist/{contract-builder-vmb0E3SP.mjs → contract-builder-CyJOBIFB.mjs} +3 -3
  20. package/dist/contract-builder-CyJOBIFB.mjs.map +1 -0
  21. package/dist/{contract-builder-6ujqQuj-.d.mts → contract-builder-ezejmfrY.d.mts} +48 -22
  22. package/dist/contract-builder-ezejmfrY.d.mts.map +1 -0
  23. package/dist/contract-emitter.d.mts +0 -1
  24. package/dist/contract-emitter.d.mts.map +1 -1
  25. package/dist/contract-emitter.mjs +1 -1
  26. package/dist/contract-prisma7__provider.d.mts +2 -2
  27. package/dist/contract-prisma7__provider.mjs +3 -3
  28. package/dist/contract-prisma7__provider.mjs.map +1 -1
  29. package/dist/contract-psl.d.mts +6 -6
  30. package/dist/contract-psl.d.mts.map +1 -1
  31. package/dist/contract-psl.mjs +1 -1
  32. package/dist/contract-psl__provider.d.mts +2 -2
  33. package/dist/contract-psl__provider.mjs +2 -2
  34. package/dist/contract-psl__provider.mjs.map +1 -1
  35. package/dist/contract-ts.d.mts +4 -4
  36. package/dist/contract-ts.mjs +4 -4
  37. package/dist/contract-ts__config-types.d.mts +1 -1
  38. package/dist/contract-ts__config-types.mjs +1 -1
  39. package/dist/contract-ts__contract-builder.d.mts +3 -3
  40. package/dist/contract-ts__contract-builder.mjs +3 -3
  41. package/dist/{contract-view-CPHxoAEX.d.mts → contract-view-BTFdP8wh.d.mts} +2 -2
  42. package/dist/{contract-view-CPHxoAEX.d.mts.map → contract-view-BTFdP8wh.d.mts.map} +1 -1
  43. package/dist/contract.d.mts +9 -9
  44. package/dist/contract.mjs +2 -2
  45. package/dist/contract__contract-view.d.mts +1 -1
  46. package/dist/contract__factories.d.mts +1 -1
  47. package/dist/contract__index-type-validation.d.mts +1 -1
  48. package/dist/contract__resolve-storage-table.d.mts +1 -1
  49. package/dist/contract__types.d.mts +4 -4
  50. package/dist/contract__types.mjs +2 -2
  51. package/dist/contract__validators.d.mts +1 -1
  52. package/dist/{control-2-eFP31F.mjs → control-DMbej03E.mjs} +15 -14
  53. package/dist/control-DMbej03E.mjs.map +1 -0
  54. package/dist/{control-adapter-C99J7aEF-B3_IhgH6.d.mts → control-adapter-C4_cgvzB-BwZx3_VD.d.mts} +11 -7
  55. package/dist/control-adapter-C4_cgvzB-BwZx3_VD.d.mts.map +1 -0
  56. package/dist/control-adapter-CDDbpxyt.d.mts +1 -0
  57. package/dist/{control-DmVQjyZd.d.mts → control-k5_z0qcA.d.mts} +22 -20
  58. package/dist/{control-DmVQjyZd.d.mts.map → control-k5_z0qcA.d.mts.map} +1 -1
  59. package/dist/{db-DLjWu9-f-COdzEg7b.d.mts → db-DLjWu9-f-BWg-lrGV.d.mts} +8 -8
  60. package/dist/{db-DLjWu9-f-COdzEg7b.d.mts.map → db-DLjWu9-f-BWg-lrGV.d.mts.map} +1 -1
  61. package/dist/{ddl-types-DD-i-Uj9-BRqLNUDm.d.mts → ddl-types-B23QEzDx-ridB7leA.d.mts} +5 -5
  62. package/dist/{ddl-types-DD-i-Uj9-BRqLNUDm.d.mts.map → ddl-types-B23QEzDx-ridB7leA.d.mts.map} +1 -1
  63. package/dist/{ddl-types-DOgOmDOh-Cs_MY05h.mjs → ddl-types-B700dqv--DOnQueWA.mjs} +3 -3
  64. package/dist/ddl-types-B700dqv--DOnQueWA.mjs.map +1 -0
  65. package/dist/{derived-checks-DPdD01O0-DNBs1ZDA.d.mts → derived-checks-DPdD01O0-zXZEuy5P.d.mts} +3 -3
  66. package/dist/{derived-checks-DPdD01O0-DNBs1ZDA.d.mts.map → derived-checks-DPdD01O0-zXZEuy5P.d.mts.map} +1 -1
  67. package/dist/{derived-checks-C6psACIj-BSBDa2_9.mjs → derived-checks-a_OpD3OE-BLAb_lZ9.mjs} +160 -109
  68. package/dist/derived-checks-a_OpD3OE-BLAb_lZ9.mjs.map +1 -0
  69. package/dist/{diff-DFOiwUHg.d.mts → diff-C_zQQTgw.d.mts} +6 -6
  70. package/dist/{diff-DFOiwUHg.d.mts.map → diff-C_zQQTgw.d.mts.map} +1 -1
  71. package/dist/{dist-ChyuAdtP.mjs → dist-DeiKZwAD.mjs} +4 -35
  72. package/dist/dist-DeiKZwAD.mjs.map +1 -0
  73. package/dist/{expression-Dl5WvxCA.d.mts → expression-B95FOcDX.d.mts} +7 -7
  74. package/dist/{expression-Dl5WvxCA.d.mts.map → expression-B95FOcDX.d.mts.map} +1 -1
  75. package/dist/{factories-P3qBQhO-.d.mts → factories-TIM9dI6S.d.mts} +2 -2
  76. package/dist/{factories-P3qBQhO-.d.mts.map → factories-TIM9dI6S.d.mts.map} +1 -1
  77. package/dist/family.d.mts +12 -12
  78. package/dist/family.mjs +4 -4
  79. package/dist/family__control-adapter.d.mts +2 -2
  80. package/dist/family__control.d.mts +4 -4
  81. package/dist/family__control.mjs +2 -2
  82. package/dist/family__diff.d.mts +2 -2
  83. package/dist/family__diff.mjs +1 -1
  84. package/dist/family__ir.d.mts +1 -1
  85. package/dist/family__ir.mjs +1 -1
  86. package/dist/family__migration.d.mts +1 -1
  87. package/dist/family__pack.d.mts +1 -1
  88. package/dist/family__pack.mjs +1 -1
  89. package/dist/family__pack.mjs.map +1 -1
  90. package/dist/family__psl-build.mjs +1 -1
  91. package/dist/family__runtime.d.mts +2 -2
  92. package/dist/{index-Cef8iy1o.d.mts → index-DrUd8HwS.d.mts} +3 -3
  93. package/dist/{index-Cef8iy1o.d.mts.map → index-DrUd8HwS.d.mts.map} +1 -1
  94. package/dist/{index-BNL2_qQY.d.mts → index-DrWMh8L0.d.mts} +11 -11
  95. package/dist/{index-BNL2_qQY.d.mts.map → index-DrWMh8L0.d.mts.map} +1 -1
  96. package/dist/{index-type-validation-CZ5L2lli.d.mts → index-type-validation-BAQWs-c_.d.mts} +3 -3
  97. package/dist/{index-type-validation-CZ5L2lli.d.mts.map → index-type-validation-BAQWs-c_.d.mts.map} +1 -1
  98. package/dist/{interpreter-Bcc3MIC5-C4dZrobt.mjs → interpreter-j1ewAXPb-BbCjJ0ta.mjs} +299 -157
  99. package/dist/interpreter-j1ewAXPb-BbCjJ0ta.mjs.map +1 -0
  100. package/dist/{ir-BJ-dsbe-.d.mts → ir-DI4cwMsy.d.mts} +3 -3
  101. package/dist/{ir-BJ-dsbe-.d.mts.map → ir-DI4cwMsy.d.mts.map} +1 -1
  102. package/dist/middleware-C6T9FExV.d.mts +1 -0
  103. package/dist/{middleware-CuGBptK0-UwVChCr2.d.mts → middleware-CuGBptK0-CGDI6sQU.d.mts} +2 -2
  104. package/dist/{middleware-CuGBptK0-UwVChCr2.d.mts.map → middleware-CuGBptK0-CGDI6sQU.d.mts.map} +1 -1
  105. package/dist/{migration-Csmr6bd8.d.mts → migration-CRsGI-9f.d.mts} +4 -4
  106. package/dist/{migration-Csmr6bd8.d.mts.map → migration-CRsGI-9f.d.mts.map} +1 -1
  107. package/dist/operations.d.mts +1 -1
  108. package/dist/orm-client.d.mts +14 -14
  109. package/dist/orm-client.mjs +4 -3
  110. package/dist/orm-client.mjs.map +1 -1
  111. package/dist/{pack-BUv79Jrr.d.mts → pack-DcSVDz7M.d.mts} +2 -2
  112. package/dist/{pack-BUv79Jrr.d.mts.map → pack-DcSVDz7M.d.mts.map} +1 -1
  113. package/dist/{plan-B7g2kDfQ-ZD3BfWYx.d.mts → plan-B7g2kDfQ-Do1iWC4q.d.mts} +4 -4
  114. package/dist/{plan-B7g2kDfQ-ZD3BfWYx.d.mts.map → plan-B7g2kDfQ-Do1iWC4q.d.mts.map} +1 -1
  115. package/dist/plan-BBBYfvlz.d.mts +2 -0
  116. package/dist/{prepared-statement-BHSj2pDk-D9a_Vwr-.d.mts → prepared-statement-BdsTSY7Y-ICyuLB7c.d.mts} +17 -17
  117. package/dist/{prepared-statement-BHSj2pDk-D9a_Vwr-.d.mts.map → prepared-statement-BdsTSY7Y-ICyuLB7c.d.mts.map} +1 -1
  118. package/dist/{psl-build-ph4eUJSB.mjs → psl-build-139T3MMA.mjs} +3 -3
  119. package/dist/{psl-build-ph4eUJSB.mjs.map → psl-build-139T3MMA.mjs.map} +1 -1
  120. package/dist/query-lane-context-B0R8L6W-.d.mts +1 -0
  121. package/dist/{query-lane-context-D6o9YrEV-BxW3-5e8.d.mts → query-lane-context-BSmWfohZ-QAWw_dXQ.d.mts} +6 -6
  122. package/dist/{query-lane-context-D6o9YrEV-BxW3-5e8.d.mts.map → query-lane-context-BSmWfohZ-QAWw_dXQ.d.mts.map} +1 -1
  123. package/dist/relational-core.d.mts +12 -12
  124. package/dist/relational-core.mjs +3 -3
  125. package/dist/relational-core__aggregate-descriptor-registry.d.mts +1 -1
  126. package/dist/relational-core__ast.d.mts +4 -4
  127. package/dist/relational-core__ast.mjs +3 -3
  128. package/dist/relational-core__codec-descriptor-registry.d.mts +4 -4
  129. package/dist/relational-core__codec-descriptor-registry.mjs +1 -1
  130. package/dist/relational-core__contract-free.d.mts +3 -3
  131. package/dist/relational-core__contract-free.mjs +1 -1
  132. package/dist/relational-core__contract-free.mjs.map +1 -1
  133. package/dist/relational-core__expression.d.mts +1 -1
  134. package/dist/relational-core__middleware.d.mts +2 -2
  135. package/dist/relational-core__plan.d.mts +3 -3
  136. package/dist/relational-core__query-lane-context.d.mts +2 -2
  137. package/dist/relational-core__types.d.mts +2 -2
  138. package/dist/{resolve-storage-table-Nyrgk4h8.d.mts → resolve-storage-table-DhgzQjow.d.mts} +2 -2
  139. package/dist/{resolve-storage-table-Nyrgk4h8.d.mts.map → resolve-storage-table-DhgzQjow.d.mts.map} +1 -1
  140. package/dist/{runtime-DgOeosYa.d.mts → runtime-I-W0bhvd.d.mts} +2 -2
  141. package/dist/{runtime-DgOeosYa.d.mts.map → runtime-I-W0bhvd.d.mts.map} +1 -1
  142. package/dist/runtime.d.mts +4 -4
  143. package/dist/runtime.mjs +6 -4
  144. package/dist/runtime.mjs.map +1 -1
  145. package/dist/runtime__internal__prepared-query.d.mts +1 -1
  146. package/dist/{schema-differ-DpG_gnur-3ciAcy28.d.mts → schema-differ-DpG_gnur-gLIPLPVI.d.mts} +3 -3
  147. package/dist/{schema-differ-DpG_gnur-3ciAcy28.d.mts.map → schema-differ-DpG_gnur-gLIPLPVI.d.mts.map} +1 -1
  148. package/dist/schema-ir.mjs +1 -1
  149. package/dist/schema-ir__types.mjs +1 -1
  150. package/dist/{schema-verify-DI0aJQ9d-Bgbmen10.mjs → schema-verify-DI0aJQ9d-DL-C6on7.mjs} +2 -2
  151. package/dist/{schema-verify-DI0aJQ9d-Bgbmen10.mjs.map → schema-verify-DI0aJQ9d-DL-C6on7.mjs.map} +1 -1
  152. package/dist/{sql-contract-serializer-C90xg7_q-DERDzTD5.mjs → sql-contract-serializer-C90xg7_q-DBJSt3MT.mjs} +2 -2
  153. package/dist/{sql-contract-serializer-C90xg7_q-DERDzTD5.mjs.map → sql-contract-serializer-C90xg7_q-DBJSt3MT.mjs.map} +1 -1
  154. package/dist/{sql-execution-plan-Db0j752I-faODNLY9.d.mts → sql-execution-plan-Db0j752I-uGUWy8sD.d.mts} +2 -2
  155. package/dist/{sql-execution-plan-Db0j752I-faODNLY9.d.mts.map → sql-execution-plan-Db0j752I-uGUWy8sD.d.mts.map} +1 -1
  156. package/dist/{sql-storage-8LqxeLAY-DH4DdUXx.d.mts → sql-storage-BSxD7_vv-C4ugLH39.d.mts} +10 -3
  157. package/dist/sql-storage-BSxD7_vv-C4ugLH39.d.mts.map +1 -0
  158. package/dist/{types-BFPRCYGW-CZrZyp1E.d.mts → types-BKJWoQ40-BzViF_9K.d.mts} +7 -7
  159. package/dist/{types-BFPRCYGW-CZrZyp1E.d.mts.map → types-BKJWoQ40-BzViF_9K.d.mts.map} +1 -1
  160. package/dist/{types-D8Se4rnB.mjs → types-BmXzMDQL.mjs} +9 -2
  161. package/dist/types-BmXzMDQL.mjs.map +1 -0
  162. package/dist/{types-C36_3E6_.d.mts → types-BoMDdzjD.d.mts} +3 -3
  163. package/dist/{types-C36_3E6_.d.mts.map → types-BoMDdzjD.d.mts.map} +1 -1
  164. package/dist/types-BsUJ1jWE.d.mts +1 -0
  165. package/dist/{types-DFJNPLXY-DyYKIhXA.d.mts → types-C0VMsES6-BLOPdA8Y.d.mts} +10 -10
  166. package/dist/{types-DFJNPLXY-DyYKIhXA.d.mts.map → types-C0VMsES6-BLOPdA8Y.d.mts.map} +1 -1
  167. package/dist/{types-yyhkYQNT-Dmoq-giA.mjs → types-C5QzgUrH-B7IJM6qN.mjs} +8 -14
  168. package/dist/types-C5QzgUrH-B7IJM6qN.mjs.map +1 -0
  169. package/dist/{types-BDUG29Df-LE85dIXP.d.mts → types-DTUyRqZv-DLh98w8w.d.mts} +3 -3
  170. package/dist/{types-BDUG29Df-LE85dIXP.d.mts.map → types-DTUyRqZv-DLh98w8w.d.mts.map} +1 -1
  171. package/dist/{types-Yui2yFf6-Dnc7RNUD.d.mts → types-Yui2yFf6-DQkiEr9B.d.mts} +2 -2
  172. package/dist/{types-Yui2yFf6-Dnc7RNUD.d.mts.map → types-Yui2yFf6-DQkiEr9B.d.mts.map} +1 -1
  173. package/dist/{validators-CJSyNFS4.d.mts → validators-CZNulH-_.d.mts} +3 -3
  174. package/dist/{validators-CJSyNFS4.d.mts.map → validators-CZNulH-_.d.mts.map} +1 -1
  175. package/package.json +18 -18
  176. package/dist/ast-B53rACdv.d.mts.map +0 -1
  177. package/dist/ast-CJd4157-.mjs.map +0 -1
  178. package/dist/authoring-type-constructors-DQZEX4Sb-D6uFhwhG.mjs.map +0 -1
  179. package/dist/codec-descriptor-registry-Cj-tqpFL.mjs.map +0 -1
  180. package/dist/contract-builder-6ujqQuj-.d.mts.map +0 -1
  181. package/dist/contract-builder-vmb0E3SP.mjs.map +0 -1
  182. package/dist/control-2-eFP31F.mjs.map +0 -1
  183. package/dist/control-adapter-C99J7aEF-B3_IhgH6.d.mts.map +0 -1
  184. package/dist/control-adapter-kl-cOML5.d.mts +0 -1
  185. package/dist/ddl-types-DOgOmDOh-Cs_MY05h.mjs.map +0 -1
  186. package/dist/derived-checks-C6psACIj-BSBDa2_9.mjs.map +0 -1
  187. package/dist/dist-ChyuAdtP.mjs.map +0 -1
  188. package/dist/interpreter-Bcc3MIC5-C4dZrobt.mjs.map +0 -1
  189. package/dist/middleware-RUh4qBBg.d.mts +0 -1
  190. package/dist/plan-CVje8E5I.d.mts +0 -2
  191. package/dist/query-lane-context-D54z0tof.d.mts +0 -1
  192. package/dist/sql-storage-8LqxeLAY-DH4DdUXx.d.mts.map +0 -1
  193. package/dist/types-D8Se4rnB.mjs.map +0 -1
  194. package/dist/types-Dul4Za_W.d.mts +0 -1
  195. package/dist/types-yyhkYQNT-Dmoq-giA.mjs.map +0 -1
@@ -1,10 +1,10 @@
1
- import { c as SqlStorage } from "./sql-storage-8LqxeLAY-DH4DdUXx.mjs";
2
- import "./types-C36_3E6_.mjs";
1
+ import { c as SqlStorage } from "./sql-storage-BSxD7_vv-C4ugLH39.mjs";
2
+ import "./types-BoMDdzjD.mjs";
3
3
  import { y as SqlSchemaIRNode } from "./types-DinsvYdY-Dv_n3Tac.mjs";
4
4
  import "./types-BBT7jidC.mjs";
5
- import "./control-adapter-C99J7aEF-B3_IhgH6.mjs";
6
- import { n as CodecControlHooks } from "./types-BFPRCYGW-CZrZyp1E.mjs";
7
- import { t as SqlSchemaDiffFn } from "./schema-differ-DpG_gnur-3ciAcy28.mjs";
5
+ import "./control-adapter-C4_cgvzB-BwZx3_VD.mjs";
6
+ import { n as CodecControlHooks } from "./types-BKJWoQ40-BzViF_9K.mjs";
7
+ import { t as SqlSchemaDiffFn } from "./schema-differ-DpG_gnur-gLIPLPVI.mjs";
8
8
  import { Contract, ControlPolicy } from "@prisma/orm-framework/contract/types";
9
9
  import { TargetBoundComponentDescriptor } from "@prisma/orm-framework/components/components";
10
10
  import { DiffSubjectGranularity, SchemaDiffIssue, VerifierIssueCategory, VerifyDatabaseSchemaResult } from "@prisma/orm-framework/components/control";
@@ -101,4 +101,4 @@ interface VerifySqlSchemaByDiffInput {
101
101
  declare function verifySqlSchemaByDiff(input: VerifySqlSchemaByDiffInput): VerifyDatabaseSchemaResult;
102
102
  //#endregion
103
103
  export { VerifySqlSchemaByDiffInput as a, computeSqlDiffVerdict as c, StorageTypeVerdictInput as i, computeStorageTypeVerdict as l, SqlDiffVerdictInput as n, classifyDiffSubjectGranularity as o, StorageTypeVerdict as r, classifySqlDiffIssue as s, SqlDiffVerdict as t, verifySqlSchemaByDiff as u };
104
- //# sourceMappingURL=diff-DFOiwUHg.d.mts.map
104
+ //# sourceMappingURL=diff-C_zQQTgw.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"diff-DFOiwUHg.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/diff.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;iBAmBiB,+BAA+B,OAAO,iBAAiB,gBAAgB,qBAAqB,yBAAyB;;;;;;;;;;;;;iBAarH,qBAAqB,OAAO,iBAAiB,gBAAgB,qBAAqB,yBAAyB;UAClH;;WAEC,iBAAiB;;WAEjB,uBAAuB,OAAO,oBAAoB;WAClD;WACA,sBAAsB;;WAEtB,gBAAgB,qBAAqB;;UAEtC;WACC,mBAAmB;WACnB,mBAAmB;;;;;;;;;iBASb,sBAAsB,OAAO,sBAAsB;UAC1D;WACC,UAAU,SAAS;;;;;;;WAOnB,gBAAgB;aACd,QAAQ;;WAEV,YAAY,oBAAoB;;;;;;;;;UASjC;WACC,mBAAmB;WACnB,mBAAmB;;iBAEb,0BAA0B,OAAO,0BAA0B;UAClE;WACC,UAAU,SAAS;WACnB,QAAQ;WACR;WACA,qBAAqB,cAAc;;WAEnC,YAAY;;WAEZ,gBAAgB,qBAAqB;;;;;;;;;iBAS/B,sBAAsB,OAAO,6BAA6B"}
1
+ {"version":3,"file":"diff-C_zQQTgw.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/diff.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;iBAmBiB,+BAA+B,OAAO,iBAAiB,gBAAgB,qBAAqB,yBAAyB;;;;;;;;;;;;;iBAarH,qBAAqB,OAAO,iBAAiB,gBAAgB,qBAAqB,yBAAyB;UAClH;;WAEC,iBAAiB;;WAEjB,uBAAuB,OAAO,oBAAoB;WAClD;WACA,sBAAsB;;WAEtB,gBAAgB,qBAAqB;;UAEtC;WACC,mBAAmB;WACnB,mBAAmB;;;;;;;;;iBASb,sBAAsB,OAAO,sBAAsB;UAC1D;WACC,UAAU,SAAS;;;;;;;WAOnB,gBAAgB;aACd,QAAQ;;WAEV,YAAY,oBAAoB;;;;;;;;;UASjC;WACC,mBAAmB;WACnB,mBAAmB;;iBAEb,0BAA0B,OAAO,0BAA0B;UAClE;WACC,UAAU,SAAS;WACnB,QAAQ;WACR;WACA,qBAAqB,cAAc;;WAEnC,YAAY;;WAEZ,gBAAgB,qBAAqB;;;;;;;;;iBAS/B,sBAAsB,OAAO,6BAA6B"}
@@ -1,3 +1,4 @@
1
+ import { d as resolvedTypeParams } from "./types-BmXzMDQL.mjs";
1
2
  import { structuredError } from "@prisma/orm-framework/utils/structured-error";
2
3
  import { UNBOUND_NAMESPACE_ID, entityAt } from "@prisma/orm-framework/components/ir";
3
4
  import { settleAggregateOverloads } from "@prisma/orm-framework/components/components";
@@ -215,30 +216,6 @@ const sqlEmission = {
215
216
  }
216
217
  return `{ ${storageParts.join("; ")} }`;
217
218
  },
218
- resolveFieldTypeParams(_modelName, fieldName, model, contract) {
219
- const sqlModel = model;
220
- const storageField = sqlModel.storage?.fields?.[fieldName];
221
- if (!storageField) return void 0;
222
- const storage = contract.storage;
223
- if (!storage) return void 0;
224
- const tableName = sqlModel.storage.table;
225
- const storageNamespaceId = sqlModel.storage.namespaceId;
226
- if (!storageNamespaceId) return void 0;
227
- const table = entityAt(storage, {
228
- namespaceId: storageNamespaceId,
229
- entityKind: "table",
230
- entityName: tableName
231
- });
232
- if (!table) return void 0;
233
- const column = table.columns[storageField.column];
234
- if (!column) return void 0;
235
- if (column.typeRef) {
236
- const typeInstance = storage.types?.[column.typeRef];
237
- if (typeInstance === void 0) return void 0;
238
- return typeInstance.typeParams;
239
- }
240
- return column.typeParams;
241
- },
242
219
  resolveFieldValueSet(_modelName, fieldName, model, contract) {
243
220
  const sqlModel = blindCast(model);
244
221
  const storageField = sqlModel.storage?.fields?.[fieldName];
@@ -305,16 +282,8 @@ const sqlEmission = {
305
282
  ].join("\n");
306
283
  }
307
284
  };
308
- function columnTypeParams(storage, column) {
309
- if (column.typeRef) {
310
- const typeInstance = storage.types?.[column.typeRef];
311
- if (typeInstance === void 0) return void 0;
312
- return blindCast(typeInstance).typeParams;
313
- }
314
- return column.typeParams;
315
- }
316
285
  function renderRefinedCodecType(column, side, params, codecLookup) {
317
- if (codecLookup && params && Object.keys(params).length > 0) {
286
+ if (codecLookup && params) {
318
287
  const rendered = side === "output" ? codecLookup.renderOutputTypeFor(column.codecId, params) : codecLookup.renderInputTypeFor?.(column.codecId, params);
319
288
  if (rendered && isSafeTypeExpression(rendered)) return rendered;
320
289
  }
@@ -330,7 +299,7 @@ function computeColumnType(storage, column, side, codecLookup) {
330
299
  });
331
300
  base = valueSet ? renderValueSetType(valueSet.values, column.codecId, side, codecLookup) : void 0;
332
301
  }
333
- if (base === void 0) base = renderRefinedCodecType(column, side, columnTypeParams(storage, column), codecLookup);
302
+ if (base === void 0) base = renderRefinedCodecType(column, side, resolvedTypeParams(column, storage.types), codecLookup);
334
303
  if (column.many === true) base = `ReadonlyArray<${base}>`;
335
304
  return column.nullable ? `${base} | null` : base;
336
305
  }
@@ -465,4 +434,4 @@ function generateStorageNamespacesType(namespaces) {
465
434
  //#endregion
466
435
  export { sqlEmission as t };
467
436
 
468
- //# sourceMappingURL=dist-ChyuAdtP.mjs.map
437
+ //# sourceMappingURL=dist-DeiKZwAD.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dist-DeiKZwAD.mjs","names":[],"sources":["../../../../2-sql/3-tooling/emitter/dist/index.mjs"],"sourcesContent":["import { renderValueSetType, serializeNamespaceId, serializeObjectKey, serializeValue } from \"@internal/emitter/domain-type-generation\";\nimport { isSafeTypeExpression } from \"@internal/emitter/type-expression-safety\";\nimport { settleAggregateOverloads } from \"@internal/framework-components/components\";\nimport { UNBOUND_NAMESPACE_ID, entityAt } from \"@internal/framework-components/ir\";\nimport { resolvedTypeParams } from \"@internal/sql-contract/types\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { structuredError } from \"@internal/utils/structured-error\";\n//#region src/errors.ts\nfunction sqlEmitterError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\nfunction sqlEmitterValidationError(message, meta) {\n\treturn sqlEmitterError(\"CONTRACT.VALIDATION_FAILED\", message, {\n\t\twhy: \"The contract given to the SQL emitter failed structural validation.\",\n\t\tfix: \"Regenerate the contract from its authoring source; do not hand-edit contract JSON.\",\n\t\tmeta\n\t});\n}\n//#endregion\n//#region src/index.ts\n/**\n* Render the aggregate result map from the overloads the stack contributes, settled against the codecs it contributes.\n*\n* Every emitted row is keyed by a contributed codec, whichever rung settled it. Trait fallbacks reach only the contributed codecs to begin with, and an exact overload naming an uncontributed codec is dropped here — settling keeps such a row, because naming a codec id is a claim that stands on its own and the runtime honours it for whatever ref reaches it, but a target may register codecs its adapter withholds, and an emitted type over one of those would advertise availability no contract can use.\n*\n* Only the two rungs that name a codec are materialized; the input-agnostic overload stays a single row, which a consumer reads when no per-codec row claims its input.\n*/\nfunction generateAggregateTypes(options) {\n\tconst descriptors = options?.aggregateDescriptors ?? [];\n\tconst codecs = options?.codecDescriptors ?? [];\n\tif (descriptors.length === 0) return \"Record<string, never>\";\n\tconst contributedIds = new Set(codecs.map((codec) => codec.codecId));\n\tconst settled = settleAggregateOverloads(descriptors, codecs);\n\tconst ambiguity = settled.ambiguities[0];\n\tif (ambiguity !== void 0) throw sqlEmitterError(\"CONTRACT.AGGREGATE_DESCRIPTOR_AMBIGUOUS\", `Aggregate '${ambiguity.operation}' has no single result type over codec '${ambiguity.codecId}': traits ${ambiguity.traits.join(\", \")} all claim it.`, {\n\t\twhy: \"Emitted result types must name one codec per aggregate and input.\",\n\t\tfix: `Contribute an exact descriptor for '${ambiguity.operation}' over '${ambiguity.codecId}', or narrow the overlapping trait contributions.`,\n\t\tmeta: {\n\t\t\toperation: ambiguity.operation,\n\t\t\tcodecId: ambiguity.codecId,\n\t\t\ttraits: ambiguity.traits\n\t\t}\n\t});\n\treturn `{ ${[...settled.operations].sort(([left], [right]) => left.localeCompare(right)).map(([operation, entry]) => {\n\t\tconst members = [`readonly byCodec: { ${[...entry.byCodecId].filter(([codecId]) => contributedIds.has(codecId)).sort(([left], [right]) => left.localeCompare(right)).map(([codecId, descriptor]) => {\n\t\t\treturn `readonly ${serializeObjectKey(codecId)}: ${renderAggregateResult(descriptor, codecId, contributedIds)}`;\n\t\t}).join(\"; \")} }`];\n\t\tconst withoutInput = entry.noInput ?? entry.anyInput;\n\t\tif (withoutInput !== void 0) members.push(`readonly withoutInput: ${renderAggregateResult(withoutInput, void 0, contributedIds)}`);\n\t\tif (entry.anyInput !== void 0) members.push(`readonly anyInput: ${renderAggregateResult(entry.anyInput, void 0, contributedIds)}`);\n\t\treturn `readonly ${serializeObjectKey(operation)}: { ${members.join(\"; \")} }`;\n\t}).join(\"; \")} }`;\n}\n/** One row of the map: the codec the result carries, and whether it can be null. A `self` result carries the codec of the input it was resolved for. */\nfunction renderAggregateResult(descriptor, inputCodecId, contributedIds) {\n\tconst output = descriptor.output.kind === \"self\" ? inputCodecId : descriptor.output.codecId;\n\tif (output === void 0) throw sqlEmitterError(\"CONTRACT.AGGREGATE_DESCRIPTOR_AMBIGUOUS\", `Aggregate '${descriptor.operation}' declares its own input's codec as its result but answers calls that carry no input.`, {\n\t\twhy: \"A result that reuses its input needs an input to reuse.\",\n\t\tfix: \"Name the result codec on the descriptor.\",\n\t\tmeta: { operation: descriptor.operation }\n\t});\n\tif (!contributedIds.has(output)) throw sqlEmitterError(\"CONTRACT.AGGREGATE_OUTPUT_CODEC_MISSING\", `Aggregate '${descriptor.operation}' names result codec '${output}', which the stack does not contribute.`, {\n\t\twhy: \"An emitted result type names a codec in the contract codec map; a codec the stack does not contribute has no emitted type to name.\",\n\t\tfix: \"Contribute the codec, or declare a result codec the stack contributes.\",\n\t\tmeta: {\n\t\t\toperation: descriptor.operation,\n\t\t\toutputCodecId: output\n\t\t}\n\t});\n\treturn `{ readonly output: ${serializeValue(output)}; readonly nullable: ${descriptor.nullable} }`;\n}\nfunction serializeTypeParamsLiteral(params) {\n\tif (!params || Object.keys(params).length === 0) return \"Record<string, never>\";\n\tconst entries = [];\n\tfor (const [key, value] of Object.entries(params)) entries.push(`readonly ${serializeObjectKey(key)}: ${serializeValue(value)}`);\n\treturn `{ ${entries.join(\"; \")} }`;\n}\nconst sqlEmission = {\n\tid: \"sql\",\n\tvalidateTypes(contract, _ctx) {\n\t\tconst storage = contract.storage;\n\t\tif (!storage?.namespaces) return;\n\t\tconst typeIdRegex = /^([^/]+)\\/([^@]+)@(\\d+)$/;\n\t\tfor (const ns of Object.values(storage.namespaces)) for (const [tableName, table] of Object.entries(ns.entries.table ?? {})) for (const [colName, colUnknown] of Object.entries(table.columns)) {\n\t\t\tconst codecId = colUnknown.codecId;\n\t\t\tif (!codecId) throw sqlEmitterValidationError(`Column \"${colName}\" in table \"${tableName}\" is missing codecId`, {\n\t\t\t\ttable: tableName,\n\t\t\t\tcolumn: colName\n\t\t\t});\n\t\t\tif (!codecId.match(typeIdRegex)?.[1]) throw sqlEmitterValidationError(`Column \"${colName}\" in table \"${tableName}\" has invalid codec ID format \"${codecId}\". Expected format: ns/name@version`, {\n\t\t\t\ttable: tableName,\n\t\t\t\tcolumn: colName,\n\t\t\t\tcodecId\n\t\t\t});\n\t\t}\n\t},\n\tvalidateStructure(contract) {\n\t\tif (contract.targetFamily !== \"sql\") throw sqlEmitterValidationError(`Expected targetFamily \"sql\", got \"${contract.targetFamily}\"`, { targetFamily: contract.targetFamily });\n\t\tconst storage = contract.storage;\n\t\tif (!storage?.namespaces) throw sqlEmitterValidationError(\"SQL contract must have storage.namespaces\", {});\n\t\tconst tableNamesSeenAcrossNamespaces = /* @__PURE__ */ new Map();\n\t\tfor (const [nsId, ns] of Object.entries(storage.namespaces)) for (const tableName of Object.keys(ns.entries.table ?? {})) {\n\t\t\tconst existingNs = tableNamesSeenAcrossNamespaces.get(tableName);\n\t\t\tif (existingNs !== void 0 && existingNs !== nsId) throw sqlEmitterError(\"CONTRACT.NAME_DUPLICATE\", `Duplicate table name \"${tableName}\" in namespaces \"${existingNs}\" and \"${nsId}\"`, {\n\t\t\t\twhy: \"Two SQL namespaces declare a table with the same name, which is ambiguous for emission.\",\n\t\t\t\tfix: \"Rename one of the tables so every table name is unique across namespaces.\",\n\t\t\t\tmeta: {\n\t\t\t\t\ttable: tableName,\n\t\t\t\t\tnamespaces: [existingNs, nsId]\n\t\t\t\t}\n\t\t\t});\n\t\t\ttableNamesSeenAcrossNamespaces.set(tableName, nsId);\n\t\t}\n\t\tconst tableNames = /* @__PURE__ */ new Set();\n\t\tfor (const ns of Object.values(storage.namespaces)) for (const t of Object.keys(ns.entries.table ?? {})) tableNames.add(t);\n\t\tfor (const [namespaceId, domainNs] of Object.entries(contract.domain.namespaces)) {\n\t\t\tconst models = domainNs.models;\n\t\t\tfor (const [modelName, model] of Object.entries(models)) {\n\t\t\t\tconst qualifiedName = `${namespaceId}:${modelName}`;\n\t\t\t\tif (!model.storage?.table) throw sqlEmitterValidationError(`Model \"${qualifiedName}\" is missing storage.table`, { model: qualifiedName });\n\t\t\t\tif (!model.storage.namespaceId) throw sqlEmitterValidationError(`Model \"${qualifiedName}\" is missing storage.namespaceId`, { model: qualifiedName });\n\t\t\t\tif (model.storage.namespaceId !== namespaceId) throw sqlEmitterValidationError(`Model \"${qualifiedName}\" storage.namespaceId \"${model.storage.namespaceId}\" does not match domain namespace \"${namespaceId}\"`, {\n\t\t\t\t\tmodel: qualifiedName,\n\t\t\t\t\tstorageNamespaceId: model.storage.namespaceId,\n\t\t\t\t\tdomainNamespaceId: namespaceId\n\t\t\t\t});\n\t\t\t\tconst tableName = model.storage.table;\n\t\t\t\tconst table = entityAt(storage, {\n\t\t\t\t\tnamespaceId,\n\t\t\t\t\tentityKind: \"table\",\n\t\t\t\t\tentityName: tableName\n\t\t\t\t});\n\t\t\t\tif (!table) throw sqlEmitterValidationError(`Model \"${qualifiedName}\" references non-existent table \"${namespaceId}.${tableName}\"`, {\n\t\t\t\t\tmodel: qualifiedName,\n\t\t\t\t\ttable: `${namespaceId}.${tableName}`\n\t\t\t\t});\n\t\t\t\tconst columnNames = new Set(Object.keys(table.columns));\n\t\t\t\tconst storageFields = model.storage.fields;\n\t\t\t\tif (!storageFields || Object.keys(storageFields).length === 0) throw sqlEmitterValidationError(`Model \"${qualifiedName}\" is missing storage.fields`, { model: qualifiedName });\n\t\t\t\tfor (const [fieldName, field] of Object.entries(storageFields)) {\n\t\t\t\t\tif (!field.column) throw sqlEmitterValidationError(`Model \"${qualifiedName}\" field \"${fieldName}\" is missing column property`, {\n\t\t\t\t\t\tmodel: qualifiedName,\n\t\t\t\t\t\tfield: fieldName\n\t\t\t\t\t});\n\t\t\t\t\tif (!columnNames.has(field.column)) throw sqlEmitterValidationError(`Model \"${qualifiedName}\" field \"${fieldName}\" references non-existent column \"${field.column}\" in table \"${tableName}\"`, {\n\t\t\t\t\t\tmodel: qualifiedName,\n\t\t\t\t\t\tfield: fieldName,\n\t\t\t\t\t\tcolumn: field.column,\n\t\t\t\t\t\ttable: tableName\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tif (!model.relations || typeof model.relations !== \"object\") throw sqlEmitterValidationError(`Model \"${qualifiedName}\" is missing required field \"relations\" (must be an object)`, { model: qualifiedName });\n\t\t\t}\n\t\t}\n\t\tfor (const ns of Object.values(storage.namespaces)) for (const [tableName, table] of Object.entries(ns.entries.table ?? {})) {\n\t\t\tconst columnNames = new Set(Object.keys(table.columns));\n\t\t\tif (!Array.isArray(table.uniques)) throw sqlEmitterValidationError(`Table \"${tableName}\" is missing required field \"uniques\" (must be an array)`, { table: tableName });\n\t\t\tif (!Array.isArray(table.indexes)) throw sqlEmitterValidationError(`Table \"${tableName}\" is missing required field \"indexes\" (must be an array)`, { table: tableName });\n\t\t\tif (!Array.isArray(table.foreignKeys)) throw sqlEmitterValidationError(`Table \"${tableName}\" is missing required field \"foreignKeys\" (must be an array)`, { table: tableName });\n\t\t\tif (table.primaryKey) {\n\t\t\t\tfor (const colName of table.primaryKey.columns) if (!columnNames.has(colName)) throw sqlEmitterValidationError(`Table \"${tableName}\" primaryKey references non-existent column \"${colName}\"`, {\n\t\t\t\t\ttable: tableName,\n\t\t\t\t\tcolumn: colName\n\t\t\t\t});\n\t\t\t}\n\t\t\tfor (const unique of table.uniques) for (const colName of unique.columns) if (!columnNames.has(colName)) throw sqlEmitterValidationError(`Table \"${tableName}\" unique constraint references non-existent column \"${colName}\"`, {\n\t\t\t\ttable: tableName,\n\t\t\t\tcolumn: colName\n\t\t\t});\n\t\t\tfor (const index of table.indexes) for (const colName of index.columns) if (!columnNames.has(colName)) throw sqlEmitterValidationError(`Table \"${tableName}\" index references non-existent column \"${colName}\"`, {\n\t\t\t\ttable: tableName,\n\t\t\t\tcolumn: colName\n\t\t\t});\n\t\t\tfor (const fk of table.foreignKeys) {\n\t\t\t\tfor (const colName of fk.source.columns) if (!columnNames.has(colName)) throw sqlEmitterValidationError(`Table \"${tableName}\" foreignKey references non-existent column \"${colName}\"`, {\n\t\t\t\t\ttable: tableName,\n\t\t\t\t\tcolumn: colName\n\t\t\t\t});\n\t\t\t\tconst referencedTable = entityAt(storage, {\n\t\t\t\t\tnamespaceId: fk.target.namespaceId,\n\t\t\t\t\tentityKind: \"table\",\n\t\t\t\t\tentityName: fk.target.tableName\n\t\t\t\t});\n\t\t\t\tif (!referencedTable) throw sqlEmitterValidationError(`Table \"${tableName}\" foreignKey references non-existent table \"${fk.target.tableName}\" in namespace \"${fk.target.namespaceId}\"`, {\n\t\t\t\t\ttable: tableName,\n\t\t\t\t\ttargetTable: fk.target.tableName,\n\t\t\t\t\ttargetNamespace: fk.target.namespaceId\n\t\t\t\t});\n\t\t\t\tconst referencedColumnNames = new Set(Object.keys(referencedTable.columns));\n\t\t\t\tfor (const colName of fk.target.columns) if (!referencedColumnNames.has(colName)) throw sqlEmitterValidationError(`Table \"${tableName}\" foreignKey references non-existent column \"${colName}\" in table \"${fk.target.tableName}\"`, {\n\t\t\t\t\ttable: tableName,\n\t\t\t\t\tcolumn: colName,\n\t\t\t\t\ttargetTable: fk.target.tableName\n\t\t\t\t});\n\t\t\t\tif (fk.source.columns.length !== fk.target.columns.length) throw sqlEmitterValidationError(`Table \"${tableName}\" foreignKey column count (${fk.source.columns.length}) does not match referenced column count (${fk.target.columns.length})`, {\n\t\t\t\t\ttable: tableName,\n\t\t\t\t\tsourceColumnCount: fk.source.columns.length,\n\t\t\t\t\ttargetColumnCount: fk.target.columns.length\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t},\n\tgenerateStorageType(contract, storageHashTypeName) {\n\t\tconst storage = contract.storage;\n\t\tconst namespacesType = generateStorageNamespacesType(storage.namespaces);\n\t\tconst docTypes = generateDocumentScopedStorageTypesType(storage.types);\n\t\treturn `{ readonly namespaces: ${namespacesType}${docTypes === void 0 ? \"\" : `; readonly types: ${docTypes}`}; readonly storageHash: ${storageHashTypeName} }`;\n\t},\n\tgenerateModelStorageType(_modelName, model) {\n\t\tconst sqlModel = model;\n\t\tconst tableName = sqlModel.storage.table;\n\t\tconst storageFields = sqlModel.storage.fields;\n\t\tconst storageParts = [`readonly table: ${serializeValue(tableName)}`, `readonly namespaceId: ${serializeValue(sqlModel.storage.namespaceId)}`];\n\t\tif (Object.keys(storageFields).length > 0) {\n\t\t\tconst fieldParts = [];\n\t\t\tfor (const [fieldName, field] of Object.entries(storageFields)) fieldParts.push(`readonly ${serializeObjectKey(fieldName)}: { readonly column: ${serializeValue(field.column)} }`);\n\t\t\tstorageParts.push(`readonly fields: { ${fieldParts.join(\"; \")} }`);\n\t\t}\n\t\treturn `{ ${storageParts.join(\"; \")} }`;\n\t},\n\tresolveFieldValueSet(_modelName, fieldName, model, contract) {\n\t\tconst sqlModel = blindCast(model);\n\t\tconst storageField = sqlModel.storage?.fields?.[fieldName];\n\t\tif (!storageField) return void 0;\n\t\tconst storage = blindCast(contract.storage);\n\t\tif (!storage) return void 0;\n\t\tconst storageNamespaceId = sqlModel.storage.namespaceId;\n\t\tif (!storageNamespaceId) return void 0;\n\t\tconst column = entityAt(storage, {\n\t\t\tnamespaceId: storageNamespaceId,\n\t\t\tentityKind: \"table\",\n\t\t\tentityName: sqlModel.storage.table\n\t\t})?.columns[storageField.column];\n\t\tif (!column?.valueSet) return void 0;\n\t\tconst valueSet = entityAt(storage, {\n\t\t\tnamespaceId: column.valueSet.namespaceId,\n\t\t\tentityKind: column.valueSet.entityKind,\n\t\t\tentityName: column.valueSet.entityName\n\t\t});\n\t\tif (!valueSet) return void 0;\n\t\treturn {\n\t\t\tencodedValues: valueSet.values,\n\t\t\tcodecId: column.codecId\n\t\t};\n\t},\n\tgetStorageTypeExports(contract, codecLookup) {\n\t\tconst storage = blindCast(contract.storage);\n\t\tif (!storage?.namespaces) return void 0;\n\t\tconst outputMap = generateStorageColumnTypesMap(storage, \"output\", codecLookup);\n\t\tconst inputMap = generateStorageColumnTypesMap(storage, \"input\", codecLookup);\n\t\treturn [`export type StorageColumnTypes = ${outputMap};`, `export type StorageColumnInputTypes = ${inputMap};`].join(\"\\n\");\n\t},\n\tgetFamilyImports(resolveImportSpecifier) {\n\t\treturn [\n\t\t\t\"import type {\",\n\t\t\t\" ContractWithTypeMaps,\",\n\t\t\t\" RelationKeys,\",\n\t\t\t\" TypeMaps as TypeMapsType,\",\n\t\t\t`} from '${resolveImportSpecifier(\"@internal/sql-contract/types\")}';`\n\t\t];\n\t},\n\tgetFamilyTypeAliases(options) {\n\t\tconst queryOperationAliases = (options?.queryOperationTypeImports ?? []).filter((imp) => imp.named === \"QueryOperationTypes\").map((imp) => `${imp.alias}<CodecTypes>`);\n\t\treturn [\n\t\t\t\"export type LaneCodecTypes = CodecTypes;\",\n\t\t\t`export type QueryOperationTypes = ${queryOperationAliases.length > 0 ? queryOperationAliases.join(\" & \") : \"Record<string, never>\"};`,\n\t\t\t`export type AggregateTypes = ${generateAggregateTypes(options)};`,\n\t\t\t\"type DefaultLiteralValue<CodecId extends string, Encoded> =\",\n\t\t\t\" CodecId extends keyof CodecTypes\",\n\t\t\t\" ? Encoded extends CodecTypes[CodecId][\\\"json\\\"]\",\n\t\t\t\" ? Encoded\",\n\t\t\t\" : CodecTypes[CodecId][\\\"json\\\"]\",\n\t\t\t\" : Encoded;\"\n\t\t].join(\"\\n\");\n\t},\n\tgetTypeMapsExpression() {\n\t\treturn \"TypeMapsType<CodecTypes, QueryOperationTypes, FieldOutputTypes, FieldInputTypes, StorageColumnTypes, StorageColumnInputTypes, AggregateTypes>\";\n\t},\n\tgetContractWrapper(contractBaseName, typeMapsName) {\n\t\treturn [\n\t\t\t`export type Contract = ContractWithTypeMaps<${contractBaseName}, ${typeMapsName}>;`,\n\t\t\t\"\",\n\t\t\t\"export type Namespaces = Contract['storage']['namespaces'];\"\n\t\t].join(\"\\n\");\n\t}\n};\nfunction renderRefinedCodecType(column, side, params, codecLookup) {\n\tif (codecLookup && params) {\n\t\tconst rendered = side === \"output\" ? codecLookup.renderOutputTypeFor(column.codecId, params) : codecLookup.renderInputTypeFor?.(column.codecId, params);\n\t\tif (rendered && isSafeTypeExpression(rendered)) return rendered;\n\t}\n\treturn `CodecTypes[${serializeValue(column.codecId)}][${serializeValue(side)}]`;\n}\nfunction computeColumnType(storage, column, side, codecLookup) {\n\tlet base;\n\tif (column.valueSet) {\n\t\tconst valueSet = entityAt(storage, {\n\t\t\tnamespaceId: column.valueSet.namespaceId,\n\t\t\tentityKind: column.valueSet.entityKind,\n\t\t\tentityName: column.valueSet.entityName\n\t\t});\n\t\tbase = valueSet ? renderValueSetType(valueSet.values, column.codecId, side, codecLookup) : void 0;\n\t}\n\tif (base === void 0) base = renderRefinedCodecType(column, side, resolvedTypeParams(column, storage.types), codecLookup);\n\tif (column.many === true) base = `ReadonlyArray<${base}>`;\n\treturn column.nullable ? `${base} | null` : base;\n}\nfunction generateStorageColumnTypesMap(storage, side, codecLookup) {\n\tconst namespaceEntries = Object.entries(storage.namespaces ?? {}).sort(([a], [b]) => a.localeCompare(b));\n\tif (namespaceEntries.length === 0) return \"Record<string, never>\";\n\tconst nsParts = [];\n\tfor (const [nsId, ns] of namespaceEntries) {\n\t\tconst tables = blindCast(ns.entries.table ?? {});\n\t\tconst tableEntries = Object.entries(tables).sort(([a], [b]) => a.localeCompare(b));\n\t\tconst tableParts = [];\n\t\tfor (const [tableName, table] of tableEntries) {\n\t\t\tconst colEntries = Object.entries(table.columns).sort(([a], [b]) => a.localeCompare(b));\n\t\t\tconst colParts = [];\n\t\t\tfor (const [colName, col] of colEntries) {\n\t\t\t\tconst colType = computeColumnType(storage, col, side, codecLookup);\n\t\t\t\tcolParts.push(`readonly ${serializeObjectKey(colName)}: ${colType}`);\n\t\t\t}\n\t\t\tconst colMap = colParts.length > 0 ? `{ ${colParts.join(\"; \")} }` : \"{}\";\n\t\t\ttableParts.push(`readonly ${serializeObjectKey(tableName)}: ${colMap}`);\n\t\t}\n\t\tconst tableMap = tableParts.length > 0 ? `{ ${tableParts.join(\"; \")} }` : \"{}\";\n\t\tnsParts.push(`readonly ${serializeObjectKey(nsId)}: ${tableMap}`);\n\t}\n\treturn `{ ${nsParts.join(\"; \")} }`;\n}\nfunction generateDocumentScopedStorageTypesType(types) {\n\tif (!types || Object.keys(types).length === 0) return;\n\tconst typeEntries = [];\n\tfor (const [typeName, typeInstance] of Object.entries(types)) {\n\t\tconst codecInstanceShape = typeInstance;\n\t\tif (typeof codecInstanceShape.codecId !== \"string\" || typeof codecInstanceShape.nativeType !== \"string\") throw sqlEmitterError(\"CONTRACT.TYPE_UNKNOWN\", `Unknown storage type kind for \"${typeName}\" in document-scoped storage.types; expected a codec-instance triple.`, {\n\t\t\twhy: \"A storage.types entry is not a codec-instance triple, so its column type cannot be emitted.\",\n\t\t\tfix: \"Regenerate the contract from its authoring source; storage.types entries must carry codecId and nativeType.\",\n\t\t\tmeta: { type: typeName }\n\t\t});\n\t\tconst codecId = serializeValue(codecInstanceShape.codecId);\n\t\tconst nativeType = serializeValue(codecInstanceShape.nativeType);\n\t\tconst typeParamsStr = serializeTypeParamsLiteral(codecInstanceShape.typeParams);\n\t\ttypeEntries.push(`readonly ${serializeObjectKey(typeName)}: { readonly kind: \"codec-instance\"; readonly codecId: ${codecId}; readonly nativeType: ${nativeType}; readonly typeParams: ${typeParamsStr} }`);\n\t}\n\treturn `{ ${typeEntries.join(\"; \")} }`;\n}\n/**\n* Literalizes the `valueSet` entries slot — a core SQL entity kind (alongside\n* `table`), not a pack-contributed one, so naming it here isn't a\n* family→target layering leak. This is the only non-`table` entries slot with\n* a type-level consumer (`db.nativeEnums`, `packages/3-extensions/postgres`):\n* pack-contributed slots (`role`, `policy`, `native_enum`, …) have none and\n* are not emitted.\n*/\nfunction generateValueSetBlockType(valueSets) {\n\treturn `{ ${Object.entries(valueSets).sort(([a], [b]) => a.localeCompare(b)).map(([name, valueSet]) => `readonly ${serializeObjectKey(name)}: ${serializeValue(valueSet)}`).join(\"; \")} }`;\n}\nfunction namespaceSerializedKind(ns) {\n\tconst kind = ns.kind;\n\tif (kind === \"schema\") return `readonly kind: \"${ns.id === UNBOUND_NAMESPACE_ID ? \"postgres-unbound-schema\" : \"postgres-schema\"}\"`;\n\tif (typeof kind === \"string\") return `readonly kind: ${serializeValue(kind)}`;\n\tthrow sqlEmitterError(\"CONTRACT.NAMESPACE_INVALID\", `Namespace '${ns.id}' has no string kind — all namespaces must be target concretions with a defined kind property.`, {\n\t\twhy: \"The namespace is not a target concretion, so the emitter cannot serialize its kind.\",\n\t\tfix: \"Regenerate the contract with a target pack that materializes every namespace as a target concretion.\",\n\t\tmeta: { namespace: ns.id }\n\t});\n}\nfunction generateTableLiteralType(table) {\n\tconst columns = [];\n\tfor (const [colName, col] of Object.entries(table.columns)) {\n\t\tconst nullable = col.nullable ? \"true\" : \"false\";\n\t\tconst nativeType = serializeValue(col.nativeType);\n\t\tconst codecId = serializeValue(col.codecId);\n\t\tconst defaultSpec = col.default ? col.default.kind === \"literal\" ? `; readonly default: { readonly kind: \"literal\"; readonly value: DefaultLiteralValue<${codecId}, ${serializeValue(col.default.value)}> }` : `; readonly default: { readonly kind: \"function\"; readonly expression: ${serializeValue(col.default.expression)} }` : \"\";\n\t\tconst typeParamsSpec = col.typeParams && Object.keys(col.typeParams).length > 0 ? `; readonly typeParams: ${serializeTypeParamsLiteral(col.typeParams)}` : \"\";\n\t\tconst typeRefSpec = col.typeRef ? `; readonly typeRef: ${serializeValue(col.typeRef)}` : \"\";\n\t\tcolumns.push(`readonly ${serializeObjectKey(colName)}: { readonly nativeType: ${nativeType}; readonly codecId: ${codecId}; readonly nullable: ${nullable}${defaultSpec}${typeParamsSpec}${typeRefSpec} }`);\n\t}\n\tconst tableParts = [`columns: { ${columns.join(\"; \")} }`];\n\tif (table.primaryKey) {\n\t\tconst pkParts = [`readonly columns: readonly [${table.primaryKey.columns.map((c) => serializeValue(c)).join(\", \")}]`];\n\t\tif (table.primaryKey.name) pkParts.push(`readonly name: ${serializeValue(table.primaryKey.name)}`);\n\t\ttableParts.push(`primaryKey: { ${pkParts.join(\"; \")} }`);\n\t}\n\tconst uniques = table.uniques.map((u) => {\n\t\tconst parts = [`readonly columns: readonly [${u.columns.map((c) => serializeValue(c)).join(\", \")}]`];\n\t\tif (u.name) parts.push(`readonly name: ${serializeValue(u.name)}`);\n\t\treturn `{ ${parts.join(\"; \")} }`;\n\t}).join(\", \");\n\ttableParts.push(`uniques: readonly [${uniques}]`);\n\tconst indexes = table.indexes.map((i) => {\n\t\tconst parts = [`readonly name: ${serializeValue(i.name)}`];\n\t\tif (i.prefix !== void 0) parts.push(`readonly prefix: ${serializeValue(i.prefix)}`);\n\t\tif (i.columns !== void 0) parts.push(`readonly columns: readonly [${i.columns.map((c) => serializeValue(c)).join(\", \")}]`);\n\t\tif (i.expression !== void 0) parts.push(`readonly expression: ${serializeValue(i.expression)}`);\n\t\tif (i.where !== void 0) parts.push(`readonly where: ${serializeValue(i.where)}`);\n\t\tparts.push(`readonly unique: ${i.unique}`);\n\t\tif (i.type !== void 0) parts.push(`readonly type: ${serializeValue(i.type)}`);\n\t\tif (i.options !== void 0) parts.push(`readonly options: ${serializeValue(i.options)}`);\n\t\treturn `{ ${parts.join(\"; \")} }`;\n\t}).join(\", \");\n\ttableParts.push(`indexes: readonly [${indexes}]`);\n\tconst fks = table.foreignKeys.map((fk) => {\n\t\tconst srcCols = fk.source.columns.map((c) => serializeValue(c)).join(\", \");\n\t\tconst tgtCols = fk.target.columns.map((c) => serializeValue(c)).join(\", \");\n\t\tconst srcRef = `{ readonly namespaceId: ${serializeNamespaceId(String(fk.source.namespaceId))}; readonly tableName: ${serializeValue(fk.source.tableName)}; readonly columns: readonly [${srcCols}] }`;\n\t\tconst tgtRef = `{ readonly namespaceId: ${serializeNamespaceId(String(fk.target.namespaceId))}; readonly tableName: ${serializeValue(fk.target.tableName)}; readonly columns: readonly [${tgtCols}] }`;\n\t\tconst parts = [`readonly source: ${srcRef}`, `readonly target: ${tgtRef}`];\n\t\tif (fk.name) parts.push(`readonly name: ${serializeValue(fk.name)}`);\n\t\treturn `{ ${parts.join(\"; \")} }`;\n\t}).join(\", \");\n\ttableParts.push(`foreignKeys: readonly [${fks}]`);\n\treturn `{ ${tableParts.join(\"; \")} }`;\n}\nfunction generateTablesMapType(tables) {\n\tconst tableEntries = [];\n\tfor (const [tableName, table] of Object.entries(tables).sort(([a], [b]) => a.localeCompare(b))) tableEntries.push(`readonly ${serializeObjectKey(tableName)}: ${generateTableLiteralType(table)}`);\n\tif (tableEntries.length === 0) return \"{}\";\n\treturn `{ ${tableEntries.join(\"; \")} }`;\n}\nfunction generateStorageNamespacesType(namespaces) {\n\tconst entries = Object.entries(namespaces ?? {}).sort(([a], [b]) => a.localeCompare(b));\n\tif (entries.length === 0) return \"Record<string, never>\";\n\tconst parts = [];\n\tfor (const [name, ns] of entries) {\n\t\tconst kindSuffix = `; ${namespaceSerializedKind(ns)}`;\n\t\tconst entriesParts = [`readonly table: ${generateTablesMapType(ns.entries.table ?? {})}`];\n\t\tconst valueSetEntries = ns.entries.valueSet;\n\t\tif (valueSetEntries !== void 0 && Object.keys(valueSetEntries).length > 0) entriesParts.push(`readonly valueSet: ${generateValueSetBlockType(valueSetEntries)}`);\n\t\tconst entriesType = `{ ${entriesParts.join(\"; \")} }`;\n\t\tparts.push(`readonly ${serializeObjectKey(name)}: { readonly id: ${serializeValue(ns.id)}${kindSuffix}; readonly entries: ${entriesType} }`);\n\t}\n\treturn `{ ${parts.join(\"; \")} }`;\n}\n//#endregion\nexport { sqlEmission };\n\n//# sourceMappingURL=index.mjs.map"],"mappings":";;;;;;;;AAQA,SAAS,gBAAgB,MAAM,SAAS,SAAS;CAChD,OAAO,gBAAgB,MAAM,SAAS,OAAO;AAC9C;AACA,SAAS,0BAA0B,SAAS,MAAM;CACjD,OAAO,gBAAgB,8BAA8B,SAAS;EAC7D,KAAK;EACL,KAAK;EACL;CACD,CAAC;AACF;;;;;;;;AAUA,SAAS,uBAAuB,SAAS;CACxC,MAAM,cAAc,SAAS,wBAAwB,CAAC;CACtD,MAAM,SAAS,SAAS,oBAAoB,CAAC;CAC7C,IAAI,YAAY,WAAW,GAAG,OAAO;CACrC,MAAM,iBAAiB,IAAI,IAAI,OAAO,KAAK,UAAU,MAAM,OAAO,CAAC;CACnE,MAAM,UAAU,yBAAyB,aAAa,MAAM;CAC5D,MAAM,YAAY,QAAQ,YAAY;CACtC,IAAI,cAAc,KAAK,GAAG,MAAM,gBAAgB,2CAA2C,cAAc,UAAU,UAAU,0CAA0C,UAAU,QAAQ,YAAY,UAAU,OAAO,KAAK,IAAI,EAAE,iBAAiB;EACjP,KAAK;EACL,KAAK,uCAAuC,UAAU,UAAU,UAAU,UAAU,QAAQ;EAC5F,MAAM;GACL,WAAW,UAAU;GACrB,SAAS,UAAU;GACnB,QAAQ,UAAU;EACnB;CACD,CAAC;CACD,OAAO,K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eAAe,GAAG,EAAE,IAAI,WAAW,sBAAsB,YAAY,GAAG;CAC5I;CACA,OAAO,KAAK,MAAM,KAAK,IAAI,EAAE;AAC9B"}
@@ -1,10 +1,10 @@
1
- import { c as SqlStorage } from "./sql-storage-8LqxeLAY-DH4DdUXx.mjs";
2
- import { S as QueryOperationReturn } from "./types-BDUG29Df-LE85dIXP.mjs";
3
- import "./types-C36_3E6_.mjs";
4
- import { t as SqlLoweringSpec } from "./index-Cef8iy1o.mjs";
5
- import { Dt as RawSqlLiteral, E as CodecRef$1, Tt as RawQueryColumn, c as AnyExpression, wt as RawQueryAst, yt as ParamRef } from "./types-Yui2yFf6-Dnc7RNUD.mjs";
1
+ import { c as SqlStorage } from "./sql-storage-BSxD7_vv-C4ugLH39.mjs";
2
+ import { S as QueryOperationReturn } from "./types-DTUyRqZv-DLh98w8w.mjs";
3
+ import "./types-BoMDdzjD.mjs";
4
+ import { t as SqlLoweringSpec } from "./index-DrUd8HwS.mjs";
5
+ import { Dt as RawSqlLiteral, E as CodecRef$1, Tt as RawQueryColumn, c as AnyExpression, wt as RawQueryAst, yt as ParamRef } from "./types-Yui2yFf6-DQkiEr9B.mjs";
6
6
  import { l as SqlStatementStats } from "./driver-types-BQtRkOJ0-Bv2RPSfr.mjs";
7
- import { n as SqlQueryPlan } from "./plan-B7g2kDfQ-ZD3BfWYx.mjs";
7
+ import { n as SqlQueryPlan } from "./plan-B7g2kDfQ-Do1iWC4q.mjs";
8
8
  import { Contract } from "@prisma/orm-framework/contract/types";
9
9
  import { ParamSpec } from "@prisma/orm-framework/operations";
10
10
  //#region ../../../2-sql/4-lanes/relational-core/dist/exports/expression.d.mts
@@ -263,4 +263,4 @@ declare function createRawSql(adapter: RawCodecInferer, planContext: RawPlanCont
263
263
  declare function createRawSql(adapter: RawCodecInferer): RawSqlTag;
264
264
  //#endregion
265
265
  export { buildOperation as C, param as D, isExpression as E, toExpr as O, TraitExpression as S, createRawSql as T, RawSqlStatementBuilder as _, CodecValue as a, ScalarListExpression as b, RawAffectedCountQuery as c, RawRow as d, RawRowQuery as f, RawSqlInterpolation as g, RawSqlBuilder as h, CodecTypesBase as i, RawCodecInferer as l, RawRowSpecEntry as m, BuildOperationSpec as n, Expression as o, RawRowSpec as p, CodecExpression as r, NoReservedRowColumn as s, AffectedCount as t, RawPlanContext as u, RawSqlStatementTag as v, codecOf as w, ScopeField as x, RawSqlTag as y };
266
- //# sourceMappingURL=expression-Dl5WvxCA.d.mts.map
266
+ //# sourceMappingURL=expression-B95FOcDX.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"expression-Dl5WvxCA.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/exports/expression.d.mts"],"mappings":";;;;;;;;;;;KAQK;EACH;EACA;;;;;;;;EAQA;;;;EAIA,QAAQ;;KAEL,iBAAiB;WACX;WACA;;;;;KAKN,WAAW,UAAU,cAAc;WAC7B,YAAY;EACrB,YAAY;;KAET,kBAAkB,WAAW;WACvB;IACP,+CAA+C,WAAW,cAAc,GAAG;WACpE,cAAc;KACpB,iCAAiC,KAAK,2BAA2B;KACjE,WAAW,KAAK;;;;;KAKhB,WAAW,wBAAwB,0BAA0B,WAAW;WAClE;OACJ,sBAAsB,KAAK,GAAG,6BAA6B,WAAW;;;;;;;;;;;;;;;KAexE,gBAAgB,wBAAwB,0BAA0B,WAAW;WACvE;MACL;EACJ,SAAS;EACT,UAAU;EACV;KACG,WAAW,SAAS,UAAU;;;;;;;KAO9B,qBAAqB,wBAAwB,4BAA4B;EAC5E,SAAS;EACT,UAAU;EACV;;;;;;;KAOG,gBAAgB,kCAAkC,0BAA0B,WAAW;WACjF;MACL,gBAAgB,kBAAkB,IAAI,SAAS,UAAU;;;;;;;;iBAQ9C,OAAO,gBAAgB,QAAQ,aAAW;;;;iBAI1C,MAAM,GAAG,OAAO,GAAG;EAClC;IACE;;;;;;;;;;iBAUa,QAAQ,iBAAiB;iBACzB,aAAa,iBAAiB,SAAS,WAAW;UACzD,mBAAmB,UAAU;WAC5B;;;;WAIA,gBAAgB,kBAAkB;WAClC,SAAS,IAAI;WACb,UAAU;;;;;iBAKJ,eAAe,UAAU,YAAY,MAAM,mBAAmB,KAAK,WAAW;;;;;;;;;;;;;UAarF;EACR,WAAW,OAAO;;;UAGV;EACR,QAAQ,kBAAkB,MAAM,IAAI;IAClC,SAAS;IACT;;EAEF,QAAQ,kBAAkB,2BAA2B;aAC1C,SAAS;aACT,WAAW;MAClB;IACF,SAAS;IACT,UAAU;;;;;;;;;KAST;WACM;WACA;;;;;;;;;KASN;WACM;;;KAGN,aAAa,SAAS,eAAe,oBAAoB;;;;;;KAMzD,OAAO,aAAa,0BAA0B,WAAW;;;;;UAKpD;WACC,UAAU,SAAS;WACnB;;;;;;;;;;UAUD,YAAY,eAAe,aAAa,SAAS,eAAe,mBAAmB,SAAS,eAAe;;;;;;;;;WAS1G,SAAS;EAClB,YAAY;EACZ,SAAS,aAAa;;cAEV;;;;;;;;;;UAUJ,sBAAsB;YACpB;;;;;;;;UAQF;EACR,SAAS,aAAa;;;;;;;UAOd,+BAA+B;EACvC,WAAW,aAAa,YAAY,MAAM,OAAO,YAAY,OAAO;EACpE,iBAAiB;;;KAGd,aAAa,SAAS,yBAAyB,QAAQ,0BAA0B;;KAEjF,sBAAsB,SAAS,yBAAyB,QAAQ,0BAA0B;;KAE1F,uBAAuB,WAAW,cAAc,WAAW;;KAE3D,sBAAsB,uBAAuB;;;;;;;;iBAQjC,aAAa,SAAS,iBAAiB,aAAa,iBAAiB;iBACrE,aAAa,SAAS,kBAAkB"}
1
+ {"version":3,"file":"expression-B95FOcDX.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/exports/expression.d.mts"],"mappings":";;;;;;;;;;;KAQK;EACH;EACA;;;;;;;;EAQA;;;;EAIA,QAAQ;;KAEL,iBAAiB;WACX;WACA;;;;;KAKN,WAAW,UAAU,cAAc;WAC7B,YAAY;EACrB,YAAY;;KAET,kBAAkB,WAAW;WACvB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BAAsB;YACpB;;;;;;;;UAQF;EACR,SAAS,aAAa;;;;;;;UAOd,+BAA+B;EACvC,WAAW,aAAa,YAAY,MAAM,OAAO,YAAY,OAAO;EACpE,iBAAiB;;;KAGd,aAAa,SAAS,yBAAyB,QAAQ,0BAA0B;;KAEjF,sBAAsB,SAAS,yBAAyB,QAAQ,0BAA0B;;KAE1F,uBAAuB,WAAW,cAAc,WAAW;;KAE3D,sBAAsB,uBAAuB;;;;;;;;iBAQjC,aAAa,SAAS,iBAAiB,aAAa,iBAAiB;iBACrE,aAAa,SAAS,kBAAkB"}
@@ -2,7 +2,7 @@ import { t as ForeignKey } from "./foreign-key-C-iTPuRT-C9ip8zFx.mjs";
2
2
  import { r as UniqueConstraint, t as PrimaryKey } from "./unique-constraint-M5TlQnJQ-BiIHJ85k.mjs";
3
3
  import { t as Index } from "./sql-index-ByAAE7K8-DKj2V86p.mjs";
4
4
  import { n as StorageColumnInput, r as StorageTable, t as StorageColumn } from "./storage-table-DSeWszOL-CI-cItEK.mjs";
5
- import { A as SqlModelStorage, k as SqlModelFieldStorage, y as ForeignKeyOptions } from "./types-BDUG29Df-LE85dIXP.mjs";
5
+ import { A as SqlModelStorage, k as SqlModelFieldStorage, y as ForeignKeyOptions } from "./types-DTUyRqZv-DLh98w8w.mjs";
6
6
  import { ScalarFieldType } from "@prisma/orm-framework/contract/types";
7
7
  //#region ../../../2-sql/1-core/contract/dist/factories.d.mts
8
8
  //#region src/factories.d.ts
@@ -36,4 +36,4 @@ declare function model(tableName: string, fields: Record<string, SqlModelFieldSt
36
36
  };
37
37
  //#endregion
38
38
  export { pk as a, model as i, fk as n, table as o, index as r, unique as s, col as t };
39
- //# sourceMappingURL=factories-P3qBQhO-.d.mts.map
39
+ //# sourceMappingURL=factories-TIM9dI6S.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"factories-P3qBQhO-.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/factories.d.mts"],"mappings":";;;;;;;;iBAOiB,IAAI,oBAAoB,iBAAiB,oBAAoB;WACnE;IACP;iBACa,MAAM,6BAA6B;iBACnC,UAAU,6BAA6B;iBACvC,MAAM,cAAc,4BAA4B;WACtD;WACA;WACA;WACA,UAAU;IACjB;iBACa,GAAG,sBAAsB,+BAA+B,yBAAyB,kCAAkC,OAAO;EACzI;IACE;iBACa,MAAM,SAAS,eAAe,gBAAgB,qBAAqB;EAClF,KAAK;EACL,mBAAmB;EACnB,mBAAmB;EACnB,eAAe;IACb;iBACa,MAAM,mBAAmB,QAAQ,eAAe,uBAAuB,YAAY,yBAAyB;EAC3H,SAAS;EACT,QAAQ;aACG;aACA,MAAM;;EAEjB,WAAW"}
1
+ {"version":3,"file":"factories-TIM9dI6S.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/factories.d.mts"],"mappings":";;;;;;;;iBAOiB,IAAI,oBAAoB,iBAAiB,oBAAoB;WACnE;IACP;iBACa,MAAM,6BAA6B;iBACnC,UAAU,6BAA6B;iBACvC,MAAM,cAAc,4BAA4B;WACtD;WACA;WACA;WACA,UAAU;IACjB;iBACa,GAAG,sBAAsB,+BAA+B,yBAAyB,kCAAkC,OAAO;EACzI;IACE;iBACa,MAAM,SAAS,eAAe,gBAAgB,qBAAqB;EAClF,KAAK;EACL,mBAAmB;EACnB,mBAAmB;EACnB,eAAe;IACb;iBACa,MAAM,mBAAmB,QAAQ,eAAe,uBAAuB,YAAY,yBAAyB;EAC3H,SAAS;EACT,QAAQ;aACG;aACA,MAAM;;EAEjB,WAAW"}
package/dist/family.d.mts CHANGED
@@ -1,17 +1,17 @@
1
- import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-Nyrgk4h8.mjs";
2
- import { h as checkSqlDefaultBody } from "./validators-CJSyNFS4.mjs";
3
- import { i as SqlControlAdapter, n as Lowerer, o as arraysEqual, r as NativeTypeNormalizer, t as ExecuteRequestLowerer } from "./control-adapter-C99J7aEF-B3_IhgH6.mjs";
4
- import { A as SqlPlannerSuccessResult, C as SqlMigrationRunnerSuccessValue, D as SqlPlannerConflictLocation, E as SqlPlannerConflictKind, O as SqlPlannerFailureResult, S as SqlMigrationRunnerResult, T as SqlPlannerConflict, _ as SqlMigrationRunner, a as FieldEvent, b as SqlMigrationRunnerExecuteOptions, c as SqlControlAdapterDescriptor, d as SqlMigrationPlanContractInfo, f as SqlMigrationPlanOperation, g as SqlMigrationPlannerPlanOptions, h as SqlMigrationPlanner, i as ExpandNativeTypeInput, j as StorageTypePlanResult, k as SqlPlannerResult, l as SqlControlExtensionDescriptor, m as SqlMigrationPlanOperationTarget, n as CodecControlHooks, o as FieldEventContext, p as SqlMigrationPlanOperationStep, r as CreateSqlMigrationPlanOptions, s as ResolveIdentityValueInput, u as SqlMigrationPlan, v as SqlMigrationRunnerErrorCode, w as SqlPlanTargetDetails, x as SqlMigrationRunnerFailure, y as SqlMigrationRunnerExecuteCallbacks } from "./types-BFPRCYGW-CZrZyp1E.mjs";
5
- import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-DpG_gnur-3ciAcy28.mjs";
6
- import { A as contractToSchemaIR, B as plannerSuccess, C as TableNameCaseGuardTable, D as buildDataTypeResolver, E as assembleAuthoringContributions, F as extractCodecControlHooks, H as runnerSuccess, I as partitionCallsByControlPolicy, L as partitionIssuesByControlPolicy, M as createMigrationPlan, N as detectDestructiveChanges, O as buildNativeTypeExpander, P as detectTableNameCaseChanges, R as planFieldEventOperations, S as TABLE_NAME_CASE_CHANGED_CODE, U as temporalCodecPresetWithPrecision, V as runnerFailure, W as temporalStringAuthoringPresets, _ as SqlControlFamilyInstance, a as DefaultResolver, b as SqlPslBuildContext, c as MigrationOperationClass, d as MigrationPlanOperation, f as MigrationPlanner, g as PlanFieldEventOperationsOptions, h as NativeTypeExpander, i as DefaultRenderer, j as controlPolicyForCall, k as contractNamespaceToSchemaIR, l as MigrationOperationPolicy, m as MigrationPlannerResult, n as ControlPolicySubject, o as EnumNamespaceSchemaResolver, p as MigrationPlannerConflict, r as DataTypeResolver, s as INIT_ADDITIVE_POLICY, t as ContractToSchemaIROptions, u as MigrationPlan, v as SqlControlTargetDescriptor, w as TargetMigrationsCapability, x as SuppressionRecord, y as SqlDescribedContractSpace, z as plannerFailure } from "./control-DmVQjyZd.mjs";
7
- import "./control-adapter-kl-cOML5.mjs";
8
- import { a as VerifySqlSchemaByDiffInput, c as computeSqlDiffVerdict, i as StorageTypeVerdictInput, l as computeStorageTypeVerdict, n as SqlDiffVerdictInput, o as classifyDiffSubjectGranularity, r as StorageTypeVerdict, s as classifySqlDiffIssue, t as SqlDiffVerdict, u as verifySqlSchemaByDiff } from "./diff-DFOiwUHg.mjs";
9
- import { i as SqlSchemaVerifierBase, n as SqlContractSerializerBase, r as SqlEntityHydrationFactory, t as SqlContractSerializer } from "./ir-BJ-dsbe-.mjs";
10
- import { t as SqlMigration } from "./migration-Csmr6bd8.mjs";
11
- import "./pack-BUv79Jrr.mjs";
1
+ import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-DhgzQjow.mjs";
2
+ import { h as checkSqlDefaultBody } from "./validators-CZNulH-_.mjs";
3
+ import { i as SqlControlAdapter, n as Lowerer, o as arraysEqual, r as NativeTypeNormalizer, t as ExecuteRequestLowerer } from "./control-adapter-C4_cgvzB-BwZx3_VD.mjs";
4
+ import { A as SqlPlannerSuccessResult, C as SqlMigrationRunnerSuccessValue, D as SqlPlannerConflictLocation, E as SqlPlannerConflictKind, O as SqlPlannerFailureResult, S as SqlMigrationRunnerResult, T as SqlPlannerConflict, _ as SqlMigrationRunner, a as FieldEvent, b as SqlMigrationRunnerExecuteOptions, c as SqlControlAdapterDescriptor, d as SqlMigrationPlanContractInfo, f as SqlMigrationPlanOperation, g as SqlMigrationPlannerPlanOptions, h as SqlMigrationPlanner, i as ExpandNativeTypeInput, j as StorageTypePlanResult, k as SqlPlannerResult, l as SqlControlExtensionDescriptor, m as SqlMigrationPlanOperationTarget, n as CodecControlHooks, o as FieldEventContext, p as SqlMigrationPlanOperationStep, r as CreateSqlMigrationPlanOptions, s as ResolveIdentityValueInput, u as SqlMigrationPlan, v as SqlMigrationRunnerErrorCode, w as SqlPlanTargetDetails, x as SqlMigrationRunnerFailure, y as SqlMigrationRunnerExecuteCallbacks } from "./types-BKJWoQ40-BzViF_9K.mjs";
5
+ import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-DpG_gnur-gLIPLPVI.mjs";
6
+ import { A as contractToSchemaIR, B as plannerSuccess, C as TableNameCaseGuardTable, D as buildDataTypeResolver, E as assembleAuthoringContributions, F as extractCodecControlHooks, H as runnerSuccess, I as partitionCallsByControlPolicy, L as partitionIssuesByControlPolicy, M as createMigrationPlan, N as detectDestructiveChanges, O as buildNativeTypeExpander, P as detectTableNameCaseChanges, R as planFieldEventOperations, S as TABLE_NAME_CASE_CHANGED_CODE, U as temporalCodecPresetWithPrecision, V as runnerFailure, W as temporalStringAuthoringPresets, _ as SqlControlFamilyInstance, a as DefaultResolver, b as SqlPslBuildContext, c as MigrationOperationClass, d as MigrationPlanOperation, f as MigrationPlanner, g as PlanFieldEventOperationsOptions, h as NativeTypeExpander, i as DefaultRenderer, j as controlPolicyForCall, k as contractNamespaceToSchemaIR, l as MigrationOperationPolicy, m as MigrationPlannerResult, n as ControlPolicySubject, o as EnumNamespaceSchemaResolver, p as MigrationPlannerConflict, r as DataTypeResolver, s as INIT_ADDITIVE_POLICY, t as ContractToSchemaIROptions, u as MigrationPlan, v as SqlControlTargetDescriptor, w as TargetMigrationsCapability, x as SuppressionRecord, y as SqlDescribedContractSpace, z as plannerFailure } from "./control-k5_z0qcA.mjs";
7
+ import "./control-adapter-CDDbpxyt.mjs";
8
+ import { a as VerifySqlSchemaByDiffInput, c as computeSqlDiffVerdict, i as StorageTypeVerdictInput, l as computeStorageTypeVerdict, n as SqlDiffVerdictInput, o as classifyDiffSubjectGranularity, r as StorageTypeVerdict, s as classifySqlDiffIssue, t as SqlDiffVerdict, u as verifySqlSchemaByDiff } from "./diff-C_zQQTgw.mjs";
9
+ import { i as SqlSchemaVerifierBase, n as SqlContractSerializerBase, r as SqlEntityHydrationFactory, t as SqlContractSerializer } from "./ir-DI4cwMsy.mjs";
10
+ import { t as SqlMigration } from "./migration-CRsGI-9f.mjs";
11
+ import "./pack-DcSVDz7M.mjs";
12
12
  import { a as PslTypeResolution, i as PslTypeReference, n as DefaultMappingResult, o as mapDefault, r as PslTypeMap, t as DefaultMappingOptions } from "./type-map-DpfnXzun-DZaSuJXh.mjs";
13
13
  import { t as toEnumMemberName } from "./psl-build-BnM1ZTyK.mjs";
14
14
  import { a as buildChildRelationField, c as inferRelations, d as toFieldName, f as toModelName, i as RelationField, l as pluralize, n as InferredRelations, o as deriveBackRelationFieldName, r as PslPrinterOptions, s as deriveRelationFieldName, t as EnumInfo, u as toEnumName } from "./psl-infer-DT5_Lx5r.mjs";
15
- import { a as timestampNowRuntimeGenerator, n as UNBOUND_DOMAIN_NAMESPACE_ID, r as resolveDomainModel, t as ResolvedDomainModel } from "./runtime-DgOeosYa.mjs";
15
+ import { a as timestampNowRuntimeGenerator, n as UNBOUND_DOMAIN_NAMESPACE_ID, r as resolveDomainModel, t as ResolvedDomainModel } from "./runtime-I-W0bhvd.mjs";
16
16
  import { n as parseContractMarkerRow, t as ContractMarkerRow } from "./verify-zDRnw0Rn.mjs";
17
17
  export { type CodecControlHooks, type ContractMarkerRow, type ContractToSchemaIROptions, type ControlPolicySubject, type CreateSqlMigrationPlanOptions, type DataTypeResolver, type DefaultMappingOptions, type DefaultMappingResult, type DefaultRenderer, type DefaultResolver, type EnumInfo, type EnumNamespaceSchemaResolver, type ExecuteRequestLowerer, type ExpandNativeTypeInput, type FieldEvent, type FieldEventContext, INIT_ADDITIVE_POLICY, type InferredRelations, type Lowerer, SqlMigration as Migration, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerResult, type NativeTypeExpander, type NativeTypeNormalizer, type PlanFieldEventOperationsOptions, type PslPrinterOptions, type PslTypeMap, type PslTypeReference, type PslTypeResolution, type RelationField, type ResolveIdentityValueInput, type ResolvedDomainModel, type ResolvedStorageTable, SqlContractSerializer, SqlContractSerializerBase, type SqlControlAdapter, type SqlControlExtensionDescriptor, type SqlControlFamilyInstance, type SqlControlTargetDescriptor, type SqlDescribedContractSpace, type SqlDiffVerdict, type SqlDiffVerdictInput, type SqlEntityHydrationFactory, type SqlMigrationPlan, type SqlMigrationPlanContractInfo, type SqlMigrationPlanOperation, type SqlMigrationPlanOperationStep, type SqlMigrationPlanOperationTarget, type SqlMigrationPlanner, type SqlMigrationPlannerPlanOptions, type SqlMigrationRunner, type SqlMigrationRunnerErrorCode, type SqlMigrationRunnerExecuteCallbacks, type SqlMigrationRunnerExecuteOptions, type SqlMigrationRunnerFailure, type SqlMigrationRunnerResult, type SqlMigrationRunnerSuccessValue, type SqlPlanTargetDetails, type SqlPlannerConflict, type SqlPlannerConflictKind, type SqlPlannerConflictLocation, type SqlPlannerFailureResult, type SqlPlannerResult, type SqlPlannerSuccessResult, type SqlPslBuildContext, type SqlSchemaDiffFn, type SqlSchemaDiffInput, type SqlSchemaDiffResult, SqlSchemaVerifierBase, type StorageTypePlanResult, type StorageTypeVerdict, type StorageTypeVerdictInput, type SuppressionRecord, TABLE_NAME_CASE_CHANGED_CODE, type TableNameCaseGuardTable, type TargetMigrationsCapability, UNBOUND_DOMAIN_NAMESPACE_ID, type VerifySqlSchemaByDiffInput, arraysEqual, assembleAuthoringContributions, buildChildRelationField, buildDataTypeResolver, buildNativeTypeExpander, checkSqlDefaultBody, classifyDiffSubjectGranularity, classifySqlDiffIssue, computeSqlDiffVerdict, computeStorageTypeVerdict, contractNamespaceToSchemaIR, contractToSchemaIR, controlPolicyForCall, createMigrationPlan, deriveBackRelationFieldName, deriveRelationFieldName, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, inferRelations, mapDefault, parseContractMarkerRow, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventOperations, plannerFailure, plannerSuccess, pluralize, resolveDomainModel, resolveStorageTable, runnerFailure, runnerSuccess, temporalCodecPresetWithPrecision, temporalStringAuthoringPresets, timestampNowRuntimeGenerator, toEnumMemberName, toEnumName, toFieldName, toModelName, verifySqlSchemaByDiff };
package/dist/family.mjs CHANGED
@@ -1,14 +1,14 @@
1
1
  import { t as resolveStorageTable } from "./resolve-storage-table-DZsfnzeW.mjs";
2
2
  import { n as checkSqlDefaultBody } from "./validators-BlqrBU7I.mjs";
3
- import { a as computeStorageTypeVerdict, i as computeSqlDiffVerdict, n as classifyDiffSubjectGranularity, o as extractCodecControlHooks, r as classifySqlDiffIssue, s as verifySqlSchemaByDiff } from "./schema-verify-DI0aJQ9d-Bgbmen10.mjs";
4
- import { n as SqlContractSerializerBase, t as SqlContractSerializer } from "./sql-contract-serializer-C90xg7_q-DERDzTD5.mjs";
3
+ import { a as computeStorageTypeVerdict, i as computeSqlDiffVerdict, n as classifyDiffSubjectGranularity, o as extractCodecControlHooks, r as classifySqlDiffIssue, s as verifySqlSchemaByDiff } from "./schema-verify-DI0aJQ9d-DL-C6on7.mjs";
4
+ import { n as SqlContractSerializerBase, t as SqlContractSerializer } from "./sql-contract-serializer-C90xg7_q-DBJSt3MT.mjs";
5
5
  import { n as parseContractMarkerRow } from "./verify-BVk5bjdH-BXgGLM2U.mjs";
6
- import { _ as plannerSuccess, a as buildNativeTypeExpander, b as temporalCodecPresetWithPrecision, c as controlPolicyForCall, d as detectDestructiveChanges, f as detectTableNameCaseChanges, g as plannerFailure, h as planFieldEventOperations, i as buildDataTypeResolver, m as partitionIssuesByControlPolicy, n as TABLE_NAME_CASE_CHANGED_CODE, o as contractNamespaceToSchemaIR, p as partitionCallsByControlPolicy, r as assembleAuthoringContributions, s as contractToSchemaIR, t as INIT_ADDITIVE_POLICY, u as createMigrationPlan, v as runnerFailure, x as temporalStringAuthoringPresets, y as runnerSuccess } from "./control-2-eFP31F.mjs";
6
+ import { _ as plannerSuccess, a as buildNativeTypeExpander, b as temporalCodecPresetWithPrecision, c as controlPolicyForCall, d as detectDestructiveChanges, f as detectTableNameCaseChanges, g as plannerFailure, h as planFieldEventOperations, i as buildDataTypeResolver, m as partitionIssuesByControlPolicy, n as TABLE_NAME_CASE_CHANGED_CODE, o as contractNamespaceToSchemaIR, p as partitionCallsByControlPolicy, r as assembleAuthoringContributions, s as contractToSchemaIR, t as INIT_ADDITIVE_POLICY, u as createMigrationPlan, v as runnerFailure, x as temporalStringAuthoringPresets, y as runnerSuccess } from "./control-DMbej03E.mjs";
7
7
  import { t as arraysEqual } from "./diff-B16bL_IR.mjs";
8
8
  import { t as SqlSchemaVerifierBase } from "./ir-I-xciGUH.mjs";
9
9
  import { t as SqlMigration } from "./migration-CK4oePIo.mjs";
10
10
  import { s as toEnumMemberName } from "./psl-names-C3cwe0rg-CsuHOV7E.mjs";
11
- import { t as mapDefault } from "./psl-build-ph4eUJSB.mjs";
11
+ import { t as mapDefault } from "./psl-build-139T3MMA.mjs";
12
12
  import { a as pluralize, c as toModelName, i as inferRelations, n as deriveBackRelationFieldName, o as toEnumName, r as deriveRelationFieldName, s as toFieldName, t as buildChildRelationField } from "./psl-infer-8kKfa-Ts.mjs";
13
13
  import { i as timestampNowRuntimeGenerator, n as resolveDomainModel, t as UNBOUND_DOMAIN_NAMESPACE_ID } from "./runtime-Z3nD7ix1.mjs";
14
14
  export { INIT_ADDITIVE_POLICY, SqlMigration as Migration, SqlContractSerializer, SqlContractSerializerBase, SqlSchemaVerifierBase, TABLE_NAME_CASE_CHANGED_CODE, UNBOUND_DOMAIN_NAMESPACE_ID, arraysEqual, assembleAuthoringContributions, buildChildRelationField, buildDataTypeResolver, buildNativeTypeExpander, checkSqlDefaultBody, classifyDiffSubjectGranularity, classifySqlDiffIssue, computeSqlDiffVerdict, computeStorageTypeVerdict, contractNamespaceToSchemaIR, contractToSchemaIR, controlPolicyForCall, createMigrationPlan, deriveBackRelationFieldName, deriveRelationFieldName, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, inferRelations, mapDefault, parseContractMarkerRow, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventOperations, plannerFailure, plannerSuccess, pluralize, resolveDomainModel, resolveStorageTable, runnerFailure, runnerSuccess, temporalCodecPresetWithPrecision, temporalStringAuthoringPresets, timestampNowRuntimeGenerator, toEnumMemberName, toEnumName, toFieldName, toModelName, verifySqlSchemaByDiff };
@@ -1,3 +1,3 @@
1
- import { a as SqlControlAdapterDescriptor, i as SqlControlAdapter, n as Lowerer, t as ExecuteRequestLowerer } from "./control-adapter-C99J7aEF-B3_IhgH6.mjs";
2
- import "./control-adapter-kl-cOML5.mjs";
1
+ import { a as SqlControlAdapterDescriptor, i as SqlControlAdapter, n as Lowerer, t as ExecuteRequestLowerer } from "./control-adapter-C4_cgvzB-BwZx3_VD.mjs";
2
+ import "./control-adapter-CDDbpxyt.mjs";
3
3
  export type { ExecuteRequestLowerer, Lowerer, SqlControlAdapter, SqlControlAdapterDescriptor };
@@ -1,5 +1,5 @@
1
- import { h as checkSqlDefaultBody } from "./validators-CJSyNFS4.mjs";
2
- import { A as SqlPlannerSuccessResult, C as SqlMigrationRunnerSuccessValue, D as SqlPlannerConflictLocation, E as SqlPlannerConflictKind, O as SqlPlannerFailureResult, S as SqlMigrationRunnerResult, T as SqlPlannerConflict, _ as SqlMigrationRunner, a as FieldEvent, b as SqlMigrationRunnerExecuteOptions, c as SqlControlAdapterDescriptor, d as SqlMigrationPlanContractInfo, f as SqlMigrationPlanOperation, g as SqlMigrationPlannerPlanOptions, h as SqlMigrationPlanner, i as ExpandNativeTypeInput, j as StorageTypePlanResult, k as SqlPlannerResult, l as SqlControlExtensionDescriptor, m as SqlMigrationPlanOperationTarget, n as CodecControlHooks, o as FieldEventContext, p as SqlMigrationPlanOperationStep, r as CreateSqlMigrationPlanOptions, s as ResolveIdentityValueInput, u as SqlMigrationPlan, v as SqlMigrationRunnerErrorCode, w as SqlPlanTargetDetails, x as SqlMigrationRunnerFailure, y as SqlMigrationRunnerExecuteCallbacks } from "./types-BFPRCYGW-CZrZyp1E.mjs";
3
- import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-DpG_gnur-3ciAcy28.mjs";
4
- import { A as contractToSchemaIR, B as plannerSuccess, C as TableNameCaseGuardTable, D as buildDataTypeResolver, E as assembleAuthoringContributions, F as extractCodecControlHooks, H as runnerSuccess, I as partitionCallsByControlPolicy, L as partitionIssuesByControlPolicy, M as createMigrationPlan, N as detectDestructiveChanges, O as buildNativeTypeExpander, P as detectTableNameCaseChanges, R as planFieldEventOperations, S as TABLE_NAME_CASE_CHANGED_CODE, T as _default, U as temporalCodecPresetWithPrecision, V as runnerFailure, W as temporalStringAuthoringPresets, _ as SqlControlFamilyInstance, a as DefaultResolver, b as SqlPslBuildContext, c as MigrationOperationClass, d as MigrationPlanOperation, f as MigrationPlanner, g as PlanFieldEventOperationsOptions, h as NativeTypeExpander, i as DefaultRenderer, j as controlPolicyForCall, k as contractNamespaceToSchemaIR, l as MigrationOperationPolicy, m as MigrationPlannerResult, n as ControlPolicySubject, o as EnumNamespaceSchemaResolver, p as MigrationPlannerConflict, r as DataTypeResolver, s as INIT_ADDITIVE_POLICY, t as ContractToSchemaIROptions, u as MigrationPlan, v as SqlControlTargetDescriptor, w as TargetMigrationsCapability, x as SuppressionRecord, y as SqlDescribedContractSpace, z as plannerFailure } from "./control-DmVQjyZd.mjs";
1
+ import { h as checkSqlDefaultBody } from "./validators-CZNulH-_.mjs";
2
+ import { A as SqlPlannerSuccessResult, C as SqlMigrationRunnerSuccessValue, D as SqlPlannerConflictLocation, E as SqlPlannerConflictKind, O as SqlPlannerFailureResult, S as SqlMigrationRunnerResult, T as SqlPlannerConflict, _ as SqlMigrationRunner, a as FieldEvent, b as SqlMigrationRunnerExecuteOptions, c as SqlControlAdapterDescriptor, d as SqlMigrationPlanContractInfo, f as SqlMigrationPlanOperation, g as SqlMigrationPlannerPlanOptions, h as SqlMigrationPlanner, i as ExpandNativeTypeInput, j as StorageTypePlanResult, k as SqlPlannerResult, l as SqlControlExtensionDescriptor, m as SqlMigrationPlanOperationTarget, n as CodecControlHooks, o as FieldEventContext, p as SqlMigrationPlanOperationStep, r as CreateSqlMigrationPlanOptions, s as ResolveIdentityValueInput, u as SqlMigrationPlan, v as SqlMigrationRunnerErrorCode, w as SqlPlanTargetDetails, x as SqlMigrationRunnerFailure, y as SqlMigrationRunnerExecuteCallbacks } from "./types-BKJWoQ40-BzViF_9K.mjs";
3
+ import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-DpG_gnur-gLIPLPVI.mjs";
4
+ import { A as contractToSchemaIR, B as plannerSuccess, C as TableNameCaseGuardTable, D as buildDataTypeResolver, E as assembleAuthoringContributions, F as extractCodecControlHooks, H as runnerSuccess, I as partitionCallsByControlPolicy, L as partitionIssuesByControlPolicy, M as createMigrationPlan, N as detectDestructiveChanges, O as buildNativeTypeExpander, P as detectTableNameCaseChanges, R as planFieldEventOperations, S as TABLE_NAME_CASE_CHANGED_CODE, T as _default, U as temporalCodecPresetWithPrecision, V as runnerFailure, W as temporalStringAuthoringPresets, _ as SqlControlFamilyInstance, a as DefaultResolver, b as SqlPslBuildContext, c as MigrationOperationClass, d as MigrationPlanOperation, f as MigrationPlanner, g as PlanFieldEventOperationsOptions, h as NativeTypeExpander, i as DefaultRenderer, j as controlPolicyForCall, k as contractNamespaceToSchemaIR, l as MigrationOperationPolicy, m as MigrationPlannerResult, n as ControlPolicySubject, o as EnumNamespaceSchemaResolver, p as MigrationPlannerConflict, r as DataTypeResolver, s as INIT_ADDITIVE_POLICY, t as ContractToSchemaIROptions, u as MigrationPlan, v as SqlControlTargetDescriptor, w as TargetMigrationsCapability, x as SuppressionRecord, y as SqlDescribedContractSpace, z as plannerFailure } from "./control-k5_z0qcA.mjs";
5
5
  export { type CodecControlHooks, type ContractToSchemaIROptions, type ControlPolicySubject, type CreateSqlMigrationPlanOptions, type DataTypeResolver, type DefaultRenderer, type DefaultResolver, type EnumNamespaceSchemaResolver, type ExpandNativeTypeInput, type FieldEvent, type FieldEventContext, INIT_ADDITIVE_POLICY, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerResult, type NativeTypeExpander, type PlanFieldEventOperationsOptions, type ResolveIdentityValueInput, type SqlControlAdapterDescriptor, type SqlControlExtensionDescriptor, type SqlControlFamilyInstance, type SqlControlTargetDescriptor, type SqlDescribedContractSpace, type SqlMigrationPlan, type SqlMigrationPlanContractInfo, type SqlMigrationPlanOperation, type SqlMigrationPlanOperationStep, type SqlMigrationPlanOperationTarget, type SqlMigrationPlanner, type SqlMigrationPlannerPlanOptions, type SqlMigrationRunner, type SqlMigrationRunnerErrorCode, type SqlMigrationRunnerExecuteCallbacks, type SqlMigrationRunnerExecuteOptions, type SqlMigrationRunnerFailure, type SqlMigrationRunnerResult, type SqlMigrationRunnerSuccessValue, type SqlPlanTargetDetails, type SqlPlannerConflict, type SqlPlannerConflictKind, type SqlPlannerConflictLocation, type SqlPlannerFailureResult, type SqlPlannerResult, type SqlPlannerSuccessResult, type SqlPslBuildContext, type SqlSchemaDiffFn, type SqlSchemaDiffInput, type SqlSchemaDiffResult, type StorageTypePlanResult, type SuppressionRecord, TABLE_NAME_CASE_CHANGED_CODE, type TableNameCaseGuardTable, type TargetMigrationsCapability, assembleAuthoringContributions, buildDataTypeResolver, buildNativeTypeExpander, checkSqlDefaultBody, contractNamespaceToSchemaIR, contractToSchemaIR, controlPolicyForCall, createMigrationPlan, _default as default, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventOperations, plannerFailure, plannerSuccess, runnerFailure, runnerSuccess, temporalCodecPresetWithPrecision, temporalStringAuthoringPresets };
@@ -1,4 +1,4 @@
1
1
  import { n as checkSqlDefaultBody } from "./validators-BlqrBU7I.mjs";
2
- import { o as extractCodecControlHooks } from "./schema-verify-DI0aJQ9d-Bgbmen10.mjs";
3
- import { _ as plannerSuccess, a as buildNativeTypeExpander, b as temporalCodecPresetWithPrecision, c as controlPolicyForCall, d as detectDestructiveChanges, f as detectTableNameCaseChanges, g as plannerFailure, h as planFieldEventOperations, i as buildDataTypeResolver, l as control_default, m as partitionIssuesByControlPolicy, n as TABLE_NAME_CASE_CHANGED_CODE, o as contractNamespaceToSchemaIR, p as partitionCallsByControlPolicy, r as assembleAuthoringContributions, s as contractToSchemaIR, t as INIT_ADDITIVE_POLICY, u as createMigrationPlan, v as runnerFailure, x as temporalStringAuthoringPresets, y as runnerSuccess } from "./control-2-eFP31F.mjs";
2
+ import { o as extractCodecControlHooks } from "./schema-verify-DI0aJQ9d-DL-C6on7.mjs";
3
+ import { _ as plannerSuccess, a as buildNativeTypeExpander, b as temporalCodecPresetWithPrecision, c as controlPolicyForCall, d as detectDestructiveChanges, f as detectTableNameCaseChanges, g as plannerFailure, h as planFieldEventOperations, i as buildDataTypeResolver, l as control_default, m as partitionIssuesByControlPolicy, n as TABLE_NAME_CASE_CHANGED_CODE, o as contractNamespaceToSchemaIR, p as partitionCallsByControlPolicy, r as assembleAuthoringContributions, s as contractToSchemaIR, t as INIT_ADDITIVE_POLICY, u as createMigrationPlan, v as runnerFailure, x as temporalStringAuthoringPresets, y as runnerSuccess } from "./control-DMbej03E.mjs";
4
4
  export { INIT_ADDITIVE_POLICY, TABLE_NAME_CASE_CHANGED_CODE, assembleAuthoringContributions, buildDataTypeResolver, buildNativeTypeExpander, checkSqlDefaultBody, contractNamespaceToSchemaIR, contractToSchemaIR, controlPolicyForCall, createMigrationPlan, control_default as default, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventOperations, plannerFailure, plannerSuccess, runnerFailure, runnerSuccess, temporalCodecPresetWithPrecision, temporalStringAuthoringPresets };
@@ -1,3 +1,3 @@
1
- import { o as arraysEqual, r as NativeTypeNormalizer } from "./control-adapter-C99J7aEF-B3_IhgH6.mjs";
2
- import { a as VerifySqlSchemaByDiffInput, c as computeSqlDiffVerdict, i as StorageTypeVerdictInput, l as computeStorageTypeVerdict, n as SqlDiffVerdictInput, o as classifyDiffSubjectGranularity, r as StorageTypeVerdict, s as classifySqlDiffIssue, t as SqlDiffVerdict, u as verifySqlSchemaByDiff } from "./diff-DFOiwUHg.mjs";
1
+ import { o as arraysEqual, r as NativeTypeNormalizer } from "./control-adapter-C4_cgvzB-BwZx3_VD.mjs";
2
+ import { a as VerifySqlSchemaByDiffInput, c as computeSqlDiffVerdict, i as StorageTypeVerdictInput, l as computeStorageTypeVerdict, n as SqlDiffVerdictInput, o as classifyDiffSubjectGranularity, r as StorageTypeVerdict, s as classifySqlDiffIssue, t as SqlDiffVerdict, u as verifySqlSchemaByDiff } from "./diff-C_zQQTgw.mjs";
3
3
  export { type NativeTypeNormalizer, type SqlDiffVerdict, type SqlDiffVerdictInput, type StorageTypeVerdict, type StorageTypeVerdictInput, type VerifySqlSchemaByDiffInput, arraysEqual, classifyDiffSubjectGranularity, classifySqlDiffIssue, computeSqlDiffVerdict, computeStorageTypeVerdict, verifySqlSchemaByDiff };
@@ -1,3 +1,3 @@
1
- import { a as computeStorageTypeVerdict, i as computeSqlDiffVerdict, n as classifyDiffSubjectGranularity, r as classifySqlDiffIssue, s as verifySqlSchemaByDiff } from "./schema-verify-DI0aJQ9d-Bgbmen10.mjs";
1
+ import { a as computeStorageTypeVerdict, i as computeSqlDiffVerdict, n as classifyDiffSubjectGranularity, r as classifySqlDiffIssue, s as verifySqlSchemaByDiff } from "./schema-verify-DI0aJQ9d-DL-C6on7.mjs";
2
2
  import { t as arraysEqual } from "./diff-B16bL_IR.mjs";
3
3
  export { arraysEqual, classifyDiffSubjectGranularity, classifySqlDiffIssue, computeSqlDiffVerdict, computeStorageTypeVerdict, verifySqlSchemaByDiff };
@@ -1,2 +1,2 @@
1
- import { i as SqlSchemaVerifierBase, n as SqlContractSerializerBase, r as SqlEntityHydrationFactory, t as SqlContractSerializer } from "./ir-BJ-dsbe-.mjs";
1
+ import { i as SqlSchemaVerifierBase, n as SqlContractSerializerBase, r as SqlEntityHydrationFactory, t as SqlContractSerializer } from "./ir-DI4cwMsy.mjs";
2
2
  export { SqlContractSerializer, SqlContractSerializerBase, type SqlEntityHydrationFactory, SqlSchemaVerifierBase };
@@ -1,3 +1,3 @@
1
- import { n as SqlContractSerializerBase, t as SqlContractSerializer } from "./sql-contract-serializer-C90xg7_q-DERDzTD5.mjs";
1
+ import { n as SqlContractSerializerBase, t as SqlContractSerializer } from "./sql-contract-serializer-C90xg7_q-DBJSt3MT.mjs";
2
2
  import { t as SqlSchemaVerifierBase } from "./ir-I-xciGUH.mjs";
3
3
  export { SqlContractSerializer, SqlContractSerializerBase, SqlSchemaVerifierBase };
@@ -1,2 +1,2 @@
1
- import { t as SqlMigration } from "./migration-Csmr6bd8.mjs";
1
+ import { t as SqlMigration } from "./migration-CRsGI-9f.mjs";
2
2
  export { SqlMigration as Migration };
@@ -1,2 +1,2 @@
1
- import { t as sqlFamilyPack } from "./pack-BUv79Jrr.mjs";
1
+ import { t as sqlFamilyPack } from "./pack-DcSVDz7M.mjs";
2
2
  export { sqlFamilyPack as default };
@@ -1,5 +1,5 @@
1
1
  import { f as sqlAttributeSpecs } from "./sql-attribute-specs-Bs9QDuS7-DmIRJUz9.mjs";
2
- import { i as sqlFamilyPslBlockDescriptors, n as sqlFamilyAuthoringTypes, r as sqlFamilyEntityTypes, t as sqlFamilyAuthoringFieldPresets } from "./authoring-type-constructors-DQZEX4Sb-D6uFhwhG.mjs";
2
+ import { i as sqlFamilyPslBlockDescriptors, n as sqlFamilyAuthoringTypes, r as sqlFamilyEntityTypes, t as sqlFamilyAuthoringFieldPresets } from "./authoring-type-constructors-DIyheCzv-BgR6EC_E.mjs";
3
3
  //#region ../../../2-sql/9-family/dist/pack.mjs
4
4
  const sqlFamilyPack = {
5
5
  kind: "family",
@@ -1 +1 @@
1
- {"version":3,"file":"family__pack.mjs","names":[],"sources":["../../../../2-sql/9-family/dist/pack.mjs"],"sourcesContent":["import { i as sqlFamilyPslBlockDescriptors, n as sqlFamilyAuthoringFieldPresets, r as sqlFamilyEntityTypes, t as sqlFamilyAuthoringTypes } from \"./authoring-type-constructors-DQZEX4Sb.mjs\";\nimport { sqlAttributeSpecs } from \"@internal/sql-contract-psl/attribute-specs\";\n//#region src/exports/pack.ts\nconst sqlFamilyPack = {\n\tkind: \"family\",\n\tid: \"sql\",\n\tfamilyId: \"sql\",\n\tversion: \"0.0.1\",\n\tauthoring: {\n\t\tfield: sqlFamilyAuthoringFieldPresets,\n\t\ttype: sqlFamilyAuthoringTypes,\n\t\tentityTypes: sqlFamilyEntityTypes,\n\t\tpslBlockDescriptors: sqlFamilyPslBlockDescriptors,\n\t\tattributeSpecs: sqlAttributeSpecs\n\t}\n};\n//#endregion\nexport { sqlFamilyPack as default };\n\n//# sourceMappingURL=pack.mjs.map"],"mappings":";;;AAGA,MAAM,gBAAgB;CACrB,MAAM;CACN,IAAI;CACJ,UAAU;CACV,SAAS;CACT,WAAW;EACV,OAAO;EACP,MAAM;EACN,aAAa;EACb,qBAAqB;EACrB,gBAAgB;CACjB;AACD"}
1
+ {"version":3,"file":"family__pack.mjs","names":[],"sources":["../../../../2-sql/9-family/dist/pack.mjs"],"sourcesContent":["import { i as sqlFamilyPslBlockDescriptors, n as sqlFamilyAuthoringFieldPresets, r as sqlFamilyEntityTypes, t as sqlFamilyAuthoringTypes } from \"./authoring-type-constructors-DIyheCzv.mjs\";\nimport { sqlAttributeSpecs } from \"@internal/sql-contract-psl/attribute-specs\";\n//#region src/exports/pack.ts\nconst sqlFamilyPack = {\n\tkind: \"family\",\n\tid: \"sql\",\n\tfamilyId: \"sql\",\n\tversion: \"0.0.1\",\n\tauthoring: {\n\t\tfield: sqlFamilyAuthoringFieldPresets,\n\t\ttype: sqlFamilyAuthoringTypes,\n\t\tentityTypes: sqlFamilyEntityTypes,\n\t\tpslBlockDescriptors: sqlFamilyPslBlockDescriptors,\n\t\tattributeSpecs: sqlAttributeSpecs\n\t}\n};\n//#endregion\nexport { sqlFamilyPack as default };\n\n//# sourceMappingURL=pack.mjs.map"],"mappings":";;;AAGA,MAAM,gBAAgB;CACrB,MAAM;CACN,IAAI;CACJ,UAAU;CACV,SAAS;CACT,WAAW;EACV,OAAO;EACP,MAAM;EACN,aAAa;EACb,qBAAqB;EACrB,gBAAgB;CACjB;AACD"}
@@ -1,3 +1,3 @@
1
1
  import { s as toEnumMemberName } from "./psl-names-C3cwe0rg-CsuHOV7E.mjs";
2
- import { t as mapDefault } from "./psl-build-ph4eUJSB.mjs";
2
+ import { t as mapDefault } from "./psl-build-139T3MMA.mjs";
3
3
  export { mapDefault, toEnumMemberName };
@@ -1,3 +1,3 @@
1
- import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-Nyrgk4h8.mjs";
2
- import { a as timestampNowRuntimeGenerator, i as sqlRuntimeFamilyDescriptor, n as UNBOUND_DOMAIN_NAMESPACE_ID, r as resolveDomainModel, t as ResolvedDomainModel } from "./runtime-DgOeosYa.mjs";
1
+ import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-DhgzQjow.mjs";
2
+ import { a as timestampNowRuntimeGenerator, i as sqlRuntimeFamilyDescriptor, n as UNBOUND_DOMAIN_NAMESPACE_ID, r as resolveDomainModel, t as ResolvedDomainModel } from "./runtime-I-W0bhvd.mjs";
3
3
  export { type ResolvedDomainModel, type ResolvedStorageTable, UNBOUND_DOMAIN_NAMESPACE_ID, sqlRuntimeFamilyDescriptor as default, resolveDomainModel, resolveStorageTable, timestampNowRuntimeGenerator };
@@ -1,5 +1,5 @@
1
- import { w as QueryOperationTypeEntry } from "./types-BDUG29Df-LE85dIXP.mjs";
2
- import "./types-C36_3E6_.mjs";
1
+ import { w as QueryOperationTypeEntry } from "./types-DTUyRqZv-DLh98w8w.mjs";
2
+ import "./types-BoMDdzjD.mjs";
3
3
  import { OperationDescriptor, OperationDescriptors, OperationRegistry } from "@prisma/orm-framework/operations";
4
4
  //#region ../../../2-sql/1-core/operations/dist/index.d.mts
5
5
  //#region src/index.d.ts
@@ -21,4 +21,4 @@ type SqlOperationRegistry = OperationRegistry<SqlOperationEntry>;
21
21
  declare function createSqlOperationRegistry(): SqlOperationRegistry;
22
22
  //#endregion
23
23
  export { SqlOperationRegistry as a, SqlOperationEntry as i, SqlOperationDescriptor as n, createSqlOperationRegistry as o, SqlOperationDescriptors as r, SqlLoweringSpec as t };
24
- //# sourceMappingURL=index-Cef8iy1o.d.mts.map
24
+ //# sourceMappingURL=index-DrUd8HwS.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-Cef8iy1o.d.mts","names":[],"sources":["../../../../2-sql/1-core/operations/dist/index.d.mts"],"mappings":";;;;;UAGU;WACC;WACA;;;;;;;;;KASN,oBAAoB;KACpB,yBAAyB,oBAAoB;KAC7C,0BAA0B,qBAAqB;KAC/C,uBAAuB,kBAAkB;iBAC7B,8BAA8B"}
1
+ {"version":3,"file":"index-DrUd8HwS.d.mts","names":[],"sources":["../../../../2-sql/1-core/operations/dist/index.d.mts"],"mappings":";;;;;UAGU;WACC;WACA;;;;;;;;;KASN,oBAAoB;KACpB,yBAAyB,oBAAoB;KAC7C,0BAA0B,qBAAqB;KAC/C,uBAAuB,kBAAkB;iBAC7B,8BAA8B"}
@@ -1,13 +1,13 @@
1
- import { c as SqlStorage } from "./sql-storage-8LqxeLAY-DH4DdUXx.mjs";
2
- import "./types-C36_3E6_.mjs";
3
- import { dt as LoweredStatement, h as AnyQueryAst, k as ContractCodecRegistry } from "./types-Yui2yFf6-Dnc7RNUD.mjs";
4
- import { t as Adapter } from "./ast-B53rACdv.mjs";
5
- import { n as SqlQueryPlan } from "./plan-B7g2kDfQ-ZD3BfWYx.mjs";
6
- import { t as SqlExecutionPlan } from "./sql-execution-plan-Db0j752I-faODNLY9.mjs";
7
- import "./plan-CVje8E5I.mjs";
8
- import { t as CodecDescriptorRegistry } from "./query-lane-context-D6o9YrEV-BxW3-5e8.mjs";
9
- import "./query-lane-context-D54z0tof.mjs";
10
- import { O as SqlMiddleware } from "./prepared-statement-BHSj2pDk-D9a_Vwr-.mjs";
1
+ import { c as SqlStorage } from "./sql-storage-BSxD7_vv-C4ugLH39.mjs";
2
+ import "./types-BoMDdzjD.mjs";
3
+ import { dt as LoweredStatement, h as AnyQueryAst, k as ContractCodecRegistry } from "./types-Yui2yFf6-DQkiEr9B.mjs";
4
+ import { t as Adapter } from "./ast-BQOF33Tw.mjs";
5
+ import { n as SqlQueryPlan } from "./plan-B7g2kDfQ-Do1iWC4q.mjs";
6
+ import { t as SqlExecutionPlan } from "./sql-execution-plan-Db0j752I-uGUWy8sD.mjs";
7
+ import "./plan-BBBYfvlz.mjs";
8
+ import { t as CodecDescriptorRegistry } from "./query-lane-context-BSmWfohZ-QAWw_dXQ.mjs";
9
+ import "./query-lane-context-B0R8L6W-.mjs";
10
+ import { O as SqlMiddleware } from "./prepared-statement-BdsTSY7Y-ICyuLB7c.mjs";
11
11
  import { Contract } from "@prisma/orm-framework/contract/types";
12
12
  import { AfterExecuteResult as AfterExecuteResult$1, AfterQueryResult as AfterQueryResult$1, ExecuteInterceptResult as ExecuteInterceptResult$1, QueryInterceptResult as QueryInterceptResult$1, RuntimeLog as Log } from "@prisma/orm-framework/components/runtime";
13
13
  //#region ../../../2-sql/5-runtime/dist/index.d.mts
@@ -81,4 +81,4 @@ interface LintsOptions {
81
81
  declare function lints(options?: LintsOptions): SqlMiddleware;
82
82
  //#endregion
83
83
  export { LintsOptions as a, budgets as c, lints as d, lowerSqlPlan as f, ExecuteInterceptResult$1 as i, createAstCodecRegistry as l, validateContractCodecMappings as m, AfterQueryResult$1 as n, Log as o, validateCodecRegistryCompleteness as p, BudgetsOptions as r, QueryInterceptResult$1 as s, AfterExecuteResult$1 as t, extractCodecIds as u };
84
- //# sourceMappingURL=index-BNL2_qQY.d.mts.map
84
+ //# sourceMappingURL=index-DrWMh8L0.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-BNL2_qQY.d.mts","names":[],"sources":["../../../../2-sql/5-runtime/dist/index.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAiBiB,uBAAuB,aAAa,0BAA0B;;;iBAG9D,gBAAgB,UAAU,SAAS,cAAc;iBACjD,8BAA8B,UAAU,yBAAyB,UAAU,SAAS;iBACpF,kCAAkC,UAAU,yBAAyB,UAAU,SAAS;;;;;;;;;;;;iBAYxF,aAAa,KAAK,SAAS,QAAQ,aAAa,SAAS,aAAa,mBAAmB,UAAU,SAAS,aAAa,WAAW,aAAa,OAAO,iBAAiB;;;UAGhL;WACC;WACA;WACA,YAAY;WACZ;WACA;aACE;aACA;;;iBAGI,QAAQ,UAAU,iBAAiB;;;UAG1C;WACC;aACE;aACA;aACA;aACA;aACA;;WAEF;;;;;;;;;;;;;;;;iBAgBM,MAAM,UAAU,eAAe"}
1
+ {"version":3,"file":"index-DrWMh8L0.d.mts","names":[],"sources":["../../../../2-sql/5-runtime/dist/index.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBAiBiB,uBAAuB,aAAa,0BAA0B;;;iBAG9D,gBAAgB,UAAU,SAAS,cAAc;iBACjD,8BAA8B,UAAU,yBAAyB,UAAU,SAAS;iBACpF,kCAAkC,UAAU,yBAAyB,UAAU,SAAS;;;;;;;;;;;;iBAYxF,aAAa,KAAK,SAAS,QAAQ,aAAa,SAAS,aAAa,mBAAmB,UAAU,SAAS,aAAa,WAAW,aAAa,OAAO,iBAAiB;;;UAGhL;WACC;WACA;WACA,YAAY;WACZ;WACA;aACE;aACA;;;iBAGI,QAAQ,UAAU,iBAAiB;;;UAG1C;WACC;aACE;aACA;aACA;aACA;aACA;;WAEF;;;;;;;;;;;;;;;;iBAgBM,MAAM,UAAU,eAAe"}
@@ -1,5 +1,5 @@
1
- import { c as SqlStorage } from "./sql-storage-8LqxeLAY-DH4DdUXx.mjs";
2
- import "./types-BDUG29Df-LE85dIXP.mjs";
1
+ import { c as SqlStorage } from "./sql-storage-BSxD7_vv-C4ugLH39.mjs";
2
+ import "./types-DTUyRqZv-DLh98w8w.mjs";
3
3
  import { a as IndexTypeRegistry } from "./index-types-DPVhsW0v-D-BikM4h.mjs";
4
4
  import { Contract } from "@prisma/orm-framework/contract/types";
5
5
  //#region ../../../2-sql/1-core/contract/dist/index-type-validation.d.mts
@@ -7,4 +7,4 @@ import { Contract } from "@prisma/orm-framework/contract/types";
7
7
  declare function validateIndexTypes(contract: Contract<SqlStorage>, indexTypeRegistry: IndexTypeRegistry): void;
8
8
  //#endregion
9
9
  export { validateIndexTypes as t };
10
- //# sourceMappingURL=index-type-validation-CZ5L2lli.d.mts.map
10
+ //# sourceMappingURL=index-type-validation-BAQWs-c_.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index-type-validation-CZ5L2lli.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/index-type-validation.d.mts"],"mappings":";;;;;;iBAKiB,mBAAmB,UAAU,SAAS,aAAa,mBAAmB"}
1
+ {"version":3,"file":"index-type-validation-BAQWs-c_.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/index-type-validation.d.mts"],"mappings":";;;;;;iBAKiB,mBAAmB,UAAU,SAAS,aAAa,mBAAmB"}