@prisma/orm-framework 8.0.0-rc.21-dev.5 → 8.0.0-rc.21-dev.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{apply-specifier-default-control-policy-Dlz0iwnK.d.mts → apply-specifier-default-control-policy-BSgLNgKj.d.mts} +2 -2
- package/dist/apply-specifier-default-control-policy-BSgLNgKj.d.mts.map +1 -0
- package/dist/{authoring-C2UAuRfN.d.mts → authoring-BKOoGNxH.d.mts} +58 -6
- package/dist/authoring-BKOoGNxH.d.mts.map +1 -0
- package/dist/{authoring-4wc_1ETR.mjs → authoring-CcfXu8Dz.mjs} +377 -31
- package/dist/authoring-CcfXu8Dz.mjs.map +1 -0
- package/dist/{framework-authoring-ebqZ8M_M-DIDpVcUB.d.mts → authoring-type-choice-CHcRX0RP-CkG1L8a9.d.mts} +113 -29
- package/dist/authoring-type-choice-CHcRX0RP-CkG1L8a9.d.mts.map +1 -0
- package/dist/{binder-BszqDG1t-icu83_4f.d.mts → binder-CMy3WM5A-DRrDzBAq.d.mts} +38 -20
- package/dist/{binder-BszqDG1t-icu83_4f.d.mts.map → binder-CMy3WM5A-DRrDzBAq.d.mts.map} +1 -1
- package/dist/{canonicalization-CyrrXGmj-CeKUkht1.d.mts → canonicalization-BIS6ONYT-VttZI7M4.d.mts} +3 -3
- package/dist/{canonicalization-CyrrXGmj-CeKUkht1.d.mts.map → canonicalization-BIS6ONYT-VttZI7M4.d.mts.map} +1 -1
- package/dist/{codec-CZ3VQq7G.d.mts → codec-h0kvF5B8.d.mts} +4 -3
- package/dist/codec-h0kvF5B8.d.mts.map +1 -0
- package/dist/{codec-types-B4wPvO-K-BqcGrCE-.d.mts → codec-types-B4wPvO-K-BIPFT7EP.d.mts} +2 -2
- package/dist/{codec-types-B4wPvO-K-BqcGrCE-.d.mts.map → codec-types-B4wPvO-K-BIPFT7EP.d.mts.map} +1 -1
- package/dist/{components-BenCVFk4.d.mts → components-BvnVHOK3.d.mts} +5 -5
- package/dist/{components-BenCVFk4.d.mts.map → components-BvnVHOK3.d.mts.map} +1 -1
- package/dist/components.d.mts +17 -17
- package/dist/components.mjs +5 -5
- package/dist/components__authoring.d.mts +4 -4
- package/dist/components__authoring.mjs +3 -3
- package/dist/components__codec.d.mts +2 -2
- package/dist/components__components.d.mts +4 -4
- package/dist/components__control.d.mts +4 -4
- package/dist/components__control.mjs +2 -2
- package/dist/components__emission.d.mts +3 -3
- package/dist/components__execution.d.mts +1 -1
- package/dist/components__ir.d.mts +2 -2
- package/dist/components__ir.mjs +2 -2
- package/dist/components__psl-ast.d.mts +3 -3
- package/dist/components__runtime.d.mts +1 -1
- package/dist/{config-types-BJ79TZCl.d.mts → config-types-De3gHQOy.d.mts} +8 -8
- package/dist/{config-types-BJ79TZCl.d.mts.map → config-types-De3gHQOy.d.mts.map} +1 -1
- package/dist/config.d.mts +1 -1
- package/dist/config__config-types.d.mts +1 -1
- package/dist/contract-authoring.d.mts +6 -6
- package/dist/contract-authoring.mjs +3 -3
- package/dist/{contract-types-DEIEpzU_-DvAVuBr5.d.mts → contract-types-ib-VnKHG-l9vE5Vd-.d.mts} +22 -8
- package/dist/contract-types-ib-VnKHG-l9vE5Vd-.d.mts.map +1 -0
- package/dist/contract.d.mts +13 -11
- package/dist/contract.mjs +5 -3
- package/dist/contract__apply-specifier-default-control-policy.d.mts +1 -1
- package/dist/contract__enum-accessor.d.mts +1 -1
- package/dist/contract__hashing-utils.d.mts +1 -1
- package/dist/contract__hashing.d.mts +2 -2
- package/dist/contract__resolve-domain-model.d.mts +1 -1
- package/dist/contract__types.d.mts +6 -5
- package/dist/contract__types.mjs +3 -2
- package/dist/contract__validate-domain.d.mts +2 -2
- package/dist/contract__validate-domain.mjs +2 -2
- package/dist/contract__validate-storage.d.mts +2 -0
- package/dist/contract__validate-storage.mjs +2 -0
- package/dist/{control-DLpQIwer.mjs → control-BE0sjzPI.mjs} +6 -2
- package/dist/control-BE0sjzPI.mjs.map +1 -0
- package/dist/{control-BeXOxtXA-BU8y-LiK.d.mts → control-BeXOxtXA-DOfRFBDx.d.mts} +2 -2
- package/dist/{control-BeXOxtXA-BU8y-LiK.d.mts.map → control-BeXOxtXA-DOfRFBDx.d.mts.map} +1 -1
- package/dist/{control-CS1uqJj_.d.mts → control-DanUY6NX.d.mts} +24 -12
- package/dist/control-DanUY6NX.d.mts.map +1 -0
- package/dist/{control-MllEQmML-yjvIIvnf.mjs → control-MllEQmML-BgM0TgK3.mjs} +2 -2
- package/dist/{control-MllEQmML-yjvIIvnf.mjs.map → control-MllEQmML-BgM0TgK3.mjs.map} +1 -1
- package/dist/control-QJnHVB3m.d.mts +1 -0
- package/dist/{declarations-BgUAq1RG-D99LhVXe.mjs → declarations-BgUAq1RG-DvmyJ8LS.mjs} +2 -2
- package/dist/{declarations-BgUAq1RG-D99LhVXe.mjs.map → declarations-BgUAq1RG-DvmyJ8LS.mjs.map} +1 -1
- package/dist/domain-envelope-CJNIHBn_-DBFAmkNL.d.mts +191 -0
- package/dist/domain-envelope-CJNIHBn_-DBFAmkNL.d.mts.map +1 -0
- package/dist/emission-DGYCaKjl.d.mts +2 -0
- package/dist/{emission-types-bX2HmNSC-C9vDMKbg.d.mts → emission-types-bX2HmNSC-vaRddb1_.d.mts} +6 -5
- package/dist/emission-types-bX2HmNSC-vaRddb1_.d.mts.map +1 -0
- package/dist/{enum-accessor-2OZgavDX.d.mts → enum-accessor-BXc2Jseo.d.mts} +4 -3
- package/dist/enum-accessor-BXc2Jseo.d.mts.map +1 -0
- package/dist/errors.d.mts +4 -4
- package/dist/errors.mjs +3 -3
- package/dist/errors__control.d.mts +2 -2
- package/dist/errors__control.mjs +1 -1
- package/dist/errors__execution.d.mts +1 -1
- package/dist/errors__execution.mjs +1 -1
- package/dist/errors__migration.d.mts +1 -1
- package/dist/errors__migration.mjs +1 -1
- package/dist/{execution-CXXKXfwB.mjs → execution-BkFLjpfc.mjs} +2 -2
- package/dist/{execution-CXXKXfwB.mjs.map → execution-BkFLjpfc.mjs.map} +1 -1
- package/dist/{execution-BWR_z8XI.d.mts → execution-C_12rfIR.d.mts} +2 -2
- package/dist/{execution-BWR_z8XI.d.mts.map → execution-C_12rfIR.d.mts.map} +1 -1
- package/dist/{execution-BPJbNttJ.d.mts → execution-CyddhERj.d.mts} +2 -2
- package/dist/{execution-BPJbNttJ.d.mts.map → execution-CyddhERj.d.mts.map} +1 -1
- package/dist/{expressions-CMQzbnHk-Db8YJA0B.mjs → expressions-CMQzbnHk-B7zBWJ0c.mjs} +2 -2
- package/dist/{expressions-CMQzbnHk-Db8YJA0B.mjs.map → expressions-CMQzbnHk-B7zBWJ0c.mjs.map} +1 -1
- package/dist/field-problems-DMpmScuG-R70w-aDk.mjs +41 -0
- package/dist/field-problems-DMpmScuG-R70w-aDk.mjs.map +1 -0
- package/dist/{framework-components-BqHA1V92-D9j8uXa-.d.mts → framework-components-GBAmsfWO-DUJQpMpU.d.mts} +5 -5
- package/dist/{framework-components-BqHA1V92-D9j8uXa-.d.mts.map → framework-components-GBAmsfWO-DUJQpMpU.d.mts.map} +1 -1
- package/dist/{hashing-D-DHz0zl.d.mts → hashing-Ca2uTBmm.d.mts} +4 -4
- package/dist/{hashing-D-DHz0zl.d.mts.map → hashing-Ca2uTBmm.d.mts.map} +1 -1
- package/dist/{hashing-utils-DiGHKd3b.d.mts → hashing-utils-daflaalA.d.mts} +2 -2
- package/dist/{hashing-utils-DiGHKd3b.d.mts.map → hashing-utils-daflaalA.d.mts.map} +1 -1
- package/dist/ids__runtime.d.mts +1 -1
- package/dist/{ir-uDGU9vaj.mjs → ir-B7QKO3dq.mjs} +18 -2
- package/dist/ir-B7QKO3dq.mjs.map +1 -0
- package/dist/{ir-LV4tXsw3.d.mts → ir-DoVMhmqa.d.mts} +10 -25
- package/dist/ir-DoVMhmqa.d.mts.map +1 -0
- package/dist/{migration-Dk1sYIvs.d.mts → migration-B7ur91Et.d.mts} +2 -2
- package/dist/{migration-Dk1sYIvs.d.mts.map → migration-B7ur91Et.d.mts.map} +1 -1
- package/dist/{migration-B1TEF2ij.mjs → migration-CQufZA_7.mjs} +2 -2
- package/dist/{migration-B1TEF2ij.mjs.map → migration-CQufZA_7.mjs.map} +1 -1
- package/dist/{parse-bZgfjovA-CaBuZnet.mjs → parse-bZgfjovA-Vk8LMIu5.mjs} +3 -3
- package/dist/{parse-bZgfjovA-CaBuZnet.mjs.map → parse-bZgfjovA-Vk8LMIu5.mjs.map} +1 -1
- package/dist/{parse-djL5wker-DnMlKOii.d.mts → parse-djL5wker-4_2Cqwev.d.mts} +6 -6
- package/dist/{parse-djL5wker-DnMlKOii.d.mts.map → parse-djL5wker-4_2Cqwev.d.mts.map} +1 -1
- package/dist/{psl-ast-0oMzInxd-Nx9cHmcc.d.mts → psl-ast-B4ZxpQdr-DT9LRqBC.d.mts} +3 -3
- package/dist/{psl-ast-0oMzInxd-Nx9cHmcc.d.mts.map → psl-ast-B4ZxpQdr-DT9LRqBC.d.mts.map} +1 -1
- package/dist/psl-ast-Dsf1-QLK.d.mts +2 -0
- package/dist/psl-parser.d.mts +24 -15
- package/dist/psl-parser.d.mts.map +1 -1
- package/dist/psl-parser.mjs +29 -43
- package/dist/psl-parser.mjs.map +1 -1
- package/dist/psl-parser__format.d.mts +1 -1
- package/dist/psl-parser__format.mjs +3 -3
- package/dist/psl-parser__interpret.d.mts +65 -23
- package/dist/psl-parser__interpret.d.mts.map +1 -1
- package/dist/psl-parser__interpret.mjs +135 -140
- package/dist/psl-parser__interpret.mjs.map +1 -1
- package/dist/psl-parser__syntax.d.mts +1 -1
- package/dist/psl-parser__syntax.mjs +3 -3
- package/dist/psl-printer.d.mts +4 -4
- package/dist/psl-printer.mjs +1 -1
- package/dist/{resolve-domain-model-BNr1glea-BLuR-phK.d.mts → resolve-domain-model-CZ5E6qxa-Caq2Becx.d.mts} +3 -3
- package/dist/resolve-domain-model-CZ5E6qxa-Caq2Becx.d.mts.map +1 -0
- package/dist/{runtime-CTJc8PII.d.mts → runtime-BERs-lBJ.d.mts} +4 -4
- package/dist/{runtime-CTJc8PII.d.mts.map → runtime-BERs-lBJ.d.mts.map} +1 -1
- package/dist/storage-value-objects-Di8Cowdl-QNqJXkk0.mjs +28 -0
- package/dist/storage-value-objects-Di8Cowdl-QNqJXkk0.mjs.map +1 -0
- package/dist/{temporal-type-aliases-C9tIy4rv-Dsun86cY.mjs → temporal-type-aliases-BI3SL5iB-DIP8j4Gv.mjs} +383 -172
- package/dist/temporal-type-aliases-BI3SL5iB-DIP8j4Gv.mjs.map +1 -0
- package/dist/{temporal-type-aliases-BIiamFSH-BrpK13hf.d.mts → temporal-type-aliases-D5QWPhYa-BNKiNvmd.d.mts} +4 -4
- package/dist/{temporal-type-aliases-BIiamFSH-BrpK13hf.d.mts.map → temporal-type-aliases-D5QWPhYa-BNKiNvmd.d.mts.map} +1 -1
- package/dist/type-constructor-calls-Bfg5ojed-DYHnzC9z.mjs +538 -0
- package/dist/type-constructor-calls-Bfg5ojed-DYHnzC9z.mjs.map +1 -0
- package/dist/{types-B8ULzMAX.mjs → types-Boh5NGDz.mjs} +52 -9
- package/dist/types-Boh5NGDz.mjs.map +1 -0
- package/dist/types-CkFfDIud-C1u8M2UE.d.mts +196 -0
- package/dist/types-CkFfDIud-C1u8M2UE.d.mts.map +1 -0
- package/dist/{types-GNXJ7xW2.d.mts → types-Dh_AMVRf.d.mts} +145 -25
- package/dist/types-Dh_AMVRf.d.mts.map +1 -0
- package/dist/{types-import-spec-Bkh243Hv-B-fdw0Wl.d.mts → types-import-spec-Bkh243Hv-BI9m5WFL.d.mts} +3 -3
- package/dist/{types-import-spec-Bkh243Hv-B-fdw0Wl.d.mts.map → types-import-spec-Bkh243Hv-BI9m5WFL.d.mts.map} +1 -1
- package/dist/{validate-domain-CbXHDYpF.mjs → validate-domain-KUhPCj7i.mjs} +18 -35
- package/dist/validate-domain-KUhPCj7i.mjs.map +1 -0
- package/dist/{validate-domain-B5kmlBFB.d.mts → validate-domain-eU07L3vi.d.mts} +7 -3
- package/dist/{validate-domain-B5kmlBFB.d.mts.map → validate-domain-eU07L3vi.d.mts.map} +1 -1
- package/dist/validate-storage-CGeJ-62G.mjs +31 -0
- package/dist/validate-storage-CGeJ-62G.mjs.map +1 -0
- package/dist/validate-storage-ChcQuhTb.d.mts +10 -0
- package/dist/validate-storage-ChcQuhTb.d.mts.map +1 -0
- package/package.json +16 -15
- package/dist/apply-specifier-default-control-policy-Dlz0iwnK.d.mts.map +0 -1
- package/dist/authoring-4wc_1ETR.mjs.map +0 -1
- package/dist/authoring-C2UAuRfN.d.mts.map +0 -1
- package/dist/codec-CZ3VQq7G.d.mts.map +0 -1
- package/dist/contract-types-DEIEpzU_-DvAVuBr5.d.mts.map +0 -1
- package/dist/control-B3OS8JEw.d.mts +0 -1
- package/dist/control-CS1uqJj_.d.mts.map +0 -1
- package/dist/control-DLpQIwer.mjs.map +0 -1
- package/dist/domain-envelope-CN721GnP-4huRt7Wc.d.mts +0 -373
- package/dist/domain-envelope-CN721GnP-4huRt7Wc.d.mts.map +0 -1
- package/dist/emission-ByTWEe2j.d.mts +0 -2
- package/dist/emission-types-bX2HmNSC-C9vDMKbg.d.mts.map +0 -1
- package/dist/enum-accessor-2OZgavDX.d.mts.map +0 -1
- package/dist/framework-authoring-ebqZ8M_M-DIDpVcUB.d.mts.map +0 -1
- package/dist/ir-LV4tXsw3.d.mts.map +0 -1
- package/dist/ir-uDGU9vaj.mjs.map +0 -1
- package/dist/psl-ast-CFQfCJeM.d.mts +0 -2
- package/dist/resolve-domain-model-BNr1glea-BLuR-phK.d.mts.map +0 -1
- package/dist/temporal-type-aliases-C9tIy4rv-Dsun86cY.mjs.map +0 -1
- package/dist/type-constructor-calls-CNd1Xlw2-CfYTYNSm.mjs +0 -306
- package/dist/type-constructor-calls-CNd1Xlw2-CfYTYNSm.mjs.map +0 -1
- package/dist/types-B8ULzMAX.mjs.map +0 -1
- package/dist/types-GNXJ7xW2.d.mts.map +0 -1
- package/dist/validate-domain-CbXHDYpF.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authoring-CcfXu8Dz.mjs","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/authoring.mjs"],"sourcesContent":["import { a as dataTypeId, o as dataTypeParams } from \"./data-type-DPsP4_9m.mjs\";\nimport { a as readContractValue, o as numeralText, r as enumRefusalOf } from \"./codec-descriptor-BNc32mKN.mjs\";\nimport { t as canonicalizeJson } from \"./canonicalize-json-ZPawceQR.mjs\";\nimport { r as codecForRef } from \"./resolve-codec-qqMjZrmn.mjs\";\nimport { $ as validateAuthoringTypeChoiceParams, A as assertTypeAliasesValid, B as isAuthoringEntityTypeDescriptor, C as typeChoiceCombinationText, D as assertNoAuthoringFieldNamespace, E as AUTHORING_TYPE_DESCRIPTOR_KINDS, F as instantiateAuthoringEntityType, G as isAuthoringTypeConstructorDescriptor, H as isAuthoringPslBlockDescriptor, I as instantiateAuthoringTypeAlias, J as mergeAuthoringNamespaces, K as isAuthoringTypeDescriptor, L as instantiateAuthoringTypeConstructor, N as flushAuthoringWarnings, O as assertNoCrossRegistryCollisions, P as getAuthoringTypeConstructor, Q as validateAuthoringHelperArguments, R as instantiateAuthoringTypeConstructorFromValues, S as typeChoiceArgumentsFromObject, T as unknownTypeChoiceArgumentMessage, U as isAuthoringTypeAliasDescriptor, V as isAuthoringModelAttributeDescriptor, W as isAuthoringTypeChoiceDescriptor, X as resolveEnumCodecId, Y as resolveAuthoringTemplateValue, Z as resolveTypeAliasGenerators, _ as collectScalarTypeConstructors, a as assembleDataTypeSupport, b as isAuthoringTypeChoiceOption, c as canonicalizeTaggedLiteralBody, d as printedTaggedLiteralReadsBack, et as validateAuthoringTypeParams, g as authoringTypeNamespaceLevel, h as assertTypeChoicesValid, i as assembleAuthoringDataTypes, j as classifyEnumMemberType, k as assertResolvableTypeConstructorTemplates, l as describeTaggedLiteralFailure, m as tsTaggedTemplateSource, n as temporalTypeAliases, p as resolveTemplateTagEscapes, t as TIMESTAMP_NOW_GENERATOR_ID, u as printTaggedLiteral, v as getAuthoringTypeChoice, w as typeConstructorLookup, x as resolveAuthoringTypeChoice, y as instantiateAuthoringTypeCall, z as isAuthoringArgRef } from \"./temporal-type-aliases-BI3SL5iB.mjs\";\nimport { InternalError, isInternalError } from \"@internal/utils/internal-error\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { notOk, ok } from \"@internal/utils/result\";\nimport { canonicalStringify } from \"@internal/utils/canonical-stringify\";\n//#region src/shared/authoring-type-constructor-call.ts\n/** Every type constructor of `namespace`, with its path, in namespace order. */\nfunction* authoringTypeConstructors(namespace, path = []) {\n\tfor (const [name, value] of Object.entries(namespace)) if (isAuthoringTypeConstructorDescriptor(value)) yield {\n\t\tpath: [...path, name],\n\t\tdescriptor: value\n\t};\n\telse if (!isAuthoringTypeDescriptor(value)) yield* authoringTypeConstructors(value, [...path, name]);\n}\n/** Whether `produced` is exactly `wanted`: the same codec and the same type parameters, an absent set of parameters counting as an empty one. */\nfunction sameAuthoringTypeConstructorOutput(produced, wanted) {\n\tconst wantedFields = {\n\t\t...wanted,\n\t\ttypeParams: wanted.typeParams ?? {}\n\t};\n\treturn Object.entries({\n\t\t...produced,\n\t\ttypeParams: produced.typeParams ?? {}\n\t}).every(([key, value]) => canonicalizeJson(value) === canonicalizeJson(wantedFields[key]));\n}\n/**\n* The arguments that make `descriptor` produce exactly `output`, when each of its type parameters\n* comes straight from one argument; `undefined` when it cannot produce `output`, including when\n* `output` has no value for an argument the constructor requires.\n*/\nfunction authoringTypeConstructorArguments(descriptor, output) {\n\tif (descriptor.entityRefArg !== void 0 || descriptor.output.codecId !== output.codecId) return;\n\tconst args = [];\n\tfor (const [key, template] of Object.entries(descriptor.output.typeParams ?? {})) {\n\t\tconst value = output.typeParams?.[key];\n\t\tif (value !== void 0 && isAuthoringArgRef(template)) args[template.index] = value;\n\t}\n\tconst requiredArgs = (descriptor.args ?? []).filter((arg) => arg.optional !== true).length;\n\tif (args.length < requiredArgs || Array.from(args).includes(void 0)) return void 0;\n\ttry {\n\t\treturn sameAuthoringTypeConstructorOutput(instantiateAuthoringTypeConstructor(descriptor, args), output) ? args : void 0;\n\t} catch {\n\t\treturn;\n\t}\n}\n/**\n* The first call, in namespace order, to a type constructor in `namespace` that produces exactly\n* `output`. The inverse of {@link instantiateAuthoringTypeConstructor} for constructors whose type\n* parameters each come straight from one argument. A constructor whose argument names another\n* entity is never chosen. `undefined` when no call produces `output`.\n*/\nfunction findAuthoringTypeConstructorCall(namespace, output) {\n\tfor (const { path, descriptor } of authoringTypeConstructors(namespace)) {\n\t\tconst args = authoringTypeConstructorArguments(descriptor, output);\n\t\tif (args !== void 0) return {\n\t\t\tpath,\n\t\t\targs\n\t\t};\n\t}\n}\n//#endregion\n//#region src/shared/authoring-type-choice-call.ts\nfunction choicesNaming(level, constructorName) {\n\treturn Object.entries(level).flatMap(([name, member]) => {\n\t\tif (!isAuthoringTypeChoiceDescriptor(member)) return [];\n\t\tconst row = member.choices.find((candidate) => candidate.type === constructorName);\n\t\treturn row === void 0 ? [] : [{\n\t\t\tname,\n\t\t\tdescriptor: member,\n\t\t\twhen: row.when\n\t\t}];\n\t});\n}\nfunction outputOf(produce) {\n\ttry {\n\t\treturn produce();\n\t} catch (error) {\n\t\tif (isInternalError(error)) throw error;\n\t\treturn;\n\t}\n}\n/**\n* The call to a type choice that becomes the type constructor call `call`: of the type choices at the constructor's level with a row naming the constructor, the first in namespace order whose call gives the same output. Its options come from that row and its passed-on arguments from the call, and every argument whose omission still gives the same output is left out. `sameOutput` decides what counts as the same output; by default the codec and type parameters must be exactly equal. `undefined` when no type choice names the constructor or no call to one gives the same output.\n*/\nfunction findAuthoringTypeChoiceCall(input) {\n\tconst { call } = input;\n\tconst sameOutput = input.sameOutput ?? sameAuthoringTypeConstructorOutput;\n\tconst prefix = call.path.slice(0, -1);\n\tconst constructorName = call.path.at(-1);\n\tconst level = authoringTypeNamespaceLevel(input.namespace, prefix);\n\tif (level === void 0 || constructorName === void 0) return void 0;\n\tconst explicit = typeConstructorLookup(level)(constructorName);\n\tconst wanted = explicit && outputOf(() => instantiateAuthoringTypeConstructor(explicit, call.args));\n\tif (explicit === void 0 || wanted === void 0) return void 0;\n\tconst passedValue = (name) => call.args[(explicit.args ?? []).findIndex((parameter) => parameter.name === name)];\n\tfor (const choice of choicesNaming(level, constructorName)) {\n\t\tconst found = choiceCallReproducing({\n\t\t\tlevel,\n\t\t\tprefix,\n\t\t\tchoice,\n\t\t\tpassedValue,\n\t\t\treproduces: (produced) => sameOutput(produced, wanted)\n\t\t});\n\t\tif (found !== void 0) return found;\n\t}\n}\nfunction choiceCallReproducing(input) {\n\tconst { level, prefix, choice } = input;\n\tconst reproduces = (args) => {\n\t\tconst produced = outputOf(() => instantiateAuthoringTypeCall(level, choice.name, args));\n\t\treturn produced !== void 0 && input.reproduces(produced);\n\t};\n\tconst args = choice.descriptor.args.map((argument) => isAuthoringTypeChoiceOption(argument) ? choice.when[argument.name] : input.passedValue(argument.name));\n\tif (!reproduces(args)) return void 0;\n\tfor (const index of args.keys()) {\n\t\tconst without = args.map((value, at) => at === index ? void 0 : value);\n\t\tif (args[index] !== void 0 && reproduces(without)) args[index] = void 0;\n\t}\n\tconst chosen = resolveAuthoringTypeChoice({\n\t\thelperPath: choice.name,\n\t\tdescriptor: choice.descriptor,\n\t\targs,\n\t\tconstructorNamed: typeConstructorLookup(level)\n\t});\n\tconst chosenArgs = [...chosen.args];\n\twhile (chosenArgs.length > 0 && chosenArgs.at(-1) === void 0) chosenArgs.pop();\n\treturn {\n\t\tpath: [...prefix, choice.name],\n\t\targs: choice.descriptor.args.flatMap((argument, index) => args[index] === void 0 ? [] : [{\n\t\t\tname: argument.name,\n\t\t\tvalue: args[index]\n\t\t}]),\n\t\tbecomes: {\n\t\t\tpath: [...prefix, chosen.type],\n\t\t\targs: chosenArgs\n\t\t}\n\t};\n}\n//#endregion\n//#region src/shared/written-value.ts\n/**\n* Words a refusal of the cast rule. The message leads with what to write; the types are named only when the value has a form the position admits and its type is still refused, such as a number too large for the receiving type.\n*/\nfunction describeRefusal(refusal, support, guidance) {\n\tswitch (refusal.kind) {\n\t\tcase \"unknown-tag\": return {\n\t\t\tcode: \"PSL_UNKNOWN_LITERAL_TAG\",\n\t\t\tmessage: `Unknown literal tag \"${refusal.tag}\". Known tags: ${refusal.known.join(\", \")}.`\n\t\t};\n\t\tcase \"unwritable\": return {\n\t\t\tcode: \"PSL_VALUE_TYPE_INCOMPATIBLE\",\n\t\t\tmessage: `${describeExpected(guidance.forms)}; this target has no data type for a ${refusal.syntax} value`\n\t\t};\n\t\tcase \"unreadable\":\n\t\tcase \"refused-by-type\": return {\n\t\t\tcode: \"PSL_INVALID_LITERAL\",\n\t\t\tmessage: refusal.message\n\t\t};\n\t\tcase \"no-cast\": return {\n\t\t\tcode: \"PSL_VALUE_TYPE_INCOMPATIBLE\",\n\t\t\tmessage: describeRefusedValueType(refusal, support, guidance)\n\t\t};\n\t}\n}\n/** `Expected <forms>`, the forms joined with `or`: the start of every refusal that says what to write. */\nfunction describeExpected(forms) {\n\treturn `Expected ${joinForms(forms)}`;\n}\n/**\n* Words a value of type `valueType` that `receivingType` refuses, where `guidance.forms` may be written. The types are named only when the value has one of those forms.\n*/\nfunction describeRefusedValueType(refused, support, guidance) {\n\tconst expected = describeExpected(guidance.forms);\n\tconst valueForm = writtenForm(support, refused.valueType);\n\tif (valueForm !== void 0 && guidance.forms.some((form) => isSameForm(form, valueForm))) return `${expected} that ${refused.receivingType} can hold; got ${refused.valueType}`;\n\treturn guidance.rewrite === void 0 ? expected : `${expected}; write ${guidance.rewrite}`;\n}\nfunction isSameForm(a, b) {\n\treturn a.kind === \"tag\" && b.kind === \"tag\" ? a.tag === b.tag : a.kind === b.kind;\n}\n/** Text a contract source reads as a number literal. */\nconst NUMBER_TEXT = /^[+-]?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:[eE][+-]?\\d+)?$|^[+-]?(?:NaN|Infinity)$/;\nconst DECIMAL_TEXT = /^([+-]?)0*(\\d*?)(?:\\.(\\d*?))?0*$/;\n/** A decimal numeral in one form: no plus sign, no leading or trailing zeros, the sign of zero kept. Other text is itself. */\nfunction canonicalNumber(text) {\n\tconst match = text.includes(\".\") ? DECIMAL_TEXT.exec(text) : /^([+-]?)0*(\\d*)$/.exec(text);\n\tif (match === null) return text;\n\tconst [, sign = \"\", whole = \"\", fraction = \"\"] = match;\n\treturn `${sign === \"-\" ? \"-\" : \"\"}${whole === \"\" ? \"0\" : whole}${fraction === \"\" ? \"\" : `.${fraction}`}`;\n}\n/** Whether a stored value is the number `text` writes, digit for digit and with its sign, so writing the text unquoted stores what it says. */\nfunction sameNumber(text, stored) {\n\tconst storedText = typeof stored === \"number\" ? Object.is(stored, -0) ? \"-0\" : numeralText(stored) : typeof stored === \"string\" ? stored : void 0;\n\treturn storedText !== void 0 && canonicalNumber(storedText) === canonicalNumber(text);\n}\n/**\n* The literal to write in place of a quoted string that `receivingType` refuses under `receivingParams`: the string as a literal of the first tag the type admits, or else the string's text unquoted, as a number or a boolean. `undefined` when the value is not a quoted string, no such literal reads back as the same text, the type would refuse each of them too, or the number the text writes would be stored as another number, as `-0` is stored without its sign or `9007199254740993` as the nearest double.\n*/\nfunction exactRewrite(support, receiving, written) {\n\tif (written.kind !== \"string\") return void 0;\n\tconst castOf = (candidate) => {\n\t\tconst read = readWrittenValue(support, candidate);\n\t\tif (!read.ok) return void 0;\n\t\tconst cast = castTypedValue(support, receiving.receivingType, receiving.receivingParams, read.value);\n\t\treturn cast.ok ? cast.value : void 0;\n\t};\n\tconst admits = (candidate) => castOf(candidate) !== void 0;\n\tconst [tag] = admittedTags(support, receiving.receivingType);\n\tif (tag !== void 0 && printedTaggedLiteralReadsBack(written.text) && admits({\n\t\tkind: \"tag\",\n\t\ttag,\n\t\ttext: written.text\n\t})) return printTaggedLiteral(tag, written.text);\n\tif (NUMBER_TEXT.test(written.text)) {\n\t\tconst stored = castOf({\n\t\t\tkind: \"number\",\n\t\t\ttext: written.text\n\t\t});\n\t\tif (stored !== void 0 && sameNumber(written.text, stored.value)) return written.text;\n\t}\n\tif ((written.text === \"true\" || written.text === \"false\") && admits({\n\t\tkind: \"boolean\",\n\t\tvalue: written.text === \"true\"\n\t})) return written.text;\n}\nfunction findEntry(support, matches) {\n\tfor (const [key, entry] of Object.entries(support.entries)) if (matches(entry)) return {\n\t\tkey,\n\t\tentry\n\t};\n}\n/** The entry a tag names, or `undefined` when no pack registered that tag. */\nfunction entryForTag(support, tag) {\n\treturn findEntry(support, ({ written }) => written.kind === \"tag\" && written.tag === tag);\n}\n/** The entry that reads a plain string, boolean or number, or `undefined` when none does. */\nfunction entryForPlain(support, syntax) {\n\treturn findEntry(support, ({ written }) => written.kind === \"plain\" && written.syntax === syntax);\n}\n/** Every tag a stack registers, in the order the entries were merged. */\nfunction knownTags(support) {\n\treturn Object.values(support.entries).flatMap((entry) => entry.written.kind === \"tag\" ? [entry.written.tag] : []);\n}\nfunction textOf(written) {\n\treturn written.kind === \"boolean\" ? String(written.value) : written.text;\n}\nfunction messageOf(error) {\n\treturn error instanceof Error ? error.message : String(error);\n}\n/** The value of `type` that `json` gives under `params`, constructed by that type; a refusal is worded for a diagnostic. */\nfunction valueOfType(support, type, json, params, refuse) {\n\tconst declaration = support.lookup.get(type);\n\tif (declaration === void 0) throw new InternalError(`A value of \"${type}\" was written, and this stack does not register it.`);\n\ttry {\n\t\treturn ok(declaration.valueFrom(json(), params));\n\t} catch (error) {\n\t\tif (isInternalError(error)) throw error;\n\t\treturn notOk(refuse(messageOf(error)));\n\t}\n}\n/** Read one written value through the authoring entry for its syntax, as a value its type constructs. */\nfunction readWrittenValue(support, written) {\n\tconst found = written.kind === \"tag\" ? entryForTag(support, written.tag) : entryForPlain(support, written.kind);\n\tif (found === void 0) return written.kind === \"tag\" ? notOk({\n\t\tkind: \"unknown-tag\",\n\t\ttag: written.tag,\n\t\tknown: knownTags(support)\n\t}) : notOk({\n\t\tkind: \"unwritable\",\n\t\tsyntax: written.kind\n\t});\n\tconst text = textOf(written);\n\tconst form = found.entry.written;\n\tconst unreadable = (message) => ({\n\t\tkind: \"unreadable\",\n\t\tmessage\n\t});\n\tif (form.kind === \"plain\" && form.syntax === \"number\") {\n\t\tconst classified = form.classify(text);\n\t\treturn classified === void 0 ? notOk(unreadable(`no data type of this target holds the number ${text}`)) : valueOfType(support, classified.type, () => classified.value, {}, unreadable);\n\t}\n\treturn valueOfType(support, dataTypeId(found.key), () => form.parse(text), {}, unreadable);\n}\n/** Take a value into the receiving type, directly or through the cast that type declares; the receiving type constructs the result under `receivingParams`, the parameters of the position that receives it. */\nfunction castTypedValue(support, receivingType, receivingParams, value) {\n\tconst refusedByType = (message) => ({\n\t\tkind: \"refused-by-type\",\n\t\treceivingType,\n\t\tmessage\n\t});\n\tif (value.type === receivingType) return valueOfType(support, receivingType, () => value.value, receivingParams, refusedByType);\n\tconst declaration = support.lookup.get(receivingType);\n\tconst cast = declaration?.casts[value.type];\n\tif (cast === void 0) return notOk({\n\t\tkind: \"no-cast\",\n\t\treceivingType,\n\t\treceivingParams,\n\t\tvalueType: value.type,\n\t\tcasts: Object.keys(declaration?.casts ?? {})\n\t});\n\tconst source = support.lookup.get(value.type);\n\tif (source === void 0) throw new InternalError(`A value of \"${value.type}\" was cast, and this stack does not register it.`);\n\tlet json;\n\ttry {\n\t\tjson = cast(source.toContract(value));\n\t} catch (error) {\n\t\tif (isInternalError(error)) throw error;\n\t\treturn notOk({\n\t\t\tkind: \"unreadable\",\n\t\t\tmessage: messageOf(error)\n\t\t});\n\t}\n\treturn valueOfType(support, receivingType, () => json, receivingParams, refusedByType);\n}\n/**\n* Reads `written` as a value of `receivingType`: through the authoring entry for its syntax, then into `receivingType` directly or through a cast it declares. A refusal is worded for a diagnostic at the written value. The read every value of a fixed receiving type takes: an attribute argument, a type-constructor argument, and its TypeScript counterpart. ADR 254.\n*/\nfunction readWrittenValueAs(support, receivingType, written) {\n\tconst forms = admittedForms(support, [receivingType]);\n\tconst read = readWrittenValue(support, written);\n\tif (!read.ok) return notOk(describeRefusal(read.failure, support, {\n\t\tforms,\n\t\trewrite: void 0\n\t}));\n\tconst cast = castTypedValue(support, receivingType, {}, read.value);\n\tif (cast.ok) return cast;\n\tconst rewrite = exactRewrite(support, {\n\t\treceivingType,\n\t\treceivingParams: {}\n\t}, written);\n\treturn notOk(describeRefusal(cast.failure, support, {\n\t\tforms,\n\t\trewrite\n\t}));\n}\n/**\n* Reads `written` into the codec `ref` names, built with `ref`'s type parameters: the authoring entry for its syntax reads it, the codec's data type takes it directly or through a cast, the data type constructs it under the type parameters, and the codec checks it. Returns the value as the data type stores it. A written list is read element by element into the element types of the data type's list cast, then through the list cast.\n*\n* A refusal is worded for a diagnostic, after `subject` and the element it is about, as in `enum \"Ratio\" member \"Half\" at element 2: Expected a number`: syntax no entry reads or a cast refuses is `PSL_INVALID_LITERAL`, a value of a type the data type neither is nor casts from is `PSL_VALUE_TYPE_INCOMPATIBLE`, and a value the data type under the type parameters or the codec refuses is `PSL_VALUE_REFUSED`. ADR 254.\n*/\nfunction readWrittenValueIntoCodec(input) {\n\tconst { support, ref, written, subject } = input;\n\tconst codec = codecForRef(input.codecLookup, ref);\n\tif (codec === void 0) throw new InternalError(`${subject}: no codec descriptor is registered for \"${ref.codecId}\", but the value was read for it.`);\n\tconst receivingType = codec.dataType.id;\n\tconst receivingParams = dataTypeParams(codec.dataType, ref.typeParams);\n\tconst refused = (elementIndex, { code, message }) => notOk({\n\t\tcode,\n\t\tmessage: `${elementIndex === void 0 ? subject : `${subject} at element ${elementIndex + 1}`}: ${message}`\n\t});\n\tconst stored = (json) => {\n\t\ttry {\n\t\t\tconst value = codec.dataType.valueFrom(json, receivingParams);\n\t\t\tcodec.fromDataTypeValue(value);\n\t\t\treturn ok(codec.dataType.toContract(value));\n\t\t} catch (error) {\n\t\t\tif (isInternalError(error)) throw error;\n\t\t\treturn refused(void 0, {\n\t\t\t\tcode: \"PSL_VALUE_REFUSED\",\n\t\t\t\tmessage: messageOf(error)\n\t\t\t});\n\t\t}\n\t};\n\tconst forms = admittedForms(support, [receivingType]);\n\tif (written.kind === \"list\") {\n\t\tconst listCast = support.lookup.get(receivingType)?.listCast;\n\t\tif (listCast === void 0) return refused(void 0, {\n\t\t\tcode: \"PSL_VALUE_TYPE_INCOMPATIBLE\",\n\t\t\tmessage: `${describeExpected(forms)}; got a list`\n\t\t});\n\t\tconst elementGuidance = {\n\t\t\tforms: admittedForms(support, listCast.of),\n\t\t\trewrite: void 0\n\t\t};\n\t\tconst elements = [];\n\t\tfor (const [index, element] of written.elements.entries()) {\n\t\t\tif (element.kind === \"list\") return refused(index, {\n\t\t\t\tcode: \"PSL_INVALID_LITERAL\",\n\t\t\t\tmessage: \"a list holds values, not other lists\"\n\t\t\t});\n\t\t\tconst read = readWrittenValue(support, element);\n\t\t\tif (!read.ok) return refused(index, describeRefusal(read.failure, support, elementGuidance));\n\t\t\tif (!listCast.of.includes(read.value.type)) return refused(index, {\n\t\t\t\tcode: \"PSL_VALUE_TYPE_INCOMPATIBLE\",\n\t\t\t\tmessage: describeRefusedValueType({\n\t\t\t\t\treceivingType,\n\t\t\t\t\tvalueType: read.value.type\n\t\t\t\t}, support, elementGuidance)\n\t\t\t});\n\t\t\telements.push(read.value.value);\n\t\t}\n\t\tlet json;\n\t\ttry {\n\t\t\tjson = listCast.cast(elements);\n\t\t} catch (error) {\n\t\t\tif (isInternalError(error)) throw error;\n\t\t\treturn refused(void 0, {\n\t\t\t\tcode: \"PSL_INVALID_LITERAL\",\n\t\t\t\tmessage: messageOf(error)\n\t\t\t});\n\t\t}\n\t\treturn stored(json);\n\t}\n\tconst read = readWrittenValue(support, written);\n\tif (!read.ok) return refused(void 0, describeRefusal(read.failure, support, {\n\t\tforms,\n\t\trewrite: void 0\n\t}));\n\tconst cast = castTypedValue(support, receivingType, receivingParams, read.value);\n\tif (cast.ok) return stored(cast.value.value);\n\tconst { failure } = cast;\n\tif (failure.kind === \"refused-by-type\") return refused(void 0, {\n\t\tcode: \"PSL_VALUE_REFUSED\",\n\t\tmessage: failure.message\n\t});\n\treturn refused(void 0, describeRefusal(failure, support, {\n\t\tforms,\n\t\trewrite: failure.kind === \"no-cast\" ? exactRewrite(support, failure, written) : void 0\n\t}));\n}\n/** The type itself, then each type it casts from, in key order. */\nfunction admittedTypes(support, dataType) {\n\treturn [dataType, ...Object.keys(support.lookup.get(dataType)?.casts ?? {})];\n}\n/** The tags a position of `dataType` admits: its own tag, then the tags of the types it casts from. */\nfunction admittedTags(support, dataType) {\n\tconst tags = admittedTypes(support, dataType).flatMap((type) => {\n\t\tconst written = support.entries[type]?.written;\n\t\treturn written?.kind === \"tag\" ? [written.tag] : [];\n\t});\n\treturn [...new Set(tags)];\n}\n/** The form a value of a tagged literal's type is written in. */\nfunction tagForm(tag) {\n\treturn {\n\t\tkind: \"tag\",\n\t\ttag,\n\t\tphrase: `${tag}\\`...\\``\n\t};\n}\nconst PLAIN_PHRASES = {\n\tstring: \"a quoted string\",\n\tboolean: \"true or false\",\n\tnumber: \"a number\"\n};\nfunction writtenForm(support, type) {\n\tconst written = support.entries[type]?.written;\n\tif (written?.kind === \"tag\") return tagForm(written.tag);\n\tif (written?.kind === \"plain\" && written.syntax !== \"number\") return {\n\t\tkind: written.syntax,\n\t\tphrase: PLAIN_PHRASES[written.syntax]\n\t};\n\treturn Object.entries(support.entries).some(([key, entry]) => entry.written.kind === \"plain\" && entry.written.syntax === \"number\" && (key === type || entry.written.types.some((listed) => listed === type))) ? {\n\t\tkind: \"number\",\n\t\tphrase: PLAIN_PHRASES.number\n\t} : void 0;\n}\n/** What {@link describeAdmittedForms} returns for a type that nothing writes. */\nconst NO_WRITTEN_FORM = \"no written form\";\n/** Each form a position receiving every one of `receivingTypes` admits, once, in order: ``sql`...` ``, `true or false`. */\nfunction admittedForms(support, receivingTypes) {\n\tconst forms = [];\n\tfor (const type of receivingTypes.flatMap((receiving) => admittedTypes(support, receiving))) {\n\t\tconst form = writtenForm(support, type);\n\t\tif (form !== void 0 && !forms.some((listed) => isSameForm(listed, form))) forms.push(form);\n\t}\n\treturn forms;\n}\nfunction joinForms(forms) {\n\treturn forms.length === 0 ? NO_WRITTEN_FORM : forms.map((form) => form.phrase).join(\" or \");\n}\n/** How a position of `dataType` can be written, for a diagnostic: ``sql`...` ``, `true or false`. */\nfunction describeAdmittedForms(support, dataType) {\n\treturn joinForms(admittedForms(support, [dataType]));\n}\n//#endregion\n//#region src/shared/data-type-literal.ts\n/** A string as a contract source writes it, with the escapes its string reader resolves. */\nfunction escapePslString(value) {\n\treturn value.replace(/\\\\/g, \"\\\\\\\\\").replace(/\"/g, \"\\\\\\\"\").replace(/\\n/g, \"\\\\n\").replace(/\\r/g, \"\\\\r\");\n}\nfunction writingSurface(support) {\n\tconst entryOf = /* @__PURE__ */ new Map();\n\tconst tagTypes = [];\n\tfor (const [key, entry] of Object.entries(support.entries)) {\n\t\tconst written = entry.written;\n\t\tif (written.kind === \"tag\") {\n\t\t\tconst type = dataTypeId(key);\n\t\t\tif (!entryOf.has(type)) entryOf.set(type, entry);\n\t\t\ttagTypes.push(type);\n\t\t\tcontinue;\n\t\t}\n\t\tif (written.syntax === \"number\") {\n\t\t\tfor (const type of written.types) entryOf.set(type, entry);\n\t\t\tcontinue;\n\t\t}\n\t\tentryOf.set(key, entry);\n\t}\n\treturn {\n\t\tsupport,\n\t\tentryOf,\n\t\ttagTypes\n\t};\n}\nfunction readValue(surface, written) {\n\tconst read = readWrittenValue(surface.support, written);\n\treturn read.ok ? read.value : void 0;\n}\n/** The value of a tag's type that a stored document is, constructed by that type. */\nfunction tagValue(surface, type, value) {\n\ttry {\n\t\treturn surface.support.lookup.get(type)?.valueFrom(value, {});\n\t} catch (error) {\n\t\tif (isInternalError(error)) throw error;\n\t\treturn;\n\t}\n}\n/**\n* Every value the stored form could be, in the order a written value would be read: a number or\n* numeral text through the number entry first, then the plain syntax that matches the shape, then\n* each tag, whose stored form is a whole document, which may itself be a number or a boolean.\n*/\nfunction classifications(value, surface) {\n\tconst found = [];\n\tif (typeof value === \"number\") found.push(readValue(surface, {\n\t\tkind: \"number\",\n\t\ttext: numeralText(value)\n\t}));\n\telse if (typeof value === \"boolean\") found.push(readValue(surface, {\n\t\tkind: \"boolean\",\n\t\tvalue\n\t}));\n\telse if (typeof value === \"string\") {\n\t\tfound.push(readValue(surface, {\n\t\t\tkind: \"number\",\n\t\t\ttext: value\n\t\t}));\n\t\tfound.push(readValue(surface, {\n\t\t\tkind: \"string\",\n\t\t\ttext: value\n\t\t}));\n\t}\n\tfor (const type of surface.tagTypes) found.push(tagValue(surface, type, value));\n\treturn found.filter((candidate) => candidate !== void 0);\n}\n/** What the receiving type stores for `json` under its parameters, or `undefined` when it holds no such value. */\nfunction storedUnder(json, receiver, lookup) {\n\tconst type = lookup.get(receiver.id);\n\tif (type === void 0) return void 0;\n\ttry {\n\t\treturn type.toContract(type.valueFrom(json, receiver.params));\n\t} catch (error) {\n\t\tif (isInternalError(error)) throw error;\n\t\treturn;\n\t}\n}\n/** The stored form the receiving type takes this value as, spelled as its parameters give it, or `undefined` when its type takes no such value. */\nfunction admitted(candidate, receiver, surface) {\n\tconst cast = castTypedValue(surface.support, receiver.id, receiver.params, candidate);\n\treturn cast.ok ? cast.value.value : void 0;\n}\n/** The text of the literal: what the entry prints, before the syntax that fences it. */\nfunction printedText(entry, value) {\n\ttry {\n\t\treturn entry.print(value);\n\t} catch {\n\t\treturn;\n\t}\n}\n/** The printed text as the entry's syntax writes it, for reading back. */\nfunction writtenAs(entry, text) {\n\tconst written = entry.written;\n\tif (written.kind === \"tag\") return {\n\t\tkind: \"tag\",\n\t\ttag: written.tag,\n\t\ttext\n\t};\n\tif (written.syntax !== \"boolean\") return {\n\t\tkind: written.syntax,\n\t\ttext\n\t};\n\treturn text === \"true\" || text === \"false\" ? {\n\t\tkind: \"boolean\",\n\t\tvalue: text === \"true\"\n\t} : void 0;\n}\n/** What the printed text reads back as, through the same read a written value takes. */\nfunction readBack(surface, entry, text) {\n\tconst written = writtenAs(entry, text);\n\treturn written === void 0 ? void 0 : readValue(surface, written);\n}\nfunction literalText(entry, text) {\n\tconst written = entry.written;\n\tif (written.kind === \"tag\") return printTaggedLiteral(written.tag, text);\n\treturn written.syntax === \"string\" ? `\"${escapePslString(text)}\"` : text;\n}\n/**\n* The value written as the literal of one of its types, proven by reading the text straight back:\n* the same read, the same cast, and the stored form again. A number is tried first without the\n* trailing fraction zeros the receiving type's scale spells it with.\n*/\nfunction writeScalar(value, receiver, surface) {\n\tconst shortest = withoutTrailingFractionZeros(value);\n\tconst candidates = [...shortest === void 0 ? [] : classifications(shortest, surface), ...classifications(value, surface)];\n\tfor (const candidate of candidates) {\n\t\tconst entry = surface.entryOf.get(candidate.type);\n\t\tif (entry === void 0) continue;\n\t\tconst stored = admitted(candidate, receiver, surface);\n\t\tif (stored === void 0 || !sameForm(stored, value)) continue;\n\t\tconst text = printedText(entry, candidate.value);\n\t\tif (text === void 0) continue;\n\t\tconst reread = readBack(surface, entry, text);\n\t\tif (reread === void 0) continue;\n\t\tconst restored = admitted(reread, receiver, surface);\n\t\tif (restored === void 0 || !sameForm(restored, value)) continue;\n\t\treturn literalText(entry, text);\n\t}\n}\n/**\n* `value`, a value of `dataType` as `contract.json` stores it, written as the literal of a type that `dataType` takes, proven to read back as `value`: `255` for `pg/int4`, ``sql`\"MyType\"[]` `` for `sql/expression`. `undefined` when no literal reads back as it.\n*/\nfunction writeDataTypeValue(value, dataType, support) {\n\treturn writeScalar(value, {\n\t\tid: dataType,\n\t\tparams: {}\n\t}, writingSurface(support));\n}\nconst DECIMAL_WITH_FRACTION = /^-?\\d+\\.\\d+$/;\nfunction withoutTrailingFractionZeros(value) {\n\tif (typeof value !== \"string\" || !DECIMAL_WITH_FRACTION.test(value)) return void 0;\n\tconst shortened = value.replace(/0+$/, \"\").replace(/\\.$/, \"\");\n\treturn shortened === value ? void 0 : shortened;\n}\n/** One written element of a list, printed as a value of any type, with no receiving type to admit it. */\nfunction writeElement(value, of, surface) {\n\tfor (const candidate of classifications(value, surface)) {\n\t\tif (!of.includes(candidate.type)) continue;\n\t\tconst entry = surface.entryOf.get(candidate.type);\n\t\tif (entry === void 0) continue;\n\t\tconst text = printedText(entry, candidate.value);\n\t\tif (text === void 0) continue;\n\t\tconst reread = readBack(surface, entry, text);\n\t\tif (reread === void 0 || !of.includes(reread.type)) continue;\n\t\treturn {\n\t\t\ttext: literalText(entry, text),\n\t\t\tvalue: reread.value\n\t\t};\n\t}\n}\n/**\n* A written list for a scalar data type, which that type's list cast turns into its one value,\n* constructed by the type. Each element is classified on its own and must be of a type the\n* cast takes.\n*/\nfunction writeListCast(value, receiver, surface) {\n\tconst listCast = surface.support.lookup.get(receiver.id)?.listCast;\n\tif (listCast === void 0) return void 0;\n\tconst parts = [];\n\tconst elements = [];\n\tfor (const element of value) {\n\t\tconst written = writeElement(element, listCast.of, surface);\n\t\tif (written === void 0) return void 0;\n\t\tparts.push(written.text);\n\t\telements.push(written.value);\n\t}\n\tlet cast;\n\ttry {\n\t\tcast = listCast.cast(elements);\n\t} catch (error) {\n\t\tif (isInternalError(error)) throw error;\n\t\treturn;\n\t}\n\tconst stored = storedUnder(cast, receiver, surface.support.lookup);\n\treturn stored !== void 0 && sameForm(stored, value) ? `[${parts.join(\", \")}]` : void 0;\n}\n/** The PSL literal a stored value is written as for the data type `options` describe, or `undefined` when it has no written form that reads back as that value. */\nfunction writeTypedLiteral(value, options) {\n\tif (value instanceof Date) return void 0;\n\tconst { dataTypes, dataType } = options ?? {};\n\tif (dataTypes === void 0 || dataType === void 0) return void 0;\n\tconst { lookup } = dataTypes;\n\tconst receivingType = lookup.get(dataType);\n\tconst receiver = {\n\t\tid: dataType,\n\t\tparams: receivingType === void 0 ? {} : dataTypeParams(receivingType, options?.typeParams)\n\t};\n\tconst surface = writingSurface(dataTypes);\n\tif (options?.list === true) {\n\t\tif (!Array.isArray(value)) return void 0;\n\t\tconst parts = [];\n\t\tfor (const element of value) {\n\t\t\tconst written = writeScalar(element, receiver, surface);\n\t\t\tif (written === void 0) return void 0;\n\t\t\tparts.push(written);\n\t\t}\n\t\treturn `[${parts.join(\", \")}]`;\n\t}\n\tconst written = writeScalar(value, receiver, surface);\n\tif (written !== void 0) return written;\n\treturn Array.isArray(value) ? writeListCast(value, receiver, surface) : void 0;\n}\n/** Whether two stored forms are the same JSON value, member by member and element by element. */\nfunction sameForm(left, right) {\n\tif (left === right) return true;\n\tif (Array.isArray(left) !== Array.isArray(right)) return false;\n\tif (typeof left !== \"object\" || typeof right !== \"object\" || left === null || right === null) return false;\n\tconst members = Object.entries(left);\n\tconst others = new Map(Object.entries(right));\n\treturn members.length === others.size && members.every(([key, member]) => {\n\t\tconst other = others.get(key);\n\t\treturn other !== void 0 && sameForm(member, other);\n\t});\n}\n/** A value argument of a type constructor, written as a literal of its data type. */\nfunction writtenArgument(argument, value, dataTypes) {\n\treturn writeDataTypeValue(blindCast(value), dataTypeId(argument.dataType), dataTypes);\n}\n/**\n* Each argument of a call to `descriptor` as PSL writes it: a value argument as a literal of its data type that reads back as the same value. `undefined` when an argument is not a value argument or no literal reads back as it.\n*/\nfunction writtenTypeArguments(descriptor, args, dataTypes) {\n\tconst written = [];\n\tfor (const [index, value] of args.entries()) {\n\t\tconst argument = descriptor.args?.[index];\n\t\tconst text = argument && writtenArgument(argument, value, dataTypes);\n\t\tif (text === void 0) return void 0;\n\t\twritten.push(text);\n\t}\n\treturn written;\n}\n/**\n* The call to the type constructor `descriptor` at `path` as PSL writes it, with each argument that has a value written by its name as a literal of its data type, and the bare path when none has one. `undefined` when no literal reads back as one of the values.\n*/\nfunction writtenTypeConstructorCall(path, descriptor, args, dataTypes) {\n\tconst written = [];\n\tfor (const [index, argument] of (descriptor.args ?? []).entries()) {\n\t\tconst value = args[index];\n\t\tif (value === void 0) continue;\n\t\tconst text = writtenArgument(argument, value, dataTypes);\n\t\tif (text === void 0) return void 0;\n\t\twritten.push(argument.name === void 0 ? text : `${argument.name}: ${text}`);\n\t}\n\tconst name = path.join(\".\");\n\treturn written.length === 0 ? name : `${name}(${written.join(\", \")})`;\n}\n//#endregion\n//#region src/shared/enum-stored-members.ts\nfunction storedFormOf(stored) {\n\treturn canonicalStringify(JSON.parse(JSON.stringify(stored)));\n}\n/** The key two stored values are equal by: the data type's `equalityKey` when it declares one, else the stored form as `contract.json` holds it, compared by `canonicalStringify`. */\nfunction storedValueKey(stored, equalityKey) {\n\treturn equalityKey?.(stored) ?? storedFormOf(stored);\n}\n/**\n* Each enum member whose stored form equals an earlier member's, paired with the first such member. Stored forms are compared as `contract.json` holds them, so negative zero is zero, and by `canonicalStringify`, so two objects with the same entries in a different order are equal; or, when the enum's data type declares an `equalityKey`, by that key, so `0.5` and `0.50` are one `numeric` value. Every enum authoring surface refuses the members this returns.\n*/\nfunction duplicateStoredMembers(members, equalityKey) {\n\tconst memberByKey = /* @__PURE__ */ new Map();\n\tconst duplicates = [];\n\tfor (const member of members) {\n\t\tconst { name, stored } = member;\n\t\tconst key = storedValueKey(stored, equalityKey);\n\t\tconst earlier = memberByKey.get(key);\n\t\tif (earlier === void 0) memberByKey.set(key, member);\n\t\telse if (storedFormOf(earlier.stored) === storedFormOf(stored)) duplicates.push({\n\t\t\tearlier: earlier.name,\n\t\t\tlater: name,\n\t\t\tstored\n\t\t});\n\t\telse duplicates.push({\n\t\t\tearlier: earlier.name,\n\t\t\tlater: name,\n\t\t\tstored,\n\t\t\tearlierStored: earlier.stored\n\t\t});\n\t}\n\treturn duplicates;\n}\n//#endregion\n//#region src/shared/discriminator-rule.ts\n/**\n* The refusals of a discriminator: the field must be required, hold one value, and have one of the stack's text data types; and when an enum types it, each variant's value, as the field stores it, must be one of the enum's members, compared by the field's data type's equality. Returns no refusals for a discriminator that is valid.\n*/\nfunction discriminatorRefusals(input) {\n\tconst { field } = input;\n\tconst textDataTypes = input.dataTypes.textDataTypes ?? [];\n\tif (textDataTypes.length === 0) throw new InternalError(\"The stack names no text data types, so no field can be a discriminator; the target names its text types in its authoring contributions.\");\n\tconst refusals = [];\n\tif (field.nullable) refusals.push({ kind: \"optional\" });\n\tif (field.many) refusals.push({ kind: \"list\" });\n\tconst dataType = field.ref === void 0 ? void 0 : input.codecLookup.descriptorFor(field.ref.codecId)?.dataType;\n\tif (dataType === void 0 || !textDataTypes.includes(dataType)) refusals.push({\n\t\tkind: \"not-text\",\n\t\tdataType,\n\t\ttextDataTypes\n\t});\n\tconst members = field.enumMembers;\n\tif (members !== void 0) {\n\t\tconst equalityKey = dataType === void 0 ? void 0 : input.dataTypes.lookup.get(dataType)?.equalityKey;\n\t\tconst memberKeys = new Set(members.map((member) => storedValueKey(member, equalityKey)));\n\t\tfor (const { key, stored } of input.variantValues) if (!memberKeys.has(storedValueKey(stored, equalityKey))) refusals.push({\n\t\t\tkind: \"not-a-member\",\n\t\t\tkey,\n\t\t\tstored,\n\t\t\tmembers\n\t\t});\n\t}\n\treturn refusals;\n}\n/**\n* A discriminator refusal worded as a PSL diagnostic: a refusal of the field at its `@@discriminator`, and a value that is not a member at its `@@base`. The wording names PSL syntax, so PSL sources word the refusals with this; a TypeScript source words them in its own terms.\n*/\nfunction describeDiscriminatorRefusal(refusal, subject) {\n\tconst field = `Discriminator field \"${subject.fieldName}\" on model \"${subject.modelName}\"`;\n\tswitch (refusal.kind) {\n\t\tcase \"optional\": return `${field} must be required, but it is optional. Remove the \"?\"`;\n\t\tcase \"list\": return `${field} must hold one value, but it is a list. Remove the \"[]\"`;\n\t\tcase \"not-text\": return `${field} must be text, such as String, but is \"${subject.typeName}\"`;\n\t\tcase \"not-a-member\": return `Model \"${subject.variantName(refusal.key)}\" declares @@base value ${JSON.stringify(refusal.stored)}, which is not a member of enum \"${subject.enumName}\", the type of discriminator field \"${subject.modelName}.${subject.fieldName}\". Write one of: ${refusal.members.map((member) => JSON.stringify(member)).join(\", \")}`;\n\t}\n}\n/**\n* Applies the discriminator rule to one discriminator and its variants: reads each variant's written value into the field's codec with {@link readWrittenValueIntoCodec}, worded after `subject`, then decides with {@link discriminatorRefusals}. A refused field refuses the whole discriminator, so its variants' values are neither read nor refused. A discriminator is text, so a stored value that is not a string is a bug in a text data type.\n*/\nfunction applyDiscriminatorRule(input) {\n\tconst { field, codecLookup, dataTypes } = input;\n\tconst fieldOnly = discriminatorRefusals({\n\t\tfield,\n\t\tvariantValues: [],\n\t\tcodecLookup,\n\t\tdataTypes\n\t}).filter(isFieldRefusal);\n\tif (fieldOnly.length > 0) return {\n\t\tfieldRefusals: fieldOnly,\n\t\tvariantRefusals: [],\n\t\tvalues: /* @__PURE__ */ new Map()\n\t};\n\tconst ref = field.ref;\n\tif (ref === void 0) throw new InternalError(\"A discriminator field the rule accepts has a codec.\");\n\tconst reads = input.variants.map(({ key, written }) => ({\n\t\tkey,\n\t\treading: readWrittenValueIntoCodec({\n\t\t\tsupport: dataTypes,\n\t\t\tcodecLookup,\n\t\t\tref,\n\t\t\twritten,\n\t\t\tsubject: input.subject\n\t\t})\n\t}));\n\tconst notMembers = new Map(discriminatorRefusals({\n\t\tfield,\n\t\tvariantValues: reads.flatMap(({ key, reading }) => reading.ok ? [{\n\t\t\tkey,\n\t\t\tstored: reading.value\n\t\t}] : []),\n\t\tcodecLookup,\n\t\tdataTypes\n\t}).flatMap((refusal) => refusal.kind === \"not-a-member\" ? [[refusal.key, refusal]] : []));\n\tconst variantRefusals = [];\n\tconst values = /* @__PURE__ */ new Map();\n\tfor (const { key, reading } of reads) {\n\t\tif (!reading.ok) {\n\t\t\tvariantRefusals.push({\n\t\t\t\tkind: \"unreadable\",\n\t\t\t\tkey,\n\t\t\t\trefusal: reading.failure\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tconst notMember = notMembers.get(key);\n\t\tif (notMember !== void 0) {\n\t\t\tvariantRefusals.push(notMember);\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof reading.value !== \"string\") throw new InternalError(`Discriminator field codec \"${ref.codecId}\" stores a text value as ${typeof reading.value}.`);\n\t\tvalues.set(key, reading.value);\n\t}\n\treturn {\n\t\tfieldRefusals: [],\n\t\tvariantRefusals,\n\t\tvalues\n\t};\n}\nfunction isFieldRefusal(refusal) {\n\treturn refusal.kind !== \"not-a-member\";\n}\n//#endregion\n//#region src/shared/enum-block-members.ts\n/**\n* A problem with an enum's members as a diagnostic at the member, or at the block when the problem is the enum's codec.\n*/\nfunction enumMemberProblemDiagnostic(problem, site) {\n\tconst { enumName, codecId, sourceId } = site;\n\tconst at = (member) => ({\n\t\tsourceId,\n\t\tspan: site.memberSpans[member] ?? site.span\n\t});\n\tswitch (problem.kind) {\n\t\tcase \"codec-not-for-enums\": return {\n\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\tmessage: `enum \"${enumName}\" cannot use the codec \"${codecId}\". ${problem.refusal}`,\n\t\t\tsourceId,\n\t\t\tspan: site.span\n\t\t};\n\t\tcase \"codec-missing\": return {\n\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\tmessage: `enum \"${enumName}\" uses codec \"${codecId}\", which no pack in the contract provides`,\n\t\t\tsourceId,\n\t\t\tspan: site.span\n\t\t};\n\t\tcase \"codec-refused-member\": return {\n\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\tmessage: `enum \"${enumName}\" member \"${problem.member}\" was rejected by codec \"${codecId}\": ${problem.reason}`,\n\t\t\t...at(problem.member)\n\t\t};\n\t\tcase \"member-not-stored-as-written\": return {\n\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\tmessage: `enum \"${enumName}\" member \"${problem.member}\" is written ${problem.written}, but its codec stores ${JSON.stringify(problem.stored)}. Write the member as ${problem.writeAs}.`,\n\t\t\t...at(problem.member)\n\t\t};\n\t\tcase \"duplicate-member-value\": return {\n\t\t\tcode: \"PSL_ENUM_DUPLICATE_MEMBER_VALUE\",\n\t\t\tmessage: problem.earlierStored === void 0 ? `enum \"${enumName}\": members \"${problem.earlier}\" and \"${problem.later}\" both store ${JSON.stringify(problem.stored)}` : `enum \"${enumName}\": members \"${problem.earlier}\" and \"${problem.later}\" store ${JSON.stringify(problem.earlierStored)} and ${JSON.stringify(problem.stored)}, which the database holds equal`,\n\t\t\t...at(problem.later)\n\t\t};\n\t}\n}\n/** A member as it is written: its recorded written value, or a bare member's name, as text. */\nfunction writtenMember(block, memberName, memberValue) {\n\tconst written = block.writtenValues?.[memberName];\n\tif (written !== void 0) return written;\n\tif (memberValue === void 0) return {\n\t\tkind: \"string\",\n\t\ttext: memberName\n\t};\n\tthrow new InternalError(`enum \"${block.name}\" member \"${memberName}\" has a value, but the block holds no written value for it.`);\n}\n/**\n* Reads the members of an `enum` block through its codec with {@link readWrittenValueIntoCodec}: each member's syntax gives it a data type, the codec's data type takes it directly or through a cast, and the codec checks it, so a number keeps every digit and a quoted value is text. A bare member is read from its own name, as text.\n* Pushes a diagnostic and returns `undefined` when a member is refused, when two members\n* store the same value, or when the block has no members. Shared by every family's enum factory.\n*/\nfunction readEnumBlockMembers(block, codecId, codec, ctx) {\n\tconst sourceId = ctx.sourceId ?? \"unknown\";\n\tconst diagnostics = ctx.diagnostics;\n\tconst site = {\n\t\tenumName: block.name,\n\t\tcodecId,\n\t\tsourceId,\n\t\tspan: block.span,\n\t\tmemberSpans: block.parameterSpans\n\t};\n\tconst members = [];\n\tconst storedMembers = [];\n\tlet memberError = false;\n\tfor (const [memberName, memberValue] of Object.entries(block.values)) {\n\t\tconst span = block.parameterSpans[memberName] ?? block.span;\n\t\tconst reading = readWrittenValueIntoCodec({\n\t\t\tsupport: ctx.dataTypes,\n\t\t\tcodecLookup: ctx.codecLookup,\n\t\t\tref: { codecId },\n\t\t\twritten: writtenMember(block, memberName, memberValue),\n\t\t\tsubject: `enum \"${block.name}\" member \"${memberName}\"`\n\t\t});\n\t\tif (!reading.ok) {\n\t\t\tdiagnostics?.push(memberValue === void 0 ? {\n\t\t\t\tcode: \"PSL_ENUM_BARE_MEMBER_NON_STRING_CODEC\",\n\t\t\t\tmessage: `enum \"${block.name}\" member \"${memberName}\" has no value and codec \"${codecId}\" does not accept a bare name as input`,\n\t\t\t\tsourceId,\n\t\t\t\tspan\n\t\t\t} : {\n\t\t\t\t...reading.failure,\n\t\t\t\tsourceId,\n\t\t\t\tspan\n\t\t\t});\n\t\t\tmemberError = true;\n\t\t\tcontinue;\n\t\t}\n\t\tconst read = readContractValue(codec, reading.value, void 0);\n\t\tmembers.push({\n\t\t\tname: memberName,\n\t\t\tvalue: read\n\t\t});\n\t\tstoredMembers.push({\n\t\t\tname: memberName,\n\t\t\tstored: codec.dataType.toContract(codec.toDataTypeValue(read))\n\t\t});\n\t}\n\tfor (const duplicate of duplicateStoredMembers(storedMembers, codec.dataType.equalityKey)) {\n\t\tdiagnostics?.push(enumMemberProblemDiagnostic({\n\t\t\tkind: \"duplicate-member-value\",\n\t\t\t...duplicate\n\t\t}, site));\n\t\tmemberError = true;\n\t}\n\tif (memberError) return void 0;\n\tif (members.length === 0) {\n\t\tdiagnostics?.push({\n\t\t\tcode: \"PSL_ENUM_MISSING_TYPE\",\n\t\t\tmessage: `enum \"${block.name}\" must have at least one member`,\n\t\t\tsourceId,\n\t\t\tspan: block.span\n\t\t});\n\t\treturn;\n\t}\n\treturn members;\n}\n//#endregion\n//#region src/shared/enum-members.ts\n/** Whether TypeScript gives the value a literal type: a primitive, or an array or plain object of them. */\nfunction hasLiteralType(value) {\n\tif ([\n\t\t\"string\",\n\t\t\"number\",\n\t\t\"boolean\",\n\t\t\"bigint\"\n\t].includes(typeof value)) return true;\n\tif (Array.isArray(value)) return value.every(hasLiteralType);\n\tif (typeof value !== \"object\" || value === null) return false;\n\tconst prototype = Object.getPrototypeOf(value);\n\treturn (prototype === Object.prototype || prototype === null) && Object.values(value).every(hasLiteralType);\n}\n/**\n* A member's value in the form its codec stores it, and that form read back by the codec. A codec that throws on either is a refusal naming the member; an internal error is not the member's fault and propagates.\n*/\nfunction encodeEnumMember(member, codec) {\n\ttry {\n\t\tconst stored = codec.dataType.toContract(codec.toDataTypeValue(member.value));\n\t\treturn ok({\n\t\t\tstored,\n\t\t\treadBack: readContractValue(codec, stored, void 0)\n\t\t});\n\t} catch (cause) {\n\t\tif (isInternalError(cause)) throw cause;\n\t\treturn notOk({\n\t\t\tkind: \"codec-refused-member\",\n\t\t\tmember: member.name,\n\t\t\treason: cause instanceof Error ? cause.message : String(cause),\n\t\t\tcause\n\t\t});\n\t}\n}\n/**\n* Refuses a member its codec reads back as a different value from the one written. A member with no literal type has nothing to compare.\n*/\nfunction notStoredAsWritten(member, stored, readBack) {\n\tif (!hasLiteralType(member.value)) return void 0;\n\tif (hasLiteralType(readBack) && canonicalStringify(readBack) === canonicalStringify(member.value)) return void 0;\n\treturn {\n\t\tkind: \"member-not-stored-as-written\",\n\t\tmember: member.name,\n\t\twritten: canonicalStringify(member.value),\n\t\tstored,\n\t\twriteAs: hasLiteralType(readBack) ? canonicalStringify(readBack) : JSON.stringify(stored)\n\t};\n}\n/**\n* Each member of an enum in the form its codec stores it. Refuses a codec an enum cannot use, a codec the lookup does not have, a member the codec refuses, a member the codec reads back as another value, and two members stored as the same value. Every family's contract build calls this, and reports the problems in its own terms.\n*/\nfunction encodeEnumMembers(decodedEnum, codecLookup) {\n\tconst descriptor = codecLookup.descriptorFor(decodedEnum.codecId);\n\tconst refusal = descriptor === void 0 ? void 0 : enumRefusalOf(descriptor);\n\tif (refusal !== void 0) return notOk([{\n\t\tkind: \"codec-not-for-enums\",\n\t\trefusal\n\t}]);\n\tconst codec = codecLookup.get(decodedEnum.codecId);\n\tif (codec === void 0) return notOk([{ kind: \"codec-missing\" }]);\n\tconst problems = [];\n\tconst members = [];\n\tfor (const member of decodedEnum.enumMembers) {\n\t\tconst encoded = encodeEnumMember(member, codec);\n\t\tif (!encoded.ok) {\n\t\t\tproblems.push(encoded.failure);\n\t\t\tcontinue;\n\t\t}\n\t\tconst { stored, readBack } = encoded.value;\n\t\tconst mismatch = notStoredAsWritten(member, stored, readBack);\n\t\tif (mismatch !== void 0) problems.push(mismatch);\n\t\tmembers.push({\n\t\t\tname: member.name,\n\t\t\tvalue: stored\n\t\t});\n\t}\n\tfor (const duplicate of duplicateStoredMembers(members.map(({ name, value }) => ({\n\t\tname,\n\t\tstored: value\n\t})), codec.dataType.equalityKey)) problems.push({\n\t\tkind: \"duplicate-member-value\",\n\t\t...duplicate\n\t});\n\treturn problems.length > 0 ? notOk(problems) : ok(members);\n}\n//#endregion\nexport { AUTHORING_TYPE_DESCRIPTOR_KINDS, TIMESTAMP_NOW_GENERATOR_ID, admittedForms, admittedTags, applyDiscriminatorRule, assembleAuthoringDataTypes, assembleDataTypeSupport, assertNoAuthoringFieldNamespace, assertNoCrossRegistryCollisions, assertResolvableTypeConstructorTemplates, assertTypeAliasesValid, assertTypeChoicesValid, authoringTypeConstructorArguments, authoringTypeConstructors, canonicalizeTaggedLiteralBody, castTypedValue, classifyEnumMemberType, collectScalarTypeConstructors, describeAdmittedForms, describeDiscriminatorRefusal, describeExpected, describeRefusal, describeRefusedValueType, describeTaggedLiteralFailure, duplicateStoredMembers, encodeEnumMembers, entryForPlain, entryForTag, enumMemberProblemDiagnostic, exactRewrite, findAuthoringTypeChoiceCall, findAuthoringTypeConstructorCall, flushAuthoringWarnings, getAuthoringTypeChoice, getAuthoringTypeConstructor, instantiateAuthoringEntityType, instantiateAuthoringTypeAlias, instantiateAuthoringTypeCall, instantiateAuthoringTypeConstructor, instantiateAuthoringTypeConstructorFromValues, isAuthoringArgRef, isAuthoringEntityTypeDescriptor, isAuthoringModelAttributeDescriptor, isAuthoringPslBlockDescriptor, isAuthoringTypeAliasDescriptor, isAuthoringTypeChoiceDescriptor, isAuthoringTypeChoiceOption, isAuthoringTypeConstructorDescriptor, isAuthoringTypeDescriptor, knownTags, mergeAuthoringNamespaces, printTaggedLiteral, printedTaggedLiteralReadsBack, readEnumBlockMembers, readWrittenValue, readWrittenValueAs, readWrittenValueIntoCodec, resolveAuthoringTemplateValue, resolveAuthoringTypeChoice, resolveEnumCodecId, resolveTemplateTagEscapes, resolveTypeAliasGenerators, tagForm, temporalTypeAliases, tsTaggedTemplateSource, typeChoiceArgumentsFromObject, typeChoiceCombinationText, typeConstructorLookup, unknownTypeChoiceArgumentMessage, validateAuthoringHelperArguments, validateAuthoringTypeChoiceParams, validateAuthoringTypeParams, writeDataTypeValue, writeTypedLiteral, writtenTypeArguments, writtenTypeConstructorCall };\n\n//# sourceMappingURL=authoring.mjs.map"],"mappings":";;;;;;;;;;;AAWA,UAAU,0BAA0B,WAAW,OAAO,CAAC,GAAG;CACzD,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAQ,SAAS,GAAG,IAAI,qCAAqC,KAAK,GAAG,MAAM;EAC7G,MAAM,CAAC,GAAG,MAAM,IAAI;EACpB,YAAY;CACb;MACK,IAAI,CAAC,0BAA0B,KAAK,GAAG,OAAO,0BAA0B,OAAO,CAAC,GAAG,MAAM,IAAI,CAAC;AACpG;;AAEA,SAAS,mCAAmC,UAAU,QAAQ;CAC7D,MAAM,eAAe;EACpB,GAAG;EACH,YAAY,OAAO,cAAc,CAAC;CACnC;CACA,OAAO,OAAO,QAAQ;EACrB,GAAG;EACH,YAAY,SAAS,cAAc,CAAC;CACrC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,WAAW,iBAAiB,KAAK,MAAM,iBAAiB,aAAa,IAAI,CAAC;AAC3F;;;;;;AAMA,SAAS,kCAAkC,YAAY,QAAQ;CAC9D,IAAI,WAAW,iBAAiB,KAAK,KAAK,WAAW,OAAO,YAAY,OAAO,SAAS;CACxF,MAAM,OAAO,CAAC;CACd,KAAK,MAAM,CAAC,KAAK,aAAa,OAAO,QAAQ,WAAW,OAAO,cAAc,CAAC,CAAC,GAAG;EACjF,MAAM,QAAQ,OAAO,aAAa;EAClC,IAAI,UAAU,KAAK,KAAK,kBAAkB,QAAQ,GAAG,KAAK,SAAS,SAAS;CAC7E;CACA,MAAM,gBAAgB,WAAW,QAAQ,CAAC,EAAA,CAAG,QAAQ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,QAAQ,QAAQ,QAAQ;EAC5D,IAAI,aAAa,KAAK,GAAG,SAAS,KAAK,QAAQ;EAC/C,QAAQ,KAAK;GACZ,MAAM,OAAO;GACb,OAAO;EACR,CAAC;CACF;CACA,KAAK,MAAM,aAAa,uBAAuB,QAAQ,KAAK,EAAE,MAAM,aAAa;EAChF;EACA,QAAQ;CACT,EAAE,GAAG,MAAM,SAAS,WAAW,GAAG,SAAS,KAAK;EAC/C,MAAM;EACN,GAAG;CACJ,CAAC;CACD,OAAO,SAAS,SAAS,IAAI,MAAM,QAAQ,IAAI,GAAG,OAAO;AAC1D"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { T as DataTypeValue, b as DataTypeParams, m as CodecRef, p as CodecLookupWithDescriptors, v as DataTypeId, y as DataTypeLookup } from "./codec-types-B4wPvO-K-
|
|
1
|
+
import { d as ExecutionMutationDefaultPhases, f as ExecutionMutationDefaultValue, r as ColumnDefault, v as JsonValue } from "./types-CkFfDIud-C1u8M2UE.mjs";
|
|
2
|
+
import { T as DataTypeValue, b as DataTypeParams, m as CodecRef, p as CodecLookupWithDescriptors, v as DataTypeId, y as DataTypeLookup } from "./codec-types-B4wPvO-K-BIPFT7EP.mjs";
|
|
3
3
|
import { r as Result } from "./result-BYCOANWy.mjs";
|
|
4
4
|
import { Type } from "arktype";
|
|
5
5
|
import { StandardSchemaV1 } from "@standard-schema/spec";
|
|
6
|
-
//#region ../../../1-framework/1-core/framework-components/dist/
|
|
6
|
+
//#region ../../../1-framework/1-core/framework-components/dist/authoring-type-choice-CHcRX0RP.d.mts
|
|
7
7
|
//#region src/shared/mutation-default-types.d.ts
|
|
8
8
|
interface SourcePosition {
|
|
9
9
|
readonly offset: number;
|
|
@@ -508,7 +508,7 @@ interface AuthoringTypeConstructorDescriptor {
|
|
|
508
508
|
readonly deprecated?: {
|
|
509
509
|
readonly replacement: string;
|
|
510
510
|
};
|
|
511
|
-
/** Marks the constructor written for a column of its codec's data type when no schema names one: `contract infer`
|
|
511
|
+
/** Marks the constructor written for a column of its codec's data type when no schema names one: `contract infer` and the reader of an earlier Prisma version's schema pick it. `contract print` picks it when it produces the column's codec, and otherwise the first constructor in the stack that does; either writes a type choice that becomes it instead, where one does. At most one per data type. */
|
|
512
512
|
readonly inferred?: true;
|
|
513
513
|
}
|
|
514
514
|
/**
|
|
@@ -526,10 +526,12 @@ interface AuthoringTypeAliasDescriptor {
|
|
|
526
526
|
};
|
|
527
527
|
}
|
|
528
528
|
type AuthoringTypeNamespace = {
|
|
529
|
-
readonly [name: string]:
|
|
529
|
+
readonly [name: string]: AuthoringTypeNamespaceMember;
|
|
530
530
|
};
|
|
531
|
+
/** A leaf of a `type` namespace, or a sub-namespace. */
|
|
532
|
+
type AuthoringTypeNamespaceMember = AuthoringTypeConstructorDescriptor | AuthoringTypeAliasDescriptor | AuthoringTypeChoiceDescriptor | AuthoringTypeNamespace;
|
|
531
533
|
/** The descriptor kinds a `type` namespace holds as leaves. */
|
|
532
|
-
declare const AUTHORING_TYPE_DESCRIPTOR_KINDS: readonly ["typeConstructor", "typeAlias"];
|
|
534
|
+
declare const AUTHORING_TYPE_DESCRIPTOR_KINDS: readonly ["typeConstructor", "typeAlias", "typeChoice"];
|
|
533
535
|
/**
|
|
534
536
|
* Context surfaced to entity-type factories at call time. Currently a
|
|
535
537
|
* placeholder — sharpened as concrete consumers (enum, namespace, …)
|
|
@@ -892,10 +894,11 @@ interface AuthoringContributions {
|
|
|
892
894
|
/** Refuses the `authoring.field` key, which held field presets before Prisma 8 removed them. A component built against the old types would otherwise lose its presets silently. */
|
|
893
895
|
declare function assertNoAuthoringFieldNamespace(componentId: string, authoring: object | undefined): void;
|
|
894
896
|
declare function isAuthoringArgRef(value: unknown): value is AuthoringArgRef;
|
|
895
|
-
declare function isAuthoringTypeConstructorDescriptor(value:
|
|
896
|
-
declare function isAuthoringTypeAliasDescriptor(value:
|
|
897
|
-
|
|
898
|
-
|
|
897
|
+
declare function isAuthoringTypeConstructorDescriptor(value: object): value is AuthoringTypeConstructorDescriptor;
|
|
898
|
+
declare function isAuthoringTypeAliasDescriptor(value: AuthoringTypeNamespaceMember): value is AuthoringTypeAliasDescriptor;
|
|
899
|
+
declare function isAuthoringTypeChoiceDescriptor(value: AuthoringTypeNamespaceMember): value is AuthoringTypeChoiceDescriptor;
|
|
900
|
+
/** Whether `value` is a leaf of a `type` namespace: a type constructor, a type alias or a type choice. */
|
|
901
|
+
declare function isAuthoringTypeDescriptor(value: AuthoringTypeNamespaceMember): value is AuthoringTypeConstructorDescriptor | AuthoringTypeAliasDescriptor | AuthoringTypeChoiceDescriptor;
|
|
899
902
|
/** The type constructor at `path` in the contributions' type namespace, or `undefined` when none is there. */
|
|
900
903
|
declare function getAuthoringTypeConstructor(contributions: {
|
|
901
904
|
readonly type?: AuthoringTypeNamespace;
|
|
@@ -942,22 +945,6 @@ interface ScalarTypeConstructorOutput {
|
|
|
942
945
|
readonly codecId: string;
|
|
943
946
|
readonly typeParams?: Record<string, unknown>;
|
|
944
947
|
}
|
|
945
|
-
/**
|
|
946
|
-
* Derives the scalar view of an assembled authoring type namespace: every
|
|
947
|
-
* **top-level** type constructor that is instantiable with an empty argument
|
|
948
|
-
* list — all declared args optional and no entity-ref argument. A bare type
|
|
949
|
-
* name `T` in a schema is semantically the zero-arg instantiation `T()`, so
|
|
950
|
-
* each entry is exactly what that call produces (defaulted template values
|
|
951
|
-
* applied, absent optional-arg typeParams keys omitted). Constructors
|
|
952
|
-
* registered under a namespace segment, constructors with required args, and
|
|
953
|
-
* entity-ref constructors are not scalars and are excluded.
|
|
954
|
-
*
|
|
955
|
-
* Eligibility needs no template inspection: templates that cannot resolve
|
|
956
|
-
* for their legal call shapes are rejected at the composition boundary by
|
|
957
|
-
* {@link assertResolvableTypeConstructorTemplates}, so the zero-arg
|
|
958
|
-
* instantiation below cannot fail for an eligible constructor.
|
|
959
|
-
*/
|
|
960
|
-
declare function collectScalarTypeConstructors(namespace: AuthoringTypeNamespace): ReadonlyMap<string, ScalarTypeConstructorOutput>;
|
|
961
948
|
/**
|
|
962
949
|
* Boundary validation for a contributed authoring type namespace, called
|
|
963
950
|
* per contributing component at assembly (which supplies `contributedBy`
|
|
@@ -969,7 +956,9 @@ declare function collectScalarTypeConstructors(namespace: AuthoringTypeNamespace
|
|
|
969
956
|
declare function assertResolvableTypeConstructorTemplates(namespace: AuthoringTypeNamespace, contributedBy: string, path?: readonly string[]): void;
|
|
970
957
|
declare function assertNoCrossRegistryCollisions(typeNamespace: AuthoringTypeNamespace, entityTypeNamespace?: AuthoringEntityTypeNamespace, pslBlockNamespace?: AuthoringPslBlockDescriptorNamespace, modelAttributeNamespace?: AuthoringModelAttributeDescriptorNamespace): void;
|
|
971
958
|
declare function resolveAuthoringTemplateValue(template: AuthoringTemplateValue | undefined, args: readonly unknown[]): unknown;
|
|
972
|
-
declare function validateAuthoringHelperArguments(helperPath: string, descriptors: readonly
|
|
959
|
+
declare function validateAuthoringHelperArguments(helperPath: string, descriptors: readonly HelperArgumentDescriptor[] | undefined, args: readonly unknown[]): void;
|
|
960
|
+
/** An argument of a type constructor, or of a type choice, whose call a helper checks. */
|
|
961
|
+
type HelperArgumentDescriptor = AuthoringArgumentDescriptor | AuthoringTypeChoiceOption;
|
|
973
962
|
/** Why a constructor's type parameters fail its codec's parameter schema, and the argument the failing parameter came from. */
|
|
974
963
|
interface AuthoringTypeParamsIssue {
|
|
975
964
|
readonly message: string;
|
|
@@ -979,6 +968,10 @@ interface AuthoringTypeParamsIssue {
|
|
|
979
968
|
* Checks the type parameters a constructor produced against its codec's parameter schema, which is where the bounds of a data type's parameters are written. A failure names the argument the failing parameter came from.
|
|
980
969
|
*/
|
|
981
970
|
declare function validateAuthoringTypeParams(helperPath: string, template: AuthoringStorageTypeTemplate, typeParams: Record<string, unknown> | undefined, paramsSchema: StandardSchemaV1<unknown> | undefined): void;
|
|
971
|
+
/**
|
|
972
|
+
* {@link validateAuthoringTypeParams} for a call of the type choice `choice` that chose `chosen`: a failure names the choice's own argument the failing parameter came from, by its name and its index in the choice's arguments.
|
|
973
|
+
*/
|
|
974
|
+
declare function validateAuthoringTypeChoiceParams(helperPath: string, choice: AuthoringTypeChoiceDescriptor, chosen: AuthoringTypeConstructorDescriptor, typeParams: Record<string, unknown> | undefined, paramsSchema: StandardSchemaV1<unknown> | undefined): void;
|
|
982
975
|
declare function instantiateAuthoringTypeConstructor(descriptor: AuthoringTypeConstructorDescriptor, args: readonly unknown[]): ScalarTypeConstructorOutput;
|
|
983
976
|
/** What a field typed by a contributed type alias takes: the type, and the alias's generator calls. */
|
|
984
977
|
interface AuthoringTypeAliasOutput {
|
|
@@ -1012,5 +1005,96 @@ declare function assertTypeAliasesValid(namespace: AuthoringTypeNamespace, looku
|
|
|
1012
1005
|
declare function instantiateAuthoringTypeConstructorFromValues(descriptor: AuthoringTypeConstructorDescriptor, values: readonly unknown[], paramsSchema: StandardSchemaV1<unknown> | undefined): Result<ScalarTypeConstructorOutput, AuthoringTypeParamsIssue>;
|
|
1013
1006
|
declare function instantiateAuthoringEntityType<TOutput = unknown>(helperPath: string, descriptor: AuthoringEntityTypeDescriptor, args: readonly unknown[], ctx: AuthoringEntityContext): TOutput;
|
|
1014
1007
|
//#endregion
|
|
1015
|
-
|
|
1016
|
-
|
|
1008
|
+
//#region src/shared/authoring-type-choice.d.ts
|
|
1009
|
+
/** An argument of a type choice that picks its row: one of `values`, written as a bare name, and `default` when it is left out. */
|
|
1010
|
+
interface AuthoringTypeChoiceOption {
|
|
1011
|
+
readonly kind: 'option';
|
|
1012
|
+
readonly values: readonly string[];
|
|
1013
|
+
readonly name: string;
|
|
1014
|
+
readonly default: string;
|
|
1015
|
+
readonly optional: true;
|
|
1016
|
+
}
|
|
1017
|
+
/** An argument a type choice passes on, by name, to the constructor its row names. */
|
|
1018
|
+
type AuthoringTypeChoicePassedArgument = AuthoringArgumentDescriptor & {
|
|
1019
|
+
readonly name: string;
|
|
1020
|
+
readonly optional: true;
|
|
1021
|
+
};
|
|
1022
|
+
type AuthoringTypeChoiceArgument = AuthoringTypeChoiceOption | AuthoringTypeChoicePassedArgument;
|
|
1023
|
+
/** One allowed combination of option values, the type constructor it chooses, and the values of passed-on arguments when they are left out. */
|
|
1024
|
+
interface AuthoringTypeChoiceRow {
|
|
1025
|
+
readonly when: Readonly<Record<string, string>>;
|
|
1026
|
+
/** A type constructor in the same namespace as the type choice. */
|
|
1027
|
+
readonly type: string;
|
|
1028
|
+
readonly defaults?: Readonly<Record<string, JsonValue>>;
|
|
1029
|
+
}
|
|
1030
|
+
/**
|
|
1031
|
+
* A type whose arguments choose the type constructor it becomes. Every argument is optional, so it is also written bare. A combination of option values with no row is refused. ADR 279.
|
|
1032
|
+
*/
|
|
1033
|
+
interface AuthoringTypeChoiceDescriptor {
|
|
1034
|
+
readonly kind: 'typeChoice';
|
|
1035
|
+
readonly documentation?: string;
|
|
1036
|
+
readonly args: readonly AuthoringTypeChoiceArgument[];
|
|
1037
|
+
readonly choices: readonly AuthoringTypeChoiceRow[];
|
|
1038
|
+
}
|
|
1039
|
+
/** The constructor a type choice call chooses, by its name, and the arguments it is called with. */
|
|
1040
|
+
interface ResolvedAuthoringTypeChoice {
|
|
1041
|
+
readonly type: string;
|
|
1042
|
+
readonly descriptor: AuthoringTypeConstructorDescriptor;
|
|
1043
|
+
readonly args: readonly unknown[];
|
|
1044
|
+
}
|
|
1045
|
+
declare function isAuthoringTypeChoiceOption(argument: AuthoringTypeChoiceArgument): argument is AuthoringTypeChoiceOption;
|
|
1046
|
+
/** How a combination of option values is written, as in `as: string, storage: timestamp`. */
|
|
1047
|
+
declare function typeChoiceCombinationText(row: AuthoringTypeChoiceRow): string;
|
|
1048
|
+
/** Why `subject`, a call of the type choice `descriptor`, cannot take the argument `name`, naming the arguments it takes. */
|
|
1049
|
+
declare function unknownTypeChoiceArgumentMessage(subject: string, descriptor: AuthoringTypeChoiceDescriptor, name: string): string;
|
|
1050
|
+
/**
|
|
1051
|
+
* The values of a type choice call that writes its arguments as one object, by the choice's argument positions, as {@link resolveAuthoringTypeChoice} reads them. `written` is the call's arguments: none, or one object keyed by argument name. Anything else, and a key the choice has no argument for, is refused with `CONTRACT.ARGUMENT_INVALID`.
|
|
1052
|
+
*/
|
|
1053
|
+
declare function typeChoiceArgumentsFromObject(helperPath: string, descriptor: AuthoringTypeChoiceDescriptor, written: readonly unknown[]): readonly unknown[];
|
|
1054
|
+
/**
|
|
1055
|
+
* The type constructor a call of the type choice `descriptor` chooses, and the arguments it passes on. `args` are the call's values by the choice's argument positions; an option left out takes its default. A value an option does not list, a combination with no row, and a passed-on argument the chosen constructor does not take are refused with `CONTRACT.ARGUMENT_INVALID`, naming the argument by its index.
|
|
1056
|
+
*/
|
|
1057
|
+
declare function resolveAuthoringTypeChoice(input: {
|
|
1058
|
+
readonly helperPath: string;
|
|
1059
|
+
readonly descriptor: AuthoringTypeChoiceDescriptor;
|
|
1060
|
+
readonly args: readonly unknown[];
|
|
1061
|
+
readonly constructorNamed: (name: string) => AuthoringTypeConstructorDescriptor | undefined;
|
|
1062
|
+
}): ResolvedAuthoringTypeChoice;
|
|
1063
|
+
/** Looks a type constructor up by name in one level of a type namespace, as a type choice's rows name them. */
|
|
1064
|
+
declare function typeConstructorLookup(namespace: {
|
|
1065
|
+
readonly [name: string]: object;
|
|
1066
|
+
}): (name: string) => AuthoringTypeConstructorDescriptor | undefined;
|
|
1067
|
+
/** The type choice at `path` in the contributions' type namespace, with a lookup of the type constructors beside it that its rows name, or `undefined` when none is there. */
|
|
1068
|
+
declare function getAuthoringTypeChoice(contributions: {
|
|
1069
|
+
readonly type?: AuthoringTypeNamespace;
|
|
1070
|
+
} | undefined, path: readonly string[]): {
|
|
1071
|
+
readonly descriptor: AuthoringTypeChoiceDescriptor;
|
|
1072
|
+
readonly constructorNamed: (name: string) => AuthoringTypeConstructorDescriptor | undefined;
|
|
1073
|
+
} | undefined;
|
|
1074
|
+
/**
|
|
1075
|
+
* The column a call of the type constructor or type choice `name`, in one level of a type namespace, makes from its arguments. A type choice's arguments choose a constructor of the same level, which is instantiated with the arguments it passes on.
|
|
1076
|
+
*/
|
|
1077
|
+
declare function instantiateAuthoringTypeCall(namespace: AuthoringTypeNamespace, name: string, args: readonly unknown[]): ScalarTypeConstructorOutput;
|
|
1078
|
+
/**
|
|
1079
|
+
* Derives the scalar view of an assembled authoring type namespace: every
|
|
1080
|
+
* **top-level** type constructor that is instantiable with an empty argument
|
|
1081
|
+
* list — all declared args optional and no entity-ref argument. A bare type
|
|
1082
|
+
* name `T` in a schema is semantically the zero-arg instantiation `T()`, so
|
|
1083
|
+
* each entry is exactly what that call produces (defaulted template values
|
|
1084
|
+
* applied, absent optional-arg typeParams keys omitted). Constructors
|
|
1085
|
+
* registered under a namespace segment, constructors with required args, and
|
|
1086
|
+
* entity-ref constructors are not scalars and are excluded.
|
|
1087
|
+
*
|
|
1088
|
+
* Eligibility needs no template inspection: templates that cannot resolve
|
|
1089
|
+
* for their legal call shapes are rejected at the composition boundary by
|
|
1090
|
+
* {@link assertResolvableTypeConstructorTemplates}, so the zero-arg
|
|
1091
|
+
* instantiation below cannot fail for an eligible constructor.
|
|
1092
|
+
*/
|
|
1093
|
+
declare function collectScalarTypeConstructors(namespace: AuthoringTypeNamespace): ReadonlyMap<string, ScalarTypeConstructorOutput>;
|
|
1094
|
+
/**
|
|
1095
|
+
* Refuses a type choice of a component's `contributed` type namespace whose table cannot be resolved: a row that names no type constructor the same component contributes at the same level, a combination or default an option does not list, defaults with no row, a parameter default for an argument it does not pass on, a passed-on argument of another data type than the constructor takes, or a row whose constructor requires an argument the row gives no default. ADR 279: each row names an explicit type of the same target.
|
|
1096
|
+
*/
|
|
1097
|
+
declare function assertTypeChoicesValid(contributed: AuthoringTypeNamespace, contributedBy: string, path?: readonly string[]): void;
|
|
1098
|
+
//#endregion
|
|
1099
|
+
export { GeneratorFunctionField as $, instantiateAuthoringTypeConstructor as $t, AuthoringTypeChoiceRow as A, admittedTags as At, ContributedPslDiagnosticCode as B, describeAdmittedForms as Bt, AuthoringTemplateValue as C, typeConstructorLookup as Cn, SourceDiagnostic as Ct, AuthoringTypeChoiceDescriptor as D, validateAuthoringTypeParams as Dn, WrittenScalar as Dt, AuthoringTypeChoiceArgument as E, validateAuthoringTypeChoiceParams as En, WrittenForm as Et, AuthoringTypeParamsIssue as F, assertTypeAliasesValid as Ft, DataTypeSupport as G, entryForTag as Gt, ControlMutationDefaultRegistry as H, describeRefusal as Ht, AuthoringWarning as I, assertTypeChoicesValid as It, EMPTY_GENERATOR_FUNCTIONS as J, getAuthoringTypeChoice as Jt, DataTypeWrittenForm as K, exactRewrite as Kt, AuthoringWarningSink as L, castTypedValue as Lt, AuthoringTypeConstructorEntityRef as M, assertNoAuthoringFieldNamespace as Mt, AuthoringTypeNamespace as N, assertNoCrossRegistryCollisions as Nt, AuthoringTypeChoiceOption as O, WrittenValue as Ot, AuthoringTypeNamespaceMember as P, assertResolvableTypeConstructorTemplates as Pt, GeneratorFunctionContribution as Q, instantiateAuthoringTypeCall as Qt, BindingResolution as R, classifyEnumMemberType as Rt, AuthoringStorageTypeTemplate as S, typeChoiceCombinationText as Sn, ScalarTypeConstructorOutput as St, AuthoringTypeAliasOutput as T, validateAuthoringHelperArguments as Tn, TypedDefaultFunctionCall as Tt, ControlMutationDefaults as U, describeRefusedValueType as Ut, ControlMutationDefaultEntry as V, describeExpected as Vt, DataTypeAuthoringEntry as W, entryForPlain as Wt, GeneratorFunctionCall as X, instantiateAuthoringEntityType as Xt, GeneratorFunctionBinding as Y, getAuthoringTypeConstructor as Yt, GeneratorFunctionComponent as Z, instantiateAuthoringTypeAlias as Zt, AuthoringModelAttributeEntityOutput as _, resolveEnumCodecId as _n, PslSpan as _t, AuthoringAttributeSpecContributions as a, isAuthoringTypeAliasDescriptor as an, LoweredDefaultValue as at, AuthoringPslBlockDescriptor as b, tagForm as bn, RefusalGuidance as bt, AuthoringDiagnosticSink as c, isAuthoringTypeConstructorDescriptor as cn, PrintedArguments as ct, AuthoringEntityTypeFactoryOutput as d, mergeAuthoringNamespaces as dn, PslExtensionBlock as dt, instantiateAuthoringTypeConstructorFromValues as en, GeneratorFunctionRegistry as et, AuthoringEntityTypeNamespace as f, readWrittenValue as fn, PslExtensionBlockAttribute as ft, AuthoringModelAttributeDescriptorNamespace as g, resolveAuthoringTypeChoice as gn, PslPosition as gt, AuthoringModelAttributeDescriptor as h, resolveAuthoringTemplateValue as hn, PslExtensionBlockPrintEntry as ht, AuthoringArgumentDescriptor as i, isAuthoringPslBlockDescriptor as in, LoweredDefaultResult as it, AuthoringTypeConstructorDescriptor as j, assembleGeneratorFunctions as jt, AuthoringTypeChoicePassedArgument as k, admittedForms as kt, AuthoringEntityContext as l, isAuthoringTypeDescriptor as ln, PrintedGeneratorCall as lt, AuthoringModelAttributeContext as m, readWrittenValueIntoCodec as mn, PslExtensionBlockParsedAttribute as mt, AssembledControlMutationDefaults as n, isAuthoringEntityTypeDescriptor as nn, GeneratorFunctionSummary as nt, AuthoringContributions as o, isAuthoringTypeChoiceDescriptor as on, MutationDefaultGeneratorDescriptor as ot, AuthoringEntityTypeTemplateOutput as p, readWrittenValueAs as pn, PslExtensionBlockAttributeArg as pt, DefaultFunctionLoweringContext as q, flushAuthoringWarnings as qt, AuthoringArgRef as r, isAuthoringModelAttributeDescriptor as rn, GeneratorPhase as rt, AuthoringDescriptorKinds as s, isAuthoringTypeChoiceOption as sn, ParsedPslExtensionBlock as st, AUTHORING_TYPE_DESCRIPTOR_KINDS as t, isAuthoringArgRef as tn, GeneratorFunctionResolution as tt, AuthoringEntityTypeDescriptor as u, knownTags as un, PslDiagnosticCode as ut, AuthoringModelAttributeIndexOutput as v, resolveTypeAliasGenerators as vn, ReadRefusal as vt, AuthoringTypeAliasDescriptor as w, unknownTypeChoiceArgumentMessage as wn, SourceSpan as wt, AuthoringPslBlockDescriptorNamespace as x, typeChoiceArgumentsFromObject as xn, ResolvedAuthoringTypeChoice as xt, AuthoringModelAttributeLoweringOutput as y, singleGeneratorBinding as yn, RefusalDescription as yt, CastRefusal as z, collectScalarTypeConstructors as zt };
|
|
1100
|
+
//# sourceMappingURL=authoring-type-choice-CHcRX0RP-CkG1L8a9.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authoring-type-choice-CHcRX0RP-CkG1L8a9.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/authoring-type-choice-CHcRX0RP.d.mts"],"mappings":";;;;;;;UAMU;WACC;WACA;WACA;;UAED;WACC,OAAO;WACP,KAAK;;UAEN;WACC;WACA;WACA;WACA,OAAO;WACP,OAAO,SAAS;;UAEjB;WACC;WACA;WACA;WACA;;;KAGN;WACM;WACA,cAAc;;KAEpB;WACM;WACA,OAAO;;WAEP;WACA,YAAY;;UAEb;WACC;;UAED;WACC;WACA,MAAM;WACN,MAAM,SAAS;;UAEhB;WACC;WACA,QAAQ;aACN,MAAM;aACN,SAAS;QACd;WACG;;KAEN,iCAAiC,oBAAoB;UAChD;WACC,yBAAyB;WACzB,+BAA+B;;;UAGhC,yCAAyC;;WAExC,yBAAyB;;;;;KAK/B;;UAEK;WACC;WACA,YAAY,SAAS;;WAErB;;;UAGD;WACC;WACA,MAAM,SAAS;;;KAGrB;WACM;WACA,WAAW;;WAEX;WACA;;;UAGD;WACC,MAAM,SAAS;WACf;;UAED;WACC;;WAEA;WACA,UAAU;aACR,MAAM,SAAS;aACf,OAAO;QACZ;;WAEG,iBAAiB,WAAW,+BAA+B,OAAO,2BAA2B;;UAE9F;WACC;;WAEA;WACA,mBAAmB;;UAEpB;WACC;WACA;;KAEN;WACM;WACA,WAAW;;WAEX;WACA;WACA;;WAEA;WACA;WACA;;;UAGD;WACC,MAAM;WACN;;UAED;EACR,aAAa,2BAA2B;EACxC,IAAI;EACJ,QAAQ,MAAM,uBAAuB,OAAO,yBAAyB;EACrE,QAAQ,WAAW,+BAA+B,OAAO,yBAAyB;;;UAG1E;WACC;WACA,8BAA8B;WAC9B;aACE,+B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8CAA8C,YAAY,oCAAoC,4BAA4B,cAAc,wCAAwC,OAAO,6BAA6B;iBACpN,+BAA+B,mBAAmB,oBAAoB,YAAY,+BAA+B,0BAA0B,KAAK,yBAAyB;;;;UAIhL;WACC;WACA;WACA;WACA;WACA;;;KAGN,oCAAoC;WAC9B;WACA;;KAEN,8BAA8B,4BAA4B;;UAErD;WACC,MAAM,SAAS;;WAEf;WACA,WAAW,SAAS,eAAe;;;;;UAKpC;WACC;WACA;WACA,eAAe;WACf,kBAAkB;;;UAGnB;WACC;WACA,YAAY;WACZ;;iBAEM,4BAA4B,UAAU,8BAA8B,YAAY;;iBAEhF,0BAA0B,KAAK;;iBAE/B,iCAAiC,iBAAiB,YAAY,+BAA+B;;;;iBAI7F,8BAA8B,oBAAoB,YAAY,+BAA+B;;;;iBAI7F,2BAA2B;WACjC;WACA,YAAY;WACZ;WACA,mBAAmB,iBAAiB;IAC3C;;iBAEa,sBAAsB;YAC3B;KACP,iBAAiB;;iBAEL,uBAAuB;WAC7B,OAAO;eACH;WACJ,YAAY;WACZ,mBAAmB,iBAAiB;;;;;iBAK9B,6BAA6B,WAAW,wBAAwB,cAAc,2BAA2B;;;;;;;;;;;;;;;;iBAgBzG,8BAA8B,WAAW,yBAAyB,oBAAoB;;;;iBAItF,uBAAuB,aAAa,wBAAwB,uBAAuB"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { T as DataTypeValue, v as DataTypeId } from "./codec-types-B4wPvO-K-
|
|
1
|
+
import { v as JsonValue } from "./types-CkFfDIud-C1u8M2UE.mjs";
|
|
2
|
+
import { T as DataTypeValue, v as DataTypeId } from "./codec-types-B4wPvO-K-BIPFT7EP.mjs";
|
|
3
3
|
import { r as Result } from "./result-BYCOANWy.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import { o as TaggedLiteralCanonicalization } from "./temporal-type-aliases-
|
|
6
|
-
import "./authoring-
|
|
7
|
-
import "./codec-
|
|
8
|
-
import { l as SignatureArgumentOutput, u as SignatureOptionalArgument } from "./components-
|
|
9
|
-
import "./control-
|
|
10
|
-
import "./psl-ast-
|
|
11
|
-
import { n as ContractSourceContext } from "./config-types-
|
|
12
|
-
import { $ as TypeAnnotationAst, A as NamespaceDeclarationAst, D as ModelAttributeAst, F as ParseDiagnostic, O as ModelDeclarationAst, T as MixinDeclarationAst, V as PslSources, Y as SyntaxNode, _ as GenericBlockDeclarationAst, f as DocumentAst, h as FieldDeclarationAst, k as NamedTypeDeclarationAst, l as CompositeTypeDeclarationAst, m as FieldAttributeAst, n as AstNode, p as ExpressionAst, r as AttributeArgAst, w as KeyValuePairAst, z as PslDiagnostic } from "./parse-djL5wker-
|
|
4
|
+
import { D as AuthoringTypeChoiceDescriptor, G as DataTypeSupport, U as ControlMutationDefaults, _t as PslSpan, j as AuthoringTypeConstructorDescriptor, w as AuthoringTypeAliasDescriptor, xt as ResolvedAuthoringTypeChoice } from "./authoring-type-choice-CHcRX0RP-CkG1L8a9.mjs";
|
|
5
|
+
import { o as TaggedLiteralCanonicalization } from "./temporal-type-aliases-D5QWPhYa-BNKiNvmd.mjs";
|
|
6
|
+
import "./authoring-BKOoGNxH.mjs";
|
|
7
|
+
import "./codec-h0kvF5B8.mjs";
|
|
8
|
+
import { l as SignatureArgumentOutput, u as SignatureOptionalArgument } from "./components-BvnVHOK3.mjs";
|
|
9
|
+
import "./control-DanUY6NX.mjs";
|
|
10
|
+
import "./psl-ast-Dsf1-QLK.mjs";
|
|
11
|
+
import { n as ContractSourceContext } from "./config-types-De3gHQOy.mjs";
|
|
12
|
+
import { $ as TypeAnnotationAst, A as NamespaceDeclarationAst, D as ModelAttributeAst, F as ParseDiagnostic, O as ModelDeclarationAst, T as MixinDeclarationAst, V as PslSources, Y as SyntaxNode, _ as GenericBlockDeclarationAst, f as DocumentAst, h as FieldDeclarationAst, k as NamedTypeDeclarationAst, l as CompositeTypeDeclarationAst, m as FieldAttributeAst, n as AstNode, p as ExpressionAst, r as AttributeArgAst, w as KeyValuePairAst, z as PslDiagnostic } from "./parse-djL5wker-4_2Cqwev.mjs";
|
|
13
13
|
import { n as UnionToIntersection, t as Simplify } from "./types-DGxlljKG.mjs";
|
|
14
|
-
//#region ../../../1-framework/2-authoring/psl-parser/dist/binder-
|
|
14
|
+
//#region ../../../1-framework/2-authoring/psl-parser/dist/binder-CMy3WM5A.d.mts
|
|
15
15
|
//#region src/resolve.d.ts
|
|
16
16
|
interface ResolvedAttributeArg {
|
|
17
17
|
readonly kind: 'positional' | 'named';
|
|
@@ -366,15 +366,28 @@ type AttributeOut<Pos extends readonly PositionalParam<unknown, never>[], Named
|
|
|
366
366
|
type InferAttr<S> = S extends AttributeSpec<infer Out, never> ? Out : never;
|
|
367
367
|
//#endregion
|
|
368
368
|
//#region src/contributed-type-scope.d.ts
|
|
369
|
-
type ContributedTypeDescriptor = AuthoringTypeConstructorDescriptor | AuthoringTypeAliasDescriptor;
|
|
369
|
+
type ContributedTypeDescriptor = AuthoringTypeConstructorDescriptor | AuthoringTypeAliasDescriptor | AuthoringTypeChoiceDescriptor;
|
|
370
370
|
type ContributedTypeNamespace = {
|
|
371
371
|
readonly [name: string]: ContributedTypeDescriptor | ContributedTypeNamespace;
|
|
372
372
|
};
|
|
373
|
-
interface
|
|
373
|
+
interface ContributedTypeSymbolBase {
|
|
374
374
|
readonly kind: 'contributedType';
|
|
375
375
|
readonly name: string;
|
|
376
376
|
readonly path: readonly string[];
|
|
377
|
-
|
|
377
|
+
}
|
|
378
|
+
/** A contributed type choice, with the type constructors its rows name, by name, from the namespace that holds it. */
|
|
379
|
+
interface ContributedTypeChoiceSymbol extends ContributedTypeSymbolBase {
|
|
380
|
+
readonly descriptor: AuthoringTypeChoiceDescriptor;
|
|
381
|
+
readonly choiceTypes: ReadonlyMap<string, AuthoringTypeConstructorDescriptor>;
|
|
382
|
+
}
|
|
383
|
+
type ContributedTypeSymbol = (ContributedTypeSymbolBase & {
|
|
384
|
+
readonly descriptor: Exclude<ContributedTypeDescriptor, AuthoringTypeChoiceDescriptor>;
|
|
385
|
+
}) | ContributedTypeChoiceSymbol;
|
|
386
|
+
declare function isContributedTypeChoice(symbol: ContributedTypeSymbol): symbol is ContributedTypeChoiceSymbol;
|
|
387
|
+
/** A contributed type as a field or type alias uses it: the type, and the call it is written with, `undefined` when it is written bare. */
|
|
388
|
+
interface ContributedTypeUse {
|
|
389
|
+
readonly symbol: ContributedTypeSymbol;
|
|
390
|
+
readonly call: ResolvedTypeConstructorCall | undefined;
|
|
378
391
|
}
|
|
379
392
|
interface ContributedNamespaceSymbol {
|
|
380
393
|
readonly kind: 'contributedNamespace';
|
|
@@ -387,8 +400,10 @@ interface ContributedTypeScope {
|
|
|
387
400
|
lookup(name: string): ContributedMember | undefined;
|
|
388
401
|
entries(): Iterable<readonly [string, ContributedMember]>;
|
|
389
402
|
}
|
|
390
|
-
/** The
|
|
391
|
-
declare function
|
|
403
|
+
/** The explicit type a call of the type choice `symbol` chooses and the arguments it is built with, reading the call as the column does, or why it chooses none. */
|
|
404
|
+
declare function chosenTypeConstructor(symbol: ContributedTypeChoiceSymbol, call: ResolvedTypeConstructorCall | undefined, dataTypes: DataTypeSupport): Result<ResolvedAuthoringTypeChoice, string>;
|
|
405
|
+
/** The codec a column typed by `use` is stored with; `undefined` for a type choice whose call chooses no type, which the column's resolution reports. */
|
|
406
|
+
declare function contributedTypeCodecId(use: ContributedTypeUse, dataTypes: DataTypeSupport): string | undefined;
|
|
392
407
|
/** The descriptor at `path` in `namespace`, or `undefined` when none is contributed there. */
|
|
393
408
|
declare function contributedTypeAt(namespace: ContributedTypeNamespace, path: readonly string[]): ContributedTypeDescriptor | undefined;
|
|
394
409
|
//#endregion
|
|
@@ -517,8 +532,11 @@ interface BinderResult {
|
|
|
517
532
|
readonly diagnostics: readonly ParseDiagnostic[];
|
|
518
533
|
}
|
|
519
534
|
declare function typeReferenceNode(symbol: FieldSymbol | NamedTypeSymbol): SyntaxNode | undefined;
|
|
520
|
-
|
|
535
|
+
/**
|
|
536
|
+
* The contributed type a field's or type alias's type resolves to, through a named type when it is declared with one, and the call it is written with there: `call`, the field's own, for a contributed type, or the named type's.
|
|
537
|
+
*/
|
|
538
|
+
declare function contributedTypeOf(resolution: Resolution | undefined, binder: Binder, call: ResolvedTypeConstructorCall | undefined): ContributedTypeUse | undefined;
|
|
521
539
|
declare function createBinder(input: CreateBinderInput): BinderResult;
|
|
522
540
|
//#endregion
|
|
523
|
-
export {
|
|
524
|
-
//# sourceMappingURL=binder-
|
|
541
|
+
export { MixinSymbol as $, readResolvedAttribute as $t, DataTypeValueArgType as A, ScopeResolution as At, FixedIdentifierArgType as B, buildSymbolTable as Bt, ContributedTypeDescriptor as C, Resolution as Ct, ContributedTypeUse as D, ResolvedNamedTypeBinding as Dt, ContributedTypeSymbol as E, ResolvedEntityReference as Et, EntityRefArgType as F, UnresolvedTypeReference as Ft, FunctionSymbol as G, createBinder as Gt, FixedStrArgType as H, contributedTypeAt as Ht, EntitySelector as I, UnrestrictedIdentifierArgType as It, InspectableArgType as J, isNamespaceLike as Jt, IdentifierArgType as K, entityReference as Kt, FieldAttributeCtx as L, UnrestrictedNumArgType as Lt, DescribeUnresolvedType as M, SymbolTableResult as Mt, DescribeUnsupportedAttribute as N, TaggedLiteralArgType as Nt, CreateBinderInput as O, ResolvedTypeConstructorCall as Ot, EntityDeclaration as P, TypedFuncCall as Pt, ListArgType as Q, nodePslSpan as Qt, FieldRefArgType as R, UnrestrictedStrArgType as Rt, ContributedTypeChoiceSymbol as S, RequiredContextFor as St, ContributedTypeScope as T, ResolvedAttributeArg as Tt, FuncCallArgType as U, contributedTypeCodecId as Ut, FixedNumArgType as V, chosenTypeConstructor as Vt, FuncCallSig as W, contributedTypeOf as Wt, JsonArgType as X, matchesSelector as Xt, IntArgType as Y, keywordPslSpan as Yt, JsonValueArgType as Z, memberEntries as Zt, CompositeTypeSymbol as _, PositionalParam as _t, AttributeLevel as a, NullArgType as at, ContributedMember as b, ReferencedFieldRefArgType as bt, AttributeSymbol as c, OneOfArgType as ct, BinderResult as d, PSL_UNRESOLVED_REFERENCE as dt, readResolvedAttributes as en, ModelAttributeCtx as et, BlockAttributeCtx as f, Param as ft, BuildSymbolTableOptions as g, PosOut as gt, BoundSpec as h, ParsedTypedValue as ht, AttributeCtx as i, NamespaceSymbol as it, DeclarationFor as j, SymbolTable as jt, CtxOf as k, Scope as kt, Binder as l, OptionalArgType as lt, BoolArgType as m, ParsedTaggedLiteral as mt, ArgType as n, typeReferenceNode as nn, NamedOut as nt, AttributeOut as o, NumLiteral as ot, BlockSymbol as p, ParameterSymbol as pt, InferAttr as q, isContributedTypeChoice as qt, ArgTypeKind as r, NamedTypeSymbol as rt, AttributeSpec as s, NumLiteralArgType as st, AnyArgType as t, readResolvedConstructorCall as tn, ModelSymbol as tt, BinderContext as u, OutOf as ut, ConstantSymbol as v, PslSymbol as vt, ContributedTypeNamespace as w, ResolvedAttribute as wt, ContributedNamespaceSymbol as x, RejectingArgType as xt, ContextForRequirement as y, RecordArgType as yt, FieldSymbol as z, UnsupportedAttribute as zt };
|
|
542
|
+
//# sourceMappingURL=binder-CMy3WM5A-DRrDzBAq.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binder-
|
|
1
|
+
{"version":3,"file":"binder-CMy3WM5A-DRrDzBAq.d.mts","names":[],"sources":["../../../../1-framework/2-authoring/psl-parser/dist/binder-CMy3WM5A.d.mts"],"mappings":";;;;;;;;;;;;;;;UAWU;WACC;WACA;WACA;WACA,aAAa;WACb,MAAM;;WAEN,OAAO;;UAER,kBAAkB,cAAc,oBAAoB,oBAAoB,oBAAoB;WAC3F;WACA,eAAe;WACf,MAAM;WACN,MAAM;;UAEP;WACC;WACA,eAAe;WACf,MAAM;;iBAEA,sBAAsB,cAAc,oBAAoB,mBAAmB,WAAW,OAAO,SAAS,aAAa,kBAAkB;iBACrI,uBAAuB,cAAc,oBAAoB,mBAAmB,YAAY,SAAS,QAAQ,SAAS,sBAAsB,kB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;WACC;WACA;WACA;WACA,MAAM;;UAEP;WACC;WACA;WACA,OAAO;;UAER;WACC;WACA;WACA,WAAW;;UAEZ;WACC;WACA;WACA;;KAEN,YAAY,cAAc,sBAAsB,kBAAkB,cAAc,kBAAkB,cAAc;KAChH,aAAa,cAAc,sBAAsB;KACjD,aAAa;WACP;WACA,QAAQ;;WAER;WACA,QAAQ;;WAER;WACA,QAAQ;;WAER;WACA,QAAQ;;WAER;WACA,QAAQ;;WAER;;WAEA;WACA;;UAED;EACR,eAAe,MAAM,aAAa;EAClC,cAAc,MAAM,aAAa;EACjC,QAAQ,MAAM,aAAa;;UAEnB;WACC,WAAW;WACX;WACA,OAAO;WACP,OAAO;;KAEb,gCAAgC,aAAa,yBAAyB;UACjE;WACC,OAAO;WACP,OAAO;WACP;;WAEA,aAAa;;KAEnB,0BAA0B,YAAY;UACjC,sBAAsB,KAAK;WAC1B,yBAAyB,KAAK;;UAE/B;WACC,SAAS;WACT,aAAa;WACb,SAAS;;UAEV;WACC,QAAQ;WACR,sBAAsB;;iBAEhB,kBAAkB,QAAQ,cAAc,kBAAkB;;;;iBAI1D,kBAAkB,YAAY,wBAAwB,QAAQ,QAAQ,MAAM,0CAA0C;iBACtH,aAAa,OAAO,oBAAoB"}
|
package/dist/{canonicalization-CyrrXGmj-CeKUkht1.d.mts → canonicalization-BIS6ONYT-VttZI7M4.d.mts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Contract } from "./contract-types-
|
|
1
|
+
import { t as Contract } from "./contract-types-ib-VnKHG-l9vE5Vd-.mjs";
|
|
2
2
|
import { n as JsonObject } from "./json-Dkqr3say.mjs";
|
|
3
|
-
//#region ../../../1-framework/0-foundation/contract/dist/canonicalization-
|
|
3
|
+
//#region ../../../1-framework/0-foundation/contract/dist/canonicalization-BIS6ONYT.d.mts
|
|
4
4
|
//#region src/canonicalization.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Per-target contract serializer hook. The framework canonicalizer uses
|
|
@@ -66,4 +66,4 @@ declare function canonicalizeContractToObject(contract: Contract, options: Canon
|
|
|
66
66
|
declare function canonicalizeContract(contract: Contract, options: CanonicalizeContractOptions): string;
|
|
67
67
|
//#endregion
|
|
68
68
|
export { canonicalizeContract as a, StorageSort as i, PreserveEmptyPredicate as n, canonicalizeContractToObject as o, SerializeContract as r, CanonicalizeContractOptions as t };
|
|
69
|
-
//# sourceMappingURL=canonicalization-
|
|
69
|
+
//# sourceMappingURL=canonicalization-BIS6ONYT-VttZI7M4.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"canonicalization-
|
|
1
|
+
{"version":3,"file":"canonicalization-BIS6ONYT-VttZI7M4.d.mts","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/canonicalization-BIS6ONYT.d.mts"],"mappings":";;;;;;;;;;;;KAWK,qBAAqB,UAAU,aAAa;;;;;;;;;KAS5C,0BAA0B;;;;;;;;KAQ1B,eAAe;UACV;WACC;;;;;;;;;;;WAWA,mBAAmB;;;;;;;WAOnB,sBAAsB;;;;;;;;WAQtB,cAAc;;;;;;;iBAOR,6BAA6B,UAAU,UAAU,SAAS,8BAA8B;iBACxF,qBAAqB,UAAU,UAAU,SAAS"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { v as JsonValue } from "./types-CkFfDIud-C1u8M2UE.mjs";
|
|
2
|
+
import { j as ValueSetRef, o as ContractField } from "./domain-envelope-CJNIHBn_-DBFAmkNL.mjs";
|
|
3
|
+
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-B4wPvO-K-BIPFT7EP.mjs";
|
|
3
4
|
//#region ../../../1-framework/1-core/framework-components/dist/codec.d.mts
|
|
4
5
|
//#region src/shared/casts.d.ts
|
|
5
6
|
/** A cast between two types that store the same shape: the value is already the form this type stores. */
|
|
@@ -286,4 +287,4 @@ declare function materializeCodec(descriptor: AnyCodecDescriptor, ref: CodecRef,
|
|
|
286
287
|
declare function codecForRef(lookup: Pick<CodecLookupWithDescriptors, 'descriptorFor'>, ref: CodecRef): Codec | undefined;
|
|
287
288
|
//#endregion
|
|
288
289
|
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-
|
|
290
|
+
//# sourceMappingURL=codec-h0kvF5B8.d.mts.map
|