@prisma/orm-framework 8.0.0-rc.2-dev.3 → 8.0.0-rc.20-dev.1
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/README.md +1 -5
- package/dist/{apply-specifier-default-control-policy-CAxiXxKg.d.mts → apply-specifier-default-control-policy-Dlz0iwnK.d.mts} +2 -2
- package/dist/apply-specifier-default-control-policy-Dlz0iwnK.d.mts.map +1 -0
- package/dist/{assertions-Cz-GWH8P.mjs → assertions-Dw1lZz_Q.mjs} +2 -2
- package/dist/{assertions-Cz-GWH8P.mjs.map → assertions-Dw1lZz_Q.mjs.map} +1 -1
- package/dist/authoring-CNUti739.mjs +764 -0
- package/dist/authoring-CNUti739.mjs.map +1 -0
- package/dist/authoring-CjwinhU5.d.mts +206 -0
- package/dist/authoring-CjwinhU5.d.mts.map +1 -0
- package/dist/binder-D_4RBHbt-BJ6VKwEZ.d.mts +515 -0
- package/dist/binder-D_4RBHbt-BJ6VKwEZ.d.mts.map +1 -0
- package/dist/{canonicalization-DFpB09nP-4OdB2nsy.d.mts → canonicalization-CyrrXGmj-CeKUkht1.d.mts} +3 -3
- package/dist/{canonicalization-DFpB09nP-4OdB2nsy.d.mts.map → canonicalization-CyrrXGmj-CeKUkht1.d.mts.map} +1 -1
- package/dist/{hashing-utils-DQgS3nOe.mjs → canonicalization-path-match-D88xLEq6-BFQC39ZG.mjs} +23 -3
- package/dist/canonicalization-path-match-D88xLEq6-BFQC39ZG.mjs.map +1 -0
- package/dist/{utils-DMAM0unR.mjs → canonicalize-json-ZPawceQR-Dua1VNEB.mjs} +2 -2
- package/dist/canonicalize-json-ZPawceQR-Dua1VNEB.mjs.map +1 -0
- package/dist/codec-B4ypaota.d.mts +289 -0
- package/dist/codec-B4ypaota.d.mts.map +1 -0
- package/dist/codec-Do8tfXqk.mjs +457 -0
- package/dist/codec-Do8tfXqk.mjs.map +1 -0
- package/dist/codec-descriptor-D0oY-hgs-C5e11ola.mjs +93 -0
- package/dist/codec-descriptor-D0oY-hgs-C5e11ola.mjs.map +1 -0
- package/dist/codec-types-BXLUbk-Y-DpGfKGK0.mjs +22 -0
- package/dist/codec-types-BXLUbk-Y-DpGfKGK0.mjs.map +1 -0
- package/dist/codec-types-CPgEZoIq-BL9hisr8.d.mts +384 -0
- package/dist/codec-types-CPgEZoIq-BL9hisr8.d.mts.map +1 -0
- package/dist/{components-dZRz3T5y.mjs → components-BaV9iCkq.mjs} +34 -3
- package/dist/components-BaV9iCkq.mjs.map +1 -0
- package/dist/components-CRBcIta_.d.mts +86 -0
- package/dist/components-CRBcIta_.d.mts.map +1 -0
- package/dist/components.d.mts +19 -17
- package/dist/components.mjs +16 -12
- package/dist/components__authoring.d.mts +4 -3
- package/dist/components__authoring.mjs +3 -2
- package/dist/components__codec.d.mts +3 -3
- package/dist/components__codec.mjs +6 -4
- package/dist/components__components.d.mts +6 -4
- package/dist/components__components.mjs +4 -3
- package/dist/components__control.d.mts +5 -4
- package/dist/components__control.mjs +3 -2
- package/dist/components__emission.d.mts +4 -4
- package/dist/components__execution.d.mts +1 -1
- package/dist/components__ir.d.mts +1 -1
- package/dist/components__ir.mjs +2 -1
- package/dist/components__psl-ast.d.mts +4 -4
- package/dist/components__psl-ast.mjs +2 -2
- package/dist/components__runtime.d.mts +3 -2
- package/dist/components__runtime.mjs +2 -2
- package/dist/components__utils.mjs +1 -1
- package/dist/{config-types-CW4PDwMC.d.mts → config-types-BTFT7QfJ.d.mts} +73 -41
- package/dist/config-types-BTFT7QfJ.d.mts.map +1 -0
- package/dist/config-types-D0mYyP62.mjs +61 -0
- package/dist/config-types-D0mYyP62.mjs.map +1 -0
- package/dist/config.d.mts +2 -3
- package/dist/config.mjs +2 -3
- package/dist/config__config-types.d.mts +2 -2
- package/dist/config__config-types.mjs +2 -2
- package/dist/contract-authoring.d.mts +152 -17
- package/dist/contract-authoring.d.mts.map +1 -1
- package/dist/contract-authoring.mjs +190 -9
- package/dist/contract-authoring.mjs.map +1 -1
- package/dist/{contract-types-CkdMH7F7-9EHXSwbH.d.mts → contract-types-DEIEpzU_-DvAVuBr5.d.mts} +14 -8
- package/dist/contract-types-DEIEpzU_-DvAVuBr5.d.mts.map +1 -0
- package/dist/{contract-validation-error-DEiWp_EI-CRwtUgRw.mjs → contract-validation-error-CAnTGhkt-DSnujRaK.mjs} +6 -3
- package/dist/contract-validation-error-CAnTGhkt-DSnujRaK.mjs.map +1 -0
- package/dist/{contract-validation-error-R7cMoK04.d.mts → contract-validation-error-D1QAeOh5.d.mts} +4 -2
- package/dist/contract-validation-error-D1QAeOh5.d.mts.map +1 -0
- package/dist/contract.d.mts +13 -12
- package/dist/contract.mjs +9 -9
- package/dist/contract__apply-specifier-default-control-policy.d.mts +1 -1
- package/dist/contract__contract-validation-error.d.mts +1 -1
- package/dist/contract__contract-validation-error.mjs +1 -1
- package/dist/contract__default-namespace.mjs +1 -1
- package/dist/contract__enum-accessor.d.mts +2 -2
- package/dist/contract__enum-accessor.mjs +1 -1
- package/dist/contract__hashing-utils.d.mts +2 -2
- package/dist/contract__hashing-utils.mjs +2 -3
- package/dist/contract__hashing.d.mts +3 -3
- package/dist/contract__hashing.mjs +2 -2
- package/dist/contract__resolve-domain-model.d.mts +1 -1
- package/dist/contract__types.d.mts +5 -5
- package/dist/contract__types.mjs +3 -3
- package/dist/contract__validate-domain.d.mts +1 -1
- package/dist/contract__validate-domain.mjs +1 -1
- package/dist/contract__validate-once.d.mts +2 -0
- package/dist/contract__validate-once.mjs +2 -0
- package/dist/{control-ql9N9u4f-r3Vv41kZ.d.mts → control-B5ezUWD2-BIAYxeSk.d.mts} +34 -6
- package/dist/control-B5ezUWD2-BIAYxeSk.d.mts.map +1 -0
- package/dist/{control-DLEm6u5m.mjs → control-DMJqhnwU.mjs} +309 -36
- package/dist/control-DMJqhnwU.mjs.map +1 -0
- package/dist/control-DrDTlxCS.d.mts +1 -0
- package/dist/{control-BD96JZi8-NUhO5Kkw.mjs → control-KsXr4fYD-D2Ows0NI.mjs} +70 -24
- package/dist/control-KsXr4fYD-D2Ows0NI.mjs.map +1 -0
- package/dist/{control-BF8qzdnM.d.mts → control-s5ECUABR.d.mts} +635 -156
- package/dist/control-s5ECUABR.d.mts.map +1 -0
- package/dist/data-type-V6mcDhcG-DVQAPOQT.mjs +275 -0
- package/dist/data-type-V6mcDhcG-DVQAPOQT.mjs.map +1 -0
- package/dist/declarations-BgUAq1RG-Dz_-EI1Q.mjs +459 -0
- package/dist/declarations-BgUAq1RG-Dz_-EI1Q.mjs.map +1 -0
- package/dist/{default-namespace-D4vCwkXg-lzVN7gSc.mjs → default-namespace-D4vCwkXg-BEZbN38y.mjs} +2 -2
- package/dist/{default-namespace-D4vCwkXg-lzVN7gSc.mjs.map → default-namespace-D4vCwkXg-BEZbN38y.mjs.map} +1 -1
- package/dist/{dist-Dqbo77p7.mjs → dist-D1f6xr7F.mjs} +51 -24
- package/dist/dist-D1f6xr7F.mjs.map +1 -0
- package/dist/{domain-envelope-D6Wn9AmZ-BqZKTT9U.d.mts → domain-envelope-CN721GnP-4huRt7Wc.d.mts} +27 -13
- package/dist/domain-envelope-CN721GnP-4huRt7Wc.d.mts.map +1 -0
- package/dist/emission-BtJvV97M.d.mts +2 -0
- package/dist/{emission-types-DLXP34Ki-CFms3VrX.d.mts → emission-types-B-jKEbjI-D7BW8Gk1.d.mts} +17 -16
- package/dist/emission-types-B-jKEbjI-D7BW8Gk1.d.mts.map +1 -0
- package/dist/enum-accessor-2OZgavDX.d.mts +104 -0
- package/dist/enum-accessor-2OZgavDX.d.mts.map +1 -0
- package/dist/enum-accessor-B-A2wNok.mjs +122 -0
- package/dist/enum-accessor-B-A2wNok.mjs.map +1 -0
- package/dist/errors.d.mts +5 -4
- package/dist/errors.mjs +4 -4
- package/dist/errors__control.d.mts +3 -2
- package/dist/errors__control.mjs +2 -2
- package/dist/errors__execution.d.mts +2 -2
- package/dist/errors__execution.mjs +2 -2
- package/dist/errors__migration.d.mts +2 -2
- package/dist/errors__migration.mjs +2 -2
- package/dist/execution-CjX5CCTb.d.mts +76 -0
- package/dist/execution-CjX5CCTb.d.mts.map +1 -0
- package/dist/{execution-CSnQT8EX.d.mts → execution-lMPVFj5o.d.mts} +2 -2
- package/dist/{execution-CSnQT8EX.d.mts.map → execution-lMPVFj5o.d.mts.map} +1 -1
- package/dist/execution-vfY4d-SZ.mjs +138 -0
- package/dist/execution-vfY4d-SZ.mjs.map +1 -0
- package/dist/{declarations-DR6To8_k-BFwkCGeP.mjs → expressions-CMQzbnHk-BL2zN0Iv.mjs} +199 -350
- package/dist/expressions-CMQzbnHk-BL2zN0Iv.mjs.map +1 -0
- package/dist/framework-authoring-DDxddXZm-uZYdhoE0.d.mts +1096 -0
- package/dist/framework-authoring-DDxddXZm-uZYdhoE0.d.mts.map +1 -0
- package/dist/{framework-components-hZ2tO-KH-CdRXBOYd.d.mts → framework-components-DKoQnPdB-lax1COaf.d.mts} +28 -91
- package/dist/framework-components-DKoQnPdB-lax1COaf.d.mts.map +1 -0
- package/dist/generator-functions-CXbQfvYu-BIFU1Ryx.mjs +271 -0
- package/dist/generator-functions-CXbQfvYu-BIFU1Ryx.mjs.map +1 -0
- package/dist/{hash-content-DwEUh-Rx.d.mts → hash-content-Bde14N2-.d.mts} +2 -2
- package/dist/{hash-content-DwEUh-Rx.d.mts.map → hash-content-Bde14N2-.d.mts.map} +1 -1
- package/dist/{hash-content-Bugg_nZn.mjs → hash-content-Bdl-HSfq.mjs} +2 -2
- package/dist/hash-content-Bdl-HSfq.mjs.map +1 -0
- package/dist/{hashing-BtIZVNYX.mjs → hashing-CLRfNAxh.mjs} +28 -9
- package/dist/hashing-CLRfNAxh.mjs.map +1 -0
- package/dist/hashing-D-DHz0zl.d.mts +36 -0
- package/dist/hashing-D-DHz0zl.d.mts.map +1 -0
- package/dist/{hashing-utils-qKu59RSC.d.mts → hashing-utils-DiGHKd3b.d.mts} +4 -3
- package/dist/{hashing-utils-qKu59RSC.d.mts.map → hashing-utils-DiGHKd3b.d.mts.map} +1 -1
- package/dist/ids.d.mts +90 -13
- package/dist/ids.d.mts.map +1 -1
- package/dist/ids.mjs +45 -59
- package/dist/ids.mjs.map +1 -1
- package/dist/ids__runtime.d.mts +1 -1
- package/dist/ids__runtime.mjs +1 -1
- package/dist/{index-CDk9yEbw.d.mts → index-MU-ksXsh.d.mts} +23 -6
- package/dist/index-MU-ksXsh.d.mts.map +1 -0
- package/dist/{internal-error-kK8QvlDE.d.mts → internal-error-2fJ9fcZX.d.mts} +2 -2
- package/dist/{internal-error-kK8QvlDE.d.mts.map → internal-error-2fJ9fcZX.d.mts.map} +1 -1
- package/dist/{internal-error-BIc-ehme-ouBQPoEL.mjs → internal-error-ChGYPVpq-DhUD05u0.mjs} +3 -3
- package/dist/internal-error-ChGYPVpq-DhUD05u0.mjs.map +1 -0
- package/dist/{ir-BvE7L9FK.d.mts → ir-LV4tXsw3.d.mts} +6 -5
- package/dist/{ir-BvE7L9FK.d.mts.map → ir-LV4tXsw3.d.mts.map} +1 -1
- package/dist/{ir-ChmSSAhX.mjs → ir-uDGU9vaj.mjs} +7 -53
- package/dist/ir-uDGU9vaj.mjs.map +1 -0
- package/dist/{migration-BvrgDZXw.d.mts → migration-Dluwnqe9.d.mts} +20 -3
- package/dist/migration-Dluwnqe9.d.mts.map +1 -0
- package/dist/{migration-C57VKLUY.mjs → migration-uC-bSKA4.mjs} +30 -4
- package/dist/migration-uC-bSKA4.mjs.map +1 -0
- package/dist/namespace-VUH2dgnS-By5y75h9.mjs +53 -0
- package/dist/namespace-VUH2dgnS-By5y75h9.mjs.map +1 -0
- package/dist/operations.mjs +1 -1
- package/dist/{parse-GbZGfMUj-BFSrD2AN.mjs → parse-bZgfjovA-BNgYhylT.mjs} +311 -55
- package/dist/parse-bZgfjovA-BNgYhylT.mjs.map +1 -0
- package/dist/{parse-0ZJjj_2N-DhQpSVmQ.d.mts → parse-djL5wker-B610mXG4.d.mts} +181 -52
- package/dist/parse-djL5wker-B610mXG4.d.mts.map +1 -0
- package/dist/psl-ast-COcYtLlz.d.mts +2 -0
- package/dist/psl-ast-CyvE6CR-.mjs +116 -0
- package/dist/psl-ast-CyvE6CR-.mjs.map +1 -0
- package/dist/{psl-ast-CWJQF8LA-Vr5JNPdn.d.mts → psl-ast-rY25o3Ze-ClLY3CYt.d.mts} +10 -40
- package/dist/psl-ast-rY25o3Ze-ClLY3CYt.d.mts.map +1 -0
- package/dist/psl-parser.d.mts +415 -101
- package/dist/psl-parser.d.mts.map +1 -1
- package/dist/psl-parser.mjs +2451 -537
- package/dist/psl-parser.mjs.map +1 -1
- package/dist/psl-parser__format.d.mts +8 -2
- package/dist/psl-parser__format.d.mts.map +1 -1
- package/dist/psl-parser__format.mjs +65 -34
- package/dist/psl-parser__format.mjs.map +1 -1
- package/dist/psl-parser__interpret.d.mts +98 -10
- package/dist/psl-parser__interpret.d.mts.map +1 -1
- package/dist/psl-parser__interpret.mjs +393 -2
- package/dist/psl-parser__interpret.mjs.map +1 -1
- package/dist/psl-parser__syntax.d.mts +3 -3
- package/dist/psl-parser__syntax.mjs +4 -43
- package/dist/psl-parser__tokenizer.d.mts +1 -1
- package/dist/psl-parser__tokenizer.mjs +1 -1
- package/dist/psl-printer.d.mts +7 -17
- package/dist/psl-printer.d.mts.map +1 -1
- package/dist/psl-printer.mjs +35 -104
- package/dist/psl-printer.mjs.map +1 -1
- package/dist/resolve-codec-qqMjZrmn-Cok8elAo.mjs +74 -0
- package/dist/resolve-codec-qqMjZrmn-Cok8elAo.mjs.map +1 -0
- package/dist/{resolve-domain-model-BVSb5wS5-C6Yq0dsD.d.mts → resolve-domain-model-BNr1glea-BLuR-phK.d.mts} +3 -3
- package/dist/resolve-domain-model-BNr1glea-BLuR-phK.d.mts.map +1 -0
- package/dist/{result-CBZ8X9mU.mjs → result-8OXF26MN.mjs} +14 -3
- package/dist/{result-CBZ8X9mU.mjs.map → result-8OXF26MN.mjs.map} +1 -1
- package/dist/{result-Bpupv5vO.d.mts → result-BYCOANWy.d.mts} +4 -2
- package/dist/result-BYCOANWy.d.mts.map +1 -0
- package/dist/runtime-B-YYuWy2.d.mts +899 -0
- package/dist/runtime-B-YYuWy2.d.mts.map +1 -0
- package/dist/runtime-DSYSc98Y.mjs +1059 -0
- package/dist/runtime-DSYSc98Y.mjs.map +1 -0
- package/dist/runtime-error-CO4MA3Px-YW5SCUcH.d.mts +19 -0
- package/dist/runtime-error-CO4MA3Px-YW5SCUcH.d.mts.map +1 -0
- package/dist/{structured-error-CgiSMpdU.mjs → structured-error-BXbihKQ-.mjs} +3 -3
- package/dist/{structured-error-CgiSMpdU.mjs.map → structured-error-BXbihKQ-.mjs.map} +1 -1
- package/dist/{structured-error-BsNT4Hun.d.mts → structured-error-Cc7AIRsp.d.mts} +19 -5
- package/dist/structured-error-Cc7AIRsp.d.mts.map +1 -0
- package/dist/suppress-idle-connection-errors-CKrTbp5P.d.mts +18 -0
- package/dist/suppress-idle-connection-errors-CKrTbp5P.d.mts.map +1 -0
- package/dist/suppress-idle-connection-errors-DzApeUb3.mjs +22 -0
- package/dist/suppress-idle-connection-errors-DzApeUb3.mjs.map +1 -0
- package/dist/temporal-presets-5TK1pTYJ-DmhrnMP1.mjs +1276 -0
- package/dist/temporal-presets-5TK1pTYJ-DmhrnMP1.mjs.map +1 -0
- package/dist/temporal-presets-BuMqk7h8-DZSuu4Z_.d.mts +258 -0
- package/dist/temporal-presets-BuMqk7h8-DZSuu4Z_.d.mts.map +1 -0
- package/dist/text-C3TTEtgd.mjs +35 -0
- package/dist/text-C3TTEtgd.mjs.map +1 -0
- package/dist/text-C8_-rheN.d.mts +15 -0
- package/dist/text-C8_-rheN.d.mts.map +1 -0
- package/dist/{tokenizer-1hAHZzmp-QGPORvmA.mjs → tokenizer-C-GTKKjR-B1vOzJy0.mjs} +54 -10
- package/dist/tokenizer-C-GTKKjR-B1vOzJy0.mjs.map +1 -0
- package/dist/{tokenizer-DcYI0Xrq-C-nNE9mE.d.mts → tokenizer-i8RaVWVa-7fRwlCPP.d.mts} +9 -4
- package/dist/tokenizer-i8RaVWVa-7fRwlCPP.d.mts.map +1 -0
- package/dist/ts-render.d.mts +2 -2
- package/dist/ts-render.mjs +2 -2
- package/dist/type-constructor-calls-BLf-HsFy-D_jbIqj8.mjs +261 -0
- package/dist/type-constructor-calls-BLf-HsFy-D_jbIqj8.mjs.map +1 -0
- package/dist/{types-BnH4zYvN.mjs → types-B8ULzMAX.mjs} +36 -3
- package/dist/types-B8ULzMAX.mjs.map +1 -0
- package/dist/types-GNXJ7xW2.d.mts +131 -0
- package/dist/types-GNXJ7xW2.d.mts.map +1 -0
- package/dist/{types-import-spec-3mjbVBhI-DQI6BvKU.d.mts → types-import-spec-DQjfX-gM-zVncuzs0.d.mts} +6 -6
- package/dist/types-import-spec-DQjfX-gM-zVncuzs0.d.mts.map +1 -0
- package/dist/utils.d.mts +7 -5
- package/dist/utils.mjs +9 -7
- package/dist/utils__assertions.mjs +1 -1
- package/dist/utils__hash-content.d.mts +1 -1
- package/dist/utils__hash-content.mjs +1 -1
- package/dist/utils__internal-error.d.mts +1 -1
- package/dist/utils__internal-error.mjs +1 -1
- package/dist/utils__result.d.mts +2 -2
- package/dist/utils__result.mjs +2 -2
- package/dist/utils__structured-error.d.mts +2 -2
- package/dist/utils__structured-error.mjs +1 -1
- package/dist/utils__suppress-idle-connection-errors.d.mts +2 -0
- package/dist/utils__suppress-idle-connection-errors.mjs +2 -0
- package/dist/utils__text.d.mts +2 -0
- package/dist/utils__text.mjs +2 -0
- package/dist/{validate-domain-BNBs-TVv.d.mts → validate-domain-B5kmlBFB.d.mts} +10 -6
- package/dist/validate-domain-B5kmlBFB.d.mts.map +1 -0
- package/dist/{validate-domain-BkvFlY3B.mjs → validate-domain-CbXHDYpF.mjs} +43 -22
- package/dist/validate-domain-CbXHDYpF.mjs.map +1 -0
- package/dist/validate-once-D-IwXHYP.mjs +42 -0
- package/dist/validate-once-D-IwXHYP.mjs.map +1 -0
- package/dist/validate-once-gfCOHsDh.d.mts +16 -0
- package/dist/validate-once-gfCOHsDh.d.mts.map +1 -0
- package/package.json +24 -20
- package/dist/apply-specifier-default-control-policy-CAxiXxKg.d.mts.map +0 -1
- package/dist/authoring-B2H-9qCv.d.mts +0 -1
- package/dist/canonicalization-path-match-CNgHuwM_-CCPBeUuk.mjs +0 -25
- package/dist/canonicalization-path-match-CNgHuwM_-CCPBeUuk.mjs.map +0 -1
- package/dist/capabilities-BCEONw9w-C-lo3rF8.mjs +0 -120
- package/dist/capabilities-BCEONw9w-C-lo3rF8.mjs.map +0 -1
- package/dist/codec-Cd0QcxAx.mjs +0 -63
- package/dist/codec-Cd0QcxAx.mjs.map +0 -1
- package/dist/codec-Ce07W3Mz.d.mts +0 -112
- package/dist/codec-Ce07W3Mz.d.mts.map +0 -1
- package/dist/codec-types-D6VRj2RE-BLElXc-O.d.mts +0 -223
- package/dist/codec-types-D6VRj2RE-BLElXc-O.d.mts.map +0 -1
- package/dist/codec-types-DcNvNeY1-BO6kUiH0.mjs +0 -30
- package/dist/codec-types-DcNvNeY1-BO6kUiH0.mjs.map +0 -1
- package/dist/components-CGA_WwEG.d.mts +0 -50
- package/dist/components-CGA_WwEG.d.mts.map +0 -1
- package/dist/components-dZRz3T5y.mjs.map +0 -1
- package/dist/config-types-BqhNxw0z.mjs +0 -67
- package/dist/config-types-BqhNxw0z.mjs.map +0 -1
- package/dist/config-types-CW4PDwMC.d.mts.map +0 -1
- package/dist/config-validation-DPt5hwQx.mjs +0 -168
- package/dist/config-validation-DPt5hwQx.mjs.map +0 -1
- package/dist/config-validation-Wiqew2J9.d.mts +0 -21
- package/dist/config-validation-Wiqew2J9.d.mts.map +0 -1
- package/dist/config__config-validation.d.mts +0 -2
- package/dist/config__config-validation.mjs +0 -2
- package/dist/contract-types-CkdMH7F7-9EHXSwbH.d.mts.map +0 -1
- package/dist/contract-validation-error-DEiWp_EI-CRwtUgRw.mjs.map +0 -1
- package/dist/contract-validation-error-R7cMoK04.d.mts.map +0 -1
- package/dist/control-BD96JZi8-NUhO5Kkw.mjs.map +0 -1
- package/dist/control-BF8qzdnM.d.mts.map +0 -1
- package/dist/control-DLEm6u5m.mjs.map +0 -1
- package/dist/control-ql9N9u4f-r3Vv41kZ.d.mts.map +0 -1
- package/dist/declarations-DR6To8_k-BFwkCGeP.mjs.map +0 -1
- package/dist/dist-Dqbo77p7.mjs.map +0 -1
- package/dist/domain-envelope-D6Wn9AmZ-BqZKTT9U.d.mts.map +0 -1
- package/dist/emission-CmUO03gQ.d.mts +0 -2
- package/dist/emission-types-DLXP34Ki-CFms3VrX.d.mts.map +0 -1
- package/dist/enum-accessor-Db5DaTNX.mjs +0 -35
- package/dist/enum-accessor-Db5DaTNX.mjs.map +0 -1
- package/dist/enum-accessor-PH5vjghI.d.mts +0 -85
- package/dist/enum-accessor-PH5vjghI.d.mts.map +0 -1
- package/dist/execution-Crk6IfTs.mjs +0 -218
- package/dist/execution-Crk6IfTs.mjs.map +0 -1
- package/dist/execution-Cyl2dXxX.d.mts +0 -115
- package/dist/execution-Cyl2dXxX.d.mts.map +0 -1
- package/dist/framework-authoring-BhctBwih-DQ_6noDM.d.mts +0 -777
- package/dist/framework-authoring-BhctBwih-DQ_6noDM.d.mts.map +0 -1
- package/dist/framework-authoring-CDEvlouU-DKklu-fL.mjs +0 -698
- package/dist/framework-authoring-CDEvlouU-DKklu-fL.mjs.map +0 -1
- package/dist/framework-components-hZ2tO-KH-CdRXBOYd.d.mts.map +0 -1
- package/dist/hash-content-Bugg_nZn.mjs.map +0 -1
- package/dist/hashing-BtIZVNYX.mjs.map +0 -1
- package/dist/hashing-CccSPELN.d.mts +0 -25
- package/dist/hashing-CccSPELN.d.mts.map +0 -1
- package/dist/hashing-utils-DQgS3nOe.mjs.map +0 -1
- package/dist/index-CDk9yEbw.d.mts.map +0 -1
- package/dist/internal-error-BIc-ehme-ouBQPoEL.mjs.map +0 -1
- package/dist/ir-ChmSSAhX.mjs.map +0 -1
- package/dist/migration-BvrgDZXw.d.mts.map +0 -1
- package/dist/migration-C57VKLUY.mjs.map +0 -1
- package/dist/parse-0ZJjj_2N-DhQpSVmQ.d.mts.map +0 -1
- package/dist/parse-GbZGfMUj-BFSrD2AN.mjs.map +0 -1
- package/dist/psl-ast-BXZoFQBk.d.mts +0 -37
- package/dist/psl-ast-BXZoFQBk.d.mts.map +0 -1
- package/dist/psl-ast-CWJQF8LA-Vr5JNPdn.d.mts.map +0 -1
- package/dist/psl-ast-DUCvVXbB.mjs +0 -239
- package/dist/psl-ast-DUCvVXbB.mjs.map +0 -1
- package/dist/psl-parser__syntax.mjs.map +0 -1
- package/dist/resolve-codec-BZF8TZh_-D-xORT9Q.mjs +0 -59
- package/dist/resolve-codec-BZF8TZh_-D-xORT9Q.mjs.map +0 -1
- package/dist/resolve-domain-model-BVSb5wS5-C6Yq0dsD.d.mts.map +0 -1
- package/dist/result-Bpupv5vO.d.mts.map +0 -1
- package/dist/runtime-BqzioOmU.mjs +0 -670
- package/dist/runtime-BqzioOmU.mjs.map +0 -1
- package/dist/runtime-Cuxw8obj.d.mts +0 -1038
- package/dist/runtime-Cuxw8obj.d.mts.map +0 -1
- package/dist/structured-error-BsNT4Hun.d.mts.map +0 -1
- package/dist/symbol-table-CZ7EVCTL-CR-ncCpD.d.mts +0 -125
- package/dist/symbol-table-CZ7EVCTL-CR-ncCpD.d.mts.map +0 -1
- package/dist/tokenizer-1hAHZzmp-QGPORvmA.mjs.map +0 -1
- package/dist/tokenizer-DcYI0Xrq-C-nNE9mE.d.mts.map +0 -1
- package/dist/types-BnH4zYvN.mjs.map +0 -1
- package/dist/types-ByeQhU9p.d.mts +0 -17
- package/dist/types-ByeQhU9p.d.mts.map +0 -1
- package/dist/types-import-spec-3mjbVBhI-DQI6BvKU.d.mts.map +0 -1
- package/dist/utils-DMAM0unR.mjs.map +0 -1
- package/dist/validate-domain-BNBs-TVv.d.mts.map +0 -1
- package/dist/validate-domain-BkvFlY3B.mjs.map +0 -1
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { t as blindCast } from "./casts-DpaahrlC-Bd5n2coI.mjs";
|
|
2
|
-
import { o as structuredError } from "./structured-error-
|
|
3
|
-
import {
|
|
2
|
+
import { o as structuredError } from "./structured-error-BXbihKQ-.mjs";
|
|
3
|
+
import { t as assertDefined } from "./assertions-Dw1lZz_Q.mjs";
|
|
4
|
+
import { E as isAuthoringFieldPresetDescriptor, P as mergeAuthoringNamespaces, t as AUTHORING_TYPE_DESCRIPTOR_KINDS, y as instantiateAuthoringEntityType } from "./temporal-presets-5TK1pTYJ-DmhrnMP1.mjs";
|
|
5
|
+
import { f as errorEnumCodecNotInPackStack } from "./control-KsXr4fYD-D2Ows0NI.mjs";
|
|
6
|
+
import { p as encodeEnumMembers } from "./authoring-CNUti739.mjs";
|
|
4
7
|
//#region ../../../1-framework/2-authoring/contract/dist/index.mjs
|
|
5
8
|
/**
|
|
6
9
|
* Deep-merges any number of capability matrices into a single matrix.
|
|
@@ -64,13 +67,22 @@ function member(name, value) {
|
|
|
64
67
|
};
|
|
65
68
|
}
|
|
66
69
|
const ENUM_TYPE_HANDLE_BRAND = "__prismaNextEnumTypeHandle__";
|
|
70
|
+
function describeValue(value) {
|
|
71
|
+
if (typeof value === "bigint") return `${value}n`;
|
|
72
|
+
if (typeof value === "number" && !Number.isFinite(value)) return String(value);
|
|
73
|
+
try {
|
|
74
|
+
return JSON.stringify(value) ?? String(value);
|
|
75
|
+
} catch {
|
|
76
|
+
return String(value);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
67
79
|
function enumType(name, codec, ...members) {
|
|
68
80
|
if (members.length === 0) throw contractError("CONTRACT.ENUM_INVALID", `enumType("${name}"): must have at least one member.`, { meta: {
|
|
69
81
|
enumName: name,
|
|
70
82
|
reason: "no-members"
|
|
71
83
|
} });
|
|
72
84
|
const seenNames = /* @__PURE__ */ new Set();
|
|
73
|
-
const
|
|
85
|
+
const nameByValue = /* @__PURE__ */ new Map();
|
|
74
86
|
for (const m of members) {
|
|
75
87
|
if (seenNames.has(m.name)) throw contractError("CONTRACT.ENUM_INVALID", `enumType("${name}"): duplicate member name "${m.name}". Member names must be unique.`, { meta: {
|
|
76
88
|
enumName: name,
|
|
@@ -78,13 +90,13 @@ function enumType(name, codec, ...members) {
|
|
|
78
90
|
reason: "duplicate-member-name"
|
|
79
91
|
} });
|
|
80
92
|
seenNames.add(m.name);
|
|
81
|
-
const
|
|
82
|
-
if (
|
|
93
|
+
const earlier = nameByValue.get(m.value);
|
|
94
|
+
if (earlier !== void 0) throw contractError("CONTRACT.ENUM_INVALID", `enumType("${name}"): members "${earlier}" and "${m.name}" have the same value ${describeValue(m.value)}. Member values must be unique.`, { meta: {
|
|
83
95
|
enumName: name,
|
|
84
|
-
|
|
96
|
+
members: [earlier, m.name],
|
|
85
97
|
reason: "duplicate-member-value"
|
|
86
98
|
} });
|
|
87
|
-
|
|
99
|
+
nameByValue.set(m.value, m.name);
|
|
88
100
|
}
|
|
89
101
|
const values = Object.freeze(members.map((m) => m.value));
|
|
90
102
|
const names = Object.freeze(members.map((m) => m.name));
|
|
@@ -100,7 +112,6 @@ function enumType(name, codec, ...members) {
|
|
|
100
112
|
[ENUM_TYPE_HANDLE_BRAND]: true,
|
|
101
113
|
enumName: name,
|
|
102
114
|
codecId: codec.codecId,
|
|
103
|
-
nativeType: codec.nativeType,
|
|
104
115
|
enumMembers,
|
|
105
116
|
values,
|
|
106
117
|
names,
|
|
@@ -110,6 +121,14 @@ function enumType(name, codec, ...members) {
|
|
|
110
121
|
ordinalOf: (v) => valueToOrdinal.get(v) ?? -1
|
|
111
122
|
};
|
|
112
123
|
}
|
|
124
|
+
/** Two members of an `enumType` that store the same value, as `CONTRACT.ENUM_INVALID` naming both members and the stored value. */
|
|
125
|
+
function duplicateMemberError(enumName, duplicate) {
|
|
126
|
+
return contractError("CONTRACT.ENUM_INVALID", duplicate.earlierStored === void 0 ? `enumType("${enumName}"): members "${duplicate.earlier}" and "${duplicate.later}" both store ${JSON.stringify(duplicate.stored)}. Member values must be unique as their codec stores them.` : `enumType("${enumName}"): members "${duplicate.earlier}" and "${duplicate.later}" store ${JSON.stringify(duplicate.earlierStored)} and ${JSON.stringify(duplicate.stored)}, which the database holds equal. Member values must be unique as their data type compares them.`, { meta: {
|
|
127
|
+
enumName,
|
|
128
|
+
members: [duplicate.earlier, duplicate.later],
|
|
129
|
+
reason: "duplicate-member-value"
|
|
130
|
+
} });
|
|
131
|
+
}
|
|
113
132
|
/**
|
|
114
133
|
* Bind `enumType` to a target's codec typemap. The returned function is the
|
|
115
134
|
* same runtime `enumType`, retyped so member values are constrained to the
|
|
@@ -127,7 +146,169 @@ function bindEnumType() {
|
|
|
127
146
|
function isEnumTypeHandle(value) {
|
|
128
147
|
return typeof value === "object" && value !== null && Reflect.get(value, "__prismaNextEnumTypeHandle__") === true;
|
|
129
148
|
}
|
|
149
|
+
function enumMemberError(handle, problem, storedBy) {
|
|
150
|
+
const { enumName, codecId } = handle;
|
|
151
|
+
switch (problem.kind) {
|
|
152
|
+
case "codec-not-for-enums": return contractError("CONTRACT.ENUM_INVALID", `enumType("${enumName}"): an enum cannot use the codec ${codecId}. ${problem.refusal}`, {
|
|
153
|
+
fix: "Type the enum with another codec.",
|
|
154
|
+
meta: {
|
|
155
|
+
enumName,
|
|
156
|
+
codecId,
|
|
157
|
+
reason: "codec-not-for-enums"
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
case "codec-missing": return errorEnumCodecNotInPackStack({ codecId });
|
|
161
|
+
case "codec-refused-member": return contractError("CONTRACT.ENUM_INVALID", `enumType("${enumName}") member "${problem.member}" has a value its codec ${codecId} refuses: ${problem.reason}`, {
|
|
162
|
+
fix: "Give the member a value the codec takes, or type the enum with a codec that takes it.",
|
|
163
|
+
cause: problem.cause,
|
|
164
|
+
meta: {
|
|
165
|
+
enumName,
|
|
166
|
+
member: problem.member,
|
|
167
|
+
codecId,
|
|
168
|
+
reason: "codec-refused-member"
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
case "member-not-stored-as-written": return contractError("CONTRACT.ENUM_INVALID", `enumType("${enumName}"): member "${problem.member}" is written ${problem.written}, but ${storedBy} stores ${JSON.stringify(problem.stored)}. Write the member as ${problem.writeAs}.`, { meta: {
|
|
172
|
+
enumName,
|
|
173
|
+
member: problem.member,
|
|
174
|
+
reason: "member-not-stored-as-written"
|
|
175
|
+
} });
|
|
176
|
+
case "duplicate-member-value": return duplicateMemberError(enumName, problem);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Each member of an `enumType` in the form its codec stores it, which is how the contract holds it. Throws the first problem `encodeEnumMembers` finds: `CONTRACT.ENUM_CODEC_NOT_IN_PACK_STACK` for a codec no pack provides, and `CONTRACT.ENUM_INVALID` for the others. `storedBy` names what stores the value in the family's terms, such as `the column`.
|
|
181
|
+
*/
|
|
182
|
+
function encodeEnumTypeMembers(handle, codecLookup, storedBy) {
|
|
183
|
+
const encoded = encodeEnumMembers(handle, codecLookup);
|
|
184
|
+
if (encoded.ok) return encoded.value;
|
|
185
|
+
const [problem] = encoded.failure;
|
|
186
|
+
assertDefined(problem, "encodeEnumMembers fails with at least one problem");
|
|
187
|
+
throw enumMemberError(handle, problem, storedBy);
|
|
188
|
+
}
|
|
189
|
+
const blockedSegments = /* @__PURE__ */ new Set([
|
|
190
|
+
"__proto__",
|
|
191
|
+
"constructor",
|
|
192
|
+
"prototype"
|
|
193
|
+
]);
|
|
194
|
+
function assertSafeAuthoringHelperKey(key, path) {
|
|
195
|
+
if (blockedSegments.has(key)) throw contractError("CONTRACT.PACK_CONTRIBUTION_INVALID", `Invalid authoring helper "${[...path, key].join(".")}". Helper path segments must not use "${key}".`, { meta: {
|
|
196
|
+
helperPath: [...path, key].join("."),
|
|
197
|
+
segment: key
|
|
198
|
+
} });
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Walks a field-preset namespace and produces the callable surface mirroring its tree shape. Each leaf descriptor becomes the helper `createLeafHelper` returns; nested namespaces recurse.
|
|
202
|
+
*/
|
|
203
|
+
function createFieldHelpersFromNamespace(namespace, createLeafHelper, path = []) {
|
|
204
|
+
const helpers = {};
|
|
205
|
+
for (const [key, value] of Object.entries(namespace)) {
|
|
206
|
+
assertSafeAuthoringHelperKey(key, path);
|
|
207
|
+
const currentPath = [...path, key];
|
|
208
|
+
if (isAuthoringFieldPresetDescriptor(value)) {
|
|
209
|
+
helpers[key] = createLeafHelper({
|
|
210
|
+
helperPath: currentPath.join("."),
|
|
211
|
+
descriptor: value
|
|
212
|
+
});
|
|
213
|
+
continue;
|
|
214
|
+
}
|
|
215
|
+
helpers[key] = createFieldHelpersFromNamespace(value, createLeafHelper, currentPath);
|
|
216
|
+
}
|
|
217
|
+
return helpers;
|
|
218
|
+
}
|
|
219
|
+
function isNonEmptyRecord(value) {
|
|
220
|
+
return typeof value === "object" && value !== null && Object.keys(value).length > 0;
|
|
221
|
+
}
|
|
222
|
+
const descriptorKindByNamespace = {
|
|
223
|
+
type: {
|
|
224
|
+
descriptorKind: AUTHORING_TYPE_DESCRIPTOR_KINDS,
|
|
225
|
+
label: "type"
|
|
226
|
+
},
|
|
227
|
+
field: {
|
|
228
|
+
descriptorKind: "fieldPreset",
|
|
229
|
+
label: "field"
|
|
230
|
+
},
|
|
231
|
+
entityTypes: {
|
|
232
|
+
descriptorKind: "entity",
|
|
233
|
+
label: "entity"
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
/**
|
|
237
|
+
* Merges one authoring namespace (`type`, `field` or `entityTypes`) across the family, target and extension packs, in order. A duplicate helper path across packs throws.
|
|
238
|
+
*/
|
|
239
|
+
function composePackAuthoringNamespace(components, key) {
|
|
240
|
+
const { descriptorKind, label } = descriptorKindByNamespace[key];
|
|
241
|
+
const merged = {};
|
|
242
|
+
for (const component of components) {
|
|
243
|
+
const namespace = component.authoring?.[key];
|
|
244
|
+
if (isNonEmptyRecord(namespace)) mergeAuthoringNamespaces(merged, namespace, [], descriptorKind, label);
|
|
245
|
+
}
|
|
246
|
+
return blindCast(merged);
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* The one rule for whether a to-one relation may be absent. The side that holds the reference
|
|
250
|
+
* (in SQL, the foreign key) is nullable exactly when one of its local fields is; the other side
|
|
251
|
+
* is always nullable, because nothing in storage guarantees the related record exists. A
|
|
252
|
+
* declaration that disagrees is reported as a contradiction; `nullable` is always the derived
|
|
253
|
+
* value.
|
|
254
|
+
*/
|
|
255
|
+
function resolveToOneRelationNullable(input) {
|
|
256
|
+
const nullable = input.ownsReference ? input.localFieldNullability.some(Boolean) : true;
|
|
257
|
+
const declared = input.declaredNullable;
|
|
258
|
+
if (declared === void 0 || declared === nullable) return {
|
|
259
|
+
nullable,
|
|
260
|
+
contradiction: void 0
|
|
261
|
+
};
|
|
262
|
+
return {
|
|
263
|
+
nullable,
|
|
264
|
+
contradiction: declared ? "declared-optional" : "declared-required"
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
function isToOneReference(relation) {
|
|
268
|
+
return "on" in relation && (relation.cardinality === "1:1" || relation.cardinality === "N:1");
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Fills in `nullable` on every same-space to-one relation that lacks it from the ownership and
|
|
272
|
+
* local-field nullability the lookup reports. A cross-space relation defaults to nullable.
|
|
273
|
+
* Relations that already carry the flag are left as they are.
|
|
274
|
+
*/
|
|
275
|
+
function withDerivedToOneRelationNullability(domain, localFieldNullability) {
|
|
276
|
+
const namespaces = Object.fromEntries(Object.entries(domain.namespaces).map(([namespaceId, namespace]) => [namespaceId, withDerivedNamespace(namespaceId, namespace, localFieldNullability)]));
|
|
277
|
+
return {
|
|
278
|
+
...domain,
|
|
279
|
+
namespaces
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
function withDerivedNamespace(namespaceId, namespace, localFieldNullability) {
|
|
283
|
+
const models = Object.fromEntries(Object.entries(namespace.models).map(([modelName, model]) => [modelName, withDerivedModel(namespaceId, modelName, model, localFieldNullability)]));
|
|
284
|
+
return {
|
|
285
|
+
...namespace,
|
|
286
|
+
models
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
function withDerivedModel(namespaceId, modelName, model, localFieldNullability) {
|
|
290
|
+
const relations = Object.fromEntries(Object.entries(model.relations ?? {}).map(([relationName, relation]) => {
|
|
291
|
+
if (!isToOneReference(relation) || relation.nullable !== void 0) return [relationName, relation];
|
|
292
|
+
const nullable = relation.to.space !== void 0 ? true : resolveToOneRelationNullable({
|
|
293
|
+
declaredNullable: void 0,
|
|
294
|
+
...localFieldNullability({
|
|
295
|
+
namespaceId,
|
|
296
|
+
modelName,
|
|
297
|
+
model,
|
|
298
|
+
relation
|
|
299
|
+
})
|
|
300
|
+
}).nullable;
|
|
301
|
+
return [relationName, {
|
|
302
|
+
...relation,
|
|
303
|
+
nullable
|
|
304
|
+
}];
|
|
305
|
+
}));
|
|
306
|
+
return {
|
|
307
|
+
...model,
|
|
308
|
+
relations
|
|
309
|
+
};
|
|
310
|
+
}
|
|
130
311
|
//#endregion
|
|
131
|
-
export { ENUM_TYPE_HANDLE_BRAND, bindEnumType, createEntityHelpersFromNamespace, enumType, isEnumTypeHandle, member, mergeCapabilityMatrices };
|
|
312
|
+
export { ENUM_TYPE_HANDLE_BRAND, assertSafeAuthoringHelperKey, bindEnumType, composePackAuthoringNamespace, createEntityHelpersFromNamespace, createFieldHelpersFromNamespace, encodeEnumTypeMembers, enumType, isEnumTypeHandle, member, mergeCapabilityMatrices, resolveToOneRelationNullable, withDerivedToOneRelationNullability };
|
|
132
313
|
|
|
133
314
|
//# sourceMappingURL=contract-authoring.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract-authoring.mjs","names":[],"sources":["../../../../1-framework/2-authoring/contract/dist/index.mjs"],"sourcesContent":["import { instantiateAuthoringEntityType } from \"@internal/framework-components/authoring\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { structuredError } from \"@internal/utils/structured-error\";\n//#region src/capability-registry.ts\n/**\n* Deep-merges any number of capability matrices into a single matrix.\n*\n* Merge is purely structural — namespaces and capability flags from later\n* sources overlay earlier ones. Undefined entries are skipped so callers\n* can pass optional sources without pre-filtering.\n*\n* The helper is target-agnostic: it contains no SQL or family-specific\n* knowledge. Higher layers contribute their own capability matrices (for\n* example, a target pack, an extension pack, or the contract author's\n* own `capabilities` block) and call this helper to fold them together.\n*/\nfunction mergeCapabilityMatrices(...sources) {\n\tconst result = {};\n\tfor (const source of sources) {\n\t\tif (source === void 0) continue;\n\t\tfor (const [namespace, capabilities] of Object.entries(source)) {\n\t\t\tconst existing = result[namespace];\n\t\t\tresult[namespace] = existing ? {\n\t\t\t\t...existing,\n\t\t\t\t...capabilities\n\t\t\t} : { ...capabilities };\n\t\t}\n\t}\n\treturn result;\n}\n//#endregion\n//#region src/composed-helpers-scaffolding.ts\n/**\n* Walks an entity-type namespace (after cross-pack merge) and produces the\n* runtime callable surface mirroring its tree shape. Each leaf\n* descriptor becomes a function `(input) => factory(input, ctx)`;\n* nested namespace objects recurse.\n*/\nfunction createEntityHelpersFromNamespace(namespace, options, path = []) {\n\tconst result = {};\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isLeafEntityDescriptor(value)) {\n\t\t\tresult[key] = createEntityHelper(currentPath.join(\".\"), value, options);\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null && !Array.isArray(value)) result[key] = createEntityHelpersFromNamespace(value, options, currentPath);\n\t}\n\treturn result;\n}\nfunction isLeafEntityDescriptor(value) {\n\tif (typeof value !== \"object\" || value === null || value.kind !== \"entity\") return false;\n\tconst discriminator = value.discriminator;\n\treturn typeof discriminator === \"string\" && discriminator.length > 0;\n}\nfunction createEntityHelper(helperPath, descriptor, options) {\n\treturn (...args) => instantiateAuthoringEntityType(helperPath, descriptor, args, options.ctx);\n}\n//#endregion\n//#region src/contract-errors.ts\nfunction contractError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n//#endregion\n//#region src/enum-type.ts\nfunction member(name, value) {\n\treturn {\n\t\tname,\n\t\tvalue: blindCast(value === void 0 ? name : value)\n\t};\n}\nconst ENUM_TYPE_HANDLE_BRAND = \"__prismaNextEnumTypeHandle__\";\nfunction enumType(name, codec, ...members) {\n\tif (members.length === 0) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): must have at least one member.`, { meta: {\n\t\tenumName: name,\n\t\treason: \"no-members\"\n\t} });\n\tconst seenNames = /* @__PURE__ */ new Set();\n\tconst seenValues = /* @__PURE__ */ new Set();\n\tfor (const m of members) {\n\t\tif (seenNames.has(m.name)) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): duplicate member name \"${m.name}\". Member names must be unique.`, { meta: {\n\t\t\tenumName: name,\n\t\t\tmember: m.name,\n\t\t\treason: \"duplicate-member-name\"\n\t\t} });\n\t\tseenNames.add(m.name);\n\t\tconst loweredValue = String(m.value);\n\t\tif (seenValues.has(loweredValue)) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): duplicate member value \"${loweredValue}\". Member values must be unique.`, { meta: {\n\t\t\tenumName: name,\n\t\t\tmember: loweredValue,\n\t\t\treason: \"duplicate-member-value\"\n\t\t} });\n\t\tseenValues.add(loweredValue);\n\t}\n\tconst values = Object.freeze(members.map((m) => m.value));\n\tconst names = Object.freeze(members.map((m) => m.name));\n\tconst enumMembers = Object.freeze(members.map((m) => ({\n\t\tname: m.name,\n\t\tvalue: m.value\n\t})));\n\tconst membersAccessor = Object.freeze(Object.fromEntries(members.map((m) => [m.name, m.value])));\n\tconst valueSet = new Set(values);\n\tconst valueToName = new Map(members.map((m) => [m.value, m.name]));\n\tconst valueToOrdinal = new Map(values.map((v, i) => [v, i]));\n\treturn {\n\t\t[ENUM_TYPE_HANDLE_BRAND]: true,\n\t\tenumName: name,\n\t\tcodecId: codec.codecId,\n\t\tnativeType: codec.nativeType,\n\t\tenumMembers,\n\t\tvalues,\n\t\tnames,\n\t\tmembers: membersAccessor,\n\t\thas: (v) => valueSet.has(v),\n\t\tnameOf: (v) => valueToName.get(v),\n\t\tordinalOf: (v) => valueToOrdinal.get(v) ?? -1\n\t};\n}\n/**\n* Bind `enumType` to a target's codec typemap. The returned function is the\n* same runtime `enumType`, retyped so member values are constrained to the\n* codec's input type. Target packages call this with their pack's\n* `ExtractCodecTypesFromPack<Pack>` to expose a codec-aware `enumType`.\n*/\nfunction bindEnumType() {\n\treturn enumType;\n}\n/**\n* Returns true when the value is an `EnumTypeHandle` produced by\n* `enumType()`. Used in the lowering pipeline to detect enum handles\n* in field state without importing the brand key at every call site.\n*/\nfunction isEnumTypeHandle(value) {\n\treturn typeof value === \"object\" && value !== null && Reflect.get(value, \"__prismaNextEnumTypeHandle__\") === true;\n}\n//#endregion\nexport { ENUM_TYPE_HANDLE_BRAND, bindEnumType, createEntityHelpersFromNamespace, enumType, isEnumTypeHandle, member, mergeCapabilityMatrices };\n\n//# sourceMappingURL=index.mjs.map"],"mappings":";;;;;;;;;;;;;;;;AAgBA,SAAS,wBAAwB,GAAG,SAAS;CAC5C,MAAM,SAAS,CAAC;CAChB,KAAK,MAAM,UAAU,SAAS;EAC7B,IAAI,WAAW,KAAK,GAAG;EACvB,KAAK,MAAM,CAAC,WAAW,iBAAiB,OAAO,QAAQ,MAAM,GAAG;GAC/D,MAAM,WAAW,OAAO;GACxB,OAAO,aAAa,WAAW;IAC9B,GAAG;IACH,GAAG;GACJ,IAAI,EAAE,GAAG,aAAa;EACvB;CACD;CACA,OAAO;AACR;;;;;;;AASA,SAAS,iCAAiC,WAAW,SAAS,OAAO,CAAC,GAAG;CACxE,MAAM,SAAS,CAAC;CAChB,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,SAAS,GAAG;EACrD,MAAM,cAAc,CAAC,GAAG,MAAM,GAAG;EACjC,IAAI,uBAAuB,KAAK,GAAG;GAClC,OAAO,OAAO,mBAAmB,YAAY,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,KAAK,8BAA8B,aAAa,mCAAmC,EAAE,MAAM;GACtL,UAAU;GACV,QAAQ;GACR,QAAQ;EACT,EAAE,CAAC;EACH,WAAW,IAAI,YAAY;CAC5B;CACA,MAAM,SAAS,OAAO,OAAO,QAAQ,KAAK,MAAM,EAAE,KAAK,CAAC;CACxD,MAAM,QAAQ,OAAO,OAAO,QAAQ,KAAK,MAAM,EAAE,IAAI,CAAC;CACtD,MAAM,cAAc,OAAO,OAAO,QAAQ,KAAK,OAAO;EACrD,MAAM,EAAE;EACR,OAAO,EAAE;CACV,EAAE,CAAC;CACH,MAAM,kBAAkB,OAAO,OAAO,OAAO,YAAY,QAAQ,KAAK,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;CAC/F,MAAM,WAAW,IAAI,IAAI,MAAM;CAC/B,MAAM,cAAc,IAAI,IAAI,QAAQ,KAAK,MAAM,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC;CACjE,MAAM,iBAAiB,IAAI,IAAI,OAAO,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;CAC3D,OAAO;GACL,yBAAyB;EAC1B,UAAU;EACV,SAAS,MAAM;EACf,YAAY,MAAM;EAClB;EACA;EACA;EACA,SAAS;EACT,MAAM,MAAM,SAAS,IAAI,CAAC;EAC1B,SAAS,MAAM,YAAY,IAAI,CAAC;EAChC,YAAY,MAAM,eAAe,IAAI,CAAC,KAAK;CAC5C;AACD;;;;;;;AAOA,SAAS,eAAe;CACvB,OAAO;AACR;;;;;;AAMA,SAAS,iBAAiB,OAAO;CAChC,OAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,QAAQ,IAAI,OAAO,8BAA8B,MAAM;AAC9G"}
|
|
1
|
+
{"version":3,"file":"contract-authoring.mjs","names":[],"sources":["../../../../1-framework/2-authoring/contract/dist/index.mjs"],"sourcesContent":["import { AUTHORING_TYPE_DESCRIPTOR_KINDS, encodeEnumMembers, instantiateAuthoringEntityType, isAuthoringFieldPresetDescriptor, mergeAuthoringNamespaces } from \"@internal/framework-components/authoring\";\nimport { errorEnumCodecNotInPackStack } from \"@internal/errors/control\";\nimport { assertDefined } from \"@internal/utils/assertions\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { blindCast } from \"@internal/utils/casts\";\n//#region src/capability-registry.ts\n/**\n* Deep-merges any number of capability matrices into a single matrix.\n*\n* Merge is purely structural — namespaces and capability flags from later\n* sources overlay earlier ones. Undefined entries are skipped so callers\n* can pass optional sources without pre-filtering.\n*\n* The helper is target-agnostic: it contains no SQL or family-specific\n* knowledge. Higher layers contribute their own capability matrices (for\n* example, a target pack, an extension pack, or the contract author's\n* own `capabilities` block) and call this helper to fold them together.\n*/\nfunction mergeCapabilityMatrices(...sources) {\n\tconst result = {};\n\tfor (const source of sources) {\n\t\tif (source === void 0) continue;\n\t\tfor (const [namespace, capabilities] of Object.entries(source)) {\n\t\t\tconst existing = result[namespace];\n\t\t\tresult[namespace] = existing ? {\n\t\t\t\t...existing,\n\t\t\t\t...capabilities\n\t\t\t} : { ...capabilities };\n\t\t}\n\t}\n\treturn result;\n}\n//#endregion\n//#region src/composed-helpers-scaffolding.ts\n/**\n* Walks an entity-type namespace (after cross-pack merge) and produces the\n* runtime callable surface mirroring its tree shape. Each leaf\n* descriptor becomes a function `(input) => factory(input, ctx)`;\n* nested namespace objects recurse.\n*/\nfunction createEntityHelpersFromNamespace(namespace, options, path = []) {\n\tconst result = {};\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isLeafEntityDescriptor(value)) {\n\t\t\tresult[key] = createEntityHelper(currentPath.join(\".\"), value, options);\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null && !Array.isArray(value)) result[key] = createEntityHelpersFromNamespace(value, options, currentPath);\n\t}\n\treturn result;\n}\nfunction isLeafEntityDescriptor(value) {\n\tif (typeof value !== \"object\" || value === null || value.kind !== \"entity\") return false;\n\tconst discriminator = value.discriminator;\n\treturn typeof discriminator === \"string\" && discriminator.length > 0;\n}\nfunction createEntityHelper(helperPath, descriptor, options) {\n\treturn (...args) => instantiateAuthoringEntityType(helperPath, descriptor, args, options.ctx);\n}\n//#endregion\n//#region src/contract-errors.ts\nfunction contractError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n//#endregion\n//#region src/enum-type.ts\nfunction member(name, value) {\n\treturn {\n\t\tname,\n\t\tvalue: blindCast(value === void 0 ? name : value)\n\t};\n}\nconst ENUM_TYPE_HANDLE_BRAND = \"__prismaNextEnumTypeHandle__\";\nfunction describeValue(value) {\n\tif (typeof value === \"bigint\") return `${value}n`;\n\tif (typeof value === \"number\" && !Number.isFinite(value)) return String(value);\n\ttry {\n\t\treturn JSON.stringify(value) ?? String(value);\n\t} catch {\n\t\treturn String(value);\n\t}\n}\nfunction enumType(name, codec, ...members) {\n\tif (members.length === 0) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): must have at least one member.`, { meta: {\n\t\tenumName: name,\n\t\treason: \"no-members\"\n\t} });\n\tconst seenNames = /* @__PURE__ */ new Set();\n\tconst nameByValue = /* @__PURE__ */ new Map();\n\tfor (const m of members) {\n\t\tif (seenNames.has(m.name)) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): duplicate member name \"${m.name}\". Member names must be unique.`, { meta: {\n\t\t\tenumName: name,\n\t\t\tmember: m.name,\n\t\t\treason: \"duplicate-member-name\"\n\t\t} });\n\t\tseenNames.add(m.name);\n\t\tconst earlier = nameByValue.get(m.value);\n\t\tif (earlier !== void 0) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): members \"${earlier}\" and \"${m.name}\" have the same value ${describeValue(m.value)}. Member values must be unique.`, { meta: {\n\t\t\tenumName: name,\n\t\t\tmembers: [earlier, m.name],\n\t\t\treason: \"duplicate-member-value\"\n\t\t} });\n\t\tnameByValue.set(m.value, m.name);\n\t}\n\tconst values = Object.freeze(members.map((m) => m.value));\n\tconst names = Object.freeze(members.map((m) => m.name));\n\tconst enumMembers = Object.freeze(members.map((m) => ({\n\t\tname: m.name,\n\t\tvalue: m.value\n\t})));\n\tconst membersAccessor = Object.freeze(Object.fromEntries(members.map((m) => [m.name, m.value])));\n\tconst valueSet = new Set(values);\n\tconst valueToName = new Map(members.map((m) => [m.value, m.name]));\n\tconst valueToOrdinal = new Map(values.map((v, i) => [v, i]));\n\treturn {\n\t\t[ENUM_TYPE_HANDLE_BRAND]: true,\n\t\tenumName: name,\n\t\tcodecId: codec.codecId,\n\t\tenumMembers,\n\t\tvalues,\n\t\tnames,\n\t\tmembers: membersAccessor,\n\t\thas: (v) => valueSet.has(v),\n\t\tnameOf: (v) => valueToName.get(v),\n\t\tordinalOf: (v) => valueToOrdinal.get(v) ?? -1\n\t};\n}\n/** Two members of an `enumType` that store the same value, as `CONTRACT.ENUM_INVALID` naming both members and the stored value. */\nfunction duplicateMemberError(enumName, duplicate) {\n\treturn contractError(\"CONTRACT.ENUM_INVALID\", duplicate.earlierStored === void 0 ? `enumType(\"${enumName}\"): members \"${duplicate.earlier}\" and \"${duplicate.later}\" both store ${JSON.stringify(duplicate.stored)}. Member values must be unique as their codec stores them.` : `enumType(\"${enumName}\"): members \"${duplicate.earlier}\" and \"${duplicate.later}\" store ${JSON.stringify(duplicate.earlierStored)} and ${JSON.stringify(duplicate.stored)}, which the database holds equal. Member values must be unique as their data type compares them.`, { meta: {\n\t\tenumName,\n\t\tmembers: [duplicate.earlier, duplicate.later],\n\t\treason: \"duplicate-member-value\"\n\t} });\n}\n/**\n* Bind `enumType` to a target's codec typemap. The returned function is the\n* same runtime `enumType`, retyped so member values are constrained to the\n* codec's input type. Target packages call this with their pack's\n* `ExtractCodecTypesFromPack<Pack>` to expose a codec-aware `enumType`.\n*/\nfunction bindEnumType() {\n\treturn enumType;\n}\n/**\n* Returns true when the value is an `EnumTypeHandle` produced by\n* `enumType()`. Used in the lowering pipeline to detect enum handles\n* in field state without importing the brand key at every call site.\n*/\nfunction isEnumTypeHandle(value) {\n\treturn typeof value === \"object\" && value !== null && Reflect.get(value, \"__prismaNextEnumTypeHandle__\") === true;\n}\n//#endregion\n//#region src/enum-members.ts\nfunction enumMemberError(handle, problem, storedBy) {\n\tconst { enumName, codecId } = handle;\n\tswitch (problem.kind) {\n\t\tcase \"codec-not-for-enums\": return contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${enumName}\"): an enum cannot use the codec ${codecId}. ${problem.refusal}`, {\n\t\t\tfix: \"Type the enum with another codec.\",\n\t\t\tmeta: {\n\t\t\t\tenumName,\n\t\t\t\tcodecId,\n\t\t\t\treason: \"codec-not-for-enums\"\n\t\t\t}\n\t\t});\n\t\tcase \"codec-missing\": return errorEnumCodecNotInPackStack({ codecId });\n\t\tcase \"codec-refused-member\": return contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${enumName}\") member \"${problem.member}\" has a value its codec ${codecId} refuses: ${problem.reason}`, {\n\t\t\tfix: \"Give the member a value the codec takes, or type the enum with a codec that takes it.\",\n\t\t\tcause: problem.cause,\n\t\t\tmeta: {\n\t\t\t\tenumName,\n\t\t\t\tmember: problem.member,\n\t\t\t\tcodecId,\n\t\t\t\treason: \"codec-refused-member\"\n\t\t\t}\n\t\t});\n\t\tcase \"member-not-stored-as-written\": return contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${enumName}\"): member \"${problem.member}\" is written ${problem.written}, but ${storedBy} stores ${JSON.stringify(problem.stored)}. Write the member as ${problem.writeAs}.`, { meta: {\n\t\t\tenumName,\n\t\t\tmember: problem.member,\n\t\t\treason: \"member-not-stored-as-written\"\n\t\t} });\n\t\tcase \"duplicate-member-value\": return duplicateMemberError(enumName, problem);\n\t}\n}\n/**\n* Each member of an `enumType` in the form its codec stores it, which is how the contract holds it. Throws the first problem `encodeEnumMembers` finds: `CONTRACT.ENUM_CODEC_NOT_IN_PACK_STACK` for a codec no pack provides, and `CONTRACT.ENUM_INVALID` for the others. `storedBy` names what stores the value in the family's terms, such as `the column`.\n*/\nfunction encodeEnumTypeMembers(handle, codecLookup, storedBy) {\n\tconst encoded = encodeEnumMembers(handle, codecLookup);\n\tif (encoded.ok) return encoded.value;\n\tconst [problem] = encoded.failure;\n\tassertDefined(problem, \"encodeEnumMembers fails with at least one problem\");\n\tthrow enumMemberError(handle, problem, storedBy);\n}\n//#endregion\n//#region src/field-preset-helpers.ts\nconst blockedSegments = /* @__PURE__ */ new Set([\n\t\"__proto__\",\n\t\"constructor\",\n\t\"prototype\"\n]);\nfunction assertSafeAuthoringHelperKey(key, path) {\n\tif (blockedSegments.has(key)) throw contractError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Invalid authoring helper \"${[...path, key].join(\".\")}\". Helper path segments must not use \"${key}\".`, { meta: {\n\t\thelperPath: [...path, key].join(\".\"),\n\t\tsegment: key\n\t} });\n}\n/**\n* Walks a field-preset namespace and produces the callable surface mirroring its tree shape. Each leaf descriptor becomes the helper `createLeafHelper` returns; nested namespaces recurse.\n*/\nfunction createFieldHelpersFromNamespace(namespace, createLeafHelper, path = []) {\n\tconst helpers = {};\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tassertSafeAuthoringHelperKey(key, path);\n\t\tconst currentPath = [...path, key];\n\t\tif (isAuthoringFieldPresetDescriptor(value)) {\n\t\t\thelpers[key] = createLeafHelper({\n\t\t\t\thelperPath: currentPath.join(\".\"),\n\t\t\t\tdescriptor: value\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\thelpers[key] = createFieldHelpersFromNamespace(value, createLeafHelper, currentPath);\n\t}\n\treturn helpers;\n}\nfunction isNonEmptyRecord(value) {\n\treturn typeof value === \"object\" && value !== null && Object.keys(value).length > 0;\n}\nconst descriptorKindByNamespace = {\n\ttype: {\n\t\tdescriptorKind: AUTHORING_TYPE_DESCRIPTOR_KINDS,\n\t\tlabel: \"type\"\n\t},\n\tfield: {\n\t\tdescriptorKind: \"fieldPreset\",\n\t\tlabel: \"field\"\n\t},\n\tentityTypes: {\n\t\tdescriptorKind: \"entity\",\n\t\tlabel: \"entity\"\n\t}\n};\n/**\n* Merges one authoring namespace (`type`, `field` or `entityTypes`) across the family, target and extension packs, in order. A duplicate helper path across packs throws.\n*/\nfunction composePackAuthoringNamespace(components, key) {\n\tconst { descriptorKind, label } = descriptorKindByNamespace[key];\n\tconst merged = {};\n\tfor (const component of components) {\n\t\tconst namespace = component.authoring?.[key];\n\t\tif (isNonEmptyRecord(namespace)) mergeAuthoringNamespaces(merged, namespace, [], descriptorKind, label);\n\t}\n\treturn blindCast(merged);\n}\n//#endregion\n//#region src/relation-nullability.ts\n/**\n* The one rule for whether a to-one relation may be absent. The side that holds the reference\n* (in SQL, the foreign key) is nullable exactly when one of its local fields is; the other side\n* is always nullable, because nothing in storage guarantees the related record exists. A\n* declaration that disagrees is reported as a contradiction; `nullable` is always the derived\n* value.\n*/\nfunction resolveToOneRelationNullable(input) {\n\tconst nullable = input.ownsReference ? input.localFieldNullability.some(Boolean) : true;\n\tconst declared = input.declaredNullable;\n\tif (declared === void 0 || declared === nullable) return {\n\t\tnullable,\n\t\tcontradiction: void 0\n\t};\n\treturn {\n\t\tnullable,\n\t\tcontradiction: declared ? \"declared-optional\" : \"declared-required\"\n\t};\n}\nfunction isToOneReference(relation) {\n\treturn \"on\" in relation && (relation.cardinality === \"1:1\" || relation.cardinality === \"N:1\");\n}\n/**\n* Fills in `nullable` on every same-space to-one relation that lacks it from the ownership and\n* local-field nullability the lookup reports. A cross-space relation defaults to nullable.\n* Relations that already carry the flag are left as they are.\n*/\nfunction withDerivedToOneRelationNullability(domain, localFieldNullability) {\n\tconst namespaces = Object.fromEntries(Object.entries(domain.namespaces).map(([namespaceId, namespace]) => [namespaceId, withDerivedNamespace(namespaceId, namespace, localFieldNullability)]));\n\treturn {\n\t\t...domain,\n\t\tnamespaces\n\t};\n}\nfunction withDerivedNamespace(namespaceId, namespace, localFieldNullability) {\n\tconst models = Object.fromEntries(Object.entries(namespace.models).map(([modelName, model]) => [modelName, withDerivedModel(namespaceId, modelName, model, localFieldNullability)]));\n\treturn {\n\t\t...namespace,\n\t\tmodels\n\t};\n}\nfunction withDerivedModel(namespaceId, modelName, model, localFieldNullability) {\n\tconst relations = Object.fromEntries(Object.entries(model.relations ?? {}).map(([relationName, relation]) => {\n\t\tif (!isToOneReference(relation) || relation.nullable !== void 0) return [relationName, relation];\n\t\tconst nullable = relation.to.space !== void 0 ? true : resolveToOneRelationNullable({\n\t\t\tdeclaredNullable: void 0,\n\t\t\t...localFieldNullability({\n\t\t\t\tnamespaceId,\n\t\t\t\tmodelName,\n\t\t\t\tmodel,\n\t\t\t\trelation\n\t\t\t})\n\t\t}).nullable;\n\t\treturn [relationName, {\n\t\t\t...relation,\n\t\t\tnullable\n\t\t}];\n\t}));\n\treturn {\n\t\t...model,\n\t\trelations\n\t};\n}\n//#endregion\nexport { ENUM_TYPE_HANDLE_BRAND, assertSafeAuthoringHelperKey, bindEnumType, composePackAuthoringNamespace, createEntityHelpersFromNamespace, createFieldHelpersFromNamespace, encodeEnumTypeMembers, enumType, isEnumTypeHandle, member, mergeCapabilityMatrices, resolveToOneRelationNullable, withDerivedToOneRelationNullability };\n\n//# sourceMappingURL=index.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;AAkBA,SAAS,wBAAwB,GAAG,SAAS;CAC5C,MAAM,SAAS,CAAC;CAChB,KAAK,MAAM,UAAU,SAAS;EAC7B,IAAI,WAAW,KAAK,GAAG;EACvB,KAAK,MAAM,CAAC,WAAW,iBAAiB,OAAO,QAAQ,MAAM,GAAG;GAC/D,MAAM,WAAW,OAAO;GACxB,OAAO,aAAa,WAAW;IAC9B,GAAG;IACH,GAAG;GACJ,IAAI,EAAE,GAAG,aAAa;EACvB;CACD;CACA,OAAO;AACR;;;;;;;AASA,SAAS,iCAAiC,WAAW,SAAS,OAAO,CAAC,GAAG;CACxE,MAAM,SAAS,CAAC;CAChB,KAAK,MAAM,CAAC,KAAK,UA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U,MAAM,CAAC,CAAC,KAAK,CAAC,WAAW,WAAW,CAAC,WAAW,iBAAiB,aAAa,WAAW,OAAO,qBAAqB,CAAC,CAAC,CAAC;CACnL,OAAO;EACN,GAAG;EACH;CACD;AACD;AACA,SAAS,iBAAiB,aAAa,WAAW,OAAO,uBAAuB;CAC/E,MAAM,YAAY,OAAO,YAAY,OAAO,QAAQ,MAAM,aAAa,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,cAAc;EAC5G,IAAI,CAAC,iBAAiB,QAAQ,KAAK,SAAS,aAAa,KAAK,GAAG,OAAO,CAAC,cAAc,QAAQ;EAC/F,MAAM,WAAW,SAAS,GAAG,UAAU,KAAK,IAAI,OAAO,6BAA6B;GACnF,kBAAkB,KAAK;GACvB,GAAG,sBAAsB;IACxB;IACA;IACA;IACA;GACD,CAAC;EACF,CAAC,CAAC,CAAC;EACH,OAAO,CAAC,cAAc;GACrB,GAAG;GACH;EACD,CAAC;CACF,CAAC,CAAC;CACF,OAAO;EACN,GAAG;EACH;CACD;AACD"}
|
package/dist/{contract-types-CkdMH7F7-9EHXSwbH.d.mts → contract-types-DEIEpzU_-DvAVuBr5.d.mts}
RENAMED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
//#region ../../../1-framework/0-foundation/contract/dist/contract-types-
|
|
1
|
+
import { E as CrossReference, G as ProfileHashBase, M as ExecutionMutationDefault, Y as StorageBase, j as ExecutionHashBase, n as ApplicationDomain, w as ContractValueObject } from "./domain-envelope-CN721GnP-4huRt7Wc.mjs";
|
|
2
|
+
//#region ../../../1-framework/0-foundation/contract/dist/contract-types-DEIEpzU_.d.mts
|
|
3
3
|
//#region src/control-policy.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Governance posture for a storage-plane node or for the contract as a whole.
|
|
6
6
|
*
|
|
7
|
-
* - `managed` — Prisma
|
|
8
|
-
* - `tolerated` — node was found in the database but is not schema-managed; Prisma
|
|
7
|
+
* - `managed` — Prisma 8 owns the full lifecycle (DDL, migrations, verification).
|
|
8
|
+
* - `tolerated` — node was found in the database but is not schema-managed; Prisma 8
|
|
9
9
|
* leaves it untouched while tracking its existence.
|
|
10
|
-
* - `external` — node is owned by an external system; Prisma
|
|
11
|
-
* - `observed` — read-only access; Prisma
|
|
10
|
+
* - `external` — node is owned by an external system; Prisma 8 never emits DDL for it.
|
|
11
|
+
* - `observed` — read-only access; Prisma 8 does not write to or migrate the node.
|
|
12
12
|
*/
|
|
13
13
|
type ControlPolicy = 'managed' | 'tolerated' | 'external' | 'observed';
|
|
14
14
|
/**
|
|
@@ -20,6 +20,12 @@ type ControlPolicy = 'managed' | 'tolerated' | 'external' | 'observed';
|
|
|
20
20
|
* and can be called by any consumer (verifier, planner, etc.) without importing IR classes.
|
|
21
21
|
*/
|
|
22
22
|
declare function effectiveControlPolicy(nodeControl: ControlPolicy | undefined, defaultControlPolicy: ControlPolicy | undefined): ControlPolicy;
|
|
23
|
+
/**
|
|
24
|
+
* The control policy that governs one storage object: what a planner may change in it and, in MongoDB, whether its contract describes a validator and how the verifier grades it. An `external` contract default is a floor that no object's own policy can raise ([ADR 224](../../../../../docs/architecture%20docs/adrs/ADR%20224%20-%20Control%20Policy%20%E2%80%94%20framework-locked%20vocabulary%20and%20family-owned%20dispatch.md)); otherwise this is {@link effectiveControlPolicy}.
|
|
25
|
+
*/
|
|
26
|
+
declare function governingControlPolicy(subject: {
|
|
27
|
+
readonly explicitNodeControlPolicy?: ControlPolicy | undefined;
|
|
28
|
+
} | undefined, defaultControlPolicy: ControlPolicy | undefined): ControlPolicy;
|
|
23
29
|
//#endregion
|
|
24
30
|
//#region src/contract-types.d.ts
|
|
25
31
|
/**
|
|
@@ -73,5 +79,5 @@ type NamespaceValueObjectsOf<TNamespace> = TNamespace extends {
|
|
|
73
79
|
/** Value-object map when the contract declares exactly one domain namespace. */
|
|
74
80
|
type ContractValueObjectDefinitions<TContract extends Contract> = NamespaceValueObjectsOf<TContract['domain']['namespaces'][ExactlyOneNamespace<TContract['domain']['namespaces']>]> extends (infer Projected) ? Projected extends Record<string, ContractValueObject> ? Projected : Record<never, never> : Record<never, never>;
|
|
75
81
|
//#endregion
|
|
76
|
-
export { effectiveControlPolicy as a, ControlPolicy as i, ContractExecutionSection as n, ContractValueObjectDefinitions as r, Contract as t };
|
|
77
|
-
//# sourceMappingURL=contract-types-
|
|
82
|
+
export { effectiveControlPolicy as a, ControlPolicy as i, ContractExecutionSection as n, governingControlPolicy as o, ContractValueObjectDefinitions as r, Contract as t };
|
|
83
|
+
//# sourceMappingURL=contract-types-DEIEpzU_-DvAVuBr5.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract-types-DEIEpzU_-DvAVuBr5.d.mts","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/contract-types-DEIEpzU_.d.mts"],"mappings":";;;;;;;;;;;;KAWK;;;;;;;;;iBASY,uBAAuB,aAAa,2BAA2B,sBAAsB,4BAA4B;;;;iBAIjH,uBAAuB;WAC7B,4BAA4B;eACxB,sBAAsB,4BAA4B;;;;;;;;;;;;KAY5D,yBAAyB;WACnB,eAAe,kBAAkB;WACjC;aACE,UAAU,cAAc;;;;;;;;;;;;;;;;UAgB3B,SAAS,iBAAiB,cAAc;WACvC;WACA;WACA,OAAO,eAAe;;;;WAItB,QAAQ;WACR,SAAS;WACT,cAAc,eAAe;WAC7B,YAAY;WACZ,YAAY;WACZ,aAAa;WACb,MAAM;WACN,uBAAuB;;KAE7B,oBAAoB,UAAU,iCAAiC,iBAAiB,mBAAmB,YAAY,YAAY,QAAQ;KACnI,wBAAwB,cAAc;WAChC,qBAAqB;IAC5B,WAAW,eAAe,uBAAuB,KAAK,uBAAuB;;KAE5E,+BAA+B,kBAAkB,YAAY,wBAAwB,kCAAkC,oBAAoB,oDAAoD,aAAa,kBAAkB,eAAe,uBAAuB,YAAY,uBAAuB"}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
//#region ../../../1-framework/0-foundation/contract/dist/contract-validation-error-
|
|
1
|
+
//#region ../../../1-framework/0-foundation/contract/dist/contract-validation-error-CAnTGhkt.mjs
|
|
2
2
|
var ContractValidationError = class extends Error {
|
|
3
3
|
code = "CONTRACT.VALIDATION_FAILED";
|
|
4
4
|
phase;
|
|
5
|
-
|
|
5
|
+
/** What the refusal is about, for a caller to report, such as the columns whose defaults were refused. */
|
|
6
|
+
meta;
|
|
7
|
+
constructor(message, phase, meta) {
|
|
6
8
|
super(message);
|
|
7
9
|
this.name = "ContractValidationError";
|
|
8
10
|
this.phase = phase;
|
|
11
|
+
this.meta = meta;
|
|
9
12
|
}
|
|
10
13
|
};
|
|
11
14
|
//#endregion
|
|
12
15
|
export { ContractValidationError as t };
|
|
13
16
|
|
|
14
|
-
//# sourceMappingURL=contract-validation-error-
|
|
17
|
+
//# sourceMappingURL=contract-validation-error-CAnTGhkt-DSnujRaK.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract-validation-error-CAnTGhkt-DSnujRaK.mjs","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/contract-validation-error-CAnTGhkt.mjs"],"sourcesContent":["//#region src/contract-validation-error.ts\nvar ContractValidationError = class extends Error {\n\tcode = \"CONTRACT.VALIDATION_FAILED\";\n\tphase;\n\t/** What the refusal is about, for a caller to report, such as the columns whose defaults were refused. */\n\tmeta;\n\tconstructor(message, phase, meta) {\n\t\tsuper(message);\n\t\tthis.name = \"ContractValidationError\";\n\t\tthis.phase = phase;\n\t\tthis.meta = meta;\n\t}\n};\n//#endregion\nexport { ContractValidationError as t };\n\n//# sourceMappingURL=contract-validation-error-CAnTGhkt.mjs.map"],"mappings":";AACA,IAAI,0BAA0B,cAAc,MAAM;CACjD,OAAO;CACP;;CAEA;CACA,YAAY,SAAS,OAAO,MAAM;EACjC,MAAM,OAAO;EACb,KAAK,OAAO;EACZ,KAAK,QAAQ;EACb,KAAK,OAAO;CACb;AACD"}
|
package/dist/{contract-validation-error-R7cMoK04.d.mts → contract-validation-error-D1QAeOh5.d.mts}
RENAMED
|
@@ -4,8 +4,10 @@ type ContractValidationPhase = 'structural' | 'domain' | 'storage';
|
|
|
4
4
|
declare class ContractValidationError extends Error {
|
|
5
5
|
readonly code = "CONTRACT.VALIDATION_FAILED";
|
|
6
6
|
readonly phase: ContractValidationPhase;
|
|
7
|
-
|
|
7
|
+
/** What the refusal is about, for a caller to report, such as the columns whose defaults were refused. */
|
|
8
|
+
readonly meta: Readonly<Record<string, unknown>> | undefined;
|
|
9
|
+
constructor(message: string, phase: ContractValidationPhase, meta?: Readonly<Record<string, unknown>>);
|
|
8
10
|
}
|
|
9
11
|
//#endregion
|
|
10
12
|
export { ContractValidationPhase as n, ContractValidationError as t };
|
|
11
|
-
//# sourceMappingURL=contract-validation-error-
|
|
13
|
+
//# sourceMappingURL=contract-validation-error-D1QAeOh5.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contract-validation-error-D1QAeOh5.d.mts","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/contract-validation-error.d.mts"],"mappings":";;KACK;cACS,gCAAgC;WACnC;WACA,OAAO;;WAEP,MAAM,SAAS;EACxB,YAAY,iBAAiB,OAAO,yBAAyB,OAAO,SAAS"}
|
package/dist/contract.d.mts
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { a as effectiveControlPolicy, i as ControlPolicy, n as ContractExecutionSection, r as ContractValueObjectDefinitions, t as Contract } from "./contract-types-
|
|
1
|
+
import { $ as UnionFieldType, A as EmbedRelationKeys, B as JsonValue, C as ContractToOneRelation, D as CrossReferenceSchema, E as CrossReference, F as ExecutionSection, G as ProfileHashBase, H as ModelStorageBase, I as Expr, J as Source, K as ReferenceRelationKeys, L as FieldType, M as ExecutionMutationDefault, N as ExecutionMutationDefaultPhases, O as DocCollection, P as ExecutionMutationDefaultValue, Q as StorageNamespace, R as GeneratedValueSpec, S as ContractToManyRelation, T as ContractWithDomain, U as NamespaceId, V as LedgerEntryRecord, W as PlanMeta, X as StorageEntitySlot, Y as StorageBase, Z as StorageHashBase, _ as ContractNonJunctionRelation, a as ColumnDefault, at as executionHash, b as ContractRelationOn, c as ContractDiscriminator, ct as isExecutionMutationDefaultValue, d as ContractField, et as ValueObjectFieldType, f as ContractFieldType, g as ContractModelBase, h as ContractModel, i as Brand, it as crossRef, j as ExecutionHashBase, k as DocIndex, l as ContractEmbedRelation, lt as profileHash, m as ContractMarkerRecord, n as ApplicationDomain, nt as asNamespaceId, o as ColumnDefaultLiteralInputValue, ot as isColumnDefault, p as ContractManyToManyRelation, q as ScalarFieldType, r as ApplicationDomainNamespace, rt as coreHash, s as ColumnDefaultLiteralValue, st as isColumnDefaultLiteralInputValue, t as $, tt as ValueSetRef, u as ContractEnum, v as ContractReferenceRelation, w as ContractValueObject, x as ContractRelationThrough, y as ContractRelation, z as JsonPrimitive } from "./domain-envelope-CN721GnP-4huRt7Wc.mjs";
|
|
2
|
+
import { a as effectiveControlPolicy, i as ControlPolicy, n as ContractExecutionSection, o as governingControlPolicy, r as ContractValueObjectDefinitions, t as Contract } from "./contract-types-DEIEpzU_-DvAVuBr5.mjs";
|
|
3
3
|
import { n as soleDomainNamespaceId, t as UNBOUND_DOMAIN_NAMESPACE_ID } from "./default-namespace-D5X_k6hJ-GH8P1ror.mjs";
|
|
4
|
-
import { n as resolveDomainModel, t as ResolvedDomainModel } from "./resolve-domain-model-
|
|
5
|
-
import {
|
|
6
|
-
import { a as canonicalizeContract, i as StorageSort, n as PreserveEmptyPredicate, o as canonicalizeContractToObject, r as SerializeContract, t as CanonicalizeContractOptions } from "./canonicalization-
|
|
7
|
-
import { n as
|
|
4
|
+
import { n as resolveDomainModel, t as ResolvedDomainModel } from "./resolve-domain-model-BNr1glea-BLuR-phK.mjs";
|
|
5
|
+
import { a as ParameterizedOutputType, c as ValueObjectTypesFromDomain, d as domainValueObjectsAtDefaultNamespace, i as FieldTypesFromDomain, l as ValueTypeSide, n as ContractExecutionSectionSchema, o as ParameterizedOutputTypesFunction, r as EnumMemberValueType, s as StoredValueType, t as ApplyParameterizedOutputTypes, u as domainModelsAtDefaultNamespace } from "./types-GNXJ7xW2.mjs";
|
|
6
|
+
import { a as canonicalizeContract, i as StorageSort, n as PreserveEmptyPredicate, o as canonicalizeContractToObject, r as SerializeContract, t as CanonicalizeContractOptions } from "./canonicalization-CyrrXGmj-CeKUkht1.mjs";
|
|
7
|
+
import { i as computeStorageHash, n as computeExecutionHash, r as computeProfileHash, t as buildExecutionSection } from "./hashing-D-DHz0zl.mjs";
|
|
8
8
|
import { t as isPlainRecord } from "./is-plain-record-C9BWiqcw.mjs";
|
|
9
|
-
import { t as applySpecifierDefaultControlPolicy } from "./apply-specifier-default-control-policy-
|
|
10
|
-
import { n as ContractValidationPhase, t as ContractValidationError } from "./contract-validation-error-
|
|
11
|
-
import { a as
|
|
12
|
-
import { a as compareByNameProperty, c as
|
|
13
|
-
import { n as DomainModelShape, r as validateContractDomain, t as DomainContractShape } from "./validate-domain-
|
|
14
|
-
|
|
9
|
+
import { t as applySpecifierDefaultControlPolicy } from "./apply-specifier-default-control-policy-Dlz0iwnK.mjs";
|
|
10
|
+
import { n as ContractValidationPhase, t as ContractValidationError } from "./contract-validation-error-D1QAeOh5.mjs";
|
|
11
|
+
import { a as EnumMemberCodecFor, c as NamespaceEnumAccessors, d as buildNamespacedEnums, f as createEnumAccessor, i as EnumMemberCodec, l as NamespacedEnums, n as EnumAccessor, o as EnumMemberNames, r as EnumEntriesToAccessors, s as EnumValues, t as ContractEnumAccessor, u as buildEnumsMapForNamespace } from "./enum-accessor-2OZgavDX.mjs";
|
|
12
|
+
import { a as compareByNameProperty, c as createStorageSort, i as PathSegment$1, l as matchesPathPattern, n as PathPattern, o as compareCodeUnits, r as PathSegment, s as createPreserveEmptyPredicate, t as NamedArraySortTarget } from "./hashing-utils-DiGHKd3b.mjs";
|
|
13
|
+
import { n as DomainModelShape, r as validateContractDomain, t as DomainContractShape } from "./validate-domain-B5kmlBFB.mjs";
|
|
14
|
+
import { t as validateContractOnce } from "./validate-once-gfCOHsDh.mjs";
|
|
15
|
+
export { type $, type ApplicationDomain, type ApplicationDomainNamespace, type ApplyParameterizedOutputTypes, type Brand, type CanonicalizeContractOptions, type ColumnDefault, type ColumnDefaultLiteralInputValue, type ColumnDefaultLiteralValue, type Contract, type ContractDiscriminator, type ContractEmbedRelation, type ContractEnum, type ContractEnumAccessor, type ContractExecutionSection, ContractExecutionSectionSchema, type ContractField, type ContractFieldType, type ContractManyToManyRelation, type ContractMarkerRecord, type ContractModel, type ContractModelBase, type ContractNonJunctionRelation, type ContractReferenceRelation, type ContractRelation, type ContractRelationOn, type ContractRelationThrough, type ContractToManyRelation, type ContractToOneRelation, ContractValidationError, type ContractValidationPhase, type ContractValueObject, type ContractValueObjectDefinitions, type ContractWithDomain, type ControlPolicy, type CrossReference, CrossReferenceSchema, type DocCollection, type DocIndex, type DomainContractShape, type DomainModelShape, type EmbedRelationKeys, type EnumAccessor, type EnumEntriesToAccessors, type EnumMemberCodec, type EnumMemberCodecFor, type EnumMemberNames, type EnumMemberValueType, type EnumValues, type ExecutionHashBase, type ExecutionMutationDefault, type ExecutionMutationDefaultPhases, type ExecutionMutationDefaultValue, type ExecutionSection, type Expr, type FieldType, type FieldTypesFromDomain, type GeneratedValueSpec, type JsonPrimitive, type JsonValue, type LedgerEntryRecord, type ModelStorageBase, type NamedArraySortTarget, type NamespaceEnumAccessors, type NamespaceId, type NamespacedEnums, type ParameterizedOutputType, type ParameterizedOutputTypesFunction, type PathPattern, type PlanMeta, type PathSegment as PreserveEmptyPathSegment, type PreserveEmptyPredicate, type ProfileHashBase, type ReferenceRelationKeys, type ResolvedDomainModel, type ScalarFieldType, type SerializeContract, type Source, type StorageBase, type StorageEntitySlot, type StorageHashBase, type StorageNamespace, type StorageSort, type PathSegment$1 as StorageSortPathSegment, type StoredValueType, UNBOUND_DOMAIN_NAMESPACE_ID, type UnionFieldType, type ValueObjectFieldType, type ValueObjectTypesFromDomain, type ValueSetRef, type ValueTypeSide, applySpecifierDefaultControlPolicy, asNamespaceId, buildEnumsMapForNamespace, buildExecutionSection, buildNamespacedEnums, canonicalizeContract, canonicalizeContractToObject, compareByNameProperty, compareCodeUnits, computeExecutionHash, computeProfileHash, computeStorageHash, coreHash, createEnumAccessor, createPreserveEmptyPredicate, createStorageSort, crossRef, domainModelsAtDefaultNamespace, domainValueObjectsAtDefaultNamespace, effectiveControlPolicy, executionHash, governingControlPolicy, isColumnDefault, isColumnDefaultLiteralInputValue, isExecutionMutationDefaultValue, isPlainRecord, matchesPathPattern, profileHash, resolveDomainModel, soleDomainNamespaceId, validateContractDomain, validateContractOnce };
|
package/dist/contract.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as applySpecifierDefaultControlPolicy } from "./apply-specifier-default-control-policy-CsYHsfTF.mjs";
|
|
2
|
-
import { t as ContractValidationError } from "./contract-validation-error-
|
|
3
|
-
import { r as soleDomainNamespaceId, t as UNBOUND_DOMAIN_NAMESPACE_ID } from "./default-namespace-D4vCwkXg-
|
|
4
|
-
import { n as buildNamespacedEnums, r as createEnumAccessor, t as buildEnumsMapForNamespace } from "./enum-accessor-
|
|
5
|
-
import { n as matchesPathPattern, t as createPreserveEmptyPredicate } from "./canonicalization-path-match-CNgHuwM_-CCPBeUuk.mjs";
|
|
2
|
+
import { t as ContractValidationError } from "./contract-validation-error-CAnTGhkt-DSnujRaK.mjs";
|
|
3
|
+
import { r as soleDomainNamespaceId, t as UNBOUND_DOMAIN_NAMESPACE_ID } from "./default-namespace-D4vCwkXg-BEZbN38y.mjs";
|
|
4
|
+
import { n as buildNamespacedEnums, r as createEnumAccessor, t as buildEnumsMapForNamespace } from "./enum-accessor-B-A2wNok.mjs";
|
|
6
5
|
import { t as isPlainRecord } from "./is-plain-record-CUofyVQ7-DWEzdhIx.mjs";
|
|
7
|
-
import { a as
|
|
8
|
-
import { n as
|
|
6
|
+
import { a as matchesPathPattern, i as createStorageSort, n as compareCodeUnits, r as createPreserveEmptyPredicate, t as compareByNameProperty } from "./canonicalization-path-match-D88xLEq6-BFQC39ZG.mjs";
|
|
7
|
+
import { a as computeProfileHash, i as computeExecutionHash, n as canonicalizeContract, o as computeStorageHash, r as canonicalizeContractToObject, t as buildExecutionSection } from "./hashing-CLRfNAxh.mjs";
|
|
9
8
|
import { t as resolveDomainModel } from "./resolve-domain-model-BovPAsW2-8rwyzjxp.mjs";
|
|
10
9
|
import { t as asNamespaceId } from "./namespace-id-asbWpwMw-3yxn-tRe.mjs";
|
|
11
|
-
import { a as
|
|
12
|
-
import { t as validateContractDomain } from "./validate-domain-
|
|
13
|
-
|
|
10
|
+
import { a as domainModelsAtDefaultNamespace, c as executionHash, d as isColumnDefaultLiteralInputValue, f as isExecutionMutationDefaultValue, i as crossRef, l as governingControlPolicy, n as CrossReferenceSchema, o as domainValueObjectsAtDefaultNamespace, p as profileHash, r as coreHash, s as effectiveControlPolicy, t as ContractExecutionSectionSchema, u as isColumnDefault } from "./types-B8ULzMAX.mjs";
|
|
11
|
+
import { t as validateContractDomain } from "./validate-domain-CbXHDYpF.mjs";
|
|
12
|
+
import { t as validateContractOnce } from "./validate-once-D-IwXHYP.mjs";
|
|
13
|
+
export { ContractExecutionSectionSchema, ContractValidationError, CrossReferenceSchema, UNBOUND_DOMAIN_NAMESPACE_ID, applySpecifierDefaultControlPolicy, asNamespaceId, buildEnumsMapForNamespace, buildExecutionSection, buildNamespacedEnums, canonicalizeContract, canonicalizeContractToObject, compareByNameProperty, compareCodeUnits, computeExecutionHash, computeProfileHash, computeStorageHash, coreHash, createEnumAccessor, createPreserveEmptyPredicate, createStorageSort, crossRef, domainModelsAtDefaultNamespace, domainValueObjectsAtDefaultNamespace, effectiveControlPolicy, executionHash, governingControlPolicy, isColumnDefault, isColumnDefaultLiteralInputValue, isExecutionMutationDefaultValue, isPlainRecord, matchesPathPattern, profileHash, resolveDomainModel, soleDomainNamespaceId, validateContractDomain, validateContractOnce };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as applySpecifierDefaultControlPolicy } from "./apply-specifier-default-control-policy-
|
|
1
|
+
import { t as applySpecifierDefaultControlPolicy } from "./apply-specifier-default-control-policy-Dlz0iwnK.mjs";
|
|
2
2
|
export { applySpecifierDefaultControlPolicy };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as ContractValidationPhase, t as ContractValidationError } from "./contract-validation-error-
|
|
1
|
+
import { n as ContractValidationPhase, t as ContractValidationError } from "./contract-validation-error-D1QAeOh5.mjs";
|
|
2
2
|
export { ContractValidationError, type ContractValidationPhase };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ContractValidationError } from "./contract-validation-error-
|
|
1
|
+
import { t as ContractValidationError } from "./contract-validation-error-CAnTGhkt-DSnujRaK.mjs";
|
|
2
2
|
export { ContractValidationError };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { r as soleDomainNamespaceId, t as UNBOUND_DOMAIN_NAMESPACE_ID } from "./default-namespace-D4vCwkXg-
|
|
1
|
+
import { r as soleDomainNamespaceId, t as UNBOUND_DOMAIN_NAMESPACE_ID } from "./default-namespace-D4vCwkXg-BEZbN38y.mjs";
|
|
2
2
|
export { UNBOUND_DOMAIN_NAMESPACE_ID, soleDomainNamespaceId };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { type ContractEnumAccessor, type EnumAccessor, type EnumEntriesToAccessors, type EnumMemberNames, type EnumValues, type NamespaceEnumAccessors, type NamespacedEnums, buildEnumsMapForNamespace, buildNamespacedEnums, createEnumAccessor };
|
|
1
|
+
import { a as EnumMemberCodecFor, c as NamespaceEnumAccessors, d as buildNamespacedEnums, f as createEnumAccessor, i as EnumMemberCodec, l as NamespacedEnums, n as EnumAccessor, o as EnumMemberNames, r as EnumEntriesToAccessors, s as EnumValues, t as ContractEnumAccessor, u as buildEnumsMapForNamespace } from "./enum-accessor-2OZgavDX.mjs";
|
|
2
|
+
export { type ContractEnumAccessor, type EnumAccessor, type EnumEntriesToAccessors, type EnumMemberCodec, type EnumMemberCodecFor, type EnumMemberNames, type EnumValues, type NamespaceEnumAccessors, type NamespacedEnums, buildEnumsMapForNamespace, buildNamespacedEnums, createEnumAccessor };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as buildNamespacedEnums, r as createEnumAccessor, t as buildEnumsMapForNamespace } from "./enum-accessor-
|
|
1
|
+
import { n as buildNamespacedEnums, r as createEnumAccessor, t as buildEnumsMapForNamespace } from "./enum-accessor-B-A2wNok.mjs";
|
|
2
2
|
export { buildEnumsMapForNamespace, buildNamespacedEnums, createEnumAccessor };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as compareByNameProperty, c as
|
|
2
|
-
export { type NamedArraySortTarget, type PathPattern, type PathSegment as PreserveEmptyPathSegment, type PathSegment$1 as StorageSortPathSegment, compareByNameProperty, createPreserveEmptyPredicate, createStorageSort, matchesPathPattern };
|
|
1
|
+
import { a as compareByNameProperty, c as createStorageSort, i as PathSegment$1, l as matchesPathPattern, n as PathPattern, o as compareCodeUnits, r as PathSegment, s as createPreserveEmptyPredicate, t as NamedArraySortTarget } from "./hashing-utils-DiGHKd3b.mjs";
|
|
2
|
+
export { type NamedArraySortTarget, type PathPattern, type PathSegment as PreserveEmptyPathSegment, type PathSegment$1 as StorageSortPathSegment, compareByNameProperty, compareCodeUnits, createPreserveEmptyPredicate, createStorageSort, matchesPathPattern };
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export { compareByNameProperty, createPreserveEmptyPredicate, createStorageSort, matchesPathPattern };
|
|
1
|
+
import { a as matchesPathPattern, i as createStorageSort, n as compareCodeUnits, r as createPreserveEmptyPredicate, t as compareByNameProperty } from "./canonicalization-path-match-D88xLEq6-BFQC39ZG.mjs";
|
|
2
|
+
export { compareByNameProperty, compareCodeUnits, createPreserveEmptyPredicate, createStorageSort, matchesPathPattern };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as canonicalizeContract, i as StorageSort, n as PreserveEmptyPredicate, o as canonicalizeContractToObject, r as SerializeContract, t as CanonicalizeContractOptions } from "./canonicalization-
|
|
2
|
-
import { n as
|
|
3
|
-
export { type CanonicalizeContractOptions, type PreserveEmptyPredicate, type SerializeContract, type StorageSort, canonicalizeContract, canonicalizeContractToObject, computeExecutionHash, computeProfileHash, computeStorageHash };
|
|
1
|
+
import { a as canonicalizeContract, i as StorageSort, n as PreserveEmptyPredicate, o as canonicalizeContractToObject, r as SerializeContract, t as CanonicalizeContractOptions } from "./canonicalization-CyrrXGmj-CeKUkht1.mjs";
|
|
2
|
+
import { i as computeStorageHash, n as computeExecutionHash, r as computeProfileHash, t as buildExecutionSection } from "./hashing-D-DHz0zl.mjs";
|
|
3
|
+
export { type CanonicalizeContractOptions, type PreserveEmptyPredicate, type SerializeContract, type StorageSort, buildExecutionSection, canonicalizeContract, canonicalizeContractToObject, computeExecutionHash, computeProfileHash, computeStorageHash };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { canonicalizeContract, canonicalizeContractToObject, computeExecutionHash, computeProfileHash, computeStorageHash };
|
|
1
|
+
import { a as computeProfileHash, i as computeExecutionHash, n as canonicalizeContract, o as computeStorageHash, r as canonicalizeContractToObject, t as buildExecutionSection } from "./hashing-CLRfNAxh.mjs";
|
|
2
|
+
export { buildExecutionSection, canonicalizeContract, canonicalizeContractToObject, computeExecutionHash, computeProfileHash, computeStorageHash };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as resolveDomainModel, t as ResolvedDomainModel } from "./resolve-domain-model-
|
|
1
|
+
import { n as resolveDomainModel, t as ResolvedDomainModel } from "./resolve-domain-model-BNr1glea-BLuR-phK.mjs";
|
|
2
2
|
export { type ResolvedDomainModel, resolveDomainModel };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { a as effectiveControlPolicy, i as ControlPolicy, n as ContractExecutionSection, r as ContractValueObjectDefinitions, t as Contract } from "./contract-types-
|
|
1
|
+
import { $ as UnionFieldType, A as EmbedRelationKeys, B as JsonValue, C as ContractToOneRelation, D as CrossReferenceSchema, E as CrossReference, F as ExecutionSection, G as ProfileHashBase, H as ModelStorageBase, I as Expr, J as Source, K as ReferenceRelationKeys, L as FieldType, M as ExecutionMutationDefault, N as ExecutionMutationDefaultPhases, O as DocCollection, P as ExecutionMutationDefaultValue, Q as StorageNamespace, R as GeneratedValueSpec, S as ContractToManyRelation, T as ContractWithDomain, U as NamespaceId, V as LedgerEntryRecord, W as PlanMeta, X as StorageEntitySlot, Y as StorageBase, Z as StorageHashBase, _ as ContractNonJunctionRelation, a as ColumnDefault, at as executionHash, b as ContractRelationOn, c as ContractDiscriminator, ct as isExecutionMutationDefaultValue, d as ContractField, et as ValueObjectFieldType, f as ContractFieldType, g as ContractModelBase, h as ContractModel, i as Brand, it as crossRef, j as ExecutionHashBase, k as DocIndex, l as ContractEmbedRelation, lt as profileHash, m as ContractMarkerRecord, n as ApplicationDomain, nt as asNamespaceId, o as ColumnDefaultLiteralInputValue, ot as isColumnDefault, p as ContractManyToManyRelation, q as ScalarFieldType, r as ApplicationDomainNamespace, rt as coreHash, s as ColumnDefaultLiteralValue, st as isColumnDefaultLiteralInputValue, t as $, tt as ValueSetRef, u as ContractEnum, v as ContractReferenceRelation, w as ContractValueObject, x as ContractRelationThrough, y as ContractRelation, z as JsonPrimitive } from "./domain-envelope-CN721GnP-4huRt7Wc.mjs";
|
|
2
|
+
import { a as effectiveControlPolicy, i as ControlPolicy, n as ContractExecutionSection, o as governingControlPolicy, r as ContractValueObjectDefinitions, t as Contract } from "./contract-types-DEIEpzU_-DvAVuBr5.mjs";
|
|
3
3
|
import { n as soleDomainNamespaceId, t as UNBOUND_DOMAIN_NAMESPACE_ID } from "./default-namespace-D5X_k6hJ-GH8P1ror.mjs";
|
|
4
|
-
import { n as resolveDomainModel, t as ResolvedDomainModel } from "./resolve-domain-model-
|
|
5
|
-
import {
|
|
6
|
-
export { type $, type ApplicationDomain, type ApplicationDomainNamespace, type Brand, type ColumnDefault, type ColumnDefaultLiteralInputValue, type ColumnDefaultLiteralValue, type Contract, type ContractDiscriminator, type ContractEmbedRelation, type ContractEnum, type ContractExecutionSection, type ContractField, type ContractFieldType, type ContractManyToManyRelation, type ContractMarkerRecord, type ContractModel, type ContractModelBase, type ContractNonJunctionRelation, type ContractReferenceRelation, type ContractRelation, type ContractRelationOn, type ContractRelationThrough, type
|
|
4
|
+
import { n as resolveDomainModel, t as ResolvedDomainModel } from "./resolve-domain-model-BNr1glea-BLuR-phK.mjs";
|
|
5
|
+
import { a as ParameterizedOutputType, c as ValueObjectTypesFromDomain, d as domainValueObjectsAtDefaultNamespace, i as FieldTypesFromDomain, l as ValueTypeSide, n as ContractExecutionSectionSchema, o as ParameterizedOutputTypesFunction, r as EnumMemberValueType, s as StoredValueType, t as ApplyParameterizedOutputTypes, u as domainModelsAtDefaultNamespace } from "./types-GNXJ7xW2.mjs";
|
|
6
|
+
export { type $, type ApplicationDomain, type ApplicationDomainNamespace, type ApplyParameterizedOutputTypes, type Brand, type ColumnDefault, type ColumnDefaultLiteralInputValue, type ColumnDefaultLiteralValue, type Contract, type ContractDiscriminator, type ContractEmbedRelation, type ContractEnum, type ContractExecutionSection, ContractExecutionSectionSchema, type ContractField, type ContractFieldType, type ContractManyToManyRelation, type ContractMarkerRecord, type ContractModel, type ContractModelBase, type ContractNonJunctionRelation, type ContractReferenceRelation, type ContractRelation, type ContractRelationOn, type ContractRelationThrough, type ContractToManyRelation, type ContractToOneRelation, type ContractValueObject, type ContractValueObjectDefinitions, type ContractWithDomain, type ControlPolicy, type CrossReference, CrossReferenceSchema, type DocCollection, type DocIndex, type EmbedRelationKeys, type EnumMemberValueType, type ExecutionHashBase, type ExecutionMutationDefault, type ExecutionMutationDefaultPhases, type ExecutionMutationDefaultValue, type ExecutionSection, type Expr, type FieldType, type FieldTypesFromDomain, type GeneratedValueSpec, type JsonPrimitive, type JsonValue, type LedgerEntryRecord, type ModelStorageBase, type NamespaceId, type ParameterizedOutputType, type ParameterizedOutputTypesFunction, type PlanMeta, type ProfileHashBase, type ReferenceRelationKeys, type ResolvedDomainModel, type ScalarFieldType, type Source, type StorageBase, type StorageEntitySlot, type StorageHashBase, type StorageNamespace, type StoredValueType, UNBOUND_DOMAIN_NAMESPACE_ID, type UnionFieldType, type ValueObjectFieldType, type ValueObjectTypesFromDomain, type ValueSetRef, type ValueTypeSide, asNamespaceId, coreHash, crossRef, domainModelsAtDefaultNamespace, domainValueObjectsAtDefaultNamespace, effectiveControlPolicy, executionHash, governingControlPolicy, isColumnDefault, isColumnDefaultLiteralInputValue, isExecutionMutationDefaultValue, profileHash, resolveDomainModel, soleDomainNamespaceId };
|