@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,289 @@
|
|
|
1
|
+
import { B as JsonValue, d as ContractField, tt as ValueSetRef } from "./domain-envelope-CN721GnP-4huRt7Wc.mjs";
|
|
2
|
+
import { c as CodecDescriptorTemplate, d as CodecInstanceContext, i as Codec, m as CodecRef, p as CodecLookupWithDescriptors, r as Cast, t as AnyCodecDescriptor, v as DataTypeId } from "./codec-types-CPgEZoIq-BL9hisr8.mjs";
|
|
3
|
+
//#region ../../../1-framework/1-core/framework-components/dist/codec.d.mts
|
|
4
|
+
//#region src/shared/casts.d.ts
|
|
5
|
+
/** A cast between two types that store the same shape: the value is already the form this type stores. */
|
|
6
|
+
declare const castUnchanged: Cast;
|
|
7
|
+
/** Refuses a value that is not in the shape the cast's source type stores. */
|
|
8
|
+
declare function refuseWrongShape(value: JsonValue, expected: string): never;
|
|
9
|
+
/** A whole number as the digit text a 64-bit integer or decimal type stores. */
|
|
10
|
+
declare const asNumeralText: Cast;
|
|
11
|
+
/**
|
|
12
|
+
* A number as the floating-point types store it: a JSON number, or one of the three words, which
|
|
13
|
+
* those types keep as text. A magnitude past what a double holds is refused rather than rounded to
|
|
14
|
+
* a word: the database refuses it too, and storing `Infinity` would make a written number
|
|
15
|
+
* indistinguishable from a written `Infinity`.
|
|
16
|
+
*/
|
|
17
|
+
declare const asFloat: Cast;
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/shared/column-spec.d.ts
|
|
20
|
+
/**
|
|
21
|
+
* Authored column-type descriptor — the data shape an authoring site (PSL or TypeScript builders) attaches to a column to identify its codec.
|
|
22
|
+
*
|
|
23
|
+
* Lives at the framework-components layer alongside the codec types so codec-author packages (e.g. column-spec / `column()` packagers) can extend it directly without crossing layer boundaries.
|
|
24
|
+
*
|
|
25
|
+
* @template TCodecId Narrowed codec id literal for sites that thread a specific codec id through the type system.
|
|
26
|
+
*/
|
|
27
|
+
type ColumnTypeDescriptor<TCodecId extends string = string> = {
|
|
28
|
+
readonly codecId: TCodecId;
|
|
29
|
+
readonly typeParams?: Record<string, unknown> | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Storage-plane value-set ref, set by an authoring path that resolves a
|
|
32
|
+
* field's type against a value-set-deriving entity (e.g. a PSL entity-ref
|
|
33
|
+
* type constructor like `pg.enum(Ref)`, or a TS `enumType` handle).
|
|
34
|
+
* Threaded straight onto the storage node this descriptor builds, where it
|
|
35
|
+
* drives value-set → codec typing. Every codec's own descriptor leaves this
|
|
36
|
+
* unset.
|
|
37
|
+
*/
|
|
38
|
+
readonly valueSet?: ValueSetRef;
|
|
39
|
+
readonly entityRef?: EntityRef;
|
|
40
|
+
};
|
|
41
|
+
/** The codec part of a type descriptor, which is all a reader of a field declaration needs. */
|
|
42
|
+
interface CodecDescriptorRef<CodecId extends string = string> {
|
|
43
|
+
readonly codecId: CodecId;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* What a field builder declares about its field: the descriptor of the field's type, when the builder names one, whether the value may be null, and whether the field is a list, recorded as a contract field records it: `false` for one value, `{ elementNullable }` for a list. Readers that only need the codec, the nullability and the list kind read this instead of the builder's own type.
|
|
47
|
+
*/
|
|
48
|
+
interface ScalarFieldDeclaration<Descriptor extends CodecDescriptorRef = CodecDescriptorRef, Nullable extends boolean = boolean> {
|
|
49
|
+
readonly descriptor?: Descriptor | undefined;
|
|
50
|
+
readonly nullable: Nullable;
|
|
51
|
+
readonly many?: ContractField['many'];
|
|
52
|
+
}
|
|
53
|
+
/** A field builder, read through the declaration its `build()` returns. */
|
|
54
|
+
interface ScalarFieldDeclarationBuilder<Descriptor extends CodecDescriptorRef = CodecDescriptorRef, Nullable extends boolean = boolean> {
|
|
55
|
+
build(): ScalarFieldDeclaration<Descriptor, Nullable>;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Late-resolved pack-entity reference — a field on the type descriptor it is
|
|
59
|
+
* declared on: `entityKind`/`entityName` identify a pack entity whose final
|
|
60
|
+
* placement depends on data not yet known when the descriptor carrying this
|
|
61
|
+
* reference is built — e.g. an owning namespace resolved only once the
|
|
62
|
+
* surrounding structure is assembled.
|
|
63
|
+
*/
|
|
64
|
+
type EntityRef = {
|
|
65
|
+
readonly entityKind: string;
|
|
66
|
+
readonly entityName: string;
|
|
67
|
+
readonly entity: unknown;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Column spec carrying the codec factory closure alongside the {@link ColumnTypeDescriptor} fields. Codec authors return a `ColumnSpec` from per-codec column helpers; the runtime materializes the codec instance by calling `codecFactory(ctx)` once it knows the column's `CodecInstanceContext`.
|
|
71
|
+
*
|
|
72
|
+
* Extends {@link ColumnTypeDescriptor} so `ColumnSpec` instances flow directly into contract-authoring sites that consume the descriptor shape — no structural mirroring required.
|
|
73
|
+
*/
|
|
74
|
+
interface ColumnSpec<R, P extends Record<string, unknown> | undefined> extends ColumnTypeDescriptor {
|
|
75
|
+
readonly codecFactory: (ctx: CodecInstanceContext) => R;
|
|
76
|
+
readonly typeParams: P;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Trivial column packager. Per-codec helpers call this directly with the result of `descriptor.factory(params)` — direct method invocation binds the descriptor's method-level generic at the call site and the literal flows through `R`.
|
|
80
|
+
*/
|
|
81
|
+
declare function column<R, P extends Record<string, unknown> | undefined>(codecFactory: (ctx: CodecInstanceContext) => R, codecId: string, typeParams: P): ColumnSpec<R, P>;
|
|
82
|
+
/**
|
|
83
|
+
* Coarse `satisfies` shape — checks the helper's typeParams record matches the descriptor's factory params. Catches "wrong typeParams shape" wiring mistakes; does NOT catch "wrong descriptor's factory" mistakes (the codec slot is left as `unknown`).
|
|
84
|
+
*
|
|
85
|
+
* Use when the codec's `ReturnType<factory>` is unstable (e.g. heavily overloaded factories where extraction widens too much).
|
|
86
|
+
*/
|
|
87
|
+
type ColumnHelperFor<D extends CodecDescriptorTemplate<any>> = (...args: any[]) => ColumnSpec<unknown, ColumnHelperParams<D>>;
|
|
88
|
+
/**
|
|
89
|
+
* Strict `satisfies` shape — also checks the helper's codec is at least the *base* codec instance type the descriptor's factory returns. `ReturnType<ReturnType<D['factory']>>` widens method generics to their constraint, so this only sanity-checks the wiring at the base type level. Literal preservation comes from the direct `descriptor.factory(...)` call inside the helper, not from `satisfies`.
|
|
90
|
+
*/
|
|
91
|
+
type ColumnHelperForStrict<D extends CodecDescriptorTemplate<any>> = (...args: any[]) => ColumnSpec<ReturnType<ReturnType<D['factory']>>, ColumnHelperParams<D>>;
|
|
92
|
+
/**
|
|
93
|
+
* Coerce a descriptor's `factory` first parameter into the typeParams shape `ColumnSpec` accepts. Non-parameterized descriptors (factory with no params, or `params: void`) collapse to `undefined`; parameterized descriptors keep the params record shape.
|
|
94
|
+
*/
|
|
95
|
+
type ColumnHelperParams<D extends CodecDescriptorTemplate<any>> = Parameters<D['factory']>[0] extends Record<string, unknown> ? Parameters<D['factory']>[0] : undefined;
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region src/shared/data-type-id-pattern.d.ts
|
|
98
|
+
/** The whole of what a data type id is: `owner/name` in lower case, with no version. */
|
|
99
|
+
declare const DATA_TYPE_ID_PATTERN: RegExp;
|
|
100
|
+
//#endregion
|
|
101
|
+
//#region src/shared/date-time-stored-form.d.ts
|
|
102
|
+
/**
|
|
103
|
+
* The reader targets build the stored form of each date and time type with; ADR 254
|
|
104
|
+
* states the forms and the text it reads.
|
|
105
|
+
*/
|
|
106
|
+
/** What a date or time type holds, which decides the text it reads and writes. */
|
|
107
|
+
type DateTimeShape = 'date' | 'time' | 'timeWithOffset' | 'dateTime' | 'instant';
|
|
108
|
+
interface DateTimeStoredTextOptions {
|
|
109
|
+
readonly shape: DateTimeShape;
|
|
110
|
+
/** The id of the data type or codec that declares this stored form, which messages name. */
|
|
111
|
+
readonly ownerId: string;
|
|
112
|
+
/** The largest UTC offset the type holds, in hours. Defaults to 23. */
|
|
113
|
+
readonly maxOffsetHours?: number;
|
|
114
|
+
/** The most digits after the decimal point the type holds. Defaults to 6, microseconds. */
|
|
115
|
+
readonly maxFractionDigits?: 3 | 6;
|
|
116
|
+
/** The earliest and latest values the type holds, each in stored form. */
|
|
117
|
+
readonly range?: {
|
|
118
|
+
readonly earliest: string;
|
|
119
|
+
readonly latest: string;
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* The stored form of written date or time text, or a refusal with a message that says what is
|
|
124
|
+
* wrong and shows text the type holds. `written` is the text as its author wrote it, which the
|
|
125
|
+
* message shows, when a target rewrote it into ISO 8601 before calling this.
|
|
126
|
+
*/
|
|
127
|
+
declare function dateTimeStoredText(text: string, options: DateTimeStoredTextOptions, written?: string): string;
|
|
128
|
+
/**
|
|
129
|
+
* The instant in UTC with exactly three fraction digits, the text `Date.prototype.toISOString()` writes, from ISO 8601 text with a UTC offset. The range and the millisecond precision are those of a JavaScript `Date`. Throws `CONTRACT.CAST_REFUSED`, naming `ownerId`, for text that names no instant a `Date` holds.
|
|
130
|
+
*/
|
|
131
|
+
declare function isoDateStringText(text: string, ownerId: string): string;
|
|
132
|
+
//#endregion
|
|
133
|
+
//#region src/shared/decimal-text-equality.d.ts
|
|
134
|
+
/**
|
|
135
|
+
* The key two decimal texts share exactly when they are the same number, for a data type that stores a decimal as text and keeps the scale it was written with, as `numeric` stores `0.5` and `0.50`: leading zeros, trailing fraction zeros and the sign of zero do not count. `NaN` and the infinities keep their own keys.
|
|
136
|
+
*/
|
|
137
|
+
declare function decimalTextEqualityKey(json: JsonValue): string;
|
|
138
|
+
//#endregion
|
|
139
|
+
//#region src/shared/json-readers.d.ts
|
|
140
|
+
/**
|
|
141
|
+
* The refusal of a JSON value: `RUNTIME.DECODE_FAILED`, `<owner> JSON value must be <expected>`, with `meta.received`, the value it was given as JSON text, cut to 100 characters, and `meta.dataType` or `meta.codecId` naming the owner. A data type id carries no version and a codec id does, so the id says which it is.
|
|
142
|
+
*/
|
|
143
|
+
declare function refuseJsonValue(owner: string, expected: string, json: JsonValue): never;
|
|
144
|
+
declare function readJsonString(owner: string, json: JsonValue): string;
|
|
145
|
+
/** Reads a JSON string that matches `pattern`; `form` names what the pattern accepts, for the refusal. */
|
|
146
|
+
declare function readJsonMatching(owner: string, json: JsonValue, pattern: RegExp, form: string): string;
|
|
147
|
+
declare function readJsonBoolean(owner: string, json: JsonValue): boolean;
|
|
148
|
+
interface IntegerRange {
|
|
149
|
+
readonly min: number;
|
|
150
|
+
readonly max: number;
|
|
151
|
+
}
|
|
152
|
+
/** Whether `value` is an integer within `range`, its ends included. */
|
|
153
|
+
declare function isIntegerIn(value: unknown, range: IntegerRange): value is number;
|
|
154
|
+
/** The integers a JavaScript `number` holds exactly. */
|
|
155
|
+
declare const SAFE_INTEGER_RANGE: IntegerRange;
|
|
156
|
+
/** The integers a signed 32-bit integer holds. */
|
|
157
|
+
declare const INT32_RANGE: IntegerRange;
|
|
158
|
+
declare function readJsonInteger(owner: string, json: JsonValue, range: IntegerRange): number;
|
|
159
|
+
interface BigIntRange {
|
|
160
|
+
readonly min: bigint;
|
|
161
|
+
readonly max: bigint;
|
|
162
|
+
}
|
|
163
|
+
/** The integers a signed 64-bit integer holds. */
|
|
164
|
+
declare const INT64_RANGE: BigIntRange;
|
|
165
|
+
/** The integers a JavaScript `number` holds exactly, as a `bigint` range. */
|
|
166
|
+
declare const SAFE_INTEGER_BIGINT_RANGE: BigIntRange;
|
|
167
|
+
/**
|
|
168
|
+
* Reads an integer a codec writes as decimal text, because a JSON number cannot hold every value of its type. The text must be the integer's decimal text, with no leading zeros and no minus sign on zero; another spelling is refused with the text to write, as `"7"` for `"007"`.
|
|
169
|
+
*/
|
|
170
|
+
declare function readJsonIntegerText(owner: string, json: JsonValue, range?: BigIntRange): bigint;
|
|
171
|
+
/** Whether `text` is `NaN`, `Infinity` or `-Infinity`, the text a float's JSON form writes for a value JSON has no number for. */
|
|
172
|
+
declare function isNonFiniteText(text: string): boolean;
|
|
173
|
+
/** JSON has no number for NaN or an infinity, so a float's JSON form writes them as the text `NaN`, `Infinity` and `-Infinity`. */
|
|
174
|
+
declare function floatToJson(value: number): JsonValue;
|
|
175
|
+
declare function readJsonFloat(owner: string, json: JsonValue): number;
|
|
176
|
+
//#endregion
|
|
177
|
+
//#region src/shared/json-text.d.ts
|
|
178
|
+
/**
|
|
179
|
+
* Read JSON text into the document it holds.
|
|
180
|
+
*
|
|
181
|
+
* `JSON.parse` reads a numeral too large for a double as `Infinity`, and `JSON.stringify` writes
|
|
182
|
+
* that back as `null`, so a document holding one would not be the document stored; it is refused
|
|
183
|
+
* here instead, naming where the number is.
|
|
184
|
+
*/
|
|
185
|
+
declare function parseJsonText(text: string): JsonValue;
|
|
186
|
+
/** Write a document as the text of a JSON literal. */
|
|
187
|
+
declare function printJsonText(value: JsonValue): string;
|
|
188
|
+
//#endregion
|
|
189
|
+
//#region src/shared/number-classifier.d.ts
|
|
190
|
+
/** Whether `text` is a whole number or a decimal as a contract source writes one. */
|
|
191
|
+
declare function isNumeralText(text: string): boolean;
|
|
192
|
+
/**
|
|
193
|
+
* A written numeral as the contract stores it. Leading zeros and the sign of zero never change a
|
|
194
|
+
* number, so they go; trailing zeros stay, because a type without a scale keeps them.
|
|
195
|
+
*/
|
|
196
|
+
declare function storedNumeralText(text: string): string;
|
|
197
|
+
/** Which data type a written number is, and whether that type stores it as a number or as text. */
|
|
198
|
+
interface NumberClassification {
|
|
199
|
+
readonly type: DataTypeId;
|
|
200
|
+
readonly form: 'number' | 'text';
|
|
201
|
+
}
|
|
202
|
+
/** One integer type and the range of whole numbers it holds. */
|
|
203
|
+
interface IntegerStep extends NumberClassification {
|
|
204
|
+
readonly min: bigint;
|
|
205
|
+
readonly max: bigint;
|
|
206
|
+
}
|
|
207
|
+
/** The range of a signed integer of `bits` bits. */
|
|
208
|
+
declare function signedRange(bits: number): {
|
|
209
|
+
readonly min: bigint;
|
|
210
|
+
readonly max: bigint;
|
|
211
|
+
};
|
|
212
|
+
interface NumberClassifierSpec {
|
|
213
|
+
/** Tried in order; the first whose range holds the digits wins. */
|
|
214
|
+
readonly integers: readonly IntegerStep[];
|
|
215
|
+
/** A whole number no step holds. Absent means the target has no type for it. */
|
|
216
|
+
readonly largerWhole?: NumberClassification | undefined;
|
|
217
|
+
/** A number with a fraction. Absent means the target has no type for it. */
|
|
218
|
+
readonly fraction?: NumberClassification | undefined;
|
|
219
|
+
/** `NaN`, `Infinity` and `-Infinity`. Absent means the target has no type for them. */
|
|
220
|
+
readonly words?: NumberClassification | undefined;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* The classifier one target's plain-number authoring entry carries: it reads the digits and says
|
|
224
|
+
* which of the target's types the value is, in that type's stored form. `undefined` means no
|
|
225
|
+
* type of this target holds the number.
|
|
226
|
+
*/
|
|
227
|
+
declare function createNumberClassifier(spec: NumberClassifierSpec): (text: string) => {
|
|
228
|
+
readonly type: DataTypeId;
|
|
229
|
+
readonly value: JsonValue;
|
|
230
|
+
} | undefined;
|
|
231
|
+
//#endregion
|
|
232
|
+
//#region src/shared/numeral-text.d.ts
|
|
233
|
+
/**
|
|
234
|
+
* A number as a contract source writes it: no exponent, because no schema language has that syntax,
|
|
235
|
+
* so the decimal point moves to where the exponent puts it. A non-finite number is its own word.
|
|
236
|
+
*/
|
|
237
|
+
declare function numeralText(value: number): string;
|
|
238
|
+
//#endregion
|
|
239
|
+
//#region src/shared/render-ts-literal.d.ts
|
|
240
|
+
/**
|
|
241
|
+
* Renders a stored value as a TypeScript literal (e.g. `"low"`, `1`, `true`), or `undefined`
|
|
242
|
+
* when the value isn't literal-expressible (objects, arrays, null).
|
|
243
|
+
*
|
|
244
|
+
* Valid **only for codecs whose application value is the stored JSON** (text, int, float, bool). A
|
|
245
|
+
* codec whose application value differs from the stored JSON (e.g. digit text read as a `bigint`)
|
|
246
|
+
* must NOT use this: it renders the application value in its own `renderValueLiteral`.
|
|
247
|
+
*/
|
|
248
|
+
declare function renderTsLiteral(value: JsonValue): string | undefined;
|
|
249
|
+
/** Renders decimal integer text, read as a `number`, as a number literal, or `undefined` for any other value. */
|
|
250
|
+
declare function decimalTextNumberLiteral(value: JsonValue): string | undefined;
|
|
251
|
+
/** Renders decimal integer text, read as a `bigint`, as a bigint literal, or `undefined` for any other value. */
|
|
252
|
+
declare function decimalTextBigintLiteral(value: JsonValue): string | undefined;
|
|
253
|
+
/** Renders a float's stored number as a number literal. A target stores an infinity, and NaN where it holds one (SQLite does not), as text, which has no literal type, so it renders nothing. */
|
|
254
|
+
declare function floatNumberLiteral(value: JsonValue): string | undefined;
|
|
255
|
+
//#endregion
|
|
256
|
+
//#region src/shared/resolve-codec.d.ts
|
|
257
|
+
declare const CONTRACT_CODEC_DESCRIPTOR_MISSING: "CONTRACT.CODEC_DESCRIPTOR_MISSING";
|
|
258
|
+
/**
|
|
259
|
+
* Look up a descriptor for `ref.codecId` using `descriptorFor`; throw
|
|
260
|
+
* `code` if none is found. Each plane names its own error path: the control
|
|
261
|
+
* plane resolves contract-stack descriptors (`CONTRACT.*`), the execution
|
|
262
|
+
* plane resolves at query time (`RUNTIME.*`).
|
|
263
|
+
*/
|
|
264
|
+
declare function resolveCodecDescriptorOrThrow(descriptorFor: (codecId: string) => AnyCodecDescriptor | undefined, ref: CodecRef, code: 'CONTRACT.CODEC_DESCRIPTOR_MISSING' | 'RUNTIME.CODEC_DESCRIPTOR_MISSING'): AnyCodecDescriptor;
|
|
265
|
+
/**
|
|
266
|
+
* Validates `ref.typeParams` against `descriptor.paramsSchema`.
|
|
267
|
+
*
|
|
268
|
+
* A codec without a `paramsSchema` takes no params: it accepts absent or empty
|
|
269
|
+
* `typeParams` (a bare native-type alias carries `{}`) and rejects anything else.
|
|
270
|
+
* A parameterized codec whose ref omits `typeParams` validates `{}` (mirrors
|
|
271
|
+
* `ast-codec-resolver.ts` semantics). Throws `RUNTIME.TYPE_PARAMS_INVALID` when
|
|
272
|
+
* params are given to a codec without params, or when the validator returns a
|
|
273
|
+
* `Promise` or reports issues.
|
|
274
|
+
*/
|
|
275
|
+
declare function validateCodecTypeParams(descriptor: AnyCodecDescriptor, ref: CodecRef): unknown;
|
|
276
|
+
/**
|
|
277
|
+
* Resolves a `Codec` instance: validates `ref.typeParams` via
|
|
278
|
+
* {@link validateCodecTypeParams} then calls `descriptor.factory(validated)(ctx)`
|
|
279
|
+
* as a method on `descriptor`, preserving `this` for factories that build
|
|
280
|
+
* their returned codec from the descriptor instance (e.g. `new XCodec(this)`).
|
|
281
|
+
*/
|
|
282
|
+
declare function materializeCodec(descriptor: AnyCodecDescriptor, ref: CodecRef, ctx: CodecInstanceContext): Codec;
|
|
283
|
+
/**
|
|
284
|
+
* Builds the codec a codec reference names with the reference's type parameters, so a parameterized codec checks values against them. `undefined` when no descriptor has the id.
|
|
285
|
+
*/
|
|
286
|
+
declare function codecForRef(lookup: Pick<CodecLookupWithDescriptors, 'descriptorFor'>, ref: CodecRef): Codec | undefined;
|
|
287
|
+
//#endregion
|
|
288
|
+
export { validateCodecTypeParams as $, decimalTextNumberLiteral as A, printJsonText as B, castUnchanged as C, dateTimeStoredText as D, createNumberClassifier as E, isNumeralText as F, readJsonMatching as G, readJsonFloat as H, isoDateStringText as I, refuseWrongShape as J, readJsonString as K, materializeCodec as L, floatToJson as M, isIntegerIn as N, decimalTextBigintLiteral as O, isNonFiniteText as P, storedNumeralText as Q, numeralText as R, asNumeralText as S, column as T, readJsonInteger as U, readJsonBoolean as V, readJsonIntegerText as W, resolveCodecDescriptorOrThrow as X, renderTsLiteral as Y, signedRange as Z, SAFE_INTEGER_BIGINT_RANGE as _, ColumnHelperForStrict as a, ScalarFieldDeclarationBuilder as b, DATA_TYPE_ID_PATTERN as c, INT32_RANGE as d, INT64_RANGE as f, NumberClassifierSpec as g, NumberClassification as h, ColumnHelperFor as i, floatNumberLiteral as j, decimalTextEqualityKey as k, DateTimeShape as l, IntegerStep as m, CONTRACT_CODEC_DESCRIPTOR_MISSING as n, ColumnSpec as o, IntegerRange as p, refuseJsonValue as q, CodecDescriptorRef as r, ColumnTypeDescriptor as s, BigIntRange as t, DateTimeStoredTextOptions as u, SAFE_INTEGER_RANGE as v, codecForRef as w, asFloat as x, ScalarFieldDeclaration as y, parseJsonText as z };
|
|
289
|
+
//# sourceMappingURL=codec-B4ypaota.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codec-B4ypaota.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/codec.d.mts"],"mappings":";;;;;cAIc,eAAe;;iBAEZ,iBAAiB,OAAO,WAAW;;cAEtC,eAAe;;;;;;;cAOf,SAAS;;;;;;;;;;KAUlB,qBAAqB;WACf,SAAS;WACT,aAAa;;;;;;;;;WASb,WAAW;WACX,YAAY;;;UAGb,mBAAmB;WAClB,SAAS;;;;;UAKV,uBAAuB,mBAAmB,qBAAqB,oBAAoB;WAClF,aAAa;WACb,UAAU;WACV,OAAO;;;UAGR,8BAA8B,mBAAmB,qBAAqB,oBAAoB;EAClG,SAAS,uBAAuB,YAAY;;;;;;;;;KASzC;WACM;WACA;WACA;;;;;;;UAOD,WAAW,GAAG,UAAU,6CAA6C;WACpE,eAAe,KAAK,yBAAyB;WAC7C,YAAY;;;;;iBAKN,OAAO,GAAG,UAAU,qCAAqC,eAAe,KAAK,yBAAyB,GAAG,iBAAiB,YAAY,IAAI,WAAW,GAAG;;;;;;KAMpK,gBAAgB,UAAU,oCAAoC,gBAAgB,oBAAoB,mBAAmB;;;;KAIrH,sBAAsB,UAAU,oCAAoC,gBAAgB,WAAW,WAAW,WAAW,gBAAgB,mBAAmB;;;;KAIxJ,mBAAmB,UAAU,gCAAgC,WAAW,yBAAyB,0BAA0B,WAAW;;;;cAI7H,sBAAsB;;;;;;;;KAQ/B;UACK;WACC,OAAO;;WAEP;;WAEA;;WAEA;;WAEA;aACE;aACA;;;;;;;;iBAQI,mBAAmB,cAAc,SAAS,2BAA2B;;;;iBAIrE,kBAAkB,cAAc;;;;;;iBAMhC,uBAAuB,MAAM;;;;;;iBAM7B,gBAAgB,eAAe,kBAAkB,MAAM;iBACvD,eAAe,eAAe,MAAM;;iBAEpC,iBAAiB,eAAe,MAAM,WAAW,SAAS,QAAQ;iBAClE,gBAAgB,eAAe,MAAM;UAC5C;WACC;WACA;;;iBAGM,YAAY,gBAAgB,OAAO,eAAe;;cAErD,oBAAoB;;cAEpB,aAAa;iBACV,gBAAgB,eAAe,MAAM,WAAW,OAAO;UAC9D;WACC;WACA;;;cAGG,aAAa;;cAEb,2BAA2B;;;;iBAIxB,oBAAoB,eAAe,MAAM,WAAW,QAAQ;;iBAE5D,gBAAgB;;iBAEhB,YAAY,gBAAgB;iBAC5B,cAAc,eAAe,MAAM;;;;;;;;;;iBAUnC,cAAc,eAAe;;iBAE7B,cAAc,OAAO;;;;iBAIrB,cAAc;;;;;iBAKd,kBAAkB;;UAEzB;WACC,MAAM;WACN;;;UAGD,oBAAoB;WACnB;WACA;;;iBAGM,YAAY;WAClB;WACA;;UAED;;WAEC,mBAAmB;;WAEnB,cAAc;;WAEd,WAAW;;WAEX,QAAQ;;;;;;;iBAOF,uBAAuB,MAAM,wBAAwB;WAC3D,MAAM;WACN,OAAO;;;;;;;;iBAQD,YAAY;;;;;;;;;;;iBAWZ,gBAAgB,OAAO;;iBAEvB,yBAAyB,OAAO;;iBAEhC,yBAAyB,OAAO;;iBAEhC,mBAAmB,OAAO;;;cAG7B;;;;;;;iBAOG,8BAA8B,gBAAgB,oBAAoB,gCAAgC,KAAK,UAAU,iFAAiF;;;;;;;;;;;iBAWlM,wBAAwB,YAAY,oBAAoB,KAAK;;;;;;;iBAO7D,iBAAiB,YAAY,oBAAoB,KAAK,UAAU,KAAK,uBAAuB;;;;iBAI5F,YAAY,QAAQ,KAAK,8CAA8C,KAAK,WAAW"}
|