@prisma/orm-family-sql 8.0.0-rc.21-dev.5 → 8.0.0-rc.21-dev.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ast-DcphKbq9.d.mts → ast-1JRQY-dP.d.mts} +10 -4
- package/dist/ast-1JRQY-dP.d.mts.map +1 -0
- package/dist/{ast-e_02t9Nt.mjs → ast-C3itulLi.mjs} +7 -1
- package/dist/ast-C3itulLi.mjs.map +1 -0
- package/dist/{attribute-specs-Dcd2ZUrY.d.mts → attribute-specs-DDpSUaG9.d.mts} +3 -3
- package/dist/{attribute-specs-Dcd2ZUrY.d.mts.map → attribute-specs-DDpSUaG9.d.mts.map} +1 -1
- package/dist/{authored-check-naming-D-o196ry.d.mts → authored-check-naming-BiSwtSFu.d.mts} +2 -2
- package/dist/{authored-check-naming-D-o196ry.d.mts.map → authored-check-naming-BiSwtSFu.d.mts.map} +1 -1
- package/dist/{authored-check-naming-BHGJhjqn.mjs → authored-check-naming-DTKcH2_d.mjs} +3 -3
- package/dist/{authored-check-naming-BHGJhjqn.mjs.map → authored-check-naming-DTKcH2_d.mjs.map} +1 -1
- package/dist/{authoring-entity-types-CgKIgWq5-CZK1F9a_.d.mts → authoring-entity-types-CgKIgWq5-BqRjoPFF.d.mts} +2 -2
- package/dist/{authoring-entity-types-CgKIgWq5-CZK1F9a_.d.mts.map → authoring-entity-types-CgKIgWq5-BqRjoPFF.d.mts.map} +1 -1
- package/dist/builder.d.mts +3 -3
- package/dist/builder__runtime.d.mts +10 -10
- package/dist/builder__runtime.mjs +4 -4
- package/dist/builder__types.d.mts +5 -5
- package/dist/{check-constraint-B7qGu6rc-Bk2ezWXu.d.mts → check-constraint-B7qGu6rc-D5kVe9je.d.mts} +2 -2
- package/dist/{check-constraint-B7qGu6rc-Bk2ezWXu.d.mts.map → check-constraint-B7qGu6rc-D5kVe9je.d.mts.map} +1 -1
- package/dist/check-expressions-BDsLvzqN.mjs +108 -0
- package/dist/check-expressions-BDsLvzqN.mjs.map +1 -0
- package/dist/check-expressions-DuWjvG4h.d.mts +82 -0
- package/dist/check-expressions-DuWjvG4h.d.mts.map +1 -0
- package/dist/{codec-descriptor-registry-CiiFzMtb.mjs → codec-descriptor-registry-UiFDvDj4.mjs} +2 -2
- package/dist/{codec-descriptor-registry-CiiFzMtb.mjs.map → codec-descriptor-registry-UiFDvDj4.mjs.map} +1 -1
- package/dist/codec-json-type-BdWPJ6T5-BhmIyNyb.d.mts +13 -0
- package/dist/codec-json-type-BdWPJ6T5-BhmIyNyb.d.mts.map +1 -0
- package/dist/codec-json-type-DUWyBtJk-BVTavkH0.mjs +21 -0
- package/dist/codec-json-type-DUWyBtJk-BVTavkH0.mjs.map +1 -0
- package/dist/{collection-methods-D9CYfePl-DsDjYS6t.d.mts → collection-methods-D9CYfePl-BGvD1h9Z.d.mts} +4 -4
- package/dist/{collection-methods-D9CYfePl-DsDjYS6t.d.mts.map → collection-methods-D9CYfePl-BGvD1h9Z.d.mts.map} +1 -1
- package/dist/collection-methods-mo-2RjdX.d.mts +1 -0
- package/dist/{config-types-DkEeq_qq.mjs → config-types-BCXwEBZH.mjs} +2 -2
- package/dist/{config-types-DkEeq_qq.mjs.map → config-types-BCXwEBZH.mjs.map} +1 -1
- package/dist/{config-types-C-1mIiJO.d.mts → config-types-Ce1tAJ0B.d.mts} +4 -4
- package/dist/{config-types-C-1mIiJO.d.mts.map → config-types-Ce1tAJ0B.d.mts.map} +1 -1
- package/dist/{contract-builder-DMNe_jX9.mjs → contract-builder-D50r41BU.mjs} +114 -49
- package/dist/contract-builder-D50r41BU.mjs.map +1 -0
- package/dist/{contract-builder-B-Q9T1CO.d.mts → contract-builder-D6JuOGA6.d.mts} +58 -13
- package/dist/contract-builder-D6JuOGA6.d.mts.map +1 -0
- package/dist/contract-emitter.d.mts +1 -1
- package/dist/contract-emitter.mjs +1 -1
- package/dist/contract-prisma7__provider.d.mts +5 -3
- package/dist/contract-prisma7__provider.d.mts.map +1 -1
- package/dist/contract-prisma7__provider.mjs +62 -26
- package/dist/contract-prisma7__provider.mjs.map +1 -1
- package/dist/contract-psl.d.mts +4 -4
- package/dist/contract-psl.mjs +1 -1
- package/dist/contract-psl__attribute-specs.d.mts +1 -1
- package/dist/contract-psl__attribute-specs.mjs +1 -1
- package/dist/contract-psl__diagnostics.mjs +1 -1
- package/dist/contract-psl__provider.d.mts +2 -2
- package/dist/contract-psl__provider.mjs +3 -3
- package/dist/contract-psl__provider.mjs.map +1 -1
- package/dist/contract-ts.d.mts +4 -4
- 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 +3 -3
- package/dist/contract-ts__contract-builder.mjs +2 -2
- package/dist/{contract-view-DqpzeYeE.mjs → contract-view-CcD3axo0.mjs} +6 -2
- package/dist/contract-view-CcD3axo0.mjs.map +1 -0
- package/dist/{contract-view-DuB35or0.d.mts → contract-view-DkIZrHyj.d.mts} +3 -3
- package/dist/{contract-view-DuB35or0.d.mts.map → contract-view-DkIZrHyj.d.mts.map} +1 -1
- package/dist/contract.d.mts +21 -19
- package/dist/contract.mjs +18 -14
- package/dist/contract__authored-check-naming.d.mts +1 -1
- package/dist/contract__authored-check-naming.mjs +1 -1
- package/dist/contract__check-expressions.d.mts +2 -0
- package/dist/contract__check-expressions.mjs +2 -0
- package/dist/contract__codec-json-type.d.mts +2 -0
- package/dist/contract__codec-json-type.mjs +2 -0
- package/dist/contract__contract-view.d.mts +1 -1
- package/dist/contract__contract-view.mjs +1 -1
- package/dist/contract__data-type.d.mts +2 -2
- package/dist/contract__data-type.mjs +2 -2
- package/dist/contract__entity-kinds.d.mts +2 -2
- package/dist/contract__entity-kinds.mjs +2 -2
- package/dist/contract__factories.d.mts +1 -1
- package/dist/contract__factories.mjs +1 -1
- package/dist/contract__foreign-key-materialization.d.mts +1 -1
- package/dist/contract__foreign-key-materialization.mjs +2 -2
- package/dist/contract__index-naming.d.mts +1 -1
- package/dist/contract__index-naming.mjs +1 -1
- package/dist/contract__index-type-validation.d.mts +1 -1
- package/dist/contract__resolve-storage-table.d.mts +1 -1
- package/dist/contract__sql-expression.d.mts +1 -1
- package/dist/contract__types.d.mts +8 -8
- package/dist/contract__types.mjs +6 -4
- package/dist/contract__validators.d.mts +1 -1
- package/dist/contract__validators.mjs +2 -2
- package/dist/{control-B6W_VEZ9.d.mts → control-BE7gXqZF.d.mts} +18 -18
- package/dist/{control-B6W_VEZ9.d.mts.map → control-BE7gXqZF.d.mts.map} +1 -1
- package/dist/{control-D6wIw5Fi.mjs → control-DPCrkpMS.mjs} +16 -17
- package/dist/control-DPCrkpMS.mjs.map +1 -0
- package/dist/{control-adapter-SlQkTEwT.mjs → control-adapter-BetaUm2y.mjs} +2 -2
- package/dist/{control-adapter-SlQkTEwT.mjs.map → control-adapter-BetaUm2y.mjs.map} +1 -1
- package/dist/{control-adapter-BfyLe7rh-C_rrUuhb.d.mts → control-adapter-BfyLe7rh-CiGzw3dq.d.mts} +8 -8
- package/dist/{control-adapter-BfyLe7rh-C_rrUuhb.d.mts.map → control-adapter-BfyLe7rh-CiGzw3dq.d.mts.map} +1 -1
- package/dist/{control-adapter-CZ84jQ_z.d.mts → control-adapter-BlBhW0pc.d.mts} +4 -4
- package/dist/{control-adapter-CZ84jQ_z.d.mts.map → control-adapter-BlBhW0pc.d.mts.map} +1 -1
- package/dist/{data-type-DJIvKQHf.d.mts → data-type-B-Do6RMA.d.mts} +15 -7
- package/dist/data-type-B-Do6RMA.d.mts.map +1 -0
- package/dist/{data-type-BFSpaotu.mjs → data-type-BfA5F0Qf.mjs} +2 -2
- package/dist/{data-type-BFSpaotu.mjs.map → data-type-BfA5F0Qf.mjs.map} +1 -1
- package/dist/{db-D1d75IvM-D5CqruQz.d.mts → db-D1d75IvM-C1lqD6a2.d.mts} +13 -13
- package/dist/{db-D1d75IvM-D5CqruQz.d.mts.map → db-D1d75IvM-C1lqD6a2.d.mts.map} +1 -1
- package/dist/{ddl-types-BeA1kjV1-C4d5owxE.d.mts → ddl-types-BeA1kjV1-BUcW52Dx.d.mts} +3 -3
- package/dist/{ddl-types-BeA1kjV1-C4d5owxE.d.mts.map → ddl-types-BeA1kjV1-BUcW52Dx.d.mts.map} +1 -1
- package/dist/{default-mapping-CAOONlKQ-4m07nb-O.d.mts → default-mapping-CEISdj2g-B50Ag_F_.d.mts} +5 -11
- package/dist/default-mapping-CEISdj2g-B50Ag_F_.d.mts.map +1 -0
- package/dist/{derived-checks-D5HVRvqN-BJx1gwPA.mjs → derived-checks-D__agoFB-Boa1MHcA.mjs} +156 -40
- package/dist/derived-checks-D__agoFB-Boa1MHcA.mjs.map +1 -0
- package/dist/{derived-checks-DpPkO6Dt-9U9UJZOo.d.mts → derived-checks-DpPkO6Dt-CQIM17j5.d.mts} +3 -3
- package/dist/{derived-checks-DpPkO6Dt-9U9UJZOo.d.mts.map → derived-checks-DpPkO6Dt-CQIM17j5.d.mts.map} +1 -1
- package/dist/{diagnostics-C7jR1Jyf.mjs → diagnostics-CoM0OFuR.mjs} +40 -30
- package/dist/diagnostics-CoM0OFuR.mjs.map +1 -0
- package/dist/{diff-FNTO8gbI.d.mts → diff-BlX_rfVG.d.mts} +7 -7
- package/dist/{diff-FNTO8gbI.d.mts.map → diff-BlX_rfVG.d.mts.map} +1 -1
- package/dist/{dist-C8Y-PPuE.mjs → dist-BJjqJT_M.mjs} +5 -3
- package/dist/dist-BJjqJT_M.mjs.map +1 -0
- package/dist/{entity-kinds-JR5SAm5h-DOH6VUtL.mjs → entity-kinds-CgEwK0hH-D1NKoKE5.mjs} +25 -7
- package/dist/entity-kinds-CgEwK0hH-D1NKoKE5.mjs.map +1 -0
- package/dist/{entity-kinds-BPG2xCZV.d.mts → entity-kinds-oN1yn4vw.d.mts} +8 -7
- package/dist/{entity-kinds-BPG2xCZV.d.mts.map → entity-kinds-oN1yn4vw.d.mts.map} +1 -1
- package/dist/{exports-CGzFaakG-Dddm8emA.mjs → exports-CGzFaakG-4Aw50nT1.mjs} +3 -3
- package/dist/{exports-CGzFaakG-Dddm8emA.mjs.map → exports-CGzFaakG-4Aw50nT1.mjs.map} +1 -1
- package/dist/{expression-BWRsWR6O-BrUVz0V2.d.mts → expression-BWRsWR6O-HbWL9x9D.d.mts} +3 -3
- package/dist/{expression-BWRsWR6O-BrUVz0V2.d.mts.map → expression-BWRsWR6O-HbWL9x9D.d.mts.map} +1 -1
- package/dist/{expression-C3F6gxZH-DrYNeDbh.d.mts → expression-C3F6gxZH-EOb5cRCY.d.mts} +7 -7
- package/dist/{expression-C3F6gxZH-DrYNeDbh.d.mts.map → expression-C3F6gxZH-EOb5cRCY.d.mts.map} +1 -1
- package/dist/expression-OVCWlXHm.d.mts +2 -0
- package/dist/{expression-impl-DtbmFnnz-CUKzBisY.mjs → expression-impl-DtbmFnnz-Dal0IYDE.mjs} +2 -2
- package/dist/{expression-impl-DtbmFnnz-CUKzBisY.mjs.map → expression-impl-DtbmFnnz-Dal0IYDE.mjs.map} +1 -1
- package/dist/{factories-Crobuxwn.mjs → factories-B2hKDIzy.mjs} +3 -3
- package/dist/{factories-Crobuxwn.mjs.map → factories-B2hKDIzy.mjs.map} +1 -1
- package/dist/{factories-DbNP9qfs.d.mts → factories-DVgCG7DR.d.mts} +4 -4
- package/dist/{factories-DbNP9qfs.d.mts.map → factories-DVgCG7DR.d.mts.map} +1 -1
- package/dist/family.d.mts +16 -16
- package/dist/family.mjs +10 -10
- package/dist/family__control-adapter.d.mts +2 -2
- package/dist/family__control-adapter.mjs +1 -1
- package/dist/family__control.d.mts +4 -4
- package/dist/family__control.mjs +3 -3
- package/dist/family__diff.d.mts +1 -1
- 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.d.mts +3 -3
- package/dist/family__psl-build.mjs +2 -2
- 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/family__runtime.mjs +1 -1
- package/dist/{foreign-key-materialization-48P2V8on.d.mts → foreign-key-materialization-C53nVQuD.d.mts} +4 -4
- package/dist/{foreign-key-materialization-48P2V8on.d.mts.map → foreign-key-materialization-C53nVQuD.d.mts.map} +1 -1
- package/dist/{foreign-key-materialization-BM59w_Xg.mjs → foreign-key-materialization-CCHAR789.mjs} +5 -5
- package/dist/{foreign-key-materialization-BM59w_Xg.mjs.map → foreign-key-materialization-CCHAR789.mjs.map} +1 -1
- package/dist/{functions-D7lN5-JU.mjs → functions-DO1k8KLB.mjs} +2 -2
- package/dist/{functions-D7lN5-JU.mjs.map → functions-DO1k8KLB.mjs.map} +1 -1
- package/dist/{functions-CQrsCHCj.d.mts → functions-PBSwFhni.d.mts} +6 -6
- package/dist/{functions-CQrsCHCj.d.mts.map → functions-PBSwFhni.d.mts.map} +1 -1
- package/dist/{generator-functions-Hy4pDDr9-AUCNpeg5.mjs → generator-functions-Hy4pDDr9-CMfJOBtv.mjs} +3 -3
- package/dist/{generator-functions-Hy4pDDr9-AUCNpeg5.mjs.map → generator-functions-Hy4pDDr9-CMfJOBtv.mjs.map} +1 -1
- package/dist/{index-0qfR8_db.d.mts → index-BAI1gH-I.d.mts} +21 -21
- package/dist/{index-0qfR8_db.d.mts.map → index-BAI1gH-I.d.mts.map} +1 -1
- package/dist/{index-Nqc3OHR_.d.mts → index-BWWwt5hB.d.mts} +3 -3
- package/dist/{index-Nqc3OHR_.d.mts.map → index-BWWwt5hB.d.mts.map} +1 -1
- package/dist/{index-equivalence-DswCiq5l-CGsyPP9B.mjs → index-equivalence-DswCiq5l-9GNm8oG9.mjs} +2 -2
- package/dist/{index-equivalence-DswCiq5l-CGsyPP9B.mjs.map → index-equivalence-DswCiq5l-9GNm8oG9.mjs.map} +1 -1
- package/dist/{index-naming-BOcJT1B3-mG8Fd6KN.mjs → index-naming-BOcJT1B3-D-49owHA.mjs} +2 -2
- package/dist/{index-naming-BOcJT1B3-mG8Fd6KN.mjs.map → index-naming-BOcJT1B3-D-49owHA.mjs.map} +1 -1
- package/dist/{index-naming-Cs6wwia3.d.mts → index-naming-DqjO4p5R.d.mts} +2 -2
- package/dist/{index-naming-Cs6wwia3.d.mts.map → index-naming-DqjO4p5R.d.mts.map} +1 -1
- package/dist/index-reference-D3p5ziNG.d.mts +1 -0
- package/dist/{index-reference-YHvh6wAL-BAhOS7RC.d.mts → index-reference-YHvh6wAL-BupQRpkE.d.mts} +4 -4
- package/dist/{index-reference-YHvh6wAL-BAhOS7RC.d.mts.map → index-reference-YHvh6wAL-BupQRpkE.d.mts.map} +1 -1
- package/dist/{index-type-validation-fGGwAHWc.d.mts → index-type-validation-BFJlwjWi.d.mts} +3 -3
- package/dist/{index-type-validation-fGGwAHWc.d.mts.map → index-type-validation-BFJlwjWi.d.mts.map} +1 -1
- package/dist/{interpreter-CS21wD1i-G0u1x8t_.mjs → interpreter-ChvVEijY-FeJngsog.mjs} +92 -45
- package/dist/interpreter-ChvVEijY-FeJngsog.mjs.map +1 -0
- package/dist/{ir-BvptQsFW.d.mts → ir-CZ5Ks7EA.d.mts} +4 -4
- package/dist/{ir-BvptQsFW.d.mts.map → ir-CZ5Ks7EA.d.mts.map} +1 -1
- package/dist/middleware-Dp3CD7yZ.d.mts +1 -0
- package/dist/{middleware-JfHt_Ax8-DKXbos9y.d.mts → middleware-JfHt_Ax8-rWWdDxnq.d.mts} +2 -2
- package/dist/{middleware-JfHt_Ax8-DKXbos9y.d.mts.map → middleware-JfHt_Ax8-rWWdDxnq.d.mts.map} +1 -1
- package/dist/{migration-qalbcIUs.d.mts → migration-B35kGD-7.d.mts} +4 -4
- package/dist/{migration-qalbcIUs.d.mts.map → migration-B35kGD-7.d.mts.map} +1 -1
- package/dist/{naming-BcD36g9T-Mfe_xGGL.d.mts → naming-CLfASFf7-HRjmKe43.d.mts} +9 -4
- package/dist/naming-CLfASFf7-HRjmKe43.d.mts.map +1 -0
- package/dist/{naming-bM5qm5PY-jOg3JFMb.mjs → naming-DEpT6Zad-C9PFkWt6.mjs} +5 -4
- package/dist/naming-DEpT6Zad-C9PFkWt6.mjs.map +1 -0
- package/dist/operations.d.mts +1 -1
- package/dist/orm-client.d.mts +22 -22
- package/dist/orm-client.mjs +7 -7
- package/dist/{pack-Cap3oVPy.d.mts → pack-DKM1hv1E.d.mts} +4 -4
- package/dist/{pack-Cap3oVPy.d.mts.map → pack-DKM1hv1E.d.mts.map} +1 -1
- package/dist/{plan-CMqVpPq6-Bllx5Zpk.d.mts → plan-CMqVpPq6-Aoza6Dp2.d.mts} +4 -4
- package/dist/{plan-CMqVpPq6-Bllx5Zpk.d.mts.map → plan-CMqVpPq6-Aoza6Dp2.d.mts.map} +1 -1
- package/dist/plan-DINEcqC1.d.mts +2 -0
- package/dist/psl-build-BA0Ndi1v.mjs +268 -0
- package/dist/psl-build-BA0Ndi1v.mjs.map +1 -0
- package/dist/{psl-build-RelubU2E.d.mts → psl-build-DCZaF5g4.d.mts} +47 -18
- package/dist/psl-build-DCZaF5g4.d.mts.map +1 -0
- package/dist/{psl-column-resolution-djGEITmJ-B5iMpe8H.d.mts → psl-column-resolution-djGEITmJ-C0LSpwl4.d.mts} +3 -3
- package/dist/{psl-column-resolution-djGEITmJ-B5iMpe8H.d.mts.map → psl-column-resolution-djGEITmJ-C0LSpwl4.d.mts.map} +1 -1
- package/dist/{psl-field-resolution-Bvhx79fP-CQqHf_L4.mjs → psl-field-resolution-BW2_FOb9-DxqR43fo.mjs} +68 -38
- package/dist/psl-field-resolution-BW2_FOb9-DxqR43fo.mjs.map +1 -0
- package/dist/{psl-infer--g4i84Go.mjs → psl-infer-C9kVS9ma.mjs} +2 -2
- package/dist/{psl-infer--g4i84Go.mjs.map → psl-infer-C9kVS9ma.mjs.map} +1 -1
- package/dist/{psl-infer-DzoxPZGd.d.mts → psl-infer-Cr9AeccU.d.mts} +4 -4
- package/dist/{psl-infer-DzoxPZGd.d.mts.map → psl-infer-Cr9AeccU.d.mts.map} +1 -1
- package/dist/query-lane-context-DL6bwl6k.d.mts +1 -0
- package/dist/{query-lane-context-DLSXDsDK-pEiQmuYy.d.mts → query-lane-context-DLSXDsDK-CGSahS15.d.mts} +8 -8
- package/dist/{query-lane-context-DLSXDsDK-pEiQmuYy.d.mts.map → query-lane-context-DLSXDsDK-CGSahS15.d.mts.map} +1 -1
- package/dist/relational-core.d.mts +12 -12
- package/dist/relational-core.mjs +2 -2
- package/dist/relational-core__aggregate-descriptor-registry.d.mts +1 -1
- package/dist/relational-core__ast.d.mts +3 -3
- package/dist/relational-core__ast.mjs +1 -1
- 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__collection-methods.d.mts +2 -2
- package/dist/relational-core__contract-free.d.mts +4 -4
- package/dist/relational-core__expression.d.mts +3 -3
- package/dist/relational-core__expression.mjs +1 -1
- package/dist/relational-core__functions.d.mts +1 -1
- package/dist/relational-core__functions.mjs +1 -1
- package/dist/relational-core__index-reference.d.mts +2 -2
- 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-DCqtmnSU.d.mts → resolve-storage-table-D1rXCcCk.d.mts} +3 -3
- package/dist/{resolve-storage-table-DCqtmnSU.d.mts.map → resolve-storage-table-D1rXCcCk.d.mts.map} +1 -1
- package/dist/{runtime-JKWb27L5.d.mts → runtime-CSDcwOEG.d.mts} +5 -4
- package/dist/{runtime-JKWb27L5.d.mts.map → runtime-CSDcwOEG.d.mts.map} +1 -1
- package/dist/{runtime-CCzfa1mY.mjs → runtime-DkUiQi00.mjs} +12 -4
- package/dist/runtime-DkUiQi00.mjs.map +1 -0
- package/dist/runtime.d.mts +4 -4
- package/dist/runtime.mjs +1 -1
- package/dist/runtime__internal__prepared-query.d.mts +1 -1
- package/dist/{schema-differ-DmP74bB8-tqHKiJ88.d.mts → schema-differ-DmP74bB8-BXkhxcPs.d.mts} +5 -5
- package/dist/{schema-differ-DmP74bB8-tqHKiJ88.d.mts.map → schema-differ-DmP74bB8-BXkhxcPs.d.mts.map} +1 -1
- package/dist/schema-ir.d.mts +1 -1
- package/dist/schema-ir.mjs +1 -1
- package/dist/schema-ir__naming.d.mts +2 -2
- package/dist/schema-ir__naming.mjs +2 -2
- package/dist/schema-ir__types.d.mts +2 -2
- package/dist/schema-ir__types.mjs +1 -1
- package/dist/{schema-verify-C3wbdviw-DMjIubOr.mjs → schema-verify-C3wbdviw-nQ4tG9N7.mjs} +4 -4
- package/dist/{schema-verify-C3wbdviw-DMjIubOr.mjs.map → schema-verify-C3wbdviw-nQ4tG9N7.mjs.map} +1 -1
- package/dist/{serialized-index-DjCCnXB1-DMA7BtO2.mjs → serialized-index-BefvjuZ0-Bbsja7If.mjs} +14 -27
- package/dist/serialized-index-BefvjuZ0-Bbsja7If.mjs.map +1 -0
- package/dist/{serialized-index-CrgG8ct1-DKVJ7TDX.d.mts → serialized-index-CrgG8ct1-Duy5-kFV.d.mts} +3 -3
- package/dist/{serialized-index-CrgG8ct1-DKVJ7TDX.d.mts.map → serialized-index-CrgG8ct1-Duy5-kFV.d.mts.map} +1 -1
- package/dist/{sql-contract-serializer-sMY3prTx-D2BfrNxs.mjs → sql-contract-serializer-sMY3prTx-CBHrlt9O.mjs} +4 -4
- package/dist/{sql-contract-serializer-sMY3prTx-D2BfrNxs.mjs.map → sql-contract-serializer-sMY3prTx-CBHrlt9O.mjs.map} +1 -1
- package/dist/{sql-data-type-D7M-YTTY-D2vRqDxn.mjs → sql-data-type-LVBldu1a-Bq203xWX.mjs} +13 -7
- package/dist/sql-data-type-LVBldu1a-Bq203xWX.mjs.map +1 -0
- package/dist/{sql-execution-plan-CN-FEwrR-CzRFoxKR.d.mts → sql-execution-plan-CN-FEwrR-BEJ0-g83.d.mts} +2 -2
- package/dist/{sql-execution-plan-CN-FEwrR-CzRFoxKR.d.mts.map → sql-execution-plan-CN-FEwrR-BEJ0-g83.d.mts.map} +1 -1
- package/dist/{sql-expression-B4BrhGPi.d.mts → sql-expression-1yO8GiBc.d.mts} +2 -2
- package/dist/{sql-expression-B4BrhGPi.d.mts.map → sql-expression-1yO8GiBc.d.mts.map} +1 -1
- package/dist/{sql-index-ByAAE7K8-Dqtn_vUL.d.mts → sql-index-ByAAE7K8-4TUFKGLK.d.mts} +2 -2
- package/dist/{sql-index-ByAAE7K8-Dqtn_vUL.d.mts.map → sql-index-ByAAE7K8-4TUFKGLK.d.mts.map} +1 -1
- package/dist/sql-node-D8P0akYY-RVytYXDZ.mjs +50 -0
- package/dist/sql-node-D8P0akYY-RVytYXDZ.mjs.map +1 -0
- package/dist/{sql-storage-DeCAh5Hi-CEM-m8cs.d.mts → sql-storage-B_AM6tU1-BOPQxXo7.d.mts} +6 -5
- package/dist/{sql-storage-DeCAh5Hi-CEM-m8cs.d.mts.map → sql-storage-B_AM6tU1-BOPQxXo7.d.mts.map} +1 -1
- package/dist/{storage-table-DDvN83mw-DkbBFmK9.mjs → storage-table-B_MrLtQX-eWx6BgGT.mjs} +7 -50
- package/dist/storage-table-B_MrLtQX-eWx6BgGT.mjs.map +1 -0
- package/dist/{storage-table-Bf1ZjnxO-pUj6pyP0.d.mts → storage-value-object-BcvIeUr8-DiiZNIrZ.d.mts} +23 -6
- package/dist/storage-value-object-BcvIeUr8-DiiZNIrZ.d.mts.map +1 -0
- package/dist/storage-value-set-uGUEBAMJ-hX-zFqN5.mjs +38 -0
- package/dist/storage-value-set-uGUEBAMJ-hX-zFqN5.mjs.map +1 -0
- package/dist/{transaction-state-DR3nKTmH-BIKF_fP6.d.mts → transaction-state-DR3nKTmH-C3wq6dCB.d.mts} +9 -9
- package/dist/{transaction-state-DR3nKTmH-BIKF_fP6.d.mts.map → transaction-state-DR3nKTmH-C3wq6dCB.d.mts.map} +1 -1
- package/dist/{types-DoyiTsjg-2YMhMJDA.mjs → types-1ZKE0deC-Dou4ugcz.mjs} +3 -3
- package/dist/{types-DoyiTsjg-2YMhMJDA.mjs.map → types-1ZKE0deC-Dou4ugcz.mjs.map} +1 -1
- package/dist/types-B-dwfOwQ.d.mts +1 -0
- package/dist/{types-CTdSkl0s.mjs → types-CISwoRED.mjs} +2 -2
- package/dist/types-CISwoRED.mjs.map +1 -0
- package/dist/{types-COXfSNOP-DcuULeD9.d.mts → types-COXfSNOP-D9vt9QDL.d.mts} +9 -9
- package/dist/{types-COXfSNOP-DcuULeD9.d.mts.map → types-COXfSNOP-D9vt9QDL.d.mts.map} +1 -1
- package/dist/{types-CkAd8SWm.d.mts → types-CXRxo_TK.d.mts} +7 -7
- package/dist/{types-CkAd8SWm.d.mts.map → types-CXRxo_TK.d.mts.map} +1 -1
- package/dist/types-DIoM5Ft3.d.mts +1 -0
- package/dist/{types-DfKvtJwS-CrpWTGBJ.d.mts → types-DNTLudNR-DiVulPhL.d.mts} +7 -7
- package/dist/{types-DfKvtJwS-CrpWTGBJ.d.mts.map → types-DNTLudNR-DiVulPhL.d.mts.map} +1 -1
- package/dist/{types-NgqqVAo5-Be_uYGQx.d.mts → types-NgqqVAo5-CJG02ILZ.d.mts} +10 -10
- package/dist/{types-NgqqVAo5-Be_uYGQx.d.mts.map → types-NgqqVAo5-CJG02ILZ.d.mts.map} +1 -1
- package/dist/{types-CuCxAQat-Dz8P4xyt.d.mts → types-fmtEmvj3-B0fQaVes.d.mts} +4 -4
- package/dist/{types-CuCxAQat-Dz8P4xyt.d.mts.map → types-fmtEmvj3-B0fQaVes.d.mts.map} +1 -1
- package/dist/{types-ijhejJhK-EdACW3bY.d.mts → types-ijhejJhK-BqfwP5Cc.d.mts} +2 -2
- package/dist/{types-ijhejJhK-EdACW3bY.d.mts.map → types-ijhejJhK-BqfwP5Cc.d.mts.map} +1 -1
- package/dist/{validators-FJs8HvFr.d.mts → validators-Dt-19ywK.d.mts} +4 -4
- package/dist/{validators-FJs8HvFr.d.mts.map → validators-Dt-19ywK.d.mts.map} +1 -1
- package/dist/{validators-BwA7ttZM.mjs → validators-qcQteqs2.mjs} +30 -31
- package/dist/validators-qcQteqs2.mjs.map +1 -0
- package/package.json +20 -18
- package/dist/ast-DcphKbq9.d.mts.map +0 -1
- package/dist/ast-e_02t9Nt.mjs.map +0 -1
- package/dist/collection-methods-FWiYjZ5j.d.mts +0 -1
- package/dist/contract-builder-B-Q9T1CO.d.mts.map +0 -1
- package/dist/contract-builder-DMNe_jX9.mjs.map +0 -1
- package/dist/contract-view-DqpzeYeE.mjs.map +0 -1
- package/dist/control-D6wIw5Fi.mjs.map +0 -1
- package/dist/data-type-DJIvKQHf.d.mts.map +0 -1
- package/dist/default-mapping-CAOONlKQ-4m07nb-O.d.mts.map +0 -1
- package/dist/derived-checks-D5HVRvqN-BJx1gwPA.mjs.map +0 -1
- package/dist/diagnostics-C7jR1Jyf.mjs.map +0 -1
- package/dist/dist-C8Y-PPuE.mjs.map +0 -1
- package/dist/entity-kinds-JR5SAm5h-DOH6VUtL.mjs.map +0 -1
- package/dist/expression-CQHy0GY7.d.mts +0 -2
- package/dist/index-reference-BVkoanQn.d.mts +0 -1
- package/dist/interpreter-CS21wD1i-G0u1x8t_.mjs.map +0 -1
- package/dist/middleware-DYiOUIpn.d.mts +0 -1
- package/dist/naming-BcD36g9T-Mfe_xGGL.d.mts.map +0 -1
- package/dist/naming-bM5qm5PY-jOg3JFMb.mjs.map +0 -1
- package/dist/plan-Cg0h96GD.d.mts +0 -2
- package/dist/psl-build-DqqYhOsa.mjs +0 -426
- package/dist/psl-build-DqqYhOsa.mjs.map +0 -1
- package/dist/psl-build-RelubU2E.d.mts.map +0 -1
- package/dist/psl-field-resolution-Bvhx79fP-CQqHf_L4.mjs.map +0 -1
- package/dist/query-lane-context-Dqs5qCXx.d.mts +0 -1
- package/dist/runtime-CCzfa1mY.mjs.map +0 -1
- package/dist/serialized-index-DjCCnXB1-DMA7BtO2.mjs.map +0 -1
- package/dist/sql-data-type-D7M-YTTY-D2vRqDxn.mjs.map +0 -1
- package/dist/storage-table-Bf1ZjnxO-pUj6pyP0.d.mts.map +0 -1
- package/dist/storage-table-DDvN83mw-DkbBFmK9.mjs.map +0 -1
- package/dist/types-CTdSkl0s.mjs.map +0 -1
- package/dist/types-CvmPNREJ.d.mts +0 -1
- package/dist/types-ljUNyiWe.d.mts +0 -1
- package/dist/validators-BwA7ttZM.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract-prisma7__provider.d.mts","names":[],"sources":["../../../../2-sql-family/2-authoring/contract-prisma7/dist/provider.d.mts"],"mappings":";;;;;;;;;;;;UAUU;WACC;;WAEA;;UAED;;WAEC,SAAS,SAAS,eAAe;;;;;;WAMjC,aAAa,SAAS,eAAe;;;;UAItC;WACC;;WAEA;WACA,aAAa,SAAS;;;KAG5B;;;WAGM;;;;WAIA;WACA;;WAEA,OAAO;;WAEP,mBAAmB,iBAAiB;;;UAGrC;WACC;WACA;;;UAGD;WACC,QAAQ;WACR,kBAAkB,OAAO,sBAAsB;;WAE/C;;WAEA,SAAS;;WAET;aACE;aACA;;;WAGF,YAAY,SAAS;;WAErB;;WAEA;aACE,aAAa;aACb,aAAa,mBAAmB;;;;;;;WAOlC,6BAA6B,gBAAgB;;WAE7C,qBAAqB,QAAQ,sBAAsB;;;;
|
|
1
|
+
{"version":3,"file":"contract-prisma7__provider.d.mts","names":[],"sources":["../../../../2-sql-family/2-authoring/contract-prisma7/dist/provider.d.mts"],"mappings":";;;;;;;;;;;;UAUU;WACC;;WAEA;;UAED;;WAEC,SAAS,SAAS,eAAe;;;;;;WAMjC,aAAa,SAAS,eAAe;;;;UAItC;WACC;;WAEA;WACA,aAAa,SAAS;;;KAG5B;;;WAGM;;;;WAIA;WACA;;WAEA,OAAO;;WAEP,mBAAmB,iBAAiB;;;UAGrC;WACC;WACA;;;UAGD;WACC,QAAQ;WACR,kBAAkB,OAAO,sBAAsB;;WAE/C;;WAEA,SAAS;;WAET;aACE;aACA;;;WAGF,YAAY,SAAS;;WAErB;;WAEA;aACE,aAAa;aACb,aAAa,mBAAmB;;;;;;;WAOlC,6BAA6B,gBAAgB;;WAE7C,qBAAqB,QAAQ,sBAAsB;;WAEnD,2BAA2B,QAAQ,WAAW,QAAQ;;;;UAIvD;WACC,SAAS;WACT;WACA,uBAAuB;;iBAEjB,gBAAgB,oBAAoB,SAAS,yBAAyB"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { r as lowerAuthoredIndex } from "./index-naming-BOcJT1B3-
|
|
2
|
-
import { p as sqlDataTypeOfCodec, u as sqlCodecColumnLength } from "./sql-data-type-
|
|
3
|
-
import { n as declaredBackingObjectName, r as declaredIndexesServeForeignKey } from "./foreign-key-materialization-
|
|
1
|
+
import { r as lowerAuthoredIndex } from "./index-naming-BOcJT1B3-D-49owHA.mjs";
|
|
2
|
+
import { p as sqlDataTypeOfCodec, u as sqlCodecColumnLength } from "./sql-data-type-LVBldu1a-Bq203xWX.mjs";
|
|
3
|
+
import { n as declaredBackingObjectName, r as declaredIndexesServeForeignKey } from "./foreign-key-materialization-CCHAR789.mjs";
|
|
4
4
|
import { h as storedSqlText } from "./sql-expression-CKgKznXS.mjs";
|
|
5
|
-
import { p as validateSqlStorageConsistency, u as validateModelStorageReferences } from "./validators-
|
|
5
|
+
import { p as validateSqlStorageConsistency, u as validateModelStorageReferences } from "./validators-qcQteqs2.mjs";
|
|
6
6
|
import { t as deriveValueSetFromEntity } from "./value-set-derivation-hook-HVaxhALD.mjs";
|
|
7
|
-
import { n as buildSqlContractFromDefinition, t as applySqlSpecifierControlPolicy } from "./derived-checks-
|
|
8
|
-
import { c as instantiateFieldTypeConstructor, i as defaultFunctionCall, v as readDataTypeDefault } from "./psl-field-resolution-
|
|
9
|
-
import { a as normalizeReferentialAction, n as buildEntityTypesByDiscriminator, r as indexFkRelations, t as applyBackrelationCandidates } from "./interpreter-
|
|
7
|
+
import { n as buildSqlContractFromDefinition, t as applySqlSpecifierControlPolicy } from "./derived-checks-D__agoFB-Boa1MHcA.mjs";
|
|
8
|
+
import { c as instantiateFieldTypeConstructor, i as defaultFunctionCall, v as readDataTypeDefault } from "./psl-field-resolution-BW2_FOb9-DxqR43fo.mjs";
|
|
9
|
+
import { a as normalizeReferentialAction, n as buildEntityTypesByDiscriminator, r as indexFkRelations, t as applyBackrelationCandidates } from "./interpreter-ChvVEijY-FeJngsog.mjs";
|
|
10
10
|
import { isStructuredError } from "@prisma/orm-framework/utils/structured-error";
|
|
11
11
|
import { ifDefined } from "@prisma/orm-framework/utils/defined";
|
|
12
|
-
import { entryForTag, getAuthoringTypeConstructor, instantiateAuthoringEntityType, instantiateAuthoringTypeConstructorFromValues } from "@prisma/orm-framework/components/authoring";
|
|
12
|
+
import { entryForTag, getAuthoringTypeChoice, getAuthoringTypeConstructor, instantiateAuthoringEntityType, instantiateAuthoringTypeConstructorFromValues, resolveAuthoringTypeChoice } from "@prisma/orm-framework/components/authoring";
|
|
13
13
|
import { clipToUtf8Bytes, utf8ByteLength } from "@prisma/orm-framework/utils/text";
|
|
14
14
|
import { blindCast } from "@prisma/orm-framework/utils/casts";
|
|
15
|
-
import { InternalError } from "@prisma/orm-framework/utils/internal-error";
|
|
15
|
+
import { InternalError, isInternalError } from "@prisma/orm-framework/utils/internal-error";
|
|
16
16
|
import { EMPTY_GENERATOR_FUNCTIONS } from "@prisma/orm-framework/components/components";
|
|
17
17
|
import { validateContractDomain } from "@prisma/orm-framework/contract/validate-domain";
|
|
18
18
|
import { readFile, readdir, stat } from "node:fs/promises";
|
|
@@ -202,26 +202,33 @@ function lowerPrisma7Default(input) {
|
|
|
202
202
|
const call = FunctionCallAst.cast(expression.syntax);
|
|
203
203
|
if (input.onlyDbgenerated && call?.path().join(".") !== "dbgenerated") return unknown("on a field of type Unsupported(...) must be dbgenerated(\"...\"). Prisma 7 refuses this schema too: \"Only @default(dbgenerated(\"...\")) can be used for Unsupported types.\" Write the default as @default(dbgenerated(\"<sql expression>\")), or remove it.", attribute.span);
|
|
204
204
|
if (call !== void 0) return lowerFunction(call, expression, input, label, unknown);
|
|
205
|
-
const
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
storage: {
|
|
209
|
-
kind: "literal",
|
|
210
|
-
value: scalar,
|
|
211
|
-
inStoredForm: true
|
|
212
|
-
},
|
|
205
|
+
const storage = scalarValue$1(expression, input, unknown);
|
|
206
|
+
return storage === void 0 ? void 0 : {
|
|
207
|
+
storage,
|
|
213
208
|
onCreate: void 0
|
|
214
209
|
};
|
|
215
210
|
}
|
|
216
211
|
/**
|
|
217
|
-
* The stored
|
|
212
|
+
* The stored default of a written value: an enum member resolves through the enum's members, and
|
|
218
213
|
* every other value is read by the authoring entry for its syntax, cast into the column's data type
|
|
219
|
-
* and validated by the column's codec — the same path the current schema language takes.
|
|
214
|
+
* and validated by the column's codec — the same path the current schema language takes. A value
|
|
215
|
+
* the column's type holds but its codec cannot hold exactly, such as a timestamp with digits below
|
|
216
|
+
* a millisecond on a column read as a JavaScript `Date`, is kept as the SQL expression the target
|
|
217
|
+
* writes for it.
|
|
220
218
|
*/
|
|
221
219
|
function scalarValue$1(expression, input, unknown) {
|
|
220
|
+
const literal = scalarLiteral(expression, input, unknown);
|
|
221
|
+
if (literal === void 0 || "expression" in literal) return literal;
|
|
222
|
+
return {
|
|
223
|
+
kind: "literal",
|
|
224
|
+
value: literal.value,
|
|
225
|
+
inStoredForm: true
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
function scalarLiteral(expression, input, unknown) {
|
|
222
229
|
const span = input.attribute.span;
|
|
223
230
|
const enumValue = enumMemberValue$1(expression, input);
|
|
224
|
-
if (enumValue !== void 0) return enumValue;
|
|
231
|
+
if (enumValue !== void 0) return { value: enumValue };
|
|
225
232
|
const array = ArrayLiteralAst.cast(expression.syntax);
|
|
226
233
|
const elements = array === void 0 ? void 0 : [...array.elements()];
|
|
227
234
|
if (elements?.some((element) => enumMemberValue$1(element, input) !== void 0) === true) {
|
|
@@ -231,14 +238,14 @@ function scalarValue$1(expression, input, unknown) {
|
|
|
231
238
|
if (value === void 0) return unknown("lists may only hold literals or enum members.", span);
|
|
232
239
|
values.push(value);
|
|
233
240
|
}
|
|
234
|
-
return values;
|
|
241
|
+
return { value: values };
|
|
235
242
|
}
|
|
236
243
|
const finer = finerThanColumn(elements ?? [expression], elements !== void 0, input);
|
|
237
244
|
if (finer !== void 0) return unknown(finer, span);
|
|
238
245
|
const written = writtenLiteralFor(expression, elements, input);
|
|
239
246
|
if (written === void 0) return unreadableValue(expression, input, unknown);
|
|
240
247
|
const jsonNull = jsonNullDefault(written, expression, input);
|
|
241
|
-
if (jsonNull !== void 0) return jsonNull;
|
|
248
|
+
if (jsonNull !== void 0) return { value: jsonNull };
|
|
242
249
|
const read = readDataTypeDefault({
|
|
243
250
|
written,
|
|
244
251
|
isList: input.field.list,
|
|
@@ -250,7 +257,13 @@ function scalarValue$1(expression, input, unknown) {
|
|
|
250
257
|
dataTypes: input.dataTypes,
|
|
251
258
|
fieldPath: `${input.modelName}.${input.field.name}`
|
|
252
259
|
});
|
|
253
|
-
|
|
260
|
+
if (read.ok) return { value: read.value };
|
|
261
|
+
const { refusal } = read;
|
|
262
|
+
if (refusal.kind === "refused-by-codec") return {
|
|
263
|
+
kind: "function",
|
|
264
|
+
expression: input.literalDefaultExpression(refusal.stored)
|
|
265
|
+
};
|
|
266
|
+
return unknown(refusalReason(refusal), span);
|
|
254
267
|
}
|
|
255
268
|
/**
|
|
256
269
|
* Why a written date and time is refused when it has more fraction digits than the column holds:
|
|
@@ -367,7 +380,8 @@ function refusalReason(refusal) {
|
|
|
367
380
|
case "no-cast": return `holds a ${refusal.valueType} value${at}, which ${refusal.receivingType} has no cast from; ${describeCasts(refusal.casts)}.`;
|
|
368
381
|
case "no-list-cast": return `holds a list, which ${refusal.receivingType} has no cast from; ${describeCasts(refusal.casts)}.`;
|
|
369
382
|
case "no-element-cast": return `holds a ${refusal.valueType} value${at}, which the list cast of ${refusal.receivingType} does not take; it takes ${refusal.elementTypes.join(", ")}.`;
|
|
370
|
-
case "refused-by-column":
|
|
383
|
+
case "refused-by-column":
|
|
384
|
+
case "refused-by-codec": return `holds a value${at} that ${refusal.codecId} does not read: ${refusal.message}`;
|
|
371
385
|
}
|
|
372
386
|
}
|
|
373
387
|
function describeCasts(casts) {
|
|
@@ -1641,6 +1655,20 @@ function lowerNativeEnums(enums, input, diagnostics) {
|
|
|
1641
1655
|
}
|
|
1642
1656
|
/** The SQL family's type constructor for a column of a type no data type claims (ADR 273). */
|
|
1643
1657
|
const RAW_TYPE_CONSTRUCTOR = ["Raw"];
|
|
1658
|
+
/** The constructor the values a binding maps a Prisma 7 type to choose from the type choice it names; a refusal is the binding's mistake. */
|
|
1659
|
+
function chooseBindingType(label, path, typeChoice, values) {
|
|
1660
|
+
try {
|
|
1661
|
+
return resolveAuthoringTypeChoice({
|
|
1662
|
+
helperPath: path.join("."),
|
|
1663
|
+
descriptor: typeChoice.descriptor,
|
|
1664
|
+
args: values,
|
|
1665
|
+
constructorNamed: typeChoice.constructorNamed
|
|
1666
|
+
});
|
|
1667
|
+
} catch (error) {
|
|
1668
|
+
if (isInternalError(error) || !(error instanceof Error)) throw error;
|
|
1669
|
+
throw new InternalError(`The Prisma 7 target binding maps ${label} to type choice "${path.join(".")}" with values it refuses: ${error.message}`);
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1644
1672
|
/** Prisma 7's `Unsupported("...")`, which this source reads as ``Raw(sql`...`)``. */
|
|
1645
1673
|
function isUnsupportedType(call) {
|
|
1646
1674
|
return call?.path.length === 1 && call.path[0] === "Unsupported";
|
|
@@ -1802,7 +1830,10 @@ function readField(args) {
|
|
|
1802
1830
|
};
|
|
1803
1831
|
}
|
|
1804
1832
|
const constructorPath = fieldType.kind === "written" ? fieldType.call.path : fieldType.path;
|
|
1805
|
-
const
|
|
1833
|
+
const typeChoice = fieldType.kind === "values" ? getAuthoringTypeChoice(input.authoringContributions, constructorPath) : void 0;
|
|
1834
|
+
const chosen = typeChoice === void 0 || fieldType.kind !== "values" ? void 0 : chooseBindingType(label, constructorPath, typeChoice, fieldType.values);
|
|
1835
|
+
const typeConstructor = chosen?.descriptor ?? getAuthoringTypeConstructor(input.authoringContributions, constructorPath);
|
|
1836
|
+
const typeValues = chosen?.args ?? (fieldType.kind === "values" ? fieldType.values : []);
|
|
1806
1837
|
if (typeConstructor === void 0) {
|
|
1807
1838
|
diagnostics.push(prisma7Diagnostic("PSL.PRISMA7_UNSUPPORTED_TYPE", `${label} type "${field.typeName}" could not be resolved against target "${binding.target.targetId}".`, sourceId, field.span));
|
|
1808
1839
|
return;
|
|
@@ -1823,7 +1854,7 @@ function readField(args) {
|
|
|
1823
1854
|
});
|
|
1824
1855
|
diagnostics.push(...typeDiagnostics.toExternal());
|
|
1825
1856
|
} else {
|
|
1826
|
-
const instantiated = instantiateAuthoringTypeConstructorFromValues(typeConstructor,
|
|
1857
|
+
const instantiated = instantiateAuthoringTypeConstructorFromValues(typeConstructor, typeValues, input.codecLookup.descriptorFor(typeConstructor.output.codecId)?.paramsSchema);
|
|
1827
1858
|
if (!instantiated.ok && unsupportedArgument !== void 0) {
|
|
1828
1859
|
diagnostics.push(prisma7Diagnostic("PSL.PRISMA7_UNSUPPORTED_TYPE", `${label}: Unsupported(${unsupportedArgument.written.value}) is not one type name: ${instantiated.failure.message}`, sourceId, unsupportedArgument.written.span));
|
|
1829
1860
|
return;
|
|
@@ -1860,6 +1891,11 @@ function readField(args) {
|
|
|
1860
1891
|
dataType: sqlDataTypeOfCodec(resolved.descriptor.codecId, typeLookups).id,
|
|
1861
1892
|
typeParams: resolved.descriptor.typeParams
|
|
1862
1893
|
}),
|
|
1894
|
+
literalDefaultExpression: (stored) => binding.literalDefaultExpression(stored, {
|
|
1895
|
+
codecId: resolved.descriptor.codecId,
|
|
1896
|
+
dataType: sqlDataTypeOfCodec(resolved.descriptor.codecId, typeLookups).id,
|
|
1897
|
+
typeParams: resolved.descriptor.typeParams
|
|
1898
|
+
}),
|
|
1863
1899
|
enumMembers: enumDeclaration === void 0 ? void 0 : new Map(enumDeclaration.members.map((member) => [member.name, member.value])),
|
|
1864
1900
|
controlMutationDefaults: input.controlMutationDefaults,
|
|
1865
1901
|
argumentContext: model.argumentContext,
|