@prisma/orm-family-sql 8.0.0-rc.18-dev.9 → 8.0.0-rc.18-dev.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (212) hide show
  1. package/dist/{ast-DbmdIKFd.d.mts → ast-BoM9T1b2.d.mts} +3 -3
  2. package/dist/{ast-DbmdIKFd.d.mts.map → ast-BoM9T1b2.d.mts.map} +1 -1
  3. package/dist/{attribute-specs-CKg3a2P_.d.mts → attribute-specs-D7EhHD08.d.mts} +4 -8
  4. package/dist/{attribute-specs-CKg3a2P_.d.mts.map → attribute-specs-D7EhHD08.d.mts.map} +1 -1
  5. package/dist/{authoring-entity-types-CZ-vdwYS-Cc7JCJ0Q.d.mts → authoring-entity-types-CZ-vdwYS-Cl5erH9X.d.mts} +2 -2
  6. package/dist/{authoring-entity-types-CZ-vdwYS-Cc7JCJ0Q.d.mts.map → authoring-entity-types-CZ-vdwYS-Cl5erH9X.d.mts.map} +1 -1
  7. package/dist/{authoring-type-constructors-0Iv2zdwS-BG0FZNDM.mjs → authoring-type-constructors-0Iv2zdwS-yMnSyGBK.mjs} +2 -2
  8. package/dist/{authoring-type-constructors-0Iv2zdwS-BG0FZNDM.mjs.map → authoring-type-constructors-0Iv2zdwS-yMnSyGBK.mjs.map} +1 -1
  9. package/dist/builder.d.mts +3 -3
  10. package/dist/builder__runtime.d.mts +10 -10
  11. package/dist/builder__runtime.mjs +1 -1
  12. package/dist/builder__types.d.mts +5 -5
  13. package/dist/{codec-descriptor-registry-CYK0Wzja.mjs → codec-descriptor-registry-Bg9OjQf_.mjs} +2 -2
  14. package/dist/{codec-descriptor-registry-CYK0Wzja.mjs.map → codec-descriptor-registry-Bg9OjQf_.mjs.map} +1 -1
  15. package/dist/{collection-methods-BnR4UjcW-BY8ZGjfa.d.mts → collection-methods-BnR4UjcW-C_55W2m0.d.mts} +4 -4
  16. package/dist/{collection-methods-BnR4UjcW-BY8ZGjfa.d.mts.map → collection-methods-BnR4UjcW-C_55W2m0.d.mts.map} +1 -1
  17. package/dist/collection-methods-CyUXbXVw.d.mts +1 -0
  18. package/dist/{config-types-C2mASmPh.d.mts → config-types-B47kpY4J.d.mts} +4 -4
  19. package/dist/{config-types-C2mASmPh.d.mts.map → config-types-B47kpY4J.d.mts.map} +1 -1
  20. package/dist/{config-types-CrREu8Fa.mjs → config-types-ni1nb_HA.mjs} +2 -2
  21. package/dist/{config-types-CrREu8Fa.mjs.map → config-types-ni1nb_HA.mjs.map} +1 -1
  22. package/dist/{contract-builder-ClsLO9DI.d.mts → contract-builder-CH0AIjsv.d.mts} +5 -23
  23. package/dist/contract-builder-CH0AIjsv.d.mts.map +1 -0
  24. package/dist/{contract-builder-Du_YOA1B.mjs → contract-builder-CiYVj56_.mjs} +4 -19
  25. package/dist/contract-builder-CiYVj56_.mjs.map +1 -0
  26. package/dist/contract-emitter.mjs +1 -1
  27. package/dist/contract-prisma7__provider.d.mts +2 -2
  28. package/dist/contract-prisma7__provider.mjs +5 -8
  29. package/dist/contract-prisma7__provider.mjs.map +1 -1
  30. package/dist/contract-psl.d.mts +3 -3
  31. package/dist/contract-psl.mjs +1 -1
  32. package/dist/contract-psl__attribute-specs.d.mts +1 -1
  33. package/dist/contract-psl__attribute-specs.mjs +1 -1
  34. package/dist/contract-psl__provider.d.mts +2 -2
  35. package/dist/contract-psl__provider.mjs +2 -2
  36. package/dist/contract-psl__provider.mjs.map +1 -1
  37. package/dist/contract-ts.d.mts +4 -5
  38. package/dist/contract-ts.mjs +3 -3
  39. package/dist/contract-ts__config-types.d.mts +1 -1
  40. package/dist/contract-ts__config-types.mjs +1 -1
  41. package/dist/contract-ts__contract-builder.d.mts +3 -4
  42. package/dist/contract-ts__contract-builder.mjs +2 -2
  43. package/dist/{contract-view-CijuTaer.d.mts → contract-view-BAbRgQMW.d.mts} +2 -2
  44. package/dist/{contract-view-CijuTaer.d.mts.map → contract-view-BAbRgQMW.d.mts.map} +1 -1
  45. package/dist/contract.d.mts +10 -10
  46. package/dist/contract.mjs +6 -6
  47. package/dist/contract__contract-view.d.mts +1 -1
  48. package/dist/contract__entity-kinds.d.mts +1 -1
  49. package/dist/contract__entity-kinds.mjs +1 -1
  50. package/dist/contract__factories.d.mts +1 -1
  51. package/dist/contract__factories.mjs +1 -1
  52. package/dist/contract__index-type-validation.d.mts +1 -1
  53. package/dist/contract__resolve-storage-table.d.mts +1 -1
  54. package/dist/contract__types.d.mts +4 -4
  55. package/dist/contract__types.mjs +3 -3
  56. package/dist/contract__validators.d.mts +1 -1
  57. package/dist/contract__validators.mjs +2 -2
  58. package/dist/{control-Ced1D4yz.d.mts → control-DI79MS1a.d.mts} +15 -19
  59. package/dist/control-DI79MS1a.d.mts.map +1 -0
  60. package/dist/{control-DiLXYDZc.mjs → control-Dw27oEaF.mjs} +9 -9
  61. package/dist/{control-DiLXYDZc.mjs.map → control-Dw27oEaF.mjs.map} +1 -1
  62. package/dist/{control-adapter-CkFfBVei-4WUzQP7G.d.mts → control-adapter-CkFfBVei-DGf1LihO.d.mts} +6 -6
  63. package/dist/{control-adapter-CkFfBVei-4WUzQP7G.d.mts.map → control-adapter-CkFfBVei-DGf1LihO.d.mts.map} +1 -1
  64. package/dist/control-adapter-DDjgBMy3.d.mts +1 -0
  65. package/dist/{db-BmrN9nRS-CkMIL55t.d.mts → db-BmrN9nRS-CzyybGKR.d.mts} +13 -13
  66. package/dist/{db-BmrN9nRS-CkMIL55t.d.mts.map → db-BmrN9nRS-CzyybGKR.d.mts.map} +1 -1
  67. package/dist/{ddl-types-DtKZjNtN-BCpmdMQF.d.mts → ddl-types-DtKZjNtN-DWQeO79o.d.mts} +3 -3
  68. package/dist/{ddl-types-DtKZjNtN-BCpmdMQF.d.mts.map → ddl-types-DtKZjNtN-DWQeO79o.d.mts.map} +1 -1
  69. package/dist/{derived-checks-BVSHiu2A-CzEmkTMg.mjs → derived-checks-Cgx_VgS3-CmFqNFgU.mjs} +8 -53
  70. package/dist/derived-checks-Cgx_VgS3-CmFqNFgU.mjs.map +1 -0
  71. package/dist/{derived-checks-DpPkO6Dt--oL-Zi3r.d.mts → derived-checks-DpPkO6Dt-BMXrIjZy.d.mts} +3 -3
  72. package/dist/{derived-checks-DpPkO6Dt--oL-Zi3r.d.mts.map → derived-checks-DpPkO6Dt-BMXrIjZy.d.mts.map} +1 -1
  73. package/dist/{diff-Cx7qTc2x.d.mts → diff-CVVGktZG.d.mts} +6 -6
  74. package/dist/{diff-Cx7qTc2x.d.mts.map → diff-CVVGktZG.d.mts.map} +1 -1
  75. package/dist/{dist-D4FKWSKx.mjs → dist-Cg2lL1hR.mjs} +2 -2
  76. package/dist/{dist-D4FKWSKx.mjs.map → dist-Cg2lL1hR.mjs.map} +1 -1
  77. package/dist/{entity-kinds-DqUYen0Y.d.mts → entity-kinds-BCMNbwxO.d.mts} +2 -2
  78. package/dist/{entity-kinds-DqUYen0Y.d.mts.map → entity-kinds-BCMNbwxO.d.mts.map} +1 -1
  79. package/dist/{entity-kinds-DDTkNIr9-DJ2EIO94.mjs → entity-kinds-CQ_jwgYv-HA5t2SE0.mjs} +5 -14
  80. package/dist/entity-kinds-CQ_jwgYv-HA5t2SE0.mjs.map +1 -0
  81. package/dist/{expression-CNBCbbzU-DnvLZYf4.d.mts → expression-CNBCbbzU-DOXKUxQs.d.mts} +3 -3
  82. package/dist/{expression-CNBCbbzU-DnvLZYf4.d.mts.map → expression-CNBCbbzU-DOXKUxQs.d.mts.map} +1 -1
  83. package/dist/{expression-Ck1wys3N-CBfr-HMG.d.mts → expression-Ck1wys3N-Cdc7eUQS.d.mts} +7 -7
  84. package/dist/{expression-Ck1wys3N-CBfr-HMG.d.mts.map → expression-Ck1wys3N-Cdc7eUQS.d.mts.map} +1 -1
  85. package/dist/expression-DUYovBa6.d.mts +2 -0
  86. package/dist/{factories-2LNVsQ2j.d.mts → factories-B4AMRt6O.d.mts} +3 -3
  87. package/dist/{factories-2LNVsQ2j.d.mts.map → factories-B4AMRt6O.d.mts.map} +1 -1
  88. package/dist/{factories-CScqMnFk.mjs → factories-vDQ3S5gW.mjs} +2 -2
  89. package/dist/{factories-CScqMnFk.mjs.map → factories-vDQ3S5gW.mjs.map} +1 -1
  90. package/dist/family.d.mts +12 -12
  91. package/dist/family.mjs +4 -4
  92. package/dist/family__control-adapter.d.mts +2 -2
  93. package/dist/family__control.d.mts +4 -4
  94. package/dist/family__control.mjs +3 -3
  95. package/dist/family__diff.d.mts +2 -2
  96. package/dist/family__diff.mjs +1 -1
  97. package/dist/family__ir.d.mts +1 -1
  98. package/dist/family__ir.mjs +1 -1
  99. package/dist/family__migration.d.mts +1 -1
  100. package/dist/family__pack.d.mts +1 -1
  101. package/dist/family__pack.mjs +2 -2
  102. package/dist/family__runtime.d.mts +2 -2
  103. package/dist/{functions-DucgffNf.d.mts → functions-DSwXxsTg.d.mts} +6 -6
  104. package/dist/{functions-DucgffNf.d.mts.map → functions-DSwXxsTg.d.mts.map} +1 -1
  105. package/dist/{index-CJlr0Eja.d.mts → index-BXFiad5j.d.mts} +3 -3
  106. package/dist/{index-CJlr0Eja.d.mts.map → index-BXFiad5j.d.mts.map} +1 -1
  107. package/dist/{index-DuD4M3b8.d.mts → index-C8jUgdUh.d.mts} +20 -20
  108. package/dist/{index-DuD4M3b8.d.mts.map → index-C8jUgdUh.d.mts.map} +1 -1
  109. package/dist/index-reference-DGQdSRjQ.d.mts +1 -0
  110. package/dist/{index-reference-DJX-CNsb-C1fCMhrJ.d.mts → index-reference-DJX-CNsb-D5uoBnH_.d.mts} +3 -3
  111. package/dist/{index-reference-DJX-CNsb-C1fCMhrJ.d.mts.map → index-reference-DJX-CNsb-D5uoBnH_.d.mts.map} +1 -1
  112. package/dist/{index-type-validation-P4WLRyZA.d.mts → index-type-validation-Cz2T3FJn.d.mts} +3 -3
  113. package/dist/{index-type-validation-P4WLRyZA.d.mts.map → index-type-validation-Cz2T3FJn.d.mts.map} +1 -1
  114. package/dist/{interpreter-y1GRudgs-DnP0uDGL.mjs → interpreter-CvmBTYyI-DNl-jr2E.mjs} +5 -6
  115. package/dist/interpreter-CvmBTYyI-DNl-jr2E.mjs.map +1 -0
  116. package/dist/{ir-BEQwEnRB.d.mts → ir-D0Vpm5O9.d.mts} +3 -3
  117. package/dist/{ir-BEQwEnRB.d.mts.map → ir-D0Vpm5O9.d.mts.map} +1 -1
  118. package/dist/middleware-Bp-R5o9E.d.mts +1 -0
  119. package/dist/{middleware-YsFLC19Y-Dot9R8QY.d.mts → middleware-YsFLC19Y-5mJZCBWq.d.mts} +2 -2
  120. package/dist/{middleware-YsFLC19Y-Dot9R8QY.d.mts.map → middleware-YsFLC19Y-5mJZCBWq.d.mts.map} +1 -1
  121. package/dist/{migration-Cc102YUu.d.mts → migration-ESRa6312.d.mts} +4 -4
  122. package/dist/{migration-Cc102YUu.d.mts.map → migration-ESRa6312.d.mts.map} +1 -1
  123. package/dist/operations.d.mts +1 -1
  124. package/dist/orm-client.d.mts +21 -21
  125. package/dist/orm-client.mjs +1 -1
  126. package/dist/{pack-DI4Nur5d.d.mts → pack-BtGENS4_.d.mts} +3 -7
  127. package/dist/{pack-DI4Nur5d.d.mts.map → pack-BtGENS4_.d.mts.map} +1 -1
  128. package/dist/plan-DdpaNNu1.d.mts +2 -0
  129. package/dist/{plan-cGEaSXHv-Bv-SBtFA.d.mts → plan-cGEaSXHv-yuz43WrR.d.mts} +4 -4
  130. package/dist/{plan-cGEaSXHv-Bv-SBtFA.d.mts.map → plan-cGEaSXHv-yuz43WrR.d.mts.map} +1 -1
  131. package/dist/{psl-column-resolution-BCkhNzOK-0Gry4LFl.d.mts → psl-column-resolution-BCkhNzOK-Bbrs_WzK.d.mts} +2 -2
  132. package/dist/{psl-column-resolution-BCkhNzOK-0Gry4LFl.d.mts.map → psl-column-resolution-BCkhNzOK-Bbrs_WzK.d.mts.map} +1 -1
  133. package/dist/{psl-field-resolution-4U7Plpfb-CCfgoBAa.mjs → psl-field-resolution-SPNDr-jr-CH_gs3Oy.mjs} +4 -92
  134. package/dist/psl-field-resolution-SPNDr-jr-CH_gs3Oy.mjs.map +1 -0
  135. package/dist/{query-lane-context-C42-u9L1-CUP3uW4A.d.mts → query-lane-context-C42-u9L1-BSJoP83K.d.mts} +7 -7
  136. package/dist/{query-lane-context-C42-u9L1-CUP3uW4A.d.mts.map → query-lane-context-C42-u9L1-BSJoP83K.d.mts.map} +1 -1
  137. package/dist/query-lane-context-C4xq68Mr.d.mts +1 -0
  138. package/dist/relational-core.d.mts +12 -12
  139. package/dist/relational-core__aggregate-descriptor-registry.d.mts +1 -1
  140. package/dist/relational-core__ast.d.mts +3 -3
  141. package/dist/relational-core__codec-descriptor-registry.d.mts +4 -4
  142. package/dist/relational-core__codec-descriptor-registry.mjs +1 -1
  143. package/dist/relational-core__collection-methods.d.mts +2 -2
  144. package/dist/relational-core__contract-free.d.mts +3 -3
  145. package/dist/relational-core__expression.d.mts +3 -3
  146. package/dist/relational-core__functions.d.mts +1 -1
  147. package/dist/relational-core__index-reference.d.mts +2 -2
  148. package/dist/relational-core__middleware.d.mts +2 -2
  149. package/dist/relational-core__plan.d.mts +3 -3
  150. package/dist/relational-core__query-lane-context.d.mts +2 -2
  151. package/dist/relational-core__types.d.mts +2 -2
  152. package/dist/{resolve-storage-table-wSUswl-4.d.mts → resolve-storage-table-8N2xelSh.d.mts} +3 -3
  153. package/dist/{resolve-storage-table-wSUswl-4.d.mts.map → resolve-storage-table-8N2xelSh.d.mts.map} +1 -1
  154. package/dist/{runtime-BHJXmBhw.d.mts → runtime-BlUQqGCH.d.mts} +2 -2
  155. package/dist/{runtime-BHJXmBhw.d.mts.map → runtime-BlUQqGCH.d.mts.map} +1 -1
  156. package/dist/runtime.d.mts +4 -4
  157. package/dist/runtime.mjs +1 -1
  158. package/dist/runtime__internal__prepared-query.d.mts +1 -1
  159. package/dist/{schema-differ-CqWOkoW9-DAcuiQPU.d.mts → schema-differ-CqWOkoW9-uVU2SdFf.d.mts} +3 -3
  160. package/dist/{schema-differ-CqWOkoW9-DAcuiQPU.d.mts.map → schema-differ-CqWOkoW9-uVU2SdFf.d.mts.map} +1 -1
  161. package/dist/{schema-verify-DIfHSB4I-CU6ViTDO.mjs → schema-verify-DIfHSB4I-wt28gB9e.mjs} +2 -2
  162. package/dist/{schema-verify-DIfHSB4I-CU6ViTDO.mjs.map → schema-verify-DIfHSB4I-wt28gB9e.mjs.map} +1 -1
  163. package/dist/{serialized-index-C26m_DWu-BjU519sW.mjs → serialized-index-52COq1yV-D8zJP-Xl.mjs} +3 -3
  164. package/dist/{serialized-index-C26m_DWu-BjU519sW.mjs.map → serialized-index-52COq1yV-D8zJP-Xl.mjs.map} +1 -1
  165. package/dist/{sql-contract-serializer-DDaAVCQr-DFIIkxQr.mjs → sql-contract-serializer-DDaAVCQr-Ba3XOCG6.mjs} +4 -4
  166. package/dist/{sql-contract-serializer-DDaAVCQr-DFIIkxQr.mjs.map → sql-contract-serializer-DDaAVCQr-Ba3XOCG6.mjs.map} +1 -1
  167. package/dist/{sql-execution-plan-C7XauPPu-DI9L8IkC.d.mts → sql-execution-plan-C7XauPPu-BgBp89vP.d.mts} +2 -2
  168. package/dist/{sql-execution-plan-C7XauPPu-DI9L8IkC.d.mts.map → sql-execution-plan-C7XauPPu-BgBp89vP.d.mts.map} +1 -1
  169. package/dist/{sql-storage-BTlJLUID-CGy3wuH4.d.mts → sql-storage-tZhB8nS5-8NSWT0TW.d.mts} +3 -3
  170. package/dist/{sql-storage-BTlJLUID-CGy3wuH4.d.mts.map → sql-storage-tZhB8nS5-8NSWT0TW.d.mts.map} +1 -1
  171. package/dist/{storage-table-WXeVNycx-BCwDhdq5.d.mts → storage-table-DC9afJhr-CmRU56OS.d.mts} +2 -7
  172. package/dist/storage-table-DC9afJhr-CmRU56OS.d.mts.map +1 -0
  173. package/dist/{storage-table-B7OSPl3G-p1j6AjMS.mjs → storage-table-DN36E2yE-Bm5eKeGw.mjs} +2 -3
  174. package/dist/{storage-table-B7OSPl3G-p1j6AjMS.mjs.map → storage-table-DN36E2yE-Bm5eKeGw.mjs.map} +1 -1
  175. package/dist/{transaction-state-DR3nKTmH-CkkfiS9z.d.mts → transaction-state-DR3nKTmH-D5eFB250.d.mts} +9 -9
  176. package/dist/{transaction-state-DR3nKTmH-CkkfiS9z.d.mts.map → transaction-state-DR3nKTmH-D5eFB250.d.mts.map} +1 -1
  177. package/dist/types-BSBsW0qR.d.mts +1 -0
  178. package/dist/{types-Cl4MLNrS-GHKQvTNi.d.mts → types-Cl4MLNrS-BXDsTb9U.d.mts} +10 -10
  179. package/dist/{types-Cl4MLNrS-GHKQvTNi.d.mts.map → types-Cl4MLNrS-BXDsTb9U.d.mts.map} +1 -1
  180. package/dist/{types-CzxOObSY-DTQ2rnLF.d.mts → types-CzxOObSY-Cq3t_HCe.d.mts} +7 -7
  181. package/dist/{types-CzxOObSY-DTQ2rnLF.d.mts.map → types-CzxOObSY-Cq3t_HCe.d.mts.map} +1 -1
  182. package/dist/{types-HD5m-h8B.d.mts → types-DMfBh16_.d.mts} +4 -4
  183. package/dist/{types-HD5m-h8B.d.mts.map → types-DMfBh16_.d.mts.map} +1 -1
  184. package/dist/{types-zwKzjyma-CxZkmkUI.d.mts → types-Dqf87mfA-BOElvimQ.d.mts} +4 -4
  185. package/dist/{types-zwKzjyma-CxZkmkUI.d.mts.map → types-Dqf87mfA-BOElvimQ.d.mts.map} +1 -1
  186. package/dist/{types-DXrO0fxT.mjs → types-GS3fwvoX.mjs} +2 -2
  187. package/dist/{types-DXrO0fxT.mjs.map → types-GS3fwvoX.mjs.map} +1 -1
  188. package/dist/{types-Sh5HuaZE-Dq4AUzl7.d.mts → types-Sh5HuaZE-BwZNUDEi.d.mts} +2 -2
  189. package/dist/{types-Sh5HuaZE-Dq4AUzl7.d.mts.map → types-Sh5HuaZE-BwZNUDEi.d.mts.map} +1 -1
  190. package/dist/{validators-CfUrQdiv.mjs → validators-DlpO67uZ.mjs} +35 -15
  191. package/dist/validators-DlpO67uZ.mjs.map +1 -0
  192. package/dist/{validators-BifwoR5e.d.mts → validators-R-Wsy5Rr.d.mts} +3 -4
  193. package/dist/validators-R-Wsy5Rr.d.mts.map +1 -0
  194. package/package.json +18 -18
  195. package/dist/collection-methods-iWGpEfkq.d.mts +0 -1
  196. package/dist/contract-builder-ClsLO9DI.d.mts.map +0 -1
  197. package/dist/contract-builder-Du_YOA1B.mjs.map +0 -1
  198. package/dist/control-Ced1D4yz.d.mts.map +0 -1
  199. package/dist/control-adapter-pn8u9o3J.d.mts +0 -1
  200. package/dist/derived-checks-BVSHiu2A-CzEmkTMg.mjs.map +0 -1
  201. package/dist/entity-kinds-DDTkNIr9-DJ2EIO94.mjs.map +0 -1
  202. package/dist/expression-eDSWdiqh.d.mts +0 -2
  203. package/dist/index-reference-CrohwmmB.d.mts +0 -1
  204. package/dist/interpreter-y1GRudgs-DnP0uDGL.mjs.map +0 -1
  205. package/dist/middleware-DTu2jl68.d.mts +0 -1
  206. package/dist/plan-CuSLaQdv.d.mts +0 -2
  207. package/dist/psl-field-resolution-4U7Plpfb-CCfgoBAa.mjs.map +0 -1
  208. package/dist/query-lane-context-C29KGcgz.d.mts +0 -1
  209. package/dist/storage-table-WXeVNycx-BCwDhdq5.d.mts.map +0 -1
  210. package/dist/types-BhcBOXu7.d.mts +0 -1
  211. package/dist/validators-BifwoR5e.d.mts.map +0 -1
  212. package/dist/validators-CfUrQdiv.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"dist-D4FKWSKx.mjs","names":[],"sources":["../../../../2-sql/3-tooling/emitter/dist/index.mjs"],"sourcesContent":["import { renderCodecTypeOverride, renderTypeOverridesMap, renderValueSetOverride, serializeNamespaceId, serializeObjectKey, serializeValue } from \"@internal/emitter/domain-type-generation\";\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}\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\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\treturn [\n\t\t\t`type ColumnTypeOverrides = ${generateColumnTypeOverridesMap(storage, codecLookup)};`,\n\t\t\t`export type StorageColumnTypes = ${columnTypesExpression(\"output\")};`,\n\t\t\t`export type StorageColumnInputTypes = ${columnTypesExpression(\"input\")};`\n\t\t].join(\"\\n\");\n\t},\n\tfieldTypesExpression(side) {\n\t\treturn `FieldTypesFromDomain<ContractBase['domain']['namespaces'], CodecTypes, ParameterizedOutputTypeFunctions, FieldTypeOverrides, ${serializeValue(side)}>`;\n\t},\n\tgetFamilyImports(resolveImportSpecifier) {\n\t\treturn [\n\t\t\t\"import type {\",\n\t\t\t\" ColumnTypesFromStorage,\",\n\t\t\t\" ContractWithTypeMaps,\",\n\t\t\t\" FieldTypesFromDomain,\",\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 columnTypesExpression(side) {\n\treturn `ColumnTypesFromStorage<ContractBase['storage'], CodecTypes, ParameterizedOutputTypeFunctions, ColumnTypeOverrides, ${serializeValue(side)}>`;\n}\n/** `ColumnTypeOverrides`: per namespace, table and column, the type of each column its codec does not give. */\nfunction generateColumnTypeOverridesMap(storage, codecLookup) {\n\treturn renderTypeOverridesMap(Object.entries(storage.namespaces ?? {}).flatMap(([nsId, ns]) => {\n\t\tconst tables = blindCast(ns.entries.table ?? {});\n\t\treturn Object.entries(tables).flatMap(([tableName, table]) => Object.entries(table.columns).map(([columnName, column]) => [\n\t\t\tnsId,\n\t\t\ttableName,\n\t\t\tcolumnName,\n\t\t\tcolumnTypeOverride(storage, column, codecLookup)\n\t\t]));\n\t}));\n}\nfunction columnTypeOverride(storage, column, codecLookup) {\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\tconst override = valueSet ? renderValueSetOverride(valueSet.values, column.codecId, codecLookup) : void 0;\n\t\tif (override !== void 0) return override;\n\t}\n\treturn renderCodecTypeOverride(column.codecId, resolvedTypeParams(column, storage.types), codecLookup);\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.dataType !== \"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 dataType.\",\n\t\t\tmeta: { type: typeName }\n\t\t});\n\t\tconst codecId = serializeValue(codecInstanceShape.codecId);\n\t\tconst dataType = serializeValue(codecInstanceShape.dataType);\n\t\tconst typeParamsStr = serializeTypeParamsLiteral(codecInstanceShape.typeParams);\n\t\ttypeEntries.push(`readonly ${serializeObjectKey(typeName)}: { readonly kind: \"codec-instance\"; readonly codecId: ${codecId}; readonly dataType: ${dataType}; 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 dataType = serializeValue(col.dataType);\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\tconst manySpec = col.many === false ? \"; readonly many: false\" : `; readonly many: { readonly elementNullable: ${col.many.elementNullable} }`;\n\t\tcolumns.push(`readonly ${serializeObjectKey(colName)}: { readonly dataType: ${dataType}; readonly codecId: ${codecId}; readonly nullable: ${nullable}${defaultSpec}${typeParamsSpec}${typeRefSpec}${manySpec} }`);\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":";;;;;;;AAOA,SAAS,gBAAgB,MAAM,SAAS,SAAS;CAChD,OAAO,gBAAgB,MAAM,SAAS,OAAO;AAC9C;;;;;;;;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,yBAA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C,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;CACtF,IAAI,QAAQ,WAAW,GAAG,OAAO;CACjC,MAAM,QAAQ,CAAC;CACf,KAAK,MAAM,CAAC,MAAM,OAAO,SAAS;EACjC,MAAM,aAAa,KAAK,wBAAwB,EAAE;EAClD,MAAM,eAAe,CAAC,mBAAmB,sBAAsB,GAAG,QAAQ,SAAS,CAAC,CAAC,GAAG;EACxF,MAAM,kBAAkB,GAAG,QAAQ;EACnC,IAAI,oBAAoB,KAAK,KAAK,OAAO,KAAK,eAAe,CAAC,CAAC,SAAS,GAAG,aAAa,KAAK,sBAAsB,0BAA0B,eAAe,GAAG;EAC/J,MAAM,cAAc,KAAK,aAAa,KAAK,IAAI,EAAE;EACjD,MAAM,KAAK,YAAY,mBAAmB,IAAI,EAAE,mBAAmB,eAAe,GAAG,EAAE,IAAI,WAAW,sBAAsB,YAAY,GAAG;CAC5I;CACA,OAAO,KAAK,MAAM,KAAK,IAAI,EAAE;AAC9B"}
