@prisma/orm-framework 8.0.0-rc.14-dev.35 → 8.0.0-rc.14-dev.37
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/{authoring-CUDReFVP.d.mts → authoring-CcT010vl.d.mts} +5 -5
- package/dist/{authoring-CUDReFVP.d.mts.map → authoring-CcT010vl.d.mts.map} +1 -1
- package/dist/{authoring-Cp71GImA.mjs → authoring-iMWszF7p.mjs} +15 -5
- package/dist/authoring-iMWszF7p.mjs.map +1 -0
- package/dist/{binder-Dz5zT7tr-CCCwiQ29.d.mts → binder-Dz5zT7tr-UEfDpcxO.d.mts} +9 -9
- package/dist/{binder-Dz5zT7tr-CCCwiQ29.d.mts.map → binder-Dz5zT7tr-UEfDpcxO.d.mts.map} +1 -1
- package/dist/{codec-0XB-9TzG.d.mts → codec-BSm2qNVe.d.mts} +4 -8
- package/dist/codec-BSm2qNVe.d.mts.map +1 -0
- package/dist/{codec-Cz-bOon3.mjs → codec-U-xbQys_.mjs} +12 -7
- package/dist/codec-U-xbQys_.mjs.map +1 -0
- package/dist/{codec-types-CZ8xRBJy-BMjCsUt1.d.mts → codec-types-8NKqm4AQ-DyNSay3e.d.mts} +17 -5
- package/dist/codec-types-8NKqm4AQ-DyNSay3e.d.mts.map +1 -0
- package/dist/{components-CRRIFm30.d.mts → components-CK8GHz8l.d.mts} +4 -4
- package/dist/{components-CRRIFm30.d.mts.map → components-CK8GHz8l.d.mts.map} +1 -1
- package/dist/components.d.mts +18 -18
- package/dist/components.mjs +7 -7
- package/dist/components__authoring.d.mts +4 -4
- package/dist/components__authoring.mjs +3 -3
- package/dist/components__codec.d.mts +3 -3
- package/dist/components__codec.mjs +3 -3
- package/dist/components__components.d.mts +3 -3
- package/dist/components__control.d.mts +4 -4
- package/dist/components__control.mjs +3 -3
- package/dist/components__emission.d.mts +3 -3
- package/dist/components__execution.d.mts +1 -1
- package/dist/components__ir.d.mts +1 -1
- package/dist/components__psl-ast.d.mts +3 -3
- package/dist/components__runtime.d.mts +2 -2
- package/dist/components__runtime.mjs +2 -2
- package/dist/{config-types-E4OZwoHK.d.mts → config-types-D7Gkm2iv.d.mts} +6 -6
- package/dist/{config-types-E4OZwoHK.d.mts.map → config-types-D7Gkm2iv.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 +10 -13
- package/dist/contract-authoring.d.mts.map +1 -1
- package/dist/contract-authoring.mjs +1 -3
- package/dist/contract-authoring.mjs.map +1 -1
- package/dist/{control-D9TxxGse.mjs → control-BIv_-3QB.mjs} +20 -5
- package/dist/control-BIv_-3QB.mjs.map +1 -0
- package/dist/{control-DtFLqCvx.d.mts → control-C1x8zzHb.d.mts} +56 -41
- package/dist/control-C1x8zzHb.d.mts.map +1 -0
- package/dist/{declarations-DDT0hm5r-D_XDM-WN.mjs → declarations-DDT0hm5r-BZoOKiu1.mjs} +2 -2
- package/dist/{declarations-DDT0hm5r-D_XDM-WN.mjs.map → declarations-DDT0hm5r-BZoOKiu1.mjs.map} +1 -1
- package/dist/emission-D9NsURmS.d.mts +2 -0
- package/dist/{emission-types-CKbNqwUs-hrIslUsL.d.mts → emission-types-BpY3maMX-pzm7Xmn7.d.mts} +4 -4
- package/dist/{emission-types-CKbNqwUs-hrIslUsL.d.mts.map → emission-types-BpY3maMX-pzm7Xmn7.d.mts.map} +1 -1
- package/dist/errors.d.mts +1 -1
- package/dist/errors__execution.d.mts +1 -1
- package/dist/{execution-ZWG0tqRB.d.mts → execution-gjfB1CvH.d.mts} +2 -2
- package/dist/{execution-ZWG0tqRB.d.mts.map → execution-gjfB1CvH.d.mts.map} +1 -1
- package/dist/{execution-DHWSU95b.d.mts → execution-o-z5gzZh.d.mts} +2 -2
- package/dist/{execution-DHWSU95b.d.mts.map → execution-o-z5gzZh.d.mts.map} +1 -1
- package/dist/{framework-authoring-BJf_-FTJ-K8fp3V_r.d.mts → framework-authoring-DRrZ8_s0-CJ7XXqvx.d.mts} +37 -4
- package/dist/framework-authoring-DRrZ8_s0-CJ7XXqvx.d.mts.map +1 -0
- package/dist/{framework-components-7SQpxVko-BaUd55aP.d.mts → framework-components-DDr6lZoZ-EpXYrZj7.d.mts} +6 -12
- package/dist/framework-components-DDr6lZoZ-EpXYrZj7.d.mts.map +1 -0
- package/dist/ids.d.mts +1 -1
- package/dist/ids.mjs +1 -4
- package/dist/ids.mjs.map +1 -1
- package/dist/{ir-BOKp6I1y.d.mts → ir-bkQr_x1E.d.mts} +2 -2
- package/dist/{ir-BOKp6I1y.d.mts.map → ir-bkQr_x1E.d.mts.map} +1 -1
- package/dist/{mutation-default-types-CrA6rrwU-BkMgh2pO.d.mts → mutation-default-types-D_M8NC3U-BQNexfRU.d.mts} +3 -3
- package/dist/{mutation-default-types-CrA6rrwU-BkMgh2pO.d.mts.map → mutation-default-types-D_M8NC3U-BQNexfRU.d.mts.map} +1 -1
- package/dist/{parse-eSQ_clQv-BIek6vrj.d.mts → parse-eSQ_clQv-BQKtf4px.d.mts} +6 -6
- package/dist/{parse-eSQ_clQv-BIek6vrj.d.mts.map → parse-eSQ_clQv-BQKtf4px.d.mts.map} +1 -1
- package/dist/{parse-ymgXJUnk-SzrYveCt.mjs → parse-ymgXJUnk-CwVCe8ZD.mjs} +2 -2
- package/dist/{parse-ymgXJUnk-SzrYveCt.mjs.map → parse-ymgXJUnk-CwVCe8ZD.mjs.map} +1 -1
- package/dist/{psl-ast-DtjFlM-c-amCHIsWc.d.mts → psl-ast-BVYEC5xX-BEqjBVqF.d.mts} +3 -3
- package/dist/{psl-ast-DtjFlM-c-amCHIsWc.d.mts.map → psl-ast-BVYEC5xX-BEqjBVqF.d.mts.map} +1 -1
- package/dist/psl-ast-a1L1ep0a.d.mts +2 -0
- package/dist/psl-parser.d.mts +8 -8
- package/dist/psl-parser.mjs +19 -6
- package/dist/psl-parser.mjs.map +1 -1
- package/dist/psl-parser__format.d.mts +1 -1
- package/dist/psl-parser__format.mjs +2 -2
- package/dist/psl-parser__interpret.d.mts +6 -6
- package/dist/psl-parser__interpret.mjs +1 -1
- package/dist/psl-parser__syntax.d.mts +1 -1
- package/dist/psl-parser__syntax.mjs +2 -2
- package/dist/psl-printer.d.mts +4 -4
- package/dist/psl-printer.mjs +1 -1
- package/dist/{resolve-codec-qE0g980d-Ck_gIaTi.mjs → resolve-codec-vOfdHcIJ-IeNjz3Tm.mjs} +6 -5
- package/dist/resolve-codec-vOfdHcIJ-IeNjz3Tm.mjs.map +1 -0
- package/dist/{runtime-DhUFoLHx.mjs → runtime-7NCyLoeP.mjs} +109 -5
- package/dist/{runtime-DhUFoLHx.mjs.map → runtime-7NCyLoeP.mjs.map} +1 -1
- package/dist/{runtime-BccsLa5m.d.mts → runtime-NuBiQEuH.d.mts} +45 -3
- package/dist/runtime-NuBiQEuH.d.mts.map +1 -0
- package/dist/{temporal-presets-pC0xlwib-Diikns1l.d.mts → temporal-presets-CLsu00ZK-CAx-cLAM.d.mts} +4 -4
- package/dist/{temporal-presets-pC0xlwib-Diikns1l.d.mts.map → temporal-presets-CLsu00ZK-CAx-cLAM.d.mts.map} +1 -1
- package/dist/{temporal-presets-UoKnoAlu-6864WUSv.mjs → temporal-presets-DIo9uYtS-Odk6WBk8.mjs} +19 -3
- package/dist/temporal-presets-DIo9uYtS-Odk6WBk8.mjs.map +1 -0
- package/dist/{types-import-spec-BLFYPur6-QN7ntocb.d.mts → types-import-spec-U2GFdg-x-CRt_XdWj.d.mts} +3 -3
- package/dist/{types-import-spec-BLFYPur6-QN7ntocb.d.mts.map → types-import-spec-U2GFdg-x-CRt_XdWj.d.mts.map} +1 -1
- package/package.json +15 -15
- package/dist/authoring-Cp71GImA.mjs.map +0 -1
- package/dist/codec-0XB-9TzG.d.mts.map +0 -1
- package/dist/codec-Cz-bOon3.mjs.map +0 -1
- package/dist/codec-types-CZ8xRBJy-BMjCsUt1.d.mts.map +0 -1
- package/dist/control-D9TxxGse.mjs.map +0 -1
- package/dist/control-DtFLqCvx.d.mts.map +0 -1
- package/dist/emission-CKIZBZw3.d.mts +0 -2
- package/dist/framework-authoring-BJf_-FTJ-K8fp3V_r.d.mts.map +0 -1
- package/dist/framework-components-7SQpxVko-BaUd55aP.d.mts.map +0 -1
- package/dist/psl-ast-CcQp_u_l.d.mts +0 -2
- package/dist/resolve-codec-qE0g980d-Ck_gIaTi.mjs.map +0 -1
- package/dist/runtime-BccsLa5m.d.mts.map +0 -1
- package/dist/temporal-presets-UoKnoAlu-6864WUSv.mjs.map +0 -1
package/dist/components.mjs
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { t as isPlainRecord } from "./is-plain-record-CUofyVQ7-DWEzdhIx.mjs";
|
|
2
2
|
import { t as canonicalizeJson } from "./canonicalize-json-ZPawceQR-Dua1VNEB.mjs";
|
|
3
3
|
import { n as runtimeError, t as isRuntimeError } from "./runtime-error-BA9d7XjZ-BlT8t6LB.mjs";
|
|
4
|
-
import { A as
|
|
5
|
-
import { i as readEnumBlockMembers, n as findAuthoringTypeConstructorCall, r as getAuthoringFieldPreset, t as fieldPresetSpellings } from "./authoring-
|
|
4
|
+
import { A as resolvePslBacktickEscapes, C as isAuthoringTypeConstructorDescriptor, D as printTaggedLiteral, E as mergeAuthoringNamespaces, F as temporalPhaseTemplate, I as timestampNowControlDescriptor, L as validateAuthoringHelperArguments, M as tagEntryKey, N as temporalAuthoringPresets, O as resolveAuthoringTemplateValue, P as temporalCodecPreset, R as validateAuthoringTypeParams, S as isAuthoringPslBlockDescriptor, _ as instantiateAuthoringTypeConstructor, a as assertNoCrossRegistryCollisions, b as isAuthoringFieldPresetDescriptor, c as canonicalizeTaggedLiteralBody, d as collectScalarTypeConstructors, f as describeTaggedLiteralFailure, g as instantiateAuthoringFieldPreset, h as instantiateAuthoringEntityType, i as TIMESTAMP_NOW_GENERATOR_ID, j as resolveTemplateTagEscapes, k as resolveEnumCodecId, l as classifyEnumMemberType, m as getAuthoringTypeConstructor, n as TEMPORAL_ON_CREATE_ARG, o as assertResolvableTypeConstructorTemplates, p as flushAuthoringWarnings, r as TEMPORAL_ON_UPDATE_ARG, s as authoringEntryType, t as TAGGED_LITERAL_MAX_BYTES, v as isAuthoringArgRef, w as isTagEntryKey, x as isAuthoringModelAttributeDescriptor, y as isAuthoringEntityTypeDescriptor } from "./temporal-presets-DIo9uYtS-Odk6WBk8.mjs";
|
|
5
|
+
import { i as readEnumBlockMembers, n as findAuthoringTypeConstructorCall, r as getAuthoringFieldPreset, t as fieldPresetSpellings } from "./authoring-iMWszF7p.mjs";
|
|
6
6
|
import { t as emptyCodecLookup } from "./codec-types-BXLUbk-Y-DpGfKGK0.mjs";
|
|
7
|
-
import { a as
|
|
8
|
-
import { _ as
|
|
7
|
+
import { a as codecForRef, c as dataTypeId, d as requiredParamKeys, f as requiredSchemaKeys, l as materializeCodec, m as validateCodecTypeParams, n as DATA_TYPE_ID_PATTERN, o as createDataTypeLookup, p as resolveCodecDescriptorOrThrow, r as assembleDataTypes, s as dataType, t as CONTRACT_CODEC_DESCRIPTOR_MISSING, u as objectSchemaKeys } from "./resolve-codec-vOfdHcIJ-IeNjz3Tm.mjs";
|
|
8
|
+
import { _ as isIntegerIn, a as INT64_RANGE, b as renderTsLiteral, c as canonicalFormOf, d as decodeJsonFloat, f as decodeJsonInteger, g as encodeJsonFloat, h as decodeJsonString, i as INT32_RANGE, l as column, m as decodeJsonMatching, n as CodecDescriptorTemplateImpl, o as SAFE_INTEGER_BIGINT_RANGE, p as decodeJsonIntegerText, r as CodecImpl, s as SAFE_INTEGER_RANGE, t as CodecDescriptorImpl, u as decodeJsonBoolean, v as isNonFiniteText, y as refuseJsonValue } from "./codec-U-xbQys_.mjs";
|
|
9
9
|
import { a as mergeCapabilityMatrices, i as isNoInputAggregateDescriptor, n as isAggregateDescriptor, r as isAnyInputAggregateDescriptor, t as aggregateDescriptorKey } from "./capabilities-CnCdDH1J-Bq8Zf0nY.mjs";
|
|
10
10
|
import { t as checkContractComponentRequirements } from "./framework-components-D6j4Y5K7-RW9H184y.mjs";
|
|
11
11
|
import { t as settleAggregateOverloads } from "./components-VMbwq7D8.mjs";
|
|
12
|
-
import { A as issueOutcome, C as extractQueryOperationTypeImports, D as hasPslContractInfer, E as hasPslContractBuild, M as storageHashHex, O as hasSchemaSubjectClassifier, S as extractComponentIds, T as hasOperationPreview, _ as diffSchemas, a as VERIFY_CODE_HASH_MISMATCH, b as extractCodecLookup, c as VERIFY_CODE_TARGET_MISMATCH, d as assembleControlMutationDefaults, f as assertUniqueCodecOwner, g as createControlStack, h as contractSnapshotTypesSpecifier, i as SchemaTreeNode, j as orderIssuesByDependencies, k as hasSchemaView, l as assembleAuthoringContributions, m as contractSnapshotJsonSpecifier, n as CONTRACT_SNAPSHOTS_DIRNAME, o as VERIFY_CODE_MARKER_MISSING, p as buildExtensionLoadOrder, r as SchemaDiff, s as VERIFY_CODE_SCHEMA_FAILURE, t as APP_SPACE_ID, u as assembleAuthoringDataTypes, v as dispositionForCategory, w as hasMigrations, x as extractCodecTypeImports, y as enforceDataTypeInvariants } from "./control-
|
|
12
|
+
import { A as issueOutcome, C as extractQueryOperationTypeImports, D as hasPslContractInfer, E as hasPslContractBuild, M as sameMarkerHashes, N as storageHashHex, O as hasSchemaSubjectClassifier, S as extractComponentIds, T as hasOperationPreview, _ as diffSchemas, a as VERIFY_CODE_HASH_MISMATCH, b as extractCodecLookup, c as VERIFY_CODE_TARGET_MISMATCH, d as assembleControlMutationDefaults, f as assertUniqueCodecOwner, g as createControlStack, h as contractSnapshotTypesSpecifier, i as SchemaTreeNode, j as orderIssuesByDependencies, k as hasSchemaView, l as assembleAuthoringContributions, m as contractSnapshotJsonSpecifier, n as CONTRACT_SNAPSHOTS_DIRNAME, o as VERIFY_CODE_MARKER_MISSING, p as buildExtensionLoadOrder, r as SchemaDiff, s as VERIFY_CODE_SCHEMA_FAILURE, t as APP_SPACE_ID, u as assembleAuthoringDataTypes, v as dispositionForCategory, w as hasMigrations, x as extractCodecTypeImports, y as enforceDataTypeInvariants } from "./control-BIv_-3QB.mjs";
|
|
13
13
|
import { n as resolveRequirementSpecifiers, t as keepInternalSpecifiers } from "./emission-CeoAV9mj.mjs";
|
|
14
14
|
import { n as createExecutionStack, r as instantiateExecutionStack, t as assertRuntimeContractRequirementsSatisfied } from "./execution-BNwBzmRd.mjs";
|
|
15
15
|
import { a as buildSingleNamespaceView, c as elementCoordinates, d as hydrateNamespaceEntities, f as promoteBuiltinKinds, i as buildNamespacedEntities, l as entityAt, n as NamespaceBase, o as coordinateKey, r as UNBOUND_NAMESPACE_ID, s as domainElementCoordinates, t as IRNodeBase, u as freezeNode } from "./ir-CV5d1FJ0.mjs";
|
|
16
16
|
import { a as flatPslModels, c as namespacePslExtensionBlocks, i as flatPslCompositeTypes, n as UNBOUND_PSL_NAMESPACE_NAME, o as makePslNamespace, r as UNSPECIFIED_PSL_NAMESPACE_ID, s as makePslNamespaceEntries, t as BUILTIN_PSL_KIND_KEYS } from "./psl-ast-CyvE6CR-.mjs";
|
|
17
|
-
import { _ as
|
|
18
|
-
export { APP_SPACE_ID, AsyncIterableResult, BUILTIN_PSL_KIND_KEYS, CONTRACT_CODEC_DESCRIPTOR_MISSING, CONTRACT_SNAPSHOTS_DIRNAME, CodecDescriptorImpl, CodecDescriptorTemplateImpl, CodecImpl, INT32_RANGE, INT64_RANGE, IRNodeBase, NamespaceBase, RUNTIME_ABORTED, RelationKeys, RuntimeCore, SAFE_INTEGER_BIGINT_RANGE, SAFE_INTEGER_RANGE, SchemaDiff, SchemaTreeNode, TAGGED_LITERAL_MAX_BYTES, TEMPORAL_ON_CREATE_ARG, TEMPORAL_ON_UPDATE_ARG, TIMESTAMP_NOW_GENERATOR_ID, UNBOUND_NAMESPACE_ID, UNBOUND_PSL_NAMESPACE_NAME, UNSPECIFIED_PSL_NAMESPACE_ID, VERIFY_CODE_HASH_MISMATCH, VERIFY_CODE_MARKER_MISSING, VERIFY_CODE_SCHEMA_FAILURE, VERIFY_CODE_TARGET_MISMATCH, aggregateDescriptorKey, applyMutationDefaults, assembleAuthoringContributions, assembleAuthoringDataTypes, assembleControlMutationDefaults, assembleDataTypes, assertAnnotationsApplicable, assertMutationDefaultGeneratorsAvailable, assertNoCrossRegistryCollisions, assertResolvableTypeConstructorTemplates, assertRuntimeContractRequirementsSatisfied, assertUniqueCodecOwner, buildExtensionLoadOrder, buildNamespacedEntities, buildSingleNamespaceView, canonicalizeJson, canonicalizeTaggedLiteralBody, checkAborted, checkContractComponentRequirements, checkMiddlewareCompatibility, classifyEnumMemberType, codecForRef, collectMutationDefaultGenerators, collectScalarTypeConstructors, column, contractSnapshotJsonSpecifier, contractSnapshotTypesSpecifier, coordinateKey, createControlStack, createDataTypeLookup, createExecutionStack, createMetaBuilder, dataType, dataTypeId, decodeJsonBoolean, decodeJsonFloat, decodeJsonInteger, decodeJsonIntegerText, decodeJsonMatching, decodeJsonString, defineAnnotation, describeTaggedLiteralFailure, diffSchemas, dispositionForCategory, domainElementCoordinates, elementCoordinates, emptyCodecLookup, encodeJsonFloat, enforceDataTypeInvariants, entityAt, extractCodecLookup, extractCodecTypeImports, extractComponentIds, extractQueryOperationTypeImports, fieldPresetSpellings, findAuthoringTypeConstructorCall, flatPslCompositeTypes, flatPslModels, flushAuthoringWarnings, freezeNode, getAuthoringFieldPreset, getAuthoringTypeConstructor, hasMigrations, hasOperationPreview, hasPslContractBuild, hasPslContractInfer, hasSchemaSubjectClassifier, hasSchemaView, hydrateNamespaceEntities, instantiateAuthoringEntityType, instantiateAuthoringFieldPreset, instantiateAuthoringTypeConstructor, instantiateExecutionStack, isAggregateDescriptor, isAnyInputAggregateDescriptor, isAuthoringArgRef, isAuthoringEntityTypeDescriptor, isAuthoringFieldPresetDescriptor, isAuthoringModelAttributeDescriptor, isAuthoringPslBlockDescriptor, isAuthoringTypeConstructorDescriptor, isIntegerIn, isNoInputAggregateDescriptor, isNonFiniteText, isPlainRecord, isRuntimeError, issueOutcome, keepInternalSpecifiers, makePslNamespace, makePslNamespaceEntries, materializeCodec, mergeAuthoringNamespaces, mergeCapabilityMatrices, namespacePslExtensionBlocks, objectSchemaKeys, orderIssuesByDependencies, printTaggedLiteral, promoteBuiltinKinds, raceAgainstAbort, readEnumBlockMembers, refuseJsonValue, renderTsLiteral, requiredParamKeys, requiredSchemaKeys, resolveAuthoringTemplateValue, resolveCodecDescriptorOrThrow, resolveEnumCodecId, resolvePslBacktickEscapes, resolveRequirementSpecifiers, resolveTemplateTagEscapes, runBeforeExecuteChain, runBeforeQueryChain, runExecuteWithMiddleware, runQueryWithMiddleware, runtimeAborted, runtimeError, settleAggregateOverloads, storageHashHex, temporalAuthoringPresets, temporalCodecPreset, temporalPhaseTemplate, timestampNowControlDescriptor, validateAuthoringHelperArguments, validateAuthoringTypeParams, validateCodecTypeParams };
|
|
17
|
+
import { S as runtimeAborted, _ as runAfterTransaction, a as applyMutationDefaults, b as runExecuteWithMiddleware, c as checkAborted, d as createMetaBuilder, f as defineAnnotation, g as reportQueryEnding, h as reportExecuteEnding, i as RuntimeCore, l as checkMiddlewareCompatibility, m as raceAgainstAbort, n as RUNTIME_ABORTED, o as assertAnnotationsApplicable, p as onQueryEndOutsideTransaction, r as RelationKeys, s as assertMutationDefaultGeneratorsAvailable, t as AsyncIterableResult, u as collectMutationDefaultGenerators, v as runBeforeExecuteChain, x as runQueryWithMiddleware, y as runBeforeQueryChain } from "./runtime-7NCyLoeP.mjs";
|
|
18
|
+
export { APP_SPACE_ID, AsyncIterableResult, BUILTIN_PSL_KIND_KEYS, CONTRACT_CODEC_DESCRIPTOR_MISSING, CONTRACT_SNAPSHOTS_DIRNAME, CodecDescriptorImpl, CodecDescriptorTemplateImpl, CodecImpl, DATA_TYPE_ID_PATTERN, INT32_RANGE, INT64_RANGE, IRNodeBase, NamespaceBase, RUNTIME_ABORTED, RelationKeys, RuntimeCore, SAFE_INTEGER_BIGINT_RANGE, SAFE_INTEGER_RANGE, SchemaDiff, SchemaTreeNode, TAGGED_LITERAL_MAX_BYTES, TEMPORAL_ON_CREATE_ARG, TEMPORAL_ON_UPDATE_ARG, TIMESTAMP_NOW_GENERATOR_ID, UNBOUND_NAMESPACE_ID, UNBOUND_PSL_NAMESPACE_NAME, UNSPECIFIED_PSL_NAMESPACE_ID, VERIFY_CODE_HASH_MISMATCH, VERIFY_CODE_MARKER_MISSING, VERIFY_CODE_SCHEMA_FAILURE, VERIFY_CODE_TARGET_MISMATCH, aggregateDescriptorKey, applyMutationDefaults, assembleAuthoringContributions, assembleAuthoringDataTypes, assembleControlMutationDefaults, assembleDataTypes, assertAnnotationsApplicable, assertMutationDefaultGeneratorsAvailable, assertNoCrossRegistryCollisions, assertResolvableTypeConstructorTemplates, assertRuntimeContractRequirementsSatisfied, assertUniqueCodecOwner, authoringEntryType, buildExtensionLoadOrder, buildNamespacedEntities, buildSingleNamespaceView, canonicalFormOf, canonicalizeJson, canonicalizeTaggedLiteralBody, checkAborted, checkContractComponentRequirements, checkMiddlewareCompatibility, classifyEnumMemberType, codecForRef, collectMutationDefaultGenerators, collectScalarTypeConstructors, column, contractSnapshotJsonSpecifier, contractSnapshotTypesSpecifier, coordinateKey, createControlStack, createDataTypeLookup, createExecutionStack, createMetaBuilder, dataType, dataTypeId, decodeJsonBoolean, decodeJsonFloat, decodeJsonInteger, decodeJsonIntegerText, decodeJsonMatching, decodeJsonString, defineAnnotation, describeTaggedLiteralFailure, diffSchemas, dispositionForCategory, domainElementCoordinates, elementCoordinates, emptyCodecLookup, encodeJsonFloat, enforceDataTypeInvariants, entityAt, extractCodecLookup, extractCodecTypeImports, extractComponentIds, extractQueryOperationTypeImports, fieldPresetSpellings, findAuthoringTypeConstructorCall, flatPslCompositeTypes, flatPslModels, flushAuthoringWarnings, freezeNode, getAuthoringFieldPreset, getAuthoringTypeConstructor, hasMigrations, hasOperationPreview, hasPslContractBuild, hasPslContractInfer, hasSchemaSubjectClassifier, hasSchemaView, hydrateNamespaceEntities, instantiateAuthoringEntityType, instantiateAuthoringFieldPreset, instantiateAuthoringTypeConstructor, instantiateExecutionStack, isAggregateDescriptor, isAnyInputAggregateDescriptor, isAuthoringArgRef, isAuthoringEntityTypeDescriptor, isAuthoringFieldPresetDescriptor, isAuthoringModelAttributeDescriptor, isAuthoringPslBlockDescriptor, isAuthoringTypeConstructorDescriptor, isIntegerIn, isNoInputAggregateDescriptor, isNonFiniteText, isPlainRecord, isRuntimeError, isTagEntryKey, issueOutcome, keepInternalSpecifiers, makePslNamespace, makePslNamespaceEntries, materializeCodec, mergeAuthoringNamespaces, mergeCapabilityMatrices, namespacePslExtensionBlocks, objectSchemaKeys, onQueryEndOutsideTransaction, orderIssuesByDependencies, printTaggedLiteral, promoteBuiltinKinds, raceAgainstAbort, readEnumBlockMembers, refuseJsonValue, renderTsLiteral, reportExecuteEnding, reportQueryEnding, requiredParamKeys, requiredSchemaKeys, resolveAuthoringTemplateValue, resolveCodecDescriptorOrThrow, resolveEnumCodecId, resolvePslBacktickEscapes, resolveRequirementSpecifiers, resolveTemplateTagEscapes, runAfterTransaction, runBeforeExecuteChain, runBeforeQueryChain, runExecuteWithMiddleware, runQueryWithMiddleware, runtimeAborted, runtimeError, sameMarkerHashes, settleAggregateOverloads, storageHashHex, tagEntryKey, temporalAuthoringPresets, temporalCodecPreset, temporalPhaseTemplate, timestampNowControlDescriptor, validateAuthoringHelperArguments, validateAuthoringTypeParams, validateCodecTypeParams };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
import { a as TIMESTAMP_NOW_GENERATOR_ID, f as temporalAuthoringPresets, i as TEMPORAL_ON_UPDATE_ARG, l as printTaggedLiteral, m as temporalPhaseTemplate, p as temporalCodecPreset, r as TEMPORAL_ON_CREATE_ARG, t as PresetStorageTemplate } from "./temporal-presets-
|
|
3
|
-
import { a as findAuthoringTypeConstructorCall, i as fieldPresetSpellings, n as AuthoringTypeConstructorOutput, o as getAuthoringFieldPreset, r as EnumBlockMember, s as readEnumBlockMembers, t as AuthoringTypeConstructorCall } from "./authoring-
|
|
4
|
-
export { type AuthoringArgRef, type AuthoringArgumentDescriptor, type AuthoringAttributeSpecContributions, type AuthoringColumnDefaultTemplate, type AuthoringContributions, type AuthoringDiagnosticSink, type AuthoringEntityContext, type AuthoringEntityTypeDescriptor, type AuthoringEntityTypeFactoryOutput, type AuthoringEntityTypeNamespace, type AuthoringEntityTypeTemplateOutput, type AuthoringFieldNamespace, type AuthoringFieldPresetDescriptor, type AuthoringFieldPresetOutput, type AuthoringModelAttributeContext, type AuthoringModelAttributeDescriptor, type AuthoringModelAttributeDescriptorNamespace, type AuthoringModelAttributeEntityOutput, type AuthoringModelAttributeIndexOutput, type AuthoringModelAttributeLoweringOutput, type AuthoringOption, type AuthoringPslBlockDescriptor, type AuthoringPslBlockDescriptorNamespace, type AuthoringSelectRef, type AuthoringStorageTypeTemplate, type AuthoringTemplateValue, type AuthoringTypeConstructorCall, type AuthoringTypeConstructorDescriptor, type AuthoringTypeConstructorEntityRef, type AuthoringTypeConstructorOutput, type AuthoringTypeNamespace, type AuthoringWarning, type AuthoringWarningSink, type DataTypeAuthoringEntry, type DataTypeWrittenForm, type EnumBlockMember, type ParsedPslExtensionBlock, type PresetStorageTemplate, type PslExtensionBlock, type PslExtensionBlockParsedAttribute, type PslExtensionBlockPrintEntry, type ScalarTypeConstructorOutput, TEMPORAL_ON_CREATE_ARG, TEMPORAL_ON_UPDATE_ARG, TIMESTAMP_NOW_GENERATOR_ID, assertNoCrossRegistryCollisions, assertResolvableTypeConstructorTemplates, classifyEnumMemberType, collectScalarTypeConstructors, fieldPresetSpellings, findAuthoringTypeConstructorCall, flushAuthoringWarnings, getAuthoringFieldPreset, getAuthoringTypeConstructor, instantiateAuthoringEntityType, instantiateAuthoringFieldPreset, instantiateAuthoringTypeConstructor, isAuthoringArgRef, isAuthoringEntityTypeDescriptor, isAuthoringFieldPresetDescriptor, isAuthoringModelAttributeDescriptor, isAuthoringPslBlockDescriptor, isAuthoringTypeConstructorDescriptor, mergeAuthoringNamespaces, printTaggedLiteral, readEnumBlockMembers, resolveAuthoringTemplateValue, resolveEnumCodecId, temporalAuthoringPresets, temporalCodecPreset, temporalPhaseTemplate, validateAuthoringHelperArguments, validateAuthoringTypeParams };
|
|
1
|
+
import { $ as instantiateAuthoringFieldPreset, A as AuthoringWarning, B as PslExtensionBlockParsedAttribute, C as AuthoringPslBlockDescriptorNamespace, D as AuthoringTypeConstructorDescriptor, E as AuthoringTemplateValue, F as ParsedPslExtensionBlock, G as assertNoCrossRegistryCollisions, J as classifyEnumMemberType, K as assertResolvableTypeConstructorTemplates, L as PslExtensionBlock, N as DataTypeAuthoringEntry, O as AuthoringTypeConstructorEntityRef, P as DataTypeWrittenForm, Q as instantiateAuthoringEntityType, S as AuthoringPslBlockDescriptor, T as AuthoringStorageTypeTemplate, V as PslExtensionBlockPrintEntry, W as ScalarTypeConstructorOutput, X as flushAuthoringWarnings, Y as collectScalarTypeConstructors, Z as getAuthoringTypeConstructor, _ as AuthoringModelAttributeDescriptorNamespace, a as AuthoringContributions, at as isAuthoringPslBlockDescriptor, b as AuthoringModelAttributeLoweringOutput, c as AuthoringEntityTypeDescriptor, ct as mergeAuthoringNamespaces, d as AuthoringEntityTypeTemplateOutput, dt as tagEntryKey, et as instantiateAuthoringTypeConstructor, f as AuthoringFieldNamespace, ft as validateAuthoringHelperArguments, g as AuthoringModelAttributeDescriptor, h as AuthoringModelAttributeContext, i as AuthoringColumnDefaultTemplate, it as isAuthoringModelAttributeDescriptor, j as AuthoringWarningSink, k as AuthoringTypeNamespace, l as AuthoringEntityTypeFactoryOutput, lt as resolveAuthoringTemplateValue, m as AuthoringFieldPresetOutput, n as AuthoringArgumentDescriptor, nt as isAuthoringEntityTypeDescriptor, o as AuthoringDiagnosticSink, ot as isAuthoringTypeConstructorDescriptor, p as AuthoringFieldPresetDescriptor, pt as validateAuthoringTypeParams, q as authoringEntryType, r as AuthoringAttributeSpecContributions, rt as isAuthoringFieldPresetDescriptor, s as AuthoringEntityContext, st as isTagEntryKey, t as AuthoringArgRef, tt as isAuthoringArgRef, u as AuthoringEntityTypeNamespace, ut as resolveEnumCodecId, v as AuthoringModelAttributeEntityOutput, w as AuthoringSelectRef, x as AuthoringOption, y as AuthoringModelAttributeIndexOutput } from "./framework-authoring-DRrZ8_s0-CJ7XXqvx.mjs";
|
|
2
|
+
import { a as TIMESTAMP_NOW_GENERATOR_ID, f as temporalAuthoringPresets, i as TEMPORAL_ON_UPDATE_ARG, l as printTaggedLiteral, m as temporalPhaseTemplate, p as temporalCodecPreset, r as TEMPORAL_ON_CREATE_ARG, t as PresetStorageTemplate } from "./temporal-presets-CLsu00ZK-CAx-cLAM.mjs";
|
|
3
|
+
import { a as findAuthoringTypeConstructorCall, i as fieldPresetSpellings, n as AuthoringTypeConstructorOutput, o as getAuthoringFieldPreset, r as EnumBlockMember, s as readEnumBlockMembers, t as AuthoringTypeConstructorCall } from "./authoring-CcT010vl.mjs";
|
|
4
|
+
export { type AuthoringArgRef, type AuthoringArgumentDescriptor, type AuthoringAttributeSpecContributions, type AuthoringColumnDefaultTemplate, type AuthoringContributions, type AuthoringDiagnosticSink, type AuthoringEntityContext, type AuthoringEntityTypeDescriptor, type AuthoringEntityTypeFactoryOutput, type AuthoringEntityTypeNamespace, type AuthoringEntityTypeTemplateOutput, type AuthoringFieldNamespace, type AuthoringFieldPresetDescriptor, type AuthoringFieldPresetOutput, type AuthoringModelAttributeContext, type AuthoringModelAttributeDescriptor, type AuthoringModelAttributeDescriptorNamespace, type AuthoringModelAttributeEntityOutput, type AuthoringModelAttributeIndexOutput, type AuthoringModelAttributeLoweringOutput, type AuthoringOption, type AuthoringPslBlockDescriptor, type AuthoringPslBlockDescriptorNamespace, type AuthoringSelectRef, type AuthoringStorageTypeTemplate, type AuthoringTemplateValue, type AuthoringTypeConstructorCall, type AuthoringTypeConstructorDescriptor, type AuthoringTypeConstructorEntityRef, type AuthoringTypeConstructorOutput, type AuthoringTypeNamespace, type AuthoringWarning, type AuthoringWarningSink, type DataTypeAuthoringEntry, type DataTypeWrittenForm, type EnumBlockMember, type ParsedPslExtensionBlock, type PresetStorageTemplate, type PslExtensionBlock, type PslExtensionBlockParsedAttribute, type PslExtensionBlockPrintEntry, type ScalarTypeConstructorOutput, TEMPORAL_ON_CREATE_ARG, TEMPORAL_ON_UPDATE_ARG, TIMESTAMP_NOW_GENERATOR_ID, assertNoCrossRegistryCollisions, assertResolvableTypeConstructorTemplates, authoringEntryType, classifyEnumMemberType, collectScalarTypeConstructors, fieldPresetSpellings, findAuthoringTypeConstructorCall, flushAuthoringWarnings, getAuthoringFieldPreset, getAuthoringTypeConstructor, instantiateAuthoringEntityType, instantiateAuthoringFieldPreset, instantiateAuthoringTypeConstructor, isAuthoringArgRef, isAuthoringEntityTypeDescriptor, isAuthoringFieldPresetDescriptor, isAuthoringModelAttributeDescriptor, isAuthoringPslBlockDescriptor, isAuthoringTypeConstructorDescriptor, isTagEntryKey, mergeAuthoringNamespaces, printTaggedLiteral, readEnumBlockMembers, resolveAuthoringTemplateValue, resolveEnumCodecId, tagEntryKey, temporalAuthoringPresets, temporalCodecPreset, temporalPhaseTemplate, validateAuthoringHelperArguments, validateAuthoringTypeParams };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as readEnumBlockMembers, n as findAuthoringTypeConstructorCall, r as getAuthoringFieldPreset, t as fieldPresetSpellings } from "./authoring-
|
|
3
|
-
export { TEMPORAL_ON_CREATE_ARG, TEMPORAL_ON_UPDATE_ARG, TIMESTAMP_NOW_GENERATOR_ID, assertNoCrossRegistryCollisions, assertResolvableTypeConstructorTemplates, classifyEnumMemberType, collectScalarTypeConstructors, fieldPresetSpellings, findAuthoringTypeConstructorCall, flushAuthoringWarnings, getAuthoringFieldPreset, getAuthoringTypeConstructor, instantiateAuthoringEntityType, instantiateAuthoringFieldPreset, instantiateAuthoringTypeConstructor, isAuthoringArgRef, isAuthoringEntityTypeDescriptor, isAuthoringFieldPresetDescriptor, isAuthoringModelAttributeDescriptor, isAuthoringPslBlockDescriptor, isAuthoringTypeConstructorDescriptor, mergeAuthoringNamespaces, printTaggedLiteral, readEnumBlockMembers, resolveAuthoringTemplateValue, resolveEnumCodecId, temporalAuthoringPresets, temporalCodecPreset, temporalPhaseTemplate, validateAuthoringHelperArguments, validateAuthoringTypeParams };
|
|
1
|
+
import { C as isAuthoringTypeConstructorDescriptor, D as printTaggedLiteral, E as mergeAuthoringNamespaces, F as temporalPhaseTemplate, L as validateAuthoringHelperArguments, M as tagEntryKey, N as temporalAuthoringPresets, O as resolveAuthoringTemplateValue, P as temporalCodecPreset, R as validateAuthoringTypeParams, S as isAuthoringPslBlockDescriptor, _ as instantiateAuthoringTypeConstructor, a as assertNoCrossRegistryCollisions, b as isAuthoringFieldPresetDescriptor, d as collectScalarTypeConstructors, g as instantiateAuthoringFieldPreset, h as instantiateAuthoringEntityType, i as TIMESTAMP_NOW_GENERATOR_ID, k as resolveEnumCodecId, l as classifyEnumMemberType, m as getAuthoringTypeConstructor, n as TEMPORAL_ON_CREATE_ARG, o as assertResolvableTypeConstructorTemplates, p as flushAuthoringWarnings, r as TEMPORAL_ON_UPDATE_ARG, s as authoringEntryType, v as isAuthoringArgRef, w as isTagEntryKey, x as isAuthoringModelAttributeDescriptor, y as isAuthoringEntityTypeDescriptor } from "./temporal-presets-DIo9uYtS-Odk6WBk8.mjs";
|
|
2
|
+
import { i as readEnumBlockMembers, n as findAuthoringTypeConstructorCall, r as getAuthoringFieldPreset, t as fieldPresetSpellings } from "./authoring-iMWszF7p.mjs";
|
|
3
|
+
export { TEMPORAL_ON_CREATE_ARG, TEMPORAL_ON_UPDATE_ARG, TIMESTAMP_NOW_GENERATOR_ID, assertNoCrossRegistryCollisions, assertResolvableTypeConstructorTemplates, authoringEntryType, classifyEnumMemberType, collectScalarTypeConstructors, fieldPresetSpellings, findAuthoringTypeConstructorCall, flushAuthoringWarnings, getAuthoringFieldPreset, getAuthoringTypeConstructor, instantiateAuthoringEntityType, instantiateAuthoringFieldPreset, instantiateAuthoringTypeConstructor, isAuthoringArgRef, isAuthoringEntityTypeDescriptor, isAuthoringFieldPresetDescriptor, isAuthoringModelAttributeDescriptor, isAuthoringPslBlockDescriptor, isAuthoringTypeConstructorDescriptor, isTagEntryKey, mergeAuthoringNamespaces, printTaggedLiteral, readEnumBlockMembers, resolveAuthoringTemplateValue, resolveEnumCodecId, tagEntryKey, temporalAuthoringPresets, temporalCodecPreset, temporalPhaseTemplate, validateAuthoringHelperArguments, validateAuthoringTypeParams };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { C as materializeCodec, D as validateCodecTypeParams, E as resolveCodecDescriptorOrThrow, S as isNonFiniteText, T as renderTsLiteral, _ as decodeJsonIntegerText, a as ColumnSpec, b as encodeJsonFloat, c as INT64_RANGE, d as SAFE_INTEGER_RANGE, f as codecForRef, g as decodeJsonInteger, h as decodeJsonFloat, i as ColumnHelperForStrict, l as IntegerRange, m as decodeJsonBoolean, n as CONTRACT_CODEC_DESCRIPTOR_MISSING, o as ColumnTypeDescriptor, p as column, r as ColumnHelperFor, s as INT32_RANGE, t as BigIntRange, u as SAFE_INTEGER_BIGINT_RANGE, v as decodeJsonMatching, w as refuseJsonValue, x as isIntegerIn, y as decodeJsonString } from "./codec-
|
|
3
|
-
export { type AnyCodecDescriptor, type AnyCodecDescriptorTemplate, type BigIntRange, CONTRACT_CODEC_DESCRIPTOR_MISSING, type Cast, type Codec, type CodecCallContext, type CodecDescriptor, CodecDescriptorImpl, type CodecDescriptorTemplate, CodecDescriptorTemplateImpl, CodecImpl, type CodecInstanceContext, type CodecLookup, type CodecLookupWithDescriptors, type CodecRef, type CodecRegistry, type CodecTrait, type ColumnHelperFor, type ColumnHelperForStrict, type ColumnSpec, type ColumnTypeDescriptor, type DataType, type DataTypeId, type DataTypeLookup, type DataTypeSpec, INT32_RANGE, INT64_RANGE, type IntegerRange, type ListCast, SAFE_INTEGER_BIGINT_RANGE, SAFE_INTEGER_RANGE, type ToCanonicalForm, assembleDataTypes, codecForRef, column, createDataTypeLookup, dataType, dataTypeId, decodeJsonBoolean, decodeJsonFloat, decodeJsonInteger, decodeJsonIntegerText, decodeJsonMatching, decodeJsonString, emptyCodecLookup, encodeJsonFloat, isIntegerIn, isNonFiniteText, materializeCodec, objectSchemaKeys, refuseJsonValue, renderTsLiteral, requiredParamKeys, requiredSchemaKeys, resolveCodecDescriptorOrThrow, validateCodecTypeParams };
|
|
1
|
+
import { A as objectSchemaKeys, C as ToCanonicalForm, D as dataType, E as createDataTypeLookup, M as requiredSchemaKeys, O as dataTypeId, S as ListCast, T as canonicalFormOf, _ as DATA_TYPE_ID_PATTERN, a as CodecCallContext, b as DataTypeLookup, c as CodecDescriptorTemplate, d as CodecInstanceContext, f as CodecLookup, g as CodecTrait, h as CodecRegistry, i as Codec, j as requiredParamKeys, k as emptyCodecLookup, l as CodecDescriptorTemplateImpl, m as CodecRef, n as AnyCodecDescriptorTemplate, o as CodecDescriptor, p as CodecLookupWithDescriptors, r as Cast, s as CodecDescriptorImpl, t as AnyCodecDescriptor, u as CodecImpl, v as DataType, w as assembleDataTypes, x as DataTypeSpec, y as DataTypeId } from "./codec-types-8NKqm4AQ-DyNSay3e.mjs";
|
|
2
|
+
import { C as materializeCodec, D as validateCodecTypeParams, E as resolveCodecDescriptorOrThrow, S as isNonFiniteText, T as renderTsLiteral, _ as decodeJsonIntegerText, a as ColumnSpec, b as encodeJsonFloat, c as INT64_RANGE, d as SAFE_INTEGER_RANGE, f as codecForRef, g as decodeJsonInteger, h as decodeJsonFloat, i as ColumnHelperForStrict, l as IntegerRange, m as decodeJsonBoolean, n as CONTRACT_CODEC_DESCRIPTOR_MISSING, o as ColumnTypeDescriptor, p as column, r as ColumnHelperFor, s as INT32_RANGE, t as BigIntRange, u as SAFE_INTEGER_BIGINT_RANGE, v as decodeJsonMatching, w as refuseJsonValue, x as isIntegerIn, y as decodeJsonString } from "./codec-BSm2qNVe.mjs";
|
|
3
|
+
export { type AnyCodecDescriptor, type AnyCodecDescriptorTemplate, type BigIntRange, CONTRACT_CODEC_DESCRIPTOR_MISSING, type Cast, type Codec, type CodecCallContext, type CodecDescriptor, CodecDescriptorImpl, type CodecDescriptorTemplate, CodecDescriptorTemplateImpl, CodecImpl, type CodecInstanceContext, type CodecLookup, type CodecLookupWithDescriptors, type CodecRef, type CodecRegistry, type CodecTrait, type ColumnHelperFor, type ColumnHelperForStrict, type ColumnSpec, type ColumnTypeDescriptor, DATA_TYPE_ID_PATTERN, type DataType, type DataTypeId, type DataTypeLookup, type DataTypeSpec, INT32_RANGE, INT64_RANGE, type IntegerRange, type ListCast, SAFE_INTEGER_BIGINT_RANGE, SAFE_INTEGER_RANGE, type ToCanonicalForm, assembleDataTypes, canonicalFormOf, codecForRef, column, createDataTypeLookup, dataType, dataTypeId, decodeJsonBoolean, decodeJsonFloat, decodeJsonInteger, decodeJsonIntegerText, decodeJsonMatching, decodeJsonString, emptyCodecLookup, encodeJsonFloat, isIntegerIn, isNonFiniteText, materializeCodec, objectSchemaKeys, refuseJsonValue, renderTsLiteral, requiredParamKeys, requiredSchemaKeys, resolveCodecDescriptorOrThrow, validateCodecTypeParams };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { t as emptyCodecLookup } from "./codec-types-BXLUbk-Y-DpGfKGK0.mjs";
|
|
2
|
-
import { a as
|
|
3
|
-
import { _ as
|
|
4
|
-
export { CONTRACT_CODEC_DESCRIPTOR_MISSING, CodecDescriptorImpl, CodecDescriptorTemplateImpl, CodecImpl, INT32_RANGE, INT64_RANGE, SAFE_INTEGER_BIGINT_RANGE, SAFE_INTEGER_RANGE, assembleDataTypes, codecForRef, column, createDataTypeLookup, dataType, dataTypeId, decodeJsonBoolean, decodeJsonFloat, decodeJsonInteger, decodeJsonIntegerText, decodeJsonMatching, decodeJsonString, emptyCodecLookup, encodeJsonFloat, isIntegerIn, isNonFiniteText, materializeCodec, objectSchemaKeys, refuseJsonValue, renderTsLiteral, requiredParamKeys, requiredSchemaKeys, resolveCodecDescriptorOrThrow, validateCodecTypeParams };
|
|
2
|
+
import { a as codecForRef, c as dataTypeId, d as requiredParamKeys, f as requiredSchemaKeys, l as materializeCodec, m as validateCodecTypeParams, n as DATA_TYPE_ID_PATTERN, o as createDataTypeLookup, p as resolveCodecDescriptorOrThrow, r as assembleDataTypes, s as dataType, t as CONTRACT_CODEC_DESCRIPTOR_MISSING, u as objectSchemaKeys } from "./resolve-codec-vOfdHcIJ-IeNjz3Tm.mjs";
|
|
3
|
+
import { _ as isIntegerIn, a as INT64_RANGE, b as renderTsLiteral, c as canonicalFormOf, d as decodeJsonFloat, f as decodeJsonInteger, g as encodeJsonFloat, h as decodeJsonString, i as INT32_RANGE, l as column, m as decodeJsonMatching, n as CodecDescriptorTemplateImpl, o as SAFE_INTEGER_BIGINT_RANGE, p as decodeJsonIntegerText, r as CodecImpl, s as SAFE_INTEGER_RANGE, t as CodecDescriptorImpl, u as decodeJsonBoolean, v as isNonFiniteText, y as refuseJsonValue } from "./codec-U-xbQys_.mjs";
|
|
4
|
+
export { CONTRACT_CODEC_DESCRIPTOR_MISSING, CodecDescriptorImpl, CodecDescriptorTemplateImpl, CodecImpl, DATA_TYPE_ID_PATTERN, INT32_RANGE, INT64_RANGE, SAFE_INTEGER_BIGINT_RANGE, SAFE_INTEGER_RANGE, assembleDataTypes, canonicalFormOf, codecForRef, column, createDataTypeLookup, dataType, dataTypeId, decodeJsonBoolean, decodeJsonFloat, decodeJsonInteger, decodeJsonIntegerText, decodeJsonMatching, decodeJsonString, emptyCodecLookup, encodeJsonFloat, isIntegerIn, isNonFiniteText, materializeCodec, objectSchemaKeys, refuseJsonValue, renderTsLiteral, requiredParamKeys, requiredSchemaKeys, resolveCodecDescriptorOrThrow, validateCodecTypeParams };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as AnyInputAggregateDescriptor, c as SelfAggregateOutput, d as aggregateDescriptorKey, f as isAggregateDescriptor, i as AggregateResultNullability, m as isNoInputAggregateDescriptor, n as AggregateInputMatch, o as NamedAggregateOutput, p as isAnyInputAggregateDescriptor, r as AggregateOutputCodec, s as NoInputAggregateDescriptor, t as AggregateDescriptor, u as ValueInputAggregateDescriptor } from "./types-import-spec-
|
|
1
|
+
import { a as AnyInputAggregateDescriptor, c as SelfAggregateOutput, d as aggregateDescriptorKey, f as isAggregateDescriptor, i as AggregateResultNullability, m as isNoInputAggregateDescriptor, n as AggregateInputMatch, o as NamedAggregateOutput, p as isAnyInputAggregateDescriptor, r as AggregateOutputCodec, s as NoInputAggregateDescriptor, t as AggregateDescriptor, u as ValueInputAggregateDescriptor } from "./types-import-spec-U2GFdg-x-CRt_XdWj.mjs";
|
|
2
2
|
import { n as mergeCapabilityMatrices, t as CapabilityMatrix } from "./capabilities-Cupq4-1--C71ORI3N.mjs";
|
|
3
|
-
import { S as checkContractComponentRequirements, _ as PackRefBase, a as ComponentMetadata, b as TargetInstance, c as DriverDescriptor, d as ExtensionDescriptor, f as ExtensionInstance, g as FamilyPackRef, h as FamilyInstance, i as ComponentDescriptor, l as DriverInstance, m as FamilyDescriptor, n as AdapterInstance, o as ContractComponentRequirementsCheckInput, p as ExtensionPackRef, r as AdapterPackRef, s as ContractComponentRequirementsCheckResult, t as AdapterDescriptor, u as DriverPackRef, v as TargetBoundComponentDescriptor, x as TargetPackRef, y as TargetDescriptor } from "./framework-components-
|
|
3
|
+
import { S as checkContractComponentRequirements, _ as PackRefBase, a as ComponentMetadata, b as TargetInstance, c as DriverDescriptor, d as ExtensionDescriptor, f as ExtensionInstance, g as FamilyPackRef, h as FamilyInstance, i as ComponentDescriptor, l as DriverInstance, m as FamilyDescriptor, n as AdapterInstance, o as ContractComponentRequirementsCheckInput, p as ExtensionPackRef, r as AdapterPackRef, s as ContractComponentRequirementsCheckResult, t as AdapterDescriptor, u as DriverPackRef, v as TargetBoundComponentDescriptor, x as TargetPackRef, y as TargetDescriptor } from "./framework-components-DDr6lZoZ-EpXYrZj7.mjs";
|
|
4
4
|
import { n as isRuntimeError, r as runtimeError, t as RuntimeErrorEnvelope } from "./runtime-error-CO4MA3Px-YW5SCUcH.mjs";
|
|
5
|
-
import { a as SettledAggregateOverloads, i as SettledAggregateOperation, n as AggregateOverloadAmbiguity, o as settleAggregateOverloads, r as AggregateOverloadDuplicate, t as AggregateCodecTraits } from "./components-
|
|
5
|
+
import { a as SettledAggregateOverloads, i as SettledAggregateOperation, n as AggregateOverloadAmbiguity, o as settleAggregateOverloads, r as AggregateOverloadDuplicate, t as AggregateCodecTraits } from "./components-CK8GHz8l.mjs";
|
|
6
6
|
export { type AdapterDescriptor, type AdapterInstance, type AdapterPackRef, type AggregateCodecTraits, type AggregateDescriptor, type AggregateInputMatch, type AggregateOutputCodec, type AggregateOverloadAmbiguity, type AggregateOverloadDuplicate, type AggregateResultNullability, type AnyInputAggregateDescriptor, type CapabilityMatrix, type ComponentDescriptor, type ComponentMetadata, type ContractComponentRequirementsCheckInput, type ContractComponentRequirementsCheckResult, type DriverDescriptor, type DriverInstance, type DriverPackRef, type ExtensionDescriptor, type ExtensionInstance, type ExtensionPackRef, type FamilyDescriptor, type FamilyInstance, type FamilyPackRef, type NamedAggregateOutput, type NoInputAggregateDescriptor, type PackRefBase, type RuntimeErrorEnvelope, type SelfAggregateOutput, type SettledAggregateOperation, type SettledAggregateOverloads, type TargetBoundComponentDescriptor, type TargetDescriptor, type TargetInstance, type TargetPackRef, type ValueInputAggregateDescriptor, aggregateDescriptorKey, checkContractComponentRequirements, isAggregateDescriptor, isAnyInputAggregateDescriptor, isNoInputAggregateDescriptor, isRuntimeError, mergeCapabilityMatrices, runtimeError, settleAggregateOverloads };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as DefaultFunctionLoweringContext, c as MutationDefaultGeneratorDescriptor, d as TypedDefaultFunctionCall, i as ControlMutationDefaults, l as SourceDiagnostic, n as ControlMutationDefaultEntry, o as LoweredDefaultResult, r as ControlMutationDefaultRegistry, s as LoweredDefaultValue, t as ControlDefaultRegistries, u as SourceSpan } from "./mutation-default-types-
|
|
2
|
-
import { c as describeTaggedLiteralFailure, d as resolveTemplateTagEscapes, h as timestampNowControlDescriptor, n as TAGGED_LITERAL_MAX_BYTES, o as TaggedLiteralCanonicalization, s as canonicalizeTaggedLiteralBody, u as resolvePslBacktickEscapes } from "./temporal-presets-
|
|
1
|
+
import { a as DefaultFunctionLoweringContext, c as MutationDefaultGeneratorDescriptor, d as TypedDefaultFunctionCall, i as ControlMutationDefaults, l as SourceDiagnostic, n as ControlMutationDefaultEntry, o as LoweredDefaultResult, r as ControlMutationDefaultRegistry, s as LoweredDefaultValue, t as ControlDefaultRegistries, u as SourceSpan } from "./mutation-default-types-D_M8NC3U-BQNexfRU.mjs";
|
|
2
|
+
import { c as describeTaggedLiteralFailure, d as resolveTemplateTagEscapes, h as timestampNowControlDescriptor, n as TAGGED_LITERAL_MAX_BYTES, o as TaggedLiteralCanonicalization, s as canonicalizeTaggedLiteralBody, u as resolvePslBacktickEscapes } from "./temporal-presets-CLsu00ZK-CAx-cLAM.mjs";
|
|
3
3
|
import { t as ImportRequirement } from "./index-DeSumOoq.mjs";
|
|
4
|
-
import { $ as
|
|
5
|
-
export { APP_SPACE_ID, type AssembledAuthoringContributions, CONTRACT_SNAPSHOTS_DIRNAME, type ContractSerializer, type ContractSpace, type ContractSpaceHeadRef, type ControlAdapterDescriptor, type ControlAdapterInstance, type ControlDefaultRegistries, type ControlDriverDescriptor, type ControlDriverInstance, type ControlExtensionDescriptor, type ControlExtensionInstance, type ControlFamilyDescriptor, type ControlFamilyInstance, type ControlMutationDefaultEntry, type ControlMutationDefaultRegistry, type ControlMutationDefaults, type ControlStack, type ControlTargetDescriptor, type ControlTargetInstance, type CoreSchemaView, type CreateControlStackInput, type DataTypeInvariantInput, type DefaultFunctionLoweringContext, type DiffSubjectGranularity, type DiffableNode, type EmitContractResult, type ExpectationFailureReason, type ImportRequirement, type IntrospectSchemaResult, type LoweredDefaultResult, type LoweredDefaultValue, type MigratableTargetDescriptor, type MigrationMetadata, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPackage, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanWithAuthoringSurface, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerFailureResult, type MigrationPlannerResult, type MigrationPlannerSuccessResult, type MigrationRunner, type MigrationRunnerExecutionChecks, type MigrationRunnerFailure, type MigrationRunnerPerSpaceOptions, type MigrationRunnerPerSpaceSuccessValue, type MigrationRunnerResult, type MigrationRunnerSuccessValue, type MigrationScaffoldContext, type MutationDefaultGeneratorDescriptor, type OpFactoryCall, type OperationContext, type OperationPreview, type OperationPreviewCapable, type OperationPreviewStatement, type PslContractBuildCapable, type PslContractDocument, type PslContractInferCapable, type PslSourceSettings, SchemaDiff, type SchemaDiffIssue, type SchemaEntityCoordinate, type SchemaNodeRef, type SchemaOwnership, type SchemaSubjectClassifierCapable, SchemaTreeNode, type SchemaTreeNodeOptions, type SchemaTreeVisitor, type SchemaVerifier, type SchemaVerifyOptions, type SchemaVerifyResult, type SchemaViewCapable, type SchemaViewNodeKind, type
|
|
4
|
+
import { $ as PslContractBuildCapable, $t as orderIssuesByDependencies, A as MigrationOperationPolicy, At as VerifyDatabaseSchemaResult, B as MigrationRunner, Bt as dispositionForCategory, C as EmitContractResult, Ct as VERIFY_CODE_MARKER_MISSING, D as MigratableTargetDescriptor, Dt as VerifierIssueCategory, E as MarkerHashes, Et as VerificationStatus, F as MigrationPlanner, Ft as buildExtensionLoadOrder, G as MigrationRunnerResult, Gt as extractQueryOperationTypeImports, H as MigrationRunnerFailure, Ht as extractCodecLookup, I as MigrationPlannerConflict, It as contractSnapshotJsonSpecifier, J as OpFactoryCall, Jt as hasPslContractBuild, K as MigrationRunnerSuccessValue, Kt as hasMigrations, L as MigrationPlannerFailureResult, Lt as contractSnapshotTypesSpecifier, M as MigrationPlan, Mt as assembleAuthoringDataTypes, N as MigrationPlanOperation, Nt as assembleControlMutationDefaults, O as MigrationMetadata, Ot as VerifierOutcome, P as MigrationPlanWithAuthoringSurface, Pt as assertUniqueCodecOwner, Q as OperationPreviewStatement, Qt as issueOutcome, R as MigrationPlannerResult, Rt as createControlStack, S as DiffableNode, St as VERIFY_CODE_HASH_MISMATCH, T as IntrospectSchemaResult, Tt as VERIFY_CODE_TARGET_MISMATCH, U as MigrationRunnerPerSpaceOptions, Ut as extractCodecTypeImports, V as MigrationRunnerExecutionChecks, Vt as enforceDataTypeInvariants, W as MigrationRunnerPerSpaceSuccessValue, Wt as extractComponentIds, X as OperationPreview, Xt as hasSchemaSubjectClassifier, Y as OperationContext, Yt as hasPslContractInfer, Z as OperationPreviewCapable, Zt as hasSchemaView, _ as ControlTargetInstance, _t as SpaceMarkerConflict, a as ContractSpace, at as SchemaEntityCoordinate, b as DataTypeInvariantInput, bt as SpaceToSign, c as ControlAdapterInstance, ct as SchemaSubjectClassifierCapable, d as ControlExtensionDescriptor, dt as SchemaTreeVisitor, en as sameMarkerHashes, et as PslContractDocument, f as ControlExtensionInstance, ft as SchemaVerifier, g as ControlTargetDescriptor, gt as SchemaViewNodeKind, h as ControlStack, ht as SchemaViewCapable, i as ContractSerializer, it as SchemaDiffIssue, j as MigrationPackage, jt as assembleAuthoringContributions, k as MigrationOperationClass, kt as VerifyDatabaseResult, l as ControlDriverDescriptor, lt as SchemaTreeNode, m as ControlFamilyInstance, mt as SchemaVerifyResult, n as AssembledAuthoringContributions, nt as PslSourceSettings, o as ContractSpaceHeadRef, ot as SchemaNodeRef, p as ControlFamilyDescriptor, pt as SchemaVerifyOptions, q as MigrationScaffoldContext, qt as hasOperationPreview, r as CONTRACT_SNAPSHOTS_DIRNAME, rt as SchemaDiff, s as ControlAdapterDescriptor, st as SchemaOwnership, t as APP_SPACE_ID, tn as storageHashHex, tt as PslContractInferCapable, u as ControlDriverInstance, ut as SchemaTreeNodeOptions, v as CoreSchemaView, vt as SpaceSignature, w as ExpectationFailureReason, wt as VERIFY_CODE_SCHEMA_FAILURE, x as DiffSubjectGranularity, xt as TargetMigrationsCapability, y as CreateControlStackInput, yt as SpaceSigned, z as MigrationPlannerSuccessResult, zt as diffSchemas } from "./control-C1x8zzHb.mjs";
|
|
5
|
+
export { APP_SPACE_ID, type AssembledAuthoringContributions, CONTRACT_SNAPSHOTS_DIRNAME, type ContractSerializer, type ContractSpace, type ContractSpaceHeadRef, type ControlAdapterDescriptor, type ControlAdapterInstance, type ControlDefaultRegistries, type ControlDriverDescriptor, type ControlDriverInstance, type ControlExtensionDescriptor, type ControlExtensionInstance, type ControlFamilyDescriptor, type ControlFamilyInstance, type ControlMutationDefaultEntry, type ControlMutationDefaultRegistry, type ControlMutationDefaults, type ControlStack, type ControlTargetDescriptor, type ControlTargetInstance, type CoreSchemaView, type CreateControlStackInput, type DataTypeInvariantInput, type DefaultFunctionLoweringContext, type DiffSubjectGranularity, type DiffableNode, type EmitContractResult, type ExpectationFailureReason, type ImportRequirement, type IntrospectSchemaResult, type LoweredDefaultResult, type LoweredDefaultValue, type MarkerHashes, type MigratableTargetDescriptor, type MigrationMetadata, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPackage, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanWithAuthoringSurface, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerFailureResult, type MigrationPlannerResult, type MigrationPlannerSuccessResult, type MigrationRunner, type MigrationRunnerExecutionChecks, type MigrationRunnerFailure, type MigrationRunnerPerSpaceOptions, type MigrationRunnerPerSpaceSuccessValue, type MigrationRunnerResult, type MigrationRunnerSuccessValue, type MigrationScaffoldContext, type MutationDefaultGeneratorDescriptor, type OpFactoryCall, type OperationContext, type OperationPreview, type OperationPreviewCapable, type OperationPreviewStatement, type PslContractBuildCapable, type PslContractDocument, type PslContractInferCapable, type PslSourceSettings, SchemaDiff, type SchemaDiffIssue, type SchemaEntityCoordinate, type SchemaNodeRef, type SchemaOwnership, type SchemaSubjectClassifierCapable, SchemaTreeNode, type SchemaTreeNodeOptions, type SchemaTreeVisitor, type SchemaVerifier, type SchemaVerifyOptions, type SchemaVerifyResult, type SchemaViewCapable, type SchemaViewNodeKind, type SourceDiagnostic, type SourceSpan, type SpaceMarkerConflict, type SpaceSignature, type SpaceSigned, type SpaceToSign, TAGGED_LITERAL_MAX_BYTES, type TaggedLiteralCanonicalization, type TargetMigrationsCapability, type TypedDefaultFunctionCall, VERIFY_CODE_HASH_MISMATCH, VERIFY_CODE_MARKER_MISSING, VERIFY_CODE_SCHEMA_FAILURE, VERIFY_CODE_TARGET_MISMATCH, type VerificationStatus, type VerifierIssueCategory, type VerifierOutcome, type VerifyDatabaseResult, type VerifyDatabaseSchemaResult, assembleAuthoringContributions, assembleAuthoringDataTypes, assembleControlMutationDefaults, assertUniqueCodecOwner, buildExtensionLoadOrder, canonicalizeTaggedLiteralBody, contractSnapshotJsonSpecifier, contractSnapshotTypesSpecifier, createControlStack, describeTaggedLiteralFailure, diffSchemas, dispositionForCategory, enforceDataTypeInvariants, extractCodecLookup, extractCodecTypeImports, extractComponentIds, extractQueryOperationTypeImports, hasMigrations, hasOperationPreview, hasPslContractBuild, hasPslContractInfer, hasSchemaSubjectClassifier, hasSchemaView, issueOutcome, orderIssuesByDependencies, resolvePslBacktickEscapes, resolveTemplateTagEscapes, sameMarkerHashes, storageHashHex, timestampNowControlDescriptor };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { A as issueOutcome, C as extractQueryOperationTypeImports, D as hasPslContractInfer, E as hasPslContractBuild, M as storageHashHex, O as hasSchemaSubjectClassifier, S as extractComponentIds, T as hasOperationPreview, _ as diffSchemas, a as VERIFY_CODE_HASH_MISMATCH, b as extractCodecLookup, c as VERIFY_CODE_TARGET_MISMATCH, d as assembleControlMutationDefaults, f as assertUniqueCodecOwner, g as createControlStack, h as contractSnapshotTypesSpecifier, i as SchemaTreeNode, j as orderIssuesByDependencies, k as hasSchemaView, l as assembleAuthoringContributions, m as contractSnapshotJsonSpecifier, n as CONTRACT_SNAPSHOTS_DIRNAME, o as VERIFY_CODE_MARKER_MISSING, p as buildExtensionLoadOrder, r as SchemaDiff, s as VERIFY_CODE_SCHEMA_FAILURE, t as APP_SPACE_ID, u as assembleAuthoringDataTypes, v as dispositionForCategory, w as hasMigrations, x as extractCodecTypeImports, y as enforceDataTypeInvariants } from "./control-
|
|
3
|
-
export { APP_SPACE_ID, CONTRACT_SNAPSHOTS_DIRNAME, SchemaDiff, SchemaTreeNode, TAGGED_LITERAL_MAX_BYTES, VERIFY_CODE_HASH_MISMATCH, VERIFY_CODE_MARKER_MISSING, VERIFY_CODE_SCHEMA_FAILURE, VERIFY_CODE_TARGET_MISMATCH, assembleAuthoringContributions, assembleAuthoringDataTypes, assembleControlMutationDefaults, assertUniqueCodecOwner, buildExtensionLoadOrder, canonicalizeTaggedLiteralBody, contractSnapshotJsonSpecifier, contractSnapshotTypesSpecifier, createControlStack, describeTaggedLiteralFailure, diffSchemas, dispositionForCategory, enforceDataTypeInvariants, extractCodecLookup, extractCodecTypeImports, extractComponentIds, extractQueryOperationTypeImports, hasMigrations, hasOperationPreview, hasPslContractBuild, hasPslContractInfer, hasSchemaSubjectClassifier, hasSchemaView, issueOutcome, orderIssuesByDependencies, resolvePslBacktickEscapes, resolveTemplateTagEscapes, storageHashHex, timestampNowControlDescriptor };
|
|
1
|
+
import { A as resolvePslBacktickEscapes, I as timestampNowControlDescriptor, c as canonicalizeTaggedLiteralBody, f as describeTaggedLiteralFailure, j as resolveTemplateTagEscapes, t as TAGGED_LITERAL_MAX_BYTES } from "./temporal-presets-DIo9uYtS-Odk6WBk8.mjs";
|
|
2
|
+
import { A as issueOutcome, C as extractQueryOperationTypeImports, D as hasPslContractInfer, E as hasPslContractBuild, M as sameMarkerHashes, N as storageHashHex, O as hasSchemaSubjectClassifier, S as extractComponentIds, T as hasOperationPreview, _ as diffSchemas, a as VERIFY_CODE_HASH_MISMATCH, b as extractCodecLookup, c as VERIFY_CODE_TARGET_MISMATCH, d as assembleControlMutationDefaults, f as assertUniqueCodecOwner, g as createControlStack, h as contractSnapshotTypesSpecifier, i as SchemaTreeNode, j as orderIssuesByDependencies, k as hasSchemaView, l as assembleAuthoringContributions, m as contractSnapshotJsonSpecifier, n as CONTRACT_SNAPSHOTS_DIRNAME, o as VERIFY_CODE_MARKER_MISSING, p as buildExtensionLoadOrder, r as SchemaDiff, s as VERIFY_CODE_SCHEMA_FAILURE, t as APP_SPACE_ID, u as assembleAuthoringDataTypes, v as dispositionForCategory, w as hasMigrations, x as extractCodecTypeImports, y as enforceDataTypeInvariants } from "./control-BIv_-3QB.mjs";
|
|
3
|
+
export { APP_SPACE_ID, CONTRACT_SNAPSHOTS_DIRNAME, SchemaDiff, SchemaTreeNode, TAGGED_LITERAL_MAX_BYTES, VERIFY_CODE_HASH_MISMATCH, VERIFY_CODE_MARKER_MISSING, VERIFY_CODE_SCHEMA_FAILURE, VERIFY_CODE_TARGET_MISMATCH, assembleAuthoringContributions, assembleAuthoringDataTypes, assembleControlMutationDefaults, assertUniqueCodecOwner, buildExtensionLoadOrder, canonicalizeTaggedLiteralBody, contractSnapshotJsonSpecifier, contractSnapshotTypesSpecifier, createControlStack, describeTaggedLiteralFailure, diffSchemas, dispositionForCategory, enforceDataTypeInvariants, extractCodecLookup, extractCodecTypeImports, extractComponentIds, extractQueryOperationTypeImports, hasMigrations, hasOperationPreview, hasPslContractBuild, hasPslContractInfer, hasSchemaSubjectClassifier, hasSchemaView, issueOutcome, orderIssuesByDependencies, resolvePslBacktickEscapes, resolveTemplateTagEscapes, sameMarkerHashes, storageHashHex, timestampNowControlDescriptor };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as TypesImportSpec } from "./types-import-spec-
|
|
2
|
-
import { a as keepInternalSpecifiers, i as ValidationContext, n as GenerateContractTypesOptions, o as resolveRequirementSpecifiers, r as ImportSpecifierResolver, t as EmissionSpi } from "./emission-types-
|
|
3
|
-
import "./emission-
|
|
1
|
+
import { l as TypesImportSpec } from "./types-import-spec-U2GFdg-x-CRt_XdWj.mjs";
|
|
2
|
+
import { a as keepInternalSpecifiers, i as ValidationContext, n as GenerateContractTypesOptions, o as resolveRequirementSpecifiers, r as ImportSpecifierResolver, t as EmissionSpi } from "./emission-types-BpY3maMX-pzm7Xmn7.mjs";
|
|
3
|
+
import "./emission-D9NsURmS.mjs";
|
|
4
4
|
export { type EmissionSpi, type GenerateContractTypesOptions, type ImportSpecifierResolver, type TypesImportSpec, type ValidationContext, keepInternalSpecifiers, resolveRequirementSpecifiers };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as RuntimeDriverDescriptor, c as RuntimeExtensionInstance, d as RuntimeTargetDescriptor, f as RuntimeTargetInstance, h as instantiateExecutionStack, i as RuntimeAdapterInstance, l as RuntimeFamilyDescriptor, m as createExecutionStack, n as ExecutionStackInstance, o as RuntimeDriverInstance, p as assertRuntimeContractRequirementsSatisfied, r as RuntimeAdapterDescriptor, s as RuntimeExtensionDescriptor, t as ExecutionStack, u as RuntimeFamilyInstance } from "./execution-
|
|
1
|
+
import { a as RuntimeDriverDescriptor, c as RuntimeExtensionInstance, d as RuntimeTargetDescriptor, f as RuntimeTargetInstance, h as instantiateExecutionStack, i as RuntimeAdapterInstance, l as RuntimeFamilyDescriptor, m as createExecutionStack, n as ExecutionStackInstance, o as RuntimeDriverInstance, p as assertRuntimeContractRequirementsSatisfied, r as RuntimeAdapterDescriptor, s as RuntimeExtensionDescriptor, t as ExecutionStack, u as RuntimeFamilyInstance } from "./execution-gjfB1CvH.mjs";
|
|
2
2
|
export { type ExecutionStack, type ExecutionStackInstance, type RuntimeAdapterDescriptor, type RuntimeAdapterInstance, type RuntimeDriverDescriptor, type RuntimeDriverInstance, type RuntimeExtensionDescriptor, type RuntimeExtensionInstance, type RuntimeFamilyDescriptor, type RuntimeFamilyInstance, type RuntimeTargetDescriptor, type RuntimeTargetInstance, assertRuntimeContractRequirementsSatisfied, createExecutionStack, instantiateExecutionStack };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { t as isPlainRecord } from "./is-plain-record-C9BWiqcw.mjs";
|
|
2
|
-
import { S as promoteBuiltinKinds, _ as domainElementCoordinates, a as IRNode, b as freezeNode, c as NamespaceBase, d as Storage, f as StorageType, g as coordinateKey, h as buildSingleNamespaceView, i as EntityKindDescriptor, l as NamespacedEntities, m as buildNamespacedEntities, n as DefaultNamespaceEntries, o as IRNodeBase, p as UNBOUND_NAMESPACE_ID, r as EntityCoordinate, s as Namespace, t as AnyEntityKindDescriptor, u as SingleNamespaceView, v as elementCoordinates, x as hydrateNamespaceEntities, y as entityAt } from "./ir-
|
|
2
|
+
import { S as promoteBuiltinKinds, _ as domainElementCoordinates, a as IRNode, b as freezeNode, c as NamespaceBase, d as Storage, f as StorageType, g as coordinateKey, h as buildSingleNamespaceView, i as EntityKindDescriptor, l as NamespacedEntities, m as buildNamespacedEntities, n as DefaultNamespaceEntries, o as IRNodeBase, p as UNBOUND_NAMESPACE_ID, r as EntityCoordinate, s as Namespace, t as AnyEntityKindDescriptor, u as SingleNamespaceView, v as elementCoordinates, x as hydrateNamespaceEntities, y as entityAt } from "./ir-bkQr_x1E.mjs";
|
|
3
3
|
export { type AnyEntityKindDescriptor, type DefaultNamespaceEntries, type EntityCoordinate, type EntityKindDescriptor, type IRNode, IRNodeBase, type Namespace, NamespaceBase, type NamespacedEntities, type SingleNamespaceView, type Storage, type StorageType, UNBOUND_NAMESPACE_ID, buildNamespacedEntities, buildSingleNamespaceView, coordinateKey, domainElementCoordinates, elementCoordinates, entityAt, freezeNode, hydrateNamespaceEntities, isPlainRecord, promoteBuiltinKinds };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as PslExtensionBlockParsedAttribute, C as AuthoringPslBlockDescriptorNamespace, F as ParsedPslExtensionBlock, H as PslPosition, I as PslDiagnosticCode, L as PslExtensionBlock, M as ContributedPslDiagnosticCode, R as PslExtensionBlockAttribute, U as PslSpan, V as PslExtensionBlockPrintEntry, z as PslExtensionBlockAttributeArg } from "./framework-authoring-
|
|
2
|
-
import { A as makePslNamespaceEntries, C as PslTypesBlock, D as flatPslCompositeTypes, E as UNSPECIFIED_PSL_NAMESPACE_ID, O as flatPslModels, S as PslTypeConstructorCall, T as UNBOUND_PSL_NAMESPACE_NAME, _ as PslModelAttribute, a as PslAttributePositionalArgument, b as PslNamespaceEntry, c as PslDefaultFunctionValue, d as PslDiagnostic, f as PslDocumentAst, g as PslModel, h as PslIndexConstraint, i as PslAttributeNamedArgument, j as namespacePslExtensionBlocks, k as makePslNamespace, l as PslDefaultLiteralValue, m as PslFieldAttribute, n as PslAttribute, o as PslAttributeTarget, p as PslField, r as PslAttributeArgument, s as PslCompositeType, t as BUILTIN_PSL_KIND_KEYS, u as PslDefaultValue, v as PslNamedTypeDeclaration, w as PslUniqueConstraint, x as PslReferentialAction, y as PslNamespace } from "./psl-ast-
|
|
3
|
-
import "./psl-ast-
|
|
1
|
+
import { B as PslExtensionBlockParsedAttribute, C as AuthoringPslBlockDescriptorNamespace, F as ParsedPslExtensionBlock, H as PslPosition, I as PslDiagnosticCode, L as PslExtensionBlock, M as ContributedPslDiagnosticCode, R as PslExtensionBlockAttribute, U as PslSpan, V as PslExtensionBlockPrintEntry, z as PslExtensionBlockAttributeArg } from "./framework-authoring-DRrZ8_s0-CJ7XXqvx.mjs";
|
|
2
|
+
import { A as makePslNamespaceEntries, C as PslTypesBlock, D as flatPslCompositeTypes, E as UNSPECIFIED_PSL_NAMESPACE_ID, O as flatPslModels, S as PslTypeConstructorCall, T as UNBOUND_PSL_NAMESPACE_NAME, _ as PslModelAttribute, a as PslAttributePositionalArgument, b as PslNamespaceEntry, c as PslDefaultFunctionValue, d as PslDiagnostic, f as PslDocumentAst, g as PslModel, h as PslIndexConstraint, i as PslAttributeNamedArgument, j as namespacePslExtensionBlocks, k as makePslNamespace, l as PslDefaultLiteralValue, m as PslFieldAttribute, n as PslAttribute, o as PslAttributeTarget, p as PslField, r as PslAttributeArgument, s as PslCompositeType, t as BUILTIN_PSL_KIND_KEYS, u as PslDefaultValue, v as PslNamedTypeDeclaration, w as PslUniqueConstraint, x as PslReferentialAction, y as PslNamespace } from "./psl-ast-BVYEC5xX-BEqjBVqF.mjs";
|
|
3
|
+
import "./psl-ast-a1L1ep0a.mjs";
|
|
4
4
|
export { type AuthoringPslBlockDescriptorNamespace, BUILTIN_PSL_KIND_KEYS, type ContributedPslDiagnosticCode, type ParsedPslExtensionBlock, PslAttribute, PslAttributeArgument, PslAttributeNamedArgument, PslAttributePositionalArgument, PslAttributeTarget, PslCompositeType, PslDefaultFunctionValue, PslDefaultLiteralValue, PslDefaultValue, PslDiagnostic, type PslDiagnosticCode, PslDocumentAst, type PslExtensionBlock, type PslExtensionBlockAttribute, type PslExtensionBlockAttributeArg, type PslExtensionBlockParsedAttribute, type PslExtensionBlockPrintEntry, PslField, PslFieldAttribute, PslIndexConstraint, PslModel, PslModelAttribute, PslNamedTypeDeclaration, PslNamespace, PslNamespaceEntry, type PslPosition, PslReferentialAction, type PslSpan, PslTypeConstructorCall, PslTypesBlock, PslUniqueConstraint, UNBOUND_PSL_NAMESPACE_NAME, UNSPECIFIED_PSL_NAMESPACE_ID, flatPslCompositeTypes, flatPslModels, makePslNamespace, makePslNamespaceEntries, namespacePslExtensionBlocks };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as isRuntimeError, r as runtimeError, t as RuntimeErrorEnvelope } from "./runtime-error-CO4MA3Px-YW5SCUcH.mjs";
|
|
2
|
-
import { $ as
|
|
3
|
-
export { type AfterExecuteResult, type AfterQueryResult, type AnnotationHandle, type AnnotationValue, type AppliedMutationDefault, AsyncIterableResult, type CrossFamilyMiddleware, type DefineAnnotationOptions, type ExecuteInterceptResult, type ExecutionPlan, type GeneratorStability, type LaneMetaBuilder, type MetaBuilder, type MutationDefaultGeneratorContributor, type MutationDefaults, type MutationDefaultsOp, type MutationDefaultsOptions, type OperationKind, type ParamRefMutator, type QueryInterceptResult, type QueryPlan, RUNTIME_ABORTED, RelationKeys, type RelationNamesOf, type ResultType, type RuntimeAbortedPhase, RuntimeCore, type RuntimeCoreOptions, type RuntimeErrorEnvelope, type RuntimeExecuteOptions, type RuntimeExecutor, type RuntimeLog, type RuntimeMiddleware, type RuntimeMiddlewareContext, type RuntimeMutationDefaultGenerator, type RuntimeStatementStats, type Scalars, type Shape, type ShapeSpec, type ValidAnnotations, applyMutationDefaults, assertAnnotationsApplicable, assertMutationDefaultGeneratorsAvailable, checkAborted, checkMiddlewareCompatibility, collectMutationDefaultGenerators, createMetaBuilder, defineAnnotation, isRuntimeError, raceAgainstAbort, runBeforeExecuteChain, runBeforeQueryChain, runExecuteWithMiddleware, runQueryWithMiddleware, runtimeAborted, runtimeError };
|
|
2
|
+
import { $ as reportQueryEnding, A as RuntimeCoreOptions, B as ShapeSpec, C as QueryPlan, D as ResultType, E as RelationNamesOf, F as RuntimeMiddlewareContext, G as checkAborted, H as applyMutationDefaults, I as RuntimeMutationDefaultGenerator, J as createMetaBuilder, K as checkMiddlewareCompatibility, L as RuntimeStatementStats, M as RuntimeExecutor, N as RuntimeLog, O as RuntimeAbortedPhase, P as RuntimeMiddleware, Q as reportExecuteEnding, R as Scalars, S as QueryInterceptResult, T as RelationKeys, U as assertAnnotationsApplicable, V as ValidAnnotations, W as assertMutationDefaultGeneratorsAvailable, X as onQueryEndOutsideTransaction, Y as defineAnnotation, Z as raceAgainstAbort, _ as MutationDefaultsOp, a as AnnotationValue, at as runtimeAborted, b as ParamRefMutator, c as CrossFamilyMiddleware, d as ExecutionPlan, et as runAfterTransaction, f as GeneratorStability, g as MutationDefaults, h as MutationDefaultGeneratorContributor, i as AnnotationHandle, it as runQueryWithMiddleware, j as RuntimeExecuteOptions, k as RuntimeCore, l as DefineAnnotationOptions, m as MetaBuilder, n as AfterQueryResult, nt as runBeforeQueryChain, o as AppliedMutationDefault, p as LaneMetaBuilder, q as collectMutationDefaultGenerators, r as AfterTransactionResult, rt as runExecuteWithMiddleware, s as AsyncIterableResult, t as AfterExecuteResult, tt as runBeforeExecuteChain, u as ExecuteInterceptResult, v as MutationDefaultsOptions, w as RUNTIME_ABORTED, x as QueryEnding, y as OperationKind, z as Shape } from "./runtime-NuBiQEuH.mjs";
|
|
3
|
+
export { type AfterExecuteResult, type AfterQueryResult, type AfterTransactionResult, type AnnotationHandle, type AnnotationValue, type AppliedMutationDefault, AsyncIterableResult, type CrossFamilyMiddleware, type DefineAnnotationOptions, type ExecuteInterceptResult, type ExecutionPlan, type GeneratorStability, type LaneMetaBuilder, type MetaBuilder, type MutationDefaultGeneratorContributor, type MutationDefaults, type MutationDefaultsOp, type MutationDefaultsOptions, type OperationKind, type ParamRefMutator, type QueryEnding, type QueryInterceptResult, type QueryPlan, RUNTIME_ABORTED, RelationKeys, type RelationNamesOf, type ResultType, type RuntimeAbortedPhase, RuntimeCore, type RuntimeCoreOptions, type RuntimeErrorEnvelope, type RuntimeExecuteOptions, type RuntimeExecutor, type RuntimeLog, type RuntimeMiddleware, type RuntimeMiddlewareContext, type RuntimeMutationDefaultGenerator, type RuntimeStatementStats, type Scalars, type Shape, type ShapeSpec, type ValidAnnotations, applyMutationDefaults, assertAnnotationsApplicable, assertMutationDefaultGeneratorsAvailable, checkAborted, checkMiddlewareCompatibility, collectMutationDefaultGenerators, createMetaBuilder, defineAnnotation, isRuntimeError, onQueryEndOutsideTransaction, raceAgainstAbort, reportExecuteEnding, reportQueryEnding, runAfterTransaction, runBeforeExecuteChain, runBeforeQueryChain, runExecuteWithMiddleware, runQueryWithMiddleware, runtimeAborted, runtimeError };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { n as runtimeError, t as isRuntimeError } from "./runtime-error-BA9d7XjZ-BlT8t6LB.mjs";
|
|
2
|
-
import { _ as
|
|
3
|
-
export { AsyncIterableResult, RUNTIME_ABORTED, RelationKeys, RuntimeCore, applyMutationDefaults, assertAnnotationsApplicable, assertMutationDefaultGeneratorsAvailable, checkAborted, checkMiddlewareCompatibility, collectMutationDefaultGenerators, createMetaBuilder, defineAnnotation, isRuntimeError, raceAgainstAbort, runBeforeExecuteChain, runBeforeQueryChain, runExecuteWithMiddleware, runQueryWithMiddleware, runtimeAborted, runtimeError };
|
|
2
|
+
import { S as runtimeAborted, _ as runAfterTransaction, a as applyMutationDefaults, b as runExecuteWithMiddleware, c as checkAborted, d as createMetaBuilder, f as defineAnnotation, g as reportQueryEnding, h as reportExecuteEnding, i as RuntimeCore, l as checkMiddlewareCompatibility, m as raceAgainstAbort, n as RUNTIME_ABORTED, o as assertAnnotationsApplicable, p as onQueryEndOutsideTransaction, r as RelationKeys, s as assertMutationDefaultGeneratorsAvailable, t as AsyncIterableResult, u as collectMutationDefaultGenerators, v as runBeforeExecuteChain, x as runQueryWithMiddleware, y as runBeforeQueryChain } from "./runtime-7NCyLoeP.mjs";
|
|
3
|
+
export { AsyncIterableResult, RUNTIME_ABORTED, RelationKeys, RuntimeCore, applyMutationDefaults, assertAnnotationsApplicable, assertMutationDefaultGeneratorsAvailable, checkAborted, checkMiddlewareCompatibility, collectMutationDefaultGenerators, createMetaBuilder, defineAnnotation, isRuntimeError, onQueryEndOutsideTransaction, raceAgainstAbort, reportExecuteEnding, reportQueryEnding, runAfterTransaction, runBeforeExecuteChain, runBeforeQueryChain, runExecuteWithMiddleware, runQueryWithMiddleware, runtimeAborted, runtimeError };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as Contract } from "./contract-types-BIaUtO7Z-Bcxx2I74.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { i as ControlMutationDefaults } from "./mutation-default-types-
|
|
4
|
-
import "./codec-
|
|
2
|
+
import { b as DataTypeLookup, p as CodecLookupWithDescriptors } from "./codec-types-8NKqm4AQ-DyNSay3e.mjs";
|
|
3
|
+
import { i as ControlMutationDefaults } from "./mutation-default-types-D_M8NC3U-BQNexfRU.mjs";
|
|
4
|
+
import "./codec-BSm2qNVe.mjs";
|
|
5
5
|
import { t as CapabilityMatrix } from "./capabilities-Cupq4-1--C71ORI3N.mjs";
|
|
6
|
-
import "./components-
|
|
6
|
+
import "./components-CK8GHz8l.mjs";
|
|
7
7
|
import { r as Result } from "./result-BYCOANWy.mjs";
|
|
8
|
-
import { d as ControlExtensionDescriptor, g as ControlTargetDescriptor, l as ControlDriverDescriptor, n as AssembledAuthoringContributions, p as ControlFamilyDescriptor, s as ControlAdapterDescriptor, u as ControlDriverInstance } from "./control-
|
|
8
|
+
import { d as ControlExtensionDescriptor, g as ControlTargetDescriptor, l as ControlDriverDescriptor, n as AssembledAuthoringContributions, p as ControlFamilyDescriptor, s as ControlAdapterDescriptor, u as ControlDriverInstance } from "./control-C1x8zzHb.mjs";
|
|
9
9
|
//#region ../../../1-framework/1-core/config/dist/config-types.d.mts
|
|
10
10
|
//#region src/contract-source-types.d.ts
|
|
11
11
|
interface ContractSourceDiagnosticPosition {
|
|
@@ -201,4 +201,4 @@ declare function defineConfig<TFamilyId extends string = string, TTargetId exten
|
|
|
201
201
|
declare function defaultContractOutputPath(contractPath: string): string;
|
|
202
202
|
//#endregion
|
|
203
203
|
export { defaultContractOutputPath as _, ContractSourceDiagnosticSpan as a, ContractSourceProvider as c, FormatterConfig as d, PrismaNextConfig as f, TypeScriptContractSourceProvider as g, PslParserOptions as h, ContractSourceDiagnosticPosition as i, ContractSourceProviderBase as l, PslGrammar as m, ContractSourceContext as n, ContractSourceDiagnostics as o, PslContractSourceProvider as p, ContractSourceDiagnostic as r, ContractSourceFormat as s, ContractConfig as t, DEFAULT_CONTRACT_SOURCE_DIR as u, defineConfig as v, normalizeContractConfig as y };
|
|
204
|
-
//# sourceMappingURL=config-types-
|
|
204
|
+
//# sourceMappingURL=config-types-D7Gkm2iv.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-types-
|
|
1
|
+
{"version":3,"file":"config-types-D7Gkm2iv.d.mts","names":[],"sources":["../../../../1-framework/1-core/config/dist/config-types.d.mts"],"mappings":";;;;;;;;;;UAMU;WACC;WACA;WACA;;UAED;WACC,OAAO;WACP,KAAK;;UAEN;WACC;WACA;WACA;WACA,OAAO;;WAEP;;;;;;WAMA,OAAO,SAAS;;UAEjB;WACC;WACA,sBAAsB;WACtB,OAAO;;UAER;WACC;;WAEA,4BAA4B,oBAAoB;WAChD,wBAAwB;WACxB,aAAa;;WAEb,gBAAgB;WAChB,yBAAyB;;;;;;;WAOzB;WACA,cAAc;;;;WAId,iBAAiB,YAAY;WAC7B;aACE;aACA;;;;;;;;KAQR;UACK;;;;;;WAMC;WACA,OAAO,SAAS,0BAA0B,QAAQ,OAAO,UAAU;;;KAGzE;;UAEK;;WAEC,UAAU;;UAEX,kCAAkC;WACjC;WACA,gBAAgB;;UAEjB,yCAAyC;WACxC;;KAEN,yBAAyB,4BAA4B;;;;;;UAMhD;;;;;WAKC,QAAQ;;;;;;;WAOR;;UAED;WACC;WACA;;;;;;;cAOG;iBACG,wBAAwB,UAAU,iBAAiB;WACzD;;;;;;;;;;UAUD,iBAAiB,mCAAmC,mCAAmC;WACtF,QAAQ,wBAAwB;WAChC,QAAQ,wBAAwB,WAAW;WAC3C,SAAS,yBAAyB,WAAW;WAC7C,sBAAsB,2BAA2B,WAAW;;;;;;;WAO5D,SAAS,wBAAwB,WAAW,WAAW,sBAAsB,WAAW,YAAY;;;;;WAKpG;;;;;;aAME,aAAa;;;;;;WAMf,WAAW;;;;WAIX;;aAEE;;WAEF,YAAY;;;;;;;WAOZ;;;;;;;;;;;;;;;iBAeM,aAAa,mCAAmC,mCAAmC,QAAQ,iBAAiB,WAAW,aAAa,iBAAiB,WAAW;;;;;;;;iBAQhK,0BAA0B"}
|
package/dist/config.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as defaultContractOutputPath, a as ContractSourceDiagnosticSpan, c as ContractSourceProvider, d as FormatterConfig, f as PrismaNextConfig, g as TypeScriptContractSourceProvider, h as PslParserOptions, i as ContractSourceDiagnosticPosition, l as ContractSourceProviderBase, m as PslGrammar, n as ContractSourceContext, o as ContractSourceDiagnostics, p as PslContractSourceProvider, r as ContractSourceDiagnostic, s as ContractSourceFormat, t as ContractConfig, u as DEFAULT_CONTRACT_SOURCE_DIR, v as defineConfig, y as normalizeContractConfig } from "./config-types-
|
|
1
|
+
import { _ as defaultContractOutputPath, a as ContractSourceDiagnosticSpan, c as ContractSourceProvider, d as FormatterConfig, f as PrismaNextConfig, g as TypeScriptContractSourceProvider, h as PslParserOptions, i as ContractSourceDiagnosticPosition, l as ContractSourceProviderBase, m as PslGrammar, n as ContractSourceContext, o as ContractSourceDiagnostics, p as PslContractSourceProvider, r as ContractSourceDiagnostic, s as ContractSourceFormat, t as ContractConfig, u as DEFAULT_CONTRACT_SOURCE_DIR, v as defineConfig, y as normalizeContractConfig } from "./config-types-D7Gkm2iv.mjs";
|
|
2
2
|
export { type ContractConfig, type ContractSourceContext, type ContractSourceDiagnostic, type ContractSourceDiagnosticPosition, type ContractSourceDiagnosticSpan, type ContractSourceDiagnostics, type ContractSourceFormat, type ContractSourceProvider, type ContractSourceProviderBase, DEFAULT_CONTRACT_SOURCE_DIR, type FormatterConfig, type PrismaNextConfig, type PslContractSourceProvider, type PslGrammar, type PslParserOptions, type TypeScriptContractSourceProvider, defaultContractOutputPath, defineConfig, normalizeContractConfig };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as defaultContractOutputPath, a as ContractSourceDiagnosticSpan, c as ContractSourceProvider, d as FormatterConfig, f as PrismaNextConfig, g as TypeScriptContractSourceProvider, h as PslParserOptions, i as ContractSourceDiagnosticPosition, l as ContractSourceProviderBase, m as PslGrammar, n as ContractSourceContext, o as ContractSourceDiagnostics, p as PslContractSourceProvider, r as ContractSourceDiagnostic, s as ContractSourceFormat, t as ContractConfig, u as DEFAULT_CONTRACT_SOURCE_DIR, v as defineConfig, y as normalizeContractConfig } from "./config-types-
|
|
1
|
+
import { _ as defaultContractOutputPath, a as ContractSourceDiagnosticSpan, c as ContractSourceProvider, d as FormatterConfig, f as PrismaNextConfig, g as TypeScriptContractSourceProvider, h as PslParserOptions, i as ContractSourceDiagnosticPosition, l as ContractSourceProviderBase, m as PslGrammar, n as ContractSourceContext, o as ContractSourceDiagnostics, p as PslContractSourceProvider, r as ContractSourceDiagnostic, s as ContractSourceFormat, t as ContractConfig, u as DEFAULT_CONTRACT_SOURCE_DIR, v as defineConfig, y as normalizeContractConfig } from "./config-types-D7Gkm2iv.mjs";
|
|
2
2
|
export { type ContractConfig, type ContractSourceContext, type ContractSourceDiagnostic, type ContractSourceDiagnosticPosition, type ContractSourceDiagnosticSpan, type ContractSourceDiagnostics, type ContractSourceFormat, type ContractSourceProvider, type ContractSourceProviderBase, DEFAULT_CONTRACT_SOURCE_DIR, type FormatterConfig, type PrismaNextConfig, type PslContractSourceProvider, type PslGrammar, type PslParserOptions, type TypeScriptContractSourceProvider, defaultContractOutputPath, defineConfig, normalizeContractConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as ContractToOneRelation, g as ContractModelBase, n as ApplicationDomain } from "./domain-envelope-C2vVIWGK-C5x7cBpU.mjs";
|
|
2
|
-
import { c as AuthoringEntityTypeDescriptor, f as AuthoringFieldNamespace, k as AuthoringTypeNamespace, n as AuthoringArgumentDescriptor, p as AuthoringFieldPresetDescriptor, s as AuthoringEntityContext, u as AuthoringEntityTypeNamespace } from "./framework-authoring-
|
|
3
|
-
import "./authoring-
|
|
4
|
-
import { o as ColumnTypeDescriptor } from "./codec-
|
|
2
|
+
import { c as AuthoringEntityTypeDescriptor, f as AuthoringFieldNamespace, k as AuthoringTypeNamespace, n as AuthoringArgumentDescriptor, p as AuthoringFieldPresetDescriptor, s as AuthoringEntityContext, u as AuthoringEntityTypeNamespace } from "./framework-authoring-DRrZ8_s0-CJ7XXqvx.mjs";
|
|
3
|
+
import "./authoring-CcT010vl.mjs";
|
|
4
|
+
import { o as ColumnTypeDescriptor } from "./codec-BSm2qNVe.mjs";
|
|
5
5
|
//#region ../../../1-framework/2-authoring/contract/dist/index.d.mts
|
|
6
6
|
//#region src/authoring-argument-types.d.ts
|
|
7
7
|
type OptionalObjectArgumentKeys<Properties extends Record<string, AuthoringArgumentDescriptor>> = { readonly [K in keyof Properties]: Properties[K] extends {
|
|
@@ -168,8 +168,6 @@ interface EnumTypeHandle<Name extends string = string, Values extends readonly u
|
|
|
168
168
|
readonly enumName: Name;
|
|
169
169
|
/** codecId from the codec passed to `enumType`. */
|
|
170
170
|
readonly codecId: string;
|
|
171
|
-
/** Ignored: the contract names the database type from the codec's data type. */
|
|
172
|
-
readonly nativeType?: string;
|
|
173
171
|
/** Ordered member list for lowering (name + value pairs). */
|
|
174
172
|
readonly enumMembers: readonly {
|
|
175
173
|
readonly name: string;
|
|
@@ -214,10 +212,9 @@ type CodecInput<CodecTypes extends CodecTypeMap, Codec extends {
|
|
|
214
212
|
/**
|
|
215
213
|
* Declare a domain enum for use in TS-authoring contracts.
|
|
216
214
|
*
|
|
217
|
-
* - The codec is an explicit required argument — the `codecId`
|
|
218
|
-
*
|
|
219
|
-
*
|
|
220
|
-
* output or a direct inline object).
|
|
215
|
+
* - The codec is an explicit required argument — the `codecId` is taken
|
|
216
|
+
* from the passed `ColumnTypeDescriptor` (e.g. `{ codecId: 'pg/text@1' }`
|
|
217
|
+
* from a field preset output or a direct inline object).
|
|
221
218
|
* - `const` generics on the members spread preserve the ordered literal
|
|
222
219
|
* value tuple so `Role.values` is `readonly ['user','admin']`, not
|
|
223
220
|
* `string[]`.
|
|
@@ -229,7 +226,7 @@ type CodecInput<CodecTypes extends CodecTypeMap, Codec extends {
|
|
|
229
226
|
*
|
|
230
227
|
* @example
|
|
231
228
|
* ```ts
|
|
232
|
-
* const Role = enumType('Role', { codecId: 'pg/text@1'
|
|
229
|
+
* const Role = enumType('Role', { codecId: 'pg/text@1' },
|
|
233
230
|
* member('User', 'user'),
|
|
234
231
|
* member('Admin', 'admin'),
|
|
235
232
|
* );
|
|
@@ -237,8 +234,8 @@ type CodecInput<CodecTypes extends CodecTypeMap, Codec extends {
|
|
|
237
234
|
* // Role.members.User → 'user'
|
|
238
235
|
* ```
|
|
239
236
|
*/
|
|
240
|
-
declare function enumType<CodecTypes extends CodecTypeMap = Record<string, never>, const Name extends string = string, const Codec extends Pick<ColumnTypeDescriptor, 'codecId'
|
|
241
|
-
declare function enumType(name: string, codec: Pick<ColumnTypeDescriptor, 'codecId'
|
|
237
|
+
declare function enumType<CodecTypes extends CodecTypeMap = Record<string, never>, const Name extends string = string, const Codec extends Pick<ColumnTypeDescriptor, 'codecId'> = Pick<ColumnTypeDescriptor, 'codecId'>, const Members extends readonly [EnumMember<string, CodecInput<CodecTypes, Codec>>, ...EnumMember<string, CodecInput<CodecTypes, Codec>>[]] = readonly [EnumMember<string, CodecInput<CodecTypes, Codec>>]>(name: Name, codec: Codec, ...members: Members): EnumTypeHandle<Name, MembersToValues<[...Members]>, MembersToNames<[...Members]>, MembersAccessorMap<[...Members]>>;
|
|
238
|
+
declare function enumType(name: string, codec: Pick<ColumnTypeDescriptor, 'codecId'>, ...members: EnumMember<string, unknown>[]): EnumTypeHandle;
|
|
242
239
|
/**
|
|
243
240
|
* The signature of an `enumType` whose codec typemap is already bound — the
|
|
244
241
|
* shape a target-bound wrapper (e.g. `@internal/postgres/contract-builder`)
|
|
@@ -246,7 +243,7 @@ declare function enumType(name: string, codec: Pick<ColumnTypeDescriptor, 'codec
|
|
|
246
243
|
* from `CodecTypes`, while `Name`, `Codec`, and the member tuple still infer
|
|
247
244
|
* from the call.
|
|
248
245
|
*/
|
|
249
|
-
type BoundEnumType<CodecTypes extends CodecTypeMap> = <const Name extends string, const Codec extends Pick<ColumnTypeDescriptor, 'codecId'
|
|
246
|
+
type BoundEnumType<CodecTypes extends CodecTypeMap> = <const Name extends string, const Codec extends Pick<ColumnTypeDescriptor, 'codecId'>, const Members extends readonly [EnumMember<string, CodecInput<CodecTypes, Codec>>, ...EnumMember<string, CodecInput<CodecTypes, Codec>>[]]>(name: Name, codec: Codec, ...members: Members) => EnumTypeHandle<Name, MembersToValues<[...Members]>, MembersToNames<[...Members]>, MembersAccessorMap<[...Members]>>;
|
|
250
247
|
/**
|
|
251
248
|
* Bind `enumType` to a target's codec typemap. The returned function is the
|
|
252
249
|
* same runtime `enumType`, retyped so member values are constrained to the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract-authoring.d.mts","names":[],"sources":["../../../../1-framework/2-authoring/contract/dist/index.d.mts"],"mappings":";;;;;;KAIK,2BAA2B,mBAAmB,eAAe,4CAA4C,WAAW,aAAa,WAAW;WACtI;IACP,mBAAmB;KAClB,2BAA2B,mBAAmB,eAAe,gCAAgC,cAAc,YAAY,2BAA2B;;;;;;;;;KASlJ,mBAAmB,mBAAmB,eAAe,iCAAiC,2BAA2B,2CAA2C,KAAK,2BAA2B,eAAe,sBAAsB,WAAW,qBAAqB,KAAK,2BAA2B,cAAc,sBAAsB,WAAW,qBAAqB,KAAK,2BAA2B,eAAe,sBAAsB,WAAW;KACrb,sBAAsB,YAAY,+BAA+B;WAC3D;aACE;WACF;cACG;WACH;aACE;WACF;wBACa;WACb;WACA,cAAc;IACrB,iBAAiB;WACV;WACA,kBAAkB,mBAAmB,eAAe;IAC3D,mBAAmB;;;;;;;;;;KAUlB,6BAA6B,sBAAsB,iCAAiC,6BAA6B,aAAa,sCAAsC,sBAAsB,iCAAiC;WACrN;cACG,sBAAsB,WAAW,6BAA6B,mBAAmB,sBAAsB,UAAU,6BAA6B;KACvJ,qBAAqB,UAAU,mCAAmC;WAC5D;WACA,aAAa;WACb,aAAa;WACb,gBAAgB;IACvB,wBAAwB,KAAK,QAAQ,MAAM,SAAS,QAAQ,kDAAkD,WAAW,WAAW,qBAAqB,SAAS,IAAI,WAAW,iBAAiB,sCAAsC,WAAW,WAAW,qBAAqB,SAAS,IAAI,WAAW;KAC1S,yBAAyB,OAAO,8CAA8C,6BAA6B,iCAAiC,kCAAkC,sBAAsB,YAAY,SAAS,yBAAyB,YAAY,OAA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uBAAuB;;;;;;;iBAOna,aAAa,mBAAmB,iBAAiB,cAAc;;;;;;iBAM/D,iBAAiB,iBAAiB,SAAS;;;iBAG3C,6BAA6B,aAAa;;;;iBAI1C,gCAAgC,WAAW,yBAAyB,mBAAmB;WAC7F;WACA,YAAY;UACb,yCAAyC,2BAA2B;UACpE;WACC,MAAM;WACN,OAAO;WACP,aAAa;;;;;iBAKP,8BAA8B,YAAY,uBAAuB;WACvE,wBAAwB,KAAK;KACnC,KAAK,MAAM,wBAAwB;;;KAGnC;KACA;WACM;WACA,eAAe;;;;;;;;;iBAST,6BAA6B;WACnC;WACA;WACA;IACP;KACC,+BAA+B;WACzB;WACA;WACA,OAAO;WACP,UAAU;;WAEV;WACA;;;;;;;iBAOM,oCAAoC,gBAAgB,mBAAmB,QAAQ,SAAS,uBAAuB,8BAA8B"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { t as blindCast } from "./casts-DpaahrlC-Bd5n2coI.mjs";
|
|
2
|
-
import { t as ifDefined } from "./defined-BQWA85QH-BRSBMULx.mjs";
|
|
3
2
|
import { o as structuredError } from "./structured-error-BXbihKQ-.mjs";
|
|
4
|
-
import {
|
|
3
|
+
import { E as mergeAuthoringNamespaces, b as isAuthoringFieldPresetDescriptor, h as instantiateAuthoringEntityType } from "./temporal-presets-DIo9uYtS-Odk6WBk8.mjs";
|
|
5
4
|
//#region ../../../1-framework/2-authoring/contract/dist/index.mjs
|
|
6
5
|
/**
|
|
7
6
|
* Deep-merges any number of capability matrices into a single matrix.
|
|
@@ -101,7 +100,6 @@ function enumType(name, codec, ...members) {
|
|
|
101
100
|
[ENUM_TYPE_HANDLE_BRAND]: true,
|
|
102
101
|
enumName: name,
|
|
103
102
|
codecId: codec.codecId,
|
|
104
|
-
...ifDefined("nativeType", codec.nativeType),
|
|
105
103
|
enumMembers,
|
|
106
104
|
values,
|
|
107
105
|
names,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract-authoring.mjs","names":[],"sources":["../../../../1-framework/2-authoring/contract/dist/index.mjs"],"sourcesContent":["import { instantiateAuthoringEntityType, isAuthoringFieldPresetDescriptor, mergeAuthoringNamespaces } from \"@internal/framework-components/authoring\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { structuredError } from \"@internal/utils/structured-error\";\n//#region src/capability-registry.ts\n/**\n* Deep-merges any number of capability matrices into a single matrix.\n*\n* Merge is purely structural — namespaces and capability flags from later\n* sources overlay earlier ones. Undefined entries are skipped so callers\n* can pass optional sources without pre-filtering.\n*\n* The helper is target-agnostic: it contains no SQL or family-specific\n* knowledge. Higher layers contribute their own capability matrices (for\n* example, a target pack, an extension pack, or the contract author's\n* own `capabilities` block) and call this helper to fold them together.\n*/\nfunction mergeCapabilityMatrices(...sources) {\n\tconst result = {};\n\tfor (const source of sources) {\n\t\tif (source === void 0) continue;\n\t\tfor (const [namespace, capabilities] of Object.entries(source)) {\n\t\t\tconst existing = result[namespace];\n\t\t\tresult[namespace] = existing ? {\n\t\t\t\t...existing,\n\t\t\t\t...capabilities\n\t\t\t} : { ...capabilities };\n\t\t}\n\t}\n\treturn result;\n}\n//#endregion\n//#region src/composed-helpers-scaffolding.ts\n/**\n* Walks an entity-type namespace (after cross-pack merge) and produces the\n* runtime callable surface mirroring its tree shape. Each leaf\n* descriptor becomes a function `(input) => factory(input, ctx)`;\n* nested namespace objects recurse.\n*/\nfunction createEntityHelpersFromNamespace(namespace, options, path = []) {\n\tconst result = {};\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isLeafEntityDescriptor(value)) {\n\t\t\tresult[key] = createEntityHelper(currentPath.join(\".\"), value, options);\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null && !Array.isArray(value)) result[key] = createEntityHelpersFromNamespace(value, options, currentPath);\n\t}\n\treturn result;\n}\nfunction isLeafEntityDescriptor(value) {\n\tif (typeof value !== \"object\" || value === null || value.kind !== \"entity\") return false;\n\tconst discriminator = value.discriminator;\n\treturn typeof discriminator === \"string\" && discriminator.length > 0;\n}\nfunction createEntityHelper(helperPath, descriptor, options) {\n\treturn (...args) => instantiateAuthoringEntityType(helperPath, descriptor, args, options.ctx);\n}\n//#endregion\n//#region src/contract-errors.ts\nfunction contractError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n//#endregion\n//#region src/enum-type.ts\nfunction member(name, value) {\n\treturn {\n\t\tname,\n\t\tvalue: blindCast(value === void 0 ? name : value)\n\t};\n}\nconst ENUM_TYPE_HANDLE_BRAND = \"__prismaNextEnumTypeHandle__\";\nfunction enumType(name, codec, ...members) {\n\tif (members.length === 0) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): must have at least one member.`, { meta: {\n\t\tenumName: name,\n\t\treason: \"no-members\"\n\t} });\n\tconst seenNames = /* @__PURE__ */ new Set();\n\tconst seenValues = /* @__PURE__ */ new Set();\n\tfor (const m of members) {\n\t\tif (seenNames.has(m.name)) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): duplicate member name \"${m.name}\". Member names must be unique.`, { meta: {\n\t\t\tenumName: name,\n\t\t\tmember: m.name,\n\t\t\treason: \"duplicate-member-name\"\n\t\t} });\n\t\tseenNames.add(m.name);\n\t\tconst loweredValue = String(m.value);\n\t\tif (seenValues.has(loweredValue)) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): duplicate member value \"${loweredValue}\". Member values must be unique.`, { meta: {\n\t\t\tenumName: name,\n\t\t\tmember: loweredValue,\n\t\t\treason: \"duplicate-member-value\"\n\t\t} });\n\t\tseenValues.add(loweredValue);\n\t}\n\tconst values = Object.freeze(members.map((m) => m.value));\n\tconst names = Object.freeze(members.map((m) => m.name));\n\tconst enumMembers = Object.freeze(members.map((m) => ({\n\t\tname: m.name,\n\t\tvalue: m.value\n\t})));\n\tconst membersAccessor = Object.freeze(Object.fromEntries(members.map((m) => [m.name, m.value])));\n\tconst valueSet = new Set(values);\n\tconst valueToName = new Map(members.map((m) => [m.value, m.name]));\n\tconst valueToOrdinal = new Map(values.map((v, i) => [v, i]));\n\treturn {\n\t\t[ENUM_TYPE_HANDLE_BRAND]: true,\n\t\tenumName: name,\n\t\tcodecId: codec.codecId,\n\t\t...ifDefined(\"nativeType\", codec.nativeType),\n\t\tenumMembers,\n\t\tvalues,\n\t\tnames,\n\t\tmembers: membersAccessor,\n\t\thas: (v) => valueSet.has(v),\n\t\tnameOf: (v) => valueToName.get(v),\n\t\tordinalOf: (v) => valueToOrdinal.get(v) ?? -1\n\t};\n}\n/**\n* Bind `enumType` to a target's codec typemap. The returned function is the\n* same runtime `enumType`, retyped so member values are constrained to the\n* codec's input type. Target packages call this with their pack's\n* `ExtractCodecTypesFromPack<Pack>` to expose a codec-aware `enumType`.\n*/\nfunction bindEnumType() {\n\treturn enumType;\n}\n/**\n* Returns true when the value is an `EnumTypeHandle` produced by\n* `enumType()`. Used in the lowering pipeline to detect enum handles\n* in field state without importing the brand key at every call site.\n*/\nfunction isEnumTypeHandle(value) {\n\treturn typeof value === \"object\" && value !== null && Reflect.get(value, \"__prismaNextEnumTypeHandle__\") === true;\n}\n//#endregion\n//#region src/field-preset-helpers.ts\nconst blockedSegments = /* @__PURE__ */ new Set([\n\t\"__proto__\",\n\t\"constructor\",\n\t\"prototype\"\n]);\nfunction assertSafeAuthoringHelperKey(key, path) {\n\tif (blockedSegments.has(key)) throw contractError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Invalid authoring helper \"${[...path, key].join(\".\")}\". Helper path segments must not use \"${key}\".`, { meta: {\n\t\thelperPath: [...path, key].join(\".\"),\n\t\tsegment: key\n\t} });\n}\n/**\n* Walks a field-preset namespace and produces the callable surface mirroring its tree shape. Each leaf descriptor becomes the helper `createLeafHelper` returns; nested namespaces recurse.\n*/\nfunction createFieldHelpersFromNamespace(namespace, createLeafHelper, path = []) {\n\tconst helpers = {};\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tassertSafeAuthoringHelperKey(key, path);\n\t\tconst currentPath = [...path, key];\n\t\tif (isAuthoringFieldPresetDescriptor(value)) {\n\t\t\thelpers[key] = createLeafHelper({\n\t\t\t\thelperPath: currentPath.join(\".\"),\n\t\t\t\tdescriptor: value\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\thelpers[key] = createFieldHelpersFromNamespace(value, createLeafHelper, currentPath);\n\t}\n\treturn helpers;\n}\nfunction isNonEmptyRecord(value) {\n\treturn typeof value === \"object\" && value !== null && Object.keys(value).length > 0;\n}\nconst descriptorKindByNamespace = {\n\ttype: {\n\t\tdescriptorKind: \"typeConstructor\",\n\t\tlabel: \"type\"\n\t},\n\tfield: {\n\t\tdescriptorKind: \"fieldPreset\",\n\t\tlabel: \"field\"\n\t},\n\tentityTypes: {\n\t\tdescriptorKind: \"entity\",\n\t\tlabel: \"entity\"\n\t}\n};\n/**\n* Merges one authoring namespace (`type`, `field` or `entityTypes`) across the family, target and extension packs, in order. A duplicate helper path across packs throws.\n*/\nfunction composePackAuthoringNamespace(components, key) {\n\tconst { descriptorKind, label } = descriptorKindByNamespace[key];\n\tconst merged = {};\n\tfor (const component of components) {\n\t\tconst namespace = component.authoring?.[key];\n\t\tif (isNonEmptyRecord(namespace)) mergeAuthoringNamespaces(merged, namespace, [], descriptorKind, label);\n\t}\n\treturn blindCast(merged);\n}\n//#endregion\n//#region src/relation-nullability.ts\n/**\n* The one rule for whether a to-one relation may be absent. The side that holds the reference\n* (in SQL, the foreign key) is nullable exactly when one of its local fields is; the other side\n* is always nullable, because nothing in storage guarantees the related record exists. A\n* declaration that disagrees is reported as a contradiction; `nullable` is always the derived\n* value.\n*/\nfunction resolveToOneRelationNullable(input) {\n\tconst nullable = input.ownsReference ? input.localFieldNullability.some(Boolean) : true;\n\tconst declared = input.declaredNullable;\n\tif (declared === void 0 || declared === nullable) return {\n\t\tnullable,\n\t\tcontradiction: void 0\n\t};\n\treturn {\n\t\tnullable,\n\t\tcontradiction: declared ? \"declared-optional\" : \"declared-required\"\n\t};\n}\nfunction isToOneReference(relation) {\n\treturn \"on\" in relation && (relation.cardinality === \"1:1\" || relation.cardinality === \"N:1\");\n}\n/**\n* Fills in `nullable` on every same-space to-one relation that lacks it from the ownership and\n* local-field nullability the lookup reports. A cross-space relation defaults to nullable.\n* Relations that already carry the flag are left as they are.\n*/\nfunction withDerivedToOneRelationNullability(domain, localFieldNullability) {\n\tconst namespaces = Object.fromEntries(Object.entries(domain.namespaces).map(([namespaceId, namespace]) => [namespaceId, withDerivedNamespace(namespaceId, namespace, localFieldNullability)]));\n\treturn {\n\t\t...domain,\n\t\tnamespaces\n\t};\n}\nfunction withDerivedNamespace(namespaceId, namespace, localFieldNullability) {\n\tconst models = Object.fromEntries(Object.entries(namespace.models).map(([modelName, model]) => [modelName, withDerivedModel(namespaceId, modelName, model, localFieldNullability)]));\n\treturn {\n\t\t...namespace,\n\t\tmodels\n\t};\n}\nfunction withDerivedModel(namespaceId, modelName, model, localFieldNullability) {\n\tconst relations = Object.fromEntries(Object.entries(model.relations ?? {}).map(([relationName, relation]) => {\n\t\tif (!isToOneReference(relation) || relation.nullable !== void 0) return [relationName, relation];\n\t\tconst nullable = relation.to.space !== void 0 ? true : resolveToOneRelationNullable({\n\t\t\tdeclaredNullable: void 0,\n\t\t\t...localFieldNullability({\n\t\t\t\tnamespaceId,\n\t\t\t\tmodelName,\n\t\t\t\tmodel,\n\t\t\t\trelation\n\t\t\t})\n\t\t}).nullable;\n\t\treturn [relationName, {\n\t\t\t...relation,\n\t\t\tnullable\n\t\t}];\n\t}));\n\treturn {\n\t\t...model,\n\t\trelations\n\t};\n}\n//#endregion\nexport { ENUM_TYPE_HANDLE_BRAND, assertSafeAuthoringHelperKey, bindEnumType, composePackAuthoringNamespace, createEntityHelpersFromNamespace, createFieldHelpersFromNamespace, enumType, isEnumTypeHandle, member, mergeCapabilityMatrices, resolveToOneRelationNullable, withDerivedToOneRelationNullability };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,WAAW,CAAC,WAAW,iBAAiB,aAAa,WAAW,OAAO,qBAAqB,CAAC,CAAC,CAAC;CACnL,OAAO;EACN,GAAG;EACH;CACD;AACD;AACA,SAAS,iBAAiB,aAAa,WAAW,OAAO,uBAAuB;CAC/E,MAAM,YAAY,OAAO,YAAY,OAAO,QAAQ,MAAM,aAAa,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,cAAc,cAAc;EAC5G,IAAI,CAAC,iBAAiB,QAAQ,KAAK,SAAS,aAAa,KAAK,GAAG,OAAO,CAAC,cAAc,QAAQ;EAC/F,MAAM,WAAW,SAAS,GAAG,UAAU,KAAK,IAAI,OAAO,6BAA6B;GACnF,kBAAkB,KAAK;GACvB,GAAG,sBAAsB;IACxB;IACA;IACA;IACA;GACD,CAAC;EACF,CAAC,CAAC,CAAC;EACH,OAAO,CAAC,cAAc;GACrB,GAAG;GACH;EACD,CAAC;CACF,CAAC,CAAC;CACF,OAAO;EACN,GAAG;EACH;CACD;AACD"}
|
|
1
|
+
{"version":3,"file":"contract-authoring.mjs","names":[],"sources":["../../../../1-framework/2-authoring/contract/dist/index.mjs"],"sourcesContent":["import { instantiateAuthoringEntityType, isAuthoringFieldPresetDescriptor, mergeAuthoringNamespaces } from \"@internal/framework-components/authoring\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { structuredError } from \"@internal/utils/structured-error\";\n//#region src/capability-registry.ts\n/**\n* Deep-merges any number of capability matrices into a single matrix.\n*\n* Merge is purely structural — namespaces and capability flags from later\n* sources overlay earlier ones. Undefined entries are skipped so callers\n* can pass optional sources without pre-filtering.\n*\n* The helper is target-agnostic: it contains no SQL or family-specific\n* knowledge. Higher layers contribute their own capability matrices (for\n* example, a target pack, an extension pack, or the contract author's\n* own `capabilities` block) and call this helper to fold them together.\n*/\nfunction mergeCapabilityMatrices(...sources) {\n\tconst result = {};\n\tfor (const source of sources) {\n\t\tif (source === void 0) continue;\n\t\tfor (const [namespace, capabilities] of Object.entries(source)) {\n\t\t\tconst existing = result[namespace];\n\t\t\tresult[namespace] = existing ? {\n\t\t\t\t...existing,\n\t\t\t\t...capabilities\n\t\t\t} : { ...capabilities };\n\t\t}\n\t}\n\treturn result;\n}\n//#endregion\n//#region src/composed-helpers-scaffolding.ts\n/**\n* Walks an entity-type namespace (after cross-pack merge) and produces the\n* runtime callable surface mirroring its tree shape. Each leaf\n* descriptor becomes a function `(input) => factory(input, ctx)`;\n* nested namespace objects recurse.\n*/\nfunction createEntityHelpersFromNamespace(namespace, options, path = []) {\n\tconst result = {};\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isLeafEntityDescriptor(value)) {\n\t\t\tresult[key] = createEntityHelper(currentPath.join(\".\"), value, options);\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null && !Array.isArray(value)) result[key] = createEntityHelpersFromNamespace(value, options, currentPath);\n\t}\n\treturn result;\n}\nfunction isLeafEntityDescriptor(value) {\n\tif (typeof value !== \"object\" || value === null || value.kind !== \"entity\") return false;\n\tconst discriminator = value.discriminator;\n\treturn typeof discriminator === \"string\" && discriminator.length > 0;\n}\nfunction createEntityHelper(helperPath, descriptor, options) {\n\treturn (...args) => instantiateAuthoringEntityType(helperPath, descriptor, args, options.ctx);\n}\n//#endregion\n//#region src/contract-errors.ts\nfunction contractError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n//#endregion\n//#region src/enum-type.ts\nfunction member(name, value) {\n\treturn {\n\t\tname,\n\t\tvalue: blindCast(value === void 0 ? name : value)\n\t};\n}\nconst ENUM_TYPE_HANDLE_BRAND = \"__prismaNextEnumTypeHandle__\";\nfunction enumType(name, codec, ...members) {\n\tif (members.length === 0) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): must have at least one member.`, { meta: {\n\t\tenumName: name,\n\t\treason: \"no-members\"\n\t} });\n\tconst seenNames = /* @__PURE__ */ new Set();\n\tconst seenValues = /* @__PURE__ */ new Set();\n\tfor (const m of members) {\n\t\tif (seenNames.has(m.name)) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): duplicate member name \"${m.name}\". Member names must be unique.`, { meta: {\n\t\t\tenumName: name,\n\t\t\tmember: m.name,\n\t\t\treason: \"duplicate-member-name\"\n\t\t} });\n\t\tseenNames.add(m.name);\n\t\tconst loweredValue = String(m.value);\n\t\tif (seenValues.has(loweredValue)) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): duplicate member value \"${loweredValue}\". Member values must be unique.`, { meta: {\n\t\t\tenumName: name,\n\t\t\tmember: loweredValue,\n\t\t\treason: \"duplicate-member-value\"\n\t\t} });\n\t\tseenValues.add(loweredValue);\n\t}\n\tconst values = Object.freeze(members.map((m) => m.value));\n\tconst names = Object.freeze(members.map((m) => m.name));\n\tconst enumMembers = Object.freeze(members.map((m) => ({\n\t\tname: m.name,\n\t\tvalue: m.value\n\t})));\n\tconst membersAccessor = Object.freeze(Object.fromEntries(members.map((m) => [m.name, m.value])));\n\tconst valueSet = new Set(values);\n\tconst valueToName = new Map(members.map((m) => [m.value, m.name]));\n\tconst valueToOrdinal = new Map(values.map((v, i) => [v, i]));\n\treturn {\n\t\t[ENUM_TYPE_HANDLE_BRAND]: true,\n\t\tenumName: name,\n\t\tcodecId: codec.codecId,\n\t\tenumMembers,\n\t\tvalues,\n\t\tnames,\n\t\tmembers: membersAccessor,\n\t\thas: (v) => valueSet.has(v),\n\t\tnameOf: (v) => valueToName.get(v),\n\t\tordinalOf: (v) => valueToOrdinal.get(v) ?? -1\n\t};\n}\n/**\n* Bind `enumType` to a target's codec typemap. The returned function is the\n* same runtime `enumType`, retyped so member values are constrained to the\n* codec's input type. Target packages call this with their pack's\n* `ExtractCodecTypesFromPack<Pack>` to expose a codec-aware `enumType`.\n*/\nfunction bindEnumType() {\n\treturn enumType;\n}\n/**\n* Returns true when the value is an `EnumTypeHandle` produced by\n* `enumType()`. Used in the lowering pipeline to detect enum handles\n* in field state without importing the brand key at every call site.\n*/\nfunction isEnumTypeHandle(value) {\n\treturn typeof value === \"object\" && value !== null && Reflect.get(value, \"__prismaNextEnumTypeHandle__\") === true;\n}\n//#endregion\n//#region src/field-preset-helpers.ts\nconst blockedSegments = /* @__PURE__ */ new Set([\n\t\"__proto__\",\n\t\"constructor\",\n\t\"prototype\"\n]);\nfunction assertSafeAuthoringHelperKey(key, path) {\n\tif (blockedSegments.has(key)) throw contractError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Invalid authoring helper \"${[...path, key].join(\".\")}\". Helper path segments must not use \"${key}\".`, { meta: {\n\t\thelperPath: [...path, key].join(\".\"),\n\t\tsegment: key\n\t} });\n}\n/**\n* Walks a field-preset namespace and produces the callable surface mirroring its tree shape. Each leaf descriptor becomes the helper `createLeafHelper` returns; nested namespaces recurse.\n*/\nfunction createFieldHelpersFromNamespace(namespace, createLeafHelper, path = []) {\n\tconst helpers = {};\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tassertSafeAuthoringHelperKey(key, path);\n\t\tconst currentPath = [...path, key];\n\t\tif (isAuthoringFieldPresetDescriptor(value)) {\n\t\t\thelpers[key] = createLeafHelper({\n\t\t\t\thelperPath: currentPath.join(\".\"),\n\t\t\t\tdescriptor: value\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\thelpers[key] = createFieldHelpersFromNamespace(value, createLeafHelper, currentPath);\n\t}\n\treturn helpers;\n}\nfunction isNonEmptyRecord(value) {\n\treturn typeof value === \"object\" && value !== null && Object.keys(value).length > 0;\n}\nconst descriptorKindByNamespace = {\n\ttype: {\n\t\tdescriptorKind: \"typeConstructor\",\n\t\tlabel: \"type\"\n\t},\n\tfield: {\n\t\tdescriptorKind: \"fieldPreset\",\n\t\tlabel: \"field\"\n\t},\n\tentityTypes: {\n\t\tdescriptorKind: \"entity\",\n\t\tlabel: \"entity\"\n\t}\n};\n/**\n* Merges one authoring namespace (`type`, `field` or `entityTypes`) across the family, target and extension packs, in order. A duplicate helper path across packs throws.\n*/\nfunction composePackAuthoringNamespace(components, key) {\n\tconst { descriptorKind, label } = descriptorKindByNamespace[key];\n\tconst merged = {};\n\tfor (const component of components) {\n\t\tconst namespace = component.authoring?.[key];\n\t\tif (isNonEmptyRecord(namespace)) mergeAuthoringNamespaces(merged, namespace, [], descriptorKind, label);\n\t}\n\treturn blindCast(merged);\n}\n//#endregion\n//#region src/relation-nullability.ts\n/**\n* The one rule for whether a to-one relation may be absent. The side that holds the reference\n* (in SQL, the foreign key) is nullable exactly when one of its local fields is; the other side\n* is always nullable, because nothing in storage guarantees the related record exists. A\n* declaration that disagrees is reported as a contradiction; `nullable` is always the derived\n* value.\n*/\nfunction resolveToOneRelationNullable(input) {\n\tconst nullable = input.ownsReference ? input.localFieldNullability.some(Boolean) : true;\n\tconst declared = input.declaredNullable;\n\tif (declared === void 0 || declared === nullable) return {\n\t\tnullable,\n\t\tcontradiction: void 0\n\t};\n\treturn {\n\t\tnullable,\n\t\tcontradiction: declared ? \"declared-optional\" : \"declared-required\"\n\t};\n}\nfunction isToOneReference(relation) {\n\treturn \"on\" in relation && (relation.cardinality === \"1:1\" || relation.cardinality === \"N:1\");\n}\n/**\n* Fills in `nullable` on every same-space to-one relation that lacks it from the ownership and\n* local-field nullability the lookup reports. A cross-space relation defaults to nullable.\n* Relations that already carry the flag are left as they are.\n*/\nfunction withDerivedToOneRelationNullability(domain, localFieldNullability) {\n\tconst namespaces = Object.fromEntries(Object.entries(domain.namespaces).map(([namespaceId, namespace]) => [namespaceId, withDerivedNamespace(namespaceId, namespace, localFieldNullability)]));\n\treturn {\n\t\t...domain,\n\t\tnamespaces\n\t};\n}\nfunction withDerivedNamespace(namespaceId, namespace, localFieldNullability) {\n\tconst models = Object.fromEntries(Object.entries(namespace.models).map(([modelName, model]) => [modelName, withDerivedModel(namespaceId, modelName, model, localFieldNullability)]));\n\treturn {\n\t\t...namespace,\n\t\tmodels\n\t};\n}\nfunction withDerivedModel(namespaceId, modelName, model, localFieldNullability) {\n\tconst relations = Object.fromEntries(Object.entries(model.relations ?? {}).map(([relationName, relation]) => {\n\t\tif (!isToOneReference(relation) || relation.nullable !== void 0) return [relationName, relation];\n\t\tconst nullable = relation.to.space !== void 0 ? true : resolveToOneRelationNullable({\n\t\t\tdeclaredNullable: void 0,\n\t\t\t...localFieldNullability({\n\t\t\t\tnamespaceId,\n\t\t\t\tmodelName,\n\t\t\t\tmodel,\n\t\t\t\trelation\n\t\t\t})\n\t\t}).nullable;\n\t\treturn [relationName, {\n\t\t\t...relation,\n\t\t\tnullable\n\t\t}];\n\t}));\n\treturn {\n\t\t...model,\n\t\trelations\n\t};\n}\n//#endregion\nexport { ENUM_TYPE_HANDLE_BRAND, assertSafeAuthoringHelperKey, bindEnumType, composePackAuthoringNamespace, createEntityHelpersFromNamespace, createFieldHelpersFromNamespace, enumType, isEnumTypeHandle, member, mergeCapabilityMatrices, resolveToOneRelationNullable, withDerivedToOneRelationNullability };\n\n//# sourceMappingURL=index.mjs.map"],"mappings":";;;;;;;;;;;;;;;;AAgBA,SAAS,wBAAwB,GAAG,SAAS;CAC5C,MAAM,SAAS,CAAC;CAChB,KAAK,MAAM,UAAU,SAAS;EAC7B,IAAI,WAAW,KAAK,GAAG;EACvB,KAAK,MAAM,CAAC,WAAW,iBAAiB,OAAO,QAAQ,MAAM,GAAG;GAC/D,MAAM,WAAW,OAAO;GACxB,OAAO,aAAa,WAAW;IAC9B,GAAG;IACH,GAAG;GACJ,IAAI,EAAE,GAAG,aAAa;EACvB;CACD;CACA,OAAO;AACR;;;;;;;AASA,SAAS,iCAAiC,WAAW,SAAS,OAAO,CAAC,GAAG;CACxE,MAAM,SAAS,CAAC;CAChB,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,SAAS,GAAG;EACrD,MAAM,cAAc,CAAC,GAAG,MAAM,GAAG;EACjC,IAAI,uBAAuB,KAAK,GAAG;GAClC,OAAO,OAAO,mBAAmB,YAAY,KAAK,GAAG,GAAG,OAAO,OA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