@prisma/orm-family-sql 8.0.0-rc.1-dev.30 → 8.0.0-rc.1-dev.31

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 (225) hide show
  1. package/dist/{ast-Px7aAd_0.d.mts → ast-DRbUiQ-9.d.mts} +3 -3
  2. package/dist/{ast-Px7aAd_0.d.mts.map → ast-DRbUiQ-9.d.mts.map} +1 -1
  3. package/dist/authored-check-naming-BWBe-PVE.d.mts +30 -0
  4. package/dist/authored-check-naming-BWBe-PVE.d.mts.map +1 -0
  5. package/dist/authored-check-naming-Hf9990DV.mjs +47 -0
  6. package/dist/authored-check-naming-Hf9990DV.mjs.map +1 -0
  7. package/dist/{authoring-type-constructors-Blqoa2Ua-OP7GsSm3.mjs → authoring-type-constructors-Blqoa2Ua-CvHn00xx.mjs} +2 -2
  8. package/dist/{authoring-type-constructors-Blqoa2Ua-OP7GsSm3.mjs.map → authoring-type-constructors-Blqoa2Ua-CvHn00xx.mjs.map} +1 -1
  9. package/dist/builder.d.mts +2 -2
  10. package/dist/builder__runtime.d.mts +9 -9
  11. package/dist/builder__runtime.mjs +1 -1
  12. package/dist/builder__types.d.mts +2 -2
  13. package/dist/check-constraint-B7qGu6rc-HvQjjX82.d.mts +44 -0
  14. package/dist/check-constraint-B7qGu6rc-HvQjjX82.d.mts.map +1 -0
  15. package/dist/{codec-descriptor-registry-DMUcCfyb.mjs → codec-descriptor-registry-N0dhtKaH.mjs} +2 -2
  16. package/dist/{codec-descriptor-registry-DMUcCfyb.mjs.map → codec-descriptor-registry-N0dhtKaH.mjs.map} +1 -1
  17. package/dist/{config-types-D7vjxNMf.mjs → config-types-B6cQRwJw.mjs} +2 -2
  18. package/dist/{config-types-D7vjxNMf.mjs.map → config-types-B6cQRwJw.mjs.map} +1 -1
  19. package/dist/{config-types-ktywvY7L.d.mts → config-types-D9fdKG3g.d.mts} +4 -4
  20. package/dist/{config-types-ktywvY7L.d.mts.map → config-types-D9fdKG3g.d.mts.map} +1 -1
  21. package/dist/{contract-builder-Dqnem9IW.d.mts → contract-builder-CG_tGDbB.d.mts} +45 -10
  22. package/dist/contract-builder-CG_tGDbB.d.mts.map +1 -0
  23. package/dist/{contract-builder-BFN7WSed.mjs → contract-builder-vdfvmuiO.mjs} +25 -5
  24. package/dist/contract-builder-vdfvmuiO.mjs.map +1 -0
  25. package/dist/contract-emitter.mjs +1 -1
  26. package/dist/contract-psl.d.mts +3 -3
  27. package/dist/contract-psl.mjs +1 -1
  28. package/dist/contract-psl__provider.d.mts +2 -2
  29. package/dist/contract-psl__provider.mjs +3 -3
  30. package/dist/contract-psl__provider.mjs.map +1 -1
  31. package/dist/contract-ts.d.mts +5 -5
  32. package/dist/contract-ts.mjs +4 -4
  33. package/dist/contract-ts__config-types.d.mts +1 -1
  34. package/dist/contract-ts__config-types.mjs +1 -1
  35. package/dist/contract-ts__contract-builder.d.mts +4 -4
  36. package/dist/contract-ts__contract-builder.mjs +3 -3
  37. package/dist/{contract-view-C2LYZzWr.d.mts → contract-view-CPHxoAEX.d.mts} +2 -2
  38. package/dist/{contract-view-C2LYZzWr.d.mts.map → contract-view-CPHxoAEX.d.mts.map} +1 -1
  39. package/dist/contract.d.mts +17 -15
  40. package/dist/contract.mjs +10 -9
  41. package/dist/contract__authored-check-naming.d.mts +2 -0
  42. package/dist/contract__authored-check-naming.mjs +2 -0
  43. package/dist/contract__contract-view.d.mts +1 -1
  44. package/dist/contract__entity-kinds.d.mts +1 -1
  45. package/dist/contract__entity-kinds.mjs +1 -1
  46. package/dist/contract__factories.d.mts +1 -1
  47. package/dist/contract__factories.mjs +1 -1
  48. package/dist/contract__foreign-key-materialization.d.mts +1 -1
  49. package/dist/contract__foreign-key-materialization.mjs +1 -1
  50. package/dist/contract__index-naming.d.mts +1 -1
  51. package/dist/contract__index-naming.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 +7 -6
  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-f9B6b5c2.mjs → control-DAkNosoF.mjs} +9 -9
  59. package/dist/{control-f9B6b5c2.mjs.map → control-DAkNosoF.mjs.map} +1 -1
  60. package/dist/{control-0OFuH6HK.d.mts → control-DI9DC2AS.d.mts} +14 -14
  61. package/dist/{control-0OFuH6HK.d.mts.map → control-DI9DC2AS.d.mts.map} +1 -1
  62. package/dist/control-adapter-BdOcXTOm.d.mts +1 -0
  63. package/dist/{control-adapter-C99J7aEF-B4MyB0B0.d.mts → control-adapter-C99J7aEF-DsxImHyk.d.mts} +8 -8
  64. package/dist/{control-adapter-C99J7aEF-B4MyB0B0.d.mts.map → control-adapter-C99J7aEF-DsxImHyk.d.mts.map} +1 -1
  65. package/dist/{db-C5jmOFPM-BRijskUO.d.mts → db-C5jmOFPM-BGm-QfKd.d.mts} +9 -9
  66. package/dist/{db-C5jmOFPM-BRijskUO.d.mts.map → db-C5jmOFPM-BGm-QfKd.d.mts.map} +1 -1
  67. package/dist/{ddl-types-CnLSuwXa-Dsz9N7Wm.d.mts → ddl-types-CnLSuwXa-Bv46yIe9.d.mts} +3 -3
  68. package/dist/{ddl-types-CnLSuwXa-Dsz9N7Wm.d.mts.map → ddl-types-CnLSuwXa-Bv46yIe9.d.mts.map} +1 -1
  69. package/dist/{derived-checks-CmJgg-N0-CugkINPW.mjs → derived-checks-DFMRmiAu-8jmha26I.mjs} +69 -22
  70. package/dist/derived-checks-DFMRmiAu-8jmha26I.mjs.map +1 -0
  71. package/dist/{derived-checks-DPdD01O0-CE4vJKET.d.mts → derived-checks-DPdD01O0-DGqOFjs6.d.mts} +3 -3
  72. package/dist/{derived-checks-DPdD01O0-CE4vJKET.d.mts.map → derived-checks-DPdD01O0-DGqOFjs6.d.mts.map} +1 -1
  73. package/dist/{diff-dX8KnmWc.d.mts → diff-DVvZXmFv.d.mts} +8 -8
  74. package/dist/{diff-dX8KnmWc.d.mts.map → diff-DVvZXmFv.d.mts.map} +1 -1
  75. package/dist/{dist-DtLVFgdI.mjs → dist-ZK6oeI5e.mjs} +2 -2
  76. package/dist/{dist-DtLVFgdI.mjs.map → dist-ZK6oeI5e.mjs.map} +1 -1
  77. package/dist/{entity-kinds-DZzdcuU5.d.mts → entity-kinds-B5cUFU22.d.mts} +5 -4
  78. package/dist/entity-kinds-B5cUFU22.d.mts.map +1 -0
  79. package/dist/{entity-kinds-CCzdAMq3-x9-uzHu1.mjs → entity-kinds-D7vwoN_T-CCBwFJy0.mjs} +4 -4
  80. package/dist/{entity-kinds-CCzdAMq3-x9-uzHu1.mjs.map → entity-kinds-D7vwoN_T-CCBwFJy0.mjs.map} +1 -1
  81. package/dist/{expression-E67TGFZA.d.mts → expression-D7H1kyVG.d.mts} +5 -5
  82. package/dist/{expression-E67TGFZA.d.mts.map → expression-D7H1kyVG.d.mts.map} +1 -1
  83. package/dist/{factories-C8VyKQ90.d.mts → factories-P3qBQhO-.d.mts} +4 -4
  84. package/dist/{factories-C8VyKQ90.d.mts.map → factories-P3qBQhO-.d.mts.map} +1 -1
  85. package/dist/{factories-BIzyHng2.mjs → factories-SVor5xIT.mjs} +3 -3
  86. package/dist/{factories-BIzyHng2.mjs.map → factories-SVor5xIT.mjs.map} +1 -1
  87. package/dist/family.d.mts +11 -11
  88. package/dist/family.mjs +4 -4
  89. package/dist/family__control-adapter.d.mts +2 -2
  90. package/dist/family__control.d.mts +3 -3
  91. package/dist/family__control.mjs +2 -2
  92. package/dist/family__diff.d.mts +2 -2
  93. package/dist/family__diff.mjs +1 -1
  94. package/dist/family__ir.d.mts +1 -1
  95. package/dist/family__ir.mjs +1 -1
  96. package/dist/family__migration.d.mts +1 -1
  97. package/dist/family__pack.mjs +1 -1
  98. package/dist/family__psl-infer.d.mts +1 -1
  99. package/dist/family__psl-infer.mjs +1 -1
  100. package/dist/family__runtime.d.mts +2 -2
  101. package/dist/{foreign-key-materialization-ziwobURR.mjs → foreign-key-materialization-DLOi1Ps0.mjs} +2 -2
  102. package/dist/{foreign-key-materialization-ziwobURR.mjs.map → foreign-key-materialization-DLOi1Ps0.mjs.map} +1 -1
  103. package/dist/{foreign-key-materialization-CDDVZI8R.d.mts → foreign-key-materialization-DO9dvG7v.d.mts} +2 -2
  104. package/dist/{foreign-key-materialization-CDDVZI8R.d.mts.map → foreign-key-materialization-DO9dvG7v.d.mts.map} +1 -1
  105. package/dist/{index-DbDTloZS.d.mts → index-C5I8D-MB.d.mts} +3 -3
  106. package/dist/{index-DbDTloZS.d.mts.map → index-C5I8D-MB.d.mts.map} +1 -1
  107. package/dist/{index-BIj_Z-Yu.d.mts → index-Ddquditw.d.mts} +16 -16
  108. package/dist/{index-BIj_Z-Yu.d.mts.map → index-Ddquditw.d.mts.map} +1 -1
  109. package/dist/{index-naming-BQXnMcXt.d.mts → index-naming-Ct65z5Xk.d.mts} +7 -7
  110. package/dist/{index-naming-BQXnMcXt.d.mts.map → index-naming-Ct65z5Xk.d.mts.map} +1 -1
  111. package/dist/{index-naming-BoGBcMmI-CoehgjMK.mjs → index-naming-DREt6js7-CRH27yUv.mjs} +15 -13
  112. package/dist/index-naming-DREt6js7-CRH27yUv.mjs.map +1 -0
  113. package/dist/{index-type-validation-DS9n07WO.d.mts → index-type-validation-CZ5L2lli.d.mts} +3 -3
  114. package/dist/{index-type-validation-DS9n07WO.d.mts.map → index-type-validation-CZ5L2lli.d.mts.map} +1 -1
  115. package/dist/{interpreter-BDZ_Y5U--CMEJIQ40.mjs → interpreter-DaBA2fm--FFkq_gGd.mjs} +75 -5
  116. package/dist/interpreter-DaBA2fm--FFkq_gGd.mjs.map +1 -0
  117. package/dist/{ir-CVhRa-4t.d.mts → ir-Bghjt-FG.d.mts} +3 -3
  118. package/dist/{ir-CVhRa-4t.d.mts.map → ir-Bghjt-FG.d.mts.map} +1 -1
  119. package/dist/lane-query-builder.d.mts +4 -4
  120. package/dist/{middleware-Bp5oIYM0-9a28aLnt.d.mts → middleware-Bp5oIYM0-Ek8bISDH.d.mts} +2 -2
  121. package/dist/{middleware-Bp5oIYM0-9a28aLnt.d.mts.map → middleware-Bp5oIYM0-Ek8bISDH.d.mts.map} +1 -1
  122. package/dist/middleware-aFpB1ZhU.d.mts +1 -0
  123. package/dist/{migration-C8MAouav.d.mts → migration-Dtymew3g.d.mts} +4 -4
  124. package/dist/{migration-C8MAouav.d.mts.map → migration-Dtymew3g.d.mts.map} +1 -1
  125. package/dist/{naming-BsvzQPOq-qOWmknyp.d.mts → naming-CV9j2pXl-KARaDReS.d.mts} +16 -3
  126. package/dist/naming-CV9j2pXl-KARaDReS.d.mts.map +1 -0
  127. package/dist/{naming-BWkuWJJK-zuGIIJ49.mjs → naming-DKr4TJd7-Cszhq9RV.mjs} +26 -4
  128. package/dist/naming-DKr4TJd7-Cszhq9RV.mjs.map +1 -0
  129. package/dist/operations.d.mts +1 -1
  130. package/dist/orm-client.d.mts +11 -11
  131. package/dist/orm-client.mjs +1 -1
  132. package/dist/{plan-DfLDIdep-CoshEetE.d.mts → plan-DfLDIdep-6R1mLkcW.d.mts} +4 -4
  133. package/dist/{plan-DfLDIdep-CoshEetE.d.mts.map → plan-DfLDIdep-6R1mLkcW.d.mts.map} +1 -1
  134. package/dist/plan-HWPzzUxh.d.mts +2 -0
  135. package/dist/{psl-infer-DmFgn-Ub.d.mts → psl-infer-CCAD6FWA.d.mts} +3 -3
  136. package/dist/{psl-infer-DmFgn-Ub.d.mts.map → psl-infer-CCAD6FWA.d.mts.map} +1 -1
  137. package/dist/{psl-infer-Z4wA2xpx.mjs → psl-infer-YhbKkybN.mjs} +2 -2
  138. package/dist/{psl-infer-Z4wA2xpx.mjs.map → psl-infer-YhbKkybN.mjs.map} +1 -1
  139. package/dist/{query-lane-context-DyDSQVS--ByM80KpV.d.mts → query-lane-context-DyDSQVS--CyCznt67.d.mts} +5 -5
  140. package/dist/{query-lane-context-DyDSQVS--ByM80KpV.d.mts.map → query-lane-context-DyDSQVS--CyCznt67.d.mts.map} +1 -1
  141. package/dist/query-lane-context-qfJzguc9.d.mts +1 -0
  142. package/dist/relational-core.d.mts +11 -11
  143. package/dist/relational-core__aggregate-descriptor-registry.d.mts +1 -1
  144. package/dist/relational-core__ast.d.mts +3 -3
  145. package/dist/relational-core__codec-descriptor-registry.d.mts +4 -4
  146. package/dist/relational-core__codec-descriptor-registry.mjs +1 -1
  147. package/dist/relational-core__contract-free.d.mts +3 -3
  148. package/dist/relational-core__expression.d.mts +1 -1
  149. package/dist/relational-core__middleware.d.mts +2 -2
  150. package/dist/relational-core__plan.d.mts +3 -3
  151. package/dist/relational-core__query-lane-context.d.mts +2 -2
  152. package/dist/relational-core__types.d.mts +2 -2
  153. package/dist/{resolve-storage-table-DFhpOR0X.d.mts → resolve-storage-table-Nyrgk4h8.d.mts} +3 -3
  154. package/dist/{resolve-storage-table-DFhpOR0X.d.mts.map → resolve-storage-table-Nyrgk4h8.d.mts.map} +1 -1
  155. package/dist/{runtime-VGVRdwBD.d.mts → runtime-CjXCGPS4.d.mts} +3 -3
  156. package/dist/{runtime-VGVRdwBD.d.mts.map → runtime-CjXCGPS4.d.mts.map} +1 -1
  157. package/dist/runtime.d.mts +3 -3
  158. package/dist/runtime.mjs +1 -1
  159. package/dist/{schema-differ-DpG_gnur-B7QINE8f.d.mts → schema-differ-DpG_gnur-DFAtGezx.d.mts} +5 -5
  160. package/dist/{schema-differ-DpG_gnur-B7QINE8f.d.mts.map → schema-differ-DpG_gnur-DFAtGezx.d.mts.map} +1 -1
  161. package/dist/schema-ir.d.mts +1 -1
  162. package/dist/schema-ir.mjs +1 -1
  163. package/dist/schema-ir__naming.d.mts +2 -2
  164. package/dist/schema-ir__naming.mjs +2 -2
  165. package/dist/schema-ir__types.d.mts +2 -2
  166. package/dist/schema-ir__types.mjs +1 -1
  167. package/dist/{schema-verify-C_PEdlAr-U3MX28Zu.mjs → schema-verify-C_PEdlAr-Dxxjm6EM.mjs} +2 -2
  168. package/dist/{schema-verify-C_PEdlAr-U3MX28Zu.mjs.map → schema-verify-C_PEdlAr-Dxxjm6EM.mjs.map} +1 -1
  169. package/dist/{serialized-index-D9YgVREe-KaLdoijn.d.mts → serialized-index-CrgG8ct1-DG3JpHc7.d.mts} +4 -4
  170. package/dist/serialized-index-CrgG8ct1-DG3JpHc7.d.mts.map +1 -0
  171. package/dist/{serialized-index-DMOkKJdP-JPETIsd7.mjs → serialized-index-nBTwanKy-_ddEK4tk.mjs} +5 -5
  172. package/dist/{serialized-index-DMOkKJdP-JPETIsd7.mjs.map → serialized-index-nBTwanKy-_ddEK4tk.mjs.map} +1 -1
  173. package/dist/{sql-contract-serializer-2oBWuxTe-US2zhmuA.mjs → sql-contract-serializer-2oBWuxTe-DKZTf2n8.mjs} +5 -5
  174. package/dist/{sql-contract-serializer-2oBWuxTe-US2zhmuA.mjs.map → sql-contract-serializer-2oBWuxTe-DKZTf2n8.mjs.map} +1 -1
  175. package/dist/{sql-execution-plan-qxvHnFcA-DdIwfSmv.d.mts → sql-execution-plan-qxvHnFcA-HjRSS3l9.d.mts} +2 -2
  176. package/dist/{sql-execution-plan-qxvHnFcA-DdIwfSmv.d.mts.map → sql-execution-plan-qxvHnFcA-HjRSS3l9.d.mts.map} +1 -1
  177. package/dist/{sql-index-ByAAE7K8-C1h4IS27.d.mts → sql-index-ByAAE7K8-DKj2V86p.d.mts} +2 -2
  178. package/dist/{sql-index-ByAAE7K8-C1h4IS27.d.mts.map → sql-index-ByAAE7K8-DKj2V86p.d.mts.map} +1 -1
  179. package/dist/{sql-storage-CySVsLrY-e9C5Gszx.d.mts → sql-storage-8LqxeLAY-DH4DdUXx.d.mts} +4 -4
  180. package/dist/{sql-storage-CySVsLrY-e9C5Gszx.d.mts.map → sql-storage-8LqxeLAY-DH4DdUXx.d.mts.map} +1 -1
  181. package/dist/{storage-table-BLcRrDzz-D4JOM8FC.d.mts → storage-table-DSeWszOL-CI-cItEK.d.mts} +6 -44
  182. package/dist/storage-table-DSeWszOL-CI-cItEK.d.mts.map +1 -0
  183. package/dist/{storage-table-D8o37IKw-bbcikEu-.mjs → storage-table-ZzbR-xzQ-BRoTQE_2.mjs} +4 -4
  184. package/dist/{storage-table-D8o37IKw-bbcikEu-.mjs.map → storage-table-ZzbR-xzQ-BRoTQE_2.mjs.map} +1 -1
  185. package/dist/{types-CRlrNF8_-xtE1f_Ya.mjs → types-4YenawkP-CwaaZSid.mjs} +3 -3
  186. package/dist/{types-CRlrNF8_-xtE1f_Ya.mjs.map → types-4YenawkP-CwaaZSid.mjs.map} +1 -1
  187. package/dist/types-4u1EPYY6.d.mts +1 -0
  188. package/dist/{types-C89S13jo-CGy-V60b.d.mts → types-BDUG29Df-LE85dIXP.d.mts} +7 -6
  189. package/dist/types-BDUG29Df-LE85dIXP.d.mts.map +1 -0
  190. package/dist/{types-CLN9Y3BH-B9xrXW2L.d.mts → types-CLN9Y3BH-BHUrV7MD.d.mts} +10 -10
  191. package/dist/{types-CLN9Y3BH-B9xrXW2L.d.mts.map → types-CLN9Y3BH-BHUrV7MD.d.mts.map} +1 -1
  192. package/dist/{types-DYXr7yN6.mjs → types-CUsJrvEl.mjs} +2 -2
  193. package/dist/{types-DYXr7yN6.mjs.map → types-CUsJrvEl.mjs.map} +1 -1
  194. package/dist/types-Dwcw0F8X.d.mts +1 -0
  195. package/dist/{types-IqZMLrFC-Sr3TZmGu.d.mts → types-IqZMLrFC-Dk3bHKmk.d.mts} +9 -9
  196. package/dist/{types-IqZMLrFC-Sr3TZmGu.d.mts.map → types-IqZMLrFC-Dk3bHKmk.d.mts.map} +1 -1
  197. package/dist/{types-D6ST3Gkf.d.mts → types-UcHa2cTe.d.mts} +7 -6
  198. package/dist/types-UcHa2cTe.d.mts.map +1 -0
  199. package/dist/{types-H7xjfrKl-CHqi_h5i.d.mts → types-YStFFkKs-D9UAmnON.d.mts} +3 -3
  200. package/dist/{types-H7xjfrKl-CHqi_h5i.d.mts.map → types-YStFFkKs-D9UAmnON.d.mts.map} +1 -1
  201. package/dist/{types-ZzeQKmYD-D1hXGIgd.d.mts → types-ZzeQKmYD-kI_QWHEx.d.mts} +2 -2
  202. package/dist/{types-ZzeQKmYD-D1hXGIgd.d.mts.map → types-ZzeQKmYD-kI_QWHEx.d.mts.map} +1 -1
  203. package/dist/{validators-DQHTuehE.d.mts → validators-Belo8QqM.d.mts} +3 -3
  204. package/dist/{validators-DQHTuehE.d.mts.map → validators-Belo8QqM.d.mts.map} +1 -1
  205. package/dist/{validators-Bvxcp487.mjs → validators-CrWD6bSP.mjs} +0 -0
  206. package/dist/{validators-Bvxcp487.mjs.map → validators-CrWD6bSP.mjs.map} +1 -1
  207. package/package.json +19 -18
  208. package/dist/contract-builder-BFN7WSed.mjs.map +0 -1
  209. package/dist/contract-builder-Dqnem9IW.d.mts.map +0 -1
  210. package/dist/control-adapter-CTyZpWUT.d.mts +0 -1
  211. package/dist/derived-checks-CmJgg-N0-CugkINPW.mjs.map +0 -1
  212. package/dist/entity-kinds-DZzdcuU5.d.mts.map +0 -1
  213. package/dist/index-naming-BoGBcMmI-CoehgjMK.mjs.map +0 -1
  214. package/dist/interpreter-BDZ_Y5U--CMEJIQ40.mjs.map +0 -1
  215. package/dist/middleware-Pe2hkf2T.d.mts +0 -1
  216. package/dist/naming-BWkuWJJK-zuGIIJ49.mjs.map +0 -1
  217. package/dist/naming-BsvzQPOq-qOWmknyp.d.mts.map +0 -1
  218. package/dist/plan-DduVZV0X.d.mts +0 -2
  219. package/dist/query-lane-context-DojOMvih.d.mts +0 -1
  220. package/dist/serialized-index-D9YgVREe-KaLdoijn.d.mts.map +0 -1
  221. package/dist/storage-table-BLcRrDzz-D4JOM8FC.d.mts.map +0 -1
  222. package/dist/types-C0QjlN2G.d.mts +0 -1
  223. package/dist/types-C89S13jo-CGy-V60b.d.mts.map +0 -1
  224. package/dist/types-D6ST3Gkf.d.mts.map +0 -1
  225. package/dist/types-yvAngq6d.d.mts +0 -1