1
+ {"version":3,"file":"dist-Cg2lL1hR.mjs","names":[],"sources":["../../../../2-sql/3-tooling/emitter/dist/index.mjs"],"sourcesContent":["import { renderCodecTypeOverride, renderTypeOverridesMap, renderValueSetOverride, serializeNamespaceId, serializeObjectKey, serializeValue } from \"@internal/emitter/domain-type-generation\";\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}\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\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\treturn [\n\t\t\t`type ColumnTypeOverrides = ${generateColumnTypeOverridesMap(storage, codecLookup)};`,\n\t\t\t`export type StorageColumnTypes = ${columnTypesExpression(\"output\")};`,\n\t\t\t`export type StorageColumnInputTypes = ${columnTypesExpression(\"input\")};`\n\t\t].join(\"\\n\");\n\t},\n\tfieldTypesExpression(side) {\n\t\treturn `FieldTypesFromDomain<ContractBase['domain']['namespaces'], CodecTypes, ParameterizedOutputTypeFunctions, FieldTypeOverrides, ${serializeValue(side)}>`;\n\t},\n\tgetFamilyImports(resolveImportSpecifier) {\n\t\treturn [\n\t\t\t\"import type {\",\n\t\t\t\" ColumnTypesFromStorage,\",\n\t\t\t\" ContractWithTypeMaps,\",\n\t\t\t\" FieldTypesFromDomain,\",\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 columnTypesExpression(side) {\n\treturn `ColumnTypesFromStorage<ContractBase['storage'], CodecTypes, ParameterizedOutputTypeFunctions, ColumnTypeOverrides, ${serializeValue(side)}>`;\n}\n/** `ColumnTypeOverrides`: per namespace, table and column, the type of each column its codec does not give. */\nfunction generateColumnTypeOverridesMap(storage, codecLookup) {\n\treturn renderTypeOverridesMap(Object.entries(storage.namespaces ?? {}).flatMap(([nsId, ns]) => {\n\t\tconst tables = blindCast(ns.entries.table ?? {});\n\t\treturn Object.entries(tables).flatMap(([tableName, table]) => Object.entries(table.columns).map(([columnName, column]) => [\n\t\t\tnsId,\n\t\t\ttableName,\n\t\t\tcolumnName,\n\t\t\tcolumnTypeOverride(storage, column, codecLookup)\n\t\t]));\n\t}));\n}\nfunction columnTypeOverride(storage, column, codecLookup) {\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\tconst override = valueSet ? renderValueSetOverride(valueSet.values, column.codecId, codecLookup) : void 0;\n\t\tif (override !== void 0) return override;\n\t}\n\treturn renderCodecTypeOverride(column.codecId, resolvedTypeParams(column, storage.types), codecLookup);\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.dataType !== \"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 dataType.\",\n\t\t\tmeta: { type: typeName }\n\t\t});\n\t\tconst codecId = serializeValue(codecInstanceShape.codecId);\n\t\tconst dataType = serializeValue(codecInstanceShape.dataType);\n\t\tconst typeParamsStr = serializeTypeParamsLiteral(codecInstanceShape.typeParams);\n\t\ttypeEntries.push(`readonly ${serializeObjectKey(typeName)}: { readonly kind: \"codec-instance\"; readonly codecId: ${codecId}; readonly dataType: ${dataType}; 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 dataType = serializeValue(col.dataType);\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\tconst manySpec = col.many === false ? \"; readonly many: false\" : `; readonly many: { readonly elementNullable: ${col.many.elementNullable} }`;\n\t\tcolumns.push(`readonly ${serializeObjectKey(colName)}: { readonly dataType: ${dataType}; readonly codecId: ${codecId}; readonly nullable: ${nullable}${defaultSpec}${typeParamsSpec}${typeRefSpec}${manySpec} }`);\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":";;;;;;;AAOA,SAAS,gBAAgB,MAAM,SAAS,SAAS;CAChD,OAAO,gBAAgB,MAAM,SAAS,OAAO;AAC9C;;;;;;;;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,U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AAe,CAAC,mBAAmB,sBAAsB,GAAG,QAAQ,SAAS,CAAC,CAAC,GAAG;EACxF,MAAM,kBAAkB,GAAG,QAAQ;EACnC,IAAI,oBAAoB,KAAK,KAAK,OAAO,KAAK,eAAe,CAAC,CAAC,SAAS,GAAG,aAAa,KAAK,sBAAsB,0BAA0B,eAAe,GAAG;EAC/J,MAAM,cAAc,KAAK,aAAa,KAAK,IAAI,EAAE;EACjD,MAAM,KAAK,YAAY,mBAAmB,IAAI,EAAE,mBAAmB,eAAe,GAAG,EAAE,IAAI,WAAW,sBAAsB,YAAY,GAAG;CAC5I;CACA,OAAO,KAAK,MAAM,KAAK,IAAI,EAAE;AAC9B"}
@@ -1,6 +1,6 @@
1
1
  import { t as CheckConstraint } from "./check-constraint-B7qGu6rc-CBVYAMwG.mjs";
2
2
  import { t as Index } from "./sql-index-ByAAE7K8-BpbPBWPD.mjs";
3
- import { i as StorageTableInput, r as StorageTable } from "./storage-table-WXeVNycx-BCwDhdq5.mjs";
3
+ import { i as StorageTableInput, r as StorageTable } from "./storage-table-DC9afJhr-CmRU56OS.mjs";
4
4
  import { n as StorageValueSetInput, t as StorageValueSet } from "./storage-value-set-BGlj5Uus-CvZD--GG.mjs";
5
5
  import { n as SerializedIndex, t as SerializedCheckConstraint } from "./serialized-index-CrgG8ct1-DDfHKUEK.mjs";
6
6
  import { AnyEntityKindDescriptor, EntityKindDescriptor } from "@prisma/orm-framework/components/ir";
@@ -28,4 +28,4 @@ declare const valueSetEntityKind: EntityKindDescriptor<StorageValueSetInput, Sto
28
28
  declare function composeSqlEntityKinds(packKinds?: readonly AnyEntityKindDescriptor[]): ReadonlyMap<string, AnyEntityKindDescriptor>;
29
29
  //#endregion
30
30
  export { tableEntityKind as n, valueSetEntityKind as r, composeSqlEntityKinds as t };
31
- //# sourceMappingURL=entity-kinds-DqUYen0Y.d.mts.map
31
+ //# sourceMappingURL=entity-kinds-BCMNbwxO.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"entity-kinds-DqUYen0Y.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/entity-kinds.d.mts"],"mappings":";;;;;;;;;;;;;KAYK,yBAAyB,KAAK;WACxB,SAAS,cAAc,QAAQ;WAC/B,SAAS,cAAc,kBAAkB;;cAEtC,iBAAiB,qBAAqB,wBAAwB;cAC9D,oBAAoB,qBAAqB,sBAAsB;;;;;;;;;iBAS5D,sBAAsB,qBAAqB,4BAA4B,oBAAoB"}
1
+ {"version":3,"file":"entity-kinds-BCMNbwxO.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/entity-kinds.d.mts"],"mappings":";;;;;;;;;;;;;KAYK,yBAAyB,KAAK;WACxB,SAAS,cAAc,QAAQ;WAC/B,SAAS,cAAc,kBAAkB;;cAEtC,iBAAiB,qBAAqB,wBAAwB;cAC9D,oBAAoB,qBAAqB,sBAAsB;;;;;;;;;iBAS5D,sBAAsB,qBAAqB,4BAA4B,oBAAoB"}
@@ -1,10 +1,10 @@
1
1
  import { t as contractError } from "./contract-errors-BCN6RVI5-5IHBF_lg.mjs";
2
- import { c as StorageTable, i as Index, t as CheckConstraint } from "./storage-table-B7OSPl3G-p1j6AjMS.mjs";
3
- import { n as checkConstraintInputFromSerialized, r as indexInputFromSerialized, t as StorageValueSet } from "./serialized-index-C26m_DWu-BjU519sW.mjs";
2
+ import { c as StorageTable, i as Index, t as CheckConstraint } from "./storage-table-DN36E2yE-Bm5eKeGw.mjs";
3
+ import { n as checkConstraintInputFromSerialized, r as indexInputFromSerialized, t as StorageValueSet } from "./serialized-index-52COq1yV-D8zJP-Xl.mjs";
4
4
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
5
5
  import { DATA_TYPE_ID_PATTERN } from "@prisma/orm-framework/components/codec";
6
6
  import { type } from "arktype";
7
- //#region ../../../2-sql/1-core/contract/dist/entity-kinds-DDTkNIr9.mjs
7
+ //#region ../../../2-sql/1-core/contract/dist/entity-kinds-CQ_jwgYv.mjs
8
8
  const literalKindSchema = type("'literal'");
9
9
  const functionKindSchema = type("'function'");
10
10
  const ControlPolicySchema = type("'managed' | 'tolerated' | 'external' | 'observed'");
@@ -37,18 +37,9 @@ const StorageColumnSchema = type({
37
37
  "typeRef?": "string",
38
38
  "default?": ColumnDefaultSchema,
39
39
  "control?": ControlPolicySchema,
40
- "valueSet?": StorageValueSetRefSchema,
41
- "noCheck?": "(\"membership\" | \"elementNotNull\")[]"
40
+ "valueSet?": StorageValueSetRefSchema
42
41
  }).narrow((col, ctx) => {
43
42
  if (col.typeParams !== void 0 && col.typeRef !== void 0) return ctx.mustBe("a column with either typeParams or typeRef, not both");
44
- if (col.noCheck !== void 0) {
45
- if (col.noCheck.length === 0) return ctx.mustBe("a column whose noCheck array is non-empty (omit the key when enforced)");
46
- for (let i = 1; i < col.noCheck.length; i += 1) {
47
- const previous = col.noCheck[i - 1];
48
- const current = col.noCheck[i];
49
- if (previous !== void 0 && current !== void 0 && previous >= current) return ctx.mustBe("a column whose noCheck kinds are unique and sorted ascending lexicographically");
50
- }
51
- }
52
43
  return true;
53
44
  });
54
45
  /**
@@ -159,4 +150,4 @@ function composeSqlEntityKinds(packKinds = []) {
159
150
  //#endregion
160
151
  export { ForeignKeyReferenceSchema as a, IndexSchema as c, StorageValueSetSchema as d, composeSqlEntityKinds as f, ColumnDefaultSchema as i, ReferentialActionSchema as l, valueSetEntityKind as m, ColumnDefaultFunctionSchema as n, ForeignKeySchema as o, tableEntityKind as p, ColumnDefaultLiteralSchema as r, ForeignKeySourceSchema as s, CheckConstraintSchema as t, StorageTableSchema as u };
161
152
 
162
- //# sourceMappingURL=entity-kinds-DDTkNIr9-DJ2EIO94.mjs.map
153
+ //# sourceMappingURL=entity-kinds-CQ_jwgYv-HA5t2SE0.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-kinds-CQ_jwgYv-HA5t2SE0.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/entity-kinds-CQ_jwgYv.mjs"],"sourcesContent":["import { t as contractError } from \"./contract-errors-BCN6RVI5.mjs\";\nimport { c as CheckConstraint, s as Index, t as StorageTable } from \"./storage-table-DN36E2yE.mjs\";\nimport { n as checkConstraintInputFromSerialized, r as StorageValueSet, t as indexInputFromSerialized } from \"./serialized-index-52COq1yV.mjs\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { DATA_TYPE_ID_PATTERN } from \"@internal/framework-components/codec\";\nimport { type } from \"arktype\";\n//#region src/ir/storage-entry-schemas.ts\nconst literalKindSchema = type(\"'literal'\");\nconst functionKindSchema = type(\"'function'\");\nconst ControlPolicySchema = type(\"'managed' | 'tolerated' | 'external' | 'observed'\");\nconst ColumnDefaultLiteralSchema = type.declare().type({\n\tkind: literalKindSchema,\n\tvalue: \"string | number | boolean | null | unknown[] | Record<string, unknown>\"\n});\nconst ColumnDefaultFunctionSchema = type.declare().type({\n\tkind: functionKindSchema,\n\texpression: \"string\"\n});\nconst ColumnDefaultSchema = ColumnDefaultLiteralSchema.or(ColumnDefaultFunctionSchema);\nconst StorageValueSetRefSchema = type({\n\tplane: \"'storage'\",\n\tnamespaceId: \"string\",\n\tentityKind: \"'valueSet'\",\n\tentityName: \"string\",\n\t\"spaceId?\": \"string\"\n});\nconst StorageColumnSchema = type({\n\t\"+\": \"reject\",\n\tdataType: DATA_TYPE_ID_PATTERN,\n\tcodecId: \"string\",\n\tnullable: \"boolean\",\n\t\"many?\": type(\"false\").or({\n\t\t\"+\": \"reject\",\n\t\telementNullable: \"boolean\"\n\t}),\n\t\"typeParams?\": \"Record<string, unknown>\",\n\t\"typeRef?\": \"string\",\n\t\"default?\": ColumnDefaultSchema,\n\t\"control?\": ControlPolicySchema,\n\t\"valueSet?\": StorageValueSetRefSchema\n}).narrow((col, ctx) => {\n\tif (col.typeParams !== void 0 && col.typeRef !== void 0) return ctx.mustBe(\"a column with either typeParams or typeRef, not both\");\n\treturn true;\n});\n/**\n* Storage value-set entry under `storage.namespaces[id].entries.valueSet[name]`.\n* Carries a `kind: 'valueSet'` discriminator (enumerable, survives JSON) and an\n* ordered `values` array of codec-encoded permitted values.\n*/\nconst StorageValueSetSchema = type({\n\tkind: \"'valueSet'\",\n\tvalues: type(\"string | number | boolean | null | unknown[] | Record<string, unknown>\").array().readonly()\n});\nconst PrimaryKeySchema = type.declare().type({\n\tcolumns: type.string.array().readonly(),\n\t\"name?\": \"string\"\n});\nconst UniqueConstraintSchema = type.declare().type({\n\tcolumns: type.string.array().readonly(),\n\t\"name?\": \"string\"\n});\nconst IndexSchema = type({\n\tname: \"string\",\n\t\"prefix?\": \"string\",\n\t\"columns?\": type.string.array().readonly(),\n\t\"expression?\": \"string\",\n\t\"where?\": \"string\",\n\tunique: \"boolean\",\n\t\"type?\": \"string\",\n\t\"options?\": \"Record<string, unknown>\"\n});\nconst ForeignKeyReferenceSchema = type({\n\t\"+\": \"reject\",\n\tnamespaceId: \"string\",\n\ttableName: \"string\",\n\tcolumns: type.string.array().readonly(),\n\t\"spaceId?\": \"string\"\n});\nconst ForeignKeySourceSchema = type({\n\t\"+\": \"reject\",\n\tnamespaceId: \"string\",\n\ttableName: \"string\",\n\tcolumns: type.string.array().readonly()\n});\nconst ReferentialActionSchema = type.declare().type(\"'noAction' | 'restrict' | 'cascade' | 'setNull' | 'setDefault'\");\nconst ForeignKeyIndexSchema = type.declare().type(type({\n\t\"+\": \"reject\",\n\tname: \"string\"\n}).or({\n\t\"+\": \"reject\",\n\tprimaryKey: \"true\"\n}).or({\n\t\"+\": \"reject\",\n\tunique: type.string.array().readonly()\n}));\nconst ForeignKeySchema = type.declare().type({\n\tsource: ForeignKeySourceSchema,\n\ttarget: ForeignKeyReferenceSchema,\n\t\"name?\": \"string\",\n\t\"onDelete?\": ReferentialActionSchema,\n\t\"onUpdate?\": ReferentialActionSchema,\n\t\"index?\": ForeignKeyIndexSchema.or(\"boolean\")\n});\nconst CheckConstraintSchema = type({\n\t\"+\": \"reject\",\n\tname: \"string\",\n\t\"prefix?\": \"string\",\n\texpression: \"string\"\n});\nconst StorageTableSchema = type({\n\t\"+\": \"reject\",\n\tcolumns: type({ \"[string]\": StorageColumnSchema }),\n\t\"primaryKey?\": PrimaryKeySchema,\n\tuniques: UniqueConstraintSchema.array().readonly(),\n\tindexes: IndexSchema.array().readonly(),\n\tforeignKeys: ForeignKeySchema.array().readonly(),\n\t\"control?\": ControlPolicySchema,\n\t\"checks?\": CheckConstraintSchema.array().readonly()\n});\n//#endregion\n//#region src/entity-kinds.ts\nconst tableEntityKind = {\n\tkind: \"table\",\n\tschema: StorageTableSchema,\n\tconstruct: (input) => new StorageTable({\n\t\t...input,\n\t\tindexes: input.indexes.map((i) => i instanceof Index ? i : indexInputFromSerialized(i)),\n\t\t...ifDefined(\"checks\", input.checks?.map((c) => c instanceof CheckConstraint ? c : checkConstraintInputFromSerialized(c)))\n\t})\n};\nconst valueSetEntityKind = {\n\tkind: \"valueSet\",\n\tschema: StorageValueSetSchema,\n\tconstruct: (input) => new StorageValueSet(input)\n};\n/**\n* Assembles the `kind → descriptor` registry for SQL namespaces: the built-in\n* `table` and `valueSet` kinds plus any target `packKinds`. This builds the\n* lookup table — it does not touch contract data. `hydrateNamespaceEntities`\n* later consumes this registry to turn a namespace's raw entries into IR\n* instances, and `createSqlContractSchema` derives validation from the same\n* registry. Throws on a duplicate kind.\n*/\nfunction composeSqlEntityKinds(packKinds = []) {\n\tconst kinds = /* @__PURE__ */ new Map([[\"table\", tableEntityKind], [\"valueSet\", valueSetEntityKind]]);\n\tfor (const descriptor of packKinds) {\n\t\tif (kinds.has(descriptor.kind)) throw contractError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `composeSqlEntityKinds: duplicate entity kind \"${descriptor.kind}\" — each kind may be registered only once`, { meta: { entityKind: descriptor.kind } });\n\t\tkinds.set(descriptor.kind, descriptor);\n\t}\n\treturn kinds;\n}\n//#endregion\nexport { ColumnDefaultFunctionSchema as a, ForeignKeyReferenceSchema as c, IndexSchema as d, ReferentialActionSchema as f, CheckConstraintSchema as i, ForeignKeySchema as l, StorageValueSetSchema as m, tableEntityKind as n, ColumnDefaultLiteralSchema as o, StorageTableSchema as p, valueSetEntityKind as r, ColumnDefaultSchema as s, composeSqlEntityKinds as t, ForeignKeySourceSchema as u };\n\n//# sourceMappingURL=entity-kinds-CQ_jwgYv.mjs.map"],"mappings":";;;;;;;AAOA,MAAM,oBAAoB,KAAK,WAAW;AAC1C,MAAM,qBAAqB,KAAK,YAAY;AAC5C,MAAM,sBAAsB,KAAK,mDAAmD;AACpF,MAAM,6BAA6B,KAAK,QAAQ,CAAC,CAAC,KAAK;CACtD,MAAM;CACN,OAAO;AACR,CAAC;AACD,MAAM,8BAA8B,KAAK,QAAQ,CAAC,CAAC,KAAK;CACvD,MAAM;CACN,YAAY;AACb,CAAC;AACD,MAAM,sBAAsB,2BAA2B,GAAG,2BAA2B;AACrF,MAAM,2BAA2B,KAAK;CACrC,OAAO;CACP,aAAa;CACb,YAAY;CACZ,YAAY;CACZ,YAAY;AACb,CAAC;AACD,MAAM,sBAAsB,KAAK;CAChC,KAAK;CACL,UAAU;CACV,SAAS;CACT,UAAU;CACV,SAAS,KAAK,OAAO,CAAC,CAAC,GAAG;EACzB,KAAK;EACL,iBAAiB;CAClB,CAAC;CACD,eAAe;CACf,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,aAAa;AACd,CAAC,CAAC,CAAC,QAAQ,KAAK,QAAQ;CACvB,IAAI,IAAI,eAAe,KAAK,KAAK,IAAI,YAAY,KAAK,GAAG,OAAO,IAAI,OAAO,sDAAsD;CACjI,OAAO;AACR,CAAC;;;;;;AAMD,MAAM,wBAAwB,KAAK;CAClC,MAAM;CACN,QAAQ,KAAK,wEAAwE,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS;AACzG,CAAC;AACD,MAAM,mBAAmB,KAAK,QAAQ,CAAC,CAAC,KAAK;CAC5C,SAAS,KAAK,OAAO,MAAM,CAAC,CAAC,SAAS;CACtC,SAAS;AACV,CAAC;AACD,MAAM,yBAAyB,KAAK,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,MAAM,CAAC,CAAC,SAAS;CAC/C,YAAY;CACZ,WAAW,sBAAsB,MAAM,CAAC,CAAC,SAAS;AACnD,CAAC;AAGD,MAAM,kBAAkB;CACvB,MAAM;CACN,QAAQ;CACR,YAAY,UAAU,IAAI,aAAa;EACtC,GAAG;EACH,SAAS,MAAM,QAAQ,KAAK,MAAM,aAAa,QAAQ,IAAI,yBAAyB,CAAC,CAAC;EACtF,GAAG,UAAU,UAAU,MAAM,QAAQ,KAAK,MAAM,aAAa,kBAAkB,IAAI,mCAAmC,CAAC,CAAC,CAAC;CAC1H,CAAC;AACF;AACA,MAAM,qBAAqB;CAC1B,MAAM;CACN,QAAQ;CACR,YAAY,UAAU,IAAI,gBAAgB,KAAK;AAChD;;;;;;;;;AASA,SAAS,sBAAsB,YAAY,CAAC,GAAG;CAC9C,MAAM,wBAAwB,IAAI,IAAI,CAAC,CAAC,SAAS,eAAe,GAAG,CAAC,YAAY,kBAAkB,CAAC,CAAC;CACpG,KAAK,MAAM,cAAc,WAAW;EACnC,IAAI,MAAM,IAAI,WAAW,IAAI,GAAG,MAAM,cAAc,sCAAsC,iDAAiD,WAAW,KAAK,4CAA4C,EAAE,MAAM,EAAE,YAAY,WAAW,KAAK,EAAE,CAAC;EAChP,MAAM,IAAI,WAAW,MAAM,UAAU;CACtC;CACA,OAAO;AACR"}
@@ -1,5 +1,5 @@
1
- import { c as AnyExpression } from "./types-Sh5HuaZE-Dq4AUzl7.mjs";
2
- import { o as Expression, x as ScopeField } from "./expression-Ck1wys3N-CBfr-HMG.mjs";
1
+ import { c as AnyExpression } from "./types-Sh5HuaZE-BwZNUDEi.mjs";
2
+ import { o as Expression, x as ScopeField } from "./expression-Ck1wys3N-Cdc7eUQS.mjs";
3
3
  //#region ../../../2-sql/4-lanes/relational-core/dist/expression-CNBCbbzU.d.mts
4
4
  //#region src/expression-impl.d.ts
