@prisma/orm-family-sql 0.16.0-dev.36

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 (325) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +28 -0
  3. package/dist/ast-BstHjAoG.mjs +325 -0
  4. package/dist/ast-BstHjAoG.mjs.map +1 -0
  5. package/dist/ast-DSuzmsWn.d.mts +287 -0
  6. package/dist/ast-DSuzmsWn.d.mts.map +1 -0
  7. package/dist/authoring-type-constructors-Blqoa2Ua-DyCmD6mp.mjs +316 -0
  8. package/dist/authoring-type-constructors-Blqoa2Ua-DyCmD6mp.mjs.map +1 -0
  9. package/dist/build-contract-DBCz_YSs-DO0wMHai.mjs +778 -0
  10. package/dist/build-contract-DBCz_YSs-DO0wMHai.mjs.map +1 -0
  11. package/dist/builder.d.mts +3 -0
  12. package/dist/builder.mjs +1 -0
  13. package/dist/builder__runtime.d.mts +42 -0
  14. package/dist/builder__runtime.d.mts.map +1 -0
  15. package/dist/builder__runtime.mjs +955 -0
  16. package/dist/builder__runtime.mjs.map +1 -0
  17. package/dist/builder__types.d.mts +3 -0
  18. package/dist/builder__types.mjs +1 -0
  19. package/dist/canonicalization-hooks-CYnW_sGn.d.mts +10 -0
  20. package/dist/canonicalization-hooks-CYnW_sGn.d.mts.map +1 -0
  21. package/dist/canonicalization-hooks-DfIc_lOO.mjs +87 -0
  22. package/dist/canonicalization-hooks-DfIc_lOO.mjs.map +1 -0
  23. package/dist/codec-descriptor-registry-BJVJRftS.mjs +96 -0
  24. package/dist/codec-descriptor-registry-BJVJRftS.mjs.map +1 -0
  25. package/dist/codec-types-MOaceoPi-C5eL2sao.d.mts +116 -0
  26. package/dist/codec-types-MOaceoPi-C5eL2sao.d.mts.map +1 -0
  27. package/dist/config-types-47qB33rW.d.mts +21 -0
  28. package/dist/config-types-47qB33rW.d.mts.map +1 -0
  29. package/dist/config-types-N7PJc6VN.mjs +65 -0
  30. package/dist/config-types-N7PJc6VN.mjs.map +1 -0
  31. package/dist/contract-builder-MvJJrQ-5.d.mts +1306 -0
  32. package/dist/contract-builder-MvJJrQ-5.d.mts.map +1 -0
  33. package/dist/contract-builder-YjMQcvZ1.mjs +1615 -0
  34. package/dist/contract-builder-YjMQcvZ1.mjs.map +1 -0
  35. package/dist/contract-emitter.d.mts +25 -0
  36. package/dist/contract-emitter.d.mts.map +1 -0
  37. package/dist/contract-emitter.mjs +2 -0
  38. package/dist/contract-errors-BCN6RVI5-5IHBF_lg.mjs +9 -0
  39. package/dist/contract-errors-BCN6RVI5-5IHBF_lg.mjs.map +1 -0
  40. package/dist/contract-psl.d.mts +65 -0
  41. package/dist/contract-psl.d.mts.map +1 -0
  42. package/dist/contract-psl.mjs +2 -0
  43. package/dist/contract-psl__provider.d.mts +23 -0
  44. package/dist/contract-psl__provider.d.mts.map +1 -0
  45. package/dist/contract-psl__provider.mjs +105 -0
  46. package/dist/contract-psl__provider.mjs.map +1 -0
  47. package/dist/contract-ts.d.mts +3 -0
  48. package/dist/contract-ts.mjs +4 -0
  49. package/dist/contract-ts__config-types.d.mts +2 -0
  50. package/dist/contract-ts__config-types.mjs +2 -0
  51. package/dist/contract-ts__contract-builder.d.mts +2 -0
  52. package/dist/contract-ts__contract-builder.mjs +3 -0
  53. package/dist/contract-view-BMR5IWk4.mjs +39 -0
  54. package/dist/contract-view-BMR5IWk4.mjs.map +1 -0
  55. package/dist/contract-view-BbWQp6r4.d.mts +61 -0
  56. package/dist/contract-view-BbWQp6r4.d.mts.map +1 -0
  57. package/dist/contract.d.mts +26 -0
  58. package/dist/contract.mjs +17 -0
  59. package/dist/contract__canonicalization-hooks.d.mts +2 -0
  60. package/dist/contract__canonicalization-hooks.mjs +2 -0
  61. package/dist/contract__contract-view.d.mts +2 -0
  62. package/dist/contract__contract-view.mjs +2 -0
  63. package/dist/contract__entity-handle-lowering-hook.d.mts +2 -0
  64. package/dist/contract__entity-handle-lowering-hook.mjs +2 -0
  65. package/dist/contract__entity-kinds.d.mts +2 -0
  66. package/dist/contract__entity-kinds.mjs +2 -0
  67. package/dist/contract__factories.d.mts +2 -0
  68. package/dist/contract__factories.mjs +2 -0
  69. package/dist/contract__foreign-key-materialization.d.mts +2 -0
  70. package/dist/contract__foreign-key-materialization.mjs +2 -0
  71. package/dist/contract__index-naming.d.mts +2 -0
  72. package/dist/contract__index-naming.mjs +2 -0
  73. package/dist/contract__index-type-validation.d.mts +2 -0
  74. package/dist/contract__index-type-validation.mjs +2 -0
  75. package/dist/contract__index-types.d.mts +3 -0
  76. package/dist/contract__index-types.mjs +2 -0
  77. package/dist/contract__pack-types.d.mts +2 -0
  78. package/dist/contract__pack-types.mjs +1 -0
  79. package/dist/contract__referential-action-sql.d.mts +2 -0
  80. package/dist/contract__referential-action-sql.mjs +2 -0
  81. package/dist/contract__resolve-storage-table.d.mts +2 -0
  82. package/dist/contract__resolve-storage-table.mjs +2 -0
  83. package/dist/contract__types.d.mts +11 -0
  84. package/dist/contract__types.mjs +4 -0
  85. package/dist/contract__validators.d.mts +2 -0
  86. package/dist/contract__validators.mjs +3 -0
  87. package/dist/contract__value-set-derivation-hook.d.mts +2 -0
  88. package/dist/contract__value-set-derivation-hook.mjs +2 -0
  89. package/dist/control-B7iS4jv4.mjs +1326 -0
  90. package/dist/control-B7iS4jv4.mjs.map +1 -0
  91. package/dist/control-BHmsZudH.d.mts +948 -0
  92. package/dist/control-BHmsZudH.d.mts.map +1 -0
  93. package/dist/control-adapter-4y1O8Ps3.d.mts +1 -0
  94. package/dist/control-adapter-C99J7aEF-C-17lFY8.d.mts +191 -0
  95. package/dist/control-adapter-C99J7aEF-C-17lFY8.d.mts.map +1 -0
  96. package/dist/db-DhMsmBS--DKENDi3l.d.mts +365 -0
  97. package/dist/db-DhMsmBS--DKENDi3l.d.mts.map +1 -0
  98. package/dist/ddl-types-BMp2bWVS-D1waZJ4n.mjs +153 -0
  99. package/dist/ddl-types-BMp2bWVS-D1waZJ4n.mjs.map +1 -0
  100. package/dist/ddl-types-rrMsf77U-DGctYf-T.d.mts +149 -0
  101. package/dist/ddl-types-rrMsf77U-DGctYf-T.d.mts.map +1 -0
  102. package/dist/diff-B16bL_IR.mjs +13 -0
  103. package/dist/diff-B16bL_IR.mjs.map +1 -0
  104. package/dist/diff-DhlzHOMD.d.mts +104 -0
  105. package/dist/diff-DhlzHOMD.d.mts.map +1 -0
  106. package/dist/dist-C_q1_QR9.mjs +9 -0
  107. package/dist/dist-C_q1_QR9.mjs.map +1 -0
  108. package/dist/dist-DrScXbhq.mjs +414 -0
  109. package/dist/dist-DrScXbhq.mjs.map +1 -0
  110. package/dist/dist-x6jvtkKM.mjs +68 -0
  111. package/dist/dist-x6jvtkKM.mjs.map +1 -0
  112. package/dist/entity-handle-lowering-hook-CIvRKBfa.d.mts +92 -0
  113. package/dist/entity-handle-lowering-hook-CIvRKBfa.d.mts.map +1 -0
  114. package/dist/entity-handle-lowering-hook-DwLIKNiS.mjs +11 -0
  115. package/dist/entity-handle-lowering-hook-DwLIKNiS.mjs.map +1 -0
  116. package/dist/entity-kinds-DKxwKolf-CcsY-iYV.mjs +136 -0
  117. package/dist/entity-kinds-DKxwKolf-CcsY-iYV.mjs.map +1 -0
  118. package/dist/entity-kinds-Dh6VH4uK.d.mts +29 -0
  119. package/dist/entity-kinds-Dh6VH4uK.d.mts.map +1 -0
  120. package/dist/errors-B5g0xWro-mWH2C07F.mjs +9 -0
  121. package/dist/errors-B5g0xWro-mWH2C07F.mjs.map +1 -0
  122. package/dist/errors.d.mts +63 -0
  123. package/dist/errors.d.mts.map +1 -0
  124. package/dist/errors.mjs +2 -0
  125. package/dist/expression-DIf8F4Mc.d.mts +167 -0
  126. package/dist/expression-DIf8F4Mc.d.mts.map +1 -0
  127. package/dist/expression-RUO52bJB.mjs +109 -0
  128. package/dist/expression-RUO52bJB.mjs.map +1 -0
  129. package/dist/factories-B7tA4y9D.d.mts +39 -0
  130. package/dist/factories-B7tA4y9D.d.mts.map +1 -0
  131. package/dist/factories-CDG9zBxC.mjs +77 -0
  132. package/dist/factories-CDG9zBxC.mjs.map +1 -0
  133. package/dist/family.d.mts +13 -0
  134. package/dist/family.mjs +12 -0
  135. package/dist/family__control-adapter.d.mts +3 -0
  136. package/dist/family__control-adapter.mjs +1 -0
  137. package/dist/family__control.d.mts +4 -0
  138. package/dist/family__control.mjs +4 -0
  139. package/dist/family__diff.d.mts +3 -0
  140. package/dist/family__diff.mjs +3 -0
  141. package/dist/family__ir.d.mts +2 -0
  142. package/dist/family__ir.mjs +3 -0
  143. package/dist/family__migration.d.mts +2 -0
  144. package/dist/family__migration.mjs +2 -0
  145. package/dist/family__pack.d.mts +249 -0
  146. package/dist/family__pack.d.mts.map +1 -0
  147. package/dist/family__pack.mjs +18 -0
  148. package/dist/family__pack.mjs.map +1 -0
  149. package/dist/family__psl-infer.d.mts +2 -0
  150. package/dist/family__psl-infer.mjs +2 -0
  151. package/dist/family__runtime.d.mts +3 -0
  152. package/dist/family__runtime.mjs +3 -0
  153. package/dist/family__verify.d.mts +2 -0
  154. package/dist/family__verify.mjs +2 -0
  155. package/dist/foreign-key-BSy9u4O4-BnsOe5Nf.d.mts +85 -0
  156. package/dist/foreign-key-BSy9u4O4-BnsOe5Nf.d.mts.map +1 -0
  157. package/dist/foreign-key-materialization-Ca-wRbmj.d.mts +65 -0
  158. package/dist/foreign-key-materialization-Ca-wRbmj.d.mts.map +1 -0
  159. package/dist/foreign-key-materialization-HI7BIQrG.mjs +72 -0
  160. package/dist/foreign-key-materialization-HI7BIQrG.mjs.map +1 -0
  161. package/dist/index-Bb9U36N4.d.mts +511 -0
  162. package/dist/index-Bb9U36N4.d.mts.map +1 -0
  163. package/dist/index-BgaTJRxj.d.mts +25 -0
  164. package/dist/index-BgaTJRxj.d.mts.map +1 -0
  165. package/dist/index-naming-BZWoh45T.d.mts +62 -0
  166. package/dist/index-naming-BZWoh45T.d.mts.map +1 -0
  167. package/dist/index-naming-BoGBcMmI-DiJAr66H.mjs +108 -0
  168. package/dist/index-naming-BoGBcMmI-DiJAr66H.mjs.map +1 -0
  169. package/dist/index-type-validation-COH4d78M.mjs +17 -0
  170. package/dist/index-type-validation-COH4d78M.mjs.map +1 -0
  171. package/dist/index-type-validation-DN0L2mqm.d.mts +10 -0
  172. package/dist/index-type-validation-DN0L2mqm.d.mts.map +1 -0
  173. package/dist/index-types-CNhHgKHi.d.mts +1 -0
  174. package/dist/index-types-DJQ_xwaE.mjs +40 -0
  175. package/dist/index-types-DJQ_xwaE.mjs.map +1 -0
  176. package/dist/index-types-DPVhsW0v-D-BikM4h.d.mts +31 -0
  177. package/dist/index-types-DPVhsW0v-D-BikM4h.d.mts.map +1 -0
  178. package/dist/interpreter-5WgpL-ax-_nqHLUTr.mjs +3526 -0
  179. package/dist/interpreter-5WgpL-ax-_nqHLUTr.mjs.map +1 -0
  180. package/dist/ir-B3bKMnGQ.d.mts +123 -0
  181. package/dist/ir-B3bKMnGQ.d.mts.map +1 -0
  182. package/dist/ir-I-xciGUH.mjs +36 -0
  183. package/dist/ir-I-xciGUH.mjs.map +1 -0
  184. package/dist/lane-query-builder.d.mts +236 -0
  185. package/dist/lane-query-builder.d.mts.map +1 -0
  186. package/dist/lane-query-builder.mjs +67 -0
  187. package/dist/lane-query-builder.mjs.map +1 -0
  188. package/dist/middleware-B4XbF4d4-tfwBl6mX.d.mts +119 -0
  189. package/dist/middleware-B4XbF4d4-tfwBl6mX.d.mts.map +1 -0
  190. package/dist/middleware-ByRsXxxq.d.mts +1 -0
  191. package/dist/middleware-CMr4CHNz-DHIUdxlm.mjs +80 -0
  192. package/dist/middleware-CMr4CHNz-DHIUdxlm.mjs.map +1 -0
  193. package/dist/migration-CK4oePIo.mjs +44 -0
  194. package/dist/migration-CK4oePIo.mjs.map +1 -0
  195. package/dist/migration-CW0ZJLxP.d.mts +44 -0
  196. package/dist/migration-CW0ZJLxP.d.mts.map +1 -0
  197. package/dist/naming-BwqqVcZy-BgTObIQw.mjs +177 -0
  198. package/dist/naming-BwqqVcZy-BgTObIQw.mjs.map +1 -0
  199. package/dist/naming-jLgdauLi-C84G_UHi.d.mts +133 -0
  200. package/dist/naming-jLgdauLi-C84G_UHi.d.mts.map +1 -0
  201. package/dist/operations.d.mts +2 -0
  202. package/dist/operations.mjs +2 -0
  203. package/dist/orm-client.d.mts +1316 -0
  204. package/dist/orm-client.d.mts.map +1 -0
  205. package/dist/orm-client.mjs +4544 -0
  206. package/dist/orm-client.mjs.map +1 -0
  207. package/dist/pack-types-BcLTpwbv.d.mts +14 -0
  208. package/dist/pack-types-BcLTpwbv.d.mts.map +1 -0
  209. package/dist/plan-BTD8xFfa-Dd_K-A1R.d.mts +45 -0
  210. package/dist/plan-BTD8xFfa-Dd_K-A1R.d.mts.map +1 -0
  211. package/dist/plan-CkpcgUaM.mjs +34 -0
  212. package/dist/plan-CkpcgUaM.mjs.map +1 -0
  213. package/dist/plan-Cm4jaoNM.d.mts +2 -0
  214. package/dist/psl-infer-6je61Z6J.d.mts +119 -0
  215. package/dist/psl-infer-6je61Z6J.d.mts.map +1 -0
  216. package/dist/psl-infer-DGftl-HW.mjs +362 -0
  217. package/dist/psl-infer-DGftl-HW.mjs.map +1 -0
  218. package/dist/query-lane-context-Bz8XJZ45.d.mts +1 -0
  219. package/dist/query-lane-context-DtdVMqoz-C2Tj5QHA.d.mts +94 -0
  220. package/dist/query-lane-context-DtdVMqoz-C2Tj5QHA.d.mts.map +1 -0
  221. package/dist/referential-action-sql-Csd6dA8G.d.mts +12 -0
  222. package/dist/referential-action-sql-Csd6dA8G.d.mts.map +1 -0
  223. package/dist/referential-action-sql-DSqkrySN.mjs +17 -0
  224. package/dist/referential-action-sql-DSqkrySN.mjs.map +1 -0
  225. package/dist/relational-core.d.mts +13 -0
  226. package/dist/relational-core.mjs +8 -0
  227. package/dist/relational-core__ast.d.mts +5 -0
  228. package/dist/relational-core__ast.mjs +5 -0
  229. package/dist/relational-core__codec-descriptor-registry.d.mts +39 -0
  230. package/dist/relational-core__codec-descriptor-registry.d.mts.map +1 -0
  231. package/dist/relational-core__codec-descriptor-registry.mjs +2 -0
  232. package/dist/relational-core__contract-free.d.mts +220 -0
  233. package/dist/relational-core__contract-free.d.mts.map +1 -0
  234. package/dist/relational-core__contract-free.mjs +393 -0
  235. package/dist/relational-core__contract-free.mjs.map +1 -0
  236. package/dist/relational-core__expression.d.mts +2 -0
  237. package/dist/relational-core__expression.mjs +2 -0
  238. package/dist/relational-core__middleware.d.mts +3 -0
  239. package/dist/relational-core__middleware.mjs +2 -0
  240. package/dist/relational-core__plan.d.mts +4 -0
  241. package/dist/relational-core__plan.mjs +2 -0
  242. package/dist/relational-core__query-lane-context.d.mts +3 -0
  243. package/dist/relational-core__query-lane-context.mjs +1 -0
  244. package/dist/relational-core__types.d.mts +3 -0
  245. package/dist/relational-core__types.mjs +1 -0
  246. package/dist/resolve-storage-table-DUwyRJmP.d.mts +21 -0
  247. package/dist/resolve-storage-table-DUwyRJmP.d.mts.map +1 -0
  248. package/dist/resolve-storage-table-DZsfnzeW.mjs +46 -0
  249. package/dist/resolve-storage-table-DZsfnzeW.mjs.map +1 -0
  250. package/dist/runtime-DNewRuec.d.mts +46 -0
  251. package/dist/runtime-DNewRuec.d.mts.map +1 -0
  252. package/dist/runtime-tIHpGCcG.mjs +55 -0
  253. package/dist/runtime-tIHpGCcG.mjs.map +1 -0
  254. package/dist/runtime.d.mts +4 -0
  255. package/dist/runtime.mjs +1606 -0
  256. package/dist/runtime.mjs.map +1 -0
  257. package/dist/schema-differ-DpG_gnur-g5_iks8G.d.mts +47 -0
  258. package/dist/schema-differ-DpG_gnur-g5_iks8G.d.mts.map +1 -0
  259. package/dist/schema-ir.d.mts +2 -0
  260. package/dist/schema-ir.mjs +2 -0
  261. package/dist/schema-ir__naming.d.mts +2 -0
  262. package/dist/schema-ir__naming.mjs +2 -0
  263. package/dist/schema-ir__types.d.mts +3 -0
  264. package/dist/schema-ir__types.mjs +2 -0
  265. package/dist/schema-verify-vtFZbmGq-BNfTr6fU.mjs +222 -0
  266. package/dist/schema-verify-vtFZbmGq-BNfTr6fU.mjs.map +1 -0
  267. package/dist/serialized-index-B96AwqtU-DcqcB4q_.d.mts +26 -0
  268. package/dist/serialized-index-B96AwqtU-DcqcB4q_.d.mts.map +1 -0
  269. package/dist/serialized-index-Dp5_EjXD-DMsw8jf3.mjs +64 -0
  270. package/dist/serialized-index-Dp5_EjXD-DMsw8jf3.mjs.map +1 -0
  271. package/dist/sql-contract-serializer-2oBWuxTe-B9hzBBv1.mjs +171 -0
  272. package/dist/sql-contract-serializer-2oBWuxTe-B9hzBBv1.mjs.map +1 -0
  273. package/dist/sql-execution-plan-CJmsCP7n-DoEpNn7r.d.mts +32 -0
  274. package/dist/sql-execution-plan-CJmsCP7n-DoEpNn7r.d.mts.map +1 -0
  275. package/dist/sql-index-DsI8HAeK-BJsn-jvD.d.mts +72 -0
  276. package/dist/sql-index-DsI8HAeK-BJsn-jvD.d.mts.map +1 -0
  277. package/dist/sql-node-kEz6YFZo-v2F7delx.d.mts +42 -0
  278. package/dist/sql-node-kEz6YFZo-v2F7delx.d.mts.map +1 -0
  279. package/dist/sql-storage-B0QwiTg6-B8DVctJm.d.mts +171 -0
  280. package/dist/sql-storage-B0QwiTg6-B8DVctJm.d.mts.map +1 -0
  281. package/dist/storage-table-BBaAmanc-BwR37LMA.d.mts +130 -0
  282. package/dist/storage-table-BBaAmanc-BwR37LMA.d.mts.map +1 -0
  283. package/dist/storage-table-_LWDmPfv-DFhU2dML.mjs +277 -0
  284. package/dist/storage-table-_LWDmPfv-DFhU2dML.mjs.map +1 -0
  285. package/dist/storage-value-set-BGlj5Uus-CvZD--GG.d.mts +41 -0
  286. package/dist/storage-value-set-BGlj5Uus-CvZD--GG.d.mts.map +1 -0
  287. package/dist/timestamp-now-generator-DRXygu32-DN9Qb1uI.mjs +173 -0
  288. package/dist/timestamp-now-generator-DRXygu32-DN9Qb1uI.mjs.map +1 -0
  289. package/dist/types-BchwQpmO.d.mts +16 -0
  290. package/dist/types-BchwQpmO.d.mts.map +1 -0
  291. package/dist/types-BgkZru_1-H7yfikSQ.mjs +1444 -0
  292. package/dist/types-BgkZru_1-H7yfikSQ.mjs.map +1 -0
  293. package/dist/types-CMMQS6aG.mjs +111 -0
  294. package/dist/types-CMMQS6aG.mjs.map +1 -0
  295. package/dist/types-CuDrWc5v-ISVXBmBs.d.mts +134 -0
  296. package/dist/types-CuDrWc5v-ISVXBmBs.d.mts.map +1 -0
  297. package/dist/types-CvbBw1Jo-3KQdErJY.d.mts +688 -0
  298. package/dist/types-CvbBw1Jo-3KQdErJY.d.mts.map +1 -0
  299. package/dist/types-DIBA80mc-wf5wLmON.d.mts +723 -0
  300. package/dist/types-DIBA80mc-wf5wLmON.d.mts.map +1 -0
  301. package/dist/types-DMxc5KZa.d.mts +1 -0
  302. package/dist/types-Dl20lxky-DC_jdA0T.d.mts +247 -0
  303. package/dist/types-Dl20lxky-DC_jdA0T.d.mts.map +1 -0
  304. package/dist/types-DmhUVq4u-BpqqjPJx.mjs +719 -0
  305. package/dist/types-DmhUVq4u-BpqqjPJx.mjs.map +1 -0
  306. package/dist/types-IqZMLrFC-DtdJNICr.d.mts +426 -0
  307. package/dist/types-IqZMLrFC-DtdJNICr.d.mts.map +1 -0
  308. package/dist/types-TvBZ2Ne9.d.mts +1 -0
  309. package/dist/unique-constraint-jQWfH7dg-zLWtFp99.d.mts +32 -0
  310. package/dist/unique-constraint-jQWfH7dg-zLWtFp99.d.mts.map +1 -0
  311. package/dist/util-DQQgv2j1-D6INZaRG.mjs +34 -0
  312. package/dist/util-DQQgv2j1-D6INZaRG.mjs.map +1 -0
  313. package/dist/validators-C4PItWnf.mjs +0 -0
  314. package/dist/validators-C4PItWnf.mjs.map +1 -0
  315. package/dist/validators-CxeHhHrf.d.mts +206 -0
  316. package/dist/validators-CxeHhHrf.d.mts.map +1 -0
  317. package/dist/value-set-derivation-hook-BhgGVtw0.d.mts +35 -0
  318. package/dist/value-set-derivation-hook-BhgGVtw0.d.mts.map +1 -0
  319. package/dist/value-set-derivation-hook-Di9JZ0X7.mjs +22 -0
  320. package/dist/value-set-derivation-hook-Di9JZ0X7.mjs.map +1 -0
  321. package/dist/verify-E6Dd2vYp-gYwnlhLm.mjs +86 -0
  322. package/dist/verify-E6Dd2vYp-gYwnlhLm.mjs.map +1 -0
  323. package/dist/verify-zDRnw0Rn.d.mts +26 -0
  324. package/dist/verify-zDRnw0Rn.d.mts.map +1 -0
  325. package/package.json +112 -0