@@ -1,5 +1,5 @@
1
- import { m as AnyQueryAst, p as AnyParamRef, ut as LoweredStatement } from "./types-ZzeQKmYD-D1hXGIgd.mjs";
2
- import "./ddl-types-CnLSuwXa-Dsz9N7Wm.mjs";
1
+ import { m as AnyQueryAst, p as AnyParamRef, ut as LoweredStatement } from "./types-ZzeQKmYD-kI_QWHEx.mjs";
2
+ import "./ddl-types-CnLSuwXa-Bv46yIe9.mjs";
3
3
  import { ContractMarkerRecord, JsonValue } from "@prisma/orm-framework/contract/types";
4
4
  import { CodecCallContext, CodecDescriptorImpl, CodecImpl, CodecInstanceContext } from "@prisma/orm-framework/components/codec";
5
5
  import { StandardSchemaV1 } from "@standard-schema/spec";
@@ -280,4 +280,4 @@ declare function compact<T extends Record<string, unknown>>(o: T): T;
280
280
  declare function collectOrderedParamRefs(ast: AnyQueryAst): ReadonlyArray<AnyParamRef>;
281
281
  //#endregion
282
282
  export { sqlTextDecode as $, SqlTimestampCodec as A, sqlCharEncode as B, SqlFloatDescriptor as C, SqlStatementStats as D, SqlQueryable as E, collectOrderedParamRefs as F, sqlFloatDescriptor as G, sqlFloatColumn as H, compact as I, sqlIntColumn as J, sqlFloatEncode as K, sqlCharColumn as L, SqlTransaction as M, SqlVarcharCodec as N, SqlTextCodec as O, SqlVarcharDescriptor as P, sqlTextColumn as Q, sqlCharDecode as R, SqlFloatCodec as S, SqlIntDescriptor as T, sqlFloatDecode as U, sqlCharRenderOutputType as V, sqlFloatDecodeJson as W, sqlIntDescriptor as X, sqlIntDecode as Y, sqlIntEncode as Z, SqlConnection as _, LowererContext as a, sqlTimestampDescriptor as at, SqlExecuteRequest as b, PreparedStatementHandle as c, sqlTimestampRenderOutputType as ct, SQL_INT_CODEC_ID as d, sqlVarcharDescriptor as dt, sqlTextDescriptor as et, SQL_TEXT_CODEC_ID as f, sqlVarcharEncode as ft, SqlCharDescriptor as g, SqlCharCodec as h, Lowerer as i, sqlTimestampDecodeJson as it, SqlTimestampDescriptor as j, SqlTextDescriptor as k, SQL_CHAR_CODEC_ID as l, sqlVarcharColumn as lt, SQL_VARCHAR_CODEC_ID as m, AdapterProfile as n, sqlTimestampColumn as nt, MarkerReadResult as o, sqlTimestampEncode as ot, SQL_TIMESTAMP_CODEC_ID as p, sqlVarcharRenderOutputType as pt, sqlFloatEncodeJson as q, AdapterTarget as r, sqlTimestampDecode as rt, PreparedExecuteRequest as s, sqlTimestampEncodeJson as st, Adapter as t, sqlTextEncode as tt, SQL_FLOAT_CODEC_ID as u, sqlVarcharDecode as ut, SqlDriver as v, SqlIntCodec as w, SqlExplainResult as x, SqlDriverState as y, sqlCharDescriptor as z };
