@prisma/orm-framework 8.0.0-rc.2-dev.3 → 8.0.0-rc.20
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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dist-D1f6xr7F.mjs","names":[],"sources":["../../../../1-framework/1-core/ts-render/dist/index.mjs"],"sourcesContent":["import { InternalError } from \"@internal/utils/internal-error\";\nimport { structuredError } from \"@internal/utils/structured-error\";\n//#region src/ts-string-literal.ts\n/**\n* Renders a string as a TypeScript source-text literal.\n*\n* `JSON.stringify` already escapes quotes, backslashes, and control characters\n* exactly as TypeScript needs; it leaves U+2028/U+2029 unescaped, which legacy\n* parsers treat as line terminators, and DEL (U+007F), which is invisible, so\n* those are escaped explicitly.\n*\n* Used for both value literals (`jsonToTsSource`) and type-level literals /\n* property keys (the contract emitter), so a physical name that a store admits\n* as a quoted identifier but TypeScript does not admit bare renders the same\n* way everywhere.\n*/\nfunction tsStringLiteral(value) {\n\treturn JSON.stringify(value).replace(/\\u2028/g, \"\\\\u2028\").replace(/\\u2029/g, \"\\\\u2029\").replace(/\\u007f/g, \"\\\\x7f\");\n}\n/**\n* TypeScript source for a string: an untagged template literal when the text holds both quote kinds, so neither quote\n* is escaped; otherwise `tsStringLiteral(text)`. Text holding a control character (below U+0020, or U+007F), U+2028,\n* U+2029 or a lone surrogate is always `tsStringLiteral(text)`.\n*/\nfunction tsQuotedTextSource(text) {\n\tif (!(text.includes(\"'\") && text.includes(\"\\\"\")) || needsEscapeSequence(text)) return tsStringLiteral(text);\n\treturn `\\`${tsTemplateText(text)}\\``;\n}\n/** `text` escaped for the inside of a TypeScript template literal: `\\`, a backtick and `${` are escaped; nothing else is. */\nfunction tsTemplateText(text) {\n\treturn text.replace(/\\\\/g, \"\\\\\\\\\").replace(/`/g, \"\\\\`\").replace(/\\$\\{/g, \"\\\\${\");\n}\nfunction needsEscapeSequence(text) {\n\tfor (const char of text) {\n\t\tconst code = char.codePointAt(0) ?? 0;\n\t\tif (code < 32 || code === 127 || code === 8232 || code === 8233 || code >= 55296 && code <= 57343) return true;\n\t}\n\treturn false;\n}\n//#endregion\n//#region src/json-to-ts-source.ts\n/**\n* Pure JSON-to-TypeScript-source printer.\n*\n* This module is the second stage of the codec → TS pipeline:\n*\n* jsValue → codec.toDataTypeValue → JsonValue → jsonToTsSource → TS source text\n*\n* Stage 1 (`codec.toDataTypeValue`, whose value holds the stored JSON) is a codec and data type responsibility — date serialization,\n* opaque domain types (vector, bigint, uuid), JSON canonicalization. Stage 2\n* (this module) is a pure JSON-to-TS printer that must never grow type-specific\n* branches.\n*\n* To render a non-JSON JS value (Date, Vector, BigInt, Buffer, …), encode it\n* through the relevant codec's `toDataTypeValue` first. Adding special cases to\n* this file is not the answer — that's what codecs are for.\n*\n* The file also exports `tsObjectSource` and `tsArraySource`, the object and\n* array layouts `jsonToTsSource` uses, for callers that render some values\n* themselves.\n*/\n/**\n* Render a JSON-compatible value as a TypeScript source-text literal.\n*\n* Accepts `unknown` for ergonomics with structural types (e.g. `ColumnSpec`,\n* `ForeignKeySpec`) whose fields are all JSON-compatible but whose interfaces\n* lack the index signature TypeScript requires for `JsonObject` assignability.\n* Non-JSON values (Date, Symbol, Function, etc.) throw at runtime.\n*/\nfunction jsonToTsSource(value) {\n\tif (value === void 0) return \"undefined\";\n\tif (value === null) return \"null\";\n\tif (typeof value === \"string\") return tsStringLiteral(value);\n\tif (typeof value === \"number\" || typeof value === \"boolean\") return String(value);\n\tif (Array.isArray(value)) return tsArraySource(value.map((v) => jsonToTsSource(v)));\n\tif (typeof value === \"object\") return tsObjectSource(Object.entries(value).filter(([, v]) => v !== void 0).map(([k, v]) => [k, jsonToTsSource(v)]));\n\tthrow new InternalError(`jsonToTsSource: unsupported value type \"${typeof value}\"`);\n}\n/** An object literal from entries whose values are already TypeScript source, laid out as `jsonToTsSource` lays out objects. */\nfunction tsObjectSource(entries) {\n\tif (entries.length === 0) return \"{}\";\n\tconst items = entries.map(([key, source]) => `${renderKey(key)}: ${source}`);\n\tconst singleLine = `{ ${items.join(\", \")} }`;\n\tif (singleLine.length <= 80 && !singleLine.includes(\"\\n\")) return singleLine;\n\treturn `{\\n${items.map((i) => ` ${i}`).join(\",\\n\")},\\n}`;\n}\n/** An array literal from items that are already TypeScript source, laid out as `jsonToTsSource` lays out arrays. */\nfunction tsArraySource(items) {\n\tif (items.length === 0) return \"[]\";\n\tconst singleLine = `[${items.join(\", \")}]`;\n\tif (singleLine.length <= 80 && !singleLine.includes(\"\\n\")) return singleLine;\n\treturn `[\\n${items.map((i) => ` ${i}`).join(\",\\n\")},\\n]`;\n}\nfunction renderKey(key) {\n\tif (key === \"__proto__\") return tsStringLiteral(key);\n\treturn /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(key) ? key : tsStringLiteral(key);\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/render-imports.ts\n/**\n* Render an aggregated `import` block from a flat list of\n* `ImportRequirement`s. Each target's migration renderer collects\n* requirements polymorphically from its call nodes and pipes them here.\n*\n* The emitter invariants:\n*\n* - **Usually one line per module specifier.** Named imports are aggregated\n* and emitted sorted; a single default symbol is combined onto the same\n* line when attributes agree (`import def, { a, b } from \"m\";`). Aliased\n* symbols render `symbol as alias`. When every symbol for a module is\n* `typeOnly`, the statement collapses to `import type { … }`; a module\n* mixing value and type symbols prefixes the type-only ones\n* (`import { type T, v }`). Exceptions that split into multiple lines: a\n* fully type-only statement with both a default and one or more named\n* bindings (`import type D from \"m\";` then `import type { N } from \"m\";`,\n* because TypeScript rejects `import type D, { N } from \"m\"` — TS1363),\n* and multiple distinct default symbols (see below).\n* - **Multiple distinct default symbols per module are allowed.** JS permits\n* re-importing the same specifier under different default-binding names\n* (`import a from 'm'; import b from 'm';`), so each distinct default\n* symbol renders its own `import` line, sorted alphabetically; a repeated\n* requirement for the same symbol still collapses into one binding,\n* merging `typeOnly` by AND.\n* - **Attribute unanimity per module.** All requirements for the same\n* module specifier must carry the same (or no) `attributes` map.\n* Divergent attribute maps throw — they can't collapse to one line\n* and there's no user-resolvable recovery at this layer.\n* - **Distinct (symbol, alias) pairs are distinct bindings.** TypeScript\n* permits importing the same export under multiple local names, so\n* `{ A }` + `{ A as B }` renders as `import { A, A as B } from \"m\"` and\n* `{ A as B }` + `{ A as C }` renders as `import { A as B, A as C } from \"m\"`.\n* Truly identical `(symbol, alias)` pairs still collapse to one binding,\n* merging `typeOnly` by AND.\n* - **Deterministic ordering.** Modules are emitted sorted by specifier;\n* within a module, named bindings are emitted sorted by `(symbol, alias)`\n* using JavaScript code-unit comparison, with the un-aliased form (no\n* alias) treated as alias `\"\"` so it sorts before any aliased form of the\n* same symbol.\n*\n* Returns a string containing one or more import lines per module (see the\n* splitting exceptions above), joined by `\\n` (no trailing newline). An\n* empty requirement list returns `\"\"`.\n*/\nfunction renderImports(requirements) {\n\treturn [...aggregateByModule(requirements).entries()].sort(([a], [b]) => a.localeCompare(b)).map(([moduleSpecifier, group]) => renderModuleImport(moduleSpecifier, group)).join(\"\\n\");\n}\nfunction aggregateByModule(requirements) {\n\tconst byModule = /* @__PURE__ */ new Map();\n\tfor (const req of requirements) {\n\t\tlet group = byModule.get(req.moduleSpecifier);\n\t\tif (!group) {\n\t\t\tgroup = {\n\t\t\t\tnamed: /* @__PURE__ */ new Map(),\n\t\t\t\tdefaults: /* @__PURE__ */ new Map(),\n\t\t\t\tattributes: null,\n\t\t\t\tattributesSet: false\n\t\t\t};\n\t\t\tbyModule.set(req.moduleSpecifier, group);\n\t\t}\n\t\tmergeRequirementIntoGroup(req, group);\n\t}\n\treturn byModule;\n}\nfunction mergeRequirementIntoGroup(req, group) {\n\tconst kind = req.kind ?? \"named\";\n\tconst typeOnly = req.typeOnly === true;\n\tif (kind === \"default\") {\n\t\tconst existingTypeOnly = group.defaults.get(req.symbol);\n\t\tgroup.defaults.set(req.symbol, existingTypeOnly === void 0 ? typeOnly : existingTypeOnly && typeOnly);\n\t} else {\n\t\tconst alias = req.alias && req.alias !== req.symbol ? req.alias : null;\n\t\tconst key = namedBindingKey(req.symbol, alias);\n\t\tconst existing = group.named.get(key);\n\t\tif (existing) existing.typeOnly = existing.typeOnly && typeOnly;\n\t\telse group.named.set(key, {\n\t\t\tsymbol: req.symbol,\n\t\t\talias,\n\t\t\ttypeOnly\n\t\t});\n\t}\n\tmergeAttributes(req, group);\n}\nfunction mergeAttributes(req, group) {\n\tconst incoming = req.attributes ?? null;\n\tif (!group.attributesSet) {\n\t\tgroup.attributes = incoming;\n\t\tgroup.attributesSet = true;\n\t\treturn;\n\t}\n\tif (!attributesEqual(group.attributes, incoming)) throw contractError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Conflicting import attributes for module \"${req.moduleSpecifier}\": ${stringifyAttributes(group.attributes)} vs ${stringifyAttributes(incoming)}.`, { meta: { moduleSpecifier: req.moduleSpecifier } });\n}\nfunction attributesEqual(a, b) {\n\tif (a === b) return true;\n\tif (a === null || b === null) return false;\n\tconst aKeys = Object.keys(a).sort();\n\tconst bKeys = Object.keys(b).sort();\n\tif (aKeys.length !== bKeys.length) return false;\n\tfor (let i = 0; i < aKeys.length; i++) {\n\t\tconst key = aKeys[i];\n\t\tif (key !== bKeys[i]) return false;\n\t\tif (a[key] !== b[key]) return false;\n\t}\n\treturn true;\n}\nfunction stringifyAttributes(attrs) {\n\tif (attrs === null) return \"(none)\";\n\treturn `{ ${Object.entries(attrs).sort(([a], [b]) => a.localeCompare(b)).map(([k, v]) => `${k}: ${JSON.stringify(v)}`).join(\", \")} }`;\n}\nfunction renderModuleImport(moduleSpecifier, group) {\n\tconst attrs = buildAttributesClause(group.attributes);\n\tconst defaultEntries = [...group.defaults.entries()].sort(([a], [b]) => a.localeCompare(b));\n\tconst hasNamed = group.named.size > 0;\n\tif (defaultEntries.length > 1) {\n\t\tconst defaultLines = defaultEntries.map(([symbol, typeOnly]) => `import ${typeOnly ? \"type \" : \"\"}${symbol} from '${moduleSpecifier}'${attrs};`);\n\t\tif (!hasNamed) return defaultLines.join(\"\\n\");\n\t\treturn [...defaultLines, renderNamedOnlyStatement(moduleSpecifier, group, attrs)].join(\"\\n\");\n\t}\n\tconst defaultEntry = defaultEntries[0];\n\tconst hasDefault = defaultEntry !== void 0;\n\tconst [defaultSymbol, defaultTypeOnly] = defaultEntry ?? [null, true];\n\tconst typeOnlyStatement = isStatementTypeOnly(hasDefault, defaultTypeOnly, group);\n\tif (typeOnlyStatement && hasDefault && hasNamed) return `${`import type ${defaultSymbol} from '${moduleSpecifier}'${attrs};`}\\n${`import type { ${renderNamedBindingsList(group, true)} } from '${moduleSpecifier}'${attrs};`}`;\n\treturn `${typeOnlyStatement ? \"import type\" : \"import\"} ${buildImportClause(defaultSymbol, group, typeOnlyStatement)} from '${moduleSpecifier}'${attrs};`;\n}\nfunction renderNamedOnlyStatement(moduleSpecifier, group, attrs) {\n\tconst typeOnlyStatement = [...group.named.values()].every((binding) => binding.typeOnly);\n\treturn `${typeOnlyStatement ? \"import type\" : \"import\"} { ${renderNamedBindingsList(group, typeOnlyStatement)} } from '${moduleSpecifier}'${attrs};`;\n}\nfunction isStatementTypeOnly(hasDefault, defaultTypeOnly, group) {\n\tconst hasNamed = group.named.size > 0;\n\tif (!hasDefault && !hasNamed) return false;\n\tif (hasDefault && !defaultTypeOnly) return false;\n\tfor (const binding of group.named.values()) if (!binding.typeOnly) return false;\n\treturn true;\n}\nfunction buildImportClause(defaultSymbol, group, statementTypeOnly) {\n\tconst hasNamed = group.named.size > 0;\n\tconst hasDefault = defaultSymbol !== null;\n\tconst namedClause = hasNamed ? renderNamedBindingsList(group, statementTypeOnly) : \"\";\n\tif (hasDefault && hasNamed) return `${defaultSymbol}, { ${namedClause} }`;\n\tif (hasDefault) return defaultSymbol;\n\treturn `{ ${namedClause} }`;\n}\nfunction renderNamedBindingsList(group, statementTypeOnly) {\n\treturn [...group.named.values()].sort(compareNamedBindings).map((binding) => renderNamedBinding(binding, statementTypeOnly)).join(\", \");\n}\nfunction compareNamedBindings(a, b) {\n\tif (a.symbol !== b.symbol) return a.symbol < b.symbol ? -1 : 1;\n\tconst aAlias = a.alias ?? \"\";\n\tconst bAlias = b.alias ?? \"\";\n\tif (aAlias === bAlias) return 0;\n\treturn aAlias < bAlias ? -1 : 1;\n}\nfunction namedBindingKey(symbol, alias) {\n\treturn `${symbol}\\x00${alias ?? \"\"}`;\n}\nfunction renderNamedBinding(binding, statementTypeOnly) {\n\tconst prefix = !statementTypeOnly && binding.typeOnly ? \"type \" : \"\";\n\tconst aliasClause = binding.alias !== null ? ` as ${binding.alias}` : \"\";\n\treturn `${prefix}${binding.symbol}${aliasClause}`;\n}\nfunction buildAttributesClause(attrs) {\n\tif (attrs === null) return \"\";\n\tconst entries = Object.entries(attrs).sort(([a], [b]) => a.localeCompare(b)).map(([k, v]) => `${k}: ${JSON.stringify(v)}`);\n\tif (entries.length === 0) return \"\";\n\treturn ` with { ${entries.join(\", \")} }`;\n}\n//#endregion\n//#region src/ts-expression.ts\n/**\n* Abstract base class for any IR node that can be emitted as a TypeScript\n* expression and declare its own import requirements.\n*\n* A top-level renderer walks an array of these polymorphically, concatenates\n* `renderTypeScript()` results, and aggregates `importRequirements()` into a\n* deduplicated import block.\n*/\nvar TsExpression = class {};\n//#endregion\nexport { TsExpression, jsonToTsSource, renderImports, tsArraySource, tsObjectSource, tsQuotedTextSource, tsStringLiteral, tsTemplateText };\n\n//# sourceMappingURL=index.mjs.map"],"mappings":";;;;;;;;;;;;;;;;AAgBA,SAAS,gBAAgB,OAAO;CAC/B,OAAO,KAAK,UAAU,KAAK,CAAC,CAAC,QAAQ,WAAW,SAAS,CAAC,CAAC,QAAQ,WAAW,SAAS,CAAC,CAAC,QAAQ,WAAW,OAAO;AACpH;;;;;;AAMA,SAAS,mBAAmB,MAAM;CACjC,IAAI,EAAE,KAAK,SAAS,GAAG,KAAK,KAAK,SAAS,IAAI,MAAM,oBAAoB,IAAI,GAAG,OAAO,gBAAgB,IAAI;CAC1G,OAAO,KAAK,eAAe,IAAI,EAAE;AAClC;;AAEA,SAAS,eAAe,MAAM;CAC7B,OAAO,KAAK,QAAQ,OAAO,MAAM,CAAC,CAAC,QAAQ,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;CACvC,OAAO,GAAG,OAAO,MAAM,SAAS;AACjC;AACA,SAAS,mBAAmB,SAAS,mBAAmB;CACvD,MAAM,SAAS,CAAC,qBAAqB,QAAQ,WAAW,UAAU;CAClE,MAAM,cAAc,QAAQ,UAAU,OAAO,OAAO,QAAQ,UAAU;CACtE,OAAO,GAAG,SAAS,QAAQ,SAAS;AACrC;AACA,SAAS,sBAAsB,OAAO;CACrC,IAAI,UAAU,MAAM,OAAO;CAC3B,MAAM,UAAU,OAAO,QAAQ,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,OAAO,GAAG,EAAE,IAAI,KAAK,UAAU,CAAC,GAAG;CACzH,IAAI,QAAQ,WAAW,GAAG,OAAO;CACjC,OAAO,WAAW,QAAQ,KAAK,IAAI,EAAE;AACtC;;;;;;;;;AAWA,IAAI,eAAe,MAAM,CAAC"}
|
package/dist/{domain-envelope-D6Wn9AmZ-BqZKTT9U.d.mts → domain-envelope-CN721GnP-4huRt7Wc.d.mts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../../1-framework/0-foundation/contract/dist/domain-envelope-
|
|
1
|
+
//#region ../../../1-framework/0-foundation/contract/dist/domain-envelope-CN721GnP.d.mts
|
|
2
2
|
//#region src/namespace-id.d.ts
|
|
3
3
|
type NamespaceId = string & {
|
|
4
4
|
readonly __brand: 'NamespaceId';
|
|
@@ -122,18 +122,21 @@ type ExecutionMutationDefaultValue = {
|
|
|
122
122
|
readonly params?: Record<string, unknown>;
|
|
123
123
|
};
|
|
124
124
|
declare function isExecutionMutationDefaultValue(value: unknown): value is ExecutionMutationDefaultValue;
|
|
125
|
+
/**
|
|
126
|
+
* A generator that fills a stored field on create, on update, or both. `ref.entry` names the storage entry that holds the field (a table or a collection) and `ref.field` the stored field in it (a column or a document field).
|
|
127
|
+
*/
|
|
125
128
|
type ExecutionMutationDefault = {
|
|
126
129
|
readonly ref: {
|
|
127
130
|
readonly namespace: string;
|
|
128
|
-
readonly
|
|
129
|
-
readonly
|
|
131
|
+
readonly entry: string;
|
|
132
|
+
readonly field: string;
|
|
130
133
|
};
|
|
131
134
|
readonly onCreate?: ExecutionMutationDefaultValue;
|
|
132
135
|
readonly onUpdate?: ExecutionMutationDefaultValue;
|
|
133
136
|
};
|
|
134
137
|
/**
|
|
135
138
|
* `ExecutionMutationDefault` minus its `ref` — the per-field phases value
|
|
136
|
-
* authoring layers attach to a
|
|
139
|
+
* authoring layers attach to a field before its ref is known.
|
|
137
140
|
*/
|
|
138
141
|
type ExecutionMutationDefaultPhases = Omit<ExecutionMutationDefault, 'ref'>;
|
|
139
142
|
type ExecutionSection<THash extends string = string> = {
|
|
@@ -260,7 +263,9 @@ type ContractFieldType = ScalarFieldType | ValueObjectFieldType | UnionFieldType
|
|
|
260
263
|
type ContractField = {
|
|
261
264
|
readonly nullable: boolean;
|
|
262
265
|
readonly type: ContractFieldType;
|
|
263
|
-
readonly many?:
|
|
266
|
+
readonly many?: false | {
|
|
267
|
+
readonly elementNullable: boolean;
|
|
268
|
+
};
|
|
264
269
|
readonly dict?: true;
|
|
265
270
|
readonly valueSet?: ValueSetRef;
|
|
266
271
|
};
|
|
@@ -293,12 +298,24 @@ type ContractManyToManyRelation = {
|
|
|
293
298
|
readonly on: ContractRelationOn;
|
|
294
299
|
readonly through: ContractRelationThrough;
|
|
295
300
|
};
|
|
296
|
-
|
|
301
|
+
/**
|
|
302
|
+
* A to-one reference relation. `nullable` records whether the related row may be
|
|
303
|
+
* absent, as stated by the schema (`author User?` versus `author User`).
|
|
304
|
+
*/
|
|
305
|
+
type ContractToOneRelation = {
|
|
297
306
|
readonly to: CrossReference;
|
|
298
|
-
readonly cardinality: '1:1' | '
|
|
307
|
+
readonly cardinality: '1:1' | 'N:1';
|
|
308
|
+
readonly nullable: boolean;
|
|
299
309
|
readonly on: ContractRelationOn;
|
|
300
310
|
readonly through?: never;
|
|
301
311
|
};
|
|
312
|
+
type ContractToManyRelation = {
|
|
313
|
+
readonly to: CrossReference;
|
|
314
|
+
readonly cardinality: '1:N';
|
|
315
|
+
readonly on: ContractRelationOn;
|
|
316
|
+
readonly through?: never;
|
|
317
|
+
};
|
|
318
|
+
type ContractNonJunctionRelation = ContractToOneRelation | ContractToManyRelation;
|
|
302
319
|
type ContractReferenceRelation = ContractManyToManyRelation | ContractNonJunctionRelation;
|
|
303
320
|
type ContractEmbedRelation = {
|
|
304
321
|
readonly to: CrossReference;
|
|
@@ -308,9 +325,6 @@ type ContractRelation = ContractReferenceRelation | ContractEmbedRelation;
|
|
|
308
325
|
type ContractDiscriminator = {
|
|
309
326
|
readonly field: string;
|
|
310
327
|
};
|
|
311
|
-
type ContractVariantEntry = {
|
|
312
|
-
readonly value: string;
|
|
313
|
-
};
|
|
314
328
|
type ContractValueObject = {
|
|
315
329
|
readonly fields: Record<string, ContractField>;
|
|
316
330
|
};
|
|
@@ -320,7 +334,7 @@ interface ContractModelBase<TModelStorage extends ModelStorageBase = ModelStorag
|
|
|
320
334
|
readonly relations: Record<string, ContractRelation>;
|
|
321
335
|
readonly storage: TModelStorage;
|
|
322
336
|
readonly discriminator?: ContractDiscriminator;
|
|
323
|
-
readonly variants?: Record<string,
|
|
337
|
+
readonly variants?: Record<string, CrossReference>;
|
|
324
338
|
readonly base?: CrossReference;
|
|
325
339
|
readonly owner?: string;
|
|
326
340
|
}
|
|
@@ -355,5 +369,5 @@ type ContractWithDomain = {
|
|
|
355
369
|
readonly domain: ApplicationDomain;
|
|
356
370
|
};
|
|
357
371
|
//#endregion
|
|
358
|
-
export {
|
|
359
|
-
//# sourceMappingURL=domain-envelope-
|
|
372
|
+
export { UnionFieldType as $, EmbedRelationKeys as A, JsonValue as B, ContractToOneRelation as C, CrossReferenceSchema as D, CrossReference as E, ExecutionSection as F, ProfileHashBase as G, ModelStorageBase as H, Expr as I, Source as J, ReferenceRelationKeys as K, FieldType as L, ExecutionMutationDefault as M, ExecutionMutationDefaultPhases as N, DocCollection as O, ExecutionMutationDefaultValue as P, StorageNamespace as Q, GeneratedValueSpec as R, ContractToManyRelation as S, ContractWithDomain as T, NamespaceId as U, LedgerEntryRecord as V, PlanMeta as W, StorageEntitySlot as X, StorageBase as Y, StorageHashBase as Z, ContractNonJunctionRelation as _, ColumnDefault as a, executionHash as at, ContractRelationOn as b, ContractDiscriminator as c, isExecutionMutationDefaultValue as ct, ContractField as d, ValueObjectFieldType as et, ContractFieldType as f, ContractModelBase as g, ContractModel as h, Brand as i, crossRef as it, ExecutionHashBase as j, DocIndex as k, ContractEmbedRelation as l, profileHash as lt, ContractMarkerRecord as m, ApplicationDomain as n, asNamespaceId as nt, ColumnDefaultLiteralInputValue as o, isColumnDefault as ot, ContractManyToManyRelation as p, ScalarFieldType as q, ApplicationDomainNamespace as r, coreHash as rt, ColumnDefaultLiteralValue as s, isColumnDefaultLiteralInputValue as st, $ as t, ValueSetRef as tt, ContractEnum as u, ContractReferenceRelation as v, ContractValueObject as w, ContractRelationThrough as x, ContractRelation as y, JsonPrimitive as z };
|
|
373
|
+
//# sourceMappingURL=domain-envelope-CN721GnP-4huRt7Wc.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain-envelope-CN721GnP-4huRt7Wc.d.mts","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/domain-envelope-CN721GnP.d.mts"],"mappings":";;KACK;WACM;;iBAEM,cAAc,gBAAgB;;;UAGrC;WACC,WAAW;WACX;;;;;;WAMA;;cAEG,oEAAoE,WAAW;iBAC5E,SAAS,eAAe,oBAAoB,iBAAiB;;;;;;cAMhE;;;;;;;KAOT,MAAM,uCAAuC;GAC/C,OAAO,KAAK,OAAO;;;;;;;KAOjB,gBAAgB,wBAAwB,QAAQ;;;;;;KAMhD,kBAAkB,wBAAwB,QAAQ;iBACtC,oBAAoB,kBAAkB,OAAO,IAAI,kBAAkB;iBACnE,eAAe,kBAAkB,OAAO,IAAI,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ACM;WACA,MAAM;WACN;aACE;;WAEF;WACA,WAAW;;;;;;;KAOjB;WACM;WACA;aACE;aACA,OAAO;;;KAGf;WACM;WACA;;KAEN;WACM;WACA;WACA;WACA;WACA;;KAEN;WACM,IAAI;WACJ;WACA,IAAI;WACJ,SAAS;;;;;;KAMf;WACM,IAAI;WACJ;WACA;WACA,IAAI;WACJ;;KAEN;WACM,IAAI;WACJ;WACA,IAAI;WACJ;;KAEN,8BAA8B,wBAAwB;KACtD,4BAA4B,6BAA6B;KACzD;WACM,IAAI;WACJ;;KAEN,mBAAmB,4BAA4B;KAC/C;WACM;;KAEN;WACM,QAAQ,eAAe;;KAE7B,mBAAmB,SAAS;UACvB,kBAAkB,sBAAsB,mBAAmB;WAC1D,QAAQ,eAAe;WACvB,WAAW,eAAe;WAC1B,SAAS;WACT,gBAAgB;WAChB,WAAW,eAAe;WAC1B,OAAO;WACP;;UAED,cAAc,sBAAsB,mBAAmB,0BAA0B,kBAAkB;WAClG,QAAQ,eAAe;;KAE7B,sBAAsB,gBAAgB;WAChC,WAAW,eAAe;IACjC,iCAAiC,cAAc,WAAW,QAAQ,0BAA0B,QAAQ,wBAAwB,WAAW,4BAA4B,mBAAmB,QAAQ;KAC7L,kBAAkB,gBAAgB;WAC5B,WAAW,eAAe;IACjC,iCAAiC,cAAc,WAAW,QAAQ,0BAA0B,QAAQ,wBAAwB,WAAW,oCAAoC,WAAW,QAAQ;;;;;;;UAOxL;WACC,QAAQ,eAAe;WACvB,eAAe,eAAe;WAC9B,OAAO,eAAe;;;;;;UAMvB;WACC,YAAY,SAAS,eAAe;;KAE1C;WACM,QAAQ"}
|
package/dist/{emission-types-DLXP34Ki-CFms3VrX.d.mts → emission-types-B-jKEbjI-D7BW8Gk1.d.mts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as Contract } from "./contract-types-
|
|
3
|
-
import {
|
|
4
|
-
import { l as TypesImportSpec, t as AggregateDescriptor } from "./types-import-spec-
|
|
5
|
-
//#region ../../../1-framework/1-core/framework-components/dist/emission-types-
|
|
1
|
+
import { B as JsonValue, g as ContractModelBase } from "./domain-envelope-CN721GnP-4huRt7Wc.mjs";
|
|
2
|
+
import { t as Contract } from "./contract-types-DEIEpzU_-DvAVuBr5.mjs";
|
|
3
|
+
import { f as CodecLookup, t as AnyCodecDescriptor } from "./codec-types-CPgEZoIq-BL9hisr8.mjs";
|
|
4
|
+
import { l as TypesImportSpec, t as AggregateDescriptor } from "./types-import-spec-DQjfX-gM-zVncuzs0.mjs";
|
|
5
|
+
//#region ../../../1-framework/1-core/framework-components/dist/emission-types-B-jKEbjI.d.mts
|
|
6
6
|
//#region src/shared/import-specifier-resolver.d.ts
|
|
7
7
|
/**
|
|
8
8
|
* Rewrites one module specifier for the import root a generated file is being
|
|
@@ -39,15 +39,17 @@ declare function resolveRequirementSpecifiers<T extends {
|
|
|
39
39
|
//#region src/control/emission-types.d.ts
|
|
40
40
|
interface GenerateContractTypesOptions {
|
|
41
41
|
readonly queryOperationTypeImports?: ReadonlyArray<TypesImportSpec>;
|
|
42
|
+
/** The type functions that give the output types of the stack's codecs for a column's type parameters (`types.codecTypes.parameterizedOutputTypes`). */
|
|
43
|
+
readonly parameterizedOutputTypeImports?: ReadonlyArray<TypesImportSpec>;
|
|
42
44
|
/**
|
|
43
45
|
* The aggregate overloads the composed stack contributes, and the codec descriptors they are settled against. A family emits result types from these — the same declarations its runtime registry resolves against, so emitted types and decoded results cannot disagree.
|
|
44
46
|
*/
|
|
45
47
|
readonly aggregateDescriptors?: ReadonlyArray<AggregateDescriptor>;
|
|
46
48
|
readonly codecDescriptors?: ReadonlyArray<AnyCodecDescriptor>;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
readonly
|
|
49
|
+
/**
|
|
50
|
+
* The target's namespace declaration. `false` drops the namespace segment from emitted `Models` member names and from the `models` constant; absent means `true`.
|
|
51
|
+
*/
|
|
52
|
+
readonly supportsNamespaces?: boolean;
|
|
51
53
|
}
|
|
52
54
|
interface EmissionSpi {
|
|
53
55
|
readonly id: string;
|
|
@@ -62,19 +64,18 @@ interface EmissionSpi {
|
|
|
62
64
|
getFamilyTypeAliases(options?: GenerateContractTypesOptions): string;
|
|
63
65
|
getTypeMapsExpression(): string;
|
|
64
66
|
getContractWrapper(contractBaseName: string, typeMapsName: string): string;
|
|
65
|
-
resolveFieldTypeParams?(modelName: string, fieldName: string, model: ContractModelBase, contract: Contract): Record<string, unknown> | undefined;
|
|
66
67
|
/**
|
|
67
|
-
* Resolves a field's permitted values (codec-encoded) plus the codec that types them, or
|
|
68
|
+
* Resolves a model field's permitted values (codec-encoded) plus the codec that types them, or
|
|
68
69
|
* `undefined` for a field with no restricted value set. The framework renders the values into a TS
|
|
69
|
-
* literal union through the codec seam.
|
|
70
|
-
*
|
|
70
|
+
* literal union through the codec seam. The framework resolves a field's reference to a domain
|
|
71
|
+
* enum itself and calls this only for other fields, whose values live in the family's storage.
|
|
71
72
|
*/
|
|
72
|
-
|
|
73
|
+
resolveStorageValueSet?(modelName: string, fieldName: string, model: ContractModelBase, contract: Contract): {
|
|
73
74
|
readonly encodedValues: readonly JsonValue[];
|
|
74
75
|
readonly codecId: string;
|
|
75
76
|
} | undefined;
|
|
76
77
|
getStorageTypeExports?(contract: Contract, codecLookup?: CodecLookup): string | undefined;
|
|
77
78
|
}
|
|
78
79
|
//#endregion
|
|
79
|
-
export {
|
|
80
|
-
//# sourceMappingURL=emission-types-
|
|
80
|
+
export { resolveRequirementSpecifiers as a, keepInternalSpecifiers as i, GenerateContractTypesOptions as n, ImportSpecifierResolver as r, EmissionSpi as t };
|
|
81
|
+
//# sourceMappingURL=emission-types-B-jKEbjI-D7BW8Gk1.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emission-types-B-jKEbjI-D7BW8Gk1.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/emission-types-B-jKEbjI.d.mts"],"mappings":";;;;;;;;;;;;;;;;KAcK,2BAA2B;;;;;;cAMlB,wBAAwB;;;;;;;;;;iBAUrB,6BAA6B;WACnC;GACR,uBAAuB,KAAK,UAAU,0BAA0B,MAAM,KAAK;WACnE;;;;UAID;WACC,4BAA4B,cAAc;;WAE1C,iCAAiC,cAAc;;;;WAI/C,uBAAuB,cAAc;WACrC,mBAAmB,cAAc;;;;WAIjC;;UAED;WACC;EACT,oBAAoB,UAAU,UAAU;EACxC,yBAAyB,mBAAmB,OAAO;;;;;;EAMnD,iBAAiB,wBAAwB;EACzC,qBAAqB,UAAU;EAC/B;EACA,mBAAmB,0BAA0B;;;;;;;EAO7C,wBAAwB,mBAAmB,mBAAmB,OAAO,mBAAmB,UAAU;aACvF,wBAAwB;aACxB;;EAEX,uBAAuB,UAAU,UAAU,cAAc"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { B as JsonValue, u as ContractEnum } from "./domain-envelope-CN721GnP-4huRt7Wc.mjs";
|
|
2
|
+
import { t as Contract } from "./contract-types-DEIEpzU_-DvAVuBr5.mjs";
|
|
3
|
+
//#region ../../../1-framework/0-foundation/contract/dist/enum-accessor.d.mts
|
|
4
|
+
//#region src/enum-accessor.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* What an enum's accessor uses of its codec: the codec's data type reads a member's stored form as a value, which `fromDataTypeValue` turns into the value the application reads from the database; `toDataTypeValue` and the type's `toContract` write a value in its stored form, which is how values are compared.
|
|
7
|
+
*/
|
|
8
|
+
interface EnumMemberCodec {
|
|
9
|
+
readonly dataType: {
|
|
10
|
+
fromContract(json: JsonValue, params: Readonly<Record<string, unknown>>): unknown;
|
|
11
|
+
toContract(value: unknown): JsonValue;
|
|
12
|
+
/** A key two stored forms share exactly when the data type's equality holds them equal; present when equal values have more than one stored form. */
|
|
13
|
+
readonly equalityKey?: (json: JsonValue) => string;
|
|
14
|
+
};
|
|
15
|
+
fromDataTypeValue(value: unknown): unknown;
|
|
16
|
+
toDataTypeValue(value: unknown): unknown;
|
|
17
|
+
}
|
|
18
|
+
/** The codec an enum's `codecId` names. */
|
|
19
|
+
type EnumMemberCodecFor = (codecId: string) => EnumMemberCodec;
|
|
20
|
+
/**
|
|
21
|
+
* Runtime view of a domain enum, built at the client from the contract's `ContractEnum` JSON and read through the enum's codec.
|
|
22
|
+
*
|
|
23
|
+
* Its shape mirrors the authoring-time `EnumTypeHandle` (in `contract-ts`), which carries the literal value generics and lives in the authoring layer the foundation layer cannot depend on. The two compare values differently: the handle compares by identity, while this accessor finds a value equal to a member, so a date equal to a date member is found here and not on the handle.
|
|
24
|
+
*/
|
|
25
|
+
interface EnumAccessor {
|
|
26
|
+
/** The members' values in declaration order. The same array on every read when every member is a primitive or an immutable object such as a Temporal value; a fresh array of fresh copies when a member is mutable, such as a `Date` or a `Uint8Array`. */
|
|
27
|
+
readonly values: readonly unknown[];
|
|
28
|
+
readonly names: readonly string[];
|
|
29
|
+
readonly members: Readonly<Record<string, unknown>>;
|
|
30
|
+
has(v: unknown): boolean;
|
|
31
|
+
hasName(name: string): boolean;
|
|
32
|
+
nameOf(v: unknown): string | undefined;
|
|
33
|
+
ordinalOf(v: unknown): number;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Builds the accessor for one enum, decoding each member once. Each member holds the value `codec` reads from its stored form, which is the value a query returns. A primitive or immutable member is handed out as decoded; a mutable member is copied on every read, so changing a value read from the accessor leaves the enum unchanged. A value is a member when it equals one: a primitive by SameValueZero, an object by its `Object.prototype.toString` kind and the form `codec` stores it in, so two equal dates match, and, for a data type whose equal values have more than one stored form, any value the type's equality holds equal to a member, so `0.50` is the `numeric` member `0.5`. Without a codec, members are their stored forms.
|
|
37
|
+
*/
|
|
38
|
+
declare function createEnumAccessor(contractEnum: ContractEnum, codec?: EnumMemberCodec): EnumAccessor;
|
|
39
|
+
/**
|
|
40
|
+
* The accessors for one namespace's enums. Each enum's codec is resolved here, so a contract whose enum codec `codecFor` lacks fails now; its members are decoded when the enum is first read, so a codec that needs something the runtime lacks, such as `Temporal`, fails only then.
|
|
41
|
+
*/
|
|
42
|
+
declare function buildEnumsMapForNamespace(domain: {
|
|
43
|
+
readonly namespaces: Readonly<Record<string, {
|
|
44
|
+
readonly enum?: Readonly<Record<string, ContractEnum>>;
|
|
45
|
+
}>>;
|
|
46
|
+
}, namespaceId: string, codecFor: EnumMemberCodecFor): Record<string, EnumAccessor>;
|
|
47
|
+
declare function buildNamespacedEnums<TContract extends Contract>(domain: TContract['domain'], codecFor: EnumMemberCodecFor): NamespacedEnums<TContract>;
|
|
48
|
+
type Present<T> = Exclude<T, undefined>;
|
|
49
|
+
type EnumMemberEntry = {
|
|
50
|
+
readonly name: string;
|
|
51
|
+
readonly value: unknown;
|
|
52
|
+
};
|
|
53
|
+
type EnumEntry = {
|
|
54
|
+
readonly members: readonly EnumMemberEntry[];
|
|
55
|
+
};
|
|
56
|
+
type MemberValues<Members> = { readonly [I in keyof Members]: Members[I] extends EnumMemberEntry ? Members[I]['value'] : never; };
|
|
57
|
+
type MemberNames<Members> = { readonly [I in keyof Members]: Members[I] extends EnumMemberEntry ? Members[I]['name'] : never; };
|
|
58
|
+
type EnumEntryValues<Entry extends EnumEntry> = MemberValues<Entry['members']>;
|
|
59
|
+
type EnumEntryNames<Entry extends EnumEntry> = MemberNames<Entry['members']>;
|
|
60
|
+
type EnumEntryMembers<Entry extends EnumEntry> = { readonly [M in Entry['members'][number] as M['name']]: M['value']; };
|
|
61
|
+
type ContractEnumAccessor<Entry extends EnumEntry> = {
|
|
62
|
+
readonly values: EnumEntryValues<Entry>;
|
|
63
|
+
readonly names: EnumEntryNames<Entry>;
|
|
64
|
+
readonly members: EnumEntryMembers<Entry>;
|
|
65
|
+
/** Returns true and narrows `v` to the enum's value union when `v` is a declared member value. */
|
|
66
|
+
has(v: unknown): v is EnumEntryValues<Entry>[number];
|
|
67
|
+
/** Returns true and narrows `name` to the enum's member-name union when `name` is a declared member name. */
|
|
68
|
+
hasName(name: string): name is Extract<EnumEntryNames<Entry>[number], string>;
|
|
69
|
+
nameOf(v: EnumEntryValues<Entry>[number]): string | undefined;
|
|
70
|
+
ordinalOf(v: EnumEntryValues<Entry>[number]): number;
|
|
71
|
+
/**
|
|
72
|
+
* Type-only: the enum's value union. Absent at runtime — use `typeof X.Value`
|
|
73
|
+
* to derive the type; never read `X.Value` as a value.
|
|
74
|
+
*/
|
|
75
|
+
readonly Value: EnumEntryValues<Entry>[number];
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* The value union for a `ContractEnumAccessor`.
|
|
79
|
+
* Use in function signatures to accept any declared enum value without re-exporting
|
|
80
|
+
* the member type alias from the accessor's generic entry.
|
|
81
|
+
*/
|
|
82
|
+
type EnumValues<A> = A extends {
|
|
83
|
+
readonly values: ReadonlyArray<infer V>;
|
|
84
|
+
} ? V : never;
|
|
85
|
+
/**
|
|
86
|
+
* The member-name union for a `ContractEnumAccessor`.
|
|
87
|
+
*/
|
|
88
|
+
type EnumMemberNames<A> = A extends {
|
|
89
|
+
readonly names: ReadonlyArray<infer N>;
|
|
90
|
+
} ? N : never;
|
|
91
|
+
type EnumEntriesToAccessors<Enums> = { readonly [K in keyof Enums]: Enums[K] extends EnumEntry ? ContractEnumAccessor<Enums[K]> : never; };
|
|
92
|
+
type DomainEnumEntries<TNamespace> = TNamespace extends {
|
|
93
|
+
readonly enum?: infer E;
|
|
94
|
+
} ? unknown extends E ? Record<never, never> : Present<E> : Record<never, never>;
|
|
95
|
+
type NamespaceEnumEntries<TNamespace> = TNamespace extends {
|
|
96
|
+
readonly enumMemberTypes?: infer MemberTuples;
|
|
97
|
+
} ? unknown extends MemberTuples ? DomainEnumEntries<TNamespace> : { readonly [K in keyof Present<MemberTuples>]: {
|
|
98
|
+
readonly members: Present<MemberTuples>[K];
|
|
99
|
+
}; } : DomainEnumEntries<TNamespace>;
|
|
100
|
+
type NamespaceEnumAccessors<TContract extends Contract, NsId extends keyof TContract['domain']['namespaces']> = EnumEntriesToAccessors<NamespaceEnumEntries<TContract['domain']['namespaces'][NsId]>>;
|
|
101
|
+
type NamespacedEnums<TContract extends Contract> = { readonly [Ns in keyof TContract['domain']['namespaces']]: NamespaceEnumAccessors<TContract, Ns>; };
|
|
102
|
+
//#endregion
|
|
103
|
+
export { EnumMemberCodecFor as a, NamespaceEnumAccessors as c, buildNamespacedEnums as d, createEnumAccessor as f, EnumMemberCodec as i, NamespacedEnums as l, EnumAccessor as n, EnumMemberNames as o, EnumEntriesToAccessors as r, EnumValues as s, ContractEnumAccessor as t, buildEnumsMapForNamespace as u };
|
|
104
|
+
//# sourceMappingURL=enum-accessor-2OZgavDX.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enum-accessor-2OZgavDX.d.mts","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/enum-accessor.d.mts"],"mappings":";;;;;;;UAMU;WACC;IACP,aAAa,MAAM,WAAW,QAAQ,SAAS;IAC/C,WAAW,iBAAiB;;aAEnB,eAAe,MAAM;;EAEhC,kBAAkB;EAClB,gBAAgB;;;KAGb,sBAAsB,oBAAoB;;;;;;UAMrC;;WAEC;WACA;WACA,SAAS,SAAS;EAC3B,IAAI;EACJ,QAAQ;EACR,OAAO;EACP,UAAU;;;;;iBAKK,mBAAmB,cAAc,cAAc,QAAQ,kBAAkB;;;;iBAIzE,0BAA0B;WAChC,YAAY,SAAS;aACnB,OAAO,SAAS,eAAe;;GAEzC,qBAAqB,UAAU,qBAAqB,eAAe;iBACrD,qBAAqB,kBAAkB,UAAU,QAAQ,qBAAqB,UAAU,qBAAqB,gBAAgB;KACzI,QAAQ,KAAK,QAAQ;KACrB;WACM;WACA;;KAEN;WACM,kBAAkB;;KAExB,aAAa,uBAAuB,WAAW,UAAU,QAAQ,WAAW,kBAAkB,QAAQ;KACtG,YAAY,uBAAuB,WAAW,UAAU,QAAQ,WAAW,kBAAkB,QAAQ;KACrG,gBAAgB,cAAc,aAAa,aAAa;KACxD,eAAe,cAAc,aAAa,YAAY;KACtD,iBAAiB,cAAc,yBAAyB,KAAK,4BAA4B,YAAY;KACrG,qBAAqB,cAAc;WAC7B,QAAQ,gBAAgB;WACxB,OAAO,eAAe;WACtB,SAAS,iBAAiB;;EAEnC,IAAI,aAAa,KAAK,gBAAgB;;EAEtC,QAAQ,eAAe,QAAQ,QAAQ,eAAe;EACtD,OAAO,GAAG,gBAAgB;EAC1B,UAAU,GAAG,gBAAgB;;;;;WAKpB,OAAO,gBAAgB;;;;;;;KAO7B,WAAW,KAAK;WACV,QAAQ,oBAAoB;IACnC;;;;KAIC,gBAAgB,KAAK;WACf,OAAO,oBAAoB;IAClC;KACC,uBAAuB,qBAAqB,WAAW,QAAQ,MAAM,WAAW,YAAY,qBAAqB,MAAM;KACvH,kBAAkB,cAAc;WAC1B,aAAa;oBACJ,IAAI,uBAAuB,QAAQ,KAAK;KACvD,qBAAqB,cAAc;WAC7B,wBAAwB;oBACf,eAAe,kBAAkB,0BAA0B,WAAW,QAAQ;WACvF,SAAS,QAAQ,cAAc;OACnC,kBAAkB;KACpB,uBAAuB,kBAAkB,UAAU,mBAAmB,qCAAqC,uBAAuB,qBAAqB,kCAAkC;KACzL,gBAAgB,kBAAkB,wBAAwB,YAAY,oCAAoC,uBAAuB,WAAW"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { t as blindCast } from "./casts-DpaahrlC-Bd5n2coI.mjs";
|
|
2
|
+
import { t as canonicalStringify } from "./canonical-stringify-DY4NaAJi.mjs";
|
|
3
|
+
import { r as isInternalError } from "./internal-error-ChGYPVpq-DhUD05u0.mjs";
|
|
4
|
+
//#region ../../../1-framework/0-foundation/contract/dist/enum-accessor.mjs
|
|
5
|
+
function isObject(value) {
|
|
6
|
+
return typeof value === "object" && value !== null;
|
|
7
|
+
}
|
|
8
|
+
function kindOf(value) {
|
|
9
|
+
return Object.prototype.toString.call(value);
|
|
10
|
+
}
|
|
11
|
+
function isImmutable(value) {
|
|
12
|
+
if (!isObject(value)) return true;
|
|
13
|
+
if (value instanceof Date || value instanceof Uint8Array) return false;
|
|
14
|
+
return Object.isFrozen(value) || kindOf(value).startsWith("[object Temporal.");
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Builds the accessor for one enum, decoding each member once. Each member holds the value `codec` reads from its stored form, which is the value a query returns. A primitive or immutable member is handed out as decoded; a mutable member is copied on every read, so changing a value read from the accessor leaves the enum unchanged. A value is a member when it equals one: a primitive by SameValueZero, an object by its `Object.prototype.toString` kind and the form `codec` stores it in, so two equal dates match, and, for a data type whose equal values have more than one stored form, any value the type's equality holds equal to a member, so `0.50` is the `numeric` member `0.5`. Without a codec, members are their stored forms.
|
|
18
|
+
*/
|
|
19
|
+
function createEnumAccessor(contractEnum, codec) {
|
|
20
|
+
const read = (stored) => {
|
|
21
|
+
const copy = structuredClone(stored);
|
|
22
|
+
return codec === void 0 ? copy : codec.fromDataTypeValue(codec.dataType.fromContract(copy, {}));
|
|
23
|
+
};
|
|
24
|
+
const storedFormKey = (value) => canonicalStringify(codec === void 0 ? value : codec.dataType.toContract(codec.toDataTypeValue(value)));
|
|
25
|
+
const entries = contractEnum.members.map((member) => {
|
|
26
|
+
const value = read(member.value);
|
|
27
|
+
return {
|
|
28
|
+
name: member.name,
|
|
29
|
+
stored: member.value,
|
|
30
|
+
value,
|
|
31
|
+
immutable: isImmutable(value)
|
|
32
|
+
};
|
|
33
|
+
});
|
|
34
|
+
const copyOf = (entry) => {
|
|
35
|
+
if (entry.immutable) return entry.value;
|
|
36
|
+
if (entry.value instanceof Date) return new Date(entry.value.getTime());
|
|
37
|
+
if (entry.value instanceof Uint8Array) return Uint8Array.from(entry.value);
|
|
38
|
+
return read(entry.stored);
|
|
39
|
+
};
|
|
40
|
+
const names = Object.freeze(entries.map((entry) => entry.name));
|
|
41
|
+
const nameSet = Object.freeze(new Set(names));
|
|
42
|
+
const members = Object.freeze(Object.defineProperties({}, Object.fromEntries(entries.map((entry) => [entry.name, {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: () => copyOf(entry)
|
|
45
|
+
}]))));
|
|
46
|
+
const allImmutable = entries.every((entry) => entry.immutable);
|
|
47
|
+
const immutableValues = Object.freeze(entries.map((entry) => entry.value));
|
|
48
|
+
const equalityKey = codec?.dataType.equalityKey;
|
|
49
|
+
const primitiveOrdinals = /* @__PURE__ */ new Map();
|
|
50
|
+
const objectOrdinals = /* @__PURE__ */ new Map();
|
|
51
|
+
const equalOrdinals = /* @__PURE__ */ new Map();
|
|
52
|
+
entries.forEach((entry, ordinal) => {
|
|
53
|
+
if (isObject(entry.value)) objectOrdinals.set(storedFormKey(entry.value), ordinal);
|
|
54
|
+
else primitiveOrdinals.set(entry.value, ordinal);
|
|
55
|
+
if (equalityKey !== void 0) equalOrdinals.set(equalityKey(entry.stored), ordinal);
|
|
56
|
+
});
|
|
57
|
+
/** The member the data type's equality holds `v` equal to, for a type whose equal values have more than one stored form. */
|
|
58
|
+
const equalOrdinalOf = (v) => {
|
|
59
|
+
if (equalityKey === void 0 || codec === void 0) return -1;
|
|
60
|
+
try {
|
|
61
|
+
return equalOrdinals.get(equalityKey(codec.dataType.toContract(codec.toDataTypeValue(v)))) ?? -1;
|
|
62
|
+
} catch (error) {
|
|
63
|
+
if (isInternalError(error)) throw error;
|
|
64
|
+
return -1;
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
const ordinalOf = (v) => {
|
|
68
|
+
if (!isObject(v)) return primitiveOrdinals.get(v) ?? equalOrdinalOf(v);
|
|
69
|
+
let key;
|
|
70
|
+
try {
|
|
71
|
+
key = storedFormKey(v);
|
|
72
|
+
} catch (error) {
|
|
73
|
+
if (isInternalError(error)) throw error;
|
|
74
|
+
return -1;
|
|
75
|
+
}
|
|
76
|
+
const ordinal = objectOrdinals.get(key) ?? -1;
|
|
77
|
+
const member = entries[ordinal]?.value;
|
|
78
|
+
return isObject(member) && kindOf(member) === kindOf(v) ? ordinal : equalOrdinalOf(v);
|
|
79
|
+
};
|
|
80
|
+
return {
|
|
81
|
+
get values() {
|
|
82
|
+
return allImmutable ? immutableValues : Object.freeze(entries.map(copyOf));
|
|
83
|
+
},
|
|
84
|
+
names,
|
|
85
|
+
members,
|
|
86
|
+
has: (v) => ordinalOf(v) !== -1,
|
|
87
|
+
hasName: (name) => nameSet.has(name),
|
|
88
|
+
nameOf: (v) => {
|
|
89
|
+
const ordinal = ordinalOf(v);
|
|
90
|
+
return ordinal === -1 ? void 0 : names[ordinal];
|
|
91
|
+
},
|
|
92
|
+
ordinalOf
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* The accessors for one namespace's enums. Each enum's codec is resolved here, so a contract whose enum codec `codecFor` lacks fails now; its members are decoded when the enum is first read, so a codec that needs something the runtime lacks, such as `Temporal`, fails only then.
|
|
97
|
+
*/
|
|
98
|
+
function buildEnumsMapForNamespace(domain, namespaceId, codecFor) {
|
|
99
|
+
const result = {};
|
|
100
|
+
const namespace = domain.namespaces[namespaceId];
|
|
101
|
+
if (namespace?.enum) for (const [name, contractEnum] of Object.entries(namespace.enum)) {
|
|
102
|
+
const codec = codecFor(contractEnum.codecId);
|
|
103
|
+
let accessor;
|
|
104
|
+
Object.defineProperty(result, name, {
|
|
105
|
+
enumerable: true,
|
|
106
|
+
get: () => {
|
|
107
|
+
accessor ??= createEnumAccessor(contractEnum, codec);
|
|
108
|
+
return accessor;
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
return result;
|
|
113
|
+
}
|
|
114
|
+
function buildNamespacedEnums(domain, codecFor) {
|
|
115
|
+
const result = {};
|
|
116
|
+
for (const namespaceId of Object.keys(domain.namespaces)) result[namespaceId] = buildEnumsMapForNamespace(domain, namespaceId, codecFor);
|
|
117
|
+
return blindCast(result);
|
|
118
|
+
}
|
|
119
|
+
//#endregion
|
|
120
|
+
export { buildNamespacedEnums as n, createEnumAccessor as r, buildEnumsMapForNamespace as t };
|
|
121
|
+
|
|
122
|
+
//# sourceMappingURL=enum-accessor-B-A2wNok.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enum-accessor-B-A2wNok.mjs","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/enum-accessor.mjs"],"sourcesContent":["import { canonicalStringify } from \"@internal/utils/canonical-stringify\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { isInternalError } from \"@internal/utils/internal-error\";\n//#region src/enum-accessor.ts\nfunction isObject(value) {\n\treturn typeof value === \"object\" && value !== null;\n}\nfunction kindOf(value) {\n\treturn Object.prototype.toString.call(value);\n}\nfunction isImmutable(value) {\n\tif (!isObject(value)) return true;\n\tif (value instanceof Date || value instanceof Uint8Array) return false;\n\treturn Object.isFrozen(value) || kindOf(value).startsWith(\"[object Temporal.\");\n}\n/**\n* Builds the accessor for one enum, decoding each member once. Each member holds the value `codec` reads from its stored form, which is the value a query returns. A primitive or immutable member is handed out as decoded; a mutable member is copied on every read, so changing a value read from the accessor leaves the enum unchanged. A value is a member when it equals one: a primitive by SameValueZero, an object by its `Object.prototype.toString` kind and the form `codec` stores it in, so two equal dates match, and, for a data type whose equal values have more than one stored form, any value the type's equality holds equal to a member, so `0.50` is the `numeric` member `0.5`. Without a codec, members are their stored forms.\n*/\nfunction createEnumAccessor(contractEnum, codec) {\n\tconst read = (stored) => {\n\t\tconst copy = structuredClone(stored);\n\t\treturn codec === void 0 ? copy : codec.fromDataTypeValue(codec.dataType.fromContract(copy, {}));\n\t};\n\tconst storedFormKey = (value) => canonicalStringify(codec === void 0 ? value : codec.dataType.toContract(codec.toDataTypeValue(value)));\n\tconst entries = contractEnum.members.map((member) => {\n\t\tconst value = read(member.value);\n\t\treturn {\n\t\t\tname: member.name,\n\t\t\tstored: member.value,\n\t\t\tvalue,\n\t\t\timmutable: isImmutable(value)\n\t\t};\n\t});\n\tconst copyOf = (entry) => {\n\t\tif (entry.immutable) return entry.value;\n\t\tif (entry.value instanceof Date) return new Date(entry.value.getTime());\n\t\tif (entry.value instanceof Uint8Array) return Uint8Array.from(entry.value);\n\t\treturn read(entry.stored);\n\t};\n\tconst names = Object.freeze(entries.map((entry) => entry.name));\n\tconst nameSet = Object.freeze(new Set(names));\n\tconst members = Object.freeze(Object.defineProperties({}, Object.fromEntries(entries.map((entry) => [entry.name, {\n\t\tenumerable: true,\n\t\tget: () => copyOf(entry)\n\t}]))));\n\tconst allImmutable = entries.every((entry) => entry.immutable);\n\tconst immutableValues = Object.freeze(entries.map((entry) => entry.value));\n\tconst equalityKey = codec?.dataType.equalityKey;\n\tconst primitiveOrdinals = /* @__PURE__ */ new Map();\n\tconst objectOrdinals = /* @__PURE__ */ new Map();\n\tconst equalOrdinals = /* @__PURE__ */ new Map();\n\tentries.forEach((entry, ordinal) => {\n\t\tif (isObject(entry.value)) objectOrdinals.set(storedFormKey(entry.value), ordinal);\n\t\telse primitiveOrdinals.set(entry.value, ordinal);\n\t\tif (equalityKey !== void 0) equalOrdinals.set(equalityKey(entry.stored), ordinal);\n\t});\n\t/** The member the data type's equality holds `v` equal to, for a type whose equal values have more than one stored form. */\n\tconst equalOrdinalOf = (v) => {\n\t\tif (equalityKey === void 0 || codec === void 0) return -1;\n\t\ttry {\n\t\t\treturn equalOrdinals.get(equalityKey(codec.dataType.toContract(codec.toDataTypeValue(v)))) ?? -1;\n\t\t} catch (error) {\n\t\t\tif (isInternalError(error)) throw error;\n\t\t\treturn -1;\n\t\t}\n\t};\n\tconst ordinalOf = (v) => {\n\t\tif (!isObject(v)) return primitiveOrdinals.get(v) ?? equalOrdinalOf(v);\n\t\tlet key;\n\t\ttry {\n\t\t\tkey = storedFormKey(v);\n\t\t} catch (error) {\n\t\t\tif (isInternalError(error)) throw error;\n\t\t\treturn -1;\n\t\t}\n\t\tconst ordinal = objectOrdinals.get(key) ?? -1;\n\t\tconst member = entries[ordinal]?.value;\n\t\treturn isObject(member) && kindOf(member) === kindOf(v) ? ordinal : equalOrdinalOf(v);\n\t};\n\treturn {\n\t\tget values() {\n\t\t\treturn allImmutable ? immutableValues : Object.freeze(entries.map(copyOf));\n\t\t},\n\t\tnames,\n\t\tmembers,\n\t\thas: (v) => ordinalOf(v) !== -1,\n\t\thasName: (name) => nameSet.has(name),\n\t\tnameOf: (v) => {\n\t\t\tconst ordinal = ordinalOf(v);\n\t\t\treturn ordinal === -1 ? void 0 : names[ordinal];\n\t\t},\n\t\tordinalOf\n\t};\n}\n/**\n* The accessors for one namespace's enums. Each enum's codec is resolved here, so a contract whose enum codec `codecFor` lacks fails now; its members are decoded when the enum is first read, so a codec that needs something the runtime lacks, such as `Temporal`, fails only then.\n*/\nfunction buildEnumsMapForNamespace(domain, namespaceId, codecFor) {\n\tconst result = {};\n\tconst namespace = domain.namespaces[namespaceId];\n\tif (namespace?.enum) for (const [name, contractEnum] of Object.entries(namespace.enum)) {\n\t\tconst codec = codecFor(contractEnum.codecId);\n\t\tlet accessor;\n\t\tObject.defineProperty(result, name, {\n\t\t\tenumerable: true,\n\t\t\tget: () => {\n\t\t\t\taccessor ??= createEnumAccessor(contractEnum, codec);\n\t\t\t\treturn accessor;\n\t\t\t}\n\t\t});\n\t}\n\treturn result;\n}\nfunction buildNamespacedEnums(domain, codecFor) {\n\tconst result = {};\n\tfor (const namespaceId of Object.keys(domain.namespaces)) result[namespaceId] = buildEnumsMapForNamespace(domain, namespaceId, codecFor);\n\treturn blindCast(result);\n}\n//#endregion\nexport { buildEnumsMapForNamespace, buildNamespacedEnums, createEnumAccessor };\n\n//# sourceMappingURL=enum-accessor.mjs.map"],"mappings":";;;;AAIA,SAAS,SAAS,OAAO;CACxB,OAAO,OAAO,UAAU,YAAY,UAAU;AAC/C;AACA,SAAS,OAAO,OAAO;CACtB,OAAO,OAAO,UAAU,SAAS,KAAK,KAAK;AAC5C;AACA,SAAS,YAAY,OAAO;CAC3B,IAAI,CAAC,SAAS,KAAK,GAAG,OAAO;CAC7B,IAAI,iBAAiB,QAAQ,iBAAiB,YAAY,OAAO;CACjE,OAAO,OAAO,SAAS,KAAK,K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AAK,IAAI,MAAM;EACxC;EACA;CACD;AACD;;;;AAIA,SAAS,0BAA0B,QAAQ,aAAa,UAAU;CACjE,MAAM,SAAS,CAAC;CAChB,MAAM,YAAY,OAAO,WAAW;CACpC,IAAI,WAAW,MAAM,KAAK,MAAM,CAAC,MAAM,iBAAiB,OAAO,QAAQ,UAAU,IAAI,GAAG;EACvF,MAAM,QAAQ,SAAS,aAAa,OAAO;EAC3C,IAAI;EACJ,OAAO,eAAe,QAAQ,MAAM;GACnC,YAAY;GACZ,WAAW;IACV,aAAa,mBAAmB,cAAc,KAAK;IACnD,OAAO;GACR;EACD,CAAC;CACF;CACA,OAAO;AACR;AACA,SAAS,qBAAqB,QAAQ,UAAU;CAC/C,MAAM,SAAS,CAAC;CAChB,KAAK,MAAM,eAAe,OAAO,KAAK,OAAO,UAAU,GAAG,OAAO,eAAe,0BAA0B,QAAQ,aAAa,QAAQ;CACvI,OAAO,UAAU,MAAM;AACxB"}
|
package/dist/errors.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import
|
|
3
|
-
import { a as
|
|
4
|
-
|
|
1
|
+
import { C as errorOutputFormatMutex, E as errorUnexpected, S as errorMigrationPlanningFailed, T as errorTargetMigrationNotSupported, _ as errorInvalidOutputFormat, a as errorConfigEvaluationFailed, b as errorMigrationCliInvalidConfigArg, c as errorConfigVersionMarkerMissing, d as errorContractValidationFailed, f as errorDatabaseConnectionRequired, g as errorFileNotFound, h as errorFamilyReadMarkerSqlRequired, i as CliStructuredError, l as errorContractConfigMissing, m as errorEnumCodecNotInPackStack, n as CliErrorConflict, o as errorConfigFileNotFound, p as errorDriverRequired, r as CliErrorEnvelope, s as errorConfigValidation, t as CheckedMigrationConfig, u as errorContractMissingExtensions, v as errorJsonFormatNotSupported, w as errorQueryRunnerFactoryRequired, x as errorMigrationCliUnknownFlag, y as errorMigrationCliConfigNotFound } from "./control-B5ezUWD2-BIAYxeSk.mjs";
|
|
2
|
+
import "./control-DrDTlxCS.mjs";
|
|
3
|
+
import { a as errorMarkerRowCorrupt, c as parseMarkerRowSafely, i as errorMarkerRequired, l as rethrowMarkerReadError, n as errorMarkerMissing, o as errorRuntime, r as errorMarkerReadFailed, s as errorTargetMismatch, t as errorHashMismatch, u as withMarkerReadErrorHandling } from "./execution-CjX5CCTb.mjs";
|
|
4
|
+
import { a as errorMigrationPlanNotArray, c as placeholder, i as errorMigrationOperationOptionRemoved, l as unfilledPlaceholderOperation, n as errorMigrationFileMissing, o as errorMigrationTargetMismatch, r as errorMigrationInvalidDefaultExport, s as errorUnfilledPlaceholder, t as errorDataTransformContractMismatch } from "./migration-Dluwnqe9.mjs";
|
|
5
|
+
export { type CheckedMigrationConfig, type CliErrorConflict, type CliErrorEnvelope, CliStructuredError, errorConfigEvaluationFailed, errorConfigFileNotFound, errorConfigValidation, errorConfigVersionMarkerMissing, errorContractConfigMissing, errorContractMissingExtensions, errorContractValidationFailed, errorDataTransformContractMismatch, errorDatabaseConnectionRequired, errorDriverRequired, errorEnumCodecNotInPackStack, errorFamilyReadMarkerSqlRequired, errorFileNotFound, errorHashMismatch, errorInvalidOutputFormat, errorJsonFormatNotSupported, errorMarkerMissing, errorMarkerReadFailed, errorMarkerRequired, errorMarkerRowCorrupt, errorMigrationCliConfigNotFound, errorMigrationCliInvalidConfigArg, errorMigrationCliUnknownFlag, errorMigrationFileMissing, errorMigrationInvalidDefaultExport, errorMigrationOperationOptionRemoved, errorMigrationPlanNotArray, errorMigrationPlanningFailed, errorMigrationTargetMismatch, errorOutputFormatMutex, errorQueryRunnerFactoryRequired, errorRuntime, errorTargetMigrationNotSupported, errorTargetMismatch, errorUnexpected, errorUnfilledPlaceholder, parseMarkerRowSafely, placeholder, rethrowMarkerReadError, unfilledPlaceholderOperation, withMarkerReadErrorHandling };
|
package/dist/errors.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
import { a as
|
|
3
|
-
import { a as
|
|
4
|
-
export { CliStructuredError,
|
|
1
|
+
import { C as errorTargetMigrationNotSupported, S as errorQueryRunnerFactoryRequired, _ as errorMigrationCliConfigNotFound, a as errorConfigValidation, b as errorMigrationPlanningFailed, c as errorContractMissingExtensions, d as errorDriverRequired, f as errorEnumCodecNotInPackStack, g as errorJsonFormatNotSupported, h as errorInvalidOutputFormat, i as errorConfigFileNotFound, l as errorContractValidationFailed, m as errorFileNotFound, o as errorConfigVersionMarkerMissing, p as errorFamilyReadMarkerSqlRequired, r as errorConfigEvaluationFailed, s as errorContractConfigMissing, t as CliStructuredError, u as errorDatabaseConnectionRequired, v as errorMigrationCliInvalidConfigArg, w as errorUnexpected, x as errorOutputFormatMutex, y as errorMigrationCliUnknownFlag } from "./control-KsXr4fYD-D2Ows0NI.mjs";
|
|
2
|
+
import { a as errorMarkerRowCorrupt, c as parseMarkerRowSafely, i as errorMarkerRequired, l as rethrowMarkerReadError, n as errorMarkerMissing, o as errorRuntime, r as errorMarkerReadFailed, s as errorTargetMismatch, t as errorHashMismatch, u as withMarkerReadErrorHandling } from "./execution-vfY4d-SZ.mjs";
|
|
3
|
+
import { a as errorMigrationPlanNotArray, c as placeholder, i as errorMigrationOperationOptionRemoved, l as unfilledPlaceholderOperation, n as errorMigrationFileMissing, o as errorMigrationTargetMismatch, r as errorMigrationInvalidDefaultExport, s as errorUnfilledPlaceholder, t as errorDataTransformContractMismatch } from "./migration-uC-bSKA4.mjs";
|
|
4
|
+
export { CliStructuredError, errorConfigEvaluationFailed, errorConfigFileNotFound, errorConfigValidation, errorConfigVersionMarkerMissing, errorContractConfigMissing, errorContractMissingExtensions, errorContractValidationFailed, errorDataTransformContractMismatch, errorDatabaseConnectionRequired, errorDriverRequired, errorEnumCodecNotInPackStack, errorFamilyReadMarkerSqlRequired, errorFileNotFound, errorHashMismatch, errorInvalidOutputFormat, errorJsonFormatNotSupported, errorMarkerMissing, errorMarkerReadFailed, errorMarkerRequired, errorMarkerRowCorrupt, errorMigrationCliConfigNotFound, errorMigrationCliInvalidConfigArg, errorMigrationCliUnknownFlag, errorMigrationFileMissing, errorMigrationInvalidDefaultExport, errorMigrationOperationOptionRemoved, errorMigrationPlanNotArray, errorMigrationPlanningFailed, errorMigrationTargetMismatch, errorOutputFormatMutex, errorQueryRunnerFactoryRequired, errorRuntime, errorTargetMigrationNotSupported, errorTargetMismatch, errorUnexpected, errorUnfilledPlaceholder, parseMarkerRowSafely, placeholder, rethrowMarkerReadError, unfilledPlaceholderOperation, withMarkerReadErrorHandling };
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
|
|
1
|
+
import { C as errorOutputFormatMutex, E as errorUnexpected, S as errorMigrationPlanningFailed, T as errorTargetMigrationNotSupported, _ as errorInvalidOutputFormat, a as errorConfigEvaluationFailed, b as errorMigrationCliInvalidConfigArg, c as errorConfigVersionMarkerMissing, d as errorContractValidationFailed, f as errorDatabaseConnectionRequired, g as errorFileNotFound, h as errorFamilyReadMarkerSqlRequired, i as CliStructuredError, l as errorContractConfigMissing, m as errorEnumCodecNotInPackStack, n as CliErrorConflict, o as errorConfigFileNotFound, p as errorDriverRequired, r as CliErrorEnvelope, s as errorConfigValidation, t as CheckedMigrationConfig, u as errorContractMissingExtensions, v as errorJsonFormatNotSupported, w as errorQueryRunnerFactoryRequired, x as errorMigrationCliUnknownFlag, y as errorMigrationCliConfigNotFound } from "./control-B5ezUWD2-BIAYxeSk.mjs";
|
|
2
|
+
import "./control-DrDTlxCS.mjs";
|
|
3
|
+
export { type CheckedMigrationConfig, type CliErrorConflict, type CliErrorEnvelope, CliStructuredError, errorConfigEvaluationFailed, errorConfigFileNotFound, errorConfigValidation, errorConfigVersionMarkerMissing, errorContractConfigMissing, errorContractMissingExtensions, errorContractValidationFailed, errorDatabaseConnectionRequired, errorDriverRequired, errorEnumCodecNotInPackStack, errorFamilyReadMarkerSqlRequired, errorFileNotFound, errorInvalidOutputFormat, errorJsonFormatNotSupported, errorMigrationCliConfigNotFound, errorMigrationCliInvalidConfigArg, errorMigrationCliUnknownFlag, errorMigrationPlanningFailed, errorOutputFormatMutex, errorQueryRunnerFactoryRequired, errorTargetMigrationNotSupported, errorUnexpected };
|
package/dist/errors__control.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as
|
|
2
|
-
export { CliStructuredError, errorConfigEvaluationFailed, errorConfigFileNotFound, errorConfigValidation, errorConfigVersionMarkerMissing, errorContractConfigMissing, errorContractMissingExtensions, errorContractValidationFailed, errorDatabaseConnectionRequired, errorDriverRequired, errorEnumCodecNotInPackStack, errorFamilyReadMarkerSqlRequired, errorFileNotFound, errorInvalidOutputFormat, errorJsonFormatNotSupported, errorMigrationCliInvalidConfigArg, errorMigrationCliUnknownFlag, errorMigrationPlanningFailed, errorOutputFormatMutex, errorQueryRunnerFactoryRequired, errorTargetMigrationNotSupported, errorUnexpected };
|
|
1
|
+
import { C as errorTargetMigrationNotSupported, S as errorQueryRunnerFactoryRequired, _ as errorMigrationCliConfigNotFound, a as errorConfigValidation, b as errorMigrationPlanningFailed, c as errorContractMissingExtensions, d as errorDriverRequired, f as errorEnumCodecNotInPackStack, g as errorJsonFormatNotSupported, h as errorInvalidOutputFormat, i as errorConfigFileNotFound, l as errorContractValidationFailed, m as errorFileNotFound, o as errorConfigVersionMarkerMissing, p as errorFamilyReadMarkerSqlRequired, r as errorConfigEvaluationFailed, s as errorContractConfigMissing, t as CliStructuredError, u as errorDatabaseConnectionRequired, v as errorMigrationCliInvalidConfigArg, w as errorUnexpected, x as errorOutputFormatMutex, y as errorMigrationCliUnknownFlag } from "./control-KsXr4fYD-D2Ows0NI.mjs";
|
|
2
|
+
export { CliStructuredError, errorConfigEvaluationFailed, errorConfigFileNotFound, errorConfigValidation, errorConfigVersionMarkerMissing, errorContractConfigMissing, errorContractMissingExtensions, errorContractValidationFailed, errorDatabaseConnectionRequired, errorDriverRequired, errorEnumCodecNotInPackStack, errorFamilyReadMarkerSqlRequired, errorFileNotFound, errorInvalidOutputFormat, errorJsonFormatNotSupported, errorMigrationCliConfigNotFound, errorMigrationCliInvalidConfigArg, errorMigrationCliUnknownFlag, errorMigrationPlanningFailed, errorOutputFormatMutex, errorQueryRunnerFactoryRequired, errorTargetMigrationNotSupported, errorUnexpected };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export {
|
|
1
|
+
import { a as errorMarkerRowCorrupt, c as parseMarkerRowSafely, i as errorMarkerRequired, l as rethrowMarkerReadError, n as errorMarkerMissing, o as errorRuntime, r as errorMarkerReadFailed, s as errorTargetMismatch, t as errorHashMismatch, u as withMarkerReadErrorHandling } from "./execution-CjX5CCTb.mjs";
|
|
2
|
+
export { errorHashMismatch, errorMarkerMissing, errorMarkerReadFailed, errorMarkerRequired, errorMarkerRowCorrupt, errorRuntime, errorTargetMismatch, parseMarkerRowSafely, rethrowMarkerReadError, withMarkerReadErrorHandling };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export {
|
|
1
|
+
import { a as errorMarkerRowCorrupt, c as parseMarkerRowSafely, i as errorMarkerRequired, l as rethrowMarkerReadError, n as errorMarkerMissing, o as errorRuntime, r as errorMarkerReadFailed, s as errorTargetMismatch, t as errorHashMismatch, u as withMarkerReadErrorHandling } from "./execution-vfY4d-SZ.mjs";
|
|
2
|
+
export { errorHashMismatch, errorMarkerMissing, errorMarkerReadFailed, errorMarkerRequired, errorMarkerRowCorrupt, errorRuntime, errorTargetMismatch, parseMarkerRowSafely, rethrowMarkerReadError, withMarkerReadErrorHandling };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { errorDataTransformContractMismatch, errorMigrationFileMissing, errorMigrationInvalidDefaultExport, errorMigrationPlanNotArray, errorMigrationTargetMismatch, errorUnfilledPlaceholder, placeholder };
|
|
1
|
+
import { a as errorMigrationPlanNotArray, c as placeholder, i as errorMigrationOperationOptionRemoved, l as unfilledPlaceholderOperation, n as errorMigrationFileMissing, o as errorMigrationTargetMismatch, r as errorMigrationInvalidDefaultExport, s as errorUnfilledPlaceholder, t as errorDataTransformContractMismatch } from "./migration-Dluwnqe9.mjs";
|
|
2
|
+
export { errorDataTransformContractMismatch, errorMigrationFileMissing, errorMigrationInvalidDefaultExport, errorMigrationOperationOptionRemoved, errorMigrationPlanNotArray, errorMigrationTargetMismatch, errorUnfilledPlaceholder, placeholder, unfilledPlaceholderOperation };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
export { errorDataTransformContractMismatch, errorMigrationFileMissing, errorMigrationInvalidDefaultExport, errorMigrationPlanNotArray, errorMigrationTargetMismatch, errorUnfilledPlaceholder, placeholder };
|
|
1
|
+
import { a as errorMigrationPlanNotArray, c as placeholder, i as errorMigrationOperationOptionRemoved, l as unfilledPlaceholderOperation, n as errorMigrationFileMissing, o as errorMigrationTargetMismatch, r as errorMigrationInvalidDefaultExport, s as errorUnfilledPlaceholder, t as errorDataTransformContractMismatch } from "./migration-uC-bSKA4.mjs";
|
|
2
|
+
export { errorDataTransformContractMismatch, errorMigrationFileMissing, errorMigrationInvalidDefaultExport, errorMigrationOperationOptionRemoved, errorMigrationPlanNotArray, errorMigrationTargetMismatch, errorUnfilledPlaceholder, placeholder, unfilledPlaceholderOperation };
|