@prisma/orm-family-sql 8.0.0-rc.14-dev.29 → 8.0.0-rc.14-dev.30
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.
- package/dist/{aggregate-descriptor-registry-CJF2KxUb.mjs → aggregate-descriptor-registry-B3RG0Zom.mjs} +2 -2
- package/dist/{aggregate-descriptor-registry-CJF2KxUb.mjs.map → aggregate-descriptor-registry-B3RG0Zom.mjs.map} +1 -1
- package/dist/{ast-dPjHeaNs.d.mts → ast-BUbHXpzG.d.mts} +7 -105
- package/dist/ast-BUbHXpzG.d.mts.map +1 -0
- package/dist/ast-CQZn-6Wd.mjs +310 -0
- package/dist/ast-CQZn-6Wd.mjs.map +1 -0
- package/dist/{authoring-entity-types-CZ-vdwYS-BfyaoH53.d.mts → authoring-entity-types-CZ-vdwYS-C25VGQVB.d.mts} +2 -2
- package/dist/{authoring-entity-types-CZ-vdwYS-BfyaoH53.d.mts.map → authoring-entity-types-CZ-vdwYS-C25VGQVB.d.mts.map} +1 -1
- package/dist/{authoring-type-constructors-DIyheCzv-BSrAEZsD.mjs → authoring-type-constructors-dihiQslc-hldmqa1r.mjs} +22 -28
- package/dist/authoring-type-constructors-dihiQslc-hldmqa1r.mjs.map +1 -0
- package/dist/builder.d.mts +2 -2
- package/dist/builder__runtime.d.mts +6 -6
- package/dist/builder__runtime.mjs +3 -3
- package/dist/builder__types.d.mts +2 -2
- package/dist/{codec-descriptor-registry-u6_e6WfA.mjs → codec-descriptor-registry-BW0REwkz.mjs} +2 -11
- package/dist/{codec-descriptor-registry-u6_e6WfA.mjs.map → codec-descriptor-registry-BW0REwkz.mjs.map} +1 -1
- package/dist/{config-types-DNRmpGNL.mjs → config-types-ump1oN82.mjs} +8 -4
- package/dist/config-types-ump1oN82.mjs.map +1 -0
- package/dist/{contract-builder-Br5TlHMh.d.mts → contract-builder-BXxFihYc.d.mts} +16 -11
- package/dist/contract-builder-BXxFihYc.d.mts.map +1 -0
- package/dist/{contract-builder-C3MYW38z.mjs → contract-builder-CQvwPGAW.mjs} +29 -24
- package/dist/contract-builder-CQvwPGAW.mjs.map +1 -0
- package/dist/contract-emitter.d.mts +1 -1
- package/dist/contract-emitter.mjs +1 -1
- package/dist/contract-prisma7__provider.d.mts +2 -1
- package/dist/contract-prisma7__provider.d.mts.map +1 -1
- package/dist/contract-prisma7__provider.mjs +16 -9
- package/dist/contract-prisma7__provider.mjs.map +1 -1
- package/dist/contract-psl.d.mts +4 -4
- package/dist/contract-psl.d.mts.map +1 -1
- package/dist/contract-psl.mjs +1 -1
- package/dist/contract-psl__attribute-specs.d.mts +2 -2
- package/dist/contract-psl__attribute-specs.mjs +1 -1
- package/dist/contract-psl__provider.mjs +2 -2
- package/dist/contract-psl__provider.mjs.map +1 -1
- package/dist/contract-ts.d.mts +1 -1
- package/dist/contract-ts.mjs +3 -3
- package/dist/contract-ts__config-types.mjs +1 -1
- package/dist/contract-ts__contract-builder.d.mts +1 -1
- package/dist/contract-ts__contract-builder.mjs +2 -2
- package/dist/contract.d.mts +5 -3
- package/dist/contract.mjs +11 -8
- package/dist/contract__data-type-support.d.mts +2 -0
- package/dist/contract__data-type-support.mjs +2 -0
- package/dist/contract__data-type.d.mts +2 -0
- package/dist/contract__data-type.mjs +3 -0
- package/dist/contract__entity-kinds.mjs +1 -1
- package/dist/contract__factories.mjs +1 -1
- package/dist/contract__sql-expression.d.mts +1 -1
- package/dist/contract__sql-expression.mjs +1 -1
- package/dist/contract__types.mjs +3 -3
- package/dist/contract__validators.d.mts +1 -1
- package/dist/contract__validators.mjs +2 -2
- package/dist/{control-BYOcSVih.mjs → control-BYT1Lgtm.mjs} +76 -117
- package/dist/control-BYT1Lgtm.mjs.map +1 -0
- package/dist/{control-DL9y6GfG.d.mts → control-Bpk8PtSL.d.mts} +40 -128
- package/dist/control-Bpk8PtSL.d.mts.map +1 -0
- package/dist/{control-adapter-WoXvPNj4-D64oWh9I.d.mts → control-adapter-BVN98SzR-C-H_T7s-.d.mts} +8 -20
- package/dist/control-adapter-BVN98SzR-C-H_T7s-.d.mts.map +1 -0
- package/dist/control-adapter-DSGwSagr.d.mts +1 -0
- package/dist/data-type-CAPmGXg9.mjs +297 -0
- package/dist/data-type-CAPmGXg9.mjs.map +1 -0
- package/dist/data-type-CpqSDmR_.d.mts +113 -0
- package/dist/data-type-CpqSDmR_.d.mts.map +1 -0
- package/dist/data-type-support-B_Dr1cxB.d.mts +92 -0
- package/dist/data-type-support-B_Dr1cxB.d.mts.map +1 -0
- package/dist/{ast-5hifzBHC.mjs → data-type-support-rpD1jyZd.mjs} +6 -329
- package/dist/data-type-support-rpD1jyZd.mjs.map +1 -0
- package/dist/{db-DLjWu9-f-BjAFEKe9.d.mts → db-DLjWu9-f-T8QbxDGY.d.mts} +6 -6
- package/dist/{db-DLjWu9-f-BjAFEKe9.d.mts.map → db-DLjWu9-f-T8QbxDGY.d.mts.map} +1 -1
- package/dist/{ddl-types-B48YmQSt-DLCUHORB.d.mts → ddl-types-BUqZdoZK-vyWnW2PW.d.mts} +3 -3
- package/dist/{ddl-types-B48YmQSt-DLCUHORB.d.mts.map → ddl-types-BUqZdoZK-vyWnW2PW.d.mts.map} +1 -1
- package/dist/{derived-checks-C_y1rk6O-DwCaGICl.mjs → derived-checks-CILnJKoa-D42YRW01.mjs} +48 -25
- package/dist/derived-checks-CILnJKoa-D42YRW01.mjs.map +1 -0
- package/dist/diff-B16bL_IR.mjs.map +1 -1
- package/dist/{diff-CJI5hKWL.d.mts → diff-BsHizC0z.d.mts} +6 -6
- package/dist/{diff-CJI5hKWL.d.mts.map → diff-BsHizC0z.d.mts.map} +1 -1
- package/dist/{dist-BdePIXOu.mjs → dist-C_HYPisk.mjs} +3 -3
- package/dist/{dist-BdePIXOu.mjs.map → dist-C_HYPisk.mjs.map} +1 -1
- package/dist/{entity-kinds-ChX-owgJ-DqGkW6Dq.mjs → entity-kinds-BNQFeECV-BOJmOArY.mjs} +4 -4
- package/dist/{entity-kinds-ChX-owgJ-DqGkW6Dq.mjs.map → entity-kinds-BNQFeECV-BOJmOArY.mjs.map} +1 -1
- package/dist/{expression-n9sdM2RA.d.mts → expression-Bf_MkeQS.d.mts} +3 -3
- package/dist/{expression-n9sdM2RA.d.mts.map → expression-Bf_MkeQS.d.mts.map} +1 -1
- package/dist/{expression-vAEOvq7J.mjs → expression-Bv8X6-Qg.mjs} +2 -2
- package/dist/{expression-vAEOvq7J.mjs.map → expression-Bv8X6-Qg.mjs.map} +1 -1
- package/dist/{factories-BnzIZxE1.mjs → factories-D6haP7by.mjs} +2 -2
- package/dist/{factories-BnzIZxE1.mjs.map → factories-D6haP7by.mjs.map} +1 -1
- package/dist/family.d.mts +13 -13
- package/dist/family.mjs +7 -7
- package/dist/family__control-adapter.d.mts +2 -2
- package/dist/family__control.d.mts +5 -5
- package/dist/family__control.mjs +4 -4
- package/dist/family__diff.d.mts +3 -3
- package/dist/family__diff.mjs +1 -1
- package/dist/family__ir.mjs +1 -1
- package/dist/family__migration.d.mts +1 -1
- package/dist/family__pack.d.mts +1 -1
- package/dist/family__pack.mjs +2 -2
- package/dist/family__pack.mjs.map +1 -1
- package/dist/family__psl-build.d.mts +2 -2
- package/dist/family__psl-build.mjs +1 -1
- package/dist/family__psl-infer.d.mts +1 -1
- package/dist/family__verify.mjs +1 -1
- package/dist/{index-BoQtw7lz.d.mts → index-D2ho4por.d.mts} +9 -9
- package/dist/{index-BoQtw7lz.d.mts.map → index-D2ho4por.d.mts.map} +1 -1
- package/dist/index-type-validation-COH4d78M.mjs.map +1 -1
- package/dist/{interpreter-C8cP92FD-BfjuQvb1.mjs → interpreter-CDflex9x-Bx84tcl5.mjs} +33 -29
- package/dist/interpreter-CDflex9x-Bx84tcl5.mjs.map +1 -0
- package/dist/{middleware-CuGBptK0-xrXqWhc7.d.mts → middleware-BtMX6nSF-DUnzMyGl.d.mts} +3 -3
- package/dist/{middleware-CuGBptK0-xrXqWhc7.d.mts.map → middleware-BtMX6nSF-DUnzMyGl.d.mts.map} +1 -1
- package/dist/middleware-pBMsszaq.d.mts +1 -0
- package/dist/{migration-CSEh4QPu.d.mts → migration-oet2BBxc.d.mts} +2 -2
- package/dist/{migration-CSEh4QPu.d.mts.map → migration-oet2BBxc.d.mts.map} +1 -1
- package/dist/numeral-text-Cqu87pVe-DJCqBaSC.mjs +20 -0
- package/dist/numeral-text-Cqu87pVe-DJCqBaSC.mjs.map +1 -0
- package/dist/orm-client.d.mts +11 -11
- package/dist/orm-client.mjs +6 -6
- package/dist/{pack-C3mqZevM.d.mts → pack-C-JTs3HQ.d.mts} +2 -16
- package/dist/pack-C-JTs3HQ.d.mts.map +1 -0
- package/dist/plan-BbkBYyGR.d.mts +2 -0
- package/dist/{plan-B7g2kDfQ-Dth0BeTe.d.mts → plan-BlQITcbP-DvbDlHXA.d.mts} +3 -3
- package/dist/plan-BlQITcbP-DvbDlHXA.d.mts.map +1 -0
- package/dist/{prepared-statement-Cv54gpY_-DbHPSN5Q.d.mts → prepared-statement-Cv54gpY_-dg9Qr8sK.d.mts} +14 -14
- package/dist/{prepared-statement-Cv54gpY_-DbHPSN5Q.d.mts.map → prepared-statement-Cv54gpY_-dg9Qr8sK.d.mts.map} +1 -1
- package/dist/{psl-build-zkIJwkdq.mjs → psl-build-B6nw6MAM.mjs} +18 -17
- package/dist/psl-build-B6nw6MAM.mjs.map +1 -0
- package/dist/{psl-build-BnM1ZTyK.d.mts → psl-build-BrW7lQMO.d.mts} +2 -2
- package/dist/psl-build-BrW7lQMO.d.mts.map +1 -0
- package/dist/{psl-column-resolution-sNpXQygQ-BBo4tqwO.d.mts → psl-column-resolution-BegCa1-t-BJJ9WB1c.d.mts} +4 -5
- package/dist/psl-column-resolution-BegCa1-t-BJJ9WB1c.d.mts.map +1 -0
- package/dist/{psl-field-resolution-_o74AUE4-C-vTNklI.mjs → psl-field-resolution-CKMm6Gx0-CdzpWIV5.mjs} +69 -17
- package/dist/psl-field-resolution-CKMm6Gx0-CdzpWIV5.mjs.map +1 -0
- package/dist/{psl-infer-BwbmOInx.d.mts → psl-infer-DzH2Khty.d.mts} +4 -4
- package/dist/{psl-infer-BwbmOInx.d.mts.map → psl-infer-DzH2Khty.d.mts.map} +1 -1
- package/dist/query-lane-context-CLtywrTY.d.mts +1 -0
- package/dist/{query-lane-context-BSmWfohZ-Jn0AbOQt.d.mts → query-lane-context-OSV9X636-CcPv1TZj.d.mts} +6 -10
- package/dist/query-lane-context-OSV9X636-CcPv1TZj.d.mts.map +1 -0
- package/dist/relational-core.d.mts +12 -12
- package/dist/relational-core.mjs +4 -4
- package/dist/relational-core__aggregate-descriptor-registry.d.mts +1 -1
- package/dist/relational-core__aggregate-descriptor-registry.mjs +1 -1
- package/dist/relational-core__ast.d.mts +4 -4
- package/dist/relational-core__ast.mjs +3 -3
- package/dist/relational-core__codec-descriptor-registry.d.mts +2 -2
- package/dist/relational-core__codec-descriptor-registry.mjs +1 -1
- package/dist/relational-core__contract-free.d.mts +4 -2
- package/dist/relational-core__contract-free.d.mts.map +1 -1
- package/dist/relational-core__contract-free.mjs +10 -4
- package/dist/relational-core__contract-free.mjs.map +1 -1
- package/dist/relational-core__expression.d.mts +1 -1
- package/dist/relational-core__expression.mjs +1 -1
- package/dist/relational-core__middleware.d.mts +2 -2
- package/dist/relational-core__plan.d.mts +3 -3
- package/dist/relational-core__query-lane-context.d.mts +2 -2
- package/dist/relational-core__types.d.mts +2 -2
- package/dist/runtime.d.mts +4 -4
- package/dist/runtime.mjs +6 -6
- package/dist/runtime__internal__prepared-query.d.mts +1 -1
- package/dist/{schema-differ-DpG_gnur-CUh9eZM-.d.mts → schema-differ-DpG_gnur-if2KDxZC.d.mts} +3 -3
- package/dist/{schema-differ-DpG_gnur-CUh9eZM-.d.mts.map → schema-differ-DpG_gnur-if2KDxZC.d.mts.map} +1 -1
- package/dist/schema-ir.d.mts +2 -2
- package/dist/schema-ir.mjs +1 -1
- package/dist/schema-ir__types.d.mts +3 -3
- package/dist/schema-ir__types.mjs +1 -1
- package/dist/{schema-verify-Xmpe1PGb-Bcd_2avJ.mjs → schema-verify-lPfqY_aE-CZCO8my1.mjs} +32 -6
- package/dist/schema-verify-lPfqY_aE-CZCO8my1.mjs.map +1 -0
- package/dist/{serialized-index-B5X7s-oX-CVs8-5Rw.mjs → serialized-index-BeGqqsrC-PymnV1h-.mjs} +3 -3
- package/dist/{serialized-index-B5X7s-oX-CVs8-5Rw.mjs.map → serialized-index-BeGqqsrC-PymnV1h-.mjs.map} +1 -1
- package/dist/{sql-contract-serializer-C90xg7_q-C_Okh4NM.mjs → sql-contract-serializer-C90xg7_q-4UVEMTWO.mjs} +5 -5
- package/dist/{sql-contract-serializer-C90xg7_q-C_Okh4NM.mjs.map → sql-contract-serializer-C90xg7_q-4UVEMTWO.mjs.map} +1 -1
- package/dist/{sql-execution-plan-Db0j752I-dJ-JGxbD.d.mts → sql-execution-plan-CV6K4o9N-DAIvJbkb.d.mts} +3 -3
- package/dist/sql-execution-plan-CV6K4o9N-DAIvJbkb.d.mts.map +1 -0
- package/dist/{sql-expression-BXx0Ilj-.mjs → sql-expression-D7GsLgDM.mjs} +2 -2
- package/dist/{sql-expression-BXx0Ilj-.mjs.map → sql-expression-D7GsLgDM.mjs.map} +1 -1
- package/dist/{sql-expression-D_hbJOgM.d.mts → sql-expression-DE_MTt3T.d.mts} +2 -2
- package/dist/{sql-expression-D_hbJOgM.d.mts.map → sql-expression-DE_MTt3T.d.mts.map} +1 -1
- package/dist/{storage-table-ADhJ4Imk-CwcQVFXC.mjs → storage-table-BwwDKQkD-BN9cZrGX.mjs} +2 -2
- package/dist/{storage-table-ADhJ4Imk-CwcQVFXC.mjs.map → storage-table-BwwDKQkD-BN9cZrGX.mjs.map} +1 -1
- package/dist/{type-map-DpfnXzun-DZaSuJXh.d.mts → type-map-DmIbL4o--BfPMblbZ.d.mts} +4 -4
- package/dist/type-map-DmIbL4o--BfPMblbZ.d.mts.map +1 -0
- package/dist/{types-BPi4d3WI-D8PIEqBU.mjs → types-BLnsGaJf-m-qTW3ox.mjs} +3 -3
- package/dist/{types-BPi4d3WI-D8PIEqBU.mjs.map → types-BLnsGaJf-m-qTW3ox.mjs.map} +1 -1
- package/dist/{types-ByKpjyVh-CtYwWrbL.d.mts → types-CcGO_LSh-BKHiJvvA.d.mts} +8 -26
- package/dist/types-CcGO_LSh-BKHiJvvA.d.mts.map +1 -0
- package/dist/{types-Z-l6gAVD.mjs → types-Cn4JEguu.mjs} +2 -2
- package/dist/{types-Z-l6gAVD.mjs.map → types-Cn4JEguu.mjs.map} +1 -1
- package/dist/{types-DAoMCSPl-D2ajBTpK.mjs → types-CyPuXMTn-pumFirZ6.mjs} +4 -7
- package/dist/types-CyPuXMTn-pumFirZ6.mjs.map +1 -0
- package/dist/types-DZA5xxDT.d.mts +1 -0
- package/dist/{types-BzpC_V7p-DyBYmK1f.d.mts → types-Da1Y_OI7-BPyFwdFU.d.mts} +4 -43
- package/dist/types-Da1Y_OI7-BPyFwdFU.d.mts.map +1 -0
- package/dist/{types-BGHABElw-C5dqoVCg.d.mts → types-DpwLgzPO-Cb9nQ-Wt.d.mts} +6 -6
- package/dist/{types-BGHABElw-C5dqoVCg.d.mts.map → types-DpwLgzPO-Cb9nQ-Wt.d.mts.map} +1 -1
- package/dist/{types-Yui2yFf6-DYiGm9ET.d.mts → types-Dskga3R1-BtXuRmbf.d.mts} +3 -3
- package/dist/{types-Yui2yFf6-DYiGm9ET.d.mts.map → types-Dskga3R1-BtXuRmbf.d.mts.map} +1 -1
- package/dist/types-QvcS13Qc.d.mts +1 -0
- package/dist/{validators-D1wQns12.d.mts → validators-B-4g3vwP.d.mts} +2 -2
- package/dist/{validators-D1wQns12.d.mts.map → validators-B-4g3vwP.d.mts.map} +1 -1
- package/dist/{validators-Cx6UXIBf.mjs → validators-IGdAEEIM.mjs} +4 -4
- package/dist/{validators-Cx6UXIBf.mjs.map → validators-IGdAEEIM.mjs.map} +1 -1
- package/dist/{verify-BVk5bjdH-BXgGLM2U.mjs → verify-BVk5bjdH-dq5M4iIh.mjs} +2 -2
- package/dist/{verify-BVk5bjdH-BXgGLM2U.mjs.map → verify-BVk5bjdH-dq5M4iIh.mjs.map} +1 -1
- package/package.json +20 -18
- package/dist/ast-5hifzBHC.mjs.map +0 -1
- package/dist/ast-dPjHeaNs.d.mts.map +0 -1
- package/dist/authoring-type-constructors-DIyheCzv-BSrAEZsD.mjs.map +0 -1
- package/dist/config-types-DNRmpGNL.mjs.map +0 -1
- package/dist/contract-builder-Br5TlHMh.d.mts.map +0 -1
- package/dist/contract-builder-C3MYW38z.mjs.map +0 -1
- package/dist/control-BYOcSVih.mjs.map +0 -1
- package/dist/control-DL9y6GfG.d.mts.map +0 -1
- package/dist/control-adapter-C1hjk3Ic.d.mts +0 -1
- package/dist/control-adapter-WoXvPNj4-D64oWh9I.d.mts.map +0 -1
- package/dist/derived-checks-C_y1rk6O-DwCaGICl.mjs.map +0 -1
- package/dist/interpreter-C8cP92FD-BfjuQvb1.mjs.map +0 -1
- package/dist/middleware-CN4vQuOi.d.mts +0 -1
- package/dist/pack-C3mqZevM.d.mts.map +0 -1
- package/dist/plan-B7g2kDfQ-Dth0BeTe.d.mts.map +0 -1
- package/dist/plan-CrKSowWJ.d.mts +0 -2
- package/dist/psl-build-BnM1ZTyK.d.mts.map +0 -1
- package/dist/psl-build-zkIJwkdq.mjs.map +0 -1
- package/dist/psl-column-resolution-sNpXQygQ-BBo4tqwO.d.mts.map +0 -1
- package/dist/psl-field-resolution-_o74AUE4-C-vTNklI.mjs.map +0 -1
- package/dist/query-lane-context-BSmWfohZ-Jn0AbOQt.d.mts.map +0 -1
- package/dist/query-lane-context-DWdmmnrN.d.mts +0 -1
- package/dist/schema-verify-Xmpe1PGb-Bcd_2avJ.mjs.map +0 -1
- package/dist/sql-execution-plan-Db0j752I-dJ-JGxbD.d.mts.map +0 -1
- package/dist/type-map-DpfnXzun-DZaSuJXh.d.mts.map +0 -1
- package/dist/types-ByKpjyVh-CtYwWrbL.d.mts.map +0 -1
- package/dist/types-BzpC_V7p-DyBYmK1f.d.mts.map +0 -1
- package/dist/types-CQBRYgDW.d.mts +0 -1
- package/dist/types-DAoMCSPl-D2ajBTpK.mjs.map +0 -1
- package/dist/types-DdTdsdMn.d.mts +0 -1
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { s as enumType } from "./contract-builder-
|
|
1
|
+
import { s as enumType } from "./contract-builder-CQvwPGAW.mjs";
|
|
2
2
|
import { readEnumBlockMembers, resolveEnumCodecId } from "@prisma/orm-framework/components/authoring";
|
|
3
|
+
import { requiredParamKeys } from "@prisma/orm-framework/components/codec";
|
|
3
4
|
import { blockAttribute, jsonValue, mapBlock, str } from "@prisma/orm-framework/psl-parser";
|
|
4
|
-
//#region ../../../2-sql/9-family/dist/authoring-type-constructors-
|
|
5
|
+
//#region ../../../2-sql/9-family/dist/authoring-type-constructors-dihiQslc.mjs
|
|
5
6
|
function sqlFamilyEnumSpec() {
|
|
6
7
|
return mapBlock({
|
|
7
8
|
value: {
|
|
@@ -20,8 +21,9 @@ const sqlFamilyEntityTypes = { enum: {
|
|
|
20
21
|
const resolved = resolveEnumCodecId(block, ctx);
|
|
21
22
|
if (resolved === void 0) return;
|
|
22
23
|
const { codecId, codecSpan } = resolved;
|
|
23
|
-
const
|
|
24
|
-
|
|
24
|
+
const descriptor = ctx.codecLookup.descriptorFor(codecId);
|
|
25
|
+
const codec = ctx.codecLookup.get(codecId);
|
|
26
|
+
if (descriptor === void 0 || codec === void 0) {
|
|
25
27
|
diagnostics?.push({
|
|
26
28
|
code: "PSL_EXTENSION_INVALID_VALUE",
|
|
27
29
|
message: `enum "${block.name}" @@type references unknown codec "${codecId}"`,
|
|
@@ -30,11 +32,21 @@ const sqlFamilyEntityTypes = { enum: {
|
|
|
30
32
|
});
|
|
31
33
|
return;
|
|
32
34
|
}
|
|
33
|
-
const
|
|
34
|
-
if (
|
|
35
|
+
const dataType = ctx.dataTypeLookup.get(descriptor.dataType);
|
|
36
|
+
if (dataType === void 0) {
|
|
35
37
|
diagnostics?.push({
|
|
36
38
|
code: "PSL_EXTENSION_INVALID_VALUE",
|
|
37
|
-
message: `enum "${block.name}" @@type codec "${codecId}"
|
|
39
|
+
message: `enum "${block.name}" @@type codec "${codecId}" represents data type "${descriptor.dataType}", which no component registers`,
|
|
40
|
+
sourceId,
|
|
41
|
+
span: codecSpan
|
|
42
|
+
});
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
const [requiredParam] = requiredParamKeys(dataType);
|
|
46
|
+
if (requiredParam !== void 0) {
|
|
47
|
+
diagnostics?.push({
|
|
48
|
+
code: "PSL_ENUM_TYPE_NEEDS_PARAMETERS",
|
|
49
|
+
message: `enum "${block.name}" @@type codec "${codecId}" represents data type "${dataType.id}", which requires the parameter "${requiredParam}"; an enum block gives it none`,
|
|
38
50
|
sourceId,
|
|
39
51
|
span: codecSpan
|
|
40
52
|
});
|
|
@@ -42,10 +54,7 @@ const sqlFamilyEntityTypes = { enum: {
|
|
|
42
54
|
}
|
|
43
55
|
const members = readEnumBlockMembers(block, codecId, codec, ctx);
|
|
44
56
|
if (members === void 0) return void 0;
|
|
45
|
-
return enumType(block.name, {
|
|
46
|
-
codecId,
|
|
47
|
-
nativeType
|
|
48
|
-
}, ...members);
|
|
57
|
+
return enumType(block.name, { codecId }, ...members);
|
|
49
58
|
} }
|
|
50
59
|
} };
|
|
51
60
|
const enumTypeBlockAttribute = blockAttribute("type", {
|
|
@@ -86,7 +95,6 @@ const sqlFamilyPslBlockDescriptors = { enum: {
|
|
|
86
95
|
* contracts for the active target.
|
|
87
96
|
*/
|
|
88
97
|
const CHARACTER_CODEC_ID = "sql/char@1";
|
|
89
|
-
const CHARACTER_NATIVE_TYPE = "character";
|
|
90
98
|
const nanoidOptionsArgument = {
|
|
91
99
|
kind: "object",
|
|
92
100
|
optional: true,
|
|
@@ -103,7 +111,6 @@ const sqlFamilyAuthoringFieldPresets = {
|
|
|
103
111
|
kind: "fieldPreset",
|
|
104
112
|
output: {
|
|
105
113
|
codecId: CHARACTER_CODEC_ID,
|
|
106
|
-
nativeType: CHARACTER_NATIVE_TYPE,
|
|
107
114
|
typeParams: { length: 36 }
|
|
108
115
|
}
|
|
109
116
|
},
|
|
@@ -111,7 +118,6 @@ const sqlFamilyAuthoringFieldPresets = {
|
|
|
111
118
|
kind: "fieldPreset",
|
|
112
119
|
output: {
|
|
113
120
|
codecId: CHARACTER_CODEC_ID,
|
|
114
|
-
nativeType: CHARACTER_NATIVE_TYPE,
|
|
115
121
|
typeParams: { length: 26 }
|
|
116
122
|
}
|
|
117
123
|
},
|
|
@@ -120,7 +126,6 @@ const sqlFamilyAuthoringFieldPresets = {
|
|
|
120
126
|
args: [nanoidOptionsArgument],
|
|
121
127
|
output: {
|
|
122
128
|
codecId: CHARACTER_CODEC_ID,
|
|
123
|
-
nativeType: CHARACTER_NATIVE_TYPE,
|
|
124
129
|
typeParams: { length: {
|
|
125
130
|
kind: "arg",
|
|
126
131
|
index: 0,
|
|
@@ -133,7 +138,6 @@ const sqlFamilyAuthoringFieldPresets = {
|
|
|
133
138
|
kind: "fieldPreset",
|
|
134
139
|
output: {
|
|
135
140
|
codecId: CHARACTER_CODEC_ID,
|
|
136
|
-
nativeType: CHARACTER_NATIVE_TYPE,
|
|
137
141
|
typeParams: { length: 24 }
|
|
138
142
|
}
|
|
139
143
|
},
|
|
@@ -141,7 +145,6 @@ const sqlFamilyAuthoringFieldPresets = {
|
|
|
141
145
|
kind: "fieldPreset",
|
|
142
146
|
output: {
|
|
143
147
|
codecId: CHARACTER_CODEC_ID,
|
|
144
|
-
nativeType: CHARACTER_NATIVE_TYPE,
|
|
145
148
|
typeParams: { length: 27 }
|
|
146
149
|
}
|
|
147
150
|
},
|
|
@@ -150,7 +153,6 @@ const sqlFamilyAuthoringFieldPresets = {
|
|
|
150
153
|
kind: "fieldPreset",
|
|
151
154
|
output: {
|
|
152
155
|
codecId: CHARACTER_CODEC_ID,
|
|
153
|
-
nativeType: CHARACTER_NATIVE_TYPE,
|
|
154
156
|
typeParams: { length: 36 },
|
|
155
157
|
executionDefaults: { onCreate: {
|
|
156
158
|
kind: "generator",
|
|
@@ -163,7 +165,6 @@ const sqlFamilyAuthoringFieldPresets = {
|
|
|
163
165
|
kind: "fieldPreset",
|
|
164
166
|
output: {
|
|
165
167
|
codecId: CHARACTER_CODEC_ID,
|
|
166
|
-
nativeType: CHARACTER_NATIVE_TYPE,
|
|
167
168
|
typeParams: { length: 36 },
|
|
168
169
|
executionDefaults: { onCreate: {
|
|
169
170
|
kind: "generator",
|
|
@@ -176,7 +177,6 @@ const sqlFamilyAuthoringFieldPresets = {
|
|
|
176
177
|
kind: "fieldPreset",
|
|
177
178
|
output: {
|
|
178
179
|
codecId: CHARACTER_CODEC_ID,
|
|
179
|
-
nativeType: CHARACTER_NATIVE_TYPE,
|
|
180
180
|
typeParams: { length: 26 },
|
|
181
181
|
executionDefaults: { onCreate: {
|
|
182
182
|
kind: "generator",
|
|
@@ -190,7 +190,6 @@ const sqlFamilyAuthoringFieldPresets = {
|
|
|
190
190
|
args: [nanoidOptionsArgument],
|
|
191
191
|
output: {
|
|
192
192
|
codecId: CHARACTER_CODEC_ID,
|
|
193
|
-
nativeType: CHARACTER_NATIVE_TYPE,
|
|
194
193
|
typeParams: { length: {
|
|
195
194
|
kind: "arg",
|
|
196
195
|
index: 0,
|
|
@@ -213,7 +212,6 @@ const sqlFamilyAuthoringFieldPresets = {
|
|
|
213
212
|
kind: "fieldPreset",
|
|
214
213
|
output: {
|
|
215
214
|
codecId: CHARACTER_CODEC_ID,
|
|
216
|
-
nativeType: CHARACTER_NATIVE_TYPE,
|
|
217
215
|
typeParams: { length: 24 },
|
|
218
216
|
executionDefaults: { onCreate: {
|
|
219
217
|
kind: "generator",
|
|
@@ -226,7 +224,6 @@ const sqlFamilyAuthoringFieldPresets = {
|
|
|
226
224
|
kind: "fieldPreset",
|
|
227
225
|
output: {
|
|
228
226
|
codecId: CHARACTER_CODEC_ID,
|
|
229
|
-
nativeType: CHARACTER_NATIVE_TYPE,
|
|
230
227
|
typeParams: { length: 27 },
|
|
231
228
|
executionDefaults: { onCreate: {
|
|
232
229
|
kind: "generator",
|
|
@@ -243,13 +240,10 @@ const sqlFamilyAuthoringTypes = { sql: { String: {
|
|
|
243
240
|
args: [{
|
|
244
241
|
kind: "number",
|
|
245
242
|
name: "length",
|
|
246
|
-
integer: true
|
|
247
|
-
minimum: 1,
|
|
248
|
-
maximum: 10485760
|
|
243
|
+
integer: true
|
|
249
244
|
}],
|
|
250
245
|
output: {
|
|
251
246
|
codecId: "sql/varchar@1",
|
|
252
|
-
nativeType: "character varying",
|
|
253
247
|
typeParams: { length: {
|
|
254
248
|
kind: "arg",
|
|
255
249
|
index: 0
|
|
@@ -259,4 +253,4 @@ const sqlFamilyAuthoringTypes = { sql: { String: {
|
|
|
259
253
|
//#endregion
|
|
260
254
|
export { sqlFamilyPslBlockDescriptors as i, sqlFamilyAuthoringTypes as n, sqlFamilyEntityTypes as r, sqlFamilyAuthoringFieldPresets as t };
|
|
261
255
|
|
|
262
|
-
//# sourceMappingURL=authoring-type-constructors-
|
|
256
|
+
//# sourceMappingURL=authoring-type-constructors-dihiQslc-hldmqa1r.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authoring-type-constructors-dihiQslc-hldmqa1r.mjs","names":[],"sources":["../../../../2-sql/9-family/dist/authoring-type-constructors-dihiQslc.mjs"],"sourcesContent":["import { readEnumBlockMembers, resolveEnumCodecId } from \"@internal/framework-components/authoring\";\nimport { requiredParamKeys } from \"@internal/framework-components/codec\";\nimport { blockAttribute, jsonValue, mapBlock, str } from \"@internal/psl-parser\";\nimport { enumType } from \"@internal/sql-contract-ts/contract-builder\";\n//#region src/core/authoring-entity-types.ts\nfunction sqlFamilyEnumSpec() {\n\treturn mapBlock({\n\t\tvalue: {\n\t\t\ttype: jsonValue(),\n\t\t\tdocumentation: \"The stored member value; a bare member stores its own name.\"\n\t\t},\n\t\tallowBare: true\n\t});\n}\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 descriptor = ctx.codecLookup.descriptorFor(codecId);\n\t\tconst codec = ctx.codecLookup.get(codecId);\n\t\tif (descriptor === void 0 || 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 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 dataType = ctx.dataTypeLookup.get(descriptor.dataType);\n\t\tif (dataType === 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}\" represents data type \"${descriptor.dataType}\", which no component registers`,\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 [requiredParam] = requiredParamKeys(dataType);\n\t\tif (requiredParam !== void 0) {\n\t\t\tdiagnostics?.push({\n\t\t\t\tcode: \"PSL_ENUM_TYPE_NEEDS_PARAMETERS\",\n\t\t\t\tmessage: `enum \"${block.name}\" @@type codec \"${codecId}\" represents data type \"${dataType.id}\", which requires the parameter \"${requiredParam}\"; an enum block gives it none`,\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 members = readEnumBlockMembers(block, codecId, codec, ctx);\n\t\tif (members === void 0) return void 0;\n\t\treturn enumType(block.name, { codecId }, ...members);\n\t} }\n} };\nconst enumTypeBlockAttribute = blockAttribute(\"type\", {\n\tdocumentation: \"Selects the storage codec for this enum.\",\n\tpositional: [{\n\t\tkey: \"codecId\",\n\t\ttype: str(),\n\t\tdocumentation: \"The fully qualified codec identifier used to store enum values.\"\n\t}]\n});\nconst sqlFamilyPslBlockDescriptors = { enum: {\n\tkind: \"pslBlock\",\n\tkeyword: \"enum\",\n\tdocumentation: \"Defines an enum with named values and an inferred or explicitly selected storage codec.\",\n\tdiscriminator: \"enum\",\n\tname: { required: true },\n\tspec: sqlFamilyEnumSpec,\n\tattributes: { type: () => enumTypeBlockAttribute }\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 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\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\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\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\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\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\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\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\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\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\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\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\tdocumentation: \"Variable-length text with a required maximum character length.\",\n\targs: [{\n\t\tkind: \"number\",\n\t\tname: \"length\",\n\t\tinteger: true\n\t}],\n\toutput: {\n\t\tcodecId: \"sql/varchar@1\",\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-dihiQslc.mjs.map"],"mappings":";;;;;AAKA,SAAS,oBAAoB;CAC5B,OAAO,SAAS;EACf,OAAO;GACN,MAAM,UAAU;GAChB,eAAe;EAChB;EACA,WAAW;CACZ,CAAC;AACF;AACA,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,YAAY,cAAc,OAAO;EACxD,MAAM,QAAQ,IAAI,YAAY,IAAI,OAAO;EACzC,IAAI,eAAe,KAAK,KAAK,UAAU,KAAK,GAAG;GAC9C,aAAa,KAAK;IACjB,MAAM;IACN,SAAS,SAAS,MAAM,KAAK,qCAAqC,QAAQ;IAC1E;IACA,MAAM;GACP,CAAC;GACD;EACD;EACA,MAAM,WAAW,IAAI,eAAe,IAAI,WAAW,QAAQ;EAC3D,IAAI,aAAa,KAAK,GAAG;GACxB,aAAa,KAAK;IACjB,MAAM;IACN,SAAS,SAAS,MAAM,KAAK,kBAAkB,QAAQ,0BAA0B,WAAW,SAAS;IACrG;IACA,MAAM;GACP,CAAC;GACD;EACD;EACA,MAAM,CAAC,iBAAiB,kBAAkB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I;IACL,EAAE;IACF,IAAI;GACL;EACD;CACD;AACD;AAGA,MAAM,0BAA0B,EAAE,KAAK,EAAE,QAAQ;CAChD,MAAM;CACN,eAAe;CACf,MAAM,CAAC;EACN,MAAM;EACN,MAAM;EACN,SAAS;CACV,CAAC;CACD,QAAQ;EACP,SAAS;EACT,YAAY,EAAE,QAAQ;GACrB,MAAM;GACN,OAAO;EACR,EAAE;CACH;AACD,EAAE,EAAE"}
|
package/dist/builder.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { o as Expression, x as ScopeField } from "./expression-
|
|
2
|
-
import { T as WhereFilter, _ as SelectQuery, a as DeleteQuery, c as GatedMethod, f as QueryContext, g as Scope, h as ResolveRow, i as Db, l as GroupedQuery, s as Functions, t as AggregateFunctions, u as InsertQuery, v as Subquery, w as UpdateQuery, x as TableProxy } from "./db-DLjWu9-f-
|
|
1
|
+
import { o as Expression, x as ScopeField } from "./expression-Bf_MkeQS.mjs";
|
|
2
|
+
import { T as WhereFilter, _ as SelectQuery, a as DeleteQuery, c as GatedMethod, f as QueryContext, g as Scope, h as ResolveRow, i as Db, l as GroupedQuery, s as Functions, t as AggregateFunctions, u as InsertQuery, v as Subquery, w as UpdateQuery, x as TableProxy } from "./db-DLjWu9-f-T8QbxDGY.mjs";
|
|
3
3
|
export type { AggregateFunctions, Db, DeleteQuery, Expression, Functions, GatedMethod, GroupedQuery, InsertQuery, QueryContext, ResolveRow, Scope, ScopeField, SelectQuery, Subquery, TableProxy, UpdateQuery, WhereFilter };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { c as SqlStorage } from "./sql-storage-jJySr7bL-C_xAiyzH.mjs";
|
|
2
2
|
import "./types-B11MGgKr.mjs";
|
|
3
3
|
import { i as SqlOperationEntry } from "./index-DZbfFGBA.mjs";
|
|
4
|
-
import { c as AnyExpression } from "./types-
|
|
5
|
-
import "./ast-
|
|
6
|
-
import { l as RawCodecInferer, o as Expression, x as ScopeField } from "./expression-
|
|
7
|
-
import { S as TableProxyContract, f as QueryContext, g as Scope, i as Db, o as FieldProxy, p as RawLane, s as Functions, t as AggregateFunctions } from "./db-DLjWu9-f-
|
|
8
|
-
import { a as SqlAggregateDescriptorRegistry, n as ExecutionContext } from "./query-lane-context-
|
|
9
|
-
import "./query-lane-context-
|
|
4
|
+
import { c as AnyExpression } from "./types-Dskga3R1-BtXuRmbf.mjs";
|
|
5
|
+
import "./ast-BUbHXpzG.mjs";
|
|
6
|
+
import { l as RawCodecInferer, o as Expression, x as ScopeField } from "./expression-Bf_MkeQS.mjs";
|
|
7
|
+
import { S as TableProxyContract, f as QueryContext, g as Scope, i as Db, o as FieldProxy, p as RawLane, s as Functions, t as AggregateFunctions } from "./db-DLjWu9-f-T8QbxDGY.mjs";
|
|
8
|
+
import { a as SqlAggregateDescriptorRegistry, n as ExecutionContext } from "./query-lane-context-OSV9X636-CcPv1TZj.mjs";
|
|
9
|
+
import "./query-lane-context-CLtywrTY.mjs";
|
|
10
10
|
import { Contract } from "@prisma/orm-framework/contract/types";
|
|
11
11
|
//#region ../../../2-sql/4-lanes/sql-builder/dist/runtime/index.d.mts
|
|
12
12
|
//#region src/runtime/expression-impl.d.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as LiteralExpr, D as OrExpr, F as SubqueryExpr, H as isOrderByDirection, I as TableSource, L as UpdateAst, O as OrderByItem, P as SelectAst, S as ListExpression, T as NullCheckExpr, U as isOrderByNulls, V as isAggregateFn, _ as InsertAst, c as DeleteAst, g as IdentifierRef, j as ProjectionItem, k as ParamRef, l as DerivedTableSource, n as AndExpr, o as ColumnRef, p as ExistsExpr, r as BinaryExpr, t as AggregateExpr, y as JoinAst } from "./types-
|
|
1
|
+
import { C as LiteralExpr, D as OrExpr, F as SubqueryExpr, H as isOrderByDirection, I as TableSource, L as UpdateAst, O as OrderByItem, P as SelectAst, S as ListExpression, T as NullCheckExpr, U as isOrderByNulls, V as isAggregateFn, _ as InsertAst, c as DeleteAst, g as IdentifierRef, j as ProjectionItem, k as ParamRef, l as DerivedTableSource, n as AndExpr, o as ColumnRef, p as ExistsExpr, r as BinaryExpr, t as AggregateExpr, y as JoinAst } from "./types-BLnsGaJf-m-qTW3ox.mjs";
|
|
2
2
|
import { t as collectOrderedParamRefs } from "./util-DQQgv2j1-D6INZaRG.mjs";
|
|
3
|
-
import { i as isExpression, n as codecOf, o as toExpr, r as createRawSql } from "./expression-
|
|
4
|
-
import { n as codecRefForStorageColumn } from "./codec-descriptor-registry-
|
|
3
|
+
import { i as isExpression, n as codecOf, o as toExpr, r as createRawSql } from "./expression-Bv8X6-Qg.mjs";
|
|
4
|
+
import { n as codecRefForStorageColumn } from "./codec-descriptor-registry-BW0REwkz.mjs";
|
|
5
5
|
import { assertAnnotationsApplicable } from "@prisma/orm-framework/components/runtime";
|
|
6
6
|
//#region ../../../2-sql/4-lanes/sql-builder/dist/runtime/index.mjs
|
|
7
7
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { o as Expression, x as ScopeField } from "./expression-
|
|
2
|
-
import { C as UnboundTables, S as TableProxyContract, T as WhereFilter, _ as SelectQuery, a as DeleteQuery, b as TableNamesAcrossNamespaces, c as GatedMethod, d as Namespace, f as QueryContext, g as Scope, h as ResolveRow, i as Db, l as GroupedQuery, m as RawTagFor, n as BooleanCodecType, p as RawLane, r as ContractRawTag, s as Functions, t as AggregateFunctions, u as InsertQuery, v as Subquery, w as UpdateQuery, x as TableProxy, y as TableInAnyNamespace } from "./db-DLjWu9-f-
|
|
1
|
+
import { o as Expression, x as ScopeField } from "./expression-Bf_MkeQS.mjs";
|
|
2
|
+
import { C as UnboundTables, S as TableProxyContract, T as WhereFilter, _ as SelectQuery, a as DeleteQuery, b as TableNamesAcrossNamespaces, c as GatedMethod, d as Namespace, f as QueryContext, g as Scope, h as ResolveRow, i as Db, l as GroupedQuery, m as RawTagFor, n as BooleanCodecType, p as RawLane, r as ContractRawTag, s as Functions, t as AggregateFunctions, u as InsertQuery, v as Subquery, w as UpdateQuery, x as TableProxy, y as TableInAnyNamespace } from "./db-DLjWu9-f-T8QbxDGY.mjs";
|
|
3
3
|
export type { AggregateFunctions, BooleanCodecType, ContractRawTag, Db, DeleteQuery, Expression, Functions, GatedMethod, GroupedQuery, InsertQuery, Namespace, QueryContext, RawLane, RawTagFor, ResolveRow, Scope, ScopeField, SelectQuery, Subquery, TableInAnyNamespace, TableNamesAcrossNamespaces, TableProxy, TableProxyContract, UnboundTables, UpdateQuery, WhereFilter };
|
package/dist/{codec-descriptor-registry-u6_e6WfA.mjs → codec-descriptor-registry-BW0REwkz.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as resolveStorageTable } from "./resolve-storage-table-DZsfnzeW.mjs";
|
|
2
|
-
import { d as resolvedTypeParams, u as isStorageTypeInstance } from "./types-
|
|
2
|
+
import { d as resolvedTypeParams, u as isStorageTypeInstance } from "./types-Cn4JEguu.mjs";
|
|
3
3
|
import { structuredError } from "@prisma/orm-framework/utils/structured-error";
|
|
4
4
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
5
5
|
//#region ../../../2-sql/4-lanes/relational-core/dist/exports/codec-descriptor-registry.mjs
|
|
@@ -54,16 +54,10 @@ function codecRefForStorageColumn(storage, namespaceId, tableName, columnName) {
|
|
|
54
54
|
*/
|
|
55
55
|
function buildCodecDescriptorRegistry(allDescriptors, storage) {
|
|
56
56
|
const byId = /* @__PURE__ */ new Map();
|
|
57
|
-
const byTargetType = /* @__PURE__ */ new Map();
|
|
58
57
|
for (const descriptor of allDescriptors) {
|
|
59
58
|
if (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 } });
|
|
60
59
|
const widened = descriptor;
|
|
61
60
|
byId.set(descriptor.codecId, widened);
|
|
62
|
-
for (const targetType of descriptor.targetTypes) {
|
|
63
|
-
const list = byTargetType.get(targetType);
|
|
64
|
-
if (list) list.push(widened);
|
|
65
|
-
else byTargetType.set(targetType, [widened]);
|
|
66
|
-
}
|
|
67
61
|
}
|
|
68
62
|
return {
|
|
69
63
|
descriptorFor(codecId) {
|
|
@@ -75,13 +69,10 @@ function buildCodecDescriptorRegistry(allDescriptors, storage) {
|
|
|
75
69
|
},
|
|
76
70
|
*values() {
|
|
77
71
|
yield* byId.values();
|
|
78
|
-
},
|
|
79
|
-
byTargetType(targetType) {
|
|
80
|
-
return byTargetType.get(targetType) ?? Object.freeze([]);
|
|
81
72
|
}
|
|
82
73
|
};
|
|
83
74
|
}
|
|
84
75
|
//#endregion
|
|
85
76
|
export { codecRefForStorageColumn as n, buildCodecDescriptorRegistry as t };
|
|
86
77
|
|
|
87
|
-
//# sourceMappingURL=codec-descriptor-registry-
|
|
78
|
+
//# sourceMappingURL=codec-descriptor-registry-BW0REwkz.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codec-descriptor-registry-
|
|
1
|
+
{"version":3,"file":"codec-descriptor-registry-BW0REwkz.mjs","names":[],"sources":["../../../../2-sql/4-lanes/relational-core/dist/exports/codec-descriptor-registry.mjs"],"sourcesContent":["import { structuredError } from \"@internal/utils/structured-error\";\nimport { resolveStorageTable } from \"@internal/sql-contract/resolve-storage-table\";\nimport { isStorageTypeInstance, resolvedTypeParams } from \"@internal/sql-contract/types\";\nimport { blindCast } from \"@internal/utils/casts\";\n//#region src/codec-ref-for-column.ts\n/**\n* Derive the canonical {@link CodecRef} for a `(table, column)` pair against a {@link SqlStorage}. This is the build-time path every column-bound `ParamRef` / `ProjectionItem` uses to stamp its `codec` slot before the AST is handed to the runtime — the runtime resolver then materialises a memoised {@link import('@internal/sql-relational-core/ast').Codec} for the same `CodecRef` via `forCodecRef`.\n*\n* Resolution rules over namespace `entries.table[table].columns[column]`:\n*\n* - `typeRef` column → `{codecId, typeParams}` from `storage.types[typeRef]` (multiple columns sharing the typeRef share one ref → one memoised codec).\n* - inline `typeParams` column → `{codecId, typeParams}` from the column itself.\n* - non-parameterized column → `{codecId}` with `typeParams` undefined.\n*\n* Returns `undefined` when the table or column is unknown, or when a `typeRef` column references a `storage.types` entry that does not exist.\n*\n* `namespaceId` leads the coordinate args and is always supplied: every\n* model/table sits in an explicit namespace, so the table is resolved strictly\n* within that namespace (see {@link resolveStorageTable}).\n*/\nfunction codecRefForStorageColumn(storage, namespaceId, tableName, columnName) {\n\tconst resolved = resolveStorageTable(storage, tableName, namespaceId);\n\tif (resolved === void 0) return void 0;\n\tconst columnDef = resolved.table.columns[columnName];\n\tif (!columnDef) return void 0;\n\tconst typeParams = resolvedTypeParams(columnDef, storage.types);\n\tconst params = typeParams === void 0 ? {} : { typeParams: blindCast(typeParams) };\n\tif (columnDef.typeRef !== void 0) {\n\t\tconst instance = storage.types?.[columnDef.typeRef];\n\t\tif (!instance || !isStorageTypeInstance(instance)) return void 0;\n\t\treturn {\n\t\t\tcodecId: instance.codecId,\n\t\t\t...params\n\t\t};\n\t}\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":";;;;;;;;;;;;;;;;;;;;AAoBA,SAAS,yBAAyB,SAAS,aAAa,WAAW,YAAY;CAC9E,MAAM,WAAW,oBAAoB,SAAS,WAAW,WAAW;CACpE,IAAI,aAAa,KAAK,GAAG,OAAO,KAAK;CACrC,MAAM,YAAY,SAAS,MAAM,QAAQ;CACzC,IAAI,CAAC,WAAW,OAAO,KAAK;CAC5B,MAAM,aAAa,mBAAmB,WAAW,QAAQ,KAAK;CAC9D,MAAM,SAAS,eAAe,KAAK,IAAI,CAAC,IAAI,EAAE,YAAY,UAAU,UAAU,EAAE;CAChF,IAAI,UAAU,YAAY,KAAK,GAAG;EACjC,MAAM,WAAW,QAAQ,QAAQ,UAAU;EAC3C,IAAI,CAAC,YAAY,CAAC,sBAAsB,QAAQ,GAAG,OAAO,KAAK;EAC/D,OAAO;GACN,SAAS,SAAS;GAClB,GAAG;EACJ;CACD;CACA,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,6 +1,7 @@
|
|
|
1
|
-
import { n as buildSqlContractFromDefinition, r as contractError, t as applySqlSpecifierControlPolicy } from "./derived-checks-
|
|
2
|
-
import {
|
|
1
|
+
import { n as buildSqlContractFromDefinition, r as contractError, t as applySqlSpecifierControlPolicy } from "./derived-checks-CILnJKoa-D42YRW01.mjs";
|
|
2
|
+
import { createDataTypeLookup, emptyCodecLookup } from "@prisma/orm-framework/components/codec";
|
|
3
3
|
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
4
|
+
import { InternalError } from "@prisma/orm-framework/utils/internal-error";
|
|
4
5
|
import { ok } from "@prisma/orm-framework/utils/result";
|
|
5
6
|
import { extname } from "pathe";
|
|
6
7
|
import { pathToFileURL } from "node:url";
|
|
@@ -26,7 +27,10 @@ function emptyContract(options) {
|
|
|
26
27
|
target: options.target,
|
|
27
28
|
createNamespace: options.createNamespace,
|
|
28
29
|
models: []
|
|
29
|
-
}
|
|
30
|
+
}, {
|
|
31
|
+
...emptyCodecLookup,
|
|
32
|
+
descriptorFor: () => void 0
|
|
33
|
+
}, createDataTypeLookup([])), options.defaultControlPolicy, options.createNamespace));
|
|
30
34
|
}
|
|
31
35
|
},
|
|
32
36
|
...ifDefined("output", options.output)
|
|
@@ -61,4 +65,4 @@ function typescriptContractFromPath(contractPath, output, options) {
|
|
|
61
65
|
//#endregion
|
|
62
66
|
export { typescriptContract as n, typescriptContractFromPath as r, emptyContract as t };
|
|
63
67
|
|
|
64
|
-
//# sourceMappingURL=config-types-
|
|
68
|
+
//# sourceMappingURL=config-types-ump1oN82.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config-types-ump1oN82.mjs","names":[],"sources":["../../../../2-sql/2-authoring/contract-ts/dist/config-types.mjs"],"sourcesContent":["import { i as contractError, n as buildSqlContractFromDefinition, t as applySqlSpecifierControlPolicy } from \"./derived-checks-CILnJKoa.mjs\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { createDataTypeLookup, emptyCodecLookup } from \"@internal/framework-components/codec\";\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,G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,8 @@ import { i as IndexTypeRegistration } from "./index-types-DPVhsW0v-D-BikM4h.mjs"
|
|
|
11
11
|
import "./index-types-CNhHgKHi.mjs";
|
|
12
12
|
import { AuthoringArgumentDescriptor, AuthoringFieldPresetDescriptor, AuthoringTypeConstructorDescriptor, AuthoringWarning } from "@prisma/orm-framework/components/authoring";
|
|
13
13
|
import { StorageType } from "@prisma/orm-framework/components/ir";
|
|
14
|
+
import { CodecLookupWithDescriptors, ColumnTypeDescriptor, DataTypeLookup } from "@prisma/orm-framework/components/codec";
|
|
14
15
|
import { ColumnDefault, Contract, ContractEnum, ContractRelation, ContractValueObject, ControlPolicy, ExecutionMutationDefaultPhases, ExecutionMutationDefaultValue, NamespaceId, StorageHashBase } from "@prisma/orm-framework/contract/types";
|
|
15
|
-
import { CodecLookupWithDescriptors, ColumnTypeDescriptor } from "@prisma/orm-framework/components/codec";
|
|
16
16
|
import { ExtensionPackRef, FamilyPackRef, TargetPackRef } from "@prisma/orm-framework/components/components";
|
|
17
17
|
import { BoundEnumType, CodecInput, CodecInput as CodecInput$1, CodecTypeMap, CodecTypeMap as CodecTypeMap$1, EntityHelpersFromNamespace, EnumMember, EnumTypeHandle, ExtractAuthoringNamespaceFromPack, ForeignKeyDefaultsState, MergeExtensionAuthoringNamespaces, ResolveTemplateValue, TupleFromArgumentDescriptors, bindEnumType, enumType, member } from "@prisma/orm-framework/contract-authoring";
|
|
18
18
|
//#region ../../../2-sql/2-authoring/contract-ts/dist/contract-builder.d.mts
|
|
@@ -927,7 +927,10 @@ type ContractInput<Family extends FamilyPackRef<string> = FamilyPackRef<string>,
|
|
|
927
927
|
readonly createNamespace: (input: SqlNamespaceInput) => SqlNamespaceBase;
|
|
928
928
|
readonly types?: Types;
|
|
929
929
|
readonly models?: Models;
|
|
930
|
-
|
|
930
|
+
/** The codecs of the packs the contract is authored with; a column's database type is its codec's data type's. */
|
|
931
|
+
readonly codecLookup: CodecLookupWithDescriptors;
|
|
932
|
+
/** The data types of the packs the contract is authored with. */
|
|
933
|
+
readonly dataTypeLookup: DataTypeLookup;
|
|
931
934
|
/**
|
|
932
935
|
* Domain enum handles authored via `enumType()`. Each handle lowers to a
|
|
933
936
|
* domain `enum` entry and a storage `valueSet` entry in the target's
|
|
@@ -1177,10 +1180,9 @@ type ResolveNamedStorageType<Definition, TypeRef> = ResolveNamedStorageTypeKey<D
|
|
|
1177
1180
|
type EnumFieldHandle<FieldState> = [FieldTypeRefOf<FieldState>] extends [never] ? never : FieldTypeRefOf<FieldState> extends EnumTypeHandle ? FieldTypeRefOf<FieldState> : never;
|
|
1178
1181
|
type EnumHandleDescriptor<Handle> = Handle extends {
|
|
1179
1182
|
readonly codecId: infer CodecId extends string;
|
|
1180
|
-
readonly nativeType: infer NativeType extends string;
|
|
1181
1183
|
} ? {
|
|
1182
1184
|
readonly codecId: CodecId;
|
|
1183
|
-
readonly nativeType:
|
|
1185
|
+
readonly nativeType: DescriptorNativeType<Handle>;
|
|
1184
1186
|
} : never;
|
|
1185
1187
|
type ResolveFieldDescriptor<Definition, FieldState> = [EnumFieldHandle<FieldState>] extends [never] ? [FieldDescriptorOf<FieldState>] extends [never] ? ResolveNamedStorageType<Definition, FieldTypeRefOf<FieldState>> : FieldDescriptorOf<FieldState> : EnumHandleDescriptor<EnumFieldHandle<FieldState>>;
|
|
1186
1188
|
type ResolveFieldColumnTypeRef<Definition, FieldState> = [EnumFieldHandle<FieldState>] extends [never] ? [FieldTypeRefOf<FieldState>] extends [never] ? DescriptorTypeRef<FieldDescriptorOf<FieldState>> : ResolveNamedStorageTypeKey<Definition, FieldTypeRefOf<FieldState>> : undefined;
|
|
@@ -1359,7 +1361,7 @@ type MergeExtensionEntityNamespaces<Extensions> = MergeExtensionAuthoringNamespa
|
|
|
1359
1361
|
type StorageTypeFromDescriptor<Descriptor extends AuthoringTypeConstructorDescriptor, Args extends readonly unknown[]> = {
|
|
1360
1362
|
readonly kind: 'codec-instance';
|
|
1361
1363
|
readonly codecId: ResolveTemplateValue<Descriptor['output']['codecId'], Args>;
|
|
1362
|
-
readonly nativeType:
|
|
1364
|
+
readonly nativeType: string;
|
|
1363
1365
|
} & (Descriptor['output'] extends {
|
|
1364
1366
|
readonly typeParams: infer TypeParams extends Record<string, unknown>;
|
|
1365
1367
|
} ? {
|
|
@@ -1400,7 +1402,7 @@ type ComposedAuthoringHelpers<Family extends FamilyPackRef<string>, Target exten
|
|
|
1400
1402
|
};
|
|
1401
1403
|
//#endregion
|
|
1402
1404
|
//#region src/build-contract.d.ts
|
|
1403
|
-
declare function buildSqlContractFromDefinition(definition: ContractDefinition, codecLookup
|
|
1405
|
+
declare function buildSqlContractFromDefinition(definition: ContractDefinition, codecLookup: CodecLookupWithDescriptors, dataTypeLookup: DataTypeLookup): Contract<SqlStorage>;
|
|
1404
1406
|
//#endregion
|
|
1405
1407
|
//#region src/contract-builder.d.ts
|
|
1406
1408
|
type ModelLike = {
|
|
@@ -1428,7 +1430,8 @@ type ContractDefinition$1<Family extends FamilyPackRef<string>, Target extends T
|
|
|
1428
1430
|
readonly createNamespace: (input: SqlNamespaceInput) => SqlNamespaceBase;
|
|
1429
1431
|
readonly types?: Types;
|
|
1430
1432
|
readonly models?: Models;
|
|
1431
|
-
readonly codecLookup
|
|
1433
|
+
readonly codecLookup: CodecLookupWithDescriptors;
|
|
1434
|
+
readonly dataTypeLookup: DataTypeLookup;
|
|
1432
1435
|
readonly enums?: Enums;
|
|
1433
1436
|
readonly entities?: readonly PackEntityHandle[];
|
|
1434
1437
|
};
|
|
@@ -1444,7 +1447,8 @@ type ContractScaffold<Family extends FamilyPackRef<string>, Target extends Targe
|
|
|
1444
1447
|
readonly createNamespace: (input: SqlNamespaceInput) => SqlNamespaceBase;
|
|
1445
1448
|
readonly types?: never;
|
|
1446
1449
|
readonly models?: never;
|
|
1447
|
-
readonly codecLookup
|
|
1450
|
+
readonly codecLookup: CodecLookupWithDescriptors;
|
|
1451
|
+
readonly dataTypeLookup: DataTypeLookup;
|
|
1448
1452
|
readonly enums?: Enums;
|
|
1449
1453
|
readonly entities?: readonly PackEntityHandle[];
|
|
1450
1454
|
};
|
|
@@ -1464,7 +1468,8 @@ type BoundDefinitionInput<Types extends Record<string, StorageTypeInstance> = Re
|
|
|
1464
1468
|
readonly createNamespace: (input: SqlNamespaceInput) => SqlNamespaceBase;
|
|
1465
1469
|
readonly types?: Types;
|
|
1466
1470
|
readonly models?: Models;
|
|
1467
|
-
readonly codecLookup
|
|
1471
|
+
readonly codecLookup: CodecLookupWithDescriptors;
|
|
1472
|
+
readonly dataTypeLookup: DataTypeLookup;
|
|
1468
1473
|
readonly enums?: Record<string, EnumTypeHandle>;
|
|
1469
1474
|
readonly entities?: readonly PackEntityHandle[];
|
|
1470
1475
|
};
|
|
@@ -1500,7 +1505,7 @@ declare function defineContract<const Family extends FamilyPackRef<string>, cons
|
|
|
1500
1505
|
* `ContractInput`'s `Extensions` parameter defaults to `undefined`, but lowering
|
|
1501
1506
|
* reads the extension-pack record at runtime, so the input is widened here.
|
|
1502
1507
|
*/
|
|
1503
|
-
type LoweringInput = Omit<ContractInput, 'extensions'> & {
|
|
1508
|
+
type LoweringInput = Omit<ContractInput, 'extensions' | 'codecLookup' | 'dataTypeLookup'> & {
|
|
1504
1509
|
readonly extensions?: Record<string, ExtensionPackRef<'sql', string>> | undefined;
|
|
1505
1510
|
};
|
|
1506
1511
|
declare function buildContractDefinition(definition: LoweringInput): ContractDefinition;
|
|
@@ -1521,4 +1526,4 @@ declare function autoincrement(): ColumnDefault;
|
|
|
1521
1526
|
declare function sql(strings: TemplateStringsArray, ...values: readonly never[]): ColumnDefault;
|
|
1522
1527
|
//#endregion
|
|
1523
1528
|
export { ScalarMemberNode as A, buildSqlContractFromDefinition as B, ManyOptions as C, PrimaryKeyNode as D, ModelNode as E, ValueObjectNode as F, field as G, defineContract as H, autoincrement as I, model as J, isValueObjectMember as K, bindEnumType as L, UniqueConstraintNode as M, ValueObjectFieldNode as N, RelationNode as O, ValueObjectMemberNode as P, storedAsListColumn as Q, buildBoundContract as R, IndexNode as S, ModelLike as T, enumType as U, check as V, extensionModel as W, rel as X, now as Y, sql as Z, ExtractCodecTypesFromPack as _, CheckNode as a, IndexConstraint as b, ColumnRef as c, ContractInput as d, ContractModelBuilder as f, EnumTypeHandle as g, EnumMember as h, BoundEnumType as i, TargetFieldRef as j, ScalarFieldBuilder as k, ComposedAuthoringHelpers as l, DeferredIndexExpression as m, AuthoredColumnDefault as n, CodecInput$1 as o, DeferredIndexColumn as p, member as q, AuthoredColumnDefaultLiteralValue as r, CodecTypeMap$1 as s, AttachedEntities as t, ContractDefinition as u, FieldNode as v, MergeEnums as w, IndexExpressionInput as x, ForeignKeyNode as y, buildContractDefinition as z };
|
|
1524
|
-
//# sourceMappingURL=contract-builder-
|
|
1529
|
+
//# sourceMappingURL=contract-builder-BXxFihYc.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract-builder-BXxFihYc.d.mts","names":[],"sources":["../../../../2-sql/2-authoring/contract-ts/dist/contract-builder.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA0BK,mBAAmB,SAAS,eAAe,SAAS,eAAe,SAAS;;;;KAI5E;KACA,wBAAwB;WAClB;WACA,OAAO;;;;;;;WAOP;;;KAGN,uBAAuB,KAAK;;;;UAIvB;WACC;WACA,YAAY;WACZ;WACA;WACA;;WAEA,iBAAiB;;UAElB,kBAAkB;WACjB,YAAY;WACZ;WACA,UAAU;WACV,oBAAoB;;;;;;;WAOpB,mBAAmB;;UAEpB;WACC;WACA;;UAED;WACC;WACA;;;KAGN;;WAEM;WACA;;WAEA;;WAEA;;KAEN,YAAY,oBAAoB;;WAE1B;WACA;;WAEA;;WAEA;;;;;;;KAON;WACM;WACA;WACA;;UAED;WACC;WACA;aACE;aACA;aACA;;;;;;;aAOA;;;;;;aAMA;;WAEF;WACA,WAAW;WACX,WAAW;WACX;WACA;;UAED;WACC;WACA;;;;;WAKA;;;;;;;;WAQA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