283
- //# sourceMappingURL=ast-Px7aAd_0.d.mts.map
283
+ //# sourceMappingURL=ast-DRbUiQ-9.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ast-Px7aAd_0.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/exports/ast.d.mts"],"mappings":";;;;;;;;;;;;;;;UAcU;EACR;EACA,IAAI;;UAEI;WACC;WACA;WACA,0BAA0B;;UAE3B,+BAA+B;WAC9B,yBAAyB;;UAE1B;WACC;;UAED,iBAAiB,MAAM;WACtB,MAAM,cAAc;;KAE1B;UACK,UAAU,yBAAyB;WAClC,QAAQ;EACjB,QAAQ,SAAS,WAAW;EAC5B,qBAAqB,QAAQ;EAC7B,SAAS;;UAED,sBAAsB;EAC9B,oBAAoB,QAAQ;;;;;;;EAO5B,WAAW;;;;;;;;;;;;;;;;;;;;;;;;EAwBX,QAAQ,mBAAmB;;UAEnB,uBAAuB;EAC/B,UAAU;EACV,YAAY;;UAEJ;EACR,MAAM,MAAM,yBAAyB,SAAS,oBAAoB,cAAc;EAChF,QAAQ,SAAS,oBAAoB,QAAQ;EAC7C,SAAS,SAAS,oBAAoB,QAAQ;;;;KAI3C;;;;;;;KAOA;WACM;WACA,QAAQ;;WAER;;WAEA;;UAED,eAAe,gBAAgB,gBAAgB;WAC9C;WACA,QAAQ;WACR,cAAc;;;;EAIvB,WAAW,WAAW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EAChD,WAAW,gBAAgB;EAC3B,WAAW,MAAM;;cAEL,6BAA6B,oBAAoB;WACpD;WACA;WACA;WACA,cAAc,iBAAiB;EACxC,iBAAiB,QAAQ;EACzB,QAAQ,SAAS,gBAAgB,KAAK,yBAAyB;;cAEnD,sBAAsB;cACtB,mBAAmB,SAAS,gEAAgE,WAAW,iBAAiB;cACxH,0BAA0B,iBAAiB,wDAAwD,MAAM;EACrH,OAAO,OAAO,MAAM,MAAM,mBAAqB,QAAQ;EACvD,OAAO,MAAM,MAAM,MAAM,mBAAqB,QAAQ;EACtD,WAAW,OAAO,OAAO;EACzB,WAAW,MAAM,YAAY;;cAEjB,+BAA+B,oBAAoB;WACtD;WACA;WACA;WACA,cAAc,iBAAiB;EACxC,iBAAiB,QAAQ;EACzB,QAAQ,SAAS,mBAAmB,KAAK,yBAAyB;;cAEtD,wBAAwB;cACxB,qBAAqB,SAAS,mEAAmE,WAAW,mBAAmB;;;iBAG5H,QAAQ,UAAU,yBAAyB,GAAG,IAAI;;;;;;;;;;;iBAWlD,wBAAwB,KAAK,cAAc,cAAc"}
@@ -0,0 +1,30 @@
1
+ import { n as CheckConstraintInput } from "./check-constraint-B7qGu6rc-HvQjjX82.mjs";
2
+ import { AuthoringWarningSink } from "@prisma/orm-framework/components/authoring";
3
+ //#region ../../../2-sql/1-core/contract/dist/authored-check-naming.d.mts
4
+ //#region src/authored-check-naming.d.ts
5
+ /**
6
+ * A check constraint as authored, before naming: `map` is an exact physical
7
+ * name (adopted verbatim); `name` is a wire-name prefix. Unlike an index,
8
+ * there is no derivable default — a check has no column tuple to name itself
9
+ * after — so exactly one of `name` or `map` is required.
10
+ */
11
+ type AuthoredCheckInput = {
12
+ readonly expression: string;
13
+ readonly map: string | undefined;
14
+ readonly name: string | undefined;
15
+ };
16
+ /**
17
+ * Lowers an authored check constraint into the name-identified entity
18
+ * `contract.json` persists: exact mode adopts `map` verbatim (no prefix, no
19
+ * hash) and warns, because a hand-authored body compared verbatim against
20
+ * Postgres's reprint would false-drift; wire mode appends the content-hash
21
+ * suffix to the authored prefix. There is no default prefix to fall back on
22
+ * — a check has no column tuple to derive one from, unlike an index — so an
23
+ * absent `name` is only valid alongside a present `map`. The cross-field
24
+ * guards are the shared enforcement backstop for both authoring surfaces
25
+ * (PSL pre-empts them with span-anchored diagnostics).
26
+ */
27
+ declare function lowerAuthoredCheck(tableName: string, authored: AuthoredCheckInput, warnings?: AuthoringWarningSink): CheckConstraintInput;
28
+ //#endregion
29
+ export { lowerAuthoredCheck as n, AuthoredCheckInput as t };
30
+ //# sourceMappingURL=authored-check-naming-BWBe-PVE.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authored-check-naming-BWBe-PVE.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/authored-check-naming.d.mts"],"mappings":";;;;;;;;;;KASK;WACM;WACA;WACA;;;;;;;;;;;;;iBAaM,mBAAmB,mBAAmB,UAAU,oBAAoB,WAAW,uBAAuB"}
@@ -0,0 +1,47 @@
1
+ import { t as contractError } from "./contract-errors-BCN6RVI5-5IHBF_lg.mjs";
2
+ import { i as computeCheckContentHash, n as assertWireNamePrefixLength } from "./naming-DKr4TJd7-Cszhq9RV.mjs";
3
+ import { t as exactNameBodyWarning } from "./index-naming-DREt6js7-CRH27yUv.mjs";
4
+ import { flushAuthoringWarnings } from "@prisma/orm-framework/components/authoring";
5
+ //#region ../../../2-sql/1-core/contract/dist/authored-check-naming.mjs
6
+ /**
7
+ * Lowers an authored check constraint into the name-identified entity
8
+ * `contract.json` persists: exact mode adopts `map` verbatim (no prefix, no
9
+ * hash) and warns, because a hand-authored body compared verbatim against
10
+ * Postgres's reprint would false-drift; wire mode appends the content-hash
11
+ * suffix to the authored prefix. There is no default prefix to fall back on
12
+ * — a check has no column tuple to derive one from, unlike an index — so an
13
+ * absent `name` is only valid alongside a present `map`. The cross-field
14
+ * guards are the shared enforcement backstop for both authoring surfaces
15
+ * (PSL pre-empts them with span-anchored diagnostics).
16
+ */
17
+ function lowerAuthoredCheck(tableName, authored, warnings) {
18
+ if (authored.map !== void 0 && authored.name !== void 0) throw contractError("CONTRACT.ARGUMENT_INVALID", `Check "${authored.map}" on table "${tableName}": map and name are mutually exclusive — map adopts an exact physical name, name is a wire prefix.`);
19
+ if (authored.expression.trim().length === 0) throw contractError("CONTRACT.ARGUMENT_INVALID", `Check on table "${tableName}": expression must not be empty — an empty predicate is not a constraint.`);
20
+ if (authored.map !== void 0) {
21
+ const warning = exactNameBodyWarning("check", authored.map);
22
+ if (warnings !== void 0) warnings.push(warning);
23
+ else flushAuthoringWarnings([warning]);
24
+ return {
25
+ naming: {
26
+ kind: "exact",
27
+ name: authored.map
28
+ },
29
+ expression: authored.expression
30
+ };
31
+ }
32
+ if (authored.name === void 0) throw contractError("CONTRACT.ARGUMENT_INVALID", `Check on table "${tableName}": a check constraint requires an explicit name (name:) or exact physical name (map:) — unlike an index there is no column tuple to derive a default name from.`);
33
+ const prefix = authored.name;
34
+ assertWireNamePrefixLength(prefix, "check prefix");
35
+ return {
36
+ naming: {
37
+ kind: "wire",
38
+ prefix,
39
+ hash: computeCheckContentHash(authored.expression)
40
+ },
41
+ expression: authored.expression
42
+ };
43
+ }
44
+ //#endregion
45
+ export { lowerAuthoredCheck as t };
46
+
47
+ //# sourceMappingURL=authored-check-naming-Hf9990DV.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authored-check-naming-Hf9990DV.mjs","names":[],"sources":["../../../../2-sql/1-core/contract/dist/authored-check-naming.mjs"],"sourcesContent":["import { t as contractError } from \"./contract-errors-BCN6RVI5.mjs\";\nimport { t as exactNameBodyWarning } from \"./index-naming-DREt6js7.mjs\";\nimport { flushAuthoringWarnings } from \"@internal/framework-components/authoring\";\nimport { assertWireNamePrefixLength, computeCheckContentHash } from \"@internal/sql-schema-ir/naming\";\n//#region src/authored-check-naming.ts\n/**\n* Lowers an authored check constraint into the name-identified entity\n* `contract.json` persists: exact mode adopts `map` verbatim (no prefix, no\n* hash) and warns, because a hand-authored body compared verbatim against\n* Postgres's reprint would false-drift; wire mode appends the content-hash\n* suffix to the authored prefix. There is no default prefix to fall back on\n* — a check has no column tuple to derive one from, unlike an index — so an\n* absent `name` is only valid alongside a present `map`. The cross-field\n* guards are the shared enforcement backstop for both authoring surfaces\n* (PSL pre-empts them with span-anchored diagnostics).\n*/\nfunction lowerAuthoredCheck(tableName, authored, warnings) {\n\tif (authored.map !== void 0 && authored.name !== void 0) throw contractError(\"CONTRACT.ARGUMENT_INVALID\", `Check \"${authored.map}\" on table \"${tableName}\": map and name are mutually exclusive — map adopts an exact physical name, name is a wire prefix.`);\n\tif (authored.expression.trim().length === 0) throw contractError(\"CONTRACT.ARGUMENT_INVALID\", `Check on table \"${tableName}\": expression must not be empty — an empty predicate is not a constraint.`);\n\tif (authored.map !== void 0) {\n\t\tconst warning = exactNameBodyWarning(\"check\", authored.map);\n\t\tif (warnings !== void 0) warnings.push(warning);\n\t\telse flushAuthoringWarnings([warning]);\n\t\treturn {\n\t\t\tnaming: {\n\t\t\t\tkind: \"exact\",\n\t\t\t\tname: authored.map\n\t\t\t},\n\t\t\texpression: authored.expression\n\t\t};\n\t}\n\tif (authored.name === void 0) throw contractError(\"CONTRACT.ARGUMENT_INVALID\", `Check on table \"${tableName}\": a check constraint requires an explicit name (name:) or exact physical name (map:) — unlike an index there is no column tuple to derive a default name from.`);\n\tconst prefix = authored.name;\n\tassertWireNamePrefixLength(prefix, \"check prefix\");\n\treturn {\n\t\tnaming: {\n\t\t\tkind: \"wire\",\n\t\t\tprefix,\n\t\t\thash: computeCheckContentHash(authored.expression)\n\t\t},\n\t\texpression: authored.expression\n\t};\n}\n//#endregion\nexport { lowerAuthoredCheck };\n\n//# sourceMappingURL=authored-check-naming.mjs.map"],"mappings":";;;;;;;;;;;;;;;;AAgBA,SAAS,mBAAmB,WAAW,UAAU,UAAU;CAC1D,IAAI,SAAS,QAAQ,KAAK,KAAK,SAAS,SAAS,KAAK,GAAG,MAAM,cAAc,6BAA6B,UAAU,SAAS,IAAI,cAAc,UAAU,mGAAmG;CAC5P,IAAI,SAAS,WAAW,KAAK,CAAC,CAAC,WAAW,GAAG,MAAM,cAAc,6BAA6B,mBAAmB,UAAU,0EAA0E;CACrM,IAAI,SAAS,QAAQ,KAAK,GAAG;EAC5B,MAAM,UAAU,qBAAqB,SAAS,SAAS,GAAG;EAC1D,IAAI,aAAa,KAAK,GAAG,SAAS,KAAK,OAAO;OACzC,uBAAuB,CAAC,OAAO,CAAC;EACrC,OAAO;GACN,QAAQ;IACP,MAAM;IACN,MAAM,SAAS;GAChB;GACA,YAAY,SAAS;EACtB;CACD;CACA,IAAI,SAAS,SAAS,KAAK,GAAG,MAAM,cAAc,6BAA6B,mBAAmB,UAAU,gKAAgK;CAC5Q,MAAM,SAAS,SAAS;CACxB,2BAA2B,QAAQ,cAAc;CACjD,OAAO;EACN,QAAQ;GACP,MAAM;GACN;GACA,MAAM,wBAAwB,SAAS,UAAU;EAClD;EACA,YAAY,SAAS;CACtB;AACD"}
@@ -1,4 +1,4 @@
1
- import { a as enumType } from "./contract-builder-BFN7WSed.mjs";
1
+ import { o as enumType } from "./contract-builder-vdfvmuiO.mjs";
2
2
  import { resolveEnumCodecId } from "@prisma/orm-framework/components/authoring";
3
3
  import { blindCast } from "@prisma/orm-framework/utils/casts";
4
4
  //#region ../../../2-sql/9-family/dist/authoring-type-constructors-Blqoa2Ua.mjs
