@prisma/orm-family-sql 8.0.0-rc.21-dev.5 → 8.0.0-rc.21-dev.7

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 (337) hide show
  1. package/dist/{ast-DcphKbq9.d.mts → ast-1JRQY-dP.d.mts} +10 -4
  2. package/dist/ast-1JRQY-dP.d.mts.map +1 -0
  3. package/dist/{ast-e_02t9Nt.mjs → ast-C3itulLi.mjs} +7 -1
  4. package/dist/ast-C3itulLi.mjs.map +1 -0
  5. package/dist/{attribute-specs-Dcd2ZUrY.d.mts → attribute-specs-DDpSUaG9.d.mts} +3 -3
  6. package/dist/{attribute-specs-Dcd2ZUrY.d.mts.map → attribute-specs-DDpSUaG9.d.mts.map} +1 -1
  7. package/dist/{authored-check-naming-D-o196ry.d.mts → authored-check-naming-BiSwtSFu.d.mts} +2 -2
  8. package/dist/{authored-check-naming-D-o196ry.d.mts.map → authored-check-naming-BiSwtSFu.d.mts.map} +1 -1
  9. package/dist/{authored-check-naming-BHGJhjqn.mjs → authored-check-naming-DTKcH2_d.mjs} +3 -3
  10. package/dist/{authored-check-naming-BHGJhjqn.mjs.map → authored-check-naming-DTKcH2_d.mjs.map} +1 -1
  11. package/dist/{authoring-entity-types-CgKIgWq5-CZK1F9a_.d.mts → authoring-entity-types-CgKIgWq5-BqRjoPFF.d.mts} +2 -2
  12. package/dist/{authoring-entity-types-CgKIgWq5-CZK1F9a_.d.mts.map → authoring-entity-types-CgKIgWq5-BqRjoPFF.d.mts.map} +1 -1
  13. package/dist/builder.d.mts +3 -3
  14. package/dist/builder__runtime.d.mts +10 -10
  15. package/dist/builder__runtime.mjs +4 -4
  16. package/dist/builder__types.d.mts +5 -5
  17. package/dist/{check-constraint-B7qGu6rc-Bk2ezWXu.d.mts → check-constraint-B7qGu6rc-D5kVe9je.d.mts} +2 -2
  18. package/dist/{check-constraint-B7qGu6rc-Bk2ezWXu.d.mts.map → check-constraint-B7qGu6rc-D5kVe9je.d.mts.map} +1 -1
  19. package/dist/check-expressions-BDsLvzqN.mjs +108 -0
  20. package/dist/check-expressions-BDsLvzqN.mjs.map +1 -0
  21. package/dist/check-expressions-DuWjvG4h.d.mts +82 -0
  22. package/dist/check-expressions-DuWjvG4h.d.mts.map +1 -0
  23. package/dist/{codec-descriptor-registry-CiiFzMtb.mjs → codec-descriptor-registry-UiFDvDj4.mjs} +2 -2
  24. package/dist/{codec-descriptor-registry-CiiFzMtb.mjs.map → codec-descriptor-registry-UiFDvDj4.mjs.map} +1 -1
  25. package/dist/codec-json-type-BdWPJ6T5-BhmIyNyb.d.mts +13 -0
  26. package/dist/codec-json-type-BdWPJ6T5-BhmIyNyb.d.mts.map +1 -0
  27. package/dist/codec-json-type-DUWyBtJk-BVTavkH0.mjs +21 -0
  28. package/dist/codec-json-type-DUWyBtJk-BVTavkH0.mjs.map +1 -0
  29. package/dist/{collection-methods-D9CYfePl-DsDjYS6t.d.mts → collection-methods-D9CYfePl-BGvD1h9Z.d.mts} +4 -4
  30. package/dist/{collection-methods-D9CYfePl-DsDjYS6t.d.mts.map → collection-methods-D9CYfePl-BGvD1h9Z.d.mts.map} +1 -1
  31. package/dist/collection-methods-mo-2RjdX.d.mts +1 -0
  32. package/dist/{config-types-DkEeq_qq.mjs → config-types-BCXwEBZH.mjs} +2 -2
  33. package/dist/{config-types-DkEeq_qq.mjs.map → config-types-BCXwEBZH.mjs.map} +1 -1
  34. package/dist/{config-types-C-1mIiJO.d.mts → config-types-Ce1tAJ0B.d.mts} +4 -4
  35. package/dist/{config-types-C-1mIiJO.d.mts.map → config-types-Ce1tAJ0B.d.mts.map} +1 -1
  36. package/dist/{contract-builder-DMNe_jX9.mjs → contract-builder-D50r41BU.mjs} +114 -49
  37. package/dist/contract-builder-D50r41BU.mjs.map +1 -0
  38. package/dist/{contract-builder-B-Q9T1CO.d.mts → contract-builder-D6JuOGA6.d.mts} +58 -13
  39. package/dist/contract-builder-D6JuOGA6.d.mts.map +1 -0
  40. package/dist/contract-emitter.d.mts +1 -1
  41. package/dist/contract-emitter.mjs +1 -1
  42. package/dist/contract-prisma7__provider.d.mts +5 -3
  43. package/dist/contract-prisma7__provider.d.mts.map +1 -1
  44. package/dist/contract-prisma7__provider.mjs +62 -26
  45. package/dist/contract-prisma7__provider.mjs.map +1 -1
  46. package/dist/contract-psl.d.mts +4 -4
  47. package/dist/contract-psl.mjs +1 -1
  48. package/dist/contract-psl__attribute-specs.d.mts +1 -1
  49. package/dist/contract-psl__attribute-specs.mjs +1 -1
  50. package/dist/contract-psl__diagnostics.mjs +1 -1
  51. package/dist/contract-psl__provider.d.mts +2 -2
  52. package/dist/contract-psl__provider.mjs +3 -3
  53. package/dist/contract-psl__provider.mjs.map +1 -1
  54. package/dist/contract-ts.d.mts +4 -4
  55. package/dist/contract-ts.mjs +3 -3
  56. package/dist/contract-ts__config-types.d.mts +1 -1
  57. package/dist/contract-ts__config-types.mjs +1 -1
  58. package/dist/contract-ts__contract-builder.d.mts +3 -3
  59. package/dist/contract-ts__contract-builder.mjs +2 -2
  60. package/dist/{contract-view-DqpzeYeE.mjs → contract-view-CcD3axo0.mjs} +6 -2
  61. package/dist/contract-view-CcD3axo0.mjs.map +1 -0
  62. package/dist/{contract-view-DuB35or0.d.mts → contract-view-DkIZrHyj.d.mts} +3 -3
  63. package/dist/{contract-view-DuB35or0.d.mts.map → contract-view-DkIZrHyj.d.mts.map} +1 -1
  64. package/dist/contract.d.mts +21 -19
  65. package/dist/contract.mjs +18 -14
  66. package/dist/contract__authored-check-naming.d.mts +1 -1
  67. package/dist/contract__authored-check-naming.mjs +1 -1
  68. package/dist/contract__check-expressions.d.mts +2 -0
  69. package/dist/contract__check-expressions.mjs +2 -0
  70. package/dist/contract__codec-json-type.d.mts +2 -0
  71. package/dist/contract__codec-json-type.mjs +2 -0
  72. package/dist/contract__contract-view.d.mts +1 -1
  73. package/dist/contract__contract-view.mjs +1 -1
  74. package/dist/contract__data-type.d.mts +2 -2
  75. package/dist/contract__data-type.mjs +2 -2
  76. package/dist/contract__entity-kinds.d.mts +2 -2
  77. package/dist/contract__entity-kinds.mjs +2 -2
  78. package/dist/contract__factories.d.mts +1 -1
  79. package/dist/contract__factories.mjs +1 -1
  80. package/dist/contract__foreign-key-materialization.d.mts +1 -1
  81. package/dist/contract__foreign-key-materialization.mjs +2 -2
  82. package/dist/contract__index-naming.d.mts +1 -1
  83. package/dist/contract__index-naming.mjs +1 -1
  84. package/dist/contract__index-type-validation.d.mts +1 -1
  85. package/dist/contract__resolve-storage-table.d.mts +1 -1
  86. package/dist/contract__sql-expression.d.mts +1 -1
  87. package/dist/contract__types.d.mts +8 -8
  88. package/dist/contract__types.mjs +6 -4
  89. package/dist/contract__validators.d.mts +1 -1
  90. package/dist/contract__validators.mjs +2 -2
  91. package/dist/{control-B6W_VEZ9.d.mts → control-BE7gXqZF.d.mts} +18 -18
  92. package/dist/{control-B6W_VEZ9.d.mts.map → control-BE7gXqZF.d.mts.map} +1 -1
  93. package/dist/{control-D6wIw5Fi.mjs → control-DPCrkpMS.mjs} +16 -17
  94. package/dist/control-DPCrkpMS.mjs.map +1 -0
  95. package/dist/{control-adapter-SlQkTEwT.mjs → control-adapter-BetaUm2y.mjs} +2 -2
  96. package/dist/{control-adapter-SlQkTEwT.mjs.map → control-adapter-BetaUm2y.mjs.map} +1 -1
  97. package/dist/{control-adapter-BfyLe7rh-C_rrUuhb.d.mts → control-adapter-BfyLe7rh-CiGzw3dq.d.mts} +8 -8
  98. package/dist/{control-adapter-BfyLe7rh-C_rrUuhb.d.mts.map → control-adapter-BfyLe7rh-CiGzw3dq.d.mts.map} +1 -1
  99. package/dist/{control-adapter-CZ84jQ_z.d.mts → control-adapter-BlBhW0pc.d.mts} +4 -4
  100. package/dist/{control-adapter-CZ84jQ_z.d.mts.map → control-adapter-BlBhW0pc.d.mts.map} +1 -1
  101. package/dist/{data-type-DJIvKQHf.d.mts → data-type-B-Do6RMA.d.mts} +15 -7
  102. package/dist/data-type-B-Do6RMA.d.mts.map +1 -0
  103. package/dist/{data-type-BFSpaotu.mjs → data-type-BfA5F0Qf.mjs} +2 -2
  104. package/dist/{data-type-BFSpaotu.mjs.map → data-type-BfA5F0Qf.mjs.map} +1 -1
  105. package/dist/{db-D1d75IvM-D5CqruQz.d.mts → db-D1d75IvM-C1lqD6a2.d.mts} +13 -13
  106. package/dist/{db-D1d75IvM-D5CqruQz.d.mts.map → db-D1d75IvM-C1lqD6a2.d.mts.map} +1 -1
  107. package/dist/{ddl-types-BeA1kjV1-C4d5owxE.d.mts → ddl-types-BeA1kjV1-BUcW52Dx.d.mts} +3 -3
  108. package/dist/{ddl-types-BeA1kjV1-C4d5owxE.d.mts.map → ddl-types-BeA1kjV1-BUcW52Dx.d.mts.map} +1 -1
  109. package/dist/{default-mapping-CAOONlKQ-4m07nb-O.d.mts → default-mapping-CEISdj2g-B50Ag_F_.d.mts} +5 -11
  110. package/dist/default-mapping-CEISdj2g-B50Ag_F_.d.mts.map +1 -0
  111. package/dist/{derived-checks-D5HVRvqN-BJx1gwPA.mjs → derived-checks-D__agoFB-Boa1MHcA.mjs} +156 -40
  112. package/dist/derived-checks-D__agoFB-Boa1MHcA.mjs.map +1 -0
  113. package/dist/{derived-checks-DpPkO6Dt-9U9UJZOo.d.mts → derived-checks-DpPkO6Dt-CQIM17j5.d.mts} +3 -3
  114. package/dist/{derived-checks-DpPkO6Dt-9U9UJZOo.d.mts.map → derived-checks-DpPkO6Dt-CQIM17j5.d.mts.map} +1 -1
  115. package/dist/{diagnostics-C7jR1Jyf.mjs → diagnostics-CoM0OFuR.mjs} +40 -30
  116. package/dist/diagnostics-CoM0OFuR.mjs.map +1 -0
  117. package/dist/{diff-FNTO8gbI.d.mts → diff-BlX_rfVG.d.mts} +7 -7
  118. package/dist/{diff-FNTO8gbI.d.mts.map → diff-BlX_rfVG.d.mts.map} +1 -1
  119. package/dist/{dist-C8Y-PPuE.mjs → dist-BJjqJT_M.mjs} +5 -3
  120. package/dist/dist-BJjqJT_M.mjs.map +1 -0
  121. package/dist/{entity-kinds-JR5SAm5h-DOH6VUtL.mjs → entity-kinds-CgEwK0hH-D1NKoKE5.mjs} +25 -7
  122. package/dist/entity-kinds-CgEwK0hH-D1NKoKE5.mjs.map +1 -0
  123. package/dist/{entity-kinds-BPG2xCZV.d.mts → entity-kinds-oN1yn4vw.d.mts} +8 -7
  124. package/dist/{entity-kinds-BPG2xCZV.d.mts.map → entity-kinds-oN1yn4vw.d.mts.map} +1 -1
  125. package/dist/{exports-CGzFaakG-Dddm8emA.mjs → exports-CGzFaakG-4Aw50nT1.mjs} +3 -3
  126. package/dist/{exports-CGzFaakG-Dddm8emA.mjs.map → exports-CGzFaakG-4Aw50nT1.mjs.map} +1 -1
  127. package/dist/{expression-BWRsWR6O-BrUVz0V2.d.mts → expression-BWRsWR6O-HbWL9x9D.d.mts} +3 -3
  128. package/dist/{expression-BWRsWR6O-BrUVz0V2.d.mts.map → expression-BWRsWR6O-HbWL9x9D.d.mts.map} +1 -1
  129. package/dist/{expression-C3F6gxZH-DrYNeDbh.d.mts → expression-C3F6gxZH-EOb5cRCY.d.mts} +7 -7
  130. package/dist/{expression-C3F6gxZH-DrYNeDbh.d.mts.map → expression-C3F6gxZH-EOb5cRCY.d.mts.map} +1 -1
  131. package/dist/expression-OVCWlXHm.d.mts +2 -0
  132. package/dist/{expression-impl-DtbmFnnz-CUKzBisY.mjs → expression-impl-DtbmFnnz-Dal0IYDE.mjs} +2 -2
  133. package/dist/{expression-impl-DtbmFnnz-CUKzBisY.mjs.map → expression-impl-DtbmFnnz-Dal0IYDE.mjs.map} +1 -1
  134. package/dist/{factories-Crobuxwn.mjs → factories-B2hKDIzy.mjs} +3 -3
  135. package/dist/{factories-Crobuxwn.mjs.map → factories-B2hKDIzy.mjs.map} +1 -1
  136. package/dist/{factories-DbNP9qfs.d.mts → factories-DVgCG7DR.d.mts} +4 -4
  137. package/dist/{factories-DbNP9qfs.d.mts.map → factories-DVgCG7DR.d.mts.map} +1 -1
  138. package/dist/family.d.mts +16 -16
  139. package/dist/family.mjs +10 -10
  140. package/dist/family__control-adapter.d.mts +2 -2
  141. package/dist/family__control-adapter.mjs +1 -1
  142. package/dist/family__control.d.mts +4 -4
  143. package/dist/family__control.mjs +3 -3
  144. package/dist/family__diff.d.mts +1 -1
  145. package/dist/family__diff.mjs +1 -1
  146. package/dist/family__ir.d.mts +1 -1
  147. package/dist/family__ir.mjs +1 -1
  148. package/dist/family__migration.d.mts +1 -1
  149. package/dist/family__pack.d.mts +1 -1
  150. package/dist/family__pack.mjs +2 -2
  151. package/dist/family__psl-build.d.mts +3 -3
  152. package/dist/family__psl-build.mjs +2 -2
  153. package/dist/family__psl-infer.d.mts +1 -1
  154. package/dist/family__psl-infer.mjs +1 -1
  155. package/dist/family__runtime.d.mts +2 -2
  156. package/dist/family__runtime.mjs +1 -1
  157. package/dist/{foreign-key-materialization-48P2V8on.d.mts → foreign-key-materialization-C53nVQuD.d.mts} +4 -4
  158. package/dist/{foreign-key-materialization-48P2V8on.d.mts.map → foreign-key-materialization-C53nVQuD.d.mts.map} +1 -1
  159. package/dist/{foreign-key-materialization-BM59w_Xg.mjs → foreign-key-materialization-CCHAR789.mjs} +5 -5
  160. package/dist/{foreign-key-materialization-BM59w_Xg.mjs.map → foreign-key-materialization-CCHAR789.mjs.map} +1 -1
  161. package/dist/{functions-D7lN5-JU.mjs → functions-DO1k8KLB.mjs} +2 -2
  162. package/dist/{functions-D7lN5-JU.mjs.map → functions-DO1k8KLB.mjs.map} +1 -1
  163. package/dist/{functions-CQrsCHCj.d.mts → functions-PBSwFhni.d.mts} +6 -6
  164. package/dist/{functions-CQrsCHCj.d.mts.map → functions-PBSwFhni.d.mts.map} +1 -1
  165. package/dist/{generator-functions-Hy4pDDr9-AUCNpeg5.mjs → generator-functions-Hy4pDDr9-CMfJOBtv.mjs} +3 -3
  166. package/dist/{generator-functions-Hy4pDDr9-AUCNpeg5.mjs.map → generator-functions-Hy4pDDr9-CMfJOBtv.mjs.map} +1 -1
  167. package/dist/{index-0qfR8_db.d.mts → index-BAI1gH-I.d.mts} +21 -21
  168. package/dist/{index-0qfR8_db.d.mts.map → index-BAI1gH-I.d.mts.map} +1 -1
  169. package/dist/{index-Nqc3OHR_.d.mts → index-BWWwt5hB.d.mts} +3 -3
  170. package/dist/{index-Nqc3OHR_.d.mts.map → index-BWWwt5hB.d.mts.map} +1 -1
  171. package/dist/{index-equivalence-DswCiq5l-CGsyPP9B.mjs → index-equivalence-DswCiq5l-9GNm8oG9.mjs} +2 -2
  172. package/dist/{index-equivalence-DswCiq5l-CGsyPP9B.mjs.map → index-equivalence-DswCiq5l-9GNm8oG9.mjs.map} +1 -1
  173. package/dist/{index-naming-BOcJT1B3-mG8Fd6KN.mjs → index-naming-BOcJT1B3-D-49owHA.mjs} +2 -2
  174. package/dist/{index-naming-BOcJT1B3-mG8Fd6KN.mjs.map → index-naming-BOcJT1B3-D-49owHA.mjs.map} +1 -1
  175. package/dist/{index-naming-Cs6wwia3.d.mts → index-naming-DqjO4p5R.d.mts} +2 -2
  176. package/dist/{index-naming-Cs6wwia3.d.mts.map → index-naming-DqjO4p5R.d.mts.map} +1 -1
  177. package/dist/index-reference-D3p5ziNG.d.mts +1 -0
  178. package/dist/{index-reference-YHvh6wAL-BAhOS7RC.d.mts → index-reference-YHvh6wAL-BupQRpkE.d.mts} +4 -4
  179. package/dist/{index-reference-YHvh6wAL-BAhOS7RC.d.mts.map → index-reference-YHvh6wAL-BupQRpkE.d.mts.map} +1 -1
  180. package/dist/{index-type-validation-fGGwAHWc.d.mts → index-type-validation-BFJlwjWi.d.mts} +3 -3
  181. package/dist/{index-type-validation-fGGwAHWc.d.mts.map → index-type-validation-BFJlwjWi.d.mts.map} +1 -1
  182. package/dist/{interpreter-CS21wD1i-G0u1x8t_.mjs → interpreter-ChvVEijY-FeJngsog.mjs} +92 -45
  183. package/dist/interpreter-ChvVEijY-FeJngsog.mjs.map +1 -0
  184. package/dist/{ir-BvptQsFW.d.mts → ir-CZ5Ks7EA.d.mts} +4 -4
  185. package/dist/{ir-BvptQsFW.d.mts.map → ir-CZ5Ks7EA.d.mts.map} +1 -1
  186. package/dist/middleware-Dp3CD7yZ.d.mts +1 -0
  187. package/dist/{middleware-JfHt_Ax8-DKXbos9y.d.mts → middleware-JfHt_Ax8-rWWdDxnq.d.mts} +2 -2
  188. package/dist/{middleware-JfHt_Ax8-DKXbos9y.d.mts.map → middleware-JfHt_Ax8-rWWdDxnq.d.mts.map} +1 -1
  189. package/dist/{migration-qalbcIUs.d.mts → migration-B35kGD-7.d.mts} +4 -4
  190. package/dist/{migration-qalbcIUs.d.mts.map → migration-B35kGD-7.d.mts.map} +1 -1
  191. package/dist/{naming-BcD36g9T-Mfe_xGGL.d.mts → naming-CLfASFf7-HRjmKe43.d.mts} +9 -4
  192. package/dist/naming-CLfASFf7-HRjmKe43.d.mts.map +1 -0
  193. package/dist/{naming-bM5qm5PY-jOg3JFMb.mjs → naming-DEpT6Zad-C9PFkWt6.mjs} +5 -4
  194. package/dist/naming-DEpT6Zad-C9PFkWt6.mjs.map +1 -0
  195. package/dist/operations.d.mts +1 -1
  196. package/dist/orm-client.d.mts +22 -22
  197. package/dist/orm-client.mjs +7 -7
  198. package/dist/{pack-Cap3oVPy.d.mts → pack-DKM1hv1E.d.mts} +4 -4
  199. package/dist/{pack-Cap3oVPy.d.mts.map → pack-DKM1hv1E.d.mts.map} +1 -1
  200. package/dist/{plan-CMqVpPq6-Bllx5Zpk.d.mts → plan-CMqVpPq6-Aoza6Dp2.d.mts} +4 -4
  201. package/dist/{plan-CMqVpPq6-Bllx5Zpk.d.mts.map → plan-CMqVpPq6-Aoza6Dp2.d.mts.map} +1 -1
  202. package/dist/plan-DINEcqC1.d.mts +2 -0
  203. package/dist/psl-build-BA0Ndi1v.mjs +268 -0
  204. package/dist/psl-build-BA0Ndi1v.mjs.map +1 -0
  205. package/dist/{psl-build-RelubU2E.d.mts → psl-build-DCZaF5g4.d.mts} +47 -18
  206. package/dist/psl-build-DCZaF5g4.d.mts.map +1 -0
  207. package/dist/{psl-column-resolution-djGEITmJ-B5iMpe8H.d.mts → psl-column-resolution-djGEITmJ-C0LSpwl4.d.mts} +3 -3
  208. package/dist/{psl-column-resolution-djGEITmJ-B5iMpe8H.d.mts.map → psl-column-resolution-djGEITmJ-C0LSpwl4.d.mts.map} +1 -1
  209. package/dist/{psl-field-resolution-Bvhx79fP-CQqHf_L4.mjs → psl-field-resolution-BW2_FOb9-DxqR43fo.mjs} +68 -38
  210. package/dist/psl-field-resolution-BW2_FOb9-DxqR43fo.mjs.map +1 -0
  211. package/dist/{psl-infer--g4i84Go.mjs → psl-infer-C9kVS9ma.mjs} +2 -2
  212. package/dist/{psl-infer--g4i84Go.mjs.map → psl-infer-C9kVS9ma.mjs.map} +1 -1
  213. package/dist/{psl-infer-DzoxPZGd.d.mts → psl-infer-Cr9AeccU.d.mts} +4 -4
  214. package/dist/{psl-infer-DzoxPZGd.d.mts.map → psl-infer-Cr9AeccU.d.mts.map} +1 -1
  215. package/dist/query-lane-context-DL6bwl6k.d.mts +1 -0
  216. package/dist/{query-lane-context-DLSXDsDK-pEiQmuYy.d.mts → query-lane-context-DLSXDsDK-CGSahS15.d.mts} +8 -8
  217. package/dist/{query-lane-context-DLSXDsDK-pEiQmuYy.d.mts.map → query-lane-context-DLSXDsDK-CGSahS15.d.mts.map} +1 -1
  218. package/dist/relational-core.d.mts +12 -12
  219. package/dist/relational-core.mjs +2 -2
  220. package/dist/relational-core__aggregate-descriptor-registry.d.mts +1 -1
  221. package/dist/relational-core__ast.d.mts +3 -3
  222. package/dist/relational-core__ast.mjs +1 -1
  223. package/dist/relational-core__codec-descriptor-registry.d.mts +4 -4
  224. package/dist/relational-core__codec-descriptor-registry.mjs +1 -1
  225. package/dist/relational-core__collection-methods.d.mts +2 -2
  226. package/dist/relational-core__contract-free.d.mts +4 -4
  227. package/dist/relational-core__expression.d.mts +3 -3
  228. package/dist/relational-core__expression.mjs +1 -1
  229. package/dist/relational-core__functions.d.mts +1 -1
  230. package/dist/relational-core__functions.mjs +1 -1
  231. package/dist/relational-core__index-reference.d.mts +2 -2
  232. package/dist/relational-core__middleware.d.mts +2 -2
  233. package/dist/relational-core__plan.d.mts +3 -3
  234. package/dist/relational-core__query-lane-context.d.mts +2 -2
  235. package/dist/relational-core__types.d.mts +2 -2
  236. package/dist/{resolve-storage-table-DCqtmnSU.d.mts → resolve-storage-table-D1rXCcCk.d.mts} +3 -3
  237. package/dist/{resolve-storage-table-DCqtmnSU.d.mts.map → resolve-storage-table-D1rXCcCk.d.mts.map} +1 -1
  238. package/dist/{runtime-JKWb27L5.d.mts → runtime-CSDcwOEG.d.mts} +5 -4
  239. package/dist/{runtime-JKWb27L5.d.mts.map → runtime-CSDcwOEG.d.mts.map} +1 -1
  240. package/dist/{runtime-CCzfa1mY.mjs → runtime-DkUiQi00.mjs} +12 -4
  241. package/dist/runtime-DkUiQi00.mjs.map +1 -0
  242. package/dist/runtime.d.mts +4 -4
  243. package/dist/runtime.mjs +1 -1
  244. package/dist/runtime__internal__prepared-query.d.mts +1 -1
  245. package/dist/{schema-differ-DmP74bB8-tqHKiJ88.d.mts → schema-differ-DmP74bB8-BXkhxcPs.d.mts} +5 -5
  246. package/dist/{schema-differ-DmP74bB8-tqHKiJ88.d.mts.map → schema-differ-DmP74bB8-BXkhxcPs.d.mts.map} +1 -1
  247. package/dist/schema-ir.d.mts +1 -1
  248. package/dist/schema-ir.mjs +1 -1
  249. package/dist/schema-ir__naming.d.mts +2 -2
  250. package/dist/schema-ir__naming.mjs +2 -2
  251. package/dist/schema-ir__types.d.mts +2 -2
  252. package/dist/schema-ir__types.mjs +1 -1
  253. package/dist/{schema-verify-C3wbdviw-DMjIubOr.mjs → schema-verify-C3wbdviw-nQ4tG9N7.mjs} +4 -4
  254. package/dist/{schema-verify-C3wbdviw-DMjIubOr.mjs.map → schema-verify-C3wbdviw-nQ4tG9N7.mjs.map} +1 -1
  255. package/dist/{serialized-index-DjCCnXB1-DMA7BtO2.mjs → serialized-index-BefvjuZ0-Bbsja7If.mjs} +14 -27
  256. package/dist/serialized-index-BefvjuZ0-Bbsja7If.mjs.map +1 -0
  257. package/dist/{serialized-index-CrgG8ct1-DKVJ7TDX.d.mts → serialized-index-CrgG8ct1-Duy5-kFV.d.mts} +3 -3
  258. package/dist/{serialized-index-CrgG8ct1-DKVJ7TDX.d.mts.map → serialized-index-CrgG8ct1-Duy5-kFV.d.mts.map} +1 -1
  259. package/dist/{sql-contract-serializer-sMY3prTx-D2BfrNxs.mjs → sql-contract-serializer-sMY3prTx-CBHrlt9O.mjs} +4 -4
  260. package/dist/{sql-contract-serializer-sMY3prTx-D2BfrNxs.mjs.map → sql-contract-serializer-sMY3prTx-CBHrlt9O.mjs.map} +1 -1
  261. package/dist/{sql-data-type-D7M-YTTY-D2vRqDxn.mjs → sql-data-type-LVBldu1a-Bq203xWX.mjs} +13 -7
  262. package/dist/sql-data-type-LVBldu1a-Bq203xWX.mjs.map +1 -0
  263. package/dist/{sql-execution-plan-CN-FEwrR-CzRFoxKR.d.mts → sql-execution-plan-CN-FEwrR-BEJ0-g83.d.mts} +2 -2
  264. package/dist/{sql-execution-plan-CN-FEwrR-CzRFoxKR.d.mts.map → sql-execution-plan-CN-FEwrR-BEJ0-g83.d.mts.map} +1 -1
  265. package/dist/{sql-expression-B4BrhGPi.d.mts → sql-expression-1yO8GiBc.d.mts} +2 -2
  266. package/dist/{sql-expression-B4BrhGPi.d.mts.map → sql-expression-1yO8GiBc.d.mts.map} +1 -1
  267. package/dist/{sql-index-ByAAE7K8-Dqtn_vUL.d.mts → sql-index-ByAAE7K8-4TUFKGLK.d.mts} +2 -2
  268. package/dist/{sql-index-ByAAE7K8-Dqtn_vUL.d.mts.map → sql-index-ByAAE7K8-4TUFKGLK.d.mts.map} +1 -1
  269. package/dist/sql-node-D8P0akYY-RVytYXDZ.mjs +50 -0
  270. package/dist/sql-node-D8P0akYY-RVytYXDZ.mjs.map +1 -0
  271. package/dist/{sql-storage-DeCAh5Hi-CEM-m8cs.d.mts → sql-storage-B_AM6tU1-BOPQxXo7.d.mts} +6 -5
  272. package/dist/{sql-storage-DeCAh5Hi-CEM-m8cs.d.mts.map → sql-storage-B_AM6tU1-BOPQxXo7.d.mts.map} +1 -1
  273. package/dist/{storage-table-DDvN83mw-DkbBFmK9.mjs → storage-table-B_MrLtQX-eWx6BgGT.mjs} +7 -50
  274. package/dist/storage-table-B_MrLtQX-eWx6BgGT.mjs.map +1 -0
  275. package/dist/{storage-table-Bf1ZjnxO-pUj6pyP0.d.mts → storage-value-object-BcvIeUr8-DiiZNIrZ.d.mts} +23 -6
  276. package/dist/storage-value-object-BcvIeUr8-DiiZNIrZ.d.mts.map +1 -0
  277. package/dist/storage-value-set-uGUEBAMJ-hX-zFqN5.mjs +38 -0
  278. package/dist/storage-value-set-uGUEBAMJ-hX-zFqN5.mjs.map +1 -0
  279. package/dist/{transaction-state-DR3nKTmH-BIKF_fP6.d.mts → transaction-state-DR3nKTmH-C3wq6dCB.d.mts} +9 -9
  280. package/dist/{transaction-state-DR3nKTmH-BIKF_fP6.d.mts.map → transaction-state-DR3nKTmH-C3wq6dCB.d.mts.map} +1 -1
  281. package/dist/{types-DoyiTsjg-2YMhMJDA.mjs → types-1ZKE0deC-Dou4ugcz.mjs} +3 -3
  282. package/dist/{types-DoyiTsjg-2YMhMJDA.mjs.map → types-1ZKE0deC-Dou4ugcz.mjs.map} +1 -1
  283. package/dist/types-B-dwfOwQ.d.mts +1 -0
  284. package/dist/{types-CTdSkl0s.mjs → types-CISwoRED.mjs} +2 -2
  285. package/dist/types-CISwoRED.mjs.map +1 -0
  286. package/dist/{types-COXfSNOP-DcuULeD9.d.mts → types-COXfSNOP-D9vt9QDL.d.mts} +9 -9
  287. package/dist/{types-COXfSNOP-DcuULeD9.d.mts.map → types-COXfSNOP-D9vt9QDL.d.mts.map} +1 -1
  288. package/dist/{types-CkAd8SWm.d.mts → types-CXRxo_TK.d.mts} +7 -7
  289. package/dist/{types-CkAd8SWm.d.mts.map → types-CXRxo_TK.d.mts.map} +1 -1
  290. package/dist/types-DIoM5Ft3.d.mts +1 -0
  291. package/dist/{types-DfKvtJwS-CrpWTGBJ.d.mts → types-DNTLudNR-DiVulPhL.d.mts} +7 -7
  292. package/dist/{types-DfKvtJwS-CrpWTGBJ.d.mts.map → types-DNTLudNR-DiVulPhL.d.mts.map} +1 -1
  293. package/dist/{types-NgqqVAo5-Be_uYGQx.d.mts → types-NgqqVAo5-CJG02ILZ.d.mts} +10 -10
  294. package/dist/{types-NgqqVAo5-Be_uYGQx.d.mts.map → types-NgqqVAo5-CJG02ILZ.d.mts.map} +1 -1
  295. package/dist/{types-CuCxAQat-Dz8P4xyt.d.mts → types-fmtEmvj3-B0fQaVes.d.mts} +4 -4
  296. package/dist/{types-CuCxAQat-Dz8P4xyt.d.mts.map → types-fmtEmvj3-B0fQaVes.d.mts.map} +1 -1
  297. package/dist/{types-ijhejJhK-EdACW3bY.d.mts → types-ijhejJhK-BqfwP5Cc.d.mts} +2 -2
  298. package/dist/{types-ijhejJhK-EdACW3bY.d.mts.map → types-ijhejJhK-BqfwP5Cc.d.mts.map} +1 -1
  299. package/dist/{validators-FJs8HvFr.d.mts → validators-Dt-19ywK.d.mts} +4 -4
  300. package/dist/{validators-FJs8HvFr.d.mts.map → validators-Dt-19ywK.d.mts.map} +1 -1
  301. package/dist/{validators-BwA7ttZM.mjs → validators-qcQteqs2.mjs} +30 -31
  302. package/dist/validators-qcQteqs2.mjs.map +1 -0
  303. package/package.json +20 -18
  304. package/dist/ast-DcphKbq9.d.mts.map +0 -1
  305. package/dist/ast-e_02t9Nt.mjs.map +0 -1
  306. package/dist/collection-methods-FWiYjZ5j.d.mts +0 -1
  307. package/dist/contract-builder-B-Q9T1CO.d.mts.map +0 -1
  308. package/dist/contract-builder-DMNe_jX9.mjs.map +0 -1
  309. package/dist/contract-view-DqpzeYeE.mjs.map +0 -1
  310. package/dist/control-D6wIw5Fi.mjs.map +0 -1
  311. package/dist/data-type-DJIvKQHf.d.mts.map +0 -1
  312. package/dist/default-mapping-CAOONlKQ-4m07nb-O.d.mts.map +0 -1
  313. package/dist/derived-checks-D5HVRvqN-BJx1gwPA.mjs.map +0 -1
  314. package/dist/diagnostics-C7jR1Jyf.mjs.map +0 -1
  315. package/dist/dist-C8Y-PPuE.mjs.map +0 -1
  316. package/dist/entity-kinds-JR5SAm5h-DOH6VUtL.mjs.map +0 -1
  317. package/dist/expression-CQHy0GY7.d.mts +0 -2
  318. package/dist/index-reference-BVkoanQn.d.mts +0 -1
  319. package/dist/interpreter-CS21wD1i-G0u1x8t_.mjs.map +0 -1
  320. package/dist/middleware-DYiOUIpn.d.mts +0 -1
  321. package/dist/naming-BcD36g9T-Mfe_xGGL.d.mts.map +0 -1
  322. package/dist/naming-bM5qm5PY-jOg3JFMb.mjs.map +0 -1
  323. package/dist/plan-Cg0h96GD.d.mts +0 -2
  324. package/dist/psl-build-DqqYhOsa.mjs +0 -426
  325. package/dist/psl-build-DqqYhOsa.mjs.map +0 -1
  326. package/dist/psl-build-RelubU2E.d.mts.map +0 -1
  327. package/dist/psl-field-resolution-Bvhx79fP-CQqHf_L4.mjs.map +0 -1
  328. package/dist/query-lane-context-Dqs5qCXx.d.mts +0 -1
  329. package/dist/runtime-CCzfa1mY.mjs.map +0 -1
  330. package/dist/serialized-index-DjCCnXB1-DMA7BtO2.mjs.map +0 -1
  331. package/dist/sql-data-type-D7M-YTTY-D2vRqDxn.mjs.map +0 -1
  332. package/dist/storage-table-Bf1ZjnxO-pUj6pyP0.d.mts.map +0 -1
  333. package/dist/storage-table-DDvN83mw-DkbBFmK9.mjs.map +0 -1
  334. package/dist/types-CTdSkl0s.mjs.map +0 -1
  335. package/dist/types-CvmPNREJ.d.mts +0 -1
  336. package/dist/types-ljUNyiWe.d.mts +0 -1
  337. package/dist/validators-BwA7ttZM.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"codec-descriptor-registry-CiiFzMtb.mjs","names":[],"sources":["../../../../2-sql-family/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 { nonEmptyTypeParams } 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* - `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.\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\tconst typeParams = nonEmptyTypeParams(columnDef.typeParams);\n\tconst params = typeParams === void 0 ? {} : { typeParams: blindCast(typeParams) };\n\treturn columnDef.many ? {\n\t\tcodecId: columnDef.codecId,\n\t\t...params,\n\t\tmany: true\n\t} : {\n\t\tcodecId: columnDef.codecId,\n\t\t...params\n\t};\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\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}\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};\n}\n//#endregion\nexport { buildCodecDescriptorRegistry, codecRefForStorageColumn };\n\n//# sourceMappingURL=codec-descriptor-registry.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;AAmBA,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,MAAM,aAAa,mBAAmB,UAAU,UAAU;CAC1D,MAAM,SAAS,eAAe,KAAK,IAAI,CAAC,IAAI,EAAE,YAAY,UAAU,UAAU,EAAE;CAChF,OAAO,UAAU,OAAO;EACvB,SAAS,UAAU;EACnB,GAAG;EACH,MAAM;CACP,IAAI;EACH,SAAS,UAAU;EACnB,GAAG;CACJ;AACD;;;;;;;;;;;AAaA,SAAS,6BAA6B,gBAAgB,SAAS;CAC9D,MAAM,uBAAuB,IAAI,IAAI;CACrC,KAAK,MAAM,cAAc,gBAAgB;EACxC,IAAI,KAAK,IAAI,WAAW,OAAO,GAAG,MAAM,gBAAgB,2BAA2B,mCAAmC,WAAW,QAAQ,oJAAoJ,EAAE,MAAM,EAAE,SAAS,WAAW,QAAQ,EAAE,CAAC;EACtU,MAAM,UAAU;EAChB,KAAK,IAAI,WAAW,SAAS,OAAO;CACrC;CACA,OAAO;EACN,cAAc,SAAS;GACtB,OAAO,KAAK,IAAI,OAAO;EACxB;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;CACD;AACD"}