@@ -0,0 +1,287 @@
1
+ import "./codec-types-MOaceoPi-C5eL2sao.mjs";
2
+ import { Q as LoweredStatement, f as AnyParamRef, p as AnyQueryAst } from "./types-DIBA80mc-wf5wLmON.mjs";
3
+ import "./ddl-types-rrMsf77U-DGctYf-T.mjs";
4
+ import { ContractMarkerRecord, JsonValue } from "@prisma/orm-framework/contract/types";
5
+ import { CodecCallContext, CodecDescriptorImpl, CodecImpl, CodecInstanceContext } from "@prisma/orm-framework/components/codec";
6
+ import { StandardSchemaV1 } from "@standard-schema/spec";
7
+ //#region ../../../2-sql/4-lanes/relational-core/dist/exports/ast.d.mts
8
+ //#region src/ast/driver-types.d.ts
9
+ /**
10
+ * A fully lowered SQL statement ready for a driver to execute: SQL text plus
11
+ * driver-ready (codec-encoded) parameter values. The output of the control
12
+ * adapter's `lowerToExecuteRequest`, handed to a driver via `SqlQueryable.query`
13
+ * or `execute`. Inline-substituted positions (e.g. DDL `DEFAULT`
14
+ * clauses) carry no param; `params` holds the wire values for the `$N`/`?`
15
+ * positions, in order.
16
+ */
17
+ interface SqlExecuteRequest {
18
+ readonly sql: string;
19
+ readonly params?: readonly unknown[];
20
+ }
21
+ interface PreparedExecuteRequest {
22
+ readonly sql: string;
23
+ readonly params: readonly unknown[];
24
+ readonly handle: {
25
+ get(): unknown;
26
+ set(value: unknown): void;
27
+ };
28
+ }
29
+ interface SqlQueryResult<Row = Record<string, unknown>> {
30
+ readonly rows: ReadonlyArray<Row>;
31
+ readonly rowCount?: number | null;
32
+ readonly [key: string]: unknown;
33
+ }
34
+ interface SqlExplainResult<Row = Record<string, unknown>> {
35
+ readonly rows: ReadonlyArray<Row>;
36
+ }
37
+ type SqlDriverState = 'unbound' | 'connected' | 'closed';
38
+ interface SqlDriver<TBinding = void> extends SqlQueryable {
39
+ readonly state?: SqlDriverState;
40
+ connect(binding: TBinding): Promise<void>;
41
+ acquireConnection(): Promise<SqlConnection>;
42
+ close(): Promise<void>;
43
+ }
44
+ interface SqlConnection extends SqlQueryable {
45
+ beginTransaction(): Promise<SqlTransaction>;
46
+ /**
47
+ * Returns the connection to the pool for reuse. Must only be called when the
48
+ * connection is known to be in a clean, reusable state. If a transaction
49
+ * operation (commit/rollback) failed or the connection is otherwise suspect,
50
+ * call `destroy(reason)` instead.
51
+ */
52
+ release(): Promise<void>;
53
+ /**
54
+ * Evicts the connection so it is never reused. Call this when the
55
+ * connection may be in an indeterminate state (e.g. a failed rollback
56
+ * leaving an open transaction, or a broken socket).
57
+ *
58
+ * Implementations MUST:
59
+ * - Leave the connection retryable if teardown fails, so a follow-up
60
+ * call can actually dispose of the handle. Calling destroy() or
61
+ * release() more than once after a successful teardown is caller
62
+ * error and behaves as the underlying primitive dictates (typically
63
+ * a thrown error).
64
+ * - Treat `reason` as advisory context only. It may be surfaced to
65
+ * driver-level observability hooks (e.g. pg-pool's `'release'` event)
66
+ * but MUST NOT influence eviction behavior and MUST NOT be rethrown.
67
+ * - Dispose of any driver-wide state that depends on this single
68
+ * connection (e.g. a direct-client driver should close itself, since a
69
+ * destroyed connection means its one underlying socket is unusable).
70
+ * - Propagate errors raised while tearing down the underlying connection.
71
+ * The caller has context the driver does not (whether it is already
72
+ * about to throw a more informative error, whether it is shutting
73
+ * down, etc.) and is better positioned to decide whether to swallow
74
+ * or surface the failure.
75
+ */
76
+ destroy(reason?: unknown): Promise<void>;
77
+ }
78
+ interface SqlTransaction extends SqlQueryable {
79
+ commit(): Promise<void>;
80
+ rollback(): Promise<void>;
81
+ }
82
+ interface SqlQueryable {
83
+ execute<Row = Record<string, unknown>>(request: SqlExecuteRequest): AsyncIterable<Row>;
84
+ executePrepared<Row = Record<string, unknown>>(request: PreparedExecuteRequest): AsyncIterable<Row>;
85
+ explain?(request: SqlExecuteRequest): Promise<SqlExplainResult>;
86
+ query<Row = Record<string, unknown>>(sql: string, params?: readonly unknown[]): Promise<SqlQueryResult<Row>>;
87
+ }
88
+ //#endregion
89
+ //#region src/ast/adapter-types.d.ts
90
+ type AdapterTarget = string;
91
+ /**
92
+ * Outcome of an adapter's marker read. `no-table` means the marker storage itself is absent
93
+ * (e.g. attaching to a database that was never `db init`'d); `absent` means the storage exists
94
+ * but holds no row for the requested space; `present` carries the parsed record. Callers
95
+ * distinguish these to produce appropriate log diagnostics for each case.
96
+ */
97
+ type MarkerReadResult = {
98
+ readonly kind: 'present';
99
+ readonly record: ContractMarkerRecord;
100
+ } | {
101
+ readonly kind: 'absent';
102
+ } | {
103
+ readonly kind: 'no-table';
104
+ };
105
+ interface AdapterProfile<TTarget extends AdapterTarget = AdapterTarget> {
106
+ readonly id: string;
107
+ readonly target: TTarget;
108
+ readonly capabilities: Record<string, unknown>;
109
+ /**
110
+ * Reads the contract marker via the supplied queryable. The adapter owns the full flow — probing for the marker storage, issuing the read, and decoding the row — so callers receive a tagged result rather than a raw driver error when the marker storage is absent.
111
+ */
112
+ readMarker(queryable: SqlQueryable): Promise<MarkerReadResult>;
113
+ }
114
+ interface LowererContext<TContract = unknown> {
115
+ readonly contract: TContract;
116
+ readonly params?: readonly unknown[];
117
+ }
118
+ type Lowerer<Ast = unknown, TContract = unknown, TBody = LoweredStatement> = (ast: Ast, context: LowererContext<TContract>) => TBody;
119
+ /**
120
+ * Lowers a query AST into a target-specific executable body (typically `LoweredStatement` for SQL adapters). The `lower` method returns the body directly; per-statement metadata, when needed, lives on the body itself (e.g. `LoweredStatement.annotations`). Adapter-level metadata such as the profile id is reachable via `profile.id` for callers that genuinely need it.
121
+ */
122
+ interface Adapter<Ast = unknown, TContract = unknown, TBody = LoweredStatement> {
123
+ readonly profile: AdapterProfile;
124
+ lower(ast: Ast, context: LowererContext<TContract>): TBody;
125
+ }
126
+ //#endregion
127
+ //#region src/ast/sql-codec-helpers.d.ts
128
+ declare const SQL_CHAR_CODEC_ID: "sql/char@1";
129
+ declare const SQL_VARCHAR_CODEC_ID: "sql/varchar@1";
130
+ declare const SQL_INT_CODEC_ID: "sql/int@1";
131
+ declare const SQL_FLOAT_CODEC_ID: "sql/float@1";
132
+ declare const SQL_TEXT_CODEC_ID: "sql/text@1";
133
+ declare const SQL_TIMESTAMP_CODEC_ID: "sql/timestamp@1";
134
+ declare const sqlCharEncode: (value: string) => string;
135
+ declare const sqlCharDecode: (wire: string) => string;
136
+ declare const sqlCharRenderOutputType: (typeParams: {
137
+ readonly length?: number;
138
+ }) => string | undefined;
139
+ declare const sqlVarcharEncode: (value: string) => string;
140
+ declare const sqlVarcharDecode: (wire: string) => string;
141
+ declare const sqlVarcharRenderOutputType: (typeParams: {
142
+ readonly length?: number;
143
+ }) => string | undefined;
144
+ declare const sqlIntEncode: (value: number) => number;
145
+ declare const sqlIntDecode: (wire: number) => number;
146
+ declare const sqlFloatEncode: (value: number) => number;
147
+ declare const sqlFloatDecode: (wire: number) => number;
148
+ /**
149
+ * JSON has no spelling for a non-finite number, and a database that holds one
150
+ * emits it as a string — PostgreSQL writes `"NaN"` and `"Infinity"`. This
151
+ * codec's application type is `number`, so both directions reject rather than
152
+ * carry a value that type cannot hold.
153
+ */
154
+ declare const sqlFloatEncodeJson: (value: number) => JsonValue;
155
+ declare const sqlFloatDecodeJson: (json: JsonValue) => number;
156
+ declare const sqlTextEncode: (value: string) => string;
157
+ declare const sqlTextDecode: (wire: string) => string;
158
+ declare const sqlTimestampEncode: (value: Date) => Date;
159
+ declare const sqlTimestampDecode: (wire: Date) => Date;
160
+ /**
161
+ * A `timestamp` carries no zone, so its JSON form is the ISO rendering without a
162
+ * trailing `Z` — `2026-01-02T03:04:05.678` — and {@link sqlTimestampDecodeJson}
163
+ * reads that form back as UTC.
164
+ */
165
+ declare const sqlTimestampEncodeJson: (value: Date) => JsonValue;
166
+ declare const sqlTimestampDecodeJson: (json: JsonValue) => Date;
167
+ declare const sqlTimestampRenderOutputType: (typeParams: {
168
+ readonly precision?: number;
169
+ }) => string;
170
+ //#endregion
171
+ //#region src/ast/sql-codecs.d.ts
172
+ type LengthParams = {
173
+ readonly length?: number;
174
+ };
175
+ type PrecisionParams = {
176
+ readonly precision?: number;
177
+ };
178
+ declare class SqlTextCodec extends CodecImpl<typeof SQL_TEXT_CODEC_ID, readonly ['equality', 'order', 'textual'], string, string> {
179
+ encode(value: string, _ctx: CodecCallContext): Promise<string>;
180
+ decode(wire: string, _ctx: CodecCallContext): Promise<string>;
181
+ encodeJson(value: string): JsonValue;
182
+ decodeJson(json: JsonValue): string;
183
+ }
184
+ declare class SqlTextDescriptor extends CodecDescriptorImpl<void> {
185
+ readonly codecId: "sql/text@1";
186
+ readonly traits: readonly ["equality", "order", "textual"];
187
+ readonly targetTypes: readonly ["text"];
188
+ readonly paramsSchema: StandardSchemaV1<void>;
189
+ factory(): (ctx: CodecInstanceContext) => SqlTextCodec;
190
+ }
191
+ declare const sqlTextDescriptor: SqlTextDescriptor;
192
+ declare const sqlTextColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqlTextCodec, undefined>;
193
+ declare class SqlIntCodec extends CodecImpl<typeof SQL_INT_CODEC_ID, readonly ['equality', 'order', 'numeric'], number, number> {
194
+ encode(value: number, _ctx: CodecCallContext): Promise<number>;
195
+ decode(wire: number, _ctx: CodecCallContext): Promise<number>;
196
+ encodeJson(value: number): JsonValue;
197
+ decodeJson(json: JsonValue): number;
198
+ }
199
+ declare class SqlIntDescriptor extends CodecDescriptorImpl<void> {
200
+ readonly codecId: "sql/int@1";
201
+ readonly traits: readonly ["equality", "order", "numeric"];
202
+ readonly targetTypes: readonly ["int"];
203
+ readonly paramsSchema: StandardSchemaV1<void>;
204
+ factory(): (ctx: CodecInstanceContext) => SqlIntCodec;
205
+ }
206
+ declare const sqlIntDescriptor: SqlIntDescriptor;
207
+ declare const sqlIntColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqlIntCodec, undefined>;
208
+ declare class SqlFloatCodec extends CodecImpl<typeof SQL_FLOAT_CODEC_ID, readonly ['equality', 'order', 'numeric'], number, number> {
209
+ encode(value: number, _ctx: CodecCallContext): Promise<number>;
210
+ decode(wire: number, _ctx: CodecCallContext): Promise<number>;
211
+ encodeJson(value: number): JsonValue;
212
+ decodeJson(json: JsonValue): number;
213
+ }
214
+ declare class SqlFloatDescriptor extends CodecDescriptorImpl<void> {
215
+ readonly codecId: "sql/float@1";
216
+ readonly traits: readonly ["equality", "order", "numeric"];
217
+ readonly targetTypes: readonly ["float"];
218
+ readonly paramsSchema: StandardSchemaV1<void>;
219
+ factory(): (ctx: CodecInstanceContext) => SqlFloatCodec;
220
+ }
221
+ declare const sqlFloatDescriptor: SqlFloatDescriptor;
222
+ declare const sqlFloatColumn: () => import("@prisma/orm-framework/components/codec").ColumnSpec<SqlFloatCodec, undefined>;
223
+ declare class SqlCharCodec extends CodecImpl<typeof SQL_CHAR_CODEC_ID, readonly ['equality', 'order', 'textual'], string, string> {
224
+ encode(value: string, _ctx: CodecCallContext): Promise<string>;
225
+ decode(wire: string, _ctx: CodecCallContext): Promise<string>;
226
+ encodeJson(value: string): JsonValue;
227
+ decodeJson(json: JsonValue): string;
228
+ }
229
+ declare class SqlCharDescriptor extends CodecDescriptorImpl<LengthParams> {
230
+ readonly codecId: "sql/char@1";
231
+ readonly traits: readonly ["equality", "order", "textual"];
232
+ readonly targetTypes: readonly ["char"];
233
+ readonly paramsSchema: StandardSchemaV1<LengthParams>;
234
+ renderOutputType(params: LengthParams): string | undefined;
235
+ factory(_params: LengthParams): (ctx: CodecInstanceContext) => SqlCharCodec;
236
+ }
237
+ declare const sqlCharDescriptor: SqlCharDescriptor;
238
+ declare const sqlCharColumn: (params?: LengthParams) => import("@prisma/orm-framework/components/codec").ColumnSpec<SqlCharCodec, LengthParams>;
239
+ declare class SqlVarcharCodec extends CodecImpl<typeof SQL_VARCHAR_CODEC_ID, readonly ['equality', 'order', 'textual'], string, string> {
240
+ encode(value: string, _ctx: CodecCallContext): Promise<string>;
241
+ decode(wire: string, _ctx: CodecCallContext): Promise<string>;
242
+ encodeJson(value: string): JsonValue;
243
+ decodeJson(json: JsonValue): string;
244
+ }
245
+ declare class SqlVarcharDescriptor extends CodecDescriptorImpl<LengthParams> {
246
+ readonly codecId: "sql/varchar@1";
247
+ readonly traits: readonly ["equality", "order", "textual"];
248
+ readonly targetTypes: readonly ["varchar"];
249
+ readonly paramsSchema: StandardSchemaV1<LengthParams>;
250
+ renderOutputType(params: LengthParams): string | undefined;
251
+ factory(_params: LengthParams): (ctx: CodecInstanceContext) => SqlVarcharCodec;
252
+ }
253
+ declare const sqlVarcharDescriptor: SqlVarcharDescriptor;
254
+ declare const sqlVarcharColumn: (params?: LengthParams) => import("@prisma/orm-framework/components/codec").ColumnSpec<SqlVarcharCodec, LengthParams>;
255
+ declare class SqlTimestampCodec extends CodecImpl<typeof SQL_TIMESTAMP_CODEC_ID, readonly ['equality', 'order'], Date, Date> {
256
+ encode(value: Date, _ctx: CodecCallContext): Promise<Date>;
257
+ decode(wire: Date, _ctx: CodecCallContext): Promise<Date>;
258
+ encodeJson(value: Date): JsonValue;
259
+ decodeJson(json: JsonValue): Date;
260
+ }
261
+ declare class SqlTimestampDescriptor extends CodecDescriptorImpl<PrecisionParams> {
262
+ readonly codecId: "sql/timestamp@1";
263
+ readonly traits: readonly ["equality", "order"];
264
+ readonly targetTypes: readonly ["timestamp"];
265
+ readonly paramsSchema: StandardSchemaV1<PrecisionParams>;
266
+ renderOutputType(params: PrecisionParams): string | undefined;
267
+ factory(_params: PrecisionParams): (ctx: CodecInstanceContext) => SqlTimestampCodec;
268
+ }
269
+ declare const sqlTimestampDescriptor: SqlTimestampDescriptor;
270
+ declare const sqlTimestampColumn: (params?: PrecisionParams) => import("@prisma/orm-framework/components/codec").ColumnSpec<SqlTimestampCodec, PrecisionParams>;
271
+ //#endregion
272
+ //#region src/ast/util.d.ts
273
+ declare function compact<T extends Record<string, unknown>>(o: T): T;
274
+ /**
275
+ * Walks an AST's parameter references in first-encounter order and dedupes
276
+ * by ParamRef identity. The single canonical helper used by every consumer
277
+ * that aligns `plan.params` with metadata-by-index — the SQL builder lane,
278
+ * the SQL ORM client, the SQL runtime encoder, and the Postgres renderer's
279
+ * `$N` index map — so the four walks cannot drift in dedupe semantics.
280
+ *
281
+ * SQLite's `?`-placeholder renderer intentionally does NOT use this helper
282
+ * because it needs one params entry per occurrence in the SQL.
283
+ */
284
+ declare function collectOrderedParamRefs(ast: AnyQueryAst): ReadonlyArray<AnyParamRef>;
285
+ //#endregion
286
+ export { sqlTextDescriptor as $, SqlTimestampDescriptor as A, sqlCharRenderOutputType as B, SqlIntCodec as C, SqlTextCodec as D, SqlQueryable as E, compact as F, sqlFloatEncode as G, sqlFloatDecode as H, sqlCharColumn as I, sqlIntDecode as J, sqlFloatEncodeJson as K, sqlCharDecode as L, SqlVarcharCodec as M, SqlVarcharDescriptor as N, SqlTextDescriptor as O, collectOrderedParamRefs as P, sqlTextDecode as Q, sqlCharDescriptor as R, SqlFloatDescriptor as S, SqlQueryResult as T, sqlFloatDecodeJson as U, sqlFloatColumn as V, sqlFloatDescriptor as W, sqlIntEncode as X, sqlIntDescriptor as Y, sqlTextColumn as Z, SqlDriver as _, LowererContext as a, sqlTimestampEncode as at, SqlExplainResult as b, SQL_CHAR_CODEC_ID as c, sqlVarcharColumn as ct, SQL_TEXT_CODEC_ID as d, sqlVarcharEncode as dt, sqlTextEncode as et, SQL_TIMESTAMP_CODEC_ID as f, sqlVarcharRenderOutputType as ft, SqlConnection as g, SqlCharDescriptor as h, Lowerer as i, sqlTimestampDescriptor as it, SqlTransaction as j, SqlTimestampCodec as k, SQL_FLOAT_CODEC_ID as l, sqlVarcharDecode as lt, SqlCharCodec as m, AdapterProfile as n, sqlTimestampDecode as nt, MarkerReadResult as o, sqlTimestampEncodeJson as ot, SQL_VARCHAR_CODEC_ID as p, sqlIntColumn as q, AdapterTarget as r, sqlTimestampDecodeJson as rt, PreparedExecuteRequest as s, sqlTimestampRenderOutputType as st, Adapter as t, sqlTimestampColumn as tt, SQL_INT_CODEC_ID as u, sqlVarcharDescriptor as ut, SqlDriverState as v, SqlIntDescriptor as w, SqlFloatCodec as x, SqlExecuteRequest as y, sqlCharEncode as z };
287
+ //# sourceMappingURL=ast-DSuzmsWn.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ast-DSuzmsWn.d.mts","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/exports/ast.d.mts"],"mappings":";;;;;;;;;;;;;;;;UAeU;WACC;WACA;;UAED;WACC;WACA;WACA;IACP;IACA,IAAI;;;UAGE,eAAe,MAAM;WACpB,MAAM,cAAc;WACpB;YACC;;UAEF,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,QAAQ,MAAM,yBAAyB,SAAS,oBAAoB,cAAc;EAClF,gBAAgB,MAAM,yBAAyB,SAAS,yBAAyB,cAAc;EAC/F,SAAS,SAAS,oBAAoB,QAAQ;EAC9C,MAAM,MAAM,yBAAyB,aAAa,8BAA8B,QAAQ,eAAe;;;;KAIpG;;;;;;;KAOA;WACM;WACA,QAAQ;;WAER;;WAEA;;UAED,eAAe,gBAAgB,gBAAgB;WAC9C;WACA,QAAQ;WACR,cAAc;;;;EAIvB,WAAW,WAAW,eAAe,QAAQ;;UAErC,eA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 import { resolveEnumCodecId } from "@prisma/orm-framework/components/authoring";
3
+ import { blindCast } from "@prisma/orm-framework/utils/casts";
4
+ //#region ../../../2-sql/9-family/dist/authoring-type-constructors-Blqoa2Ua.mjs
5
+ const sqlFamilyEntityTypes = { enum: {
6
+ kind: "entity",
7
+ discriminator: "enum",
8
+ output: { factory: (block, ctx) => {
9
+ const sourceId = ctx.sourceId ?? "unknown";
10
+ const diagnostics = ctx.diagnostics;
11
+ const resolved = resolveEnumCodecId(block, ctx);
12
+ if (resolved === void 0) return;
13
+ const { codecId, codecSpan } = resolved;
14
+ const nativeType = ctx.codecLookup?.targetTypesFor(codecId)?.[0];
15
+ if (nativeType === void 0) {
16
+ diagnostics?.push({
17
+ code: "PSL_EXTENSION_INVALID_VALUE",
18
+ message: `enum "${block.name}" @@type references unknown codec "${codecId}"`,
19
+ sourceId,
20
+ span: codecSpan
21
+ });
22
+ return;
23
+ }
24
+ const codec = ctx.codecLookup?.get(codecId);
25
+ if (codec === void 0) {
26
+ diagnostics?.push({
27
+ code: "PSL_EXTENSION_INVALID_VALUE",
28
+ message: `enum "${block.name}" @@type codec "${codecId}" resolves in targetTypesFor but is absent from codecLookup.get`,
29
+ sourceId,
30
+ span: codecSpan
31
+ });
32
+ return;
33
+ }
34
+ const seenValues = /* @__PURE__ */ new Set();
35
+ const members = [];
36
+ let memberError = false;
37
+ for (const [memberName, paramValue] of Object.entries(block.parameters)) {
38
+ let value;
39
+ if (paramValue.kind === "bare") try {
40
+ value = codec.decodeJson(memberName);
41
+ } catch {
42
+ diagnostics?.push({
43
+ code: "PSL_ENUM_BARE_MEMBER_NON_STRING_CODEC",
44
+ message: `enum "${block.name}" member "${memberName}" has no value and codec "${codecId}" does not accept a bare name as input`,
45
+ sourceId,
46
+ span: paramValue.span
47
+ });
48
+ memberError = true;
49
+ continue;
50
+ }
51
+ else if (paramValue.kind === "value") {
52
+ let jsonValue;
53
+ try {
54
+ jsonValue = JSON.parse(paramValue.raw);
55
+ } catch {
56
+ diagnostics?.push({
57
+ code: "PSL_EXTENSION_INVALID_VALUE",
58
+ message: `enum "${block.name}" member "${memberName}" value "${paramValue.raw}" is not valid JSON`,
59
+ sourceId,
60
+ span: paramValue.span
61
+ });
62
+ memberError = true;
63
+ continue;
64
+ }
65
+ try {
66
+ value = codec.decodeJson(blindCast(jsonValue));
67
+ } catch (err) {
68
+ const reason = err instanceof Error ? err.message : String(err);
69
+ diagnostics?.push({
70
+ code: "PSL_EXTENSION_INVALID_VALUE",
71
+ message: `enum "${block.name}" member "${memberName}" was rejected by codec "${codecId}": ${reason}`,
72
+ sourceId,
73
+ span: paramValue.span
74
+ });
75
+ memberError = true;
76
+ continue;
77
+ }
78
+ } else continue;
79
+ const valueKey = String(value);
80
+ if (seenValues.has(valueKey)) {
81
+ diagnostics?.push({
82
+ code: "PSL_ENUM_DUPLICATE_MEMBER_VALUE",
83
+ message: `enum "${block.name}": duplicate member value "${valueKey}"`,
84
+ sourceId,
85
+ span: paramValue.span
86
+ });
87
+ memberError = true;
88
+ continue;
89
+ }
90
+ seenValues.add(valueKey);
91
+ members.push({
92
+ name: memberName,
93
+ value
94
+ });
95
+ }
96
+ if (memberError) return void 0;
97
+ if (members.length === 0) {
98
+ diagnostics?.push({
99
+ code: "PSL_ENUM_MISSING_TYPE",
100
+ message: `enum "${block.name}" must have at least one member`,
101
+ sourceId,
102
+ span: block.span
103
+ });
104
+ return;
105
+ }
106
+ return enumType(block.name, {
107
+ codecId,
108
+ nativeType
109
+ }, ...members.map((m) => ({
110
+ name: m.name,
111
+ value: m.value
112
+ })));
113
+ } }
114
+ } };
115
+ const sqlFamilyPslBlockDescriptors = { enum: {
116
+ kind: "pslBlock",
117
+ keyword: "enum",
118
+ discriminator: "enum",
119
+ name: { required: true },
120
+ parameters: {},
121
+ variadicParameters: true
122
+ } };
123
+ /**
124
+ * Family-level SQL authoring field presets.
125
+ *
126
+ * Only presets whose codec IDs align with the ID generator metadata live here
127
+ * (see `@internal/ids`). These presets are target-agnostic because the
128
+ * generator metadata fixes their codec/native-type to `sql/char@1`
129
+ * (`character`) regardless of target, and the PSL interpreter lets the
130
+ * generator override the scalar descriptor.
131
+ *
132
+ * The `uuidString` / `id.uuidv4String` / `id.uuidv7String` presets store UUID
133
+ * values as `character(36)` — portable across all SQL targets. For a native
134
+ * Postgres `uuid` column use `uuidNative` / `id.uuidv4Native` /
135
+ * `id.uuidv7Native` from `@internal/target-postgres`.
136
+ *
137
+ * Scalar presets that map to target-specific codecs (e.g. `text`, `int`,
138
+ * `boolean`, `dateTime`) are contributed by the target pack (see
139
+ * `postgresAuthoringFieldPresets` in `@internal/target-postgres`) so the
140
+ * TS callback surface and the PSL scalar surface lower to byte-identical
141
+ * contracts for the active target.
142
+ */
143
+ const CHARACTER_CODEC_ID = "sql/char@1";
144
+ const CHARACTER_NATIVE_TYPE = "character";
145
+ const nanoidOptionsArgument = {
146
+ kind: "object",
147
+ optional: true,
148
+ properties: { size: {
149
+ kind: "number",
150
+ optional: true,
151
+ integer: true,
152
+ minimum: 2,
153
+ maximum: 255
154
+ } }
155
+ };
156
+ const sqlFamilyAuthoringFieldPresets = {
157
+ uuidString: {
158
+ kind: "fieldPreset",
159
+ output: {
160
+ codecId: CHARACTER_CODEC_ID,
161
+ nativeType: CHARACTER_NATIVE_TYPE,
162
+ typeParams: { length: 36 }
163
+ }
164
+ },
165
+ ulid: {
166
+ kind: "fieldPreset",
167
+ output: {
168
+ codecId: CHARACTER_CODEC_ID,
169
+ nativeType: CHARACTER_NATIVE_TYPE,
170
+ typeParams: { length: 26 }
171
+ }
172
+ },
173
+ nanoid: {
174
+ kind: "fieldPreset",
175
+ args: [nanoidOptionsArgument],
176
+ output: {
177
+ codecId: CHARACTER_CODEC_ID,
178
+ nativeType: CHARACTER_NATIVE_TYPE,
179
+ typeParams: { length: {
180
+ kind: "arg",
181
+ index: 0,
182
+ path: ["size"],
183
+ default: 21
184
+ } }
185
+ }
186
+ },
187
+ cuid2: {
188
+ kind: "fieldPreset",
189
+ output: {
190
+ codecId: CHARACTER_CODEC_ID,
191
+ nativeType: CHARACTER_NATIVE_TYPE,
192
+ typeParams: { length: 24 }
193
+ }
194
+ },
195
+ ksuid: {
196
+ kind: "fieldPreset",
197
+ output: {
198
+ codecId: CHARACTER_CODEC_ID,
199
+ nativeType: CHARACTER_NATIVE_TYPE,
200
+ typeParams: { length: 27 }
201
+ }
202
+ },
203
+ id: {
204
+ uuidv4String: {
205
+ kind: "fieldPreset",
206
+ output: {
207
+ codecId: CHARACTER_CODEC_ID,
208
+ nativeType: CHARACTER_NATIVE_TYPE,
209
+ typeParams: { length: 36 },
210
+ executionDefaults: { onCreate: {
211
+ kind: "generator",
212
+ id: "uuidv4"
213
+ } },
214
+ id: true
215
+ }
216
+ },
217
+ uuidv7String: {
218
+ kind: "fieldPreset",
219
+ output: {
220
+ codecId: CHARACTER_CODEC_ID,
221
+ nativeType: CHARACTER_NATIVE_TYPE,
222
+ typeParams: { length: 36 },
223
+ executionDefaults: { onCreate: {
224
+ kind: "generator",
225
+ id: "uuidv7"
226
+ } },
227
+ id: true
228
+ }
229
+ },
230
+ ulid: {
231
+ kind: "fieldPreset",
232
+ output: {
233
+ codecId: CHARACTER_CODEC_ID,
234
+ nativeType: CHARACTER_NATIVE_TYPE,
235
+ typeParams: { length: 26 },
236
+ executionDefaults: { onCreate: {
237
+ kind: "generator",
238
+ id: "ulid"
239
+ } },
240
+ id: true
241
+ }
242
+ },
243
+ nanoid: {
244
+ kind: "fieldPreset",
245
+ args: [nanoidOptionsArgument],
246
+ output: {
247
+ codecId: CHARACTER_CODEC_ID,
248
+ nativeType: CHARACTER_NATIVE_TYPE,
249
+ typeParams: { length: {
250
+ kind: "arg",
251
+ index: 0,
252
+ path: ["size"],
253
+ default: 21
254
+ } },
255
+ executionDefaults: { onCreate: {
256
+ kind: "generator",
257
+ id: "nanoid",
258
+ params: { size: {
259
+ kind: "arg",
260
+ index: 0,
261
+ path: ["size"]
262
+ } }
263
+ } },
264
+ id: true
265
+ }
266
+ },
267
+ cuid2: {
268
+ kind: "fieldPreset",
269
+ output: {
270
+ codecId: CHARACTER_CODEC_ID,
271
+ nativeType: CHARACTER_NATIVE_TYPE,
272
+ typeParams: { length: 24 },
273
+ executionDefaults: { onCreate: {
274
+ kind: "generator",
275
+ id: "cuid2"
276
+ } },
277
+ id: true
278
+ }
279
+ },
280
+ ksuid: {
281
+ kind: "fieldPreset",
282
+ output: {
283
+ codecId: CHARACTER_CODEC_ID,
284
+ nativeType: CHARACTER_NATIVE_TYPE,
285
+ typeParams: { length: 27 },
286
+ executionDefaults: { onCreate: {
287
+ kind: "generator",
288
+ id: "ksuid"
289
+ } },
290
+ id: true
291
+ }
292
+ }
293
+ }
294
+ };
295
+ const sqlFamilyAuthoringTypes = { sql: { String: {
296
+ kind: "typeConstructor",
297
+ args: [{
298
+ kind: "number",
299
+ name: "length",
300
+ integer: true,
301
+ minimum: 1,
302
+ maximum: 10485760
303
+ }],
304
+ output: {
305
+ codecId: "sql/varchar@1",
306
+ nativeType: "character varying",
307
+ typeParams: { length: {
308
+ kind: "arg",
309
+ index: 0
310
+ } }
311
+ }
312
+ } } };
313
+ //#endregion
314
+ export { sqlFamilyPslBlockDescriptors as i, sqlFamilyAuthoringTypes as n, sqlFamilyEntityTypes as r, sqlFamilyAuthoringFieldPresets as t };
315
+
316
+ //# sourceMappingURL=authoring-type-constructors-Blqoa2Ua-DyCmD6mp.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authoring-type-constructors-Blqoa2Ua-DyCmD6mp.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,QAA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