@prisma/orm-family-sql 8.0.0-rc.16-dev.8 → 8.0.0-rc.16-dev.10
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/{ast-Bf6J9_ra.d.mts → ast-Bmb-2vbO.d.mts} +3 -3
- package/dist/{ast-Bf6J9_ra.d.mts.map → ast-Bmb-2vbO.d.mts.map} +1 -1
- package/dist/{authoring-entity-types-CZ-vdwYS-Bq3LXsCn.d.mts → authoring-entity-types-CZ-vdwYS-BLYHcBXG.d.mts} +2 -2
- package/dist/{authoring-entity-types-CZ-vdwYS-Bq3LXsCn.d.mts.map → authoring-entity-types-CZ-vdwYS-BLYHcBXG.d.mts.map} +1 -1
- package/dist/{authoring-type-constructors-0Iv2zdwS-CVl4womm.mjs → authoring-type-constructors-0Iv2zdwS-ClKI8Uuk.mjs} +2 -2
- package/dist/{authoring-type-constructors-0Iv2zdwS-CVl4womm.mjs.map → authoring-type-constructors-0Iv2zdwS-ClKI8Uuk.mjs.map} +1 -1
- package/dist/builder.d.mts +2 -2
- package/dist/builder__runtime.d.mts +9 -9
- package/dist/builder__runtime.mjs +1 -1
- package/dist/builder__types.d.mts +2 -2
- package/dist/{codec-descriptor-registry-D7bl9ayf.mjs → codec-descriptor-registry-CdIIOkuE.mjs} +2 -2
- package/dist/{codec-descriptor-registry-D7bl9ayf.mjs.map → codec-descriptor-registry-CdIIOkuE.mjs.map} +1 -1
- package/dist/{config-types-DeIF6WyF.mjs → config-types-D0sxpKAN.mjs} +2 -2
- package/dist/{config-types-DeIF6WyF.mjs.map → config-types-D0sxpKAN.mjs.map} +1 -1
- package/dist/{config-types-Cag6qJnA.d.mts → config-types-DB6gRJ5K.d.mts} +4 -4
- package/dist/{config-types-Cag6qJnA.d.mts.map → config-types-DB6gRJ5K.d.mts.map} +1 -1
- package/dist/{contract-builder-BaJMQFAc.d.mts → contract-builder-V5pFHDv3.d.mts} +14 -11
- package/dist/contract-builder-V5pFHDv3.d.mts.map +1 -0
- package/dist/{contract-builder-BlFrYr97.mjs → contract-builder-tEax3I2q.mjs} +4 -4
- package/dist/{contract-builder-BlFrYr97.mjs.map → contract-builder-tEax3I2q.mjs.map} +1 -1
- package/dist/contract-emitter.mjs +1 -1
- package/dist/contract-prisma7__provider.d.mts +2 -2
- package/dist/contract-prisma7__provider.mjs +36 -8
- package/dist/contract-prisma7__provider.mjs.map +1 -1
- package/dist/contract-psl.d.mts +3 -3
- package/dist/contract-psl.mjs +1 -1
- package/dist/contract-psl__attribute-specs.d.mts +4 -4
- package/dist/contract-psl__attribute-specs.d.mts.map +1 -1
- package/dist/contract-psl__attribute-specs.mjs +1 -1
- package/dist/contract-psl__provider.d.mts +2 -2
- package/dist/contract-psl__provider.mjs +2 -2
- package/dist/contract-psl__provider.mjs.map +1 -1
- package/dist/contract-ts.d.mts +3 -3
- package/dist/contract-ts.mjs +3 -3
- package/dist/contract-ts__config-types.d.mts +1 -1
- package/dist/contract-ts__config-types.mjs +1 -1
- package/dist/contract-ts__contract-builder.d.mts +2 -2
- package/dist/contract-ts__contract-builder.mjs +2 -2
- package/dist/{contract-view-Cd6_tdxU.d.mts → contract-view-C1xX3yIj.d.mts} +2 -2
- package/dist/{contract-view-Cd6_tdxU.d.mts.map → contract-view-C1xX3yIj.d.mts.map} +1 -1
- package/dist/contract.d.mts +14 -14
- package/dist/contract.mjs +9 -8
- package/dist/contract__contract-view.d.mts +1 -1
- package/dist/contract__entity-kinds.d.mts +1 -1
- package/dist/contract__entity-kinds.mjs +1 -1
- package/dist/contract__factories.d.mts +1 -1
- package/dist/contract__factories.mjs +1 -1
- package/dist/contract__foreign-key-materialization.d.mts +2 -2
- package/dist/contract__foreign-key-materialization.mjs +3 -2
- package/dist/contract__index-type-validation.d.mts +1 -1
- package/dist/contract__referential-action-sql.d.mts +1 -1
- package/dist/contract__resolve-storage-table.d.mts +1 -1
- package/dist/contract__types.d.mts +6 -6
- 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-BkyDhucB.d.mts → control-B3Mb21Md.d.mts} +16 -16
- package/dist/{control-BkyDhucB.d.mts.map → control-B3Mb21Md.d.mts.map} +1 -1
- package/dist/{control-BRbds4vn.mjs → control-C5Yy0n3w.mjs} +10 -10
- package/dist/{control-BRbds4vn.mjs.map → control-C5Yy0n3w.mjs.map} +1 -1
- package/dist/control-adapter-BXQ29_fa.d.mts +1 -0
- package/dist/{control-adapter-CkFfBVei-Ba9JNrCN.d.mts → control-adapter-CkFfBVei-BLYeKcLW.d.mts} +6 -6
- package/dist/{control-adapter-CkFfBVei-Ba9JNrCN.d.mts.map → control-adapter-CkFfBVei-BLYeKcLW.d.mts.map} +1 -1
- package/dist/{db-D7R5zKiH-SEM04lcK.d.mts → db-D7R5zKiH-P7Tg4ZXk.d.mts} +9 -9
- package/dist/{db-D7R5zKiH-SEM04lcK.d.mts.map → db-D7R5zKiH-P7Tg4ZXk.d.mts.map} +1 -1
- package/dist/{ddl-types-DtKZjNtN-6TxFf4bH.d.mts → ddl-types-DtKZjNtN-CByECwns.d.mts} +4 -4
- package/dist/{ddl-types-DtKZjNtN-6TxFf4bH.d.mts.map → ddl-types-DtKZjNtN-CByECwns.d.mts.map} +1 -1
- package/dist/{derived-checks-DdguQPYm-BP57ljP8.mjs → derived-checks-D5zdlyyh-CPofdm1W.mjs} +30 -20
- package/dist/{derived-checks-DdguQPYm-BP57ljP8.mjs.map → derived-checks-D5zdlyyh-CPofdm1W.mjs.map} +1 -1
- package/dist/{derived-checks-DpPkO6Dt-BituyKFg.d.mts → derived-checks-DpPkO6Dt-D3M7YEr2.d.mts} +3 -3
- package/dist/{derived-checks-DpPkO6Dt-BituyKFg.d.mts.map → derived-checks-DpPkO6Dt-D3M7YEr2.d.mts.map} +1 -1
- package/dist/{diff-DMOqiT2h.d.mts → diff-CBqsNkxe.d.mts} +6 -6
- package/dist/{diff-DMOqiT2h.d.mts.map → diff-CBqsNkxe.d.mts.map} +1 -1
- package/dist/{dist-7hmkNQGd.mjs → dist-Dm_hQ-hh.mjs} +2 -2
- package/dist/{dist-7hmkNQGd.mjs.map → dist-Dm_hQ-hh.mjs.map} +1 -1
- package/dist/{entity-kinds-DCwkg9t7.d.mts → entity-kinds--HvqT50S.d.mts} +2 -2
- package/dist/{entity-kinds-DCwkg9t7.d.mts.map → entity-kinds--HvqT50S.d.mts.map} +1 -1
- package/dist/{entity-kinds-JlqzyFoo-kIaAUFyK.mjs → entity-kinds-O3V1K26U-B8TUrsX2.mjs} +16 -5
- package/dist/entity-kinds-O3V1K26U-B8TUrsX2.mjs.map +1 -0
- package/dist/{expression-B-QXMOmY.d.mts → expression-DE893va7.d.mts} +7 -7
- package/dist/{expression-B-QXMOmY.d.mts.map → expression-DE893va7.d.mts.map} +1 -1
- package/dist/{factories-BsUyFxsk.mjs → factories-Bp41Aity.mjs} +4 -3
- package/dist/factories-Bp41Aity.mjs.map +1 -0
- package/dist/{factories-CgVRbL8l.d.mts → factories-DzLBAAvj.d.mts} +4 -4
- package/dist/{factories-CgVRbL8l.d.mts.map → factories-DzLBAAvj.d.mts.map} +1 -1
- package/dist/family.d.mts +13 -13
- package/dist/family.mjs +6 -6
- package/dist/family__control-adapter.d.mts +2 -2
- package/dist/family__control.d.mts +4 -4
- package/dist/family__control.mjs +3 -3
- package/dist/family__diff.d.mts +2 -2
- package/dist/family__diff.mjs +1 -1
- package/dist/family__ir.d.mts +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__psl-build.mjs +1 -1
- package/dist/family__psl-infer.d.mts +1 -1
- package/dist/family__psl-infer.mjs +1 -1
- package/dist/family__runtime.d.mts +2 -2
- package/dist/foreign-key-materialization-Cv3q8Pix.mjs +278 -0
- package/dist/foreign-key-materialization-Cv3q8Pix.mjs.map +1 -0
- package/dist/foreign-key-materialization-D0Ltg78T.d.mts +96 -0
- package/dist/foreign-key-materialization-D0Ltg78T.d.mts.map +1 -0
- package/dist/{foreign-key-C-iTPuRT-C9ip8zFx.d.mts → foreign-key-qkDFfG8t-Fyrzd0VI.d.mts} +20 -4
- package/dist/foreign-key-qkDFfG8t-Fyrzd0VI.d.mts.map +1 -0
- package/dist/{index-qOLTnfYz.d.mts → index-CnpTmyXs.d.mts} +3 -3
- package/dist/{index-qOLTnfYz.d.mts.map → index-CnpTmyXs.d.mts.map} +1 -1
- package/dist/index-equivalence-DswCiq5l-C7wLMPwF.mjs +109 -0
- package/dist/index-equivalence-DswCiq5l-C7wLMPwF.mjs.map +1 -0
- package/dist/{index-DYjWQAcJ.d.mts → index-oNRBExeI.d.mts} +11 -11
- package/dist/{index-DYjWQAcJ.d.mts.map → index-oNRBExeI.d.mts.map} +1 -1
- package/dist/{index-type-validation-BHppm9U-.d.mts → index-type-validation-B925ye4q.d.mts} +3 -3
- package/dist/{index-type-validation-BHppm9U-.d.mts.map → index-type-validation-B925ye4q.d.mts.map} +1 -1
- package/dist/{interpreter-BF5Xrf3W-bdklH78q.mjs → interpreter-DlG-2o64-DmykcFbp.mjs} +64 -17
- package/dist/interpreter-DlG-2o64-DmykcFbp.mjs.map +1 -0
- package/dist/{ir-BYHqe2mj.d.mts → ir-BPrf_vgX.d.mts} +3 -3
- package/dist/{ir-BYHqe2mj.d.mts.map → ir-BPrf_vgX.d.mts.map} +1 -1
- package/dist/middleware-DwaZ6s12.d.mts +1 -0
- package/dist/{middleware-mLwvcOLS-6Y52seRP.d.mts → middleware-mLwvcOLS-SaqhgsmA.d.mts} +2 -2
- package/dist/{middleware-mLwvcOLS-6Y52seRP.d.mts.map → middleware-mLwvcOLS-SaqhgsmA.d.mts.map} +1 -1
- package/dist/{migration-C5HGygKM.d.mts → migration-C_J49WKy.d.mts} +4 -4
- package/dist/{migration-C5HGygKM.d.mts.map → migration-C_J49WKy.d.mts.map} +1 -1
- package/dist/operations.d.mts +1 -1
- package/dist/orm-client.d.mts +15 -15
- package/dist/orm-client.mjs +1 -1
- package/dist/{pack-l0vLQrO8.d.mts → pack-DZtuLikU.d.mts} +3 -3
- package/dist/{pack-l0vLQrO8.d.mts.map → pack-DZtuLikU.d.mts.map} +1 -1
- package/dist/plan-Dhl03MtT.d.mts +2 -0
- package/dist/{plan-cGEaSXHv-2F5y-Dpy.d.mts → plan-cGEaSXHv-BeW-cC5v.d.mts} +4 -4
- package/dist/{plan-cGEaSXHv-2F5y-Dpy.d.mts.map → plan-cGEaSXHv-BeW-cC5v.d.mts.map} +1 -1
- package/dist/{prepared-statement-YtgdlN7e-DBJtJAm7.d.mts → prepared-statement-YtgdlN7e-CI1fD5IM.d.mts} +16 -16
- package/dist/{prepared-statement-YtgdlN7e-DBJtJAm7.d.mts.map → prepared-statement-YtgdlN7e-CI1fD5IM.d.mts.map} +1 -1
- package/dist/{psl-build-Di-cBOCv.mjs → psl-build-B5iMVWHu.mjs} +2 -2
- package/dist/{psl-build-Di-cBOCv.mjs.map → psl-build-B5iMVWHu.mjs.map} +1 -1
- package/dist/{psl-column-resolution-CNtNJ7g7-CR_auHUV.d.mts → psl-column-resolution-CNtNJ7g7-CEuutj8I.d.mts} +2 -2
- package/dist/{psl-column-resolution-CNtNJ7g7-CR_auHUV.d.mts.map → psl-column-resolution-CNtNJ7g7-CEuutj8I.d.mts.map} +1 -1
- package/dist/{psl-field-resolution-DUCrDnuq-DSxPrd-4.mjs → psl-field-resolution-BW0ZuqBd-Dv18ERa7.mjs} +6 -6
- package/dist/psl-field-resolution-BW0ZuqBd-Dv18ERa7.mjs.map +1 -0
- package/dist/{psl-infer-fU7LRjTx.mjs → psl-infer-B0yuv-j_.mjs} +22 -16
- package/dist/psl-infer-B0yuv-j_.mjs.map +1 -0
- package/dist/{psl-infer-Cm7eDSA-.d.mts → psl-infer-DkPZJnUM.d.mts} +11 -12
- package/dist/{psl-infer-Cm7eDSA-.d.mts.map → psl-infer-DkPZJnUM.d.mts.map} +1 -1
- package/dist/query-lane-context-BaoHpLsE.d.mts +1 -0
- package/dist/{query-lane-context-CJoNBspB-Ylhia3fC.d.mts → query-lane-context-CJoNBspB-CR_n8DNB.d.mts} +5 -5
- package/dist/{query-lane-context-CJoNBspB-Ylhia3fC.d.mts.map → query-lane-context-CJoNBspB-CR_n8DNB.d.mts.map} +1 -1
- package/dist/{referential-action-sql-DJ9ps6-S.d.mts → referential-action-sql-Cw1Q0YSd.d.mts} +2 -2
- package/dist/referential-action-sql-Cw1Q0YSd.d.mts.map +1 -0
- package/dist/relational-core.d.mts +11 -11
- package/dist/relational-core__aggregate-descriptor-registry.d.mts +1 -1
- package/dist/relational-core__ast.d.mts +3 -3
- package/dist/relational-core__codec-descriptor-registry.d.mts +4 -4
- package/dist/relational-core__codec-descriptor-registry.mjs +1 -1
- package/dist/relational-core__contract-free.d.mts +4 -4
- package/dist/relational-core__expression.d.mts +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/{resolve-storage-table-Ba33K41A.d.mts → resolve-storage-table-B7m9cFy4.d.mts} +3 -3
- package/dist/{resolve-storage-table-Ba33K41A.d.mts.map → resolve-storage-table-B7m9cFy4.d.mts.map} +1 -1
- package/dist/{runtime-BUemUdMk.d.mts → runtime-Ca7PVQcJ.d.mts} +2 -2
- package/dist/{runtime-BUemUdMk.d.mts.map → runtime-Ca7PVQcJ.d.mts.map} +1 -1
- package/dist/runtime.d.mts +4 -4
- package/dist/runtime.mjs +2 -2
- package/dist/runtime__internal__prepared-query.d.mts +1 -1
- package/dist/{schema-differ-CqWOkoW9--uxNOini.d.mts → schema-differ-CqWOkoW9-BABSAGGB.d.mts} +3 -3
- package/dist/{schema-differ-CqWOkoW9--uxNOini.d.mts.map → schema-differ-CqWOkoW9-BABSAGGB.d.mts.map} +1 -1
- package/dist/{schema-verify-DIfHSB4I-CjYnmUuD.mjs → schema-verify-DIfHSB4I-Dx3Tq9hf.mjs} +2 -2
- package/dist/{schema-verify-DIfHSB4I-CjYnmUuD.mjs.map → schema-verify-DIfHSB4I-Dx3Tq9hf.mjs.map} +1 -1
- package/dist/{serialized-index-QAYy0fjm-zxvK3RBa.mjs → serialized-index-C26m_DWu-CnNi8WAI.mjs} +3 -3
- package/dist/{serialized-index-QAYy0fjm-zxvK3RBa.mjs.map → serialized-index-C26m_DWu-CnNi8WAI.mjs.map} +1 -1
- package/dist/{sql-contract-serializer-DDaAVCQr-CLDkZLXO.mjs → sql-contract-serializer-DDaAVCQr-c3jZiPS3.mjs} +4 -4
- package/dist/{sql-contract-serializer-DDaAVCQr-CLDkZLXO.mjs.map → sql-contract-serializer-DDaAVCQr-c3jZiPS3.mjs.map} +1 -1
- package/dist/{sql-execution-plan-C7XauPPu-BMi8hJlv.d.mts → sql-execution-plan-C7XauPPu-BFhGKvp4.d.mts} +2 -2
- package/dist/{sql-execution-plan-C7XauPPu-BMi8hJlv.d.mts.map → sql-execution-plan-C7XauPPu-BFhGKvp4.d.mts.map} +1 -1
- package/dist/{sql-storage-DSnnRQAf-DaHPnley.d.mts → sql-storage-BTlJLUID-O6fBB_am.d.mts} +3 -3
- package/dist/{sql-storage-DSnnRQAf-DaHPnley.d.mts.map → sql-storage-BTlJLUID-O6fBB_am.d.mts.map} +1 -1
- package/dist/{storage-table-CyL4CNMi-ByGZXmzd.mjs → storage-table-B7OSPl3G-EOodFPzq.mjs} +5 -3
- package/dist/storage-table-B7OSPl3G-EOodFPzq.mjs.map +1 -0
- package/dist/{storage-table-BBcKoAuF-CssyCQhM.d.mts → storage-table-WXeVNycx-tlFMnbig.d.mts} +3 -3
- package/dist/{storage-table-BBcKoAuF-CssyCQhM.d.mts.map → storage-table-WXeVNycx-tlFMnbig.d.mts.map} +1 -1
- package/dist/{types-BJQcLx-8-DSnaugR4.d.mts → types-BJQcLx-8-DY221fiX.d.mts} +10 -10
- package/dist/{types-BJQcLx-8-DSnaugR4.d.mts.map → types-BJQcLx-8-DY221fiX.d.mts.map} +1 -1
- package/dist/{types-DkOYK86-.d.mts → types-BURWzacK.d.mts} +5 -5
- package/dist/{types-DkOYK86-.d.mts.map → types-BURWzacK.d.mts.map} +1 -1
- package/dist/{types-DDHgx581.mjs → types-C7oOtFcJ.mjs} +2 -2
- package/dist/{types-DDHgx581.mjs.map → types-C7oOtFcJ.mjs.map} +1 -1
- package/dist/{types-CzxOObSY-CNWyrf87.d.mts → types-CzxOObSY-DEfjmbj1.d.mts} +7 -7
- package/dist/{types-CzxOObSY-CNWyrf87.d.mts.map → types-CzxOObSY-DEfjmbj1.d.mts.map} +1 -1
- package/dist/{types-DV040Uuq-Bu8CnbMa.d.mts → types-DFZhLz18-C_h0u-Zx.d.mts} +8 -7
- package/dist/types-DFZhLz18-C_h0u-Zx.d.mts.map +1 -0
- package/dist/types-DLjT0ADz.d.mts +1 -0
- package/dist/{types-Sh5HuaZE-C8I29pGQ.d.mts → types-Sh5HuaZE-B_FQUPng.d.mts} +2 -2
- package/dist/{types-Sh5HuaZE-C8I29pGQ.d.mts.map → types-Sh5HuaZE-B_FQUPng.d.mts.map} +1 -1
- package/dist/{validators-BAa0JKuB.d.mts → validators-Cr_FFJAG.d.mts} +5 -4
- package/dist/{validators-BAa0JKuB.d.mts.map → validators-Cr_FFJAG.d.mts.map} +1 -1
- package/dist/{validators-Xx-TKcx3.mjs → validators-oyDG5mVX.mjs} +22 -2
- package/dist/validators-oyDG5mVX.mjs.map +1 -0
- package/package.json +18 -18
- package/dist/contract-builder-BaJMQFAc.d.mts.map +0 -1
- package/dist/control-adapter-CD_gz6TI.d.mts +0 -1
- package/dist/entity-kinds-JlqzyFoo-kIaAUFyK.mjs.map +0 -1
- package/dist/factories-BsUyFxsk.mjs.map +0 -1
- package/dist/foreign-key-C-iTPuRT-C9ip8zFx.d.mts.map +0 -1
- package/dist/foreign-key-materialization-IGfTKmHV.mjs +0 -73
- package/dist/foreign-key-materialization-IGfTKmHV.mjs.map +0 -1
- package/dist/foreign-key-materialization-U4M9cqKd.d.mts +0 -65
- package/dist/foreign-key-materialization-U4M9cqKd.d.mts.map +0 -1
- package/dist/interpreter-BF5Xrf3W-bdklH78q.mjs.map +0 -1
- package/dist/middleware-BFoORv3y.d.mts +0 -1
- package/dist/plan-CmfWjqtI.d.mts +0 -2
- package/dist/psl-field-resolution-DUCrDnuq-DSxPrd-4.mjs.map +0 -1
- package/dist/psl-infer-fU7LRjTx.mjs.map +0 -1
- package/dist/query-lane-context-qK5s2okl.d.mts +0 -1
- package/dist/referential-action-sql-DJ9ps6-S.d.mts.map +0 -1
- package/dist/storage-table-CyL4CNMi-ByGZXmzd.mjs.map +0 -1
- package/dist/types-14L6c26e.d.mts +0 -1
- package/dist/types-DV040Uuq-Bu8CnbMa.d.mts.map +0 -1
- package/dist/validators-Xx-TKcx3.mjs.map +0 -1
package/dist/contract-psl.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as SqlNamespaceBase, c as SqlNamespaceInput } from "./sql-storage-
|
|
2
|
-
import "./types-
|
|
3
|
-
import { t as ColumnDescriptor } from "./psl-column-resolution-CNtNJ7g7-
|
|
1
|
+
import { a as SqlNamespaceBase, c as SqlNamespaceInput } from "./sql-storage-BTlJLUID-O6fBB_am.mjs";
|
|
2
|
+
import "./types-BURWzacK.mjs";
|
|
3
|
+
import { t as ColumnDescriptor } from "./psl-column-resolution-CNtNJ7g7-CEuutj8I.mjs";
|
|
4
4
|
import { AuthoringContributions, DataTypeSupport } from "@prisma/orm-framework/components/authoring";
|
|
5
5
|
import { CodecLookupWithDescriptors } from "@prisma/orm-framework/components/codec";
|
|
6
6
|
import { Contract } from "@prisma/orm-framework/contract/types";
|
package/dist/contract-psl.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as interpretPslDocumentToSqlContract } from "./interpreter-
|
|
1
|
+
import { i as interpretPslDocumentToSqlContract } from "./interpreter-DlG-2o64-DmykcFbp.mjs";
|
|
2
2
|
export { interpretPslDocumentToSqlContract };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./contract-builder-
|
|
2
|
-
import "./psl-column-resolution-CNtNJ7g7-
|
|
1
|
+
import "./contract-builder-V5pFHDv3.mjs";
|
|
2
|
+
import "./psl-column-resolution-CNtNJ7g7-CEuutj8I.mjs";
|
|
3
3
|
import { PslSources } from "@prisma/orm-framework/psl-parser/syntax";
|
|
4
4
|
import "@prisma/orm-framework/components/control";
|
|
5
5
|
import { AttributeSpec, DescribeUnsupportedAttribute, FieldAttributeCtx, FieldAttributeSpecContext, ModelAttributeCtx, ModelSymbol, NumLiteral, ParsedTaggedLiteral, TypedFuncCall } from "@prisma/orm-framework/psl-parser";
|
|
6
6
|
import "@prisma/orm-framework/components/psl-ast";
|
|
7
|
-
//#region ../../../2-sql/2-authoring/contract-psl/dist/sql-attribute-specs-
|
|
7
|
+
//#region ../../../2-sql/2-authoring/contract-psl/dist/sql-attribute-specs-CYoi9_rK.d.mts
|
|
8
8
|
//#region src/sql-attribute-specs.d.ts
|
|
9
9
|
type DefaultLiteralElement = string | NumLiteral | boolean | ParsedTaggedLiteral | null;
|
|
10
10
|
type DefaultArgValue = DefaultLiteralElement | DefaultLiteralElement[] | TypedFuncCall;
|
|
@@ -72,7 +72,7 @@ declare const sqlAttributeSpecs: {
|
|
|
72
72
|
readonly map?: string;
|
|
73
73
|
readonly onDelete?: "NoAction" | "Restrict" | "Cascade" | "SetNull" | "SetDefault";
|
|
74
74
|
readonly onUpdate?: "NoAction" | "Restrict" | "Cascade" | "SetNull" | "SetDefault";
|
|
75
|
-
readonly index?: boolean;
|
|
75
|
+
readonly index?: string | boolean;
|
|
76
76
|
}, FieldAttributeCtx>;
|
|
77
77
|
readonly default: typeof defaultFieldSpec;
|
|
78
78
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract-psl__attribute-specs.d.mts","names":[],"sources":["../../../../2-sql/2-authoring/contract-psl/dist/sql-attribute-specs-
|
|
1
|
+
{"version":3,"file":"contract-psl__attribute-specs.d.mts","names":[],"sources":["../../../../2-sql/2-authoring/contract-psl/dist/sql-attribute-specs-CYoi9_rK.d.mts","../../../../2-sql/2-authoring/contract-psl/dist/attribute-specs.d.mts"],"mappings":";;;;;;;;KAMK,iCAAiC,uBAAuB;KACxD,kBAAkB,wBAAwB,0BAA0B;iBACxD,iBAAiB,KAAK,4BAA4B;EACjE,OAAO;GACN;iBACc,iBAAiB;EAChC,qCAAqC,wBAAwB;EAC7D;GACC;cACW;WACH;aACE,WAAW;MAClB;OACC;aACM,UAAU;MACjB;eACS;OACR;aACM,cAAc;MACrB;eACS;OACR;aACM,aAAa;MACpB;eACS;eACA;eACA;eACA;eACA;eACA;eACA,UAAU;OAClB;aACM,aAAa;eACX;eACA;eACA;OACR;aACM,eAAe;MACtB;OACC;aACM,qBAAqB;MAC5B;OACC;aACM,aAAa;;WAEf;aACE,WAAW;MAClB;OACC;aACM,UAAU;eACR;OACR;aACM,cAAc;eACZ;OACR;aACM,eAAe;MACtB;MACA;OACC;aACM,gBAAgB;MACvB;eACS;eACA;eACA;eACA;eACA;eACA;OACR;aACM,gBAAgB;;;;;;iBC/DZ,gCAAgC,SAAS,aAAa"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as describeUnsupportedSqlAttribute, b as sqlAttributeSpecs } from "./psl-field-resolution-
|
|
1
|
+
import { a as describeUnsupportedSqlAttribute, b as sqlAttributeSpecs } from "./psl-field-resolution-BW0ZuqBd-Dv18ERa7.mjs";
|
|
2
2
|
export { describeUnsupportedSqlAttribute, sqlAttributeSpecs };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as SqlNamespaceBase, c as SqlNamespaceInput } from "./sql-storage-
|
|
2
|
-
import "./types-
|
|
1
|
+
import { a as SqlNamespaceBase, c as SqlNamespaceInput } from "./sql-storage-BTlJLUID-O6fBB_am.mjs";
|
|
2
|
+
import "./types-BURWzacK.mjs";
|
|
3
3
|
import { ControlPolicy } from "@prisma/orm-framework/contract/types";
|
|
4
4
|
import { ExtensionPackRef, TargetPackRef } from "@prisma/orm-framework/components/components";
|
|
5
5
|
import { ContractConfig } from "@prisma/orm-framework/config/config-types";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as applySqlSpecifierControlPolicy } from "./derived-checks-
|
|
2
|
-
import { i as interpretPslDocumentToSqlContract } from "./interpreter-
|
|
1
|
+
import { t as applySqlSpecifierControlPolicy } from "./derived-checks-D5zdlyyh-CPofdm1W.mjs";
|
|
2
|
+
import { i as interpretPslDocumentToSqlContract } from "./interpreter-DlG-2o64-DmykcFbp.mjs";
|
|
3
3
|
import { collectScalarTypeConstructors } from "@prisma/orm-framework/components/authoring";
|
|
4
4
|
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
5
5
|
import { readFile } from "node:fs/promises";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract-psl__provider.mjs","names":[],"sources":["../../../../2-sql/2-authoring/contract-psl/dist/provider.mjs"],"sourcesContent":["import { n as interpretPslDocumentToSqlContract } from \"./interpreter-
|
|
1
|
+
{"version":3,"file":"contract-psl__provider.mjs","names":[],"sources":["../../../../2-sql/2-authoring/contract-psl/dist/provider.mjs"],"sourcesContent":["import { n as interpretPslDocumentToSqlContract } from \"./interpreter-DlG-2o64.mjs\";\nimport { buildSymbolTable, createBinder, isPrismaNextSchema, mapPslDiagnostics } from \"@internal/psl-parser\";\nimport { applySqlSpecifierControlPolicy } from \"@internal/sql-contract-ts/contract-builder\";\nimport { assertDefined } from \"@internal/utils/assertions\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { collectScalarTypeConstructors } from \"@internal/framework-components/authoring\";\nimport { withSeedDiagnostics } from \"@internal/psl-parser/interpret\";\nimport { parse } from \"@internal/psl-parser/syntax\";\nimport { notOk, ok } from \"@internal/utils/result\";\nimport { readFile } from \"node:fs/promises\";\nimport { basename, extname } from \"pathe\";\nimport { isDynamicPattern } from \"tinyglobby\";\n//#region src/provider.ts\n/**\n* The directory portion of `pattern` before its first glob-magic segment,\n* joined back with `/` (e.g. a `prisma` directory holding a recursive\n* `.prisma` glob derives `./prisma`). A rootless pattern with no static\n* segments yields `''`.\n*/\nfunction staticPrefixDirectory(pattern) {\n\tconst staticSegments = [];\n\tfor (const segment of pattern.replaceAll(\"\\\\\", \"/\").split(\"/\")) {\n\t\tif (isDynamicPattern(segment)) break;\n\t\tstaticSegments.push(segment);\n\t}\n\treturn staticSegments.join(\"/\");\n}\n/**\n* Derives the emit output path from the schema input path so artefacts land\n* colocated with the source (e.g. `src/contract/schema.prisma` →\n* `src/contract/contract.json`). A glob-shaped path derives from its static\n* prefix directory instead (a recursive glob under `prisma` derives\n* `./prisma/contract.json`). The provider owns this because it is the only\n* layer that knows the input path; the upstream `normalizeContractConfig`\n* default is a last-resort fallback for providers that don't carry one.\n*/\nfunction defaultOutputFromSchemaPath(schemaPath) {\n\tif (isDynamicPattern(schemaPath)) {\n\t\tconst prefix = staticPrefixDirectory(schemaPath);\n\t\treturn prefix.length === 0 ? \"contract.json\" : `${prefix}/contract.json`;\n\t}\n\tconst ext = extname(schemaPath);\n\tif (ext.length === 0) return `${schemaPath}.json`;\n\tconst base = schemaPath.slice(0, -ext.length);\n\tif (basename(base) === \"schema\") return `${base.slice(0, -6)}contract.json`;\n\treturn `${base}.json`;\n}\nfunction prismaContract(schemaPath, options) {\n\treturn {\n\t\tsource: {\n\t\t\tformat: \"psl\",\n\t\t\tinputs: [schemaPath],\n\t\t\tinterpret(input, context) {\n\t\t\t\tconst scalarColumnDescriptors = collectScalarTypeConstructors(context.authoringContributions.type);\n\t\t\t\treturn interpretPslDocumentToSqlContract({\n\t\t\t\t\tdocuments: input.documents,\n\t\t\t\t\tsymbolTable: input.symbolTable,\n\t\t\t\t\tsources: input.sources,\n\t\t\t\t\tbinder: input.binder,\n\t\t\t\t\tseedDiagnostics: [],\n\t\t\t\t\ttarget: options.target,\n\t\t\t\t\tauthoringContributions: context.authoringContributions,\n\t\t\t\t\tscalarColumnDescriptors,\n\t\t\t\t\t...ifDefined(\"composedExtensions\", context.composedExtensions.length > 0 ? [...context.composedExtensions] : void 0),\n\t\t\t\t\tcomposedExtensionContracts: context.composedExtensionContracts,\n\t\t\t\t\t...ifDefined(\"composedExtensionPackRefs\", options.composedExtensionPackRefs?.length ? options.composedExtensionPackRefs : void 0),\n\t\t\t\t\tcontrolMutationDefaults: context.controlMutationDefaults,\n\t\t\t\t\tcreateNamespace: options.createNamespace,\n\t\t\t\t\tcapabilities: context.capabilities,\n\t\t\t\t\tcodecLookup: context.codecLookup,\n\t\t\t\t\tdataTypes: context.dataTypes,\n\t\t\t\t\t...ifDefined(\"enumInferenceCodecs\", options.enumInferenceCodecs)\n\t\t\t\t});\n\t\t\t},\n\t\t\tasync load(context) {\n\t\t\t\tconst candidates = [...new Set(context.resolvedInputs)].sort();\n\t\t\t\tif (candidates.length === 0) return notOk({\n\t\t\t\t\tsummary: \"No schema files matched the configured contract source\",\n\t\t\t\t\tdiagnostics: [{\n\t\t\t\t\t\tcode: \"PSL_NO_SCHEMA_FILES_MATCHED\",\n\t\t\t\t\t\tmessage: `No files matched the configured pattern \"${schemaPath}\"`,\n\t\t\t\t\t\tsourceId: schemaPath\n\t\t\t\t\t}]\n\t\t\t\t});\n\t\t\t\tconst readDiagnostics = [];\n\t\t\t\tconst members = [];\n\t\t\t\tconst undirected = [];\n\t\t\t\tfor (const path of candidates) {\n\t\t\t\t\tlet text;\n\t\t\t\t\ttry {\n\t\t\t\t\t\ttext = await readFile(path, \"utf-8\");\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\tconst message = String(error);\n\t\t\t\t\t\treadDiagnostics.push({\n\t\t\t\t\t\t\tcode: \"PSL_SCHEMA_READ_FAILED\",\n\t\t\t\t\t\t\tmessage,\n\t\t\t\t\t\t\tsourceId: path\n\t\t\t\t\t\t});\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (isPrismaNextSchema(text)) members.push({\n\t\t\t\t\t\tpath,\n\t\t\t\t\t\ttext\n\t\t\t\t\t});\n\t\t\t\t\telse undirected.push(path);\n\t\t\t\t}\n\t\t\t\tif (members.length === 0) {\n\t\t\t\t\tif (undirected.length === 0) return notOk({\n\t\t\t\t\t\tsummary: \"Failed to read Prisma schema files\",\n\t\t\t\t\t\tdiagnostics: readDiagnostics\n\t\t\t\t\t});\n\t\t\t\t\treturn notOk({\n\t\t\t\t\t\tsummary: \"No schema file carries the \\\"// use prisma-8\\\" directive\",\n\t\t\t\t\t\tdiagnostics: [...readDiagnostics, {\n\t\t\t\t\t\t\tcode: \"PSL_NO_OPTED_IN_SCHEMA_FILES\",\n\t\t\t\t\t\t\tmessage: `None of the matched files carry the \"// use prisma-8\" directive: ${undirected.join(\", \")}`,\n\t\t\t\t\t\t\tsourceId: schemaPath\n\t\t\t\t\t\t}]\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tconst parsed = members.map(({ path, text }) => parse(text, path));\n\t\t\t\tconst documents = parsed.map(({ document }) => document);\n\t\t\t\tconst [firstSources, ...restSources] = parsed.map(({ sources }) => sources);\n\t\t\t\tassertDefined(firstSources, \"prismaContract requires at least one parsed schema file\");\n\t\t\t\tconst sources = firstSources.merge(...restSources);\n\t\t\t\tconst seedDiagnostics = [...readDiagnostics, ...mapPslDiagnostics(parsed.flatMap(({ diagnostics }) => diagnostics), sources)];\n\t\t\t\tconst { symbolTable, diagnostics: symbolTableDiagnostics } = buildSymbolTable({\n\t\t\t\t\tdocuments,\n\t\t\t\t\tsources\n\t\t\t\t});\n\t\t\t\tconst { binder, diagnostics: binderDiagnostics } = createBinder({\n\t\t\t\t\tsymbolTable,\n\t\t\t\t\tsources,\n\t\t\t\t\tcontext\n\t\t\t\t});\n\t\t\t\tconst interpreted = withSeedDiagnostics(this.interpret({\n\t\t\t\t\tdocuments,\n\t\t\t\t\tsources,\n\t\t\t\t\tsymbolTable,\n\t\t\t\t\tbinder\n\t\t\t\t}, context), [...seedDiagnostics, ...mapPslDiagnostics([...symbolTableDiagnostics, ...binderDiagnostics], sources)]);\n\t\t\t\tif (!interpreted.ok) return interpreted;\n\t\t\t\treturn ok(applySqlSpecifierControlPolicy(interpreted.value, options.defaultControlPolicy, options.createNamespace));\n\t\t\t}\n\t\t},\n\t\toutput: options.output ?? defaultOutputFromSchemaPath(schemaPath)\n\t};\n}\n//#endregion\nexport { prismaContract };\n\n//# sourceMappingURL=provider.mjs.map"],"mappings":"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"}
|
package/dist/contract-ts.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as CheckKind } from "./naming-C1OcnGJg-DB1o9TS6.mjs";
|
|
2
|
-
import { n as applySqlSpecifierControlPolicy, t as SqlNamespaceFactory } from "./derived-checks-DpPkO6Dt-
|
|
3
|
-
import { $ as storedAsListColumn, A as ScalarMemberNode, B as buildSqlContractFromDefinition, C as ManyOptions, D as PrimaryKeyNode, E as ModelNode, F as ValueObjectNode, G as extensionModel, H as createComposedAuthoringHelpers, I as autoincrement, J as member, K as field, L as bindEnumType, M as UniqueConstraintNode, N as ValueObjectFieldNode, O as RelationNode, P as ValueObjectMemberNode, Q as sql, R as buildBoundContract, S as IndexNode, T as ModelLike, U as defineContract, V as check, W as enumType, X as now, Y as model, Z as rel, _ as ExtractCodecTypesFromPack, a as CheckNode, b as IndexConstraint, c as ColumnRef, d as ContractInput, f as ContractModelBuilder, g as EnumTypeHandle, h as EnumMember, i as BoundEnumType, j as TargetFieldRef, k as ScalarFieldBuilder, l as ComposedAuthoringHelpers, m as DeferredIndexExpression, n as AuthoredColumnDefault, o as CodecInput, p as DeferredIndexColumn, q as isValueObjectMember, r as AuthoredColumnDefaultLiteralValue, s as CodecTypeMap, t as AttachedEntities, u as ContractDefinition, v as FieldNode, w as MergeEnums, x as IndexExpressionInput, y as ForeignKeyNode, z as buildContractDefinition } from "./contract-builder-
|
|
4
|
-
import { i as typescriptContractFromPath, n as emptyContract, r as typescriptContract, t as ContractConfig } from "./config-types-
|
|
2
|
+
import { n as applySqlSpecifierControlPolicy, t as SqlNamespaceFactory } from "./derived-checks-DpPkO6Dt-D3M7YEr2.mjs";
|
|
3
|
+
import { $ as storedAsListColumn, A as ScalarMemberNode, B as buildSqlContractFromDefinition, C as ManyOptions, D as PrimaryKeyNode, E as ModelNode, F as ValueObjectNode, G as extensionModel, H as createComposedAuthoringHelpers, I as autoincrement, J as member, K as field, L as bindEnumType, M as UniqueConstraintNode, N as ValueObjectFieldNode, O as RelationNode, P as ValueObjectMemberNode, Q as sql, R as buildBoundContract, S as IndexNode, T as ModelLike, U as defineContract, V as check, W as enumType, X as now, Y as model, Z as rel, _ as ExtractCodecTypesFromPack, a as CheckNode, b as IndexConstraint, c as ColumnRef, d as ContractInput, f as ContractModelBuilder, g as EnumTypeHandle, h as EnumMember, i as BoundEnumType, j as TargetFieldRef, k as ScalarFieldBuilder, l as ComposedAuthoringHelpers, m as DeferredIndexExpression, n as AuthoredColumnDefault, o as CodecInput, p as DeferredIndexColumn, q as isValueObjectMember, r as AuthoredColumnDefaultLiteralValue, s as CodecTypeMap, t as AttachedEntities, u as ContractDefinition, v as FieldNode, w as MergeEnums, x as IndexExpressionInput, y as ForeignKeyNode, z as buildContractDefinition } from "./contract-builder-V5pFHDv3.mjs";
|
|
4
|
+
import { i as typescriptContractFromPath, n as emptyContract, r as typescriptContract, t as ContractConfig } from "./config-types-DB6gRJ5K.mjs";
|
|
5
5
|
export { type AttachedEntities, type AuthoredColumnDefault, type AuthoredColumnDefaultLiteralValue, type BoundEnumType, type CheckKind, type CheckNode, type CodecInput, type CodecTypeMap, type ColumnRef, type ComposedAuthoringHelpers, type ContractConfig, type ContractDefinition, type ContractInput, type ContractModelBuilder, type DeferredIndexColumn, type DeferredIndexExpression, type EnumMember, type EnumTypeHandle, type ExtractCodecTypesFromPack, type FieldNode, type ForeignKeyNode, type IndexConstraint, type IndexExpressionInput, type IndexNode, type ManyOptions, type MergeEnums, type ModelLike, type ModelNode, type PrimaryKeyNode, type RelationNode, type ScalarFieldBuilder, type ScalarMemberNode, type SqlNamespaceFactory, type TargetFieldRef, type UniqueConstraintNode, type ValueObjectFieldNode, type ValueObjectMemberNode, type ValueObjectNode, applySqlSpecifierControlPolicy, autoincrement, bindEnumType, buildBoundContract, buildContractDefinition, buildSqlContractFromDefinition, check, createComposedAuthoringHelpers, defineContract, emptyContract, enumType, extensionModel, field, isValueObjectMember, member, model, now, rel, sql, storedAsListColumn, typescriptContract, typescriptContractFromPath };
|
package/dist/contract-ts.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as storedAsListColumn, i as isValueObjectMember, n as buildSqlContractFromDefinition, t as applySqlSpecifierControlPolicy } from "./derived-checks-
|
|
2
|
-
import { a as check, c as enumType, d as member, f as model, h as sql, i as buildContractDefinition, l as extensionModel, m as rel, n as bindEnumType, o as createComposedAuthoringHelpers, p as now, r as buildBoundContract, s as defineContract, t as autoincrement, u as field } from "./contract-builder-
|
|
3
|
-
import { n as typescriptContract, r as typescriptContractFromPath, t as emptyContract } from "./config-types-
|
|
1
|
+
import { a as storedAsListColumn, i as isValueObjectMember, n as buildSqlContractFromDefinition, t as applySqlSpecifierControlPolicy } from "./derived-checks-D5zdlyyh-CPofdm1W.mjs";
|
|
2
|
+
import { a as check, c as enumType, d as member, f as model, h as sql, i as buildContractDefinition, l as extensionModel, m as rel, n as bindEnumType, o as createComposedAuthoringHelpers, p as now, r as buildBoundContract, s as defineContract, t as autoincrement, u as field } from "./contract-builder-tEax3I2q.mjs";
|
|
3
|
+
import { n as typescriptContract, r as typescriptContractFromPath, t as emptyContract } from "./config-types-D0sxpKAN.mjs";
|
|
4
4
|
export { applySqlSpecifierControlPolicy, autoincrement, bindEnumType, buildBoundContract, buildContractDefinition, buildSqlContractFromDefinition, check, createComposedAuthoringHelpers, defineContract, emptyContract, enumType, extensionModel, field, isValueObjectMember, member, model, now, rel, sql, storedAsListColumn, typescriptContract, typescriptContractFromPath };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as typescriptContractFromPath, n as emptyContract, r as typescriptContract, t as ContractConfig } from "./config-types-
|
|
1
|
+
import { i as typescriptContractFromPath, n as emptyContract, r as typescriptContract, t as ContractConfig } from "./config-types-DB6gRJ5K.mjs";
|
|
2
2
|
export { type ContractConfig, emptyContract, typescriptContract, typescriptContractFromPath };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as typescriptContract, r as typescriptContractFromPath, t as emptyContract } from "./config-types-
|
|
1
|
+
import { n as typescriptContract, r as typescriptContractFromPath, t as emptyContract } from "./config-types-D0sxpKAN.mjs";
|
|
2
2
|
export { emptyContract, typescriptContract, typescriptContractFromPath };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { t as CheckKind } from "./naming-C1OcnGJg-DB1o9TS6.mjs";
|
|
2
|
-
import { n as applySqlSpecifierControlPolicy, t as SqlNamespaceFactory } from "./derived-checks-DpPkO6Dt-
|
|
3
|
-
import { $ as storedAsListColumn, A as ScalarMemberNode, B as buildSqlContractFromDefinition, C as ManyOptions, D as PrimaryKeyNode, E as ModelNode, F as ValueObjectNode, G as extensionModel, H as createComposedAuthoringHelpers, I as autoincrement, J as member, K as field, L as bindEnumType, M as UniqueConstraintNode, N as ValueObjectFieldNode, O as RelationNode, P as ValueObjectMemberNode, Q as sql, R as buildBoundContract, S as IndexNode, T as ModelLike, U as defineContract, V as check, W as enumType, X as now, Y as model, Z as rel, _ as ExtractCodecTypesFromPack, a as CheckNode, b as IndexConstraint, c as ColumnRef, d as ContractInput, f as ContractModelBuilder, g as EnumTypeHandle, h as EnumMember, i as BoundEnumType, j as TargetFieldRef, k as ScalarFieldBuilder, l as ComposedAuthoringHelpers, m as DeferredIndexExpression, n as AuthoredColumnDefault, o as CodecInput, p as DeferredIndexColumn, q as isValueObjectMember, r as AuthoredColumnDefaultLiteralValue, s as CodecTypeMap, t as AttachedEntities, u as ContractDefinition, v as FieldNode, w as MergeEnums, x as IndexExpressionInput, y as ForeignKeyNode, z as buildContractDefinition } from "./contract-builder-
|
|
2
|
+
import { n as applySqlSpecifierControlPolicy, t as SqlNamespaceFactory } from "./derived-checks-DpPkO6Dt-D3M7YEr2.mjs";
|
|
3
|
+
import { $ as storedAsListColumn, A as ScalarMemberNode, B as buildSqlContractFromDefinition, C as ManyOptions, D as PrimaryKeyNode, E as ModelNode, F as ValueObjectNode, G as extensionModel, H as createComposedAuthoringHelpers, I as autoincrement, J as member, K as field, L as bindEnumType, M as UniqueConstraintNode, N as ValueObjectFieldNode, O as RelationNode, P as ValueObjectMemberNode, Q as sql, R as buildBoundContract, S as IndexNode, T as ModelLike, U as defineContract, V as check, W as enumType, X as now, Y as model, Z as rel, _ as ExtractCodecTypesFromPack, a as CheckNode, b as IndexConstraint, c as ColumnRef, d as ContractInput, f as ContractModelBuilder, g as EnumTypeHandle, h as EnumMember, i as BoundEnumType, j as TargetFieldRef, k as ScalarFieldBuilder, l as ComposedAuthoringHelpers, m as DeferredIndexExpression, n as AuthoredColumnDefault, o as CodecInput, p as DeferredIndexColumn, q as isValueObjectMember, r as AuthoredColumnDefaultLiteralValue, s as CodecTypeMap, t as AttachedEntities, u as ContractDefinition, v as FieldNode, w as MergeEnums, x as IndexExpressionInput, y as ForeignKeyNode, z as buildContractDefinition } from "./contract-builder-V5pFHDv3.mjs";
|
|
4
4
|
export { type AttachedEntities, type AuthoredColumnDefault, type AuthoredColumnDefaultLiteralValue, type BoundEnumType, type CheckKind, type CheckNode, type CodecInput, type CodecTypeMap, type ColumnRef, type ComposedAuthoringHelpers, type ContractDefinition, type ContractInput, type ContractModelBuilder, type DeferredIndexColumn, type DeferredIndexExpression, type EnumMember, type EnumTypeHandle, type ExtractCodecTypesFromPack, type FieldNode, type ForeignKeyNode, type IndexConstraint, type IndexExpressionInput, type IndexNode, type ManyOptions, type MergeEnums, type ModelLike, type ModelNode, type PrimaryKeyNode, type RelationNode, type ScalarFieldBuilder, type ScalarMemberNode, type SqlNamespaceFactory, type TargetFieldRef, type UniqueConstraintNode, type ValueObjectFieldNode, type ValueObjectMemberNode, type ValueObjectNode, applySqlSpecifierControlPolicy, autoincrement, bindEnumType, buildBoundContract, buildContractDefinition, buildSqlContractFromDefinition, check, createComposedAuthoringHelpers, defineContract, enumType, extensionModel, field, isValueObjectMember, member, model, now, rel, sql, storedAsListColumn };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as storedAsListColumn, i as isValueObjectMember, n as buildSqlContractFromDefinition, t as applySqlSpecifierControlPolicy } from "./derived-checks-
|
|
2
|
-
import { a as check, c as enumType, d as member, f as model, h as sql, i as buildContractDefinition, l as extensionModel, m as rel, n as bindEnumType, o as createComposedAuthoringHelpers, p as now, r as buildBoundContract, s as defineContract, t as autoincrement, u as field } from "./contract-builder-
|
|
1
|
+
import { a as storedAsListColumn, i as isValueObjectMember, n as buildSqlContractFromDefinition, t as applySqlSpecifierControlPolicy } from "./derived-checks-D5zdlyyh-CPofdm1W.mjs";
|
|
2
|
+
import { a as check, c as enumType, d as member, f as model, h as sql, i as buildContractDefinition, l as extensionModel, m as rel, n as bindEnumType, o as createComposedAuthoringHelpers, p as now, r as buildBoundContract, s as defineContract, t as autoincrement, u as field } from "./contract-builder-tEax3I2q.mjs";
|
|
3
3
|
export { applySqlSpecifierControlPolicy, autoincrement, bindEnumType, buildBoundContract, buildContractDefinition, buildSqlContractFromDefinition, check, createComposedAuthoringHelpers, defineContract, enumType, extensionModel, field, isValueObjectMember, member, model, now, rel, sql, storedAsListColumn };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as SqlStorage } from "./sql-storage-
|
|
1
|
+
import { l as SqlStorage } from "./sql-storage-BTlJLUID-O6fBB_am.mjs";
|
|
2
2
|
import { DefaultNamespaceEntries, NamespacedEntities, SingleNamespaceView } from "@prisma/orm-framework/components/ir";
|
|
3
3
|
import { Contract } from "@prisma/orm-framework/contract/types";
|
|
4
4
|
//#region ../../../2-sql/1-core/contract/dist/contract-view.d.mts
|
|
@@ -58,4 +58,4 @@ type SqlSchemaQualifiedView<TContract extends Contract<SqlStorage>> = TContract
|
|
|
58
58
|
declare function buildSqlSchemaQualifiedView<TContract extends Contract<SqlStorage>>(contract: TContract): SqlSchemaQualifiedView<TContract>;
|
|
59
59
|
//#endregion
|
|
60
60
|
export { SqlSingleNamespaceView as a, SqlSingleNamespaceAccessors as i, SqlBuiltinKind as n, buildSqlSchemaQualifiedView as o, SqlSchemaQualifiedView as r, buildSqlSingleNamespaceView as s, SQL_BUILTIN_KINDS as t };
|
|
61
|
-
//# sourceMappingURL=contract-view-
|
|
61
|
+
//# sourceMappingURL=contract-view-C1xX3yIj.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract-view-
|
|
1
|
+
{"version":3,"file":"contract-view-C1xX3yIj.d.mts","names":[],"sources":["../../../../2-sql/1-core/contract/dist/contract-view.d.mts"],"mappings":";;;;;;;;;;cASc;KACT,yBAAyB;KACzB,WAAW,kBAAkB,SAAS,eAAe,wBAAwB;;;;;;;KAO7E,4BAA4B,kBAAkB,SAAS,eAAe,oBAAoB,WAAW,YAAY;;;;;;;;;;KAUjH,uBAAuB,kBAAkB,SAAS,eAAe,YAAY,4BAA4B;WACnG,WAAW,mBAAmB,sBAAsB;;;;;;;;;iBAS9C,4BAA4B,kBAAkB,SAAS,aAAa,UAAU,YAAY,uBAAuB;;;;;;;;;;;KAW7H,uBAAuB,kBAAkB,SAAS,eAAe;WAC3D,WAAW,mBAAmB,sBAAsB;;;;;;iBAM9C,4BAA4B,kBAAkB,SAAS,aAAa,UAAU,YAAY,uBAAuB"}
|
package/dist/contract.d.mts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { t as SqlNode } from "./sql-node-kEz6YFZo-v2F7delx.mjs";
|
|
2
2
|
import { n as CheckConstraintInput, t as CheckConstraint } from "./check-constraint-B7qGu6rc-agxAjKLG.mjs";
|
|
3
|
-
import { a as
|
|
3
|
+
import { a as ForeignKeyReferenceInput, i as ForeignKeyReference, n as ForeignKeyIndex, o as ReferentialAction, r as ForeignKeyInput, t as ForeignKey } from "./foreign-key-qkDFfG8t-Fyrzd0VI.mjs";
|
|
4
4
|
import { i as UniqueConstraintInput, n as PrimaryKeyInput, r as UniqueConstraint, t as PrimaryKey } from "./unique-constraint-M5TlQnJQ-BiIHJ85k.mjs";
|
|
5
5
|
import { r as IndexInput, t as Index } from "./sql-index-ByAAE7K8-DPkZtr7t.mjs";
|
|
6
|
-
import { i as StorageTableInput, n as StorageColumnInput, r as StorageTable, t as StorageColumn } from "./storage-table-
|
|
6
|
+
import { i as StorageTableInput, n as StorageColumnInput, r as StorageTable, t as StorageColumn } from "./storage-table-WXeVNycx-tlFMnbig.mjs";
|
|
7
7
|
import { n as StorageValueSetInput, r as isStorageValueSet, t as StorageValueSet } from "./storage-value-set-BGlj5Uus-CvZD--GG.mjs";
|
|
8
|
-
import { _ as resolvedTypeParams, a as SqlNamespaceBase, c as SqlNamespaceInput, d as SqlStorageTypeEntry, f as StorageTypeInstance, g as isStorageTypeInstance, h as isSqlAuthoringContributions, i as SqlNamespace, l as SqlStorage, m as isMaterializedSqlNamespace, n as CODEC_INSTANCE_KIND, o as SqlNamespaceEntries, p as StorageTypeInstanceInput, r as SqlAuthoringContributions, s as SqlNamespaceFactory, t as AuthoredStorageTypeInstance, u as SqlStorageInput, v as toStorageTypeInstance } from "./sql-storage-
|
|
8
|
+
import { _ as resolvedTypeParams, a as SqlNamespaceBase, c as SqlNamespaceInput, d as SqlStorageTypeEntry, f as StorageTypeInstance, g as isStorageTypeInstance, h as isSqlAuthoringContributions, i as SqlNamespace, l as SqlStorage, m as isMaterializedSqlNamespace, n as CODEC_INSTANCE_KIND, o as SqlNamespaceEntries, p as StorageTypeInstanceInput, r as SqlAuthoringContributions, s as SqlNamespaceFactory, t as AuthoredStorageTypeInstance, u as SqlStorageInput, v as toStorageTypeInstance } from "./sql-storage-BTlJLUID-O6fBB_am.mjs";
|
|
9
9
|
import { i as indexInputFromSerialized, n as SerializedIndex, r as checkConstraintInputFromSerialized, t as SerializedCheckConstraint } from "./serialized-index-CrgG8ct1-D64Figsu.mjs";
|
|
10
|
-
import { A as SqlModelStorage, C as QueryOperationSelfSpec, D as ResolveCodecTypes, E as QueryOperationTypesOf, F as TypeMapsPhantomKey, I as applyFkDefaults, M as StorageColumnInputTypesOf, N as StorageColumnTypesOf, O as SqlControlDriverInstance, P as TypeMaps, S as QueryOperationReturn, T as QueryOperationTypesBase, _ as FieldInputTypesOf, a as CodecTypesOf, b as NamespacedFieldTypeMap, c as DEFAULT_FK_INDEX, d as ExtractFieldInputTypes, f as ExtractFieldOutputTypes, g as ExtractTypeMapsFromContract, h as ExtractStorageColumnTypes, i as AggregateTypesOf, j as SqlQueryOperationTypes, k as SqlModelFieldStorage, l as ExtractAggregateTypes, m as ExtractStorageColumnInputTypes, n as AggregateResultType, o as ContractWithTypeMaps, p as ExtractQueryOperationTypes, r as AggregateTypesBase, s as DEFAULT_FK_CONSTRAINT, t as AggregateOperationTypes, u as ExtractCodecTypes, v as FieldOutputTypesOf, w as QueryOperationTypeEntry, x as NamespacedStorageColumnTypeMap, y as ForeignKeyOptions } from "./types-
|
|
11
|
-
import { a as ShapeSpec, i as Shape, n as RelationNamesOf, o as StorageColumnMapAt, r as Scalars, s as StorageColumnTypeAcrossNamespaces, t as RelationKeys } from "./types-
|
|
10
|
+
import { A as SqlModelStorage, C as QueryOperationSelfSpec, D as ResolveCodecTypes, E as QueryOperationTypesOf, F as TypeMapsPhantomKey, I as applyFkDefaults, M as StorageColumnInputTypesOf, N as StorageColumnTypesOf, O as SqlControlDriverInstance, P as TypeMaps, S as QueryOperationReturn, T as QueryOperationTypesBase, _ as FieldInputTypesOf, a as CodecTypesOf, b as NamespacedFieldTypeMap, c as DEFAULT_FK_INDEX, d as ExtractFieldInputTypes, f as ExtractFieldOutputTypes, g as ExtractTypeMapsFromContract, h as ExtractStorageColumnTypes, i as AggregateTypesOf, j as SqlQueryOperationTypes, k as SqlModelFieldStorage, l as ExtractAggregateTypes, m as ExtractStorageColumnInputTypes, n as AggregateResultType, o as ContractWithTypeMaps, p as ExtractQueryOperationTypes, r as AggregateTypesBase, s as DEFAULT_FK_CONSTRAINT, t as AggregateOperationTypes, u as ExtractCodecTypes, v as FieldOutputTypesOf, w as QueryOperationTypeEntry, x as NamespacedStorageColumnTypeMap, y as ForeignKeyOptions } from "./types-DFZhLz18-C_h0u-Zx.mjs";
|
|
11
|
+
import { a as ShapeSpec, i as Shape, n as RelationNamesOf, o as StorageColumnMapAt, r as Scalars, s as StorageColumnTypeAcrossNamespaces, t as RelationKeys } from "./types-BURWzacK.mjs";
|
|
12
12
|
import { a as ResolvedPackEntityHandle, c as SqlPslEntityPlacementOutput, i as ResolvedEntityHandleRef, l as providesEntityHandleLowering, n as LoweredPackEntity, o as ResolvedPslModelRefs, r as PackEntityHandle, s as SqlEntityHandleLoweringContribution, t as EntityHandleLoweringInput, u as providesPslEntityPlacement } from "./entity-handle-lowering-hook-93syhZ0p.mjs";
|
|
13
13
|
import { a as lowerAuthoredIndex, i as isAuthoredIndexInput, n as AuthoredIndexMethod, r as exactNameBodyWarning, t as AuthoredIndexInput } from "./index-naming-UEtT94f5.mjs";
|
|
14
14
|
import { a as IndexTypeRegistry, i as IndexTypeRegistration, n as IndexTypeEntry, o as createIndexTypeRegistry, r as IndexTypeMap, s as defineIndexTypes, t as IndexTypeBuilder } from "./index-types-DPVhsW0v-D-BikM4h.mjs";
|
|
15
15
|
import "./index-types-CNhHgKHi.mjs";
|
|
16
16
|
import { n as lowerAuthoredCheck, t as AuthoredCheckInput } from "./authored-check-naming-C8_TvzU6.mjs";
|
|
17
17
|
import { t as sqlContractCanonicalizationHooks } from "./canonicalization-hooks-CYnW_sGn.mjs";
|
|
18
|
-
import { a as SqlSingleNamespaceView, i as SqlSingleNamespaceAccessors, n as SqlBuiltinKind, o as buildSqlSchemaQualifiedView, r as SqlSchemaQualifiedView, s as buildSqlSingleNamespaceView, t as SQL_BUILTIN_KINDS } from "./contract-view-
|
|
18
|
+
import { a as SqlSingleNamespaceView, i as SqlSingleNamespaceAccessors, n as SqlBuiltinKind, o as buildSqlSchemaQualifiedView, r as SqlSchemaQualifiedView, s as buildSqlSingleNamespaceView, t as SQL_BUILTIN_KINDS } from "./contract-view-C1xX3yIj.mjs";
|
|
19
19
|
import { S as validateSqlTypeParams, _ as sqlBaseName, a as SqlDataTypeFacts, b as unquotedSqlBaseName, c as SqlTypeParams, d as findSqlDataTypeCollision, f as isSqlDataType, g as resolveReportedSqlType, h as renderSqlTypeName, i as SqlDataTypeCollision, l as SqlTypeText, m as renderSqlCatalogText, n as ResolvedSqlType, o as SqlDataTypeSpec, p as numeralText, r as SqlDataType, s as SqlTypeLookups, t as ReportedSqlType, u as dataTypeParams, v as sqlDataType, x as unquotedSqlBaseNameOfCodec, y as sqlDataTypeOfCodec } from "./data-type-CpqSDmR_.mjs";
|
|
20
20
|
import { a as NumberClassifierSpec, c as createNumberClassifier, d as isNumeralText, f as parseJsonText, i as NumberClassification, l as escapePslString, m as signedRange, n as DateTimeShape, o as canonicalDateTime, p as printJsonText, r as IntegerStep, s as canonicalNumeralText, t as CanonicalDateTimeOptions, u as integerTextCanonicalForm } from "./data-type-support-4TcZuD7d.mjs";
|
|
21
|
-
import { n as tableEntityKind, r as valueSetEntityKind, t as composeSqlEntityKinds } from "./entity-kinds
|
|
22
|
-
import { a as pk, i as model, n as fk, o as table, r as index, s as unique, t as col } from "./factories-
|
|
23
|
-
import { a as
|
|
24
|
-
import { t as validateIndexTypes } from "./index-type-validation-
|
|
25
|
-
import { t as REFERENTIAL_ACTION_SQL } from "./referential-action-sql-
|
|
26
|
-
import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-
|
|
21
|
+
import { n as tableEntityKind, r as valueSetEntityKind, t as composeSqlEntityKinds } from "./entity-kinds--HvqT50S.mjs";
|
|
22
|
+
import { a as pk, i as model, n as fk, o as table, r as index, s as unique, t as col } from "./factories-DzLBAAvj.mjs";
|
|
23
|
+
import { a as declaredBackingObjectName, c as derivedBackingIndexIsRedundant, i as MaterializedTableConstraints, l as leadingBackingObjectName, n as ForeignKeyAuthoringInput, o as declaredIndexesServeForeignKey, r as IndexCandidate, s as defaultForeignKeyIndex, t as FOREIGN_KEY_INDEX_UNRESOLVED, u as materializeForeignKeysAndIndexes } from "./foreign-key-materialization-D0Ltg78T.mjs";
|
|
24
|
+
import { t as validateIndexTypes } from "./index-type-validation-B925ye4q.mjs";
|
|
25
|
+
import { t as REFERENTIAL_ACTION_SQL } from "./referential-action-sql-Cw1Q0YSd.mjs";
|
|
26
|
+
import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-B7m9cFy4.mjs";
|
|
27
27
|
import { a as sqlExpressionAuthoringEntry, i as printSqlExpressionLiteral, n as SQL_EXPRESSION_TAG, o as sqlExpressionDataType, r as assertNothingCastsFromSqlExpression, s as sqlTextFromCanonical, t as SQL_EXPRESSION_DATA_TYPE_ID } from "./sql-expression-DE_MTt3T.mjs";
|
|
28
|
-
import { C as validateSqlContractFully, D as valueObjectStorageTypeMissingMessage, E as validateStorageSemantics, S as validateModelStorageReferences, T as validateStorage, _ as createSqlContractSchema, a as ContractEnumSchema, b as resolveSqlToOneRelationStorage, c as ForeignKeySourceSchema, d as SqlToOneRelationStorage, f as StorageTableSchema, g as createNamespaceEntrySchema, h as checkSqlDefaultText, i as ColumnDefaultSchema, l as IndexSchema, m as ValidateSqlContractFullyOptions, n as ColumnDefaultFunctionSchema, o as ForeignKeyReferenceSchema, p as StorageValueSetSchema, r as ColumnDefaultLiteralSchema, s as ForeignKeySchema, t as CheckConstraintSchema, u as ReferentialActionSchema, v as createSqlStorageSchema, w as validateSqlStorageConsistency, x as validateModel, y as reservedSqlDefaultText } from "./validators-
|
|
28
|
+
import { C as validateSqlContractFully, D as valueObjectStorageTypeMissingMessage, E as validateStorageSemantics, S as validateModelStorageReferences, T as validateStorage, _ as createSqlContractSchema, a as ContractEnumSchema, b as resolveSqlToOneRelationStorage, c as ForeignKeySourceSchema, d as SqlToOneRelationStorage, f as StorageTableSchema, g as createNamespaceEntrySchema, h as checkSqlDefaultText, i as ColumnDefaultSchema, l as IndexSchema, m as ValidateSqlContractFullyOptions, n as ColumnDefaultFunctionSchema, o as ForeignKeyReferenceSchema, p as StorageValueSetSchema, r as ColumnDefaultLiteralSchema, s as ForeignKeySchema, t as CheckConstraintSchema, u as ReferentialActionSchema, v as createSqlStorageSchema, w as validateSqlStorageConsistency, x as validateModel, y as reservedSqlDefaultText } from "./validators-Cr_FFJAG.mjs";
|
|
29
29
|
import { n as deriveValueSetFromEntity, r as providesValueSetDerivation, t as SqlValueSetDerivingEntityTypeOutput } from "./value-set-derivation-hook-BhgGVtw0.mjs";
|
|
30
|
-
export { type AggregateOperationTypes, type AggregateResultType, type AggregateTypesBase, type AggregateTypesOf, type AuthoredCheckInput, type AuthoredIndexInput, type AuthoredIndexMethod, type AuthoredStorageTypeInstance,
|
|
30
|
+
export { type AggregateOperationTypes, type AggregateResultType, type AggregateTypesBase, type AggregateTypesOf, type AuthoredCheckInput, type AuthoredIndexInput, type AuthoredIndexMethod, type AuthoredStorageTypeInstance, CODEC_INSTANCE_KIND, CanonicalDateTimeOptions, CheckConstraint, type CheckConstraintInput, CheckConstraintSchema, type CodecTypesOf, ColumnDefaultFunctionSchema, ColumnDefaultLiteralSchema, ColumnDefaultSchema, ContractEnumSchema, type ContractWithTypeMaps, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, DateTimeShape, type EntityHandleLoweringInput, type ExtractAggregateTypes, type ExtractCodecTypes, type ExtractFieldInputTypes, type ExtractFieldOutputTypes, type ExtractQueryOperationTypes, type ExtractStorageColumnInputTypes, type ExtractStorageColumnTypes, type ExtractTypeMapsFromContract, FOREIGN_KEY_INDEX_UNRESOLVED, type FieldInputTypesOf, type FieldOutputTypesOf, ForeignKey, type ForeignKeyAuthoringInput, type ForeignKeyIndex, type ForeignKeyInput, type ForeignKeyOptions, ForeignKeyReference, type ForeignKeyReferenceInput, ForeignKeyReferenceSchema, ForeignKeySchema, ForeignKeySourceSchema, Index, type IndexCandidate, type IndexInput, IndexSchema, type IndexTypeBuilder, type IndexTypeEntry, type IndexTypeMap, type IndexTypeRegistration, type IndexTypeRegistry, IntegerStep, type LoweredPackEntity, type MaterializedTableConstraints, type NamespacedFieldTypeMap, type NamespacedStorageColumnTypeMap, NumberClassification, NumberClassifierSpec, type PackEntityHandle, PrimaryKey, type PrimaryKeyInput, type QueryOperationReturn, type QueryOperationSelfSpec, type QueryOperationTypeEntry, type QueryOperationTypesBase, type QueryOperationTypesOf, REFERENTIAL_ACTION_SQL, type ReferentialAction, ReferentialActionSchema, RelationKeys, type RelationNamesOf, type ReportedSqlType, type ResolveCodecTypes, type ResolvedEntityHandleRef, type ResolvedPackEntityHandle, type ResolvedPslModelRefs, type ResolvedSqlType, type ResolvedStorageTable, SQL_BUILTIN_KINDS, SQL_EXPRESSION_DATA_TYPE_ID, SQL_EXPRESSION_TAG, type Scalars, type SerializedCheckConstraint, type SerializedIndex, type Shape, type ShapeSpec, type SqlAuthoringContributions, type SqlBuiltinKind, type SqlControlDriverInstance, type SqlDataType, type SqlDataTypeCollision, type SqlDataTypeFacts, type SqlDataTypeSpec, type SqlEntityHandleLoweringContribution, type SqlModelFieldStorage, type SqlModelStorage, type SqlNamespace, SqlNamespaceBase, type SqlNamespaceEntries, type SqlNamespaceFactory, type SqlNamespaceInput, SqlNode, type SqlPslEntityPlacementOutput, type SqlQueryOperationTypes, type SqlSchemaQualifiedView, type SqlSingleNamespaceAccessors, type SqlSingleNamespaceView, SqlStorage, type SqlStorageInput, type SqlStorageTypeEntry, type SqlToOneRelationStorage, type SqlTypeLookups, type SqlTypeParams, type SqlTypeText, type SqlValueSetDerivingEntityTypeOutput, StorageColumn, type StorageColumnInput, type StorageColumnInputTypesOf, type StorageColumnMapAt, type StorageColumnTypeAcrossNamespaces, type StorageColumnTypesOf, StorageTable, type StorageTableInput, StorageTableSchema, type StorageTypeInstance, type StorageTypeInstanceInput, StorageValueSet, type StorageValueSetInput, StorageValueSetSchema, type TypeMaps, type TypeMapsPhantomKey, UniqueConstraint, type UniqueConstraintInput, ValidateSqlContractFullyOptions, applyFkDefaults, assertNothingCastsFromSqlExpression, buildSqlSchemaQualifiedView, buildSqlSingleNamespaceView, canonicalDateTime, canonicalNumeralText, checkConstraintInputFromSerialized, checkSqlDefaultText, col, composeSqlEntityKinds, createIndexTypeRegistry, createNamespaceEntrySchema, createNumberClassifier, createSqlContractSchema, createSqlStorageSchema, dataTypeParams, declaredBackingObjectName, declaredIndexesServeForeignKey, defaultForeignKeyIndex, defineIndexTypes, deriveValueSetFromEntity, derivedBackingIndexIsRedundant, escapePslString, exactNameBodyWarning, findSqlDataTypeCollision, fk, index, indexInputFromSerialized, integerTextCanonicalForm, isAuthoredIndexInput, isMaterializedSqlNamespace, isNumeralText, isSqlAuthoringContributions, isSqlDataType, isStorageTypeInstance, isStorageValueSet, leadingBackingObjectName, lowerAuthoredCheck, lowerAuthoredIndex, materializeForeignKeysAndIndexes, model, numeralText, parseJsonText, pk, printJsonText, printSqlExpressionLiteral, providesEntityHandleLowering, providesPslEntityPlacement, providesValueSetDerivation, renderSqlCatalogText, renderSqlTypeName, reservedSqlDefaultText, resolveReportedSqlType, resolveSqlToOneRelationStorage, resolveStorageTable, resolvedTypeParams, signedRange, sqlBaseName, sqlContractCanonicalizationHooks, sqlDataType, sqlDataTypeOfCodec, sqlExpressionAuthoringEntry, sqlExpressionDataType, sqlTextFromCanonical, table, tableEntityKind, toStorageTypeInstance, unique, unquotedSqlBaseName, unquotedSqlBaseNameOfCodec, validateIndexTypes, validateModel, validateModelStorageReferences, validateSqlContractFully, validateSqlStorageConsistency, validateSqlTypeParams, validateStorage, validateStorageSemantics, valueObjectStorageTypeMissingMessage, valueSetEntityKind };
|
package/dist/contract.mjs
CHANGED
|
@@ -6,17 +6,18 @@ import { t as numeralText } from "./numeral-text-Cqu87pVe-DJCqBaSC.mjs";
|
|
|
6
6
|
import { a as renderSqlTypeName, c as sqlDataType, d as unquotedSqlBaseNameOfCodec, f as validateSqlTypeParams, i as renderSqlCatalogText, l as sqlDataTypeOfCodec, n as findSqlDataTypeCollision, o as resolveReportedSqlType, r as isSqlDataType, s as sqlBaseName, t as dataTypeParams, u as unquotedSqlBaseName } from "./data-type-CAPmGXg9.mjs";
|
|
7
7
|
import { a as integerTextCanonicalForm, c as printJsonText, i as escapePslString, l as signedRange, n as canonicalNumeralText, o as isNumeralText, r as createNumberClassifier, s as parseJsonText, t as canonicalDateTime } from "./data-type-support-Bu-VpT7z.mjs";
|
|
8
8
|
import { n as providesPslEntityPlacement, t as providesEntityHandleLowering } from "./entity-handle-lowering-hook-B3atrRKX.mjs";
|
|
9
|
-
import { a as PrimaryKey, c as StorageTable, i as Index, l as UniqueConstraint, n as ForeignKey, o as SqlNode, r as ForeignKeyReference, s as StorageColumn, t as CheckConstraint } from "./storage-table-
|
|
10
|
-
import { i as isStorageValueSet, n as checkConstraintInputFromSerialized, r as indexInputFromSerialized, t as StorageValueSet } from "./serialized-index-
|
|
11
|
-
import { a as ForeignKeyReferenceSchema, c as IndexSchema, d as StorageValueSetSchema, f as composeSqlEntityKinds, i as ColumnDefaultSchema, l as ReferentialActionSchema, m as valueSetEntityKind, n as ColumnDefaultFunctionSchema, o as ForeignKeySchema, p as tableEntityKind, r as ColumnDefaultLiteralSchema, s as ForeignKeySourceSchema, t as CheckConstraintSchema, u as StorageTableSchema } from "./entity-kinds-
|
|
12
|
-
import { a as pk, i as model, n as fk, o as table, r as index, s as unique, t as col } from "./factories-
|
|
13
|
-
import {
|
|
9
|
+
import { a as PrimaryKey, c as StorageTable, i as Index, l as UniqueConstraint, n as ForeignKey, o as SqlNode, r as ForeignKeyReference, s as StorageColumn, t as CheckConstraint } from "./storage-table-B7OSPl3G-EOodFPzq.mjs";
|
|
10
|
+
import { i as isStorageValueSet, n as checkConstraintInputFromSerialized, r as indexInputFromSerialized, t as StorageValueSet } from "./serialized-index-C26m_DWu-CnNi8WAI.mjs";
|
|
11
|
+
import { a as ForeignKeyReferenceSchema, c as IndexSchema, d as StorageValueSetSchema, f as composeSqlEntityKinds, i as ColumnDefaultSchema, l as ReferentialActionSchema, m as valueSetEntityKind, n as ColumnDefaultFunctionSchema, o as ForeignKeySchema, p as tableEntityKind, r as ColumnDefaultLiteralSchema, s as ForeignKeySourceSchema, t as CheckConstraintSchema, u as StorageTableSchema } from "./entity-kinds-O3V1K26U-B8TUrsX2.mjs";
|
|
12
|
+
import { a as pk, i as model, n as fk, o as table, r as index, s as unique, t as col } from "./factories-Bp41Aity.mjs";
|
|
13
|
+
import { i as leadingBackingObjectName, t as derivedBackingIndexIsRedundant } from "./index-equivalence-DswCiq5l-C7wLMPwF.mjs";
|
|
14
|
+
import { a as materializeForeignKeysAndIndexes, i as defaultForeignKeyIndex, n as declaredBackingObjectName, r as declaredIndexesServeForeignKey, t as FOREIGN_KEY_INDEX_UNRESOLVED } from "./foreign-key-materialization-Cv3q8Pix.mjs";
|
|
14
15
|
import { t as validateIndexTypes } from "./index-type-validation-COH4d78M.mjs";
|
|
15
16
|
import { n as defineIndexTypes, t as createIndexTypeRegistry } from "./index-types-DJQ_xwaE.mjs";
|
|
16
17
|
import { t as REFERENTIAL_ACTION_SQL } from "./referential-action-sql-DSqkrySN.mjs";
|
|
17
18
|
import { t as resolveStorageTable } from "./resolve-storage-table-DZsfnzeW.mjs";
|
|
18
19
|
import { a as sqlExpressionAuthoringEntry, i as printSqlExpressionLiteral, n as SQL_EXPRESSION_TAG, o as sqlExpressionDataType, r as assertNothingCastsFromSqlExpression, s as sqlTextFromCanonical, t as SQL_EXPRESSION_DATA_TYPE_ID } from "./sql-expression-D7GsLgDM.mjs";
|
|
19
|
-
import { a as SqlNamespaceBase, c as isMaterializedSqlNamespace, d as resolvedTypeParams, f as toStorageTypeInstance, i as RelationKeys, l as isSqlAuthoringContributions, n as DEFAULT_FK_CONSTRAINT, o as SqlStorage, r as DEFAULT_FK_INDEX, s as applyFkDefaults, t as CODEC_INSTANCE_KIND, u as isStorageTypeInstance } from "./types-
|
|
20
|
-
import { a as createSqlStorageSchema, c as validateModel, d as validateSqlStorageConsistency, f as validateStorage, i as createSqlContractSchema, l as validateModelStorageReferences, m as valueObjectStorageTypeMissingMessage, n as checkSqlDefaultText, o as reservedSqlDefaultText, p as validateStorageSemantics, r as createNamespaceEntrySchema, s as resolveSqlToOneRelationStorage, t as ContractEnumSchema, u as validateSqlContractFully } from "./validators-
|
|
20
|
+
import { a as SqlNamespaceBase, c as isMaterializedSqlNamespace, d as resolvedTypeParams, f as toStorageTypeInstance, i as RelationKeys, l as isSqlAuthoringContributions, n as DEFAULT_FK_CONSTRAINT, o as SqlStorage, r as DEFAULT_FK_INDEX, s as applyFkDefaults, t as CODEC_INSTANCE_KIND, u as isStorageTypeInstance } from "./types-C7oOtFcJ.mjs";
|
|
21
|
+
import { a as createSqlStorageSchema, c as validateModel, d as validateSqlStorageConsistency, f as validateStorage, i as createSqlContractSchema, l as validateModelStorageReferences, m as valueObjectStorageTypeMissingMessage, n as checkSqlDefaultText, o as reservedSqlDefaultText, p as validateStorageSemantics, r as createNamespaceEntrySchema, s as resolveSqlToOneRelationStorage, t as ContractEnumSchema, u as validateSqlContractFully } from "./validators-oyDG5mVX.mjs";
|
|
21
22
|
import { n as providesValueSetDerivation, t as deriveValueSetFromEntity } from "./value-set-derivation-hook-Di9JZ0X7.mjs";
|
|
22
|
-
export { CODEC_INSTANCE_KIND, CheckConstraint, CheckConstraintSchema, ColumnDefaultFunctionSchema, ColumnDefaultLiteralSchema, ColumnDefaultSchema, ContractEnumSchema, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, ForeignKey, ForeignKeyReference, ForeignKeyReferenceSchema, ForeignKeySchema, ForeignKeySourceSchema, Index, IndexSchema, PrimaryKey, REFERENTIAL_ACTION_SQL, ReferentialActionSchema, RelationKeys, SQL_BUILTIN_KINDS, SQL_EXPRESSION_DATA_TYPE_ID, SQL_EXPRESSION_TAG, SqlNamespaceBase, SqlNode, SqlStorage, StorageColumn, StorageTable, StorageTableSchema, StorageValueSet, StorageValueSetSchema, UniqueConstraint, applyFkDefaults, assertNothingCastsFromSqlExpression,
|
|
23
|
+
export { CODEC_INSTANCE_KIND, CheckConstraint, CheckConstraintSchema, ColumnDefaultFunctionSchema, ColumnDefaultLiteralSchema, ColumnDefaultSchema, ContractEnumSchema, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, FOREIGN_KEY_INDEX_UNRESOLVED, ForeignKey, ForeignKeyReference, ForeignKeyReferenceSchema, ForeignKeySchema, ForeignKeySourceSchema, Index, IndexSchema, PrimaryKey, REFERENTIAL_ACTION_SQL, ReferentialActionSchema, RelationKeys, SQL_BUILTIN_KINDS, SQL_EXPRESSION_DATA_TYPE_ID, SQL_EXPRESSION_TAG, SqlNamespaceBase, SqlNode, SqlStorage, StorageColumn, StorageTable, StorageTableSchema, StorageValueSet, StorageValueSetSchema, UniqueConstraint, applyFkDefaults, assertNothingCastsFromSqlExpression, buildSqlSchemaQualifiedView, buildSqlSingleNamespaceView, canonicalDateTime, canonicalNumeralText, checkConstraintInputFromSerialized, checkSqlDefaultText, col, composeSqlEntityKinds, createIndexTypeRegistry, createNamespaceEntrySchema, createNumberClassifier, createSqlContractSchema, createSqlStorageSchema, dataTypeParams, declaredBackingObjectName, declaredIndexesServeForeignKey, defaultForeignKeyIndex, defineIndexTypes, deriveValueSetFromEntity, derivedBackingIndexIsRedundant, escapePslString, exactNameBodyWarning, findSqlDataTypeCollision, fk, index, indexInputFromSerialized, integerTextCanonicalForm, isAuthoredIndexInput, isMaterializedSqlNamespace, isNumeralText, isSqlAuthoringContributions, isSqlDataType, isStorageTypeInstance, isStorageValueSet, leadingBackingObjectName, lowerAuthoredCheck, lowerAuthoredIndex, materializeForeignKeysAndIndexes, model, numeralText, parseJsonText, pk, printJsonText, printSqlExpressionLiteral, providesEntityHandleLowering, providesPslEntityPlacement, providesValueSetDerivation, renderSqlCatalogText, renderSqlTypeName, reservedSqlDefaultText, resolveReportedSqlType, resolveSqlToOneRelationStorage, resolveStorageTable, resolvedTypeParams, signedRange, sqlBaseName, sqlContractCanonicalizationHooks, sqlDataType, sqlDataTypeOfCodec, sqlExpressionAuthoringEntry, sqlExpressionDataType, sqlTextFromCanonical, table, tableEntityKind, toStorageTypeInstance, unique, unquotedSqlBaseName, unquotedSqlBaseNameOfCodec, validateIndexTypes, validateModel, validateModelStorageReferences, validateSqlContractFully, validateSqlStorageConsistency, validateSqlTypeParams, validateStorage, validateStorageSemantics, valueObjectStorageTypeMissingMessage, valueSetEntityKind };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as SqlSingleNamespaceView, i as SqlSingleNamespaceAccessors, n as SqlBuiltinKind, o as buildSqlSchemaQualifiedView, r as SqlSchemaQualifiedView, s as buildSqlSingleNamespaceView, t as SQL_BUILTIN_KINDS } from "./contract-view-
|
|
1
|
+
import { a as SqlSingleNamespaceView, i as SqlSingleNamespaceAccessors, n as SqlBuiltinKind, o as buildSqlSchemaQualifiedView, r as SqlSchemaQualifiedView, s as buildSqlSingleNamespaceView, t as SQL_BUILTIN_KINDS } from "./contract-view-C1xX3yIj.mjs";
|
|
2
2
|
export { SQL_BUILTIN_KINDS, type SqlBuiltinKind, type SqlSchemaQualifiedView, type SqlSingleNamespaceAccessors, type SqlSingleNamespaceView, buildSqlSchemaQualifiedView, buildSqlSingleNamespaceView };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as tableEntityKind, r as valueSetEntityKind, t as composeSqlEntityKinds } from "./entity-kinds
|
|
1
|
+
import { n as tableEntityKind, r as valueSetEntityKind, t as composeSqlEntityKinds } from "./entity-kinds--HvqT50S.mjs";
|
|
2
2
|
export { composeSqlEntityKinds, tableEntityKind, valueSetEntityKind };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { f as composeSqlEntityKinds, m as valueSetEntityKind, p as tableEntityKind } from "./entity-kinds-
|
|
1
|
+
import { f as composeSqlEntityKinds, m as valueSetEntityKind, p as tableEntityKind } from "./entity-kinds-O3V1K26U-B8TUrsX2.mjs";
|
|
2
2
|
export { composeSqlEntityKinds, tableEntityKind, valueSetEntityKind };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as pk, i as model, n as fk, o as table, r as index, s as unique, t as col } from "./factories-
|
|
1
|
+
import { a as pk, i as model, n as fk, o as table, r as index, s as unique, t as col } from "./factories-DzLBAAvj.mjs";
|
|
2
2
|
export { col, fk, index, model, pk, table, unique };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as pk, i as model, n as fk, o as table, r as index, s as unique, t as col } from "./factories-
|
|
1
|
+
import { a as pk, i as model, n as fk, o as table, r as index, s as unique, t as col } from "./factories-Bp41Aity.mjs";
|
|
2
2
|
export { col, fk, index, model, pk, table, unique };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { type
|
|
1
|
+
import { a as declaredBackingObjectName, c as derivedBackingIndexIsRedundant, i as MaterializedTableConstraints, l as leadingBackingObjectName, n as ForeignKeyAuthoringInput, o as declaredIndexesServeForeignKey, r as IndexCandidate, s as defaultForeignKeyIndex, t as FOREIGN_KEY_INDEX_UNRESOLVED, u as materializeForeignKeysAndIndexes } from "./foreign-key-materialization-D0Ltg78T.mjs";
|
|
2
|
+
export { FOREIGN_KEY_INDEX_UNRESOLVED, type ForeignKeyAuthoringInput, type IndexCandidate, type MaterializedTableConstraints, declaredBackingObjectName, declaredIndexesServeForeignKey, defaultForeignKeyIndex, derivedBackingIndexIsRedundant, leadingBackingObjectName, materializeForeignKeysAndIndexes };
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { i as leadingBackingObjectName, t as derivedBackingIndexIsRedundant } from "./index-equivalence-DswCiq5l-C7wLMPwF.mjs";
|
|
2
|
+
import { a as materializeForeignKeysAndIndexes, i as defaultForeignKeyIndex, n as declaredBackingObjectName, r as declaredIndexesServeForeignKey, t as FOREIGN_KEY_INDEX_UNRESOLVED } from "./foreign-key-materialization-Cv3q8Pix.mjs";
|
|
3
|
+
export { FOREIGN_KEY_INDEX_UNRESOLVED, declaredBackingObjectName, declaredIndexesServeForeignKey, defaultForeignKeyIndex, derivedBackingIndexIsRedundant, leadingBackingObjectName, materializeForeignKeysAndIndexes };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as validateIndexTypes } from "./index-type-validation-
|
|
1
|
+
import { t as validateIndexTypes } from "./index-type-validation-B925ye4q.mjs";
|
|
2
2
|
export { validateIndexTypes };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as REFERENTIAL_ACTION_SQL } from "./referential-action-sql-
|
|
1
|
+
import { t as REFERENTIAL_ACTION_SQL } from "./referential-action-sql-Cw1Q0YSd.mjs";
|
|
2
2
|
export { REFERENTIAL_ACTION_SQL };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-
|
|
1
|
+
import { n as resolveStorageTable, t as ResolvedStorageTable } from "./resolve-storage-table-B7m9cFy4.mjs";
|
|
2
2
|
export { type ResolvedStorageTable, resolveStorageTable };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as SqlNode } from "./sql-node-kEz6YFZo-v2F7delx.mjs";
|
|
2
2
|
import { n as CheckConstraintInput, t as CheckConstraint } from "./check-constraint-B7qGu6rc-agxAjKLG.mjs";
|
|
3
|
-
import { a as
|
|
3
|
+
import { a as ForeignKeyReferenceInput, i as ForeignKeyReference, n as ForeignKeyIndex, o as ReferentialAction, r as ForeignKeyInput, t as ForeignKey } from "./foreign-key-qkDFfG8t-Fyrzd0VI.mjs";
|
|
4
4
|
import { i as UniqueConstraintInput, n as PrimaryKeyInput, r as UniqueConstraint, t as PrimaryKey } from "./unique-constraint-M5TlQnJQ-BiIHJ85k.mjs";
|
|
5
5
|
import { r as IndexInput, t as Index } from "./sql-index-ByAAE7K8-DPkZtr7t.mjs";
|
|
6
|
-
import { i as StorageTableInput, n as StorageColumnInput, r as StorageTable, t as StorageColumn } from "./storage-table-
|
|
6
|
+
import { i as StorageTableInput, n as StorageColumnInput, r as StorageTable, t as StorageColumn } from "./storage-table-WXeVNycx-tlFMnbig.mjs";
|
|
7
7
|
import { n as StorageValueSetInput, r as isStorageValueSet, t as StorageValueSet } from "./storage-value-set-BGlj5Uus-CvZD--GG.mjs";
|
|
8
|
-
import { _ as resolvedTypeParams, a as SqlNamespaceBase, c as SqlNamespaceInput, d as SqlStorageTypeEntry, f as StorageTypeInstance, g as isStorageTypeInstance, h as isSqlAuthoringContributions, i as SqlNamespace, l as SqlStorage, m as isMaterializedSqlNamespace, n as CODEC_INSTANCE_KIND, o as SqlNamespaceEntries, p as StorageTypeInstanceInput, r as SqlAuthoringContributions, s as SqlNamespaceFactory, t as AuthoredStorageTypeInstance, u as SqlStorageInput, v as toStorageTypeInstance } from "./sql-storage-
|
|
8
|
+
import { _ as resolvedTypeParams, a as SqlNamespaceBase, c as SqlNamespaceInput, d as SqlStorageTypeEntry, f as StorageTypeInstance, g as isStorageTypeInstance, h as isSqlAuthoringContributions, i as SqlNamespace, l as SqlStorage, m as isMaterializedSqlNamespace, n as CODEC_INSTANCE_KIND, o as SqlNamespaceEntries, p as StorageTypeInstanceInput, r as SqlAuthoringContributions, s as SqlNamespaceFactory, t as AuthoredStorageTypeInstance, u as SqlStorageInput, v as toStorageTypeInstance } from "./sql-storage-BTlJLUID-O6fBB_am.mjs";
|
|
9
9
|
import { i as indexInputFromSerialized, n as SerializedIndex, r as checkConstraintInputFromSerialized, t as SerializedCheckConstraint } from "./serialized-index-CrgG8ct1-D64Figsu.mjs";
|
|
10
|
-
import { A as SqlModelStorage, C as QueryOperationSelfSpec, D as ResolveCodecTypes, E as QueryOperationTypesOf, F as TypeMapsPhantomKey, I as applyFkDefaults, M as StorageColumnInputTypesOf, N as StorageColumnTypesOf, O as SqlControlDriverInstance, P as TypeMaps, S as QueryOperationReturn, T as QueryOperationTypesBase, _ as FieldInputTypesOf, a as CodecTypesOf, b as NamespacedFieldTypeMap, c as DEFAULT_FK_INDEX, d as ExtractFieldInputTypes, f as ExtractFieldOutputTypes, g as ExtractTypeMapsFromContract, h as ExtractStorageColumnTypes, i as AggregateTypesOf, j as SqlQueryOperationTypes, k as SqlModelFieldStorage, l as ExtractAggregateTypes, m as ExtractStorageColumnInputTypes, n as AggregateResultType, o as ContractWithTypeMaps, p as ExtractQueryOperationTypes, r as AggregateTypesBase, s as DEFAULT_FK_CONSTRAINT, t as AggregateOperationTypes, u as ExtractCodecTypes, v as FieldOutputTypesOf, w as QueryOperationTypeEntry, x as NamespacedStorageColumnTypeMap, y as ForeignKeyOptions } from "./types-
|
|
11
|
-
import { a as ShapeSpec, i as Shape, n as RelationNamesOf, o as StorageColumnMapAt, r as Scalars, s as StorageColumnTypeAcrossNamespaces, t as RelationKeys } from "./types-
|
|
12
|
-
export { type AggregateOperationTypes, type AggregateResultType, type AggregateTypesBase, type AggregateTypesOf, type AuthoredStorageTypeInstance, CODEC_INSTANCE_KIND, CheckConstraint, type CheckConstraintInput, type CodecTypesOf, type ContractWithTypeMaps, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, type ExtractAggregateTypes, type ExtractCodecTypes, type ExtractFieldInputTypes, type ExtractFieldOutputTypes, type ExtractQueryOperationTypes, type ExtractStorageColumnInputTypes, type ExtractStorageColumnTypes, type ExtractTypeMapsFromContract, type FieldInputTypesOf, type FieldOutputTypesOf, ForeignKey, type ForeignKeyInput, type ForeignKeyOptions, ForeignKeyReference, type ForeignKeyReferenceInput, Index, type IndexInput, type NamespacedFieldTypeMap, type NamespacedStorageColumnTypeMap, PrimaryKey, type PrimaryKeyInput, type QueryOperationReturn, type QueryOperationSelfSpec, type QueryOperationTypeEntry, type QueryOperationTypesBase, type QueryOperationTypesOf, type ReferentialAction, RelationKeys, type RelationNamesOf, type ResolveCodecTypes, type Scalars, type SerializedCheckConstraint, type SerializedIndex, type Shape, type ShapeSpec, type SqlAuthoringContributions, type SqlControlDriverInstance, type SqlModelFieldStorage, type SqlModelStorage, type SqlNamespace, SqlNamespaceBase, type SqlNamespaceEntries, type SqlNamespaceFactory, type SqlNamespaceInput, SqlNode, type SqlQueryOperationTypes, SqlStorage, type SqlStorageInput, type SqlStorageTypeEntry, StorageColumn, type StorageColumnInput, type StorageColumnInputTypesOf, type StorageColumnMapAt, type StorageColumnTypeAcrossNamespaces, type StorageColumnTypesOf, StorageTable, type StorageTableInput, type StorageTypeInstance, type StorageTypeInstanceInput, StorageValueSet, type StorageValueSetInput, type TypeMaps, type TypeMapsPhantomKey, UniqueConstraint, type UniqueConstraintInput, applyFkDefaults, checkConstraintInputFromSerialized, indexInputFromSerialized, isMaterializedSqlNamespace, isSqlAuthoringContributions, isStorageTypeInstance, isStorageValueSet, resolvedTypeParams, toStorageTypeInstance };
|
|
10
|
+
import { A as SqlModelStorage, C as QueryOperationSelfSpec, D as ResolveCodecTypes, E as QueryOperationTypesOf, F as TypeMapsPhantomKey, I as applyFkDefaults, M as StorageColumnInputTypesOf, N as StorageColumnTypesOf, O as SqlControlDriverInstance, P as TypeMaps, S as QueryOperationReturn, T as QueryOperationTypesBase, _ as FieldInputTypesOf, a as CodecTypesOf, b as NamespacedFieldTypeMap, c as DEFAULT_FK_INDEX, d as ExtractFieldInputTypes, f as ExtractFieldOutputTypes, g as ExtractTypeMapsFromContract, h as ExtractStorageColumnTypes, i as AggregateTypesOf, j as SqlQueryOperationTypes, k as SqlModelFieldStorage, l as ExtractAggregateTypes, m as ExtractStorageColumnInputTypes, n as AggregateResultType, o as ContractWithTypeMaps, p as ExtractQueryOperationTypes, r as AggregateTypesBase, s as DEFAULT_FK_CONSTRAINT, t as AggregateOperationTypes, u as ExtractCodecTypes, v as FieldOutputTypesOf, w as QueryOperationTypeEntry, x as NamespacedStorageColumnTypeMap, y as ForeignKeyOptions } from "./types-DFZhLz18-C_h0u-Zx.mjs";
|
|
11
|
+
import { a as ShapeSpec, i as Shape, n as RelationNamesOf, o as StorageColumnMapAt, r as Scalars, s as StorageColumnTypeAcrossNamespaces, t as RelationKeys } from "./types-BURWzacK.mjs";
|
|
12
|
+
export { type AggregateOperationTypes, type AggregateResultType, type AggregateTypesBase, type AggregateTypesOf, type AuthoredStorageTypeInstance, CODEC_INSTANCE_KIND, CheckConstraint, type CheckConstraintInput, type CodecTypesOf, type ContractWithTypeMaps, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, type ExtractAggregateTypes, type ExtractCodecTypes, type ExtractFieldInputTypes, type ExtractFieldOutputTypes, type ExtractQueryOperationTypes, type ExtractStorageColumnInputTypes, type ExtractStorageColumnTypes, type ExtractTypeMapsFromContract, type FieldInputTypesOf, type FieldOutputTypesOf, ForeignKey, type ForeignKeyIndex, type ForeignKeyInput, type ForeignKeyOptions, ForeignKeyReference, type ForeignKeyReferenceInput, Index, type IndexInput, type NamespacedFieldTypeMap, type NamespacedStorageColumnTypeMap, PrimaryKey, type PrimaryKeyInput, type QueryOperationReturn, type QueryOperationSelfSpec, type QueryOperationTypeEntry, type QueryOperationTypesBase, type QueryOperationTypesOf, type ReferentialAction, RelationKeys, type RelationNamesOf, type ResolveCodecTypes, type Scalars, type SerializedCheckConstraint, type SerializedIndex, type Shape, type ShapeSpec, type SqlAuthoringContributions, type SqlControlDriverInstance, type SqlModelFieldStorage, type SqlModelStorage, type SqlNamespace, SqlNamespaceBase, type SqlNamespaceEntries, type SqlNamespaceFactory, type SqlNamespaceInput, SqlNode, type SqlQueryOperationTypes, SqlStorage, type SqlStorageInput, type SqlStorageTypeEntry, StorageColumn, type StorageColumnInput, type StorageColumnInputTypesOf, type StorageColumnMapAt, type StorageColumnTypeAcrossNamespaces, type StorageColumnTypesOf, StorageTable, type StorageTableInput, type StorageTypeInstance, type StorageTypeInstanceInput, StorageValueSet, type StorageValueSetInput, type TypeMaps, type TypeMapsPhantomKey, UniqueConstraint, type UniqueConstraintInput, applyFkDefaults, checkConstraintInputFromSerialized, indexInputFromSerialized, isMaterializedSqlNamespace, isSqlAuthoringContributions, isStorageTypeInstance, isStorageValueSet, resolvedTypeParams, toStorageTypeInstance };
|
package/dist/contract__types.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as PrimaryKey, c as StorageTable, i as Index, l as UniqueConstraint, n as ForeignKey, o as SqlNode, r as ForeignKeyReference, s as StorageColumn, t as CheckConstraint } from "./storage-table-
|
|
2
|
-
import { i as isStorageValueSet, n as checkConstraintInputFromSerialized, r as indexInputFromSerialized, t as StorageValueSet } from "./serialized-index-
|
|
3
|
-
import { a as SqlNamespaceBase, c as isMaterializedSqlNamespace, d as resolvedTypeParams, f as toStorageTypeInstance, i as RelationKeys, l as isSqlAuthoringContributions, n as DEFAULT_FK_CONSTRAINT, o as SqlStorage, r as DEFAULT_FK_INDEX, s as applyFkDefaults, t as CODEC_INSTANCE_KIND, u as isStorageTypeInstance } from "./types-
|
|
1
|
+
import { a as PrimaryKey, c as StorageTable, i as Index, l as UniqueConstraint, n as ForeignKey, o as SqlNode, r as ForeignKeyReference, s as StorageColumn, t as CheckConstraint } from "./storage-table-B7OSPl3G-EOodFPzq.mjs";
|
|
2
|
+
import { i as isStorageValueSet, n as checkConstraintInputFromSerialized, r as indexInputFromSerialized, t as StorageValueSet } from "./serialized-index-C26m_DWu-CnNi8WAI.mjs";
|
|
3
|
+
import { a as SqlNamespaceBase, c as isMaterializedSqlNamespace, d as resolvedTypeParams, f as toStorageTypeInstance, i as RelationKeys, l as isSqlAuthoringContributions, n as DEFAULT_FK_CONSTRAINT, o as SqlStorage, r as DEFAULT_FK_INDEX, s as applyFkDefaults, t as CODEC_INSTANCE_KIND, u as isStorageTypeInstance } from "./types-C7oOtFcJ.mjs";
|
|
4
4
|
export { CODEC_INSTANCE_KIND, CheckConstraint, DEFAULT_FK_CONSTRAINT, DEFAULT_FK_INDEX, ForeignKey, ForeignKeyReference, Index, PrimaryKey, RelationKeys, SqlNamespaceBase, SqlNode, SqlStorage, StorageColumn, StorageTable, StorageValueSet, UniqueConstraint, applyFkDefaults, checkConstraintInputFromSerialized, indexInputFromSerialized, isMaterializedSqlNamespace, isSqlAuthoringContributions, isStorageTypeInstance, isStorageValueSet, resolvedTypeParams, toStorageTypeInstance };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as validateSqlContractFully, D as valueObjectStorageTypeMissingMessage, E as validateStorageSemantics, S as validateModelStorageReferences, T as validateStorage, _ as createSqlContractSchema, a as ContractEnumSchema, b as resolveSqlToOneRelationStorage, c as ForeignKeySourceSchema, d as SqlToOneRelationStorage, f as StorageTableSchema, g as createNamespaceEntrySchema, h as checkSqlDefaultText, i as ColumnDefaultSchema, l as IndexSchema, m as ValidateSqlContractFullyOptions, n as ColumnDefaultFunctionSchema, o as ForeignKeyReferenceSchema, p as StorageValueSetSchema, r as ColumnDefaultLiteralSchema, s as ForeignKeySchema, t as CheckConstraintSchema, u as ReferentialActionSchema, v as createSqlStorageSchema, w as validateSqlStorageConsistency, x as validateModel, y as reservedSqlDefaultText } from "./validators-
|
|
1
|
+
import { C as validateSqlContractFully, D as valueObjectStorageTypeMissingMessage, E as validateStorageSemantics, S as validateModelStorageReferences, T as validateStorage, _ as createSqlContractSchema, a as ContractEnumSchema, b as resolveSqlToOneRelationStorage, c as ForeignKeySourceSchema, d as SqlToOneRelationStorage, f as StorageTableSchema, g as createNamespaceEntrySchema, h as checkSqlDefaultText, i as ColumnDefaultSchema, l as IndexSchema, m as ValidateSqlContractFullyOptions, n as ColumnDefaultFunctionSchema, o as ForeignKeyReferenceSchema, p as StorageValueSetSchema, r as ColumnDefaultLiteralSchema, s as ForeignKeySchema, t as CheckConstraintSchema, u as ReferentialActionSchema, v as createSqlStorageSchema, w as validateSqlStorageConsistency, x as validateModel, y as reservedSqlDefaultText } from "./validators-Cr_FFJAG.mjs";
|
|
2
2
|
export { CheckConstraintSchema, ColumnDefaultFunctionSchema, ColumnDefaultLiteralSchema, ColumnDefaultSchema, ContractEnumSchema, ForeignKeyReferenceSchema, ForeignKeySchema, ForeignKeySourceSchema, IndexSchema, ReferentialActionSchema, type SqlToOneRelationStorage, StorageTableSchema, StorageValueSetSchema, ValidateSqlContractFullyOptions, checkSqlDefaultText, createNamespaceEntrySchema, createSqlContractSchema, createSqlStorageSchema, reservedSqlDefaultText, resolveSqlToOneRelationStorage, validateModel, validateModelStorageReferences, validateSqlContractFully, validateSqlStorageConsistency, validateStorage, validateStorageSemantics, valueObjectStorageTypeMissingMessage };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as ForeignKeyReferenceSchema, c as IndexSchema, d as StorageValueSetSchema, i as ColumnDefaultSchema, l as ReferentialActionSchema, n as ColumnDefaultFunctionSchema, o as ForeignKeySchema, r as ColumnDefaultLiteralSchema, s as ForeignKeySourceSchema, t as CheckConstraintSchema, u as StorageTableSchema } from "./entity-kinds-
|
|
2
|
-
import { a as createSqlStorageSchema, c as validateModel, d as validateSqlStorageConsistency, f as validateStorage, i as createSqlContractSchema, l as validateModelStorageReferences, m as valueObjectStorageTypeMissingMessage, n as checkSqlDefaultText, o as reservedSqlDefaultText, p as validateStorageSemantics, r as createNamespaceEntrySchema, s as resolveSqlToOneRelationStorage, t as ContractEnumSchema, u as validateSqlContractFully } from "./validators-
|
|
1
|
+
import { a as ForeignKeyReferenceSchema, c as IndexSchema, d as StorageValueSetSchema, i as ColumnDefaultSchema, l as ReferentialActionSchema, n as ColumnDefaultFunctionSchema, o as ForeignKeySchema, r as ColumnDefaultLiteralSchema, s as ForeignKeySourceSchema, t as CheckConstraintSchema, u as StorageTableSchema } from "./entity-kinds-O3V1K26U-B8TUrsX2.mjs";
|
|
2
|
+
import { a as createSqlStorageSchema, c as validateModel, d as validateSqlStorageConsistency, f as validateStorage, i as createSqlContractSchema, l as validateModelStorageReferences, m as valueObjectStorageTypeMissingMessage, n as checkSqlDefaultText, o as reservedSqlDefaultText, p as validateStorageSemantics, r as createNamespaceEntrySchema, s as resolveSqlToOneRelationStorage, t as ContractEnumSchema, u as validateSqlContractFully } from "./validators-oyDG5mVX.mjs";
|
|
3
3
|
export { CheckConstraintSchema, ColumnDefaultFunctionSchema, ColumnDefaultLiteralSchema, ColumnDefaultSchema, ContractEnumSchema, ForeignKeyReferenceSchema, ForeignKeySchema, ForeignKeySourceSchema, IndexSchema, ReferentialActionSchema, StorageTableSchema, StorageValueSetSchema, checkSqlDefaultText, createNamespaceEntrySchema, createSqlContractSchema, createSqlStorageSchema, reservedSqlDefaultText, resolveSqlToOneRelationStorage, validateModel, validateModelStorageReferences, validateSqlContractFully, validateSqlStorageConsistency, validateStorage, validateStorageSemantics, valueObjectStorageTypeMissingMessage };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { t as StorageColumn } from "./storage-table-
|
|
2
|
-
import { l as SqlStorage } from "./sql-storage-
|
|
3
|
-
import { O as SqlControlDriverInstance } from "./types-
|
|
4
|
-
import "./types-
|
|
5
|
-
import { r as SqlOperationDescriptors } from "./index-
|
|
6
|
-
import { h as AnyQueryAst } from "./types-Sh5HuaZE-
|
|
1
|
+
import { t as StorageColumn } from "./storage-table-WXeVNycx-tlFMnbig.mjs";
|
|
2
|
+
import { l as SqlStorage } from "./sql-storage-BTlJLUID-O6fBB_am.mjs";
|
|
3
|
+
import { O as SqlControlDriverInstance } from "./types-DFZhLz18-C_h0u-Zx.mjs";
|
|
4
|
+
import "./types-BURWzacK.mjs";
|
|
5
|
+
import { r as SqlOperationDescriptors } from "./index-CnpTmyXs.mjs";
|
|
6
|
+
import { h as AnyQueryAst } from "./types-Sh5HuaZE-B_FQUPng.mjs";
|
|
7
7
|
import { o as SqlExecuteRequest } from "./driver-types-DRsYeq3j-X_D6hNMZ.mjs";
|
|
8
|
-
import { a as DdlNode } from "./ddl-types-DtKZjNtN-
|
|
9
|
-
import { p as LowererContext } from "./ast-
|
|
8
|
+
import { a as DdlNode } from "./ddl-types-DtKZjNtN-CByECwns.mjs";
|
|
9
|
+
import { p as LowererContext } from "./ast-Bmb-2vbO.mjs";
|
|
10
10
|
import { s as SqlTypeLookups } from "./data-type-CpqSDmR_.mjs";
|
|
11
|
-
import { t as SQL_EXPRESSION_DATA_TYPE_ID } from "./sql-expression-DE_MTt3T.mjs";
|
|
12
|
-
import "./validators-BAa0JKuB.mjs";
|
|
13
11
|
import { _ as SqlSchemaIR, y as SqlSchemaIRNode } from "./types-CLsPsUiw-Db1BsN9R.mjs";
|
|
14
12
|
import "./types-D6XuABFQ.mjs";
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import { t as
|
|
13
|
+
import { t as SQL_EXPRESSION_DATA_TYPE_ID } from "./sql-expression-DE_MTt3T.mjs";
|
|
14
|
+
import "./validators-Cr_FFJAG.mjs";
|
|
15
|
+
import { r as SqlControlAdapter } from "./control-adapter-CkFfBVei-BLYeKcLW.mjs";
|
|
16
|
+
import { t as sqlFamilyEnumSpec } from "./authoring-entity-types-CZ-vdwYS-BLYHcBXG.mjs";
|
|
17
|
+
import { D as SqlPlannerFailureResult, S as SqlMigrationRunnerSuccessValue, _ as SqlMigrationRunnerErrorCode, b as SqlMigrationRunnerFailure, g as SqlMigrationRunner, k as SqlPlannerSuccessResult, l as SqlMigrationPlan, m as SqlMigrationPlanner, n as CodecControlHooks, r as CreateSqlMigrationPlanOptions, t as AnyRecord, w as SqlPlannerConflict } from "./types-CzxOObSY-DEfjmbj1.mjs";
|
|
18
|
+
import { t as SqlSchemaDiffFn } from "./schema-differ-CqWOkoW9-BABSAGGB.mjs";
|
|
19
19
|
import { StructuredError } from "@prisma/orm-framework/utils/structured-error";
|
|
20
20
|
import { DataTypeSupport, PresetStorageTemplate, TIMESTAMP_NOW_GENERATOR_ID } from "@prisma/orm-framework/components/authoring";
|
|
21
21
|
import { CodecLookupWithDescriptors, DataType } from "@prisma/orm-framework/components/codec";
|
|
@@ -434,7 +434,7 @@ declare class SqlFamilyDescriptor implements ControlFamilyDescriptor<'sql', SqlC
|
|
|
434
434
|
readonly map?: string;
|
|
435
435
|
readonly onDelete?: "NoAction" | "Restrict" | "Cascade" | "SetNull" | "SetDefault";
|
|
436
436
|
readonly onUpdate?: "NoAction" | "Restrict" | "Cascade" | "SetNull" | "SetDefault";
|
|
437
|
-
readonly index?: boolean;
|
|
437
|
+
readonly index?: string | boolean;
|
|
438
438
|
}, import("@prisma/orm-framework/psl-parser").FieldAttributeCtx>;
|
|
439
439
|
readonly default: (ctx: import("@prisma/orm-framework/psl-parser").FieldAttributeSpecContext) => import("@prisma/orm-framework/psl-parser").AttributeSpec<{
|
|
440
440
|
value: import("@prisma/orm-framework/psl-parser").TypedFuncCall | (string | boolean | import("@prisma/orm-framework/psl-parser").NumLiteral | import("@prisma/orm-framework/psl-parser").ParsedTaggedLiteral | null) | (string | boolean | import("@prisma/orm-framework/psl-parser").NumLiteral | import("@prisma/orm-framework/psl-parser").ParsedTaggedLiteral | null)[];
|
|
@@ -1180,4 +1180,4 @@ declare function temporalCodecPresetWithPrecision<const CodecId extends string,
|
|
|
1180
1180
|
declare const _default: SqlFamilyDescriptor;
|
|
1181
1181
|
//#endregion
|
|
1182
1182
|
export { partitionIssuesByControlPolicy as $, SqlDescribedContractSpace as A, _default as B, NoTable as C, SingleOperationCall as D, SchemaTables as E, TABLE_NAME_CASE_CHANGED_CODE as F, createMigrationPlan as G, contractNamespaceToSchemaIR as H, TableNameCaseGuardTable as I, extractCodecControlHooks as J, detectDestructiveChanges as K, TableRename as L, StatementPlanningTarget as M, SubjectStorage as N, SqlControlFamilyInstance as O, SuppressionRecord as P, partitionCallsByControlPolicy as Q, TableRenameRequest as R, ModelTable as S, PlannedStatements as T, contractToSchemaIR as U, assembleAuthoringContributions as V, controlPolicyForCall as W, fieldRenameStorageEffect as X, fieldEventStorage as Y, modelRenameStorageEffect as Z, MigrationPlanOperation$1 as _, ColumnRename as a, resolveColumnRenameAgainst as at, MigrationPlannerResult as b, ControlPolicySubject as c, runnerSuccess as ct, FieldEventCall as d, subjectsOfCalls as dt, planFieldEventCalls as et, FieldStorageEffect as f, temporalCodecPresetWithPrecision as ft, MigrationPlan$1 as g, unmatchedTableRename as gt, MigrationOperationPolicy$1 as h, unmatchedColumnRename as ht, ColumnOnOneSide as i, plannerSuccess as it, SqlPslBuildContext as j, SqlControlTargetDescriptor as k, DefaultRenderer as l, sqlTypeLookupsOf as lt, MigrationOperationClass$1 as m, unknownCallNames as mt, CallSubjects as n, planStatements as nt, ColumnRenameRequest as o, resolveTableRenameAgainst as ot, INIT_ADDITIVE_POLICY as p, temporalStringAuthoringPresets as pt, detectTableNameCaseChanges as q, CallWithCompanions as r, plannerFailure as rt, ContractToSchemaIROptions as s, runnerFailure as st, COLUMN_RENAME_UNMATCHED_CODE as t, planFieldEventOperations as tt, DefaultResolver as u, storageNameOfOperation as ut, MigrationPlanner as v, PlanFieldEventOperationsOptions as w, ModelStorageEffect as x, MigrationPlannerConflict$1 as y, TargetMigrationsCapability as z };
|
|
1183
|
-
//# sourceMappingURL=control-
|
|
1183
|
+
//# sourceMappingURL=control-B3Mb21Md.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"control-
|
|
1
|
+
{"version":3,"file":"control-B3Mb21Md.d.mts","names":[],"sources":["../../../../2-sql/9-family/dist/control.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAqBU;WACC,kBAAkB,cAAc;WAChC,cAAc;;UAEf,iCAAiC,6BAA6B,kBAAkB,kBAAkB,kBAAkB,wBAAwB,kBAAkB,wBAAwB,SAAS,cAAc,yBAAyB;;;;;;;;;EAS9O,oBAAoB,wBAAwB;EAC5C,OAAO;aACI,QAAQ;aACR;aACA;aACA;aACA;MACP,QAAQ;;;;;;;;;;EAUZ,aAAa;aACF;aACA,QAAQ;aACR;aACA,qBAAqB,cAAc;MAC1C;;;;;;;;;;EAUJ,2BAA2B,OAAO,kBAAkB;;;;;;;;EAQpD,mBAAmB,OAAO;EAC1B,WAAW;aACA,QAAQ;aACR;MACP,QAAQ;EACZ,iBAAiB,UAAU,kBAAkB;EAC7C,SAAS,KAAK,cAAc,SAAS,SAAS,0BAA0B,QAAQ;;;;;;EAMhF,WAAW;aACA,QAAQ;aACR;aACA;eACE;eACA;eACA;;MAET;;;;;EAKJ,aAAa;aACF,QAAQ;aACR;aACA;aACA;eACE;eACA;eACA;;MAET;;;;;EAKJ,iBAAiB;aACN,QAAQ;aACR;aACA;eACE;eACA;eACA;eACA;eACA;eACA;eACA;;MAET;EACJ,yCAAyC;EACzC,mBAAmB,qBAAqB,2BAA6B;EACrE,cAAc,WAAW;;;;cAIb,+BAA+B,+BAA+B;WACjE;WACA;WACA;WACA;WACA,UAAU;WACV,oBAAoB;WACpB;aACE;eACE;iBACE;iBACA;mBACE;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;mBACA;qBACE;uBACE;uBACA;uBACA;uBACA;uBACA;;;;iBAIN;mBACE;mBACA;qBACE;uBACE;uBACA;uBACA;uBACA;;;;;eAKR;iBACE;iBACA;mBACE;mBACA;qBACE;;;;eAIN;iBACE;iBACA;mBACE;mBACA;qBACE;;;;eAIN;iBACE;mBACE;mBACA;qBACE;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;qBACA;uBACE;yBACE;yBACA;yBACA;yBACA;yBACA;;;;mBAIN;qBACE;qBACA;uBACE;yBACE;yBACA;yBACA;yBACA;;;qBAGJ;uBACE;yBACE;yBACA;yBACA;2BACE;6BACE;6BACA;6BACA;;;;;qBAKR;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;iBAGJ;mBACE;mBACA;qBACE;qBACA;uBACE;;qBAEF;uBACE;yBACE;yBACA;;;qBAGJ;;;;;aAKR;eACE;iBACE;mBACE;mBACA;mBACA;qBACE;qBACA;qBACA;;mBAEF;qBACE;qBACA;uBACE;yBACE;yBACA;;;;;;;aAOZ,gEAAgE;aAChE;eACE;QACP;QACA;QACA;QACA;QACA;UACE;;QAEF,aAAa;QACb;UACE,2CAA2C;YACzC;4CACgC;;;;aAI/B;eACE;iBACE,0CAA0C;UACjD;0CACgC;iBACzB,yCAAyC;UAChD;mBACS;0CACuB;iBACzB,6CAA6C;UACpD;mBACS;0CACuB;iBACzB,4CAA4C;UACnD;mBACS;mBACA;mBACA;mBACA;mBACA;mBACA;mBACA,UAAU;0CACa;iBACzB,4CAA4C;mBAC1C;mBACA;mBACA;0CACuB;iBACzB,8CAA8C;UACrD;0CACgC;iBACzB,oDAAoD;UAC3D;0CACgC;iBACzB,2CAA2C;UAClD,qCAAqC,uDAAuD;UAC5F;0CACgC;;eAE3B;iBACE,0CAA0C;UACjD;0CACgC;iBACzB,yCAAyC;mBACvC;0CACuB;iBACzB,6CAA6C;mBAC3C;0CACuB;iBACzB,8CAA8C;UACrD;UACA;0CACgC;iBACzB,+CAA+C;UACtD;mBACS;mBACA;mBACA;mBACA;mBACA;mBACA;0CACuB;iBACzB,UAAU,oCAAoC,6DAA6D;UAClH,sCAAsC,mEAAmE,4CAA4C,iFAAiF,4CAA4C;0CAClP;;;aAG7B;gBACG,iFAAiF;;;WAGtF;aACE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"}
|