1
+ {"version":3,"file":"codec-descriptor-registry-UiFDvDj4.mjs","names":[],"sources":["../../../../2-sql-family/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 { nonEmptyTypeParams } 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* - `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.\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\tconst typeParams = nonEmptyTypeParams(columnDef.typeParams);\n\tconst params = typeParams === void 0 ? {} : { typeParams: blindCast(typeParams) };\n\treturn columnDef.many ? {\n\t\tcodecId: columnDef.codecId,\n\t\t...params,\n\t\tmany: true\n\t} : {\n\t\tcodecId: columnDef.codecId,\n\t\t...params\n\t};\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\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}\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};\n}\n//#endregion\nexport { buildCodecDescriptorRegistry, codecRefForStorageColumn };\n\n//# sourceMappingURL=codec-descriptor-registry.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;AAmBA,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,MAAM,aAAa,mBAAmB,UAAU,UAAU;CAC1D,MAAM,SAAS,eAAe,KAAK,IAAI,CAAC,IAAI,EAAE,YAAY,UAAU,UAAU,EAAE;CAChF,OAAO,UAAU,OAAO;EACvB,SAAS,UAAU;EACnB,GAAG;EACH,MAAM;CACP,IAAI;EACH,SAAS,UAAU;EACnB,GAAG;CACJ;AACD;;;;;;;;;;;AAaA,SAAS,6BAA6B,gBAAgB,SAAS;CAC9D,MAAM,uBAAuB,IAAI,IAAI;CACrC,KAAK,MAAM,cAAc,gBAAgB;EACxC,IAAI,KAAK,IAAI,WAAW,OAAO,GAAG,MAAM,gBAAgB,2BAA2B,mCAAmC,WAAW,QAAQ,oJAAoJ,EAAE,MAAM,EAAE,SAAS,WAAW,QAAQ,EAAE,CAAC;EACtU,MAAM,UAAU;EAChB,KAAK,IAAI,WAAW,SAAS,OAAO;CACrC;CACA,OAAO;EACN,cAAc,SAAS;GACtB,OAAO,KAAK,IAAI,OAAO;EACxB;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;CACD;AACD"}
@@ -0,0 +1,13 @@
1
+ //#region ../../../2-sql-family/1-core/contract/dist/codec-json-type-BdWPJ6T5.d.mts
2
+ //#region src/codec-json-type.d.ts
3
+ declare const JSON_TYPES: readonly ["string", "number", "boolean", "object", "array", "any"];
4
+ /**
5
+ * The JSON type a codec's value is written as inside a JSON document. `'any'` means the value can be any JSON value, including `null`, as for a JSON codec.
6
+ */
7
+ type JsonType = (typeof JSON_TYPES)[number];
8
+ declare function isJsonType(value: unknown): value is JsonType;
9
+ /** The JSON type a codec descriptor declares, or `undefined` when it declares none, as a descriptor compiled before codecs declared one does. */
10
+ declare function declaredJsonType(descriptor: object): JsonType | undefined;
11
+ //#endregion
12
+ export { isJsonType as i, JsonType as n, declaredJsonType as r, JSON_TYPES as t };
13
+ //# sourceMappingURL=codec-json-type-BdWPJ6T5-BhmIyNyb.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codec-json-type-BdWPJ6T5-BhmIyNyb.d.mts","names":[],"sources":["../../../../2-sql-family/1-core/contract/dist/codec-json-type-BdWPJ6T5.d.mts"],"mappings":";;cACc;;;;KAIT,mBAAmB;iBACP,WAAW,iBAAiB,SAAS;;iBAErC,iBAAiB,qBAAqB"}
@@ -0,0 +1,21 @@
1
+ //#region ../../../2-sql-family/1-core/contract/dist/codec-json-type-DUWyBtJk.mjs
2
+ const JSON_TYPES = [
3
+ "string",
4
+ "number",
5
+ "boolean",
6
+ "object",
7
+ "array",
8
+ "any"
9
+ ];
10
+ function isJsonType(value) {
11
+ return JSON_TYPES.some((jsonType) => jsonType === value);
12
+ }
13
+ /** The JSON type a codec descriptor declares, or `undefined` when it declares none, as a descriptor compiled before codecs declared one does. */
14
+ function declaredJsonType(descriptor) {
15
+ const jsonType = Reflect.get(descriptor, "jsonType");
16
+ return isJsonType(jsonType) ? jsonType : void 0;
17
+ }
18
+ //#endregion
19
+ export { declaredJsonType as n, isJsonType as r, JSON_TYPES as t };
20
+
21
+ //# sourceMappingURL=codec-json-type-DUWyBtJk-BVTavkH0.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codec-json-type-DUWyBtJk-BVTavkH0.mjs","names":[],"sources":["../../../../2-sql-family/1-core/contract/dist/codec-json-type-DUWyBtJk.mjs"],"sourcesContent":["//#region src/codec-json-type.ts\nconst JSON_TYPES = [\n\t\"string\",\n\t\"number\",\n\t\"boolean\",\n\t\"object\",\n\t\"array\",\n\t\"any\"\n];\nfunction isJsonType(value) {\n\treturn JSON_TYPES.some((jsonType) => jsonType === value);\n}\n/** The JSON type a codec descriptor declares, or `undefined` when it declares none, as a descriptor compiled before codecs declared one does. */\nfunction declaredJsonType(descriptor) {\n\tconst jsonType = Reflect.get(descriptor, \"jsonType\");\n\treturn isJsonType(jsonType) ? jsonType : void 0;\n}\n//#endregion\nexport { declaredJsonType as n, isJsonType as r, JSON_TYPES as t };\n\n//# sourceMappingURL=codec-json-type-DUWyBtJk.mjs.map"],"mappings":";AACA,MAAM,aAAa;CAClB;CACA;CACA;CACA;CACA;CACA;AACD;AACA,SAAS,WAAW,OAAO;CAC1B,OAAO,WAAW,MAAM,aAAa,aAAa,KAAK;AACxD;;AAEA,SAAS,iBAAiB,YAAY;CACrC,MAAM,WAAW,QAAQ,IAAI,YAAY,UAAU;CACnD,OAAO,WAAW,QAAQ,IAAI,WAAW,KAAK;AAC/C"}
@@ -1,6 +1,6 @@
1
- import { r as StorageTable } from "./storage-table-Bf1ZjnxO-pUj6pyP0.mjs";
2
- import "./types-CkAd8SWm.mjs";
3
- import { t as IndexReference } from "./index-reference-YHvh6wAL-BAhOS7RC.mjs";
1
+ import { r as StorageTable } from "./storage-value-object-BcvIeUr8-DiiZNIrZ.mjs";
2
+ import "./types-CXRxo_TK.mjs";
3
+ import { t as IndexReference } from "./index-reference-YHvh6wAL-BupQRpkE.mjs";
4
4
  import { ContractField, ContractRelation } from "@prisma/orm-framework/contract/types";
5
5
  //#region ../../../2-sql-family/4-lanes/relational-core/dist/collection-methods-D9CYfePl.d.mts
6
6
  //#region src/collection-methods.d.ts
@@ -74,4 +74,4 @@ interface CollectionMethodContribution {
74
74
  }
75
75
  //#endregion
76
76
  export { CollectionMethodModel as a, CollectionMethodRegistry as c, CollectionMethodContributionType as i, CollectionMethodTools as l, CollectionMethodContribution as n, CollectionMethodModelType as o, CollectionMethodContributionId as r, CollectionMethodReceiver as s, CollectionMethodBody as t, ContributedMethodSignature as u };
77
- //# sourceMappingURL=collection-methods-D9CYfePl-DsDjYS6t.d.mts.map
77
+ //# sourceMappingURL=collection-methods-D9CYfePl-BGvD1h9Z.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"collection-methods-D9CYfePl-DsDjYS6t.d.mts","names":[],"sources":["../../../../2-sql-family/4-lanes/relational-core/dist/collection-methods-D9CYfePl.d.mts"],"mappings":";;;;;;;;;UAOU;WACC;WACA;WACA;WACA;WACA;aACE;aACA;;;;;;UAMH;WACC;WACA;WACA;;;;;UAKD;WACC,OAAO;WACP;cACG,eAAe;;;;;;UAMnB;;WAEC;;;KAGN,iCAAiC,cAAc;;UAE1C;WACC,KAAK,SAAS,mBAAmB;WACjC,SAAS,SAAS,eAAe;;;;;UAKlC;EACR,MAAM,YAAY,gBAAgB,OAAO,oCAAoC;EAC7E,QAAQ,QAAQ,gBAAgB,OAAO,oCAAoC;;;KAGxE,wBAAwB,YAAY,6BAA6B,kBAAkB;;UAE9E;WACC;WACA;WACA,QAAQ,SAAS,eAAe;WAChC,WAAW,SAAS,eAAe;WACnC,OAAO;;;;;UAKR;WACC;EACT,WAAW,OAAO,wBAAwB,SAAS,eAAe"}
1
+ {"version":3,"file":"collection-methods-D9CYfePl-BGvD1h9Z.d.mts","names":[],"sources":["../../../../2-sql-family/4-lanes/relational-core/dist/collection-methods-D9CYfePl.d.mts"],"mappings":";;;;;;;;;UAOU;WACC;WACA;WACA;WACA;WACA;aACE;aACA;;;;;;UAMH;WACC;WACA;WACA;;;;;UAKD;WACC,OAAO;WACP;cACG,eAAe;;;;;;UAMnB;;WAEC;;;KAGN,iCAAiC,cAAc;;UAE1C;WACC,KAAK,SAAS,mBAAmB;WACjC,SAAS,SAAS,eAAe;;;;;UAKlC;EACR,MAAM,YAAY,gBAAgB,OAAO,oCAAoC;EAC7E,QAAQ,QAAQ,gBAAgB,OAAO,oCAAoC;;;KAGxE,wBAAwB,YAAY,6BAA6B,kBAAkB;;UAE9E;WACC;WACA;WACA,QAAQ,SAAS,eAAe;WAChC,WAAW,SAAS,eAAe;WACnC,OAAO;;;;;UAKR;WACC;EACT,WAAW,OAAO,wBAAwB,SAAS,eAAe"}
@@ -0,0 +1 @@
1
+ import "./collection-methods-D9CYfePl-BGvD1h9Z.mjs";
@@ -1,4 +1,4 @@
1
- import { n as buildSqlContractFromDefinition, r as contractError, t as applySqlSpecifierControlPolicy } from "./derived-checks-D5HVRvqN-BJx1gwPA.mjs";
1
+ import { n as buildSqlContractFromDefinition, r as contractError, t as applySqlSpecifierControlPolicy } from "./derived-checks-D__agoFB-Boa1MHcA.mjs";
2
2
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
3
3
  import { createDataTypeLookup, emptyCodecLookup } from "@prisma/orm-framework/components/codec";
4
4
  import { InternalError } from "@prisma/orm-framework/utils/internal-error";
@@ -65,4 +65,4 @@ function typescriptContractFromPath(contractPath, output, options) {
65
65
  //#endregion
66
66
  export { typescriptContract as n, typescriptContractFromPath as r, emptyContract as t };
67
67
 
68
- //# sourceMappingURL=config-types-DkEeq_qq.mjs.map
68
+ //# sourceMappingURL=config-types-BCXwEBZH.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"config-types-DkEeq_qq.mjs","names":[],"sources":["../../../../2-sql-family/2-authoring/contract-ts/dist/config-types.mjs"],"sourcesContent":["import { n as buildSqlContractFromDefinition, s as contractError, t as applySqlSpecifierControlPolicy } from \"./derived-checks-D5HVRvqN.mjs\";\nimport { createDataTypeLookup, emptyCodecLookup } from \"@internal/framework-components/codec\";\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}, {\n\t\t\t\t\t...emptyCodecLookup,\n\t\t\t\t\tdescriptorFor: () => void 0\n\t\t\t\t}, createDataTypeLookup([])), 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 from 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":";;;;;;;;;;;;;;AAcA,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,GAAG;KACF,GAAG;KACH,qBAAqB,KAAK;IAC3B,GAAG,qBAAqB,CAAC,CAAC,CAAC,GAAG,QAAQ,sBAAsB,QAAQ,eAAe,CAAC;GACrF;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,2HAA2H;IAChL,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-BCXwEBZH.mjs","names":[],"sources":["../../../../2-sql-family/2-authoring/contract-ts/dist/config-types.mjs"],"sourcesContent":["import { n as buildSqlContractFromDefinition, s as contractError, t as applySqlSpecifierControlPolicy } from \"./derived-checks-D__agoFB.mjs\";\nimport { createDataTypeLookup, emptyCodecLookup } from \"@internal/framework-components/codec\";\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}, {\n\t\t\t\t\t...emptyCodecLookup,\n\t\t\t\t\tdescriptorFor: () => void 0\n\t\t\t\t}, createDataTypeLookup([])), 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 from 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":";;;;;;;;;;;;;;AAcA,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,GAAG;KACF,GAAG;KACH,qBAAqB,KAAK;IAC3B,GAAG,qBAAqB,CAAC,CAAC,CAAC,GAAG,QAAQ,sBAAsB,QAAQ,eAAe,CAAC;GACrF;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,2HAA2H;IAChL,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 { a as SqlNamespaceBase, c as SqlNamespaceInput } from "./sql-storage-DeCAh5Hi-CEM-m8cs.mjs";
2
- import "./types-CkAd8SWm.mjs";
3
- import { t as SqlNamespaceFactory } from "./derived-checks-DpPkO6Dt-9U9UJZOo.mjs";
1
+ import { a as SqlNamespaceBase, c as SqlNamespaceInput } from "./sql-storage-B_AM6tU1-BOPQxXo7.mjs";
2
+ import "./types-CXRxo_TK.mjs";
3
+ import { t as SqlNamespaceFactory } from "./derived-checks-DpPkO6Dt-CQIM17j5.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-C-1mIiJO.d.mts.map
28
+ //# sourceMappingURL=config-types-Ce1tAJ0B.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"config-types-C-1mIiJO.d.mts","names":[],"sources":["../../../../2-sql-family/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-Ce1tAJ0B.d.mts","names":[],"sources":["../../../../2-sql-family/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 { d as sqlColumnLength } from "./sql-data-type-D7M-YTTY-D2vRqDxn.mjs";
1
+ import { d as sqlColumnLength } from "./sql-data-type-LVBldu1a-Bq203xWX.mjs";
2
2
  import { t as providesEntityHandleLowering } from "./entity-handle-lowering-hook-BJZSlVVF.mjs";
3
3
  import { n as generatedIdColumnAliases, t as GENERATED_ID_COLUMN_ALIAS_NAMESPACES } from "./generated-id-column-aliases-DPUii1fN.mjs";
4
4
  import { a as isSqlExpression, c as requireSqlExpression, r as SqlExpression, s as readSqlExpression } from "./sql-expression-CKgKznXS.mjs";
5
- import { t as CODEC_INSTANCE_KIND } from "./types-CTdSkl0s.mjs";
6
- import { n as checkSqlDefaultText, o as reservedSqlDefaultText } from "./validators-BwA7ttZM.mjs";
7
- import { a as refuseTypesKey, n as buildSqlContractFromDefinition, r as contractError, s as toOneNullabilityContradictionMessage } from "./derived-checks-D5HVRvqN-BJx1gwPA.mjs";
5
+ import { t as CODEC_INSTANCE_KIND } from "./types-CISwoRED.mjs";
6
+ import { n as checkSqlDefaultText, o as reservedSqlDefaultText } from "./validators-qcQteqs2.mjs";
7
+ import { a as refuseTypesKey, n as buildSqlContractFromDefinition, r as contractError, s as toOneNullabilityContradictionMessage } from "./derived-checks-D__agoFB-Boa1MHcA.mjs";
8
8
  import { isStructuredError } from "@prisma/orm-framework/utils/structured-error";
9
9
  import { ifDefined } from "@prisma/orm-framework/utils/defined";
10
- import { assembleDataTypeSupport, assertNoCrossRegistryCollisions, assertTypeAliasesValid, describeAdmittedForms, instantiateAuthoringTypeAlias, instantiateAuthoringTypeConstructor, isAuthoringEntityTypeDescriptor, isAuthoringTypeAliasDescriptor, isAuthoringTypeConstructorDescriptor, isAuthoringTypeDescriptor, readWrittenValueAs, validateAuthoringHelperArguments, validateAuthoringTypeParams } from "@prisma/orm-framework/components/authoring";
10
+ import { assembleDataTypeSupport, assertNoCrossRegistryCollisions, assertTypeAliasesValid, assertTypeChoicesValid, describeAdmittedForms, instantiateAuthoringTypeAlias, instantiateAuthoringTypeCall, instantiateAuthoringTypeConstructor, isAuthoringEntityTypeDescriptor, isAuthoringTypeAliasDescriptor, isAuthoringTypeChoiceDescriptor, isAuthoringTypeConstructorDescriptor, isAuthoringTypeDescriptor, readWrittenValueAs, resolveAuthoringTypeChoice, typeChoiceArgumentsFromObject, typeConstructorLookup, validateAuthoringHelperArguments, validateAuthoringTypeChoiceParams, validateAuthoringTypeParams } from "@prisma/orm-framework/components/authoring";
11
+ import { isColumnDefault } from "@prisma/orm-framework/contract/types";
11
12
  import { dataTypeId, numeralText } from "@prisma/orm-framework/components/codec";
12
13
  import { blindCast } from "@prisma/orm-framework/utils/casts";
13
- import { InternalError } from "@prisma/orm-framework/utils/internal-error";
14
- import { isColumnDefault } from "@prisma/orm-framework/contract/types";
14
+ import { InternalError, isInternalError } from "@prisma/orm-framework/utils/internal-error";
15
15
  import { assembleGeneratorFunctions, createGeneratorHelpers } from "@prisma/orm-framework/components/components";
16
16
  import { answerMissingPropertyReads, assertSafeAuthoringHelperKey, bindEnumType, composePackAuthoringNamespace, createEntityHelpersFromNamespace, enumType, isEnumTypeHandle, member, resolveToOneRelationNullable } from "@prisma/orm-framework/contract-authoring";
17
17
  import { UNBOUND_PSL_NAMESPACE_NAME } from "@prisma/orm-framework/components/psl-ast";
@@ -47,12 +47,12 @@ function readValueArgument(label, value, dataType, dataTypes) {
47
47
  return read.ok ? read.value.value : refuse(read.failure.message);
48
48
  }
49
49
  /**
50
- * The arguments of a type constructor call as the constructor receives them: each `value` argument read as a value of its data type, through the same read and cast as a PSL argument, so both give the same parameters. ADR 129, ADR 254.
50
+ * The arguments of a type constructor or type choice call as the constructor receives them: each `value` argument read as a value of its data type, through the same read and cast as a PSL argument, so both give the same parameters. ADR 129, ADR 254.
51
51
  */
52
52
  function readValueArguments(helperPath, descriptors, args, dataTypes) {
53
53
  return args.map((value, index) => {
54
54
  const descriptor = descriptors?.[index];
55
- if (descriptor === void 0 || value === void 0) return value;
55
+ if (descriptor?.kind !== "value" || value === void 0) return value;
56
56
  return readValueArgument(descriptor.name === void 0 ? `Argument #${index + 1} of ${helperPath}` : `Argument "${descriptor.name}" of ${helperPath}`, value, dataTypeId(descriptor.dataType), dataTypes);
57
57
  });
58
58
  }
@@ -76,6 +76,28 @@ function createTypeHelpersFromNamespace(namespace, lookups, path = []) {
76
76
  };
77
77
  continue;
78
78
  }
79
+ if (isAuthoringTypeChoiceDescriptor(value)) {
80
+ const helperPath = currentPath.join(".");
81
+ const constructorNamed = typeConstructorLookup(namespace);
82
+ helpers[key] = (...written) => {
83
+ const args = typeChoiceArgumentsFromObject(helperPath, value, written);
84
+ validateAuthoringHelperArguments(helperPath, value.args, args);
85
+ const chosen = resolveAuthoringTypeChoice({
86
+ helperPath,
87
+ descriptor: value,
88
+ args: readValueArguments(helperPath, value.args, args, lookups.dataTypes),
89
+ constructorNamed
90
+ });
91
+ const output = instantiateAuthoringTypeConstructor(chosen.descriptor, chosen.args);
92
+ validateAuthoringTypeChoiceParams(helperPath, value, chosen.descriptor, output.typeParams, lookups.codecLookup.descriptorFor(output.codecId)?.paramsSchema);
93
+ return {
94
+ kind: CODEC_INSTANCE_KIND,
95
+ codecId: output.codecId,
96
+ typeParams: output.typeParams ?? {}
97
+ };
98
+ };
99
+ continue;
100
+ }
79
101
  if (isAuthoringTypeAliasDescriptor(value)) {
80
102
  const helperPath = currentPath.join(".");
81
103
  helpers[key] = (...args) => {
@@ -657,12 +679,29 @@ function applyNaming(name, strategy) {
657
679
  return result;
658
680
  }
659
681
  const GUIDE = "The upgrade guide \"Field presets are removed\" lists every rewrite.";
660
- /** The row of a preset whose rewrite is `rewrite`; its type is the first `type.X(` that `rewrite` writes. */
661
- function writtenAs(rewrite, codecId) {
682
+ /** The explicit type constructor at the dotted `path`. */
683
+ const explicit = (path) => ({
684
+ path: path.split("."),
685
+ options: void 0
686
+ });
687
+ /** The type choice at `path`, called with `options`. */
688
+ const choice = (path, options = {}) => ({
689
+ path: path.split("."),
690
+ options
691
+ });
692
+ /** The call to `type` as TypeScript writes it, with `precision` when given: one object of arguments for a type choice, and a positional argument for an explicit type. */
693
+ function typeCall({ path, options }, precision) {
694
+ const name = `type.${path.join(".")}`;
695
+ if (options === void 0) return `${name}(${precision ?? ""})`;
696
+ const members = [...Object.entries(options).map(([option, value]) => `${option}: '${value}'`), ...precision === void 0 ? [] : [`precision: ${precision}`]];
697
+ return members.length === 0 ? `${name}()` : `${name}({ ${members.join(", ")} })`;
698
+ }
699
+ /** The row of a preset whose rewrite is the column of `type`, then `chain`. */
700
+ function writtenAs(type, codecId, chain = "") {
662
701
  return [{
663
- type: (/type\.([\w.]+)\(/.exec(rewrite)?.[1] ?? "").split("."),
702
+ type,
664
703
  codecId,
665
- rewrite
704
+ rewrite: `field.column(${typeCall(type)})${chain}`
666
705
  }];
667
706
  }
668
707
  /** The `type.` prefix of a namespace, such as `sql.` for `['sql']`. */
@@ -670,7 +709,10 @@ const prefixOf = (namespace) => namespace.map((name) => `${name}.`).join("");
670
709
  /** The rows of a preset whose rewrite `write` makes from each namespace's `type.` prefix, each named where that namespace has the generated id column alias `alias`. */
671
710
  function idAlias(alias, write) {
672
711
  return GENERATED_ID_COLUMN_ALIAS_NAMESPACES.map((namespace) => ({
673
- type: [...namespace, alias],
712
+ type: {
713
+ path: [...namespace, alias],
714
+ options: void 0
715
+ },
674
716
  codecId: generatedIdColumnAliases[alias].output.type.codecId,
675
717
  rewrite: write(prefixOf(namespace))
676
718
  }));
@@ -679,23 +721,33 @@ const column$1 = (prefix, type) => `field.column(type.${prefix}${type})`;
679
721
  const id = (columnText, generator) => `${columnText}.id().onCreate(gen.${generator})`;
680
722
  const aliasColumn = (alias) => idAlias(alias, (prefix) => column$1(prefix, `${alias}()`));
681
723
  const aliasId = (alias, generator) => idAlias(alias, (prefix) => id(column$1(prefix, `${alias}()`), generator));
682
- const withPhases = (type, codecId, precision) => writtenAs(`field.column(type.${type}(${precision ? "p" : ""})), with .onCreate(gen.now()) and .onUpdate(gen.now()) for the phases the preset set${precision ? ", and without p when it set no precision" : ""}`, codecId);
724
+ const withPhases = (type, codecId, precision) => [{
725
+ type,
726
+ codecId,
727
+ rewrite: `field.column(${typeCall(type, precision ? "p" : void 0)}), with .onCreate(gen.now()) and .onUpdate(gen.now()) for the phases the preset set${precision ? `, and without ${type.options === void 0 ? "p" : "precision: p"} when it set no precision` : ""}`
728
+ }];
729
+ const SQLITE_DATETIME = "sqlite/datetime@1";
730
+ const CREATED = ".onCreate(gen.now())";
731
+ const UPDATED = ".onCreate(gen.now()).onUpdate(gen.now())";
732
+ const TEMPORAL_DATE_TIME = choice("DateTime", { as: "temporal" });
733
+ const STRING_DATE_TIME = choice("DateTime", { as: "string" });
734
+ /** Each removed SQL preset and its rewrites. A date and time preset is written with the convenience call that gives the explicit type it stored, where one does (ADR 279). */
683
735
  const PRESETS = {
684
736
  uuidString: aliasColumn("UuidString"),
685
737
  ulid: aliasColumn("Ulid"),
686
738
  nanoid: idAlias("Nanoid", (prefix) => `${column$1(prefix, "Nanoid()")}, or ${column$1(prefix, "Char(n)")} for nanoid({ size: n })`),
687
739
  cuid2: aliasColumn("Cuid2"),
688
740
  ksuid: aliasColumn("Ksuid"),
689
- text: writtenAs("field.column(type.String())", "pg/text@1"),
690
- int: writtenAs("field.column(type.Int())", "pg/int4@1"),
691
- bigint: writtenAs("field.column(type.BigInt())", "pg/int8@1"),
692
- float: writtenAs("field.column(type.Float())", "pg/float8@1"),
693
- decimal: writtenAs("field.column(type.Decimal())", "pg/numeric@1"),
694
- boolean: writtenAs("field.column(type.Boolean())", "pg/bool@1"),
695
- json: writtenAs("field.column(type.Jsonb())", "pg/jsonb@1"),
696
- bytes: writtenAs("field.column(type.Bytes())", "pg/bytea@1"),
697
- dateTime: writtenAs("field.column(type.DateTime())", "pg/timestamptz-temporal@1"),
698
- uuidNative: writtenAs("field.column(type.Uuid())", "pg/uuid@1"),
741
+ text: writtenAs(explicit("String"), "pg/text@1"),
742
+ int: writtenAs(explicit("Int"), "pg/int4@1"),
743
+ bigint: writtenAs(explicit("BigInt"), "pg/int8@1"),
744
+ float: writtenAs(explicit("Float"), "pg/float8@1"),
745
+ decimal: writtenAs(explicit("Decimal"), "pg/numeric@1"),
746
+ boolean: writtenAs(explicit("Boolean"), "pg/bool@1"),
747
+ json: writtenAs(explicit("Jsonb"), "pg/jsonb@1"),
748
+ bytes: writtenAs(explicit("Bytes"), "pg/bytea@1"),
749
+ dateTime: writtenAs(TEMPORAL_DATE_TIME, "pg/timestamptz-temporal@1"),
750
+ uuidNative: writtenAs(explicit("Uuid"), "pg/uuid@1"),
699
751
  generated: idAlias("UuidString", (prefix) => `${column$1(prefix, "Char(n)")}.onCreate(gen.fn()), such as ${column$1(prefix, "UuidString()")}.onCreate(gen.uuid()) for field.generated(uuidv4())`),
700
752
  "id.uuidv4String": aliasId("UuidString", "uuid()"),
701
753
  "id.uuidv7String": aliasId("UuidString", "uuid(7)"),
@@ -703,38 +755,50 @@ const PRESETS = {
703
755
  "id.nanoid": idAlias("Nanoid", (prefix) => `${id(column$1(prefix, "Nanoid()"), "nanoid()")}, or ${id(column$1(prefix, "Char(n)"), "nanoid(n)")} for id.nanoid({ size: n })`),
704
756
  "id.cuid2": aliasId("Cuid2", "cuid(2)"),
705
757
  "id.ksuid": aliasId("Ksuid", "ksuid()"),
706
- "id.uuidv4Native": writtenAs(id("field.column(type.Uuid())", "uuid()"), "pg/uuid@1"),
707
- "id.uuidv7Native": writtenAs(id("field.column(type.Uuid())", "uuid(7)"), "pg/uuid@1"),
708
- "temporal.createdAt": writtenAs("field.column(type.temporal.CreatedAt())"),
709
- "temporal.updatedAt": writtenAs("field.column(type.temporal.UpdatedAt())"),
710
- "temporal.createdAtString": writtenAs("field.column(type.temporal.CreatedAtString())"),
711
- "temporal.updatedAtString": writtenAs("field.column(type.temporal.UpdatedAtString())"),
712
- "temporal.createdAtJsDate": writtenAs("field.column(type.temporal.CreatedAtJsDate())"),
713
- "temporal.updatedAtJsDate": writtenAs("field.column(type.temporal.UpdatedAtJsDate())"),
714
- "temporal.timestamp": withPhases("TimestampTemporal", "pg/timestamp-temporal@1", true),
715
- "temporal.timestamptz": withPhases("TimestamptzTemporal", "pg/timestamptz-temporal@1", true),
716
- "temporal.timestampString": withPhases("TimestampString", "pg/timestamp-string@1", true),
717
- "temporal.timestamptzString": withPhases("TimestamptzString", "pg/timestamptz-string@1", true),
718
- "temporal.timestamptzJsDate": withPhases("TimestamptzJsDate", "pg/timestamptz-date@1", true),
719
- "temporal.date": withPhases("Date", "pg/date-temporal@1", false),
720
- "temporal.dateString": withPhases("DateString", "pg/date-string@1", false),
721
- "temporal.time": withPhases("Time", "pg/time-temporal@1", true),
722
- "temporal.timeString": withPhases("TimeString", "pg/time-string@1", true),
723
- "temporal.timetz": withPhases("Timetz", "pg/timetz@1", true),
724
- "temporal.datetime": withPhases("DateTime", "sqlite/datetime@1", false)
758
+ "id.uuidv4Native": writtenAs(explicit("Uuid"), "pg/uuid@1", ".id().onCreate(gen.uuid())"),
759
+ "id.uuidv7Native": writtenAs(explicit("Uuid"), "pg/uuid@1", ".id().onCreate(gen.uuid(7))"),
760
+ "temporal.createdAt": [...writtenAs(TEMPORAL_DATE_TIME, "pg/timestamptz-temporal@1", CREATED), ...writtenAs(explicit("temporal.CreatedAt"), SQLITE_DATETIME)],
761
+ "temporal.updatedAt": [...writtenAs(TEMPORAL_DATE_TIME, "pg/timestamptz-temporal@1", UPDATED), ...writtenAs(explicit("temporal.UpdatedAt"), SQLITE_DATETIME)],
762
+ "temporal.createdAtString": writtenAs(STRING_DATE_TIME, "pg/timestamptz-string@1", CREATED),
763
+ "temporal.updatedAtString": writtenAs(STRING_DATE_TIME, "pg/timestamptz-string@1", UPDATED),
764
+ "temporal.createdAtJsDate": writtenAs(explicit("TimestamptzJsDate"), "pg/timestamptz-date@1", CREATED),
765
+ "temporal.updatedAtJsDate": writtenAs(explicit("TimestamptzJsDate"), "pg/timestamptz-date@1", UPDATED),
766
+ "temporal.timestamp": withPhases(explicit("TimestampTemporal"), "pg/timestamp-temporal@1", true),
767
+ "temporal.timestamptz": withPhases(TEMPORAL_DATE_TIME, "pg/timestamptz-temporal@1", true),
768
+ "temporal.timestampString": withPhases(choice("DateTime", {
769
+ as: "string",
770
+ storage: "timestamp"
771
+ }), "pg/timestamp-string@1", true),
772
+ "temporal.timestamptzString": withPhases(STRING_DATE_TIME, "pg/timestamptz-string@1", true),
773
+ "temporal.timestamptzJsDate": withPhases(explicit("TimestamptzJsDate"), "pg/timestamptz-date@1", true),
774
+ "temporal.date": withPhases(choice("Date", { as: "temporal" }), "pg/date-temporal@1", false),
775
+ "temporal.dateString": withPhases(choice("Date"), "pg/date-string@1", false),
776
+ "temporal.time": withPhases(choice("Time", { as: "temporal" }), "pg/time-temporal@1", true),
777
+ "temporal.timeString": withPhases(choice("Time"), "pg/time-string@1", true),
778
+ "temporal.timetz": withPhases(choice("Time", { storage: "timetz" }), "pg/timetz@1", true),
779
+ "temporal.datetime": withPhases(explicit("DateTime"), SQLITE_DATETIME, false)
725
780
  };
726
- function codecIdAt(types, path) {
781
+ /** The codec a column of `type` is stored with in `types`, a type choice resolved with its options as a column resolves it; `undefined` when `types` has no such type or the options choose none. */
782
+ function codecIdAt(types, path, options) {
727
783
  const [name, ...rest] = path;
728
784
  if (name === void 0 || !Object.hasOwn(types, name)) return void 0;
729
785
  const value = types[name];
730
786
  if (value === void 0) return void 0;
731
- if (!isAuthoringTypeDescriptor(value)) return codecIdAt(value, rest);
787
+ if (!isAuthoringTypeDescriptor(value)) return codecIdAt(value, rest, options);
732
788
  if (rest.length > 0) return void 0;
789
+ if (isAuthoringTypeChoiceDescriptor(value)) {
790
+ const args = value.args.map((argument) => argument.name !== void 0 && options !== void 0 && Object.hasOwn(options, argument.name) ? options[argument.name] : void 0);
791
+ try {
792
+ return instantiateAuthoringTypeCall(types, name, args).codecId;
793
+ } catch (error) {
794
+ if (isInternalError(error) || !(error instanceof Error)) throw error;
795
+ return;
796
+ }
797
+ }
733
798
  return isAuthoringTypeAliasDescriptor(value) ? value.output.type.codecId : value.output.codecId;
734
799
  }
735
800
  function appliesTo(preset, types) {
736
- const codecId = codecIdAt(types, preset.type);
737
- return codecId !== void 0 && (preset.codecId === void 0 || codecId === preset.codecId);
801
+ return codecIdAt(types, preset.type.path, preset.type.options) === preset.codecId;
738
802
  }
739
803
  function refuse(path, types) {
740
804
  const helper = `field.${path}`;
@@ -791,6 +855,7 @@ function createComposedAuthoringHelpers(options) {
791
855
  const entityNamespace = composeEntityNamespace(components);
792
856
  assertNoCrossRegistryCollisions(typeNamespace, entityNamespace);
793
857
  assertNoBuiltInEntityCollisions(entityNamespace);
858
+ for (const component of components) assertTypeChoicesValid(component.authoring?.type ?? {}, component.id ?? "<unknown>");
794
859
  const { support } = assembleDataTypeSupport(components, (codecId) => options.codecLookup.descriptorFor(codecId)?.dataType);
795
860
  const helperLookups = {
796
861
  codecLookup: options.codecLookup,
@@ -1865,4 +1930,4 @@ function autoincrement() {
1865
1930
  //#endregion
1866
1931
  export { check as a, enumType as c, member as d, model as f, buildContractDefinition as i, extensionModel as l, rel as m, bindEnumType as n, createComposedAuthoringHelpers as o, now as p, buildBoundContract as r, defineContract as s, autoincrement as t, field as u };
1867
1932
 
1868
- //# sourceMappingURL=contract-builder-DMNe_jX9.mjs.map
1933
+ //# sourceMappingURL=contract-builder-D50r41BU.mjs.map