5
5
  /**
@@ -19,4 +19,4 @@ declare class ExpressionImpl<T extends ScopeField = ScopeField> implements Expre
19
19
  }
20
20
  //#endregion
21
21
  export { ExpressionImpl as t };
22
- //# sourceMappingURL=expression-CNBCbbzU-DnvLZYf4.d.mts.map
22
+ //# sourceMappingURL=expression-CNBCbbzU-DOXKUxQs.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"expression-CNBCbbzU-DnvLZYf4.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/expression-CNBCbbzU.d.mts"],"mappings":";;;;;;;;;;;cAUc,eAAe,UAAU,aAAa,uBAAuB,WAAW;mBACnE;mBACA;WACR,YAAY;EACrB,YAAY,KAAK,eAAe,YAAY,GAAG,gBAAgB;EAC/D,YAAY;EACZ,sBAAsB"}
1
+ {"version":3,"file":"expression-CNBCbbzU-DOXKUxQs.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/expression-CNBCbbzU.d.mts"],"mappings":";;;;;;;;;;;cAUc,eAAe,UAAU,aAAa,uBAAuB,WAAW;mBACnE;mBACA;WACR,YAAY;EACrB,YAAY,KAAK,eAAe,YAAY,GAAG,gBAAgB;EAC/D,YAAY;EACZ,sBAAsB"}
@@ -1,10 +1,10 @@
1
- import { l as SqlStorage } from "./sql-storage-BTlJLUID-CGy3wuH4.mjs";
2
- import { w as QueryOperationReturn } from "./types-zwKzjyma-CxZkmkUI.mjs";
3
- import "./types-HD5m-h8B.mjs";
4
- import { t as SqlLoweringSpec } from "./index-CJlr0Eja.mjs";
5
- import { Ct as ParamRef, E as CodecRef$1, Ot as RawQueryAst, c as AnyExpression, jt as RawSqlLiteral, kt as RawQueryColumn } from "./types-Sh5HuaZE-Dq4AUzl7.mjs";
1
+ import { l as SqlStorage } from "./sql-storage-tZhB8nS5-8NSWT0TW.mjs";
2
+ import { w as QueryOperationReturn } from "./types-Dqf87mfA-BOElvimQ.mjs";
3
+ import "./types-DMfBh16_.mjs";
4
+ import { t as SqlLoweringSpec } from "./index-BXFiad5j.mjs";
5
+ import { Ct as ParamRef, E as CodecRef$1, Ot as RawQueryAst, c as AnyExpression, jt as RawSqlLiteral, kt as RawQueryColumn } from "./types-Sh5HuaZE-BwZNUDEi.mjs";
6
6
  import { l as SqlStatementStats } from "./driver-types-DRsYeq3j-X_D6hNMZ.mjs";
7
- import { n as SqlQueryPlan } from "./plan-cGEaSXHv-Bv-SBtFA.mjs";
7
+ import { n as SqlQueryPlan } from "./plan-cGEaSXHv-yuz43WrR.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/expression-Ck1wys3N.d.mts
@@ -275,4 +275,4 @@ declare function createRawSql(adapter: RawCodecInferer, planContext: RawPlanCont
275
275
  declare function createRawSql(adapter: RawCodecInferer): RawSqlTag;
276
276
  //#endregion
277
277
  export { TraitExpression as C, isExpression as D, createRawSql as E, param as O, StorageColumnScopeField as S, codecOf 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, toExpr as k, 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, buildOperation as w, ScopeField as x, RawSqlTag as y };
278
- //# sourceMappingURL=expression-Ck1wys3N-CBfr-HMG.d.mts.map
278
+ //# sourceMappingURL=expression-Ck1wys3N-Cdc7eUQS.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"expression-Ck1wys3N-CBfr-HMG.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/expression-Ck1wys3N.d.mts"],"mappings":";;;;;;;;;;;KAQK;EACH;EACA;;;;;;;;EAQA;;;;EAIA,QAAQ;;;KAGL,wBAAwB;WAClB;WACA;;EAET,SAAS;EACT,UAAU;KACP;EACH;;EAEA;IACE;KACC,iBAAiB;WACX;W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Ae;;;;;;;;;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-Ck1wys3N-Cdc7eUQS.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/expression-Ck1wys3N.d.mts"],"mappings":";;;;;;;;;;;KAQK;EACH;EACA;;;;;;;;EAQA;;;;EAIA,QAAQ;;;KAGL,wBAAwB;WAClB;WACA;;EAET,SAAS;EACT,UAAU;KACP;EACH;;EAEA;IACE;KACC,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,I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BCbbzU-DOXKUxQs.mjs";
@@ -1,8 +1,8 @@
1
1
  import { t as ForeignKey } from "./foreign-key-qkDFfG8t-Fyrzd0VI.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-BpbPBWPD.mjs";
4
- import { n as StorageColumnInput, r as StorageTable, t as StorageColumn } from "./storage-table-WXeVNycx-BCwDhdq5.mjs";
5
- import { M as SqlModelFieldStorage, N as SqlModelStorage, x as ForeignKeyOptions } from "./types-zwKzjyma-CxZkmkUI.mjs";
4
+ import { n as StorageColumnInput, r as StorageTable, t as StorageColumn } from "./storage-table-DC9afJhr-CmRU56OS.mjs";
5
+ import { M as SqlModelFieldStorage, N as SqlModelStorage, x as ForeignKeyOptions } from "./types-Dqf87mfA-BOElvimQ.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
@@ -42,4 +42,4 @@ declare function model(tableName: string, fields: Record<string, SqlModelFieldSt
42
42
  };
43
43
  //#endregion
44
44
  export { pk as a, model as i, fk as n, table as o, index as r, unique as s, col as t };
45
- //# sourceMappingURL=factories-2LNVsQ2j.d.mts.map
45
+ //# sourceMappingURL=factories-B4AMRt6O.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"factories-2LNVsQ2j.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/factories.d.mts"],"mappings":";;;;;;;;KAOK;WACM;WACA;;WAEA;WACA;;iBAEM,IAAI,kBAAkB,iBAAiB,oBAAoB,OAAO,4BAA4B;iBAC9F,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;aACN;;EAEX,WAAW"}
1
+ {"version":3,"file":"factories-B4AMRt6O.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/factories.d.mts"],"mappings":";;;;;;;;KAOK;WACM;WACA;;WAEA;WACA;;iBAEM,IAAI,kBAAkB,iBAAiB,oBAAoB,OAAO,4BAA4B;iBAC9F,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;aACN;;EAEX,WAAW"}
@@ -1,6 +1,6 @@
1
1
  import { t as contractError } from "./contract-errors-BCN6RVI5-5IHBF_lg.mjs";
2
2
  import { m as parseNaming } from "./naming-CT8tRisJ-DLHKo0Hm.mjs";
3
- import { a as PrimaryKey, c as StorageTable, i as Index, l as UniqueConstraint, n as ForeignKey, s as StorageColumn } from "./storage-table-B7OSPl3G-p1j6AjMS.mjs";
3
+ import { a as PrimaryKey, c as StorageTable, i as Index, l as UniqueConstraint, n as ForeignKey, s as StorageColumn } from "./storage-table-DN36E2yE-Bm5eKeGw.mjs";
4
4
  import { UNBOUND_NAMESPACE_ID } from "@prisma/orm-framework/components/ir";
5
5
  import { asNamespaceId } from "@prisma/orm-framework/contract/types";
6
6
  //#region ../../../2-sql/1-core/contract/dist/factories.mjs
@@ -81,4 +81,4 @@ function model(tableName, fields, relations = {}, namespaceId = UNBOUND_NAMESPAC
81
81
  //#endregion
82
82
  export { pk as a, model as i, fk as n, table as o, index as r, unique as s, col as t };
83
83
 
84
- //# sourceMappingURL=factories-CScqMnFk.mjs.map
84
+ //# sourceMappingURL=factories-vDQ3S5gW.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"factories-CScqMnFk.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/factories.mjs"],"sourcesContent":["import { t as contractError } from \"./contract-errors-BCN6RVI5.mjs\";\nimport { a as ForeignKey, i as PrimaryKey, n as UniqueConstraint, r as StorageColumn, s as Index, t as StorageTable } from \"./storage-table-B7OSPl3G.mjs\";\nimport { parseNaming } from \"@internal/sql-schema-ir/naming\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\nimport { asNamespaceId } from \"@internal/contract/types\";\n//#region src/factories.ts\nfunction col(dataType, codecId, nullable = false, opts) {\n\tif (opts?.elementNullable !== void 0 && opts.many !== true) throw contractError(\"CONTRACT.ARGUMENT_INVALID\", \"StorageColumn elementNullable must be nested under many.\", { meta: { reason: \"elementNullable-without-many\" } });\n\treturn new StorageColumn({\n\t\tdataType,\n\t\tcodecId,\n\t\tnullable,\n\t\tmany: opts?.many === true ? { elementNullable: opts.elementNullable ?? false } : false\n\t});\n}\nfunction pk(...columns) {\n\treturn new PrimaryKey({ columns });\n}\nfunction unique(...columns) {\n\treturn new UniqueConstraint({ columns });\n}\nfunction index(name, columns, opts) {\n\treturn new Index({\n\t\tnaming: parseNaming(name, opts?.prefix),\n\t\tcolumns,\n\t\twhere: void 0,\n\t\tunique: opts?.unique ?? false,\n\t\ttype: opts?.type,\n\t\toptions: opts?.options\n\t});\n}\nfunction fk(srcTableName, srcColumns, targetTableName, targetColumns, opts) {\n\tconst namespaceId = asNamespaceId(opts?.namespaceId ?? UNBOUND_NAMESPACE_ID);\n\treturn new ForeignKey({\n\t\tsource: {\n\t\t\tnamespaceId,\n\t\t\ttableName: srcTableName,\n\t\t\tcolumns: srcColumns\n\t\t},\n\t\ttarget: {\n\t\t\tnamespaceId,\n\t\t\ttableName: targetTableName,\n\t\t\tcolumns: targetColumns\n\t\t},\n\t\t...opts?.name !== void 0 && { name: opts.name },\n\t\t...opts?.onDelete !== void 0 && { onDelete: opts.onDelete },\n\t\t...opts?.onUpdate !== void 0 && { onUpdate: opts.onUpdate },\n\t\t...opts?.index !== void 0 && { index: opts.index }\n\t});\n}\nfunction table(columns, opts) {\n\treturn new StorageTable({\n\t\tcolumns,\n\t\t...opts?.pk !== void 0 && { primaryKey: opts.pk },\n\t\tuniques: opts?.uniques ?? [],\n\t\tindexes: opts?.indexes ?? [],\n\t\tforeignKeys: opts?.fks ?? []\n\t});\n}\nfunction model(tableName, fields, relations = {}, namespaceId = UNBOUND_NAMESPACE_ID) {\n\tconst storage = {\n\t\ttable: tableName,\n\t\tnamespaceId,\n\t\tfields\n\t};\n\tconst domainFields = {};\n\tfor (const [name, field] of Object.entries(fields)) domainFields[name] = {\n\t\tnullable: field.nullable ?? false,\n\t\ttype: {\n\t\t\tkind: \"scalar\",\n\t\t\tcodecId: field.codecId ?? \"core/unknown@1\"\n\t\t},\n\t\tmany: false\n\t};\n\treturn {\n\t\tstorage,\n\t\tfields: domainFields,\n\t\trelations\n\t};\n}\n//#endregion\nexport { col, fk, index, model, pk, table, unique };\n\n//# sourceMappingURL=factories.mjs.map"],"mappings":";;;;;;AAMA,SAAS,IAAI,UAAU,SAAS,WAAW,OAAO,MAAM;CACvD,IAAI,MAAM,oBAAoB,KAAK,KAAK,KAAK,SAAS,MAAM,MAAM,cAAc,6BAA6B,4DAA4D,EAAE,MAAM,EAAE,QAAQ,+BAA+B,EAAE,CAAC;CAC7N,OAAO,IAAI,cAAc;EACxB;EACA;EACA;EACA,MAAM,MAAM,SAAS,OAAO,EAAE,iBAAiB,KAAK,mBAAmB,MAAM,IAAI;CAClF,CAAC;AACF;AACA,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M,GAAG,aAAa,QAAQ;EACxE,UAAU,MAAM,YAAY;EAC5B,MAAM;GACL,MAAM;GACN,SAAS,MAAM,WAAW;EAC3B;EACA,MAAM;CACP;CACA,OAAO;EACN;EACA,QAAQ;EACR;CACD;AACD"}
1
+ {"version":3,"file":"factories-vDQ3S5gW.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/factories.mjs"],"sourcesContent":["import { t as contractError } from \"./contract-errors-BCN6RVI5.mjs\";\nimport { a as ForeignKey, i as PrimaryKey, n as UniqueConstraint, r as StorageColumn, s as Index, t as StorageTable } from \"./storage-table-DN36E2yE.mjs\";\nimport { parseNaming } from \"@internal/sql-schema-ir/naming\";\nimport { UNBOUND_NAMESPACE_ID } from \"@internal/framework-components/ir\";\nimport { asNamespaceId } from \"@internal/contract/types\";\n//#region src/factories.ts\nfunction col(dataType, codecId, nullable = false, opts) {\n\tif (opts?.elementNullable !== void 0 && opts.many !== true) throw contractError(\"CONTRACT.ARGUMENT_INVALID\", \"StorageColumn elementNullable must be nested under many.\", { meta: { reason: \"elementNullable-without-many\" } });\n\treturn new StorageColumn({\n\t\tdataType,\n\t\tcodecId,\n\t\tnullable,\n\t\tmany: opts?.many === true ? { elementNullable: opts.elementNullable ?? false } : false\n\t});\n}\nfunction pk(...columns) {\n\treturn new PrimaryKey({ columns });\n}\nfunction unique(...columns) {\n\treturn new UniqueConstraint({ columns });\n}\nfunction index(name, columns, opts) {\n\treturn new Index({\n\t\tnaming: parseNaming(name, opts?.prefix),\n\t\tcolumns,\n\t\twhere: void 0,\n\t\tunique: opts?.unique ?? false,\n\t\ttype: opts?.type,\n\t\toptions: opts?.options\n\t});\n}\nfunction fk(srcTableName, srcColumns, targetTableName, targetColumns, opts) {\n\tconst namespaceId = asNamespaceId(opts?.namespaceId ?? UNBOUND_NAMESPACE_ID);\n\treturn new ForeignKey({\n\t\tsource: {\n\t\t\tnamespaceId,\n\t\t\ttableName: srcTableName,\n\t\t\tcolumns: srcColumns\n\t\t},\n\t\ttarget: {\n\t\t\tnamespaceId,\n\t\t\ttableName: targetTableName,\n\t\t\tcolumns: targetColumns\n\t\t},\n\t\t...opts?.name !== void 0 && { name: opts.name },\n\t\t...opts?.onDelete !== void 0 && { onDelete: opts.onDelete },\n\t\t...opts?.onUpdate !== void 0 && { onUpdate: opts.onUpdate },\n\t\t...opts?.index !== void 0 && { index: opts.index }\n\t});\n}\nfunction table(columns, opts) {\n\treturn new StorageTable({\n\t\tcolumns,\n\t\t...opts?.pk !== void 0 && { primaryKey: opts.pk },\n\t\tuniques: opts?.uniques ?? [],\n\t\tindexes: opts?.indexes ?? [],\n\t\tforeignKeys: opts?.fks ?? []\n\t});\n}\nfunction model(tableName, fields, relations = {}, namespaceId = UNBOUND_NAMESPACE_ID) {\n\tconst storage = {\n\t\ttable: tableName,\n\t\tnamespaceId,\n\t\tfields\n\t};\n\tconst domainFields = {};\n\tfor (const [name, field] of Object.entries(fields)) domainFields[name] = {\n\t\tnullable: field.nullable ?? false,\n\t\ttype: {\n\t\t\tkind: \"scalar\",\n\t\t\tcodecId: field.codecId ?? \"core/unknown@1\"\n\t\t},\n\t\tmany: false\n\t};\n\treturn {\n\t\tstorage,\n\t\tfields: domainFields,\n\t\trelations\n\t};\n}\n//#endregion\nexport { col, fk, index, model, pk, table, unique };\n\n//# sourceMappingURL=factories.mjs.map"],"mappings":";;;;;;AAMA,SAAS,IAAI,UAAU,SAAS,WAAW,OAAO,MAAM;CACvD,IAAI,MAAM,oBAAoB,KAAK,KAAK,KAAK,SAAS,MAAM,MAAM,cAAc,6BAA6B,4DAA4D,EAAE,MAAM,EAAE,QAAQ,+BAA+B,EAAE,CAAC;CAC7N,OAAO,IAAI,cAAc;EACxB;EACA;EACA;EACA,MAAM,MAAM,SAAS,OAAO,EAAE,iBAAiB,KAAK,mBAAmB,MAAM,IAAI;CAClF,CAAC;AACF;AACA,SAAS,GAAG,GAAG,SAAS;CACvB,OAAO,IAAI,WAAW,EAAE,QAAQ,CAAC;AAClC;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,SAAS,MAAM,WAAW;EAC3B;EACA,MAAM;CACP;CACA,OAAO;EACN;EACA,QAAQ;EACR;CACD;AACD"}
package/dist/family.d.mts CHANGED
@@ -1,17 +1,17 @@
1
- import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-wSUswl-4.mjs";
2
- import { h as checkSqlDefaultText } from "./validators-BifwoR5e.mjs";
3
- import { a as arraysEqual, n as Lowerer, r as SqlControlAdapter, t as ExecuteRequestLowerer } from "./control-adapter-CkFfBVei-4WUzQP7G.mjs";
4
- import { A as StorageTypePlanResult, C as SqlPlanTargetDetails, D as SqlPlannerFailureResult, E as SqlPlannerConflictLocation, O as SqlPlannerResult, S as SqlMigrationRunnerSuccessValue, T as SqlPlannerConflictKind, _ as SqlMigrationRunnerErrorCode, a as FieldEventContext, b as SqlMigrationRunnerFailure, c as SqlControlExtensionDescriptor, d as SqlMigrationPlanOperation, f as SqlMigrationPlanOperationStep, g as SqlMigrationRunner, h as SqlMigrationPlannerPlanOptions, i as FieldEvent, k as SqlPlannerSuccessResult, l as SqlMigrationPlan, m as SqlMigrationPlanner, n as CodecControlHooks, o as ResolveIdentityValueInput, p as SqlMigrationPlanOperationTarget, r as CreateSqlMigrationPlanOptions, s as SqlControlAdapterDescriptor, u as SqlMigrationPlanContractInfo, v as SqlMigrationRunnerExecuteCallbacks, w as SqlPlannerConflict, x as SqlMigrationRunnerResult, y as SqlMigrationRunnerExecuteOptions } from "./types-CzxOObSY-DTQ2rnLF.mjs";
5
- import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-CqWOkoW9-DAcuiQPU.mjs";
6
- import { $ as backfillOfDefaultedField, A as SchemaTables, At as rowsWithoutValueFailure, B as StatementColumn, Bt as temporalStringAuthoringPresets, C as ModelStorageEffect, Ct as plannerFailure, D as PlannedStatements, Dt as requiredColumnsOfMigration, E as PlanFieldEventOperationsOptions, Et as requiredColumnOf, F as SqlPslBuildContext, Ft as sqlOfSlot, G as TableNameCaseGuardTable, H as SubjectStorage, Ht as unknownCallNames, I as SqlQuote, It as sqlTypeLookupsOf, J as TableRenameRequest, K as TableRename, L as SqlQuotingRules, Lt as storageNameOfOperation, M as SqlControlFamilyInstance, Mt as runnerFailure, N as SqlControlTargetDescriptor, Nt as runnerSuccess, O as RequiredColumn, Ot as resolveColumnRenameAgainst, P as SqlDescribedContractSpace, Pt as slotSource, Q as assembleAuthoringContributions, R as SqlSlot, Rt as subjectsOfCalls, S as MigrationPlannerResult, St as planStatements, T as NoTable, Tt as requiredColumnMeta, U as SuppressionRecord, Ut as unmatchedColumnRename, V as StatementPlanningTarget, Vt as unconvertedFieldOf, W as TABLE_NAME_CASE_CHANGED_CODE, Wt as unmatchedTableRename, Y as TargetMigrationsCapability, Z as appliedStatementsInOrder, _ as MigrationOperationPolicy, _t as modelRenameStorageEffect, a as ColumnRename, at as convertedColumnMeta, b as MigrationPlanner, bt as planFieldEventCalls, c as ControlPolicySubject, ct as createSqlTextSources, d as DefaultResolver, dt as extractCodecControlHooks, et as checkSqlExpressionText, f as FieldEventCall, ft as fieldEventStorage, g as MigrationOperationClass, gt as isUnfilledSlot, h as INIT_ADDITIVE_POLICY, ht as fieldStatementColumns, i as ColumnOnOneSide, it as controlPolicyForCall, j as SingleOperationCall, jt as rowsWithoutValueSummary, k as RequiredColumnMark, kt as resolveTableRenameAgainst, l as ConvertedColumn, lt as detectDestructiveChanges, m as FieldStorageEffect, mt as fieldRenameStorageEffect, n as CallSubjects, nt as contractNamespaceToSchemaIR, o as ColumnRenameRequest, ot as convertedColumnOf, p as FieldStatementColumns, pt as fieldOfColumn, q as TableRenameByHand, r as CallWithCompanions, rt as contractToSchemaIR, s as ContractToSchemaIROptions, st as createMigrationPlan, t as COLUMN_RENAME_UNMATCHED_CODE, tt as columnTakesTemporaryValue, u as DefaultRenderer, ut as detectTableNameCaseChanges, v as MigrationPlan, vt as partitionCallsByControlPolicy, w as ModelTable, wt as plannerSuccess, x as MigrationPlannerConflict, xt as planFieldEventOperations, y as MigrationPlanOperation, yt as partitionIssuesByControlPolicy, z as SqlTextSources, zt as temporalCodecPresetWithPrecision } from "./control-Ced1D4yz.mjs";
7
- import "./control-adapter-pn8u9o3J.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-Cx7qTc2x.mjs";
9
- import { i as SqlSchemaVerifierBase, n as SqlContractSerializerBase, r as SqlEntityHydrationFactory, t as SqlContractSerializer } from "./ir-BEQwEnRB.mjs";
10
- import { t as SqlMigration } from "./migration-Cc102YUu.mjs";
11
- import "./pack-DI4Nur5d.mjs";
1
+ import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-8N2xelSh.mjs";
2
+ import { h as checkSqlDefaultText } from "./validators-R-Wsy5Rr.mjs";
3
+ import { a as arraysEqual, n as Lowerer, r as SqlControlAdapter, t as ExecuteRequestLowerer } from "./control-adapter-CkFfBVei-DGf1LihO.mjs";
4
+ import { A as StorageTypePlanResult, C as SqlPlanTargetDetails, D as SqlPlannerFailureResult, E as SqlPlannerConflictLocation, O as SqlPlannerResult, S as SqlMigrationRunnerSuccessValue, T as SqlPlannerConflictKind, _ as SqlMigrationRunnerErrorCode, a as FieldEventContext, b as SqlMigrationRunnerFailure, c as SqlControlExtensionDescriptor, d as SqlMigrationPlanOperation, f as SqlMigrationPlanOperationStep, g as SqlMigrationRunner, h as SqlMigrationPlannerPlanOptions, i as FieldEvent, k as SqlPlannerSuccessResult, l as SqlMigrationPlan, m as SqlMigrationPlanner, n as CodecControlHooks, o as ResolveIdentityValueInput, p as SqlMigrationPlanOperationTarget, r as CreateSqlMigrationPlanOptions, s as SqlControlAdapterDescriptor, u as SqlMigrationPlanContractInfo, v as SqlMigrationRunnerExecuteCallbacks, w as SqlPlannerConflict, x as SqlMigrationRunnerResult, y as SqlMigrationRunnerExecuteOptions } from "./types-CzxOObSY-Cq3t_HCe.mjs";
5
+ import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-CqWOkoW9-uVU2SdFf.mjs";
6
+ import { $ as backfillOfDefaultedField, A as SchemaTables, At as rowsWithoutValueFailure, B as StatementColumn, Bt as temporalStringAuthoringPresets, C as ModelStorageEffect, Ct as plannerFailure, D as PlannedStatements, Dt as requiredColumnsOfMigration, E as PlanFieldEventOperationsOptions, Et as requiredColumnOf, F as SqlPslBuildContext, Ft as sqlOfSlot, G as TableNameCaseGuardTable, H as SubjectStorage, Ht as unknownCallNames, I as SqlQuote, It as sqlTypeLookupsOf, J as TableRenameRequest, K as TableRename, L as SqlQuotingRules, Lt as storageNameOfOperation, M as SqlControlFamilyInstance, Mt as runnerFailure, N as SqlControlTargetDescriptor, Nt as runnerSuccess, O as RequiredColumn, Ot as resolveColumnRenameAgainst, P as SqlDescribedContractSpace, Pt as slotSource, Q as assembleAuthoringContributions, R as SqlSlot, Rt as subjectsOfCalls, S as MigrationPlannerResult, St as planStatements, T as NoTable, Tt as requiredColumnMeta, U as SuppressionRecord, Ut as unmatchedColumnRename, V as StatementPlanningTarget, Vt as unconvertedFieldOf, W as TABLE_NAME_CASE_CHANGED_CODE, Wt as unmatchedTableRename, Y as TargetMigrationsCapability, Z as appliedStatementsInOrder, _ as MigrationOperationPolicy, _t as modelRenameStorageEffect, a as ColumnRename, at as convertedColumnMeta, b as MigrationPlanner, bt as planFieldEventCalls, c as ControlPolicySubject, ct as createSqlTextSources, d as DefaultResolver, dt as extractCodecControlHooks, et as checkSqlExpressionText, f as FieldEventCall, ft as fieldEventStorage, g as MigrationOperationClass, gt as isUnfilledSlot, h as INIT_ADDITIVE_POLICY, ht as fieldStatementColumns, i as ColumnOnOneSide, it as controlPolicyForCall, j as SingleOperationCall, jt as rowsWithoutValueSummary, k as RequiredColumnMark, kt as resolveTableRenameAgainst, l as ConvertedColumn, lt as detectDestructiveChanges, m as FieldStorageEffect, mt as fieldRenameStorageEffect, n as CallSubjects, nt as contractNamespaceToSchemaIR, o as ColumnRenameRequest, ot as convertedColumnOf, p as FieldStatementColumns, pt as fieldOfColumn, q as TableRenameByHand, r as CallWithCompanions, rt as contractToSchemaIR, s as ContractToSchemaIROptions, st as createMigrationPlan, t as COLUMN_RENAME_UNMATCHED_CODE, tt as columnTakesTemporaryValue, u as DefaultRenderer, ut as detectTableNameCaseChanges, v as MigrationPlan, vt as partitionCallsByControlPolicy, w as ModelTable, wt as plannerSuccess, x as MigrationPlannerConflict, xt as planFieldEventOperations, y as MigrationPlanOperation, yt as partitionIssuesByControlPolicy, z as SqlTextSources, zt as temporalCodecPresetWithPrecision } from "./control-DI79MS1a.mjs";
7
+ import "./control-adapter-DDjgBMy3.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-CVVGktZG.mjs";
9
+ import { i as SqlSchemaVerifierBase, n as SqlContractSerializerBase, r as SqlEntityHydrationFactory, t as SqlContractSerializer } from "./ir-D0Vpm5O9.mjs";
10
+ import { t as SqlMigration } from "./migration-ESRa6312.mjs";
11
+ import "./pack-BtGENS4_.mjs";
12
12
  import { n as DefaultMappingResult, r as mapDefault, t as DefaultMappingOptions } from "./default-mapping-B8_APB1M-CWcTmSQW.mjs";
13
13
  import { a as PslTypeCall, c as inferredTypeConstructors, i as IntrospectedTable, l as pslTypeArgumentText, n as InferredTypeConstructor, o as fewestArgumentsCall, r as InferredTypeConstructors, s as inferColumnTypes, t as ColumnTypeOf, u as toEnumMemberName } from "./psl-build-PXVtl8gM.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-g040TwAr.mjs";
15
- import { a as timestampNowRuntimeGenerator, n as UNBOUND_DOMAIN_NAMESPACE_ID, r as resolveDomainModel, t as ResolvedDomainModel } from "./runtime-BHJXmBhw.mjs";
15
+ import { a as timestampNowRuntimeGenerator, n as UNBOUND_DOMAIN_NAMESPACE_ID, r as resolveDomainModel, t as ResolvedDomainModel } from "./runtime-BlUQqGCH.mjs";
16
16
  import { n as parseContractMarkerRow, t as ContractMarkerRow } from "./verify-zDRnw0Rn.mjs";
17
17
  export { COLUMN_RENAME_UNMATCHED_CODE, type CallSubjects, type CallWithCompanions, type CodecControlHooks, type ColumnOnOneSide, type ColumnRename, type ColumnRenameRequest, type ColumnTypeOf, type ContractMarkerRow, type ContractToSchemaIROptions, type ControlPolicySubject, type ConvertedColumn, type CreateSqlMigrationPlanOptions, type DefaultMappingOptions, type DefaultMappingResult, type DefaultRenderer, type DefaultResolver, type EnumInfo, type ExecuteRequestLowerer, type FieldEvent, type FieldEventCall, type FieldEventContext, type FieldStatementColumns, type FieldStorageEffect, INIT_ADDITIVE_POLICY, type InferredRelations, type InferredTypeConstructor, type InferredTypeConstructors, type IntrospectedTable, type Lowerer, SqlMigration as Migration, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerResult, type ModelStorageEffect, type ModelTable, type NoTable, type PlanFieldEventOperationsOptions, type PlannedStatements, type PslPrinterOptions, type PslTypeCall, type RelationField, type RequiredColumn, type RequiredColumnMark, type ResolveIdentityValueInput, type ResolvedDomainModel, type ResolvedStorageTable, type SchemaTables, type SingleOperationCall, 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 SqlQuote, type SqlQuotingRules, type SqlSchemaDiffFn, type SqlSchemaDiffInput, type SqlSchemaDiffResult, SqlSchemaVerifierBase, type SqlSlot, type SqlTextSources, type StatementColumn, type StatementPlanningTarget, type StorageTypePlanResult, type StorageTypeVerdict, type StorageTypeVerdictInput, type SubjectStorage, type SuppressionRecord, TABLE_NAME_CASE_CHANGED_CODE, type TableNameCaseGuardTable, type TableRename, type TableRenameByHand, type TableRenameRequest, type TargetMigrationsCapability, UNBOUND_DOMAIN_NAMESPACE_ID, type VerifySqlSchemaByDiffInput, appliedStatementsInOrder, arraysEqual, assembleAuthoringContributions, backfillOfDefaultedField, buildChildRelationField, checkSqlDefaultText, checkSqlExpressionText, classifyDiffSubjectGranularity, classifySqlDiffIssue, columnTakesTemporaryValue, computeSqlDiffVerdict, computeStorageTypeVerdict, contractNamespaceToSchemaIR, contractToSchemaIR, controlPolicyForCall, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, deriveBackRelationFieldName, deriveRelationFieldName, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, fewestArgumentsCall, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, inferColumnTypes, inferRelations, inferredTypeConstructors, isUnfilledSlot, mapDefault, modelRenameStorageEffect, parseContractMarkerRow, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, pluralize, pslTypeArgumentText, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveDomainModel, resolveStorageTable, resolveTableRenameAgainst, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlOfSlot, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, temporalCodecPresetWithPrecision, temporalStringAuthoringPresets, timestampNowRuntimeGenerator, toEnumMemberName, toEnumName, toFieldName, toModelName, unconvertedFieldOf, unknownCallNames, unmatchedColumnRename, unmatchedTableRename, verifySqlSchemaByDiff };
package/dist/family.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  import { t as resolveStorageTable } from "./resolve-storage-table-DZsfnzeW.mjs";
2
- import { n as checkSqlDefaultText } from "./validators-CfUrQdiv.mjs";
3
- import { a as computeStorageTypeVerdict, c as verifySqlSchemaByDiff, i as computeSqlDiffVerdict, n as classifyDiffSubjectGranularity, r as classifySqlDiffIssue, s as extractCodecControlHooks } from "./schema-verify-DIfHSB4I-CU6ViTDO.mjs";
4
- import { n as SqlContractSerializerBase, t as SqlContractSerializer } from "./sql-contract-serializer-DDaAVCQr-DFIIkxQr.mjs";
2
+ import { n as checkSqlDefaultText } from "./validators-DlpO67uZ.mjs";
3
+ import { a as computeStorageTypeVerdict, c as verifySqlSchemaByDiff, i as computeSqlDiffVerdict, n as classifyDiffSubjectGranularity, r as classifySqlDiffIssue, s as extractCodecControlHooks } from "./schema-verify-DIfHSB4I-wt28gB9e.mjs";
4
+ import { n as SqlContractSerializerBase, t as SqlContractSerializer } from "./sql-contract-serializer-DDaAVCQr-Ba3XOCG6.mjs";
5
5
  import { n as parseContractMarkerRow } from "./verify-BVk5bjdH-dq5M4iIh.mjs";
6
- import { A as plannerFailure, B as runnerSuccess, C as isUnfilledSlot, D as planFieldEventCalls, E as partitionIssuesByControlPolicy, F as resolveColumnRenameAgainst, G as subjectsOfCalls, H as sqlOfSlot, I as resolveTableRenameAgainst, J as unconvertedFieldOf, K as temporalCodecPresetWithPrecision, L as rowsWithoutValueFailure, M as requiredColumnMeta, N as requiredColumnOf, O as planFieldEventOperations, P as requiredColumnsOfMigration, R as rowsWithoutValueSummary, S as fieldStatementColumns, T as partitionCallsByControlPolicy, U as sqlTypeLookupsOf, V as slotSource, W as storageNameOfOperation, X as unmatchedColumnRename, Y as unknownCallNames, Z as unmatchedTableRename, _ as detectDestructiveChanges, a as assembleAuthoringContributions, b as fieldOfColumn, c as columnTakesTemporaryValue, d as controlPolicyForCall, g as createSqlTextSources, h as createMigrationPlan, i as appliedStatementsInOrder, j as plannerSuccess, k as planStatements, l as contractNamespaceToSchemaIR, m as convertedColumnOf, n as INIT_ADDITIVE_POLICY, o as backfillOfDefaultedField, p as convertedColumnMeta, q as temporalStringAuthoringPresets, r as TABLE_NAME_CASE_CHANGED_CODE, s as checkSqlExpressionText, t as COLUMN_RENAME_UNMATCHED_CODE, u as contractToSchemaIR, v as detectTableNameCaseChanges, w as modelRenameStorageEffect, x as fieldRenameStorageEffect, y as fieldEventStorage, z as runnerFailure } from "./control-DiLXYDZc.mjs";
6
+ import { A as plannerFailure, B as runnerSuccess, C as isUnfilledSlot, D as planFieldEventCalls, E as partitionIssuesByControlPolicy, F as resolveColumnRenameAgainst, G as subjectsOfCalls, H as sqlOfSlot, I as resolveTableRenameAgainst, J as unconvertedFieldOf, K as temporalCodecPresetWithPrecision, L as rowsWithoutValueFailure, M as requiredColumnMeta, N as requiredColumnOf, O as planFieldEventOperations, P as requiredColumnsOfMigration, R as rowsWithoutValueSummary, S as fieldStatementColumns, T as partitionCallsByControlPolicy, U as sqlTypeLookupsOf, V as slotSource, W as storageNameOfOperation, X as unmatchedColumnRename, Y as unknownCallNames, Z as unmatchedTableRename, _ as detectDestructiveChanges, a as assembleAuthoringContributions, b as fieldOfColumn, c as columnTakesTemporaryValue, d as controlPolicyForCall, g as createSqlTextSources, h as createMigrationPlan, i as appliedStatementsInOrder, j as plannerSuccess, k as planStatements, l as contractNamespaceToSchemaIR, m as convertedColumnOf, n as INIT_ADDITIVE_POLICY, o as backfillOfDefaultedField, p as convertedColumnMeta, q as temporalStringAuthoringPresets, r as TABLE_NAME_CASE_CHANGED_CODE, s as checkSqlExpressionText, t as COLUMN_RENAME_UNMATCHED_CODE, u as contractToSchemaIR, v as detectTableNameCaseChanges, w as modelRenameStorageEffect, x as fieldRenameStorageEffect, y as fieldEventStorage, z as runnerFailure } from "./control-Dw27oEaF.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-Dy_4Wmiy.mjs";
@@ -1,3 +1,3 @@
1
- import { i as SqlControlAdapterDescriptor, n as Lowerer, r as SqlControlAdapter, t as ExecuteRequestLowerer } from "./control-adapter-CkFfBVei-4WUzQP7G.mjs";
2
- import "./control-adapter-pn8u9o3J.mjs";
1
+ import { i as SqlControlAdapterDescriptor, n as Lowerer, r as SqlControlAdapter, t as ExecuteRequestLowerer } from "./control-adapter-CkFfBVei-DGf1LihO.mjs";
2
+ import "./control-adapter-DDjgBMy3.mjs";
3
3
  export type { ExecuteRequestLowerer, Lowerer, SqlControlAdapter, SqlControlAdapterDescriptor };
@@ -1,5 +1,5 @@
1
- import { h as checkSqlDefaultText } from "./validators-BifwoR5e.mjs";
2
- import { A as StorageTypePlanResult, C as SqlPlanTargetDetails, D as SqlPlannerFailureResult, E as SqlPlannerConflictLocation, O as SqlPlannerResult, S as SqlMigrationRunnerSuccessValue, T as SqlPlannerConflictKind, _ as SqlMigrationRunnerErrorCode, a as FieldEventContext, b as SqlMigrationRunnerFailure, c as SqlControlExtensionDescriptor, d as SqlMigrationPlanOperation, f as SqlMigrationPlanOperationStep, g as SqlMigrationRunner, h as SqlMigrationPlannerPlanOptions, i as FieldEvent, k as SqlPlannerSuccessResult, l as SqlMigrationPlan, m as SqlMigrationPlanner, n as CodecControlHooks, o as ResolveIdentityValueInput, p as SqlMigrationPlanOperationTarget, r as CreateSqlMigrationPlanOptions, s as SqlControlAdapterDescriptor, u as SqlMigrationPlanContractInfo, v as SqlMigrationRunnerExecuteCallbacks, w as SqlPlannerConflict, x as SqlMigrationRunnerResult, y as SqlMigrationRunnerExecuteOptions } from "./types-CzxOObSY-DTQ2rnLF.mjs";
3
- import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-CqWOkoW9-DAcuiQPU.mjs";
4
- import { $ as backfillOfDefaultedField, A as SchemaTables, At as rowsWithoutValueFailure, B as StatementColumn, Bt as temporalStringAuthoringPresets, C as ModelStorageEffect, Ct as plannerFailure, D as PlannedStatements, Dt as requiredColumnsOfMigration, E as PlanFieldEventOperationsOptions, Et as requiredColumnOf, F as SqlPslBuildContext, Ft as sqlOfSlot, G as TableNameCaseGuardTable, H as SubjectStorage, Ht as unknownCallNames, I as SqlQuote, It as sqlTypeLookupsOf, J as TableRenameRequest, K as TableRename, L as SqlQuotingRules, Lt as storageNameOfOperation, M as SqlControlFamilyInstance, Mt as runnerFailure, N as SqlControlTargetDescriptor, Nt as runnerSuccess, O as RequiredColumn, Ot as resolveColumnRenameAgainst, P as SqlDescribedContractSpace, Pt as slotSource, Q as assembleAuthoringContributions, R as SqlSlot, Rt as subjectsOfCalls, S as MigrationPlannerResult, St as planStatements, T as NoTable, Tt as requiredColumnMeta, U as SuppressionRecord, Ut as unmatchedColumnRename, V as StatementPlanningTarget, Vt as unconvertedFieldOf, W as TABLE_NAME_CASE_CHANGED_CODE, Wt as unmatchedTableRename, X as _default, Y as TargetMigrationsCapability, Z as appliedStatementsInOrder, _ as MigrationOperationPolicy, _t as modelRenameStorageEffect, a as ColumnRename, at as convertedColumnMeta, b as MigrationPlanner, bt as planFieldEventCalls, c as ControlPolicySubject, ct as createSqlTextSources, d as DefaultResolver, dt as extractCodecControlHooks, et as checkSqlExpressionText, f as FieldEventCall, ft as fieldEventStorage, g as MigrationOperationClass, gt as isUnfilledSlot, h as INIT_ADDITIVE_POLICY, ht as fieldStatementColumns, i as ColumnOnOneSide, it as controlPolicyForCall, j as SingleOperationCall, jt as rowsWithoutValueSummary, k as RequiredColumnMark, kt as resolveTableRenameAgainst, l as ConvertedColumn, lt as detectDestructiveChanges, m as FieldStorageEffect, mt as fieldRenameStorageEffect, n as CallSubjects, nt as contractNamespaceToSchemaIR, o as ColumnRenameRequest, ot as convertedColumnOf, p as FieldStatementColumns, pt as fieldOfColumn, q as TableRenameByHand, r as CallWithCompanions, rt as contractToSchemaIR, s as ContractToSchemaIROptions, st as createMigrationPlan, t as COLUMN_RENAME_UNMATCHED_CODE, tt as columnTakesTemporaryValue, u as DefaultRenderer, ut as detectTableNameCaseChanges, v as MigrationPlan, vt as partitionCallsByControlPolicy, w as ModelTable, wt as plannerSuccess, x as MigrationPlannerConflict, xt as planFieldEventOperations, y as MigrationPlanOperation, yt as partitionIssuesByControlPolicy, z as SqlTextSources, zt as temporalCodecPresetWithPrecision } from "./control-Ced1D4yz.mjs";
1
+ import { h as checkSqlDefaultText } from "./validators-R-Wsy5Rr.mjs";
2
+ import { A as StorageTypePlanResult, C as SqlPlanTargetDetails, D as SqlPlannerFailureResult, E as SqlPlannerConflictLocation, O as SqlPlannerResult, S as SqlMigrationRunnerSuccessValue, T as SqlPlannerConflictKind, _ as SqlMigrationRunnerErrorCode, a as FieldEventContext, b as SqlMigrationRunnerFailure, c as SqlControlExtensionDescriptor, d as SqlMigrationPlanOperation, f as SqlMigrationPlanOperationStep, g as SqlMigrationRunner, h as SqlMigrationPlannerPlanOptions, i as FieldEvent, k as SqlPlannerSuccessResult, l as SqlMigrationPlan, m as SqlMigrationPlanner, n as CodecControlHooks, o as ResolveIdentityValueInput, p as SqlMigrationPlanOperationTarget, r as CreateSqlMigrationPlanOptions, s as SqlControlAdapterDescriptor, u as SqlMigrationPlanContractInfo, v as SqlMigrationRunnerExecuteCallbacks, w as SqlPlannerConflict, x as SqlMigrationRunnerResult, y as SqlMigrationRunnerExecuteOptions } from "./types-CzxOObSY-Cq3t_HCe.mjs";
3
+ import { n as SqlSchemaDiffInput, r as SqlSchemaDiffResult, t as SqlSchemaDiffFn } from "./schema-differ-CqWOkoW9-uVU2SdFf.mjs";
4
+ import { $ as backfillOfDefaultedField, A as SchemaTables, At as rowsWithoutValueFailure, B as StatementColumn, Bt as temporalStringAuthoringPresets, C as ModelStorageEffect, Ct as plannerFailure, D as PlannedStatements, Dt as requiredColumnsOfMigration, E as PlanFieldEventOperationsOptions, Et as requiredColumnOf, F as SqlPslBuildContext, Ft as sqlOfSlot, G as TableNameCaseGuardTable, H as SubjectStorage, Ht as unknownCallNames, I as SqlQuote, It as sqlTypeLookupsOf, J as TableRenameRequest, K as TableRename, L as SqlQuotingRules, Lt as storageNameOfOperation, M as SqlControlFamilyInstance, Mt as runnerFailure, N as SqlControlTargetDescriptor, Nt as runnerSuccess, O as RequiredColumn, Ot as resolveColumnRenameAgainst, P as SqlDescribedContractSpace, Pt as slotSource, Q as assembleAuthoringContributions, R as SqlSlot, Rt as subjectsOfCalls, S as MigrationPlannerResult, St as planStatements, T as NoTable, Tt as requiredColumnMeta, U as SuppressionRecord, Ut as unmatchedColumnRename, V as StatementPlanningTarget, Vt as unconvertedFieldOf, W as TABLE_NAME_CASE_CHANGED_CODE, Wt as unmatchedTableRename, X as _default, Y as TargetMigrationsCapability, Z as appliedStatementsInOrder, _ as MigrationOperationPolicy, _t as modelRenameStorageEffect, a as ColumnRename, at as convertedColumnMeta, b as MigrationPlanner, bt as planFieldEventCalls, c as ControlPolicySubject, ct as createSqlTextSources, d as DefaultResolver, dt as extractCodecControlHooks, et as checkSqlExpressionText, f as FieldEventCall, ft as fieldEventStorage, g as MigrationOperationClass, gt as isUnfilledSlot, h as INIT_ADDITIVE_POLICY, ht as fieldStatementColumns, i as ColumnOnOneSide, it as controlPolicyForCall, j as SingleOperationCall, jt as rowsWithoutValueSummary, k as RequiredColumnMark, kt as resolveTableRenameAgainst, l as ConvertedColumn, lt as detectDestructiveChanges, m as FieldStorageEffect, mt as fieldRenameStorageEffect, n as CallSubjects, nt as contractNamespaceToSchemaIR, o as ColumnRenameRequest, ot as convertedColumnOf, p as FieldStatementColumns, pt as fieldOfColumn, q as TableRenameByHand, r as CallWithCompanions, rt as contractToSchemaIR, s as ContractToSchemaIROptions, st as createMigrationPlan, t as COLUMN_RENAME_UNMATCHED_CODE, tt as columnTakesTemporaryValue, u as DefaultRenderer, ut as detectTableNameCaseChanges, v as MigrationPlan, vt as partitionCallsByControlPolicy, w as ModelTable, wt as plannerSuccess, x as MigrationPlannerConflict, xt as planFieldEventOperations, y as MigrationPlanOperation, yt as partitionIssuesByControlPolicy, z as SqlTextSources, zt as temporalCodecPresetWithPrecision } from "./control-DI79MS1a.mjs";
5
5
  export { COLUMN_RENAME_UNMATCHED_CODE, type CallSubjects, type CallWithCompanions, type CodecControlHooks, type ColumnOnOneSide, type ColumnRename, type ColumnRenameRequest, type ContractToSchemaIROptions, type ControlPolicySubject, type ConvertedColumn, type CreateSqlMigrationPlanOptions, type DefaultRenderer, type DefaultResolver, type FieldEvent, type FieldEventCall, type FieldEventContext, type FieldStatementColumns, type FieldStorageEffect, INIT_ADDITIVE_POLICY, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerResult, type ModelStorageEffect, type ModelTable, type NoTable, type PlanFieldEventOperationsOptions, type PlannedStatements, type RequiredColumn, type RequiredColumnMark, type ResolveIdentityValueInput, type SchemaTables, type SingleOperationCall, 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 SqlQuote, type SqlQuotingRules, type SqlSchemaDiffFn, type SqlSchemaDiffInput, type SqlSchemaDiffResult, type SqlSlot, type SqlTextSources, type StatementColumn, type StatementPlanningTarget, type StorageTypePlanResult, type SubjectStorage, type SuppressionRecord, TABLE_NAME_CASE_CHANGED_CODE, type TableNameCaseGuardTable, type TableRename, type TableRenameByHand, type TableRenameRequest, type TargetMigrationsCapability, appliedStatementsInOrder, assembleAuthoringContributions, backfillOfDefaultedField, checkSqlDefaultText, checkSqlExpressionText, columnTakesTemporaryValue, contractNamespaceToSchemaIR, contractToSchemaIR, controlPolicyForCall, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, _default as default, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, isUnfilledSlot, modelRenameStorageEffect, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveTableRenameAgainst, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlOfSlot, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, temporalCodecPresetWithPrecision, temporalStringAuthoringPresets, unconvertedFieldOf, unknownCallNames, unmatchedColumnRename, unmatchedTableRename };
@@ -1,4 +1,4 @@
1
- import { n as checkSqlDefaultText } from "./validators-CfUrQdiv.mjs";
2
- import { s as extractCodecControlHooks } from "./schema-verify-DIfHSB4I-CU6ViTDO.mjs";
3
- import { A as plannerFailure, B as runnerSuccess, C as isUnfilledSlot, D as planFieldEventCalls, E as partitionIssuesByControlPolicy, F as resolveColumnRenameAgainst, G as subjectsOfCalls, H as sqlOfSlot, I as resolveTableRenameAgainst, J as unconvertedFieldOf, K as temporalCodecPresetWithPrecision, L as rowsWithoutValueFailure, M as requiredColumnMeta, N as requiredColumnOf, O as planFieldEventOperations, P as requiredColumnsOfMigration, R as rowsWithoutValueSummary, S as fieldStatementColumns, T as partitionCallsByControlPolicy, U as sqlTypeLookupsOf, V as slotSource, W as storageNameOfOperation, X as unmatchedColumnRename, Y as unknownCallNames, Z as unmatchedTableRename, _ as detectDestructiveChanges, a as assembleAuthoringContributions, b as fieldOfColumn, c as columnTakesTemporaryValue, d as controlPolicyForCall, f as control_default, g as createSqlTextSources, h as createMigrationPlan, i as appliedStatementsInOrder, j as plannerSuccess, k as planStatements, l as contractNamespaceToSchemaIR, m as convertedColumnOf, n as INIT_ADDITIVE_POLICY, o as backfillOfDefaultedField, p as convertedColumnMeta, q as temporalStringAuthoringPresets, r as TABLE_NAME_CASE_CHANGED_CODE, s as checkSqlExpressionText, t as COLUMN_RENAME_UNMATCHED_CODE, u as contractToSchemaIR, v as detectTableNameCaseChanges, w as modelRenameStorageEffect, x as fieldRenameStorageEffect, y as fieldEventStorage, z as runnerFailure } from "./control-DiLXYDZc.mjs";
1
+ import { n as checkSqlDefaultText } from "./validators-DlpO67uZ.mjs";
2
+ import { s as extractCodecControlHooks } from "./schema-verify-DIfHSB4I-wt28gB9e.mjs";
3
+ import { A as plannerFailure, B as runnerSuccess, C as isUnfilledSlot, D as planFieldEventCalls, E as partitionIssuesByControlPolicy, F as resolveColumnRenameAgainst, G as subjectsOfCalls, H as sqlOfSlot, I as resolveTableRenameAgainst, J as unconvertedFieldOf, K as temporalCodecPresetWithPrecision, L as rowsWithoutValueFailure, M as requiredColumnMeta, N as requiredColumnOf, O as planFieldEventOperations, P as requiredColumnsOfMigration, R as rowsWithoutValueSummary, S as fieldStatementColumns, T as partitionCallsByControlPolicy, U as sqlTypeLookupsOf, V as slotSource, W as storageNameOfOperation, X as unmatchedColumnRename, Y as unknownCallNames, Z as unmatchedTableRename, _ as detectDestructiveChanges, a as assembleAuthoringContributions, b as fieldOfColumn, c as columnTakesTemporaryValue, d as controlPolicyForCall, f as control_default, g as createSqlTextSources, h as createMigrationPlan, i as appliedStatementsInOrder, j as plannerSuccess, k as planStatements, l as contractNamespaceToSchemaIR, m as convertedColumnOf, n as INIT_ADDITIVE_POLICY, o as backfillOfDefaultedField, p as convertedColumnMeta, q as temporalStringAuthoringPresets, r as TABLE_NAME_CASE_CHANGED_CODE, s as checkSqlExpressionText, t as COLUMN_RENAME_UNMATCHED_CODE, u as contractToSchemaIR, v as detectTableNameCaseChanges, w as modelRenameStorageEffect, x as fieldRenameStorageEffect, y as fieldEventStorage, z as runnerFailure } from "./control-Dw27oEaF.mjs";
4
4
  export { COLUMN_RENAME_UNMATCHED_CODE, INIT_ADDITIVE_POLICY, TABLE_NAME_CASE_CHANGED_CODE, appliedStatementsInOrder, assembleAuthoringContributions, backfillOfDefaultedField, checkSqlDefaultText, checkSqlExpressionText, columnTakesTemporaryValue, contractNamespaceToSchemaIR, contractToSchemaIR, controlPolicyForCall, convertedColumnMeta, convertedColumnOf, createMigrationPlan, createSqlTextSources, control_default as default, detectDestructiveChanges, detectTableNameCaseChanges, extractCodecControlHooks, fieldEventStorage, fieldOfColumn, fieldRenameStorageEffect, fieldStatementColumns, isUnfilledSlot, modelRenameStorageEffect, partitionCallsByControlPolicy, partitionIssuesByControlPolicy, planFieldEventCalls, planFieldEventOperations, planStatements, plannerFailure, plannerSuccess, requiredColumnMeta, requiredColumnOf, requiredColumnsOfMigration, resolveColumnRenameAgainst, resolveTableRenameAgainst, rowsWithoutValueFailure, rowsWithoutValueSummary, runnerFailure, runnerSuccess, slotSource, sqlOfSlot, sqlTypeLookupsOf, storageNameOfOperation, subjectsOfCalls, temporalCodecPresetWithPrecision, temporalStringAuthoringPresets, unconvertedFieldOf, unknownCallNames, unmatchedColumnRename, unmatchedTableRename };
@@ -1,3 +1,3 @@
1
- import { a as arraysEqual } from "./control-adapter-CkFfBVei-4WUzQP7G.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-Cx7qTc2x.mjs";
1
+ import { a as arraysEqual } from "./control-adapter-CkFfBVei-DGf1LihO.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-CVVGktZG.mjs";
3
3
  export { 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, c as verifySqlSchemaByDiff, i as computeSqlDiffVerdict, n as classifyDiffSubjectGranularity, r as classifySqlDiffIssue } from "./schema-verify-DIfHSB4I-CU6ViTDO.mjs";
1
+ import { a as computeStorageTypeVerdict, c as verifySqlSchemaByDiff, i as computeSqlDiffVerdict, n as classifyDiffSubjectGranularity, r as classifySqlDiffIssue } from "./schema-verify-DIfHSB4I-wt28gB9e.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-BEQwEnRB.mjs";
1
+ import { i as SqlSchemaVerifierBase, n as SqlContractSerializerBase, r as SqlEntityHydrationFactory, t as SqlContractSerializer } from "./ir-D0Vpm5O9.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-DDaAVCQr-DFIIkxQr.mjs";
1
+ import { n as SqlContractSerializerBase, t as SqlContractSerializer } from "./sql-contract-serializer-DDaAVCQr-Ba3XOCG6.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-Cc102YUu.mjs";
1
+ import { t as SqlMigration } from "./migration-ESRa6312.mjs";
2
2
  export { SqlMigration as Migration };
@@ -1,2 +1,2 @@
1
- import { t as sqlFamilyPack } from "./pack-DI4Nur5d.mjs";
1
+ import { t as sqlFamilyPack } from "./pack-BtGENS4_.mjs";
2
2
  export { sqlFamilyPack as default };
@@ -1,5 +1,5 @@
1
- import { v as sqlAttributeSpecs } from "./psl-field-resolution-4U7Plpfb-CCfgoBAa.mjs";
2
- import { i as sqlFamilyPslBlockDescriptors, n as sqlFamilyAuthoringTypes, r as sqlFamilyEntityTypes, t as sqlFamilyAuthoringFieldPresets } from "./authoring-type-constructors-0Iv2zdwS-BG0FZNDM.mjs";
1
+ import { v as sqlAttributeSpecs } from "./psl-field-resolution-SPNDr-jr-CH_gs3Oy.mjs";
2
+ import { i as sqlFamilyPslBlockDescriptors, n as sqlFamilyAuthoringTypes, r as sqlFamilyEntityTypes, t as sqlFamilyAuthoringFieldPresets } from "./authoring-type-constructors-0Iv2zdwS-yMnSyGBK.mjs";
3
3
  //#region ../../../2-sql/9-family/dist/pack.mjs
4
4
  const sqlFamilyPack = {
5
5
  kind: "family",
@@ -1,3 +1,3 @@
1
- import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-wSUswl-4.mjs";
2
- import { a as timestampNowRuntimeGenerator, i as sqlRuntimeFamilyDescriptor, n as UNBOUND_DOMAIN_NAMESPACE_ID, r as resolveDomainModel, t as ResolvedDomainModel } from "./runtime-BHJXmBhw.mjs";
1
+ import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-8N2xelSh.mjs";
2
+ import { a as timestampNowRuntimeGenerator, i as sqlRuntimeFamilyDescriptor, n as UNBOUND_DOMAIN_NAMESPACE_ID, r as resolveDomainModel, t as ResolvedDomainModel } from "./runtime-BlUQqGCH.mjs";
3
3
  export { type ResolvedDomainModel, type ResolvedStorageTable, UNBOUND_DOMAIN_NAMESPACE_ID, sqlRuntimeFamilyDescriptor as default, resolveDomainModel, resolveStorageTable, timestampNowRuntimeGenerator };
@@ -1,8 +1,8 @@
1
- import { D as QueryOperationTypesBase } from "./types-zwKzjyma-CxZkmkUI.mjs";
2
- import "./types-HD5m-h8B.mjs";
3
- import { i as SqlOperationEntry } from "./index-CJlr0Eja.mjs";
4
- import { Mt as SelectAst } from "./types-Sh5HuaZE-Dq4AUzl7.mjs";
5
- import { i as CodecTypesBase, l as RawCodecInferer, o as Expression, r as CodecExpression, x as ScopeField, y as RawSqlTag } from "./expression-Ck1wys3N-CBfr-HMG.mjs";
1
+ import { D as QueryOperationTypesBase } from "./types-Dqf87mfA-BOElvimQ.mjs";
2
+ import "./types-DMfBh16_.mjs";
3
+ import { i as SqlOperationEntry } from "./index-BXFiad5j.mjs";
4
+ import { Mt as SelectAst } from "./types-Sh5HuaZE-BwZNUDEi.mjs";
5
+ import { i as CodecTypesBase, l as RawCodecInferer, o as Expression, r as CodecExpression, x as ScopeField, y as RawSqlTag } from "./expression-Ck1wys3N-Cdc7eUQS.mjs";
6
6
  //#region ../../../2-sql/4-lanes/relational-core/dist/exports/functions.d.mts
7
7
  //#region src/functions.d.ts
8
8
  type BooleanCodecType = {
@@ -70,4 +70,4 @@ type Functions<QC extends FunctionsContext> = BuiltinFunctions<QC['codecTypes']>
70
70
  declare function createFunctions<QC extends FunctionsContext>(operations: Readonly<Record<string, SqlOperationEntry>>, rawCodecInferer: RawCodecInferer): Functions<QC>;
71
71
  //#endregion
72
72
  export { Subquery as a, FunctionsContext as i, BuiltinFunctions as n, SubqueryMarker as o, Functions as r, createFunctions as s, BooleanCodecType as t };
73
- //# sourceMappingURL=functions-DucgffNf.d.mts.map
73
+ //# sourceMappingURL=functions-DSwXxsTg.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"functions-DucgffNf.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/exports/functions.d.mts"],"mappings":";;;;;;;KAKK;EACH;EACA;;cAEY;KACT,SAAS,gBAAgB,eAAe;GAC1C,iBAAiB;EAClB,YAAY;EACZ,gBAAgB,eAAe;;;KAG5B;WACM,YAAY;WACZ,qBAAqB;;KAE3B,mBAAmB,WAAW,8BAA8B,WAAW,KAAK,GAAG;KAC/E,iBAAiB,WAAW;WACtB;;EAET,KAAK,wBAAwB,GAAG,gBAAgB,kBAAkB,YAAY,GAAG,gBAAgB,kBAAkB,eAAe,WAAW;EAC7I,KAAK,wBAAwB,mBAAmB,GAAG,gBAAgB,SAAS,GAAG,YAAY,GAAG,gBAAgB,SAAS,GAAG,eAAe,WAAW;EACpJ,KAAK,wBAAwB,mBAAmB,GAAG,gBAAgB,SAAS,GAAG,KAAK,GAAG,gBAAgB,SAAS,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