@@ -313,4 +313,4 @@ const sqlFamilyAuthoringTypes = { sql: { String: {
313
313
  //#endregion
314
314
  export { sqlFamilyPslBlockDescriptors as i, sqlFamilyAuthoringTypes as n, sqlFamilyEntityTypes as r, sqlFamilyAuthoringFieldPresets as t };
315
315
 
316
- //# sourceMappingURL=authoring-type-constructors-Blqoa2Ua-OP7GsSm3.mjs.map
316
+ //# sourceMappingURL=authoring-type-constructors-Blqoa2Ua-CvHn00xx.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"authoring-type-constructors-Blqoa2Ua-OP7GsSm3.mjs","names":[],"sources":["../../../../2-sql/9-family/dist/authoring-type-constructors-Blqoa2Ua.mjs"],"sourcesContent":["import { resolveEnumCodecId } from \"@internal/framework-components/authoring\";\nimport { enumType } from \"@internal/sql-contract-ts/contract-builder\";\nimport { blindCast } from \"@internal/utils/casts\";\nconst sqlFamilyEntityTypes = { enum: {\n\tkind: \"entity\",\n\tdiscriminator: \"enum\",\n\toutput: { factory: (block, ctx) => {\n\t\tconst sourceId = ctx.sourceId ?? \"unknown\";\n\t\tconst diagnostics = ctx.diagnostics;\n\t\tconst resolved = resolveEnumCodecId(block, ctx);\n\t\tif (resolved === void 0) return;\n\t\tconst { codecId, codecSpan } = resolved;\n\t\tconst nativeType = ctx.codecLookup?.targetTypesFor(codecId)?.[0];\n\t\tif (nativeType === void 0) {\n\t\t\tdiagnostics?.push({\n\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\tmessage: `enum \"${block.name}\" @@type references unknown codec \"${codecId}\"`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: codecSpan\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconst codec = ctx.codecLookup?.get(codecId);\n\t\tif (codec === void 0) {\n\t\t\tdiagnostics?.push({\n\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\tmessage: `enum \"${block.name}\" @@type codec \"${codecId}\" resolves in targetTypesFor but is absent from codecLookup.get`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: codecSpan\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconst seenValues = /* @__PURE__ */ new Set();\n\t\tconst members = [];\n\t\tlet memberError = false;\n\t\tfor (const [memberName, paramValue] of Object.entries(block.parameters)) {\n\t\t\tlet value;\n\t\t\tif (paramValue.kind === \"bare\") try {\n\t\t\t\tvalue = codec.decodeJson(memberName);\n\t\t\t} catch {\n\t\t\t\tdiagnostics?.push({\n\t\t\t\t\tcode: \"PSL_ENUM_BARE_MEMBER_NON_STRING_CODEC\",\n\t\t\t\t\tmessage: `enum \"${block.name}\" member \"${memberName}\" has no value and codec \"${codecId}\" does not accept a bare name as input`,\n\t\t\t\t\tsourceId,\n\t\t\t\t\tspan: paramValue.span\n\t\t\t\t});\n\t\t\t\tmemberError = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse if (paramValue.kind === \"value\") {\n\t\t\t\tlet jsonValue;\n\t\t\t\ttry {\n\t\t\t\t\tjsonValue = JSON.parse(paramValue.raw);\n\t\t\t\t} catch {\n\t\t\t\t\tdiagnostics?.push({\n\t\t\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\t\t\tmessage: `enum \"${block.name}\" member \"${memberName}\" value \"${paramValue.raw}\" is not valid JSON`,\n\t\t\t\t\t\tsourceId,\n\t\t\t\t\t\tspan: paramValue.span\n\t\t\t\t\t});\n\t\t\t\t\tmemberError = true;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tvalue = codec.decodeJson(blindCast(jsonValue));\n\t\t\t\t} catch (err) {\n\t\t\t\t\tconst reason = err instanceof Error ? err.message : String(err);\n\t\t\t\t\tdiagnostics?.push({\n\t\t\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\t\t\tmessage: `enum \"${block.name}\" member \"${memberName}\" was rejected by codec \"${codecId}\": ${reason}`,\n\t\t\t\t\t\tsourceId,\n\t\t\t\t\t\tspan: paramValue.span\n\t\t\t\t\t});\n\t\t\t\t\tmemberError = true;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t} else continue;\n\t\t\tconst valueKey = String(value);\n\t\t\tif (seenValues.has(valueKey)) {\n\t\t\t\tdiagnostics?.push({\n\t\t\t\t\tcode: \"PSL_ENUM_DUPLICATE_MEMBER_VALUE\",\n\t\t\t\t\tmessage: `enum \"${block.name}\": duplicate member value \"${valueKey}\"`,\n\t\t\t\t\tsourceId,\n\t\t\t\t\tspan: paramValue.span\n\t\t\t\t});\n\t\t\t\tmemberError = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tseenValues.add(valueKey);\n\t\t\tmembers.push({\n\t\t\t\tname: memberName,\n\t\t\t\tvalue\n\t\t\t});\n\t\t}\n\t\tif (memberError) return void 0;\n\t\tif (members.length === 0) {\n\t\t\tdiagnostics?.push({\n\t\t\t\tcode: \"PSL_ENUM_MISSING_TYPE\",\n\t\t\t\tmessage: `enum \"${block.name}\" must have at least one member`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: block.span\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\treturn enumType(block.name, {\n\t\t\tcodecId,\n\t\t\tnativeType\n\t\t}, ...members.map((m) => ({\n\t\t\tname: m.name,\n\t\t\tvalue: m.value\n\t\t})));\n\t} }\n} };\nconst sqlFamilyPslBlockDescriptors = { enum: {\n\tkind: \"pslBlock\",\n\tkeyword: \"enum\",\n\tdiscriminator: \"enum\",\n\tname: { required: true },\n\tparameters: {},\n\tvariadicParameters: true\n} };\n//#endregion\n//#region src/core/authoring-field-presets.ts\n/**\n* Family-level SQL authoring field presets.\n*\n* Only presets whose codec IDs align with the ID generator metadata live here\n* (see `@internal/ids`). These presets are target-agnostic because the\n* generator metadata fixes their codec/native-type to `sql/char@1`\n* (`character`) regardless of target, and the PSL interpreter lets the\n* generator override the scalar descriptor.\n*\n* The `uuidString` / `id.uuidv4String` / `id.uuidv7String` presets store UUID\n* values as `character(36)` — portable across all SQL targets. For a native\n* Postgres `uuid` column use `uuidNative` / `id.uuidv4Native` /\n* `id.uuidv7Native` from `@internal/target-postgres`.\n*\n* Scalar presets that map to target-specific codecs (e.g. `text`, `int`,\n* `boolean`, `dateTime`) are contributed by the target pack (see\n* `postgresAuthoringFieldPresets` in `@internal/target-postgres`) so the\n* TS callback surface and the PSL scalar surface lower to byte-identical\n* contracts for the active target.\n*/\nconst CHARACTER_CODEC_ID = \"sql/char@1\";\nconst CHARACTER_NATIVE_TYPE = \"character\";\nconst nanoidOptionsArgument = {\n\tkind: \"object\",\n\toptional: true,\n\tproperties: { size: {\n\t\tkind: \"number\",\n\t\toptional: true,\n\t\tinteger: true,\n\t\tminimum: 2,\n\t\tmaximum: 255\n\t} }\n};\nconst sqlFamilyAuthoringFieldPresets = {\n\tuuidString: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\ttypeParams: { length: 36 }\n\t\t}\n\t},\n\tulid: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\ttypeParams: { length: 26 }\n\t\t}\n\t},\n\tnanoid: {\n\t\tkind: \"fieldPreset\",\n\t\targs: [nanoidOptionsArgument],\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\ttypeParams: { length: {\n\t\t\t\tkind: \"arg\",\n\t\t\t\tindex: 0,\n\t\t\t\tpath: [\"size\"],\n\t\t\t\tdefault: 21\n\t\t\t} }\n\t\t}\n\t},\n\tcuid2: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\ttypeParams: { length: 24 }\n\t\t}\n\t},\n\tksuid: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\ttypeParams: { length: 27 }\n\t\t}\n\t},\n\tid: {\n\t\tuuidv4String: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\t\ttypeParams: { length: 36 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"uuidv4\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tuuidv7String: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\t\ttypeParams: { length: 36 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"uuidv7\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tulid: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\t\ttypeParams: { length: 26 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"ulid\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tnanoid: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\targs: [nanoidOptionsArgument],\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\t\ttypeParams: { length: {\n\t\t\t\t\tkind: \"arg\",\n\t\t\t\t\tindex: 0,\n\t\t\t\t\tpath: [\"size\"],\n\t\t\t\t\tdefault: 21\n\t\t\t\t} },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"nanoid\",\n\t\t\t\t\tparams: { size: {\n\t\t\t\t\t\tkind: \"arg\",\n\t\t\t\t\t\tindex: 0,\n\t\t\t\t\t\tpath: [\"size\"]\n\t\t\t\t\t} }\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tcuid2: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\t\ttypeParams: { length: 24 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"cuid2\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tksuid: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\t\ttypeParams: { length: 27 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"ksuid\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t}\n\t}\n};\n//#endregion\n//#region src/core/authoring-type-constructors.ts\nconst sqlFamilyAuthoringTypes = { sql: { String: {\n\tkind: \"typeConstructor\",\n\targs: [{\n\t\tkind: \"number\",\n\t\tname: \"length\",\n\t\tinteger: true,\n\t\tminimum: 1,\n\t\tmaximum: 10485760\n\t}],\n\toutput: {\n\t\tcodecId: \"sql/varchar@1\",\n\t\tnativeType: \"character varying\",\n\t\ttypeParams: { length: {\n\t\t\tkind: \"arg\",\n\t\t\tindex: 0\n\t\t} }\n\t}\n} } };\n//#endregion\nexport { sqlFamilyPslBlockDescriptors as i, sqlFamilyAuthoringFieldPresets as n, sqlFamilyEntityTypes as r, sqlFamilyAuthoringTypes as t };\n\n//# sourceMappingURL=authoring-type-constructors-Blqoa2Ua.mjs.map"],"mappings":";;;;AAGA,MAAM,uBAAuB,EAAE,MAAM;CACpC,MAAM;CACN,eAAe;CACf,QAAQ,EAAE,UAAU,OAAO,QAAQ;EAClC,MAAM,WAAW,IAAI,YAAY;EAC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KACJ,QAAQ,EAAE,MAAM;MACf,MAAM;MACN,OAAO;MACP,MAAM,CAAC,MAAM;KACd,EAAE;IACH,EAAE;IACF,IAAI;GACL;EACD;EACA,OAAO;GACN,MAAM;GACN,QAAQ;IACP,SAAS;IACT,YAAY;IACZ,YAAY,EAAE,QAAQ,GAAG;IACzB,mBAAmB,EAAE,UAAU;KAC9B,MAAM;KACN,IAAI;IACL,EAAE;IACF,IAAI;GACL;EACD;EACA,OAAO;GACN,MAAM;GACN,QAAQ;IACP,SAAS;IACT,YAAY;IACZ,YAAY,EAAE,QAAQ,GAAG;IACzB,mBAAmB,EAAE,UAAU;KAC9B,MAAM;KACN,IAAI;IACL,EAAE;IACF,IAAI;GACL;EACD;CACD;AACD;AAGA,MAAM,0BAA0B,EAAE,KAAK,EAAE,QAAQ;CAChD,MAAM;CACN,MAAM,CAAC;EACN,MAAM;EACN,MAAM;EACN,SAAS;EACT,SAAS;EACT,SAAS;CACV,CAAC;CACD,QAAQ;EACP,SAAS;EACT,YAAY;EACZ,YAAY,EAAE,QAAQ;GACrB,MAAM;GACN,OAAO;EACR,EAAE;CACH;AACD,EAAE,EAAE"}
1
+ {"version":3,"file":"authoring-type-constructors-Blqoa2Ua-CvHn00xx.mjs","names":[],"sources":["../../../../2-sql/9-family/dist/authoring-type-constructors-Blqoa2Ua.mjs"],"sourcesContent":["import { resolveEnumCodecId } from \"@internal/framework-components/authoring\";\nimport { enumType } from \"@internal/sql-contract-ts/contract-builder\";\nimport { blindCast } from \"@internal/utils/casts\";\nconst sqlFamilyEntityTypes = { enum: {\n\tkind: \"entity\",\n\tdiscriminator: \"enum\",\n\toutput: { factory: (block, ctx) => {\n\t\tconst sourceId = ctx.sourceId ?? \"unknown\";\n\t\tconst diagnostics = ctx.diagnostics;\n\t\tconst resolved = resolveEnumCodecId(block, ctx);\n\t\tif (resolved === void 0) return;\n\t\tconst { codecId, codecSpan } = resolved;\n\t\tconst nativeType = ctx.codecLookup?.targetTypesFor(codecId)?.[0];\n\t\tif (nativeType === void 0) {\n\t\t\tdiagnostics?.push({\n\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\tmessage: `enum \"${block.name}\" @@type references unknown codec \"${codecId}\"`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: codecSpan\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconst codec = ctx.codecLookup?.get(codecId);\n\t\tif (codec === void 0) {\n\t\t\tdiagnostics?.push({\n\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\tmessage: `enum \"${block.name}\" @@type codec \"${codecId}\" resolves in targetTypesFor but is absent from codecLookup.get`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: codecSpan\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconst seenValues = /* @__PURE__ */ new Set();\n\t\tconst members = [];\n\t\tlet memberError = false;\n\t\tfor (const [memberName, paramValue] of Object.entries(block.parameters)) {\n\t\t\tlet value;\n\t\t\tif (paramValue.kind === \"bare\") try {\n\t\t\t\tvalue = codec.decodeJson(memberName);\n\t\t\t} catch {\n\t\t\t\tdiagnostics?.push({\n\t\t\t\t\tcode: \"PSL_ENUM_BARE_MEMBER_NON_STRING_CODEC\",\n\t\t\t\t\tmessage: `enum \"${block.name}\" member \"${memberName}\" has no value and codec \"${codecId}\" does not accept a bare name as input`,\n\t\t\t\t\tsourceId,\n\t\t\t\t\tspan: paramValue.span\n\t\t\t\t});\n\t\t\t\tmemberError = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse if (paramValue.kind === \"value\") {\n\t\t\t\tlet jsonValue;\n\t\t\t\ttry {\n\t\t\t\t\tjsonValue = JSON.parse(paramValue.raw);\n\t\t\t\t} catch {\n\t\t\t\t\tdiagnostics?.push({\n\t\t\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\t\t\tmessage: `enum \"${block.name}\" member \"${memberName}\" value \"${paramValue.raw}\" is not valid JSON`,\n\t\t\t\t\t\tsourceId,\n\t\t\t\t\t\tspan: paramValue.span\n\t\t\t\t\t});\n\t\t\t\t\tmemberError = true;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tvalue = codec.decodeJson(blindCast(jsonValue));\n\t\t\t\t} catch (err) {\n\t\t\t\t\tconst reason = err instanceof Error ? err.message : String(err);\n\t\t\t\t\tdiagnostics?.push({\n\t\t\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\t\t\tmessage: `enum \"${block.name}\" member \"${memberName}\" was rejected by codec \"${codecId}\": ${reason}`,\n\t\t\t\t\t\tsourceId,\n\t\t\t\t\t\tspan: paramValue.span\n\t\t\t\t\t});\n\t\t\t\t\tmemberError = true;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t} else continue;\n\t\t\tconst valueKey = String(value);\n\t\t\tif (seenValues.has(valueKey)) {\n\t\t\t\tdiagnostics?.push({\n\t\t\t\t\tcode: \"PSL_ENUM_DUPLICATE_MEMBER_VALUE\",\n\t\t\t\t\tmessage: `enum \"${block.name}\": duplicate member value \"${valueKey}\"`,\n\t\t\t\t\tsourceId,\n\t\t\t\t\tspan: paramValue.span\n\t\t\t\t});\n\t\t\t\tmemberError = true;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tseenValues.add(valueKey);\n\t\t\tmembers.push({\n\t\t\t\tname: memberName,\n\t\t\t\tvalue\n\t\t\t});\n\t\t}\n\t\tif (memberError) return void 0;\n\t\tif (members.length === 0) {\n\t\t\tdiagnostics?.push({\n\t\t\t\tcode: \"PSL_ENUM_MISSING_TYPE\",\n\t\t\t\tmessage: `enum \"${block.name}\" must have at least one member`,\n\t\t\t\tsourceId,\n\t\t\t\tspan: block.span\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\treturn enumType(block.name, {\n\t\t\tcodecId,\n\t\t\tnativeType\n\t\t}, ...members.map((m) => ({\n\t\t\tname: m.name,\n\t\t\tvalue: m.value\n\t\t})));\n\t} }\n} };\nconst sqlFamilyPslBlockDescriptors = { enum: {\n\tkind: \"pslBlock\",\n\tkeyword: \"enum\",\n\tdiscriminator: \"enum\",\n\tname: { required: true },\n\tparameters: {},\n\tvariadicParameters: true\n} };\n//#endregion\n//#region src/core/authoring-field-presets.ts\n/**\n* Family-level SQL authoring field presets.\n*\n* Only presets whose codec IDs align with the ID generator metadata live here\n* (see `@internal/ids`). These presets are target-agnostic because the\n* generator metadata fixes their codec/native-type to `sql/char@1`\n* (`character`) regardless of target, and the PSL interpreter lets the\n* generator override the scalar descriptor.\n*\n* The `uuidString` / `id.uuidv4String` / `id.uuidv7String` presets store UUID\n* values as `character(36)` — portable across all SQL targets. For a native\n* Postgres `uuid` column use `uuidNative` / `id.uuidv4Native` /\n* `id.uuidv7Native` from `@internal/target-postgres`.\n*\n* Scalar presets that map to target-specific codecs (e.g. `text`, `int`,\n* `boolean`, `dateTime`) are contributed by the target pack (see\n* `postgresAuthoringFieldPresets` in `@internal/target-postgres`) so the\n* TS callback surface and the PSL scalar surface lower to byte-identical\n* contracts for the active target.\n*/\nconst CHARACTER_CODEC_ID = \"sql/char@1\";\nconst CHARACTER_NATIVE_TYPE = \"character\";\nconst nanoidOptionsArgument = {\n\tkind: \"object\",\n\toptional: true,\n\tproperties: { size: {\n\t\tkind: \"number\",\n\t\toptional: true,\n\t\tinteger: true,\n\t\tminimum: 2,\n\t\tmaximum: 255\n\t} }\n};\nconst sqlFamilyAuthoringFieldPresets = {\n\tuuidString: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\ttypeParams: { length: 36 }\n\t\t}\n\t},\n\tulid: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\ttypeParams: { length: 26 }\n\t\t}\n\t},\n\tnanoid: {\n\t\tkind: \"fieldPreset\",\n\t\targs: [nanoidOptionsArgument],\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\ttypeParams: { length: {\n\t\t\t\tkind: \"arg\",\n\t\t\t\tindex: 0,\n\t\t\t\tpath: [\"size\"],\n\t\t\t\tdefault: 21\n\t\t\t} }\n\t\t}\n\t},\n\tcuid2: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\ttypeParams: { length: 24 }\n\t\t}\n\t},\n\tksuid: {\n\t\tkind: \"fieldPreset\",\n\t\toutput: {\n\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\ttypeParams: { length: 27 }\n\t\t}\n\t},\n\tid: {\n\t\tuuidv4String: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\t\ttypeParams: { length: 36 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"uuidv4\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tuuidv7String: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\t\ttypeParams: { length: 36 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"uuidv7\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tulid: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\t\ttypeParams: { length: 26 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"ulid\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tnanoid: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\targs: [nanoidOptionsArgument],\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\t\ttypeParams: { length: {\n\t\t\t\t\tkind: \"arg\",\n\t\t\t\t\tindex: 0,\n\t\t\t\t\tpath: [\"size\"],\n\t\t\t\t\tdefault: 21\n\t\t\t\t} },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"nanoid\",\n\t\t\t\t\tparams: { size: {\n\t\t\t\t\t\tkind: \"arg\",\n\t\t\t\t\t\tindex: 0,\n\t\t\t\t\t\tpath: [\"size\"]\n\t\t\t\t\t} }\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tcuid2: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\t\ttypeParams: { length: 24 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"cuid2\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t},\n\t\tksuid: {\n\t\t\tkind: \"fieldPreset\",\n\t\t\toutput: {\n\t\t\t\tcodecId: CHARACTER_CODEC_ID,\n\t\t\t\tnativeType: CHARACTER_NATIVE_TYPE,\n\t\t\t\ttypeParams: { length: 27 },\n\t\t\t\texecutionDefaults: { onCreate: {\n\t\t\t\t\tkind: \"generator\",\n\t\t\t\t\tid: \"ksuid\"\n\t\t\t\t} },\n\t\t\t\tid: true\n\t\t\t}\n\t\t}\n\t}\n};\n//#endregion\n//#region src/core/authoring-type-constructors.ts\nconst sqlFamilyAuthoringTypes = { sql: { String: {\n\tkind: \"typeConstructor\",\n\targs: [{\n\t\tkind: \"number\",\n\t\tname: \"length\",\n\t\tinteger: true,\n\t\tminimum: 1,\n\t\tmaximum: 10485760\n\t}],\n\toutput: {\n\t\tcodecId: \"sql/varchar@1\",\n\t\tnativeType: \"character varying\",\n\t\ttypeParams: { length: {\n\t\t\tkind: \"arg\",\n\t\t\tindex: 0\n\t\t} }\n\t}\n} } };\n//#endregion\nexport { sqlFamilyPslBlockDescriptors as i, sqlFamilyAuthoringFieldPresets as n, sqlFamilyEntityTypes as r, sqlFamilyAuthoringTypes as t };\n\n//# sourceMappingURL=authoring-type-constructors-Blqoa2Ua.mjs.map"],"mappings":";;;;AAGA,MAAM,uBAAuB,EAAE,MAAM;CACpC,MAAM;CACN,eAAe;CACf,QAAQ,EAAE,UAAU,OAAO,QAAQ;EAClC,MAAM,WAAW,IAAI,YAAY;EACjC,MAAM,cAAc,IAAI;EACxB,MAAM,WAAW,mBAAmB,OAAO,GAAG;EAC9C,IAAI,aAAa,KAAK,GAAG;EACzB,MAAM,EAAE,SAAS,cAAc;EAC/B,MAAM,aAAa,IAAI,aAAa,eAAe,OAAO,CAAC,GAAG;EAC9D,IAAI,eAAe,KAAK,GAAG;GAC1B,aAAa,KAAK;IACjB,MAAM;IACN,SAAS,SAAS,MAAM,KAAK,qCAAqC,QAAQ;IAC1E;IACA,MAAM;GACP,CAAC;GACD;EACD;EACA,MAAM,QAAQ,IAAI,aAAa,IAAI,OAAO;EAC1C,IAAI,UAAU,KAAK,GAAG;GACrB,aAAa,KAAK;IACjB,MAAM;IACN,SAAS,SAAS,MAAM,KAAK,kBAAkB,QAAQ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M,0BAA0B,EAAE,KAAK,EAAE,QAAQ;CAChD,MAAM;CACN,MAAM,CAAC;EACN,MAAM;EACN,MAAM;EACN,SAAS;EACT,SAAS;EACT,SAAS;CACV,CAAC;CACD,QAAQ;EACP,SAAS;EACT,YAAY;EACZ,YAAY,EAAE,QAAQ;GACrB,MAAM;GACN,OAAO;EACR,EAAE;CACH;AACD,EAAE,EAAE"}
@@ -1,3 +1,3 @@
1
- import { a as Expression, u as ScopeField } from "./expression-E67TGFZA.mjs";
2
- import { c as GroupedQuery, d as QueryContext, f as ResolveRow, h as Subquery, i as DeleteQuery, l as InsertQuery, m as SelectQuery, o as Functions, p as Scope, r as Db, s as GatedMethod, t as AggregateFunctions, v as TableProxy, x as UpdateQuery } from "./db-C5jmOFPM-BRijskUO.mjs";
1
+ import { a as Expression, u as ScopeField } from "./expression-D7H1kyVG.mjs";
2
+ import { c as GroupedQuery, d as QueryContext, f as ResolveRow, h as Subquery, i as DeleteQuery, l as InsertQuery, m as SelectQuery, o as Functions, p as Scope, r as Db, s as GatedMethod, t as AggregateFunctions, v as TableProxy, x as UpdateQuery } from "./db-C5jmOFPM-BGm-QfKd.mjs";
3
3
  export type { AggregateFunctions, Db, DeleteQuery, Expression, Functions, GatedMethod, GroupedQuery, InsertQuery, QueryContext, ResolveRow, Scope, ScopeField, SelectQuery, Subquery, TableProxy, UpdateQuery };
@@ -1,12 +1,12 @@
1
- import { c as SqlStorage } from "./sql-storage-CySVsLrY-e9C5Gszx.mjs";
2
- import "./types-D6ST3Gkf.mjs";
3
- import { i as SqlOperationEntry } from "./index-DbDTloZS.mjs";
4
- import { s as AnyExpression } from "./types-ZzeQKmYD-D1hXGIgd.mjs";
5
- import "./ast-Px7aAd_0.mjs";
6
- import { a as Expression, o as RawCodecInferer, u as ScopeField } from "./expression-E67TGFZA.mjs";
7
- import { a as FieldProxy, d as QueryContext, o as Functions, p as Scope, r as Db, t as AggregateFunctions, y as TableProxyContract } from "./db-C5jmOFPM-BRijskUO.mjs";
8
- import { c as SqlAggregateDescriptorRegistry, r as ExecutionContext } from "./query-lane-context-DyDSQVS--ByM80KpV.mjs";
9
- import "./query-lane-context-DojOMvih.mjs";
1
+ import { c as SqlStorage } from "./sql-storage-8LqxeLAY-DH4DdUXx.mjs";
2
+ import "./types-UcHa2cTe.mjs";
3
+ import { i as SqlOperationEntry } from "./index-C5I8D-MB.mjs";
4
+ import { s as AnyExpression } from "./types-ZzeQKmYD-kI_QWHEx.mjs";
5
+ import "./ast-DRbUiQ-9.mjs";
6
+ import { a as Expression, o as RawCodecInferer, u as ScopeField } from "./expression-D7H1kyVG.mjs";
7
+ import { a as FieldProxy, d as QueryContext, o as Functions, p as Scope, r as Db, t as AggregateFunctions, y as TableProxyContract } from "./db-C5jmOFPM-BGm-QfKd.mjs";
8
+ import { c as SqlAggregateDescriptorRegistry, r as ExecutionContext } from "./query-lane-context-DyDSQVS--CyCznt67.mjs";
9
+ import "./query-lane-context-qfJzguc9.mjs";
10
10
  import { Contract } from "@prisma/orm-framework/contract/types";
11
11
  import { CodecRef } from "@prisma/orm-framework/components/codec";
12
12
  //#region ../../../2-sql/4-lanes/sql-builder/dist/runtime/index.d.mts
@@ -1,7 +1,7 @@
1
1
  import { C as LiteralExpr, D as OrExpr, F as SubqueryExpr, I as TableSource, L as UpdateAst, O as OrderByItem, P as SelectAst, S as ListExpression, T as NullCheckExpr, V as isAggregateFn, _ as InsertAst, c as DeleteAst, g as IdentifierRef, j as ProjectionItem, k as ParamRef, l as DerivedTableSource, n as AndExpr, o as ColumnRef, p as ExistsExpr, r as BinaryExpr, t as AggregateExpr, y as JoinAst } from "./types-CSP6WmWn-DVuxsZJW.mjs";
2
2
  import { t as collectOrderedParamRefs } from "./util-DQQgv2j1-D6INZaRG.mjs";
3
3
  import { a as toExpr, n as codecOf, r as createRawSql } from "./expression-CYVKobXp.mjs";
4
- import { n as codecRefForStorageColumn } from "./codec-descriptor-registry-DMUcCfyb.mjs";
4
+ import { n as codecRefForStorageColumn } from "./codec-descriptor-registry-N0dhtKaH.mjs";
5
5
  import { assertAnnotationsApplicable } from "@prisma/orm-framework/components/runtime";
6
6
  //#region ../../../2-sql/4-lanes/sql-builder/dist/runtime/index.mjs
7
7
  /**
@@ -1,3 +1,3 @@
1
- import { a as Expression, u as ScopeField } from "./expression-E67TGFZA.mjs";
2
- import { _ as TableNamesAcrossNamespaces, b as UnboundTables, c as GroupedQuery, d as QueryContext, f as ResolveRow, g as TableInAnyNamespace, h as Subquery, i as DeleteQuery, l as InsertQuery, m as SelectQuery, n as BooleanCodecType, o as Functions, p as Scope, r as Db, s as GatedMethod, t as AggregateFunctions, u as Namespace, v as TableProxy, x as UpdateQuery, y as TableProxyContract } from "./db-C5jmOFPM-BRijskUO.mjs";
1
+ import { a as Expression, u as ScopeField } from "./expression-D7H1kyVG.mjs";
2
+ import { _ as TableNamesAcrossNamespaces, b as UnboundTables, c as GroupedQuery, d as QueryContext, f as ResolveRow, g as TableInAnyNamespace, h as Subquery, i as DeleteQuery, l as InsertQuery, m as SelectQuery, n as BooleanCodecType, o as Functions, p as Scope, r as Db, s as GatedMethod, t as AggregateFunctions, u as Namespace, v as TableProxy, x as UpdateQuery, y as TableProxyContract } from "./db-C5jmOFPM-BGm-QfKd.mjs";
3
3
  export type { AggregateFunctions, BooleanCodecType, Db, DeleteQuery, Expression, Functions, GatedMethod, GroupedQuery, InsertQuery, Namespace, QueryContext, ResolveRow, Scope, ScopeField, SelectQuery, Subquery, TableInAnyNamespace, TableNamesAcrossNamespaces, TableProxy, TableProxyContract, UnboundTables, UpdateQuery };
@@ -0,0 +1,44 @@
1
+ import { t as SqlNode } from "./sql-node-kEz6YFZo-v2F7delx.mjs";
2
+ import { r as SqlObjectNaming } from "./naming-CV9j2pXl-KARaDReS.mjs";
3
+ //#region ../../../2-sql/1-core/contract/dist/check-constraint-B7qGu6rc.d.mts
4
+ //#region src/ir/check-constraint.d.ts
5
+ /**
6
+ * Construction input for {@link CheckConstraint}. Internal seam (built by
7
+ * authoring and by contract-JSON hydration, not by end users).
8
+ */
9
+ interface CheckConstraintInput {
10
+ /** The constraint's identity. Read back off a built node with `namingOf`. */
11
+ readonly naming: SqlObjectNaming;
12
+ /** Opaque SQL: the predicate body, without the surrounding `CHECK (…)`. */
13
+ readonly expression: string;
14
+ }
15
+ /**
16
+ * SQL Contract IR node for a table-level check constraint, name-identified:
17
+ * `name` is the full physical name; a present `prefix` marks the constraint as
18
+ * wire-named (`name` is `formatWireName(prefix, <8hex>)` over the expression's
19
+ * content hash), an absent `prefix` marks it exact (the name is adopted
20
+ * verbatim). This is the convention indexes and RLS policies already use — see
21
+ * ADR 234, "Content-addressed wire names for Postgres-normalized objects".
22
+ *
23
+ * The predicate is opaque: one SQL string, never parsed and never rendered
24
+ * from structured parts. A database reprints predicates in its own normalized
25
+ * form, so a wire-named check is compared by name — the hash already commits
26
+ * to the expression the contract declared.
27
+ */
28
+ declare class CheckConstraint extends SqlNode {
29
+ readonly name: string;
30
+ /** Derived from the wire naming arm — presence is the naming-mode discriminator in the flat JSON. */
31
+ readonly prefix?: string;
32
+ readonly expression: string;
33
+ constructor(input: CheckConstraintInput);
34
+ /**
35
+ * Normalizes either shape into an instance: an existing `CheckConstraint`
36
+ * passes through, canonical input is constructed. Callers that accept
37
+ * "instance or input" go through this, so the constructor keeps one
38
+ * canonical shape instead of widening to a union.
39
+ */
40
+ static from(value: CheckConstraint | CheckConstraintInput): CheckConstraint;
41
+ }
42
+ //#endregion
43
+ export { CheckConstraintInput as n, CheckConstraint as t };
44
+ //# sourceMappingURL=check-constraint-B7qGu6rc-HvQjjX82.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"check-constraint-B7qGu6rc-HvQjjX82.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/check-constraint-B7qGu6rc.d.mts"],"mappings":";;;;;;;;UAOU;;WAEC,QAAQ;;WAER;;;;;;;;;;;;;;;cAeG,wBAAwB;WAC3B;;WAEA;WACA;EACT,YAAY,OAAO;;;;;;;SAOZ,KAAK,OAAO,kBAAkB,uBAAuB"}
@@ -1,5 +1,5 @@
1
1
  import { t as resolveStorageTable } from "./resolve-storage-table-DZsfnzeW.mjs";
2
- import { l as isStorageTypeInstance } from "./types-DYXr7yN6.mjs";
2
+ import { l as isStorageTypeInstance } from "./types-CUsJrvEl.mjs";
3
3
  import { structuredError } from "@prisma/orm-framework/utils/structured-error";
4
4
  import { blindCast } from "@prisma/orm-framework/utils/casts";
5
5
  //#region ../../../2-sql/4-lanes/relational-core/dist/exports/codec-descriptor-registry.mjs
@@ -93,4 +93,4 @@ function buildCodecDescriptorRegistry(allDescriptors, storage) {
93
93
  //#endregion
94
94
  export { codecRefForStorageColumn as n, buildCodecDescriptorRegistry as t };
95
95
 
96
- //# sourceMappingURL=codec-descriptor-registry-DMUcCfyb.mjs.map
96
+ //# sourceMappingURL=codec-descriptor-registry-N0dhtKaH.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"codec-descriptor-registry-DMUcCfyb.mjs","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/exports/codec-descriptor-registry.mjs"],"sourcesContent":["import { structuredError } from \"@internal/utils/structured-error\";\nimport { resolveStorageTable } from \"@internal/sql-contract/resolve-storage-table\";\nimport { isStorageTypeInstance } from \"@internal/sql-contract/types\";\nimport { blindCast } from \"@internal/utils/casts\";\n//#region src/codec-ref-for-column.ts\n/**\n* Derive the canonical {@link CodecRef} for a `(table, column)` pair against a {@link SqlStorage}. This is the build-time path every column-bound `ParamRef` / `ProjectionItem` uses to stamp its `codec` slot before the AST is handed to the runtime — the runtime resolver then materialises a memoised {@link import('@internal/sql-relational-core/ast').Codec} for the same `CodecRef` via `forCodecRef`.\n*\n* Resolution rules over namespace `entries.table[table].columns[column]`:\n*\n* - `typeRef` column → `{codecId, typeParams}` from `storage.types[typeRef]` (multiple columns sharing the typeRef share one ref → one memoised codec).\n* - inline `typeParams` column → `{codecId, typeParams}` from the column itself.\n* - non-parameterized column → `{codecId}` with `typeParams` undefined.\n*\n* Returns `undefined` when the table or column is unknown, or when a `typeRef` column references a `storage.types` entry that does not exist.\n*\n* `namespaceId` leads the coordinate args and is always supplied: every\n* model/table sits in an explicit namespace, so the table is resolved strictly\n* within that namespace (see {@link resolveStorageTable}).\n*/\nfunction codecRefForStorageColumn(storage, namespaceId, tableName, columnName) {\n\tconst resolved = resolveStorageTable(storage, tableName, namespaceId);\n\tif (resolved === void 0) return void 0;\n\tconst columnDef = resolved.table.columns[columnName];\n\tif (!columnDef) return void 0;\n\tif (columnDef.typeRef !== void 0) {\n\t\tconst instance = storage.types?.[columnDef.typeRef];\n\t\tif (!instance) return void 0;\n\t\tif (isStorageTypeInstance(instance)) {\n\t\t\tconst instanceParams = instance.typeParams;\n\t\t\treturn instanceParams !== void 0 && Object.keys(instanceParams).length > 0 ? {\n\t\t\t\tcodecId: instance.codecId,\n\t\t\t\ttypeParams: instanceParams\n\t\t\t} : { codecId: instance.codecId };\n\t\t}\n\t\treturn;\n\t}\n\tif (columnDef.typeParams !== void 0 && Object.keys(columnDef.typeParams).length > 0) {\n\t\tconst typeParams = blindCast(columnDef.typeParams);\n\t\treturn columnDef.many ? {\n\t\t\tcodecId: columnDef.codecId,\n\t\t\ttypeParams,\n\t\t\tmany: true\n\t\t} : {\n\t\t\tcodecId: columnDef.codecId,\n\t\t\ttypeParams\n\t\t};\n\t}\n\treturn columnDef.many ? {\n\t\tcodecId: columnDef.codecId,\n\t\tmany: true\n\t} : { codecId: columnDef.codecId };\n}\n//#endregion\n//#region src/codec-descriptor-registry.ts\n/**\n* Build a {@link CodecDescriptorRegistry} from a flat descriptor list.\n*\n* Used by:\n* - Each codec-shipping package's `core/registry.ts` to expose a package-scoped registry as the public consumer surface (replacing raw descriptor-array exports). See ADR 208.\n* - The runtime's `buildExecutionContext` to construct the contract-bound combined registry from every contributor's `codecs:` slot.\n*\n* The descriptor map is heterogeneous in `P` — each codec id has its own params shape. The public {@link CodecDescriptorRegistry} interface widens to `CodecDescriptor<unknown>` and consumers narrow per codec id at the call site (the descriptor's `paramsSchema` validates JSON-sourced params before the factory ever sees them, so the runtime narrow is safe). The cast at registration goes through `unknown` because\n* `CodecDescriptor<P>` is invariant in `P` (the `factory` and `renderOutputType` slots use `P` contravariantly).\n*/\nfunction buildCodecDescriptorRegistry(allDescriptors, storage) {\n\tconst byId = /* @__PURE__ */ new Map();\n\tconst byTargetType = /* @__PURE__ */ new Map();\n\tfor (const descriptor of allDescriptors) {\n\t\tif (byId.has(descriptor.codecId)) throw structuredError(\"RUNTIME.DUPLICATE_CODEC\", `Duplicate codec descriptor id: '${descriptor.codecId}' — registered twice during registry construction. Each codecId must be contributed by exactly one component (target / adapter / extension pack).`, { meta: { codecId: descriptor.codecId } });\n\t\tconst widened = descriptor;\n\t\tbyId.set(descriptor.codecId, widened);\n\t\tfor (const targetType of descriptor.targetTypes) {\n\t\t\tconst list = byTargetType.get(targetType);\n\t\t\tif (list) list.push(widened);\n\t\t\telse byTargetType.set(targetType, [widened]);\n\t\t}\n\t}\n\treturn {\n\t\tdescriptorFor(codecId) {\n\t\t\treturn byId.get(codecId);\n\t\t},\n\t\tcodecRefForColumn(namespaceId, table, column) {\n\t\t\tif (!storage) return void 0;\n\t\t\treturn codecRefForStorageColumn(storage, namespaceId, table, column);\n\t\t},\n\t\t*values() {\n\t\t\tyield* byId.values();\n\t\t},\n\t\tbyTargetType(targetType) {\n\t\t\treturn byTargetType.get(targetType) ?? Object.freeze([]);\n\t\t}\n\t};\n}\n//#endregion\nexport { buildCodecDescriptorRegistry, codecRefForStorageColumn };\n\n//# sourceMappingURL=codec-descriptor-registry.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;AAoBA,SAAS,yBAAyB,SAAS,aAAa,WAAW,YAAY;CAC9E,MAAM,WAAW,oBAAoB,SAAS,WAAW,WAAW;CACpE,IAAI,aAAa,KAAK,GAAG,OAAO,KAAK;CACrC,MAAM,YAAY,SAAS,MAAM,QAAQ;CACzC,IAAI,CAAC,WAAW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B;EACA,kBAAkB,aAAa,OAAO,QAAQ;GAC7C,IAAI,CAAC,SAAS,OAAO,KAAK;GAC1B,OAAO,yBAAyB,SAAS,aAAa,OAAO,MAAM;EACpE;EACA,CAAC,SAAS;GACT,OAAO,KAAK,OAAO;EACpB;EACA,aAAa,YAAY;GACxB,OAAO,aAAa,IAAI,UAAU,KAAK,OAAO,OAAO,CAAC,CAAC;EACxD;CACD;AACD"}
1
+ {"version":3,"file":"codec-descriptor-registry-N0dhtKaH.mjs","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/exports/codec-descriptor-registry.mjs"],"sourcesContent":["import { structuredError } from \"@internal/utils/structured-error\";\nimport { resolveStorageTable } from \"@internal/sql-contract/resolve-storage-table\";\nimport { isStorageTypeInstance } from \"@internal/sql-contract/types\";\nimport { blindCast } from \"@internal/utils/casts\";\n//#region src/codec-ref-for-column.ts\n/**\n* Derive the canonical {@link CodecRef} for a `(table, column)` pair against a {@link SqlStorage}. This is the build-time path every column-bound `ParamRef` / `ProjectionItem` uses to stamp its `codec` slot before the AST is handed to the runtime — the runtime resolver then materialises a memoised {@link import('@internal/sql-relational-core/ast').Codec} for the same `CodecRef` via `forCodecRef`.\n*\n* Resolution rules over namespace `entries.table[table].columns[column]`:\n*\n* - `typeRef` column → `{codecId, typeParams}` from `storage.types[typeRef]` (multiple columns sharing the typeRef share one ref → one memoised codec).\n* - inline `typeParams` column → `{codecId, typeParams}` from the column itself.\n* - non-parameterized column → `{codecId}` with `typeParams` undefined.\n*\n* Returns `undefined` when the table or column is unknown, or when a `typeRef` column references a `storage.types` entry that does not exist.\n*\n* `namespaceId` leads the coordinate args and is always supplied: every\n* model/table sits in an explicit namespace, so the table is resolved strictly\n* within that namespace (see {@link resolveStorageTable}).\n*/\nfunction codecRefForStorageColumn(storage, namespaceId, tableName, columnName) {\n\tconst resolved = resolveStorageTable(storage, tableName, namespaceId);\n\tif (resolved === void 0) return void 0;\n\tconst columnDef = resolved.table.columns[columnName];\n\tif (!columnDef) return void 0;\n\tif (columnDef.typeRef !== void 0) {\n\t\tconst instance = storage.types?.[columnDef.typeRef];\n\t\tif (!instance) return void 0;\n\t\tif (isStorageTypeInstance(instance)) {\n\t\t\tconst instanceParams = instance.typeParams;\n\t\t\treturn instanceParams !== void 0 && Object.keys(instanceParams).length > 0 ? {\n\t\t\t\tcodecId: instance.codecId,\n\t\t\t\ttypeParams: instanceParams\n\t\t\t} : { codecId: instance.codecId };\n\t\t}\n\t\treturn;\n\t}\n\tif (columnDef.typeParams !== void 0 && Object.keys(columnDef.typeParams).length > 0) {\n\t\tconst typeParams = blindCast(columnDef.typeParams);\n\t\treturn columnDef.many ? {\n\t\t\tcodecId: columnDef.codecId,\n\t\t\ttypeParams,\n\t\t\tmany: true\n\t\t} : {\n\t\t\tcodecId: columnDef.codecId,\n\t\t\ttypeParams\n\t\t};\n\t}\n\treturn columnDef.many ? {\n\t\tcodecId: columnDef.codecId,\n\t\tmany: true\n\t} : { codecId: columnDef.codecId };\n}\n//#endregion\n//#region src/codec-descriptor-registry.ts\n/**\n* Build a {@link CodecDescriptorRegistry} from a flat descriptor list.\n*\n* Used by:\n* - Each codec-shipping package's `core/registry.ts` to expose a package-scoped registry as the public consumer surface (replacing raw descriptor-array exports). See ADR 208.\n* - The runtime's `buildExecutionContext` to construct the contract-bound combined registry from every contributor's `codecs:` slot.\n*\n* The descriptor map is heterogeneous in `P` — each codec id has its own params shape. The public {@link CodecDescriptorRegistry} interface widens to `CodecDescriptor<unknown>` and consumers narrow per codec id at the call site (the descriptor's `paramsSchema` validates JSON-sourced params before the factory ever sees them, so the runtime narrow is safe). The cast at registration goes through `unknown` because\n* `CodecDescriptor<P>` is invariant in `P` (the `factory` and `renderOutputType` slots use `P` contravariantly).\n*/\nfunction buildCodecDescriptorRegistry(allDescriptors, storage) {\n\tconst byId = /* @__PURE__ */ new Map();\n\tconst byTargetType = /* @__PURE__ */ new Map();\n\tfor (const descriptor of allDescriptors) {\n\t\tif (byId.has(descriptor.codecId)) throw structuredError(\"RUNTIME.DUPLICATE_CODEC\", `Duplicate codec descriptor id: '${descriptor.codecId}' — registered twice during registry construction. Each codecId must be contributed by exactly one component (target / adapter / extension pack).`, { meta: { codecId: descriptor.codecId } });\n\t\tconst widened = descriptor;\n\t\tbyId.set(descriptor.codecId, widened);\n\t\tfor (const targetType of descriptor.targetTypes) {\n\t\t\tconst list = byTargetType.get(targetType);\n\t\t\tif (list) list.push(widened);\n\t\t\telse byTargetType.set(targetType, [widened]);\n\t\t}\n\t}\n\treturn {\n\t\tdescriptorFor(codecId) {\n\t\t\treturn byId.get(codecId);\n\t\t},\n\t\tcodecRefForColumn(namespaceId, table, column) {\n\t\t\tif (!storage) return void 0;\n\t\t\treturn codecRefForStorageColumn(storage, namespaceId, table, column);\n\t\t},\n\t\t*values() {\n\t\t\tyield* byId.values();\n\t\t},\n\t\tbyTargetType(targetType) {\n\t\t\treturn byTargetType.get(targetType) ?? Object.freeze([]);\n\t\t}\n\t};\n}\n//#endregion\nexport { buildCodecDescriptorRegistry, codecRefForStorageColumn };\n\n//# sourceMappingURL=codec-descriptor-registry.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;;AAoBA,SAAS,yBAAyB,SAAS,aAAa,WAAW,YAAY;CAC9E,MAAM,WAAW,oBAAoB,SAAS,WAAW,WAAW;CACpE,IAAI,aAAa,KAAK,GAAG,OAAO,KAAK;CACrC,MAAM,YAAY,SAAS,MAAM,QAAQ;CACzC,IAAI,CAAC,WAAW,OAAO,KAAK;CAC5B,IAAI,UAAU,YAAY,KAAK,GAAG;EACjC,MAAM,WAAW,QAAQ,QAAQ,UAAU;EAC3C,IAAI,CAAC,UAAU,OAAO,KAAK;EAC3B,IAAI,sBAAsB,QAAQ,GAAG;GACpC,MAAM,iBAAiB,SAAS;GAChC,OAAO,mBAAmB,KAAK,KAAK,OAAO,KAAK,cAAc,CAAC,CAAC,SAAS,IAAI;IAC5E,SAAS,SAAS;IAClB,YAAY;GACb,IAAI,EAAE,S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contractError, t as applySqlSpecifierControlPolicy } from "./derived-checks-CmJgg-N0-CugkINPW.mjs";
1
+ import { n as buildSqlContractFromDefinition, r as contractError, t as applySqlSpecifierControlPolicy } from "./derived-checks-DFMRmiAu-8jmha26I.mjs";
2
2
  import { InternalError } from "@prisma/orm-framework/utils/internal-error";
3
3
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
4
4
  import { ok } from "@prisma/orm-framework/utils/result";
@@ -61,4 +61,4 @@ function typescriptContractFromPath(contractPath, output, options) {
61
61
  //#endregion
62
62
  export { typescriptContract as n, typescriptContractFromPath as r, emptyContract as t };
63
63
 
64
- //# sourceMappingURL=config-types-D7vjxNMf.mjs.map
64
+ //# sourceMappingURL=config-types-B6cQRwJw.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"config-types-D7vjxNMf.mjs","names":[],"sources":["../../../../2-sql/2-authoring/contract-ts/dist/config-types.mjs"],"sourcesContent":["import { n as buildSqlContractFromDefinition, r as contractError, t as applySqlSpecifierControlPolicy } from \"./derived-checks-CmJgg-N0.mjs\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { pathToFileURL } from \"node:url\";\nimport { ok } from \"@internal/utils/result\";\nimport { extname } from \"pathe\";\n//#region src/config-types.ts\n/**\n* Derives the emit output path from the TS contract input so artefacts land\n* colocated with the source (e.g. `prisma/contract.ts` →\n* `prisma/contract.json`). Mirrors the same default-derivation logic in\n* `@internal/sql-contract-psl/provider`.\n*/\nfunction defaultOutputFromContractPath(contractPath) {\n\tconst ext = extname(contractPath);\n\tif (ext.length === 0) return `${contractPath}.json`;\n\treturn `${contractPath.slice(0, -ext.length)}.json`;\n}\nfunction emptyContract(options) {\n\treturn {\n\t\tsource: {\n\t\t\tformat: \"typescript\",\n\t\t\tload: async () => {\n\t\t\t\treturn ok(applySqlSpecifierControlPolicy(buildSqlContractFromDefinition({\n\t\t\t\t\twarnings: void 0,\n\t\t\t\t\ttarget: options.target,\n\t\t\t\t\tcreateNamespace: options.createNamespace,\n\t\t\t\t\tmodels: []\n\t\t\t\t}), options.defaultControlPolicy, options.createNamespace));\n\t\t\t}\n\t\t},\n\t\t...ifDefined(\"output\", options.output)\n\t};\n}\nfunction typescriptContract(contract, output, options) {\n\treturn {\n\t\tsource: {\n\t\t\tformat: \"typescript\",\n\t\t\tload: async () => ok(options === void 0 ? contract : applySqlSpecifierControlPolicy(contract, options.defaultControlPolicy, options.createNamespace))\n\t\t},\n\t\t...ifDefined(\"output\", output)\n\t};\n}\nfunction typescriptContractFromPath(contractPath, output, options) {\n\treturn {\n\t\tsource: {\n\t\t\tformat: \"typescript\",\n\t\t\tinputs: [contractPath],\n\t\t\tload: async (context) => {\n\t\t\t\tconst [absolutePath] = context.resolvedInputs;\n\t\t\t\tif (absolutePath === void 0) throw new InternalError(\"typescriptContractFromPath: context.resolvedInputs is empty. The CLI config loader should populate it positional-matched with source.inputs.\");\n\t\t\t\tconst mod = await import(pathToFileURL(absolutePath).href);\n\t\t\t\tconst contract = mod.default ?? mod.contract;\n\t\t\t\tif (contract === void 0) throw contractError(\"CONTRACT.MODULE_EXPORT_MISSING\", `typescriptContractFromPath: module at \"${absolutePath}\" has no \"default\" or \"contract\" export.`, { meta: { path: absolutePath } });\n\t\t\t\treturn ok(options === void 0 ? contract : applySqlSpecifierControlPolicy(contract, options.defaultControlPolicy, options.createNamespace));\n\t\t\t}\n\t\t},\n\t\toutput: output ?? defaultOutputFromContractPath(contractPath)\n\t};\n}\n//#endregion\nexport { emptyContract, typescriptContract, typescriptContractFromPath };\n\n//# sourceMappingURL=config-types.mjs.map"],"mappings":";;;;;;;;;;;;;AAaA,SAAS,8BAA8B,cAAc;CACpD,MAAM,MAAM,QAAQ,YAAY;CAChC,IAAI,IAAI,WAAW,GAAG,OAAO,GAAG,aAAa;CAC7C,OAAO,GAAG,aAAa,MAAM,GAAG,CAAC,IAAI,MAAM,EAAE;AAC9C;AACA,SAAS,cAAc,SAAS;CAC/B,OAAO;EACN,QAAQ;GACP,QAAQ;GACR,MAAM,YAAY;IACjB,OAAO,GAAG,+BAA+B,+BAA+B;KACvE,UAAU,KAAK;KACf,QAAQ,QAAQ;KAChB,iBAAiB,QAAQ;KACzB,QAAQ,CAAC;IACV,CAAC,GAAG,QAAQ,sBAAsB,QAAQ,eAAe,CAAC;GAC3D;EACD;EACA,GAAG,UAAU,UAAU,QAAQ,MAAM;CACtC;AACD;AACA,SAAS,mBAAmB,UAAU,QAAQ,SAAS;CACtD,OAAO;EACN,QAAQ;GACP,QAAQ;GACR,MAAM,YAAY,GAAG,YAAY,KAAK,IAAI,WAAW,+BAA+B,UAAU,QAAQ,sBAAsB,QAAQ,eAAe,CAAC;EACrJ;EACA,GAAG,UAAU,UAAU,MAAM;CAC9B;AACD;AACA,SAAS,2BAA2B,cAAc,QAAQ,SAAS;CAClE,OAAO;EACN,QAAQ;GACP,QAAQ;GACR,QAAQ,CAAC,YAAY;GACrB,MAAM,OAAO,YAAY;IACxB,MAAM,CAAC,gBAAgB,QAAQ;IAC/B,IAAI,iBAAiB,KAAK,GAAG,MAAM,IAAI,cAAc,8IAA8I;IACnM,MAAM,MAAM,MAAM,OAAO,cAAc,YAAY,CAAC,CAAC;IACrD,MAAM,WAAW,IAAI,WAAW,IAAI;IACpC,IAAI,aAAa,KAAK,GAAG,MAAM,cAAc,kCAAkC,0CAA0C,aAAa,2CAA2C,EAAE,MAAM,EAAE,MAAM,aAAa,EAAE,CAAC;IACjN,OAAO,GAAG,YAAY,KAAK,IAAI,WAAW,+BAA+B,UAAU,QAAQ,sBAAsB,QAAQ,eAAe,CAAC;GAC1I;EACD;EACA,QAAQ,UAAU,8BAA8B,YAAY;CAC7D;AACD"}
1
+ {"version":3,"file":"config-types-B6cQRwJw.mjs","names":[],"sources":["../../../../2-sql/2-authoring/contract-ts/dist/config-types.mjs"],"sourcesContent":["import { n as buildSqlContractFromDefinition, r as contractError, t as applySqlSpecifierControlPolicy } from \"./derived-checks-DFMRmiAu.mjs\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { InternalError } from \"@internal/utils/internal-error\";\nimport { pathToFileURL } from \"node:url\";\nimport { ok } from \"@internal/utils/result\";\nimport { extname } from \"pathe\";\n//#region src/config-types.ts\n/**\n* Derives the emit output path from the TS contract input so artefacts land\n* colocated with the source (e.g. `prisma/contract.ts` →\n* `prisma/contract.json`). Mirrors the same default-derivation logic in\n* `@internal/sql-contract-psl/provider`.\n*/\nfunction defaultOutputFromContractPath(contractPath) {\n\tconst ext = extname(contractPath);\n\tif (ext.length === 0) return `${contractPath}.json`;\n\treturn `${contractPath.slice(0, -ext.length)}.json`;\n}\nfunction emptyContract(options) {\n\treturn {\n\t\tsource: {\n\t\t\tformat: \"typescript\",\n\t\t\tload: async () => {\n\t\t\t\treturn ok(applySqlSpecifierControlPolicy(buildSqlContractFromDefinition({\n\t\t\t\t\twarnings: void 0,\n\t\t\t\t\ttarget: options.target,\n\t\t\t\t\tcreateNamespace: options.createNamespace,\n\t\t\t\t\tmodels: []\n\t\t\t\t}), options.defaultControlPolicy, options.createNamespace));\n\t\t\t}\n\t\t},\n\t\t...ifDefined(\"output\", options.output)\n\t};\n}\nfunction typescriptContract(contract, output, options) {\n\treturn {\n\t\tsource: {\n\t\t\tformat: \"typescript\",\n\t\t\tload: async () => ok(options === void 0 ? contract : applySqlSpecifierControlPolicy(contract, options.defaultControlPolicy, options.createNamespace))\n\t\t},\n\t\t...ifDefined(\"output\", output)\n\t};\n}\nfunction typescriptContractFromPath(contractPath, output, options) {\n\treturn {\n\t\tsource: {\n\t\t\tformat: \"typescript\",\n\t\t\tinputs: [contractPath],\n\t\t\tload: async (context) => {\n\t\t\t\tconst [absolutePath] = context.resolvedInputs;\n\t\t\t\tif (absolutePath === void 0) throw new InternalError(\"typescriptContractFromPath: context.resolvedInputs is empty. The CLI config loader should populate it positional-matched with source.inputs.\");\n\t\t\t\tconst mod = await import(pathToFileURL(absolutePath).href);\n\t\t\t\tconst contract = mod.default ?? mod.contract;\n\t\t\t\tif (contract === void 0) throw contractError(\"CONTRACT.MODULE_EXPORT_MISSING\", `typescriptContractFromPath: module at \"${absolutePath}\" has no \"default\" or \"contract\" export.`, { meta: { path: absolutePath } });\n\t\t\t\treturn ok(options === void 0 ? contract : applySqlSpecifierControlPolicy(contract, options.defaultControlPolicy, options.createNamespace));\n\t\t\t}\n\t\t},\n\t\toutput: output ?? defaultOutputFromContractPath(contractPath)\n\t};\n}\n//#endregion\nexport { emptyContract, typescriptContract, typescriptContractFromPath };\n\n//# sourceMappingURL=config-types.mjs.map"],"mappings":";;;;;;;;;;;;;AAaA,SAAS,8BAA8B,cAAc;CACpD,MAAM,MAAM,QAAQ,YAAY;CAChC,IAAI,IAAI,WAAW,GAAG,OAAO,GAAG,aAAa;CAC7C,OAAO,GAAG,aAAa,MAAM,GAAG,CAAC,IAAI,MAAM,EAAE;AAC9C;AACA,SAAS,cAAc,SAAS;CAC/B,OAAO;EACN,QAAQ;GACP,QAAQ;GACR,MAAM,YAAY;IACjB,OAAO,GAAG,+BAA+B,+BAA+B;KACvE,UAAU,KAAK;KACf,QAAQ,QAAQ;KAChB,iBAAiB,QAAQ;KACzB,QAAQ,CAAC;IACV,CAAC,GAAG,QAAQ,sBAAsB,QAAQ,eAAe,CAAC;GAC3D;EACD;EACA,GAAG,UAAU,UAAU,QAAQ,MAAM;CACtC;AACD;AACA,SAAS,mBAAmB,UAAU,QAAQ,SAAS;CACtD,OAAO;EACN,QAAQ;GACP,QAAQ;GACR,MAAM,YAAY,GAAG,YAAY,KAAK,IAAI,WAAW,+BAA+B,UAAU,QAAQ,sBAAsB,QAAQ,eAAe,CAAC;EACrJ;EACA,GAAG,UAAU,UAAU,MAAM;CAC9B;AACD;AACA,SAAS,2BAA2B,cAAc,QAAQ,SAAS;CAClE,OAAO;EACN,QAAQ;GACP,QAAQ;GACR,QAAQ,CAAC,YAAY;GACrB,MAAM,OAAO,YAAY;IACxB,MAAM,CAAC,gBAAgB,QAAQ;IAC/B,IAAI,iBAAiB,KAAK,GAAG,MAAM,IAAI,cAAc,8IAA8I;IACnM,MAAM,MAAM,MAAM,OAAO,cAAc,YAAY,CAAC,CAAC;IACrD,MAAM,WAAW,IAAI,WAAW,IAAI;IACpC,IAAI,aAAa,KAAK,GAAG,MAAM,cAAc,kCAAkC,0CAA0C,aAAa,2CAA2C,EAAE,MAAM,EAAE,MAAM,aAAa,EAAE,CAAC;IACjN,OAAO,GAAG,YAAY,KAAK,IAAI,WAAW,+BAA+B,UAAU,QAAQ,sBAAsB,QAAQ,eAAe,CAAC;GAC1I;EACD;EACA,QAAQ,UAAU,8BAA8B,YAAY;CAC7D;AACD"}
@@ -1,6 +1,6 @@
1
- import { i as SqlNamespaceBase, s as SqlNamespaceInput } from "./sql-storage-CySVsLrY-e9C5Gszx.mjs";
2
- import "./types-D6ST3Gkf.mjs";
3
- import { t as SqlNamespaceFactory } from "./derived-checks-DPdD01O0-CE4vJKET.mjs";
1
+ import { i as SqlNamespaceBase, s as SqlNamespaceInput } from "./sql-storage-8LqxeLAY-DH4DdUXx.mjs";
2
+ import "./types-UcHa2cTe.mjs";
3
+ import { t as SqlNamespaceFactory } from "./derived-checks-DPdD01O0-DGqOFjs6.mjs";
4
4
  import { Contract, ControlPolicy } from "@prisma/orm-framework/contract/types";
5
5
  import { TargetPackRef } from "@prisma/orm-framework/components/components";
6
6
  import { ContractConfig, ContractConfig as ContractConfig$1 } from "@prisma/orm-framework/config/config-types";
@@ -25,4 +25,4 @@ declare function typescriptContract(contract: Contract, output?: string, options
25
25
  declare function typescriptContractFromPath(contractPath: string, output?: string, options?: TypeScriptContractSpecifierOptions): ContractConfig;
26
26
  //#endregion
27
27
  export { typescriptContractFromPath as i, emptyContract as n, typescriptContract as r, ContractConfig$1 as t };
28
- //# sourceMappingURL=config-types-ktywvY7L.d.mts.map
28
+ //# sourceMappingURL=config-types-D9fdKG3g.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config-types-ktywvY7L.d.mts","names":[],"sources":["../../../../2-sql/2-authoring/contract-ts/dist/config-types.d.mts"],"mappings":";;;;;;;;;;;;;UAWU;WACC,sBAAsB;WACtB,iBAAiB;;iBAEX,cAAc;WACpB;WACA,QAAQ;WACR,kBAAkB,OAAO,sBAAsB;WAC/C,uBAAuB;IAC9B;iBACa,mBAAmB,UAAU,UAAU,iBAAiB,UAAU,qCAAqC;iBACvG,2BAA2B,sBAAsB,iBAAiB,UAAU,qCAAqC"}
1
+ {"version":3,"file":"config-types-D9fdKG3g.d.mts","names":[],"sources":["../../../../2-sql/2-authoring/contract-ts/dist/config-types.d.mts"],"mappings":";;;;;;;;;;;;;UAWU;WACC,sBAAsB;WACtB,iBAAiB;;iBAEX,cAAc;WACpB;WACA,QAAQ;WACR,kBAAkB,OAAO,sBAAsB;WAC/C,uBAAuB;IAC9B;iBACa,mBAAmB,UAAU,UAAU,iBAAiB,UAAU,qCAAqC;iBACvG,2BAA2B,sBAAsB,iBAAiB,UAAU,qCAAqC"}
@@ -1,17 +1,17 @@
1
+ import { t as CheckKind } from "./naming-CV9j2pXl-KARaDReS.mjs";
1
2
  import { a as ReferentialAction } from "./foreign-key-C-iTPuRT-C9ip8zFx.mjs";
2
- import { t as CheckKind } from "./naming-BsvzQPOq-qOWmknyp.mjs";
3
- import { t as Index$1 } from "./sql-index-ByAAE7K8-C1h4IS27.mjs";
4
- import { c as SqlStorage, d as StorageTypeInstance, i as SqlNamespaceBase, s as SqlNamespaceInput } from "./sql-storage-CySVsLrY-e9C5Gszx.mjs";
5
- import { P as TypeMaps, o as ContractWithTypeMaps } from "./types-C89S13jo-CGy-V60b.mjs";
6
- import "./types-D6ST3Gkf.mjs";
7
- import "./derived-checks-DPdD01O0-CE4vJKET.mjs";
3
+ import { t as Index$1 } from "./sql-index-ByAAE7K8-DKj2V86p.mjs";
4
+ import { c as SqlStorage, d as StorageTypeInstance, i as SqlNamespaceBase, s as SqlNamespaceInput } from "./sql-storage-8LqxeLAY-DH4DdUXx.mjs";
5
+ import { P as TypeMaps, o as ContractWithTypeMaps } from "./types-BDUG29Df-LE85dIXP.mjs";
6
+ import "./types-UcHa2cTe.mjs";
7
+ import "./derived-checks-DPdD01O0-DGqOFjs6.mjs";
8
8
  import { r as PackEntityHandle } from "./entity-handle-lowering-hook-CIvRKBfa.mjs";
9
- import { n as AuthoredIndexMethod } from "./index-naming-BQXnMcXt.mjs";
9
+ import { n as AuthoredIndexMethod } from "./index-naming-Ct65z5Xk.mjs";
10
10
  import { i as IndexTypeRegistration } from "./index-types-DPVhsW0v-D-BikM4h.mjs";
11
11
  import "./index-types-CNhHgKHi.mjs";
12
+ import { AuthoringArgumentDescriptor, AuthoringFieldPresetDescriptor, AuthoringTypeConstructorDescriptor, AuthoringWarning } from "@prisma/orm-framework/components/authoring";
12
13
  import { StorageType } from "@prisma/orm-framework/components/ir";
13
14
  import { ColumnDefault, ColumnDefaultLiteralInputValue, Contract, ContractEnum, ContractRelation, ContractValueObject, ControlPolicy, ExecutionMutationDefaultPhases, ExecutionMutationDefaultValue, NamespaceId, StorageHashBase } from "@prisma/orm-framework/contract/types";
14
- import { AuthoringArgumentDescriptor, AuthoringFieldPresetDescriptor, AuthoringTypeConstructorDescriptor, AuthoringWarning } from "@prisma/orm-framework/components/authoring";
15
15
  import { BoundEnumType, CodecInput, CodecTypeMap, EntityHelpersFromNamespace, EnumMember, EnumTypeHandle, ExtractAuthoringNamespaceFromPack, ForeignKeyDefaultsState, MergeExtensionAuthoringNamespaces, bindEnumType, enumType, member } from "@prisma/orm-framework/contract-authoring";
16
16
  import { ExtensionPackRef, FamilyPackRef, TargetPackRef } from "@prisma/orm-framework/components/components";
17
17
  import { CodecLookup, ColumnTypeDescriptor } from "@prisma/orm-framework/components/codec";
@@ -314,6 +314,18 @@ type IndexConstraint<FieldNames extends readonly string[] = readonly string[], N
314
314
  readonly name?: Name;
315
315
  readonly map?: string;
316
316
  };
317
+ /**
318
+ * An authored check constraint, as returned by {@link check}: `map` adopts an
319
+ * exact physical name verbatim, `name` is a wire-name prefix. Unlike an
320
+ * index there is no column tuple to derive a default name from, so exactly
321
+ * one of `name` or `map` is required — enforced at lowering, same as PSL.
322
+ */
323
+ type AuthoredCheckConstraint = {
324
+ readonly kind: 'check';
325
+ readonly expression: string;
326
+ readonly name?: string;
327
+ readonly map?: string;
328
+ };
317
329
  type ForeignKeyConstraint<SourceFieldNames extends readonly string[] = readonly string[], TargetModelName extends string = string, TargetFieldNames extends readonly string[] = readonly string[], Name extends string | undefined = string | undefined> = {
318
330
  readonly kind: 'fk';
319
331
  readonly fields: SourceFieldNames;
@@ -362,6 +374,17 @@ declare function createConstraintsDsl<IndexTypes extends IndexTypeMap = Record<n
362
374
  };
363
375
  };
364
376
  type ConstraintsDsl = ReturnType<typeof createConstraintsDsl>;
377
+ /**
378
+ * Declares an authored CHECK constraint for a model's `.sql({ checks: [...] })`.
379
+ * Unlike `index()`, `check()` names no column tuple — the predicate is opaque
380
+ * SQL — so it needs no field-ref context and is a plain top-level function
381
+ * rather than a method on `constraints`.
382
+ */
383
+ declare function check(input: {
384
+ readonly expression: string;
385
+ readonly name?: string;
386
+ readonly map?: string;
387
+ }): AuthoredCheckConstraint;
365
388
  type ModelAttributesSpec = {
366
389
  readonly id?: IdConstraint;
367
390
  readonly uniques?: readonly UniqueConstraint[];
@@ -370,6 +393,7 @@ type SqlStageSpec = {
370
393
  readonly table?: string;
371
394
  readonly control?: ControlPolicy;
372
395
  readonly indexes?: readonly IndexConstraint[];
396
+ readonly checks?: readonly AuthoredCheckConstraint[];
373
397
  readonly foreignKeys?: readonly ForeignKeyConstraint[];
374
398
  };
375
399
  type FieldRefs<Fields extends Record<string, ScalarFieldBuilder>> = { readonly [K in keyof Fields]: ColumnRef<K & string>; };
@@ -1067,6 +1091,16 @@ type IndexNode = IndexNodeElements & AuthoredIndexMethod & {
1067
1091
  /** Wire-name prefix (`name:`) — lowers to `<name>_<8hex>`. */
1068
1092
  readonly name: string | undefined;
1069
1093
  };
1094
+ /**
1095
+ * A definition-tree check constraint: `map` adopts an exact physical name
1096
+ * verbatim, `name` is a wire-name prefix — exactly one is required (a check
1097
+ * has no column tuple to derive a default from, unlike an index).
1098
+ */
1099
+ type CheckNode = {
1100
+ readonly expression: string;
1101
+ readonly map: string | undefined;
1102
+ readonly name: string | undefined;
1103
+ };
1070
1104
  interface ForeignKeyNode {
1071
1105
  readonly columns: readonly string[];
1072
1106
  readonly references: {
@@ -1168,6 +1202,7 @@ interface ModelNode {
1168
1202
  readonly id?: PrimaryKeyNode;
1169
1203
  readonly uniques?: readonly UniqueConstraintNode[];
1170
1204
  readonly indexes?: readonly IndexNode[];
1205
+ readonly checks?: readonly CheckNode[];
1171
1206
  readonly foreignKeys?: readonly ForeignKeyNode[];
1172
1207
  readonly relations?: readonly RelationNode[];
1173
1208
  readonly control?: ControlPolicy;
@@ -1321,5 +1356,5 @@ declare function defineContract<const Family extends FamilyPackRef<string>, cons
1321
1356
  //#region src/contract-lowering.d.ts
1322
1357
  declare function buildContractDefinition(definition: ContractInput): ContractDefinition;
1323
1358
  //#endregion
1324
- export { field as A, bindEnumType as C, defineContract as D, buildSqlContractFromDefinition as E, model as M, rel as N, enumType as O, UniqueConstraintNode as S, buildContractDefinition as T, ModelNode as _, ComposedAuthoringHelpers as a, ScalarFieldBuilder as b, ContractModelBuilder as c, ExtractCodecTypesFromPack as d, FieldNode as f, ModelLike as g, MergeEnums as h, CodecTypeMap as i, member as j, extensionModel as k, EnumMember as l, IndexNode as m, BoundEnumType as n, ContractDefinition as o, ForeignKeyNode as p, CodecInput as r, ContractInput as s, AttachedEntities as t, EnumTypeHandle as u, PrimaryKeyNode as v, buildBoundContract as w, TargetFieldRef as x, RelationNode as y };
1325
- //# sourceMappingURL=contract-builder-Dqnem9IW.d.mts.map
1359
+ export { enumType as A, UniqueConstraintNode as C, buildSqlContractFromDefinition as D, buildContractDefinition as E, rel as F, field as M, member as N, check as O, model as P, TargetFieldRef as S, buildBoundContract as T, ModelLike as _, CodecTypeMap as a, RelationNode as b, ContractInput as c, EnumTypeHandle as d, ExtractCodecTypesFromPack as f, MergeEnums as g, IndexNode as h, CodecInput as i, extensionModel as j, defineContract as k, ContractModelBuilder as l, ForeignKeyNode as m, BoundEnumType as n, ComposedAuthoringHelpers as o, FieldNode as p, CheckNode as r, ContractDefinition as s, AttachedEntities as t, EnumMember as u, ModelNode as v, bindEnumType as w, ScalarFieldBuilder as x, PrimaryKeyNode as y };
1360
+ //# sourceMappingURL=contract-builder-CG_tGDbB.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract-builder-CG_tGDbB.d.mts","names":[],"sources":["../../../../2-sql/2-authoring/contract-ts/dist/contract-builder.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;KAaK;KACA;WACM,SAAS;WACT,UAAU;;KAEhB,+BAA+B,sBAAsB;KACrD,wBAAwB;WAClB,MAAM;;KAEZ,iBAAiB,mBAAmB,uBAAuB,sBAAsB,gBAAgB,6CAA6C,oCAAoC,4DAA4D,eAAe,6CAA6C,mBAAmB,6CAA6C;WACpW;WACA,aAAa;WACb,UAAU;WACV,UAAU;WACV,aAAa;WACb,UAAU;WACV,oBAAoB;WACpB,OAAO;WACP,mBAAmB;KACzB,eAAe;WACT,IAAI;;WAEJ;MACL,mBAAmB;WACd,QAAQ;;WAER;;KAEN;WACM;WACA,aAAa;WACb,UAAU;WACV;WACA;WACA,UAAU;WACV,oBAAoB;WACpB;WACA,mBAAmB;WACnB,KAAK;WACL,SAAS;;KAEf,qBAAqB,cAAc,uBAAuB,cAAc,iBAAiB,sBAAsB,oEAAoE,QAAQ,4CAA4C,eAAe;KACtP,yBAAyB,cAAc,uBAAuB,cAAc,iBAAiB,sBAAsB,8DAA8D,uCAAuC,uBAAuB,mBAAmB;KAClQ,qBAAqB,cAAc;WAC7B;KACN,qBAAqB;WACf,KAAK;IACZ,yBAAyB,yBAAyB;WAC3C,SAAS;IAChB;KACC,kBAAkB,cAAc,qBAAqB,aAAa,qBAAqB,UAAU,cAA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