@prisma/orm-framework 8.0.0-rc.17-dev.36 → 8.0.0-rc.17-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-C0JXF22s.d.mts → authoring-D--mDfh-.d.mts} +77 -16
- package/dist/authoring-D--mDfh-.d.mts.map +1 -0
- package/dist/{authoring-Bv-ExMUC.mjs → authoring-axlemDvs.mjs} +138 -9
- package/dist/authoring-axlemDvs.mjs.map +1 -0
- package/dist/{binder-C54tCWu0-wFS-Dsru.d.mts → binder-C54tCWu0-VCDLfJaz.d.mts} +4 -4
- package/dist/{binder-C54tCWu0-wFS-Dsru.d.mts.map → binder-C54tCWu0-VCDLfJaz.d.mts.map} +1 -1
- package/dist/{codec-B-7ArtWI.mjs → codec-B6f31GrC.mjs} +2 -39
- package/dist/codec-B6f31GrC.mjs.map +1 -0
- package/dist/codec-descriptor-DUZmWwry-BVbguh8h.mjs +42 -0
- package/dist/codec-descriptor-DUZmWwry-BVbguh8h.mjs.map +1 -0
- package/dist/components.d.mts +2 -2
- package/dist/components.mjs +4 -3
- package/dist/components__authoring.d.mts +2 -2
- package/dist/components__authoring.mjs +2 -2
- package/dist/components__codec.mjs +2 -1
- package/dist/{config-types-BWNY2ea_.d.mts → config-types-z-EG3487.d.mts} +2 -2
- package/dist/{config-types-BWNY2ea_.d.mts.map → config-types-z-EG3487.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 +9 -6
- package/dist/contract-authoring.d.mts.map +1 -1
- package/dist/contract-authoring.mjs +47 -9
- package/dist/contract-authoring.mjs.map +1 -1
- package/dist/{parse-CJtBvEYy-BsdZXMKU.d.mts → parse-CJtBvEYy-CDKziSed.d.mts} +3 -3
- package/dist/{parse-CJtBvEYy-BsdZXMKU.d.mts.map → parse-CJtBvEYy-CDKziSed.d.mts.map} +1 -1
- package/dist/psl-parser.d.mts +3 -3
- package/dist/psl-parser.mjs +1 -1
- package/dist/psl-parser__format.d.mts +1 -1
- package/dist/psl-parser__interpret.d.mts +4 -4
- package/dist/psl-parser__syntax.d.mts +1 -1
- package/dist/psl-printer.d.mts +1 -1
- package/package.json +15 -15
- package/dist/authoring-Bv-ExMUC.mjs.map +0 -1
- package/dist/authoring-C0JXF22s.d.mts.map +0 -1
- package/dist/codec-B-7ArtWI.mjs.map +0 -1
package/dist/components.d.mts
CHANGED
|
@@ -2,7 +2,7 @@ import { A as enumRefusalOf, C as ToCanonicalForm, D as dataType, E as createDat
|
|
|
2
2
|
import { $ as instantiateAuthoringFieldPreset, A as AuthoringWarning, B as PslExtensionBlockParsedAttribute, C as AuthoringPslBlockDescriptorNamespace, D as AuthoringTypeConstructorDescriptor, E as AuthoringTemplateValue, F as ParsedPslExtensionBlock, G as assertNoCrossRegistryCollisions, H as PslPosition, I as PslDiagnosticCode, J as classifyEnumMemberType, K as assertResolvableTypeConstructorTemplates, L as PslExtensionBlock, M as ContributedPslDiagnosticCode, N as DataTypeAuthoringEntry, O as AuthoringTypeConstructorEntityRef, P as DataTypeWrittenForm, Q as instantiateAuthoringEntityType, R as PslExtensionBlockAttribute, S as AuthoringPslBlockDescriptor, T as AuthoringStorageTypeTemplate, U as PslSpan, 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, z as PslExtensionBlockAttributeArg } from "./framework-authoring-BaBmrcxi-DV-OErsx.mjs";
|
|
3
3
|
import { a as LoweredDefaultResult, c as SourceDiagnostic, i as DefaultFunctionLoweringContext, l as SourceSpan, n as ControlMutationDefaultRegistry, o as LoweredDefaultValue, r as ControlMutationDefaults, s as MutationDefaultGeneratorDescriptor, t as ControlMutationDefaultEntry, u as TypedDefaultFunctionCall } from "./mutation-default-types-DCgdIlXt-DSAdarYA.mjs";
|
|
4
4
|
import { A as printedTaggedLiteralReadsBack, C as describeRefusedValueType, D as exactRewrite, E as entryForTag, F as temporalAuthoringPresets, I as temporalCodecPreset, L as temporalPhaseTemplate, M as resolvePslBacktickEscapes, N as resolveTemplateTagEscapes, O as knownTags, P as tagForm, R as timestampNowControlDescriptor, S as describeRefusal, T as entryForPlain, _ as admittedTags, a as RefusalDescription, b as describeAdmittedForms, c as TEMPORAL_ON_CREATE_ARG, d as TaggedLiteralCanonicalization, f as TypedValue, g as admittedForms, h as WrittenValue, i as ReadRefusal, j as readWrittenValue, k as printTaggedLiteral, l as TEMPORAL_ON_UPDATE_ARG, m as WrittenScalar, n as DataTypeSupport, o as RefusalGuidance, p as WrittenForm, r as PresetStorageTemplate, s as TAGGED_LITERAL_MAX_BYTES, t as CastRefusal, u as TIMESTAMP_NOW_GENERATOR_ID, v as canonicalizeTaggedLiteralBody, w as describeTaggedLiteralFailure, x as describeExpected, y as castTypedValue, z as tsTaggedTemplateSource } from "./written-value--KnOpj99-BA9i2Wto.mjs";
|
|
5
|
-
import { a as
|
|
5
|
+
import { _ as readEnumBlockMembers, a as EncodedEnumMember, c as EnumBlockSite, d as duplicateStoredMembers, f as encodeEnumMembers, g as getAuthoringFieldPreset, h as findAuthoringTypeConstructorCall, i as DuplicateStoredValue, l as EnumMemberProblem, m as fieldPresetSpellings, n as AuthoringTypeConstructorOutput, o as EnumBlockDiagnostic, p as enumMemberProblemDiagnostic, r as DecodedEnum, s as EnumBlockMember, t as AuthoringTypeConstructorCall, u as StoredEnumMember } from "./authoring-D--mDfh-.mjs";
|
|
6
6
|
import { A as validateCodecTypeParams, C as encodeJsonFloat, D as refuseJsonValue, E as materializeCodec, O as renderTsLiteral, S as decodeJsonString, T as isNonFiniteText, _ as decodeJsonBoolean, a as ColumnHelperForStrict, b as decodeJsonIntegerText, c as INT32_RANGE, d as SAFE_INTEGER_BIGINT_RANGE, f as SAFE_INTEGER_RANGE, g as column, h as codecForRef, i as ColumnHelperFor, k as resolveCodecDescriptorOrThrow, l as INT64_RANGE, m as ScalarFieldDeclarationBuilder, n as CONTRACT_CODEC_DESCRIPTOR_MISSING, o as ColumnSpec, p as ScalarFieldDeclaration, r as CodecDescriptorRef, s as ColumnTypeDescriptor, t as BigIntRange, u as IntegerRange, v as decodeJsonFloat, w as isIntegerIn, x as decodeJsonMatching, y as decodeJsonInteger } from "./codec-DXDkDjYm.mjs";
|
|
7
7
|
import { a as AnyInputAggregateDescriptor, c as SelfAggregateOutput, d as aggregateDescriptorKey, f as isAggregateDescriptor, i as AggregateResultNullability, l as TypesImportSpec, 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-Dj96kZJO-DG90n0dU.mjs";
|
|
8
8
|
import { n as mergeCapabilityMatrices, t as CapabilityMatrix } from "./capabilities-Cupq4-1--C71ORI3N.mjs";
|
|
@@ -20,4 +20,4 @@ import { S as promoteBuiltinKinds, _ as domainElementCoordinates, a as IRNode, b
|
|
|
20
20
|
import "./psl-ast-Dho77tVl.mjs";
|
|
21
21
|
import { $ as TransactionActivityRun, A as RUNTIME_ABORTED, B as RuntimeLog, C as MutationDefaults, D as ParamRefMutator, E as OperationKind, F as RuntimeActivity, G as Shape, H as RuntimeMutationDefaultGenerator, I as RuntimeCore, J as StatementActivityRun, K as ShapeSpec, L as RuntimeCoreOptions, M as RelationNamesOf, N as ResultType, O as QueryInterceptResult, P as RuntimeAbortedPhase, Q as TransactionActivityOptions, R as RuntimeExecuteOptions, S as MutationDefaultGeneratorContributor, T as MutationDefaultsOptions, U as RuntimeStatementStats, V as RuntimeMiddleware, W as Scalars, X as StatementOptions, Y as StatementEnded, Z as TransactionActivity, _ as ExecuteInterceptResult, a as ActivityEndedResult, at as assertMutationDefaultGeneratorsAvailable, b as LaneMetaBuilder, c as ActivityParent, ct as collectMutationDefaultGenerators, d as AnnotationSource, dt as defineAnnotation, et as TransactionEnded, f as AnnotationValue, ft as executeStatement, g as DefineAnnotationOptions, gt as streamStatement, h as CrossFamilyMiddleware, ht as startTransactionActivity, i as ActivityContextFields, it as assertAnnotationsApplicable, j as RelationKeys, k as QueryPlan, l as ActivityStateStore, lt as createMetaBuilder, m as AsyncIterableResult, mt as runtimeAborted, n as ActivityChild, nt as ValidAnnotations, o as ActivityFinalizedResult, ot as checkAborted, p as AppliedMutationDefault, pt as raceAgainstAbort, q as StatementActivity, r as ActivityContext, rt as applyMutationDefaults, s as ActivityObserver, st as checkMiddlewareCompatibility, t as ActivityBase, tt as TransactionSettlement, u as AnnotationHandle, ut as createStateStore, v as ExecutionPlan, w as MutationDefaultsOp, x as MetaBuilder, y as GeneratorStability, z as RuntimeExecutor } from "./runtime-CdqTpkAC.mjs";
|
|
22
22
|
import { t as canonicalizeJson } from "./utils-DeWL_zD9.mjs";
|
|
23
|
-
export { APP_SPACE_ID, type ActivityBase, type ActivityChild, type ActivityContext, type ActivityContextFields, type ActivityEndedResult, type ActivityFinalizedResult, type ActivityObserver, type ActivityParent, type ActivityStateStore, type AdapterDescriptor, type AdapterInstance, type AdapterPackRef, type AggregateCodecTraits, type AggregateDescriptor, type AggregateInputMatch, type AggregateOutputCodec, type AggregateOverloadAmbiguity, type AggregateOverloadDuplicate, type AggregateResultNullability, type AnnotationHandle, type AnnotationSource, type AnnotationValue, type AnyCodecDescriptor, type AnyCodecDescriptorTemplate, type AnyEntityKindDescriptor, type AnyInputAggregateDescriptor, type AppliedMigrationStatement, type AppliedMutationDefault, type AssembledAuthoringContributions, AsyncIterableResult, 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, BUILTIN_PSL_KIND_KEYS, type BigIntRange, CONTRACT_CODEC_DESCRIPTOR_MISSING, CONTRACT_SNAPSHOTS_DIRNAME, type CapabilityMatrix, type Cast, type CastRefusal, type Codec, type CodecCallContext, type CodecDescriptor, CodecDescriptorImpl, type CodecDescriptorRef, 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 ComponentDescriptor, type ComponentMetadata, type ContractComponentRequirementsCheckInput, type ContractComponentRequirementsCheckResult, type ContractSerializer, type ContractSpace, type ContractSpaceHeadRef, type ContributedPslDiagnosticCode, type ControlAdapterDescriptor, type ControlAdapterInstance, 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 CrossFamilyMiddleware, DATA_TYPE_ID_PATTERN, type DataType, type DataTypeAuthoringEntry, type DataTypeId, type DataTypeInvariantInput, type DataTypeLookup, type DataTypeSpec, type DataTypeSupport, type DataTypeWrittenForm, type DefaultFunctionLoweringContext, type DefaultNamespaceEntries, type DefineAnnotationOptions, type DiffSubjectGranularity, type DiffableNode, type DriverDescriptor, type DriverInstance, type DriverPackRef, type DuplicateStoredValue, type EmissionSpi, type EmitContractResult, type EntityCoordinate, type EntityKindDescriptor, type EnumBlockMember, type ExecuteInterceptResult, type ExecutionPlan, type ExecutionStack, type ExecutionStackInstance, type ExpectationFailureReason, type ExtensionDescriptor, type ExtensionInstance, type ExtensionPackRef, type FamilyDescriptor, type FamilyInstance, type FamilyPackRef, type FieldCoordinate, type FieldCoordinateJson, type GenerateContractTypesOptions, type GeneratorStability, INT32_RANGE, INT64_RANGE, type IRNode, IRNodeBase, type ImportRequirement, type ImportSpecifierResolver, type IntegerRange, type IntrospectSchemaResult, type LaneMetaBuilder, type ListCast, type LoweredDefaultResult, type LoweredDefaultValue, type MarkerHashes, type MetaBuilder, type MigratableTargetDescriptor, type MigrationAccessChange, type MigrationDataLoss, type MigrationMetadata, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationOperationSubject, type MigrationPackage, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanSubjects, 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 MigrationStatementJson, type MigrationSubject, type MigrationSubjectJson, type ModelCoordinate, type ModelCoordinateJson, type MutationDefaultGeneratorContributor, type MutationDefaultGeneratorDescriptor, type MutationDefaults, type MutationDefaultsOp, type MutationDefaultsOptions, type NamedAggregateOutput, type Namespace, NamespaceBase, type NamespacedEntities, type NoInputAggregateDescriptor, type OpFactoryCall, type OperationContext, type OperationKind, type OperationPreview, type OperationPreviewCapable, type OperationPreviewStatement, type PackRefBase, type ParamRefMutator, type ParsedPslExtensionBlock, type PlanOrigin, type PresetStorageTemplate, PslAttribute, PslAttributeArgument, PslAttributeNamedArgument, PslAttributePositionalArgument, PslAttributeTarget, PslCompositeType, type PslContractBuildCapable, type PslContractDocument, type PslContractInferCapable, 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 PslSourceSettings, type PslSpan, PslTypeConstructorCall, PslTypesBlock, PslUniqueConstraint, type QueryInterceptResult, type QueryPlan, RUNTIME_ABORTED, type ReadRefusal, type RefusalDescription, type RefusalGuidance, RelationKeys, type RelationNamesOf, type ResolvedFieldRenameStatement, type ResolvedMigrationStatement, type ResolvedModelRenameStatement, type ResultType, type RuntimeAbortedPhase, type RuntimeActivity, type RuntimeAdapterDescriptor, type RuntimeAdapterInstance, RuntimeCore, type RuntimeCoreOptions, type RuntimeDriverDescriptor, type RuntimeDriverInstance, type RuntimeErrorEnvelope, type RuntimeExecuteOptions, type RuntimeExecutor, type RuntimeExtensionDescriptor, type RuntimeExtensionInstance, type RuntimeFamilyDescriptor, type RuntimeFamilyInstance, type RuntimeLog, type RuntimeMiddleware, type RuntimeMutationDefaultGenerator, type RuntimeStatementStats, type RuntimeTargetDescriptor, type RuntimeTargetInstance, SAFE_INTEGER_BIGINT_RANGE, SAFE_INTEGER_RANGE, type ScalarFieldDeclaration, type ScalarFieldDeclarationBuilder, type ScalarTypeConstructorOutput, type Scalars, 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 SelfAggregateOutput, type SettledAggregateOperation, type SettledAggregateOverloads, type Shape, type ShapeSpec, type SingleNamespaceView, type SourceDiagnostic, type SourceSpan, type SpaceMarkerConflict, type SpaceSignature, type SpaceSigned, type SpaceToSign, type StatementActivity, type StatementActivityRun, type StatementEnded, type StatementOptions, type Storage, type StorageType, type StoredEnumMember, TAGGED_LITERAL_MAX_BYTES, TEMPORAL_ON_CREATE_ARG, TEMPORAL_ON_UPDATE_ARG, TIMESTAMP_NOW_GENERATOR_ID, type TaggedLiteralCanonicalization, type TargetBoundComponentDescriptor, type TargetDescriptor, type TargetInstance, type TargetMigrationsCapability, type TargetPackRef, type ToCanonicalForm, type TransactionActivity, type TransactionActivityOptions, type TransactionActivityRun, type TransactionEnded, type TransactionSettlement, type TypedDefaultFunctionCall, type TypedValue, type TypesImportSpec, 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, type ValidAnnotations, type ValidationContext, type ValueInputAggregateDescriptor, type VerificationStatus, type VerifierIssueCategory, type VerifierOutcome, type VerifyDatabaseResult, type VerifyDatabaseSchemaResult, type WrittenForm, type WrittenScalar, type WrittenValue, admittedForms, admittedTags, aggregateDescriptorKey, applyMutationDefaults, assembleAuthoringContributions, assembleAuthoringDataTypes, assembleControlMutationDefaults, assembleDataTypes, assertAnnotationsApplicable, assertMutationDefaultGeneratorsAvailable, assertNoCrossRegistryCollisions, assertResolvableTypeConstructorTemplates, assertRuntimeContractRequirementsSatisfied, assertUniqueCodecOwner, authoringEntryType, buildExtensionLoadOrder, buildNamespacedEntities, buildSingleNamespaceView, canonicalFormOf, canonicalizeJson, canonicalizeTaggedLiteralBody, castTypedValue, checkAborted, checkContractComponentRequirements, checkMiddlewareCompatibility, classifyEnumMemberType, codecForRef, collectMutationDefaultGenerators, collectScalarTypeConstructors, column, contractSnapshotJsonSpecifier, contractSnapshotTypesSpecifier, coordinateKey, createControlStack, createDataTypeLookup, createExecutionStack, createMetaBuilder, createStateStore, dataType, dataTypeId, decodeJsonBoolean, decodeJsonFloat, decodeJsonInteger, decodeJsonIntegerText, decodeJsonMatching, decodeJsonString, defineAnnotation, describeAdmittedForms, describeExpected, describeMigrationStatement, describeRefusal, describeRefusedValueType, describeTaggedLiteralFailure, diffSchemas, dispositionForCategory, domainElementCoordinates, duplicateStoredMembers, elementCoordinates, emptyCodecLookup, encodeJsonFloat, enforceDataTypeInvariants, entityAt, entryForPlain, entryForTag, enumRefusalOf, exactRewrite, executeStatement, 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, isStorageHashHex, isTagEntryKey, issueOutcome, keepInternalSpecifiers, knownTags, makePslNamespace, makePslNamespaceEntries, materializeCodec, mergeAuthoringNamespaces, mergeCapabilityMatrices, migrationStatementJson, migrationSubjectJson, migrationSubjectKey, modelDisplayName, namespacePslExtensionBlocks, objectSchemaKeys, orderIssuesByDependencies, planOriginOf, printTaggedLiteral, printedTaggedLiteralReadsBack, promoteBuiltinKinds, raceAgainstAbort, readEnumBlockMembers, readWrittenValue, refuseJsonValue, renderTsLiteral, requiredParamKeys, requiredSchemaKeys, resolveAuthoringTemplateValue, resolveCodecDescriptorOrThrow, resolveEnumCodecId, resolvePslBacktickEscapes, resolveRequirementSpecifiers, resolveTemplateTagEscapes, runtimeAborted, runtimeError, sameMarkerHashes, settleAggregateOverloads, startTransactionActivity, storageHashHex, streamStatement, tagEntryKey, tagForm, temporalAuthoringPresets, temporalCodecPreset, temporalPhaseTemplate, timestampNowControlDescriptor, tsTaggedTemplateSource, validateAuthoringHelperArguments, validateAuthoringTypeParams, validateCodecTypeParams };
|
|
23
|
+
export { APP_SPACE_ID, type ActivityBase, type ActivityChild, type ActivityContext, type ActivityContextFields, type ActivityEndedResult, type ActivityFinalizedResult, type ActivityObserver, type ActivityParent, type ActivityStateStore, type AdapterDescriptor, type AdapterInstance, type AdapterPackRef, type AggregateCodecTraits, type AggregateDescriptor, type AggregateInputMatch, type AggregateOutputCodec, type AggregateOverloadAmbiguity, type AggregateOverloadDuplicate, type AggregateResultNullability, type AnnotationHandle, type AnnotationSource, type AnnotationValue, type AnyCodecDescriptor, type AnyCodecDescriptorTemplate, type AnyEntityKindDescriptor, type AnyInputAggregateDescriptor, type AppliedMigrationStatement, type AppliedMutationDefault, type AssembledAuthoringContributions, AsyncIterableResult, 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, BUILTIN_PSL_KIND_KEYS, type BigIntRange, CONTRACT_CODEC_DESCRIPTOR_MISSING, CONTRACT_SNAPSHOTS_DIRNAME, type CapabilityMatrix, type Cast, type CastRefusal, type Codec, type CodecCallContext, type CodecDescriptor, CodecDescriptorImpl, type CodecDescriptorRef, 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 ComponentDescriptor, type ComponentMetadata, type ContractComponentRequirementsCheckInput, type ContractComponentRequirementsCheckResult, type ContractSerializer, type ContractSpace, type ContractSpaceHeadRef, type ContributedPslDiagnosticCode, type ControlAdapterDescriptor, type ControlAdapterInstance, 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 CrossFamilyMiddleware, DATA_TYPE_ID_PATTERN, type DataType, type DataTypeAuthoringEntry, type DataTypeId, type DataTypeInvariantInput, type DataTypeLookup, type DataTypeSpec, type DataTypeSupport, type DataTypeWrittenForm, type DecodedEnum, type DefaultFunctionLoweringContext, type DefaultNamespaceEntries, type DefineAnnotationOptions, type DiffSubjectGranularity, type DiffableNode, type DriverDescriptor, type DriverInstance, type DriverPackRef, type DuplicateStoredValue, type EmissionSpi, type EmitContractResult, type EncodedEnumMember, type EntityCoordinate, type EntityKindDescriptor, type EnumBlockDiagnostic, type EnumBlockMember, type EnumBlockSite, type EnumMemberProblem, type ExecuteInterceptResult, type ExecutionPlan, type ExecutionStack, type ExecutionStackInstance, type ExpectationFailureReason, type ExtensionDescriptor, type ExtensionInstance, type ExtensionPackRef, type FamilyDescriptor, type FamilyInstance, type FamilyPackRef, type FieldCoordinate, type FieldCoordinateJson, type GenerateContractTypesOptions, type GeneratorStability, INT32_RANGE, INT64_RANGE, type IRNode, IRNodeBase, type ImportRequirement, type ImportSpecifierResolver, type IntegerRange, type IntrospectSchemaResult, type LaneMetaBuilder, type ListCast, type LoweredDefaultResult, type LoweredDefaultValue, type MarkerHashes, type MetaBuilder, type MigratableTargetDescriptor, type MigrationAccessChange, type MigrationDataLoss, type MigrationMetadata, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationOperationSubject, type MigrationPackage, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanSubjects, 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 MigrationStatementJson, type MigrationSubject, type MigrationSubjectJson, type ModelCoordinate, type ModelCoordinateJson, type MutationDefaultGeneratorContributor, type MutationDefaultGeneratorDescriptor, type MutationDefaults, type MutationDefaultsOp, type MutationDefaultsOptions, type NamedAggregateOutput, type Namespace, NamespaceBase, type NamespacedEntities, type NoInputAggregateDescriptor, type OpFactoryCall, type OperationContext, type OperationKind, type OperationPreview, type OperationPreviewCapable, type OperationPreviewStatement, type PackRefBase, type ParamRefMutator, type ParsedPslExtensionBlock, type PlanOrigin, type PresetStorageTemplate, PslAttribute, PslAttributeArgument, PslAttributeNamedArgument, PslAttributePositionalArgument, PslAttributeTarget, PslCompositeType, type PslContractBuildCapable, type PslContractDocument, type PslContractInferCapable, 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 PslSourceSettings, type PslSpan, PslTypeConstructorCall, PslTypesBlock, PslUniqueConstraint, type QueryInterceptResult, type QueryPlan, RUNTIME_ABORTED, type ReadRefusal, type RefusalDescription, type RefusalGuidance, RelationKeys, type RelationNamesOf, type ResolvedFieldRenameStatement, type ResolvedMigrationStatement, type ResolvedModelRenameStatement, type ResultType, type RuntimeAbortedPhase, type RuntimeActivity, type RuntimeAdapterDescriptor, type RuntimeAdapterInstance, RuntimeCore, type RuntimeCoreOptions, type RuntimeDriverDescriptor, type RuntimeDriverInstance, type RuntimeErrorEnvelope, type RuntimeExecuteOptions, type RuntimeExecutor, type RuntimeExtensionDescriptor, type RuntimeExtensionInstance, type RuntimeFamilyDescriptor, type RuntimeFamilyInstance, type RuntimeLog, type RuntimeMiddleware, type RuntimeMutationDefaultGenerator, type RuntimeStatementStats, type RuntimeTargetDescriptor, type RuntimeTargetInstance, SAFE_INTEGER_BIGINT_RANGE, SAFE_INTEGER_RANGE, type ScalarFieldDeclaration, type ScalarFieldDeclarationBuilder, type ScalarTypeConstructorOutput, type Scalars, 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 SelfAggregateOutput, type SettledAggregateOperation, type SettledAggregateOverloads, type Shape, type ShapeSpec, type SingleNamespaceView, type SourceDiagnostic, type SourceSpan, type SpaceMarkerConflict, type SpaceSignature, type SpaceSigned, type SpaceToSign, type StatementActivity, type StatementActivityRun, type StatementEnded, type StatementOptions, type Storage, type StorageType, type StoredEnumMember, TAGGED_LITERAL_MAX_BYTES, TEMPORAL_ON_CREATE_ARG, TEMPORAL_ON_UPDATE_ARG, TIMESTAMP_NOW_GENERATOR_ID, type TaggedLiteralCanonicalization, type TargetBoundComponentDescriptor, type TargetDescriptor, type TargetInstance, type TargetMigrationsCapability, type TargetPackRef, type ToCanonicalForm, type TransactionActivity, type TransactionActivityOptions, type TransactionActivityRun, type TransactionEnded, type TransactionSettlement, type TypedDefaultFunctionCall, type TypedValue, type TypesImportSpec, 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, type ValidAnnotations, type ValidationContext, type ValueInputAggregateDescriptor, type VerificationStatus, type VerifierIssueCategory, type VerifierOutcome, type VerifyDatabaseResult, type VerifyDatabaseSchemaResult, type WrittenForm, type WrittenScalar, type WrittenValue, admittedForms, admittedTags, aggregateDescriptorKey, applyMutationDefaults, assembleAuthoringContributions, assembleAuthoringDataTypes, assembleControlMutationDefaults, assembleDataTypes, assertAnnotationsApplicable, assertMutationDefaultGeneratorsAvailable, assertNoCrossRegistryCollisions, assertResolvableTypeConstructorTemplates, assertRuntimeContractRequirementsSatisfied, assertUniqueCodecOwner, authoringEntryType, buildExtensionLoadOrder, buildNamespacedEntities, buildSingleNamespaceView, canonicalFormOf, canonicalizeJson, canonicalizeTaggedLiteralBody, castTypedValue, checkAborted, checkContractComponentRequirements, checkMiddlewareCompatibility, classifyEnumMemberType, codecForRef, collectMutationDefaultGenerators, collectScalarTypeConstructors, column, contractSnapshotJsonSpecifier, contractSnapshotTypesSpecifier, coordinateKey, createControlStack, createDataTypeLookup, createExecutionStack, createMetaBuilder, createStateStore, dataType, dataTypeId, decodeJsonBoolean, decodeJsonFloat, decodeJsonInteger, decodeJsonIntegerText, decodeJsonMatching, decodeJsonString, defineAnnotation, describeAdmittedForms, describeExpected, describeMigrationStatement, describeRefusal, describeRefusedValueType, describeTaggedLiteralFailure, diffSchemas, dispositionForCategory, domainElementCoordinates, duplicateStoredMembers, elementCoordinates, emptyCodecLookup, encodeEnumMembers, encodeJsonFloat, enforceDataTypeInvariants, entityAt, entryForPlain, entryForTag, enumMemberProblemDiagnostic, enumRefusalOf, exactRewrite, executeStatement, 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, isStorageHashHex, isTagEntryKey, issueOutcome, keepInternalSpecifiers, knownTags, makePslNamespace, makePslNamespaceEntries, materializeCodec, mergeAuthoringNamespaces, mergeCapabilityMatrices, migrationStatementJson, migrationSubjectJson, migrationSubjectKey, modelDisplayName, namespacePslExtensionBlocks, objectSchemaKeys, orderIssuesByDependencies, planOriginOf, printTaggedLiteral, printedTaggedLiteralReadsBack, promoteBuiltinKinds, raceAgainstAbort, readEnumBlockMembers, readWrittenValue, refuseJsonValue, renderTsLiteral, requiredParamKeys, requiredSchemaKeys, resolveAuthoringTemplateValue, resolveCodecDescriptorOrThrow, resolveEnumCodecId, resolvePslBacktickEscapes, resolveRequirementSpecifiers, resolveTemplateTagEscapes, runtimeAborted, runtimeError, sameMarkerHashes, settleAggregateOverloads, startTransactionActivity, storageHashHex, streamStatement, tagEntryKey, tagForm, temporalAuthoringPresets, temporalCodecPreset, temporalPhaseTemplate, timestampNowControlDescriptor, tsTaggedTemplateSource, validateAuthoringHelperArguments, validateAuthoringTypeParams, validateCodecTypeParams };
|
package/dist/components.mjs
CHANGED
|
@@ -8,13 +8,14 @@ import { A as resolveEnumCodecId, B as validateAuthoringTypeParams, C as isAutho
|
|
|
8
8
|
import { i as freezeNode, n as NamespaceBase, r as UNBOUND_NAMESPACE_ID, t as IRNodeBase } from "./namespace-VUH2dgnS-By5y75h9.mjs";
|
|
9
9
|
import { A as hasSchemaView, B as storageHashHex, C as extractComponentIds, D as hasPslContractBuild, E as hasOperationPreview, F as migrationSubjectKey, I as modelDisplayName, L as orderIssuesByDependencies, M as issueOutcome, N as migrationStatementJson, O as hasPslContractInfer, P as migrationSubjectJson, R as planOriginOf, S as extractCodecTypeImports, T as hasMigrations, _ as describeMigrationStatement, a as VERIFY_CODE_HASH_MISMATCH, b as enforceDataTypeInvariants, c as VERIFY_CODE_TARGET_MISMATCH, d as assembleControlMutationDefaults, f as assertUniqueCodecOwner, g as createControlStack, h as contractSnapshotTypesSpecifier, i as SchemaTreeNode, j as isStorageHashHex, k as hasSchemaSubjectClassifier, 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 diffSchemas, w as extractQueryOperationTypeImports, x as extractCodecLookup, y as dispositionForCategory, z as sameMarkerHashes } from "./control-c9xjy4Jm.mjs";
|
|
10
10
|
import { a as elementCoordinates, c as promoteBuiltinKinds, i as domainElementCoordinates, n as buildSingleNamespaceView, o as entityAt, r as coordinateKey, s as hydrateNamespaceEntities, t as buildNamespacedEntities } from "./ir-uDGU9vaj.mjs";
|
|
11
|
+
import { i as enumRefusalOf, n as CodecDescriptorTemplateImpl, r as canonicalFormOf, t as CodecDescriptorImpl } from "./codec-descriptor-DUZmWwry-BVbguh8h.mjs";
|
|
11
12
|
import { t as canonicalizeJson } from "./canonicalize-json-ZPawceQR-Dua1VNEB.mjs";
|
|
12
|
-
import { _ as
|
|
13
|
-
import { _ as
|
|
13
|
+
import { _ as knownTags, a as describeExpected, b as tagForm, c as duplicateStoredMembers, d as entryForTag, f as enumMemberProblemDiagnostic, g as getAuthoringFieldPreset, h as findAuthoringTypeConstructorCall, i as describeAdmittedForms, l as encodeEnumMembers, m as fieldPresetSpellings, n as admittedTags, o as describeRefusal, p as exactRewrite, r as castTypedValue, s as describeRefusedValueType, t as admittedForms, u as entryForPlain, v as readEnumBlockMembers, y as readWrittenValue } from "./authoring-axlemDvs.mjs";
|
|
14
|
+
import { _ as renderTsLiteral, a as SAFE_INTEGER_RANGE, c as decodeJsonFloat, d as decodeJsonMatching, f as decodeJsonString, g as refuseJsonValue, h as isNonFiniteText, i as SAFE_INTEGER_BIGINT_RANGE, l as decodeJsonInteger, m as isIntegerIn, n as INT32_RANGE, o as column, p as encodeJsonFloat, r as INT64_RANGE, s as decodeJsonBoolean, t as CodecImpl, u as decodeJsonIntegerText } from "./codec-B6f31GrC.mjs";
|
|
14
15
|
import { t as checkContractComponentRequirements } from "./framework-components-D6j4Y5K7-RW9H184y.mjs";
|
|
15
16
|
import { t as settleAggregateOverloads } from "./components-VMbwq7D8.mjs";
|
|
16
17
|
import { n as resolveRequirementSpecifiers, t as keepInternalSpecifiers } from "./emission-CeoAV9mj.mjs";
|
|
17
18
|
import { n as createExecutionStack, r as instantiateExecutionStack, t as assertRuntimeContractRequirementsSatisfied } from "./execution-BNwBzmRd.mjs";
|
|
18
19
|
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";
|
|
19
20
|
import { _ as startTransactionActivity, a as applyMutationDefaults, c as checkAborted, d as createMetaBuilder, f as createStateStore, g as runtimeAborted, h as raceAgainstAbort, i as RuntimeCore, l as checkMiddlewareCompatibility, m as executeStatement, n as RUNTIME_ABORTED, o as assertAnnotationsApplicable, p as defineAnnotation, r as RelationKeys, s as assertMutationDefaultGeneratorsAvailable, t as AsyncIterableResult, u as collectMutationDefaultGenerators, v as streamStatement } from "./runtime-DoZkleC9.mjs";
|
|
20
|
-
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, admittedForms, admittedTags, aggregateDescriptorKey, applyMutationDefaults, assembleAuthoringContributions, assembleAuthoringDataTypes, assembleControlMutationDefaults, assembleDataTypes, assertAnnotationsApplicable, assertMutationDefaultGeneratorsAvailable, assertNoCrossRegistryCollisions, assertResolvableTypeConstructorTemplates, assertRuntimeContractRequirementsSatisfied, assertUniqueCodecOwner, authoringEntryType, buildExtensionLoadOrder, buildNamespacedEntities, buildSingleNamespaceView, canonicalFormOf, canonicalizeJson, canonicalizeTaggedLiteralBody, castTypedValue, checkAborted, checkContractComponentRequirements, checkMiddlewareCompatibility, classifyEnumMemberType, codecForRef, collectMutationDefaultGenerators, collectScalarTypeConstructors, column, contractSnapshotJsonSpecifier, contractSnapshotTypesSpecifier, coordinateKey, createControlStack, createDataTypeLookup, createExecutionStack, createMetaBuilder, createStateStore, dataType, dataTypeId, decodeJsonBoolean, decodeJsonFloat, decodeJsonInteger, decodeJsonIntegerText, decodeJsonMatching, decodeJsonString, defineAnnotation, describeAdmittedForms, describeExpected, describeMigrationStatement, describeRefusal, describeRefusedValueType, describeTaggedLiteralFailure, diffSchemas, dispositionForCategory, domainElementCoordinates, duplicateStoredMembers, elementCoordinates, emptyCodecLookup, encodeJsonFloat, enforceDataTypeInvariants, entityAt, entryForPlain, entryForTag, enumRefusalOf, exactRewrite, executeStatement, 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, isStorageHashHex, isTagEntryKey, issueOutcome, keepInternalSpecifiers, knownTags, makePslNamespace, makePslNamespaceEntries, materializeCodec, mergeAuthoringNamespaces, mergeCapabilityMatrices, migrationStatementJson, migrationSubjectJson, migrationSubjectKey, modelDisplayName, namespacePslExtensionBlocks, objectSchemaKeys, orderIssuesByDependencies, planOriginOf, printTaggedLiteral, printedTaggedLiteralReadsBack, promoteBuiltinKinds, raceAgainstAbort, readEnumBlockMembers, readWrittenValue, refuseJsonValue, renderTsLiteral, requiredParamKeys, requiredSchemaKeys, resolveAuthoringTemplateValue, resolveCodecDescriptorOrThrow, resolveEnumCodecId, resolvePslBacktickEscapes, resolveRequirementSpecifiers, resolveTemplateTagEscapes, runtimeAborted, runtimeError, sameMarkerHashes, settleAggregateOverloads, startTransactionActivity, storageHashHex, streamStatement, tagEntryKey, tagForm, temporalAuthoringPresets, temporalCodecPreset, temporalPhaseTemplate, timestampNowControlDescriptor, tsTaggedTemplateSource, validateAuthoringHelperArguments, validateAuthoringTypeParams, validateCodecTypeParams };
|
|
21
|
+
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, admittedForms, admittedTags, aggregateDescriptorKey, applyMutationDefaults, assembleAuthoringContributions, assembleAuthoringDataTypes, assembleControlMutationDefaults, assembleDataTypes, assertAnnotationsApplicable, assertMutationDefaultGeneratorsAvailable, assertNoCrossRegistryCollisions, assertResolvableTypeConstructorTemplates, assertRuntimeContractRequirementsSatisfied, assertUniqueCodecOwner, authoringEntryType, buildExtensionLoadOrder, buildNamespacedEntities, buildSingleNamespaceView, canonicalFormOf, canonicalizeJson, canonicalizeTaggedLiteralBody, castTypedValue, checkAborted, checkContractComponentRequirements, checkMiddlewareCompatibility, classifyEnumMemberType, codecForRef, collectMutationDefaultGenerators, collectScalarTypeConstructors, column, contractSnapshotJsonSpecifier, contractSnapshotTypesSpecifier, coordinateKey, createControlStack, createDataTypeLookup, createExecutionStack, createMetaBuilder, createStateStore, dataType, dataTypeId, decodeJsonBoolean, decodeJsonFloat, decodeJsonInteger, decodeJsonIntegerText, decodeJsonMatching, decodeJsonString, defineAnnotation, describeAdmittedForms, describeExpected, describeMigrationStatement, describeRefusal, describeRefusedValueType, describeTaggedLiteralFailure, diffSchemas, dispositionForCategory, domainElementCoordinates, duplicateStoredMembers, elementCoordinates, emptyCodecLookup, encodeEnumMembers, encodeJsonFloat, enforceDataTypeInvariants, entityAt, entryForPlain, entryForTag, enumMemberProblemDiagnostic, enumRefusalOf, exactRewrite, executeStatement, 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, isStorageHashHex, isTagEntryKey, issueOutcome, keepInternalSpecifiers, knownTags, makePslNamespace, makePslNamespaceEntries, materializeCodec, mergeAuthoringNamespaces, mergeCapabilityMatrices, migrationStatementJson, migrationSubjectJson, migrationSubjectKey, modelDisplayName, namespacePslExtensionBlocks, objectSchemaKeys, orderIssuesByDependencies, planOriginOf, printTaggedLiteral, printedTaggedLiteralReadsBack, promoteBuiltinKinds, raceAgainstAbort, readEnumBlockMembers, readWrittenValue, refuseJsonValue, renderTsLiteral, requiredParamKeys, requiredSchemaKeys, resolveAuthoringTemplateValue, resolveCodecDescriptorOrThrow, resolveEnumCodecId, resolvePslBacktickEscapes, resolveRequirementSpecifiers, resolveTemplateTagEscapes, runtimeAborted, runtimeError, sameMarkerHashes, settleAggregateOverloads, startTransactionActivity, storageHashHex, streamStatement, tagEntryKey, tagForm, temporalAuthoringPresets, temporalCodecPreset, temporalPhaseTemplate, timestampNowControlDescriptor, tsTaggedTemplateSource, validateAuthoringHelperArguments, validateAuthoringTypeParams, validateCodecTypeParams };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
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-BaBmrcxi-DV-OErsx.mjs";
|
|
2
2
|
import { A as printedTaggedLiteralReadsBack, C as describeRefusedValueType, D as exactRewrite, E as entryForTag, F as temporalAuthoringPresets, I as temporalCodecPreset, L as temporalPhaseTemplate, N as resolveTemplateTagEscapes, O as knownTags, P as tagForm, S as describeRefusal, T as entryForPlain, _ as admittedTags, a as RefusalDescription, b as describeAdmittedForms, c as TEMPORAL_ON_CREATE_ARG, d as TaggedLiteralCanonicalization, f as TypedValue, g as admittedForms, h as WrittenValue, i as ReadRefusal, j as readWrittenValue, k as printTaggedLiteral, l as TEMPORAL_ON_UPDATE_ARG, m as WrittenScalar, n as DataTypeSupport, o as RefusalGuidance, p as WrittenForm, r as PresetStorageTemplate, t as CastRefusal, u as TIMESTAMP_NOW_GENERATOR_ID, v as canonicalizeTaggedLiteralBody, w as describeTaggedLiteralFailure, x as describeExpected, y as castTypedValue, z as tsTaggedTemplateSource } from "./written-value--KnOpj99-BA9i2Wto.mjs";
|
|
3
|
-
import { a as
|
|
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 CastRefusal, type DataTypeAuthoringEntry, type DataTypeSupport, type DataTypeWrittenForm, type DuplicateStoredValue, type EnumBlockMember, type ParsedPslExtensionBlock, type PresetStorageTemplate, type PslExtensionBlock, type PslExtensionBlockParsedAttribute, type PslExtensionBlockPrintEntry, type ReadRefusal, type RefusalDescription, type RefusalGuidance, type ScalarTypeConstructorOutput, type StoredEnumMember, TEMPORAL_ON_CREATE_ARG, TEMPORAL_ON_UPDATE_ARG, TIMESTAMP_NOW_GENERATOR_ID, type TaggedLiteralCanonicalization, type TypedValue, type WrittenForm, type WrittenScalar, type WrittenValue, admittedForms, admittedTags, assertNoCrossRegistryCollisions, assertResolvableTypeConstructorTemplates, authoringEntryType, canonicalizeTaggedLiteralBody, castTypedValue, classifyEnumMemberType, collectScalarTypeConstructors, describeAdmittedForms, describeExpected, describeRefusal, describeRefusedValueType, describeTaggedLiteralFailure, duplicateStoredMembers, entryForPlain, entryForTag, exactRewrite, fieldPresetSpellings, findAuthoringTypeConstructorCall, flushAuthoringWarnings, getAuthoringFieldPreset, getAuthoringTypeConstructor, instantiateAuthoringEntityType, instantiateAuthoringFieldPreset, instantiateAuthoringTypeConstructor, isAuthoringArgRef, isAuthoringEntityTypeDescriptor, isAuthoringFieldPresetDescriptor, isAuthoringModelAttributeDescriptor, isAuthoringPslBlockDescriptor, isAuthoringTypeConstructorDescriptor, isTagEntryKey, knownTags, mergeAuthoringNamespaces, printTaggedLiteral, printedTaggedLiteralReadsBack, readEnumBlockMembers, readWrittenValue, resolveAuthoringTemplateValue, resolveEnumCodecId, resolveTemplateTagEscapes, tagEntryKey, tagForm, temporalAuthoringPresets, temporalCodecPreset, temporalPhaseTemplate, tsTaggedTemplateSource, validateAuthoringHelperArguments, validateAuthoringTypeParams };
|
|
3
|
+
import { _ as readEnumBlockMembers, a as EncodedEnumMember, c as EnumBlockSite, d as duplicateStoredMembers, f as encodeEnumMembers, g as getAuthoringFieldPreset, h as findAuthoringTypeConstructorCall, i as DuplicateStoredValue, l as EnumMemberProblem, m as fieldPresetSpellings, n as AuthoringTypeConstructorOutput, o as EnumBlockDiagnostic, p as enumMemberProblemDiagnostic, r as DecodedEnum, s as EnumBlockMember, t as AuthoringTypeConstructorCall, u as StoredEnumMember } from "./authoring-D--mDfh-.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 CastRefusal, type DataTypeAuthoringEntry, type DataTypeSupport, type DataTypeWrittenForm, type DecodedEnum, type DuplicateStoredValue, type EncodedEnumMember, type EnumBlockDiagnostic, type EnumBlockMember, type EnumBlockSite, type EnumMemberProblem, type ParsedPslExtensionBlock, type PresetStorageTemplate, type PslExtensionBlock, type PslExtensionBlockParsedAttribute, type PslExtensionBlockPrintEntry, type ReadRefusal, type RefusalDescription, type RefusalGuidance, type ScalarTypeConstructorOutput, type StoredEnumMember, TEMPORAL_ON_CREATE_ARG, TEMPORAL_ON_UPDATE_ARG, TIMESTAMP_NOW_GENERATOR_ID, type TaggedLiteralCanonicalization, type TypedValue, type WrittenForm, type WrittenScalar, type WrittenValue, admittedForms, admittedTags, assertNoCrossRegistryCollisions, assertResolvableTypeConstructorTemplates, authoringEntryType, canonicalizeTaggedLiteralBody, castTypedValue, classifyEnumMemberType, collectScalarTypeConstructors, describeAdmittedForms, describeExpected, describeRefusal, describeRefusedValueType, describeTaggedLiteralFailure, duplicateStoredMembers, encodeEnumMembers, entryForPlain, entryForTag, enumMemberProblemDiagnostic, exactRewrite, fieldPresetSpellings, findAuthoringTypeConstructorCall, flushAuthoringWarnings, getAuthoringFieldPreset, getAuthoringTypeConstructor, instantiateAuthoringEntityType, instantiateAuthoringFieldPreset, instantiateAuthoringTypeConstructor, isAuthoringArgRef, isAuthoringEntityTypeDescriptor, isAuthoringFieldPresetDescriptor, isAuthoringModelAttributeDescriptor, isAuthoringPslBlockDescriptor, isAuthoringTypeConstructorDescriptor, isTagEntryKey, knownTags, mergeAuthoringNamespaces, printTaggedLiteral, printedTaggedLiteralReadsBack, readEnumBlockMembers, readWrittenValue, resolveAuthoringTemplateValue, resolveEnumCodecId, resolveTemplateTagEscapes, tagEntryKey, tagForm, temporalAuthoringPresets, temporalCodecPreset, temporalPhaseTemplate, tsTaggedTemplateSource, validateAuthoringHelperArguments, validateAuthoringTypeParams };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { A as resolveEnumCodecId, B as validateAuthoringTypeParams, C as isAuthoringTypeConstructorDescriptor, D as printTaggedLiteral, E as mergeAuthoringNamespaces, F as temporalCodecPreset, I as temporalPhaseTemplate, M as resolveTemplateTagEscapes, N as tagEntryKey, O as printedTaggedLiteralReadsBack, P as temporalAuthoringPresets, R as tsTaggedTemplateSource, 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, k as resolveAuthoringTemplateValue, 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, z as validateAuthoringHelperArguments } from "./temporal-presets-DEyPX8qQ-Bz4DdZ8v.mjs";
|
|
2
|
-
import { _ as
|
|
3
|
-
export { TEMPORAL_ON_CREATE_ARG, TEMPORAL_ON_UPDATE_ARG, TIMESTAMP_NOW_GENERATOR_ID, admittedForms, admittedTags, assertNoCrossRegistryCollisions, assertResolvableTypeConstructorTemplates, authoringEntryType, canonicalizeTaggedLiteralBody, castTypedValue, classifyEnumMemberType, collectScalarTypeConstructors, describeAdmittedForms, describeExpected, describeRefusal, describeRefusedValueType, describeTaggedLiteralFailure, duplicateStoredMembers, entryForPlain, entryForTag, exactRewrite, fieldPresetSpellings, findAuthoringTypeConstructorCall, flushAuthoringWarnings, getAuthoringFieldPreset, getAuthoringTypeConstructor, instantiateAuthoringEntityType, instantiateAuthoringFieldPreset, instantiateAuthoringTypeConstructor, isAuthoringArgRef, isAuthoringEntityTypeDescriptor, isAuthoringFieldPresetDescriptor, isAuthoringModelAttributeDescriptor, isAuthoringPslBlockDescriptor, isAuthoringTypeConstructorDescriptor, isTagEntryKey, knownTags, mergeAuthoringNamespaces, printTaggedLiteral, printedTaggedLiteralReadsBack, readEnumBlockMembers, readWrittenValue, resolveAuthoringTemplateValue, resolveEnumCodecId, resolveTemplateTagEscapes, tagEntryKey, tagForm, temporalAuthoringPresets, temporalCodecPreset, temporalPhaseTemplate, tsTaggedTemplateSource, validateAuthoringHelperArguments, validateAuthoringTypeParams };
|
|
2
|
+
import { _ as knownTags, a as describeExpected, b as tagForm, c as duplicateStoredMembers, d as entryForTag, f as enumMemberProblemDiagnostic, g as getAuthoringFieldPreset, h as findAuthoringTypeConstructorCall, i as describeAdmittedForms, l as encodeEnumMembers, m as fieldPresetSpellings, n as admittedTags, o as describeRefusal, p as exactRewrite, r as castTypedValue, s as describeRefusedValueType, t as admittedForms, u as entryForPlain, v as readEnumBlockMembers, y as readWrittenValue } from "./authoring-axlemDvs.mjs";
|
|
3
|
+
export { TEMPORAL_ON_CREATE_ARG, TEMPORAL_ON_UPDATE_ARG, TIMESTAMP_NOW_GENERATOR_ID, admittedForms, admittedTags, assertNoCrossRegistryCollisions, assertResolvableTypeConstructorTemplates, authoringEntryType, canonicalizeTaggedLiteralBody, castTypedValue, classifyEnumMemberType, collectScalarTypeConstructors, describeAdmittedForms, describeExpected, describeRefusal, describeRefusedValueType, describeTaggedLiteralFailure, duplicateStoredMembers, encodeEnumMembers, entryForPlain, entryForTag, enumMemberProblemDiagnostic, exactRewrite, fieldPresetSpellings, findAuthoringTypeConstructorCall, flushAuthoringWarnings, getAuthoringFieldPreset, getAuthoringTypeConstructor, instantiateAuthoringEntityType, instantiateAuthoringFieldPreset, instantiateAuthoringTypeConstructor, isAuthoringArgRef, isAuthoringEntityTypeDescriptor, isAuthoringFieldPresetDescriptor, isAuthoringModelAttributeDescriptor, isAuthoringPslBlockDescriptor, isAuthoringTypeConstructorDescriptor, isTagEntryKey, knownTags, mergeAuthoringNamespaces, printTaggedLiteral, printedTaggedLiteralReadsBack, readEnumBlockMembers, readWrittenValue, resolveAuthoringTemplateValue, resolveEnumCodecId, resolveTemplateTagEscapes, tagEntryKey, tagForm, temporalAuthoringPresets, temporalCodecPreset, temporalPhaseTemplate, tsTaggedTemplateSource, validateAuthoringHelperArguments, validateAuthoringTypeParams };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { a as dataTypeId, c as requiredSchemaKeys, i as dataType, n as assembleDataTypes, o as objectSchemaKeys, r as createDataTypeLookup, s as requiredParamKeys, t as DATA_TYPE_ID_PATTERN } from "./data-type-4xQlxYB5-DD158cOq.mjs";
|
|
2
2
|
import { a as resolveCodecDescriptorOrThrow, i as materializeCodec, o as validateCodecTypeParams, r as codecForRef, t as CONTRACT_CODEC_DESCRIPTOR_MISSING } from "./resolve-codec-qqMjZrmn-Cok8elAo.mjs";
|
|
3
3
|
import { t as emptyCodecLookup } from "./codec-types-BXLUbk-Y-DpGfKGK0.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { i as enumRefusalOf, n as CodecDescriptorTemplateImpl, r as canonicalFormOf, t as CodecDescriptorImpl } from "./codec-descriptor-DUZmWwry-BVbguh8h.mjs";
|
|
5
|
+
import { _ as renderTsLiteral, a as SAFE_INTEGER_RANGE, c as decodeJsonFloat, d as decodeJsonMatching, f as decodeJsonString, g as refuseJsonValue, h as isNonFiniteText, i as SAFE_INTEGER_BIGINT_RANGE, l as decodeJsonInteger, m as isIntegerIn, n as INT32_RANGE, o as column, p as encodeJsonFloat, r as INT64_RANGE, s as decodeJsonBoolean, t as CodecImpl, u as decodeJsonIntegerText } from "./codec-B6f31GrC.mjs";
|
|
5
6
|
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, enumRefusalOf, isIntegerIn, isNonFiniteText, materializeCodec, objectSchemaKeys, refuseJsonValue, renderTsLiteral, requiredParamKeys, requiredSchemaKeys, resolveCodecDescriptorOrThrow, validateCodecTypeParams };
|
|
@@ -3,7 +3,7 @@ import { p as CodecLookupWithDescriptors } from "./codec-types-CQNZE70G-DrntJY0s
|
|
|
3
3
|
import { r as ControlMutationDefaults } from "./mutation-default-types-DCgdIlXt-DSAdarYA.mjs";
|
|
4
4
|
import { r as Result } from "./result-BYCOANWy.mjs";
|
|
5
5
|
import { n as DataTypeSupport } from "./written-value--KnOpj99-BA9i2Wto.mjs";
|
|
6
|
-
import "./authoring-
|
|
6
|
+
import "./authoring-D--mDfh-.mjs";
|
|
7
7
|
import "./codec-DXDkDjYm.mjs";
|
|
8
8
|
import { t as CapabilityMatrix } from "./capabilities-Cupq4-1--C71ORI3N.mjs";
|
|
9
9
|
import "./components-BMrl2FTt.mjs";
|
|
@@ -203,4 +203,4 @@ declare function defineConfig<TFamilyId extends string = string, TTargetId exten
|
|
|
203
203
|
declare function defaultContractOutputPath(contractPath: string): string;
|
|
204
204
|
//#endregion
|
|
205
205
|
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 };
|
|
206
|
-
//# sourceMappingURL=config-types-
|
|
206
|
+
//# sourceMappingURL=config-types-z-EG3487.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-types-
|
|
1
|
+
{"version":3,"file":"config-types-z-EG3487.d.mts","names":[],"sources":["../../../../1-framework/1-core/config/dist/config-types.d.mts"],"mappings":";;;;;;;;;;;;UAOU;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,WAAW;WACX,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-z-EG3487.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-z-EG3487.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,6 +1,7 @@
|
|
|
1
1
|
import { C as ContractToOneRelation, g as ContractModelBase, n as ApplicationDomain } from "./domain-envelope-CN721GnP-4huRt7Wc.mjs";
|
|
2
|
+
import { p as CodecLookupWithDescriptors } from "./codec-types-CQNZE70G-DrntJY0s.mjs";
|
|
2
3
|
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-BaBmrcxi-DV-OErsx.mjs";
|
|
3
|
-
import { a as
|
|
4
|
+
import { a as EncodedEnumMember } from "./authoring-D--mDfh-.mjs";
|
|
4
5
|
import { s as ColumnTypeDescriptor } from "./codec-DXDkDjYm.mjs";
|
|
5
6
|
//#region ../../../1-framework/2-authoring/contract/dist/index.d.mts
|
|
6
7
|
//#region src/authoring-argument-types.d.ts
|
|
@@ -239,10 +240,6 @@ type CodecInput<CodecTypes extends CodecTypeMap, Codec extends {
|
|
|
239
240
|
*/
|
|
240
241
|
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]>>;
|
|
241
242
|
declare function enumType(name: string, codec: Pick<ColumnTypeDescriptor, 'codecId'>, ...members: EnumMember<string, unknown>[]): EnumTypeHandle;
|
|
242
|
-
/**
|
|
243
|
-
* Refuses two members of an `enumType` that store the same value, as `CONTRACT.ENUM_INVALID` naming both members and the stored value. `enumType` has no codec, so the contract build calls this once it has each member's stored form.
|
|
244
|
-
*/
|
|
245
|
-
declare function assertEnumMembersStoredUniquely(enumName: string, members: readonly StoredEnumMember[]): void;
|
|
246
243
|
/**
|
|
247
244
|
* The signature of an `enumType` whose codec typemap is already bound — the
|
|
248
245
|
* shape a target-bound wrapper (e.g. `@internal/postgres/contract-builder`)
|
|
@@ -265,6 +262,12 @@ declare function bindEnumType<CodecTypes extends CodecTypeMap>(): BoundEnumType<
|
|
|
265
262
|
*/
|
|
266
263
|
declare function isEnumTypeHandle(value: unknown): value is EnumTypeHandle;
|
|
267
264
|
//#endregion
|
|
265
|
+
//#region src/enum-members.d.ts
|
|
266
|
+
/**
|
|
267
|
+
* Each member of an `enumType` in the form its codec stores it, which is how the contract holds it. Throws the first problem `encodeEnumMembers` finds: `CONTRACT.ENUM_CODEC_NOT_IN_PACK_STACK` for a codec no pack provides, and `CONTRACT.ENUM_INVALID` for the others. `storedBy` names what stores the value in the family's terms, such as `the column`.
|
|
268
|
+
*/
|
|
269
|
+
declare function encodeEnumTypeMembers(handle: EnumTypeHandle, codecLookup: CodecLookupWithDescriptors, storedBy: string): readonly EncodedEnumMember[];
|
|
270
|
+
//#endregion
|
|
268
271
|
//#region src/field-preset-helpers.d.ts
|
|
269
272
|
declare function assertSafeAuthoringHelperKey(key: string, path: readonly string[]): void;
|
|
270
273
|
/**
|
|
@@ -320,5 +323,5 @@ type LocalFieldNullabilityLookup = (input: {
|
|
|
320
323
|
*/
|
|
321
324
|
declare function withDerivedToOneRelationNullability<TDomain extends ApplicationDomain>(domain: TDomain, localFieldNullability: LocalFieldNullabilityLookup): TDomain;
|
|
322
325
|
//#endregion
|
|
323
|
-
export { type ArgTypeFromDescriptor, type AuthoringNamespaceKey, type BoundEnumType, type CapabilityMatrix, type CodecInput, type CodecTypeMap, ENUM_TYPE_HANDLE_BRAND, type EntityHelperFactoryOptions, type EntityHelperFunction, type EntityHelpersFromNamespace, type EnumMember, type EnumTypeHandle, type ExtractAuthoringNamespaceFromPack, type ForeignKeyDefaultsState, type IndexDef, type LocalFieldNullabilityLookup, type MergeExtensionAuthoringNamespaces, type ObjectArgumentType, type OptionalObjectArgumentKeys, type ResolveTemplateValue, type ToOneRelationNullability, type ToOneRelationNullabilityContradiction, type TupleFromArgumentDescriptors, type UnionToIntersection,
|
|
326
|
+
export { type ArgTypeFromDescriptor, type AuthoringNamespaceKey, type BoundEnumType, type CapabilityMatrix, type CodecInput, type CodecTypeMap, ENUM_TYPE_HANDLE_BRAND, type EntityHelperFactoryOptions, type EntityHelperFunction, type EntityHelpersFromNamespace, type EnumMember, type EnumTypeHandle, type ExtractAuthoringNamespaceFromPack, type ForeignKeyDefaultsState, type IndexDef, type LocalFieldNullabilityLookup, type MergeExtensionAuthoringNamespaces, type ObjectArgumentType, type OptionalObjectArgumentKeys, type ResolveTemplateValue, type ToOneRelationNullability, type ToOneRelationNullabilityContradiction, type TupleFromArgumentDescriptors, type UnionToIntersection, assertSafeAuthoringHelperKey, bindEnumType, composePackAuthoringNamespace, createEntityHelpersFromNamespace, createFieldHelpersFromNamespace, encodeEnumTypeMembers, enumType, isEnumTypeHandle, member, mergeCapabilityMatrices, resolveToOneRelationNullable, withDerivedToOneRelationNullability };
|
|
324
327
|
//# sourceMappingURL=contract-authoring.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract-authoring.d.mts","names":[],"sources":["../../../../1-framework/2-authoring/contract/dist/index.d.mts"],"mappings":"
|
|
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,i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B;iBAC7iB,SAAS,cAAc,OAAO,KAAK,qCAAqC,SAAS,gCAAgC;;;;;;;;KAQ7H,cAAc,mBAAmB,uBAAuB,2BAA2B,cAAc,KAAK,wCAAwC,0BAA0B,mBAAmB,WAAW,YAAY,YAAY,mBAAmB,WAAW,YAAY,YAAY,MAAM,MAAM,OAAO,UAAU,SAAS,YAAY,eAAe,MAAM,oBAAoB,WAAW,mBAAmB,WAAW,uBAAuB;;;;;;;iBAOna,aAAa,mBAAmB,iBAAiB,cAAc;;;;;;iBAM/D,iBAAiB,iBAAiB,SAAS;;;;;;iBAM3C,sBAAsB,QAAQ,gBAAgB,aAAa,4BAA4B,4BAA4B;;;iBAGnH,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,9 @@
|
|
|
1
1
|
import { t as blindCast } from "./casts-DpaahrlC-Bd5n2coI.mjs";
|
|
2
2
|
import { o as structuredError } from "./structured-error-BXbihKQ-.mjs";
|
|
3
|
+
import { t as assertDefined } from "./assertions-Dw1lZz_Q.mjs";
|
|
3
4
|
import { E as mergeAuthoringNamespaces, b as isAuthoringFieldPresetDescriptor, h as instantiateAuthoringEntityType } from "./temporal-presets-DEyPX8qQ-Bz4DdZ8v.mjs";
|
|
4
|
-
import {
|
|
5
|
+
import { d as errorEnumCodecNotInPackStack } from "./control-CVGlbj6c-Diz54IbU.mjs";
|
|
6
|
+
import { l as encodeEnumMembers } from "./authoring-axlemDvs.mjs";
|
|
5
7
|
//#region ../../../1-framework/2-authoring/contract/dist/index.mjs
|
|
6
8
|
/**
|
|
7
9
|
* Deep-merges any number of capability matrices into a single matrix.
|
|
@@ -119,13 +121,9 @@ function enumType(name, codec, ...members) {
|
|
|
119
121
|
ordinalOf: (v) => valueToOrdinal.get(v) ?? -1
|
|
120
122
|
};
|
|
121
123
|
}
|
|
122
|
-
/**
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
function assertEnumMembersStoredUniquely(enumName, members) {
|
|
126
|
-
const [duplicate] = duplicateStoredMembers(members);
|
|
127
|
-
if (duplicate === void 0) return;
|
|
128
|
-
throw contractError("CONTRACT.ENUM_INVALID", `enumType("${enumName}"): members "${duplicate.earlier}" and "${duplicate.later}" both store ${JSON.stringify(duplicate.stored)}. Member values must be unique as their codec stores them.`, { meta: {
|
|
124
|
+
/** Two members of an `enumType` that store the same value, as `CONTRACT.ENUM_INVALID` naming both members and the stored value. */
|
|
125
|
+
function duplicateMemberError(enumName, duplicate) {
|
|
126
|
+
return contractError("CONTRACT.ENUM_INVALID", `enumType("${enumName}"): members "${duplicate.earlier}" and "${duplicate.later}" both store ${JSON.stringify(duplicate.stored)}. Member values must be unique as their codec stores them.`, { meta: {
|
|
129
127
|
enumName,
|
|
130
128
|
members: [duplicate.earlier, duplicate.later],
|
|
131
129
|
reason: "duplicate-member-value"
|
|
@@ -148,6 +146,46 @@ function bindEnumType() {
|
|
|
148
146
|
function isEnumTypeHandle(value) {
|
|
149
147
|
return typeof value === "object" && value !== null && Reflect.get(value, "__prismaNextEnumTypeHandle__") === true;
|
|
150
148
|
}
|
|
149
|
+
function enumMemberError(handle, problem, storedBy) {
|
|
150
|
+
const { enumName, codecId } = handle;
|
|
151
|
+
switch (problem.kind) {
|
|
152
|
+
case "codec-not-for-enums": return contractError("CONTRACT.ENUM_INVALID", `enumType("${enumName}"): an enum cannot use the codec ${codecId}. ${problem.refusal}`, {
|
|
153
|
+
fix: "Type the enum with another codec.",
|
|
154
|
+
meta: {
|
|
155
|
+
enumName,
|
|
156
|
+
codecId,
|
|
157
|
+
reason: "codec-not-for-enums"
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
case "codec-missing": return errorEnumCodecNotInPackStack({ codecId });
|
|
161
|
+
case "codec-refused-member": return contractError("CONTRACT.ENUM_INVALID", `enumType("${enumName}") member "${problem.member}" has a value its codec ${codecId} refuses: ${problem.reason}`, {
|
|
162
|
+
fix: "Give the member a value the codec takes, or type the enum with a codec that takes it.",
|
|
163
|
+
cause: problem.cause,
|
|
164
|
+
meta: {
|
|
165
|
+
enumName,
|
|
166
|
+
member: problem.member,
|
|
167
|
+
codecId,
|
|
168
|
+
reason: "codec-refused-member"
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
case "member-not-stored-as-written": return contractError("CONTRACT.ENUM_INVALID", `enumType("${enumName}"): member "${problem.member}" is written ${problem.written}, but ${storedBy} stores ${JSON.stringify(problem.stored)}. Write the member as ${problem.writeAs}.`, { meta: {
|
|
172
|
+
enumName,
|
|
173
|
+
member: problem.member,
|
|
174
|
+
reason: "member-not-stored-as-written"
|
|
175
|
+
} });
|
|
176
|
+
case "duplicate-member-value": return duplicateMemberError(enumName, problem);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Each member of an `enumType` in the form its codec stores it, which is how the contract holds it. Throws the first problem `encodeEnumMembers` finds: `CONTRACT.ENUM_CODEC_NOT_IN_PACK_STACK` for a codec no pack provides, and `CONTRACT.ENUM_INVALID` for the others. `storedBy` names what stores the value in the family's terms, such as `the column`.
|
|
181
|
+
*/
|
|
182
|
+
function encodeEnumTypeMembers(handle, codecLookup, storedBy) {
|
|
183
|
+
const encoded = encodeEnumMembers(handle, codecLookup);
|
|
184
|
+
if (encoded.ok) return encoded.value;
|
|
185
|
+
const [problem] = encoded.failure;
|
|
186
|
+
assertDefined(problem, "encodeEnumMembers fails with at least one problem");
|
|
187
|
+
throw enumMemberError(handle, problem, storedBy);
|
|
188
|
+
}
|
|
151
189
|
const blockedSegments = /* @__PURE__ */ new Set([
|
|
152
190
|
"__proto__",
|
|
153
191
|
"constructor",
|
|
@@ -271,6 +309,6 @@ function withDerivedModel(namespaceId, modelName, model, localFieldNullability)
|
|
|
271
309
|
};
|
|
272
310
|
}
|
|
273
311
|
//#endregion
|
|
274
|
-
export { ENUM_TYPE_HANDLE_BRAND,
|
|
312
|
+
export { ENUM_TYPE_HANDLE_BRAND, assertSafeAuthoringHelperKey, bindEnumType, composePackAuthoringNamespace, createEntityHelpersFromNamespace, createFieldHelpersFromNamespace, encodeEnumTypeMembers, enumType, isEnumTypeHandle, member, mergeCapabilityMatrices, resolveToOneRelationNullable, withDerivedToOneRelationNullability };
|
|
275
313
|
|
|
276
314
|
//# sourceMappingURL=contract-authoring.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract-authoring.mjs","names":[],"sources":["../../../../1-framework/2-authoring/contract/dist/index.mjs"],"sourcesContent":["import { duplicateStoredMembers, 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 describeValue(value) {\n\tif (typeof value === \"bigint\") return `${value}n`;\n\tif (typeof value === \"number\" && !Number.isFinite(value)) return String(value);\n\ttry {\n\t\treturn JSON.stringify(value) ?? String(value);\n\t} catch {\n\t\treturn String(value);\n\t}\n}\nfunction enumType(name, codec, ...members) {\n\tif (members.length === 0) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): must have at least one member.`, { meta: {\n\t\tenumName: name,\n\t\treason: \"no-members\"\n\t} });\n\tconst seenNames = /* @__PURE__ */ new Set();\n\tconst nameByValue = /* @__PURE__ */ new Map();\n\tfor (const m of members) {\n\t\tif (seenNames.has(m.name)) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): duplicate member name \"${m.name}\". Member names must be unique.`, { meta: {\n\t\t\tenumName: name,\n\t\t\tmember: m.name,\n\t\t\treason: \"duplicate-member-name\"\n\t\t} });\n\t\tseenNames.add(m.name);\n\t\tconst earlier = nameByValue.get(m.value);\n\t\tif (earlier !== void 0) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): members \"${earlier}\" and \"${m.name}\" have the same value ${describeValue(m.value)}. Member values must be unique.`, { meta: {\n\t\t\tenumName: name,\n\t\t\tmembers: [earlier, m.name],\n\t\t\treason: \"duplicate-member-value\"\n\t\t} });\n\t\tnameByValue.set(m.value, m.name);\n\t}\n\tconst values = Object.freeze(members.map((m) => m.value));\n\tconst names = Object.freeze(members.map((m) => m.name));\n\tconst enumMembers = Object.freeze(members.map((m) => ({\n\t\tname: m.name,\n\t\tvalue: m.value\n\t})));\n\tconst membersAccessor = Object.freeze(Object.fromEntries(members.map((m) => [m.name, m.value])));\n\tconst valueSet = new Set(values);\n\tconst valueToName = new Map(members.map((m) => [m.value, m.name]));\n\tconst valueToOrdinal = new Map(values.map((v, i) => [v, i]));\n\treturn {\n\t\t[ENUM_TYPE_HANDLE_BRAND]: true,\n\t\tenumName: name,\n\t\tcodecId: codec.codecId,\n\t\tenumMembers,\n\t\tvalues,\n\t\tnames,\n\t\tmembers: membersAccessor,\n\t\thas: (v) => valueSet.has(v),\n\t\tnameOf: (v) => valueToName.get(v),\n\t\tordinalOf: (v) => valueToOrdinal.get(v) ?? -1\n\t};\n}\n/**\n* Refuses two members of an `enumType` that store the same value, as `CONTRACT.ENUM_INVALID` naming both members and the stored value. `enumType` has no codec, so the contract build calls this once it has each member's stored form.\n*/\nfunction assertEnumMembersStoredUniquely(enumName, members) {\n\tconst [duplicate] = duplicateStoredMembers(members);\n\tif (duplicate === void 0) return;\n\tthrow contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${enumName}\"): members \"${duplicate.earlier}\" and \"${duplicate.later}\" both store ${JSON.stringify(duplicate.stored)}. Member values must be unique as their codec stores them.`, { meta: {\n\t\tenumName,\n\t\tmembers: [duplicate.earlier, duplicate.later],\n\t\treason: \"duplicate-member-value\"\n\t} });\n}\n/**\n* Bind `enumType` to a target's codec typemap. The returned function is the\n* same runtime `enumType`, retyped so member values are constrained to the\n* codec's input type. Target packages call this with their pack's\n* `ExtractCodecTypesFromPack<Pack>` to expose a codec-aware `enumType`.\n*/\nfunction bindEnumType() {\n\treturn enumType;\n}\n/**\n* Returns true when the value is an `EnumTypeHandle` produced by\n* `enumType()`. Used in the lowering pipeline to detect enum handles\n* in field state without importing the brand key at every call site.\n*/\nfunction isEnumTypeHandle(value) {\n\treturn typeof value === \"object\" && value !== null && Reflect.get(value, \"__prismaNextEnumTypeHandle__\") === true;\n}\n//#endregion\n//#region src/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, assertEnumMembersStoredUniquely, assertSafeAuthoringHelperKey, bindEnumType, composePackAuthoringNamespace, createEntityHelpersFromNamespace, createFieldHelpersFromNamespace, enumType, isEnumTypeHandle, member, mergeCapabilityMatrices, resolveToOneRelationNullable, withDerivedToOneRelationNullability };\n\n//# sourceMappingURL=index.mjs.map"],"mappings":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":3,"file":"contract-authoring.mjs","names":[],"sources":["../../../../1-framework/2-authoring/contract/dist/index.mjs"],"sourcesContent":["import { encodeEnumMembers, instantiateAuthoringEntityType, isAuthoringFieldPresetDescriptor, mergeAuthoringNamespaces } from \"@internal/framework-components/authoring\";\nimport { errorEnumCodecNotInPackStack } from \"@internal/errors/control\";\nimport { assertDefined } from \"@internal/utils/assertions\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { blindCast } from \"@internal/utils/casts\";\n//#region src/capability-registry.ts\n/**\n* Deep-merges any number of capability matrices into a single matrix.\n*\n* Merge is purely structural — namespaces and capability flags from later\n* sources overlay earlier ones. Undefined entries are skipped so callers\n* can pass optional sources without pre-filtering.\n*\n* The helper is target-agnostic: it contains no SQL or family-specific\n* knowledge. Higher layers contribute their own capability matrices (for\n* example, a target pack, an extension pack, or the contract author's\n* own `capabilities` block) and call this helper to fold them together.\n*/\nfunction mergeCapabilityMatrices(...sources) {\n\tconst result = {};\n\tfor (const source of sources) {\n\t\tif (source === void 0) continue;\n\t\tfor (const [namespace, capabilities] of Object.entries(source)) {\n\t\t\tconst existing = result[namespace];\n\t\t\tresult[namespace] = existing ? {\n\t\t\t\t...existing,\n\t\t\t\t...capabilities\n\t\t\t} : { ...capabilities };\n\t\t}\n\t}\n\treturn result;\n}\n//#endregion\n//#region src/composed-helpers-scaffolding.ts\n/**\n* Walks an entity-type namespace (after cross-pack merge) and produces the\n* runtime callable surface mirroring its tree shape. Each leaf\n* descriptor becomes a function `(input) => factory(input, ctx)`;\n* nested namespace objects recurse.\n*/\nfunction createEntityHelpersFromNamespace(namespace, options, path = []) {\n\tconst result = {};\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tconst currentPath = [...path, key];\n\t\tif (isLeafEntityDescriptor(value)) {\n\t\t\tresult[key] = createEntityHelper(currentPath.join(\".\"), value, options);\n\t\t\tcontinue;\n\t\t}\n\t\tif (typeof value === \"object\" && value !== null && !Array.isArray(value)) result[key] = createEntityHelpersFromNamespace(value, options, currentPath);\n\t}\n\treturn result;\n}\nfunction isLeafEntityDescriptor(value) {\n\tif (typeof value !== \"object\" || value === null || value.kind !== \"entity\") return false;\n\tconst discriminator = value.discriminator;\n\treturn typeof discriminator === \"string\" && discriminator.length > 0;\n}\nfunction createEntityHelper(helperPath, descriptor, options) {\n\treturn (...args) => instantiateAuthoringEntityType(helperPath, descriptor, args, options.ctx);\n}\n//#endregion\n//#region src/contract-errors.ts\nfunction contractError(code, message, options) {\n\treturn structuredError(code, message, options);\n}\n//#endregion\n//#region src/enum-type.ts\nfunction member(name, value) {\n\treturn {\n\t\tname,\n\t\tvalue: blindCast(value === void 0 ? name : value)\n\t};\n}\nconst ENUM_TYPE_HANDLE_BRAND = \"__prismaNextEnumTypeHandle__\";\nfunction describeValue(value) {\n\tif (typeof value === \"bigint\") return `${value}n`;\n\tif (typeof value === \"number\" && !Number.isFinite(value)) return String(value);\n\ttry {\n\t\treturn JSON.stringify(value) ?? String(value);\n\t} catch {\n\t\treturn String(value);\n\t}\n}\nfunction enumType(name, codec, ...members) {\n\tif (members.length === 0) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): must have at least one member.`, { meta: {\n\t\tenumName: name,\n\t\treason: \"no-members\"\n\t} });\n\tconst seenNames = /* @__PURE__ */ new Set();\n\tconst nameByValue = /* @__PURE__ */ new Map();\n\tfor (const m of members) {\n\t\tif (seenNames.has(m.name)) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): duplicate member name \"${m.name}\". Member names must be unique.`, { meta: {\n\t\t\tenumName: name,\n\t\t\tmember: m.name,\n\t\t\treason: \"duplicate-member-name\"\n\t\t} });\n\t\tseenNames.add(m.name);\n\t\tconst earlier = nameByValue.get(m.value);\n\t\tif (earlier !== void 0) throw contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${name}\"): members \"${earlier}\" and \"${m.name}\" have the same value ${describeValue(m.value)}. Member values must be unique.`, { meta: {\n\t\t\tenumName: name,\n\t\t\tmembers: [earlier, m.name],\n\t\t\treason: \"duplicate-member-value\"\n\t\t} });\n\t\tnameByValue.set(m.value, m.name);\n\t}\n\tconst values = Object.freeze(members.map((m) => m.value));\n\tconst names = Object.freeze(members.map((m) => m.name));\n\tconst enumMembers = Object.freeze(members.map((m) => ({\n\t\tname: m.name,\n\t\tvalue: m.value\n\t})));\n\tconst membersAccessor = Object.freeze(Object.fromEntries(members.map((m) => [m.name, m.value])));\n\tconst valueSet = new Set(values);\n\tconst valueToName = new Map(members.map((m) => [m.value, m.name]));\n\tconst valueToOrdinal = new Map(values.map((v, i) => [v, i]));\n\treturn {\n\t\t[ENUM_TYPE_HANDLE_BRAND]: true,\n\t\tenumName: name,\n\t\tcodecId: codec.codecId,\n\t\tenumMembers,\n\t\tvalues,\n\t\tnames,\n\t\tmembers: membersAccessor,\n\t\thas: (v) => valueSet.has(v),\n\t\tnameOf: (v) => valueToName.get(v),\n\t\tordinalOf: (v) => valueToOrdinal.get(v) ?? -1\n\t};\n}\n/** Two members of an `enumType` that store the same value, as `CONTRACT.ENUM_INVALID` naming both members and the stored value. */\nfunction duplicateMemberError(enumName, duplicate) {\n\treturn contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${enumName}\"): members \"${duplicate.earlier}\" and \"${duplicate.later}\" both store ${JSON.stringify(duplicate.stored)}. Member values must be unique as their codec stores them.`, { meta: {\n\t\tenumName,\n\t\tmembers: [duplicate.earlier, duplicate.later],\n\t\treason: \"duplicate-member-value\"\n\t} });\n}\n/**\n* Bind `enumType` to a target's codec typemap. The returned function is the\n* same runtime `enumType`, retyped so member values are constrained to the\n* codec's input type. Target packages call this with their pack's\n* `ExtractCodecTypesFromPack<Pack>` to expose a codec-aware `enumType`.\n*/\nfunction bindEnumType() {\n\treturn enumType;\n}\n/**\n* Returns true when the value is an `EnumTypeHandle` produced by\n* `enumType()`. Used in the lowering pipeline to detect enum handles\n* in field state without importing the brand key at every call site.\n*/\nfunction isEnumTypeHandle(value) {\n\treturn typeof value === \"object\" && value !== null && Reflect.get(value, \"__prismaNextEnumTypeHandle__\") === true;\n}\n//#endregion\n//#region src/enum-members.ts\nfunction enumMemberError(handle, problem, storedBy) {\n\tconst { enumName, codecId } = handle;\n\tswitch (problem.kind) {\n\t\tcase \"codec-not-for-enums\": return contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${enumName}\"): an enum cannot use the codec ${codecId}. ${problem.refusal}`, {\n\t\t\tfix: \"Type the enum with another codec.\",\n\t\t\tmeta: {\n\t\t\t\tenumName,\n\t\t\t\tcodecId,\n\t\t\t\treason: \"codec-not-for-enums\"\n\t\t\t}\n\t\t});\n\t\tcase \"codec-missing\": return errorEnumCodecNotInPackStack({ codecId });\n\t\tcase \"codec-refused-member\": return contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${enumName}\") member \"${problem.member}\" has a value its codec ${codecId} refuses: ${problem.reason}`, {\n\t\t\tfix: \"Give the member a value the codec takes, or type the enum with a codec that takes it.\",\n\t\t\tcause: problem.cause,\n\t\t\tmeta: {\n\t\t\t\tenumName,\n\t\t\t\tmember: problem.member,\n\t\t\t\tcodecId,\n\t\t\t\treason: \"codec-refused-member\"\n\t\t\t}\n\t\t});\n\t\tcase \"member-not-stored-as-written\": return contractError(\"CONTRACT.ENUM_INVALID\", `enumType(\"${enumName}\"): member \"${problem.member}\" is written ${problem.written}, but ${storedBy} stores ${JSON.stringify(problem.stored)}. Write the member as ${problem.writeAs}.`, { meta: {\n\t\t\tenumName,\n\t\t\tmember: problem.member,\n\t\t\treason: \"member-not-stored-as-written\"\n\t\t} });\n\t\tcase \"duplicate-member-value\": return duplicateMemberError(enumName, problem);\n\t}\n}\n/**\n* Each member of an `enumType` in the form its codec stores it, which is how the contract holds it. Throws the first problem `encodeEnumMembers` finds: `CONTRACT.ENUM_CODEC_NOT_IN_PACK_STACK` for a codec no pack provides, and `CONTRACT.ENUM_INVALID` for the others. `storedBy` names what stores the value in the family's terms, such as `the column`.\n*/\nfunction encodeEnumTypeMembers(handle, codecLookup, storedBy) {\n\tconst encoded = encodeEnumMembers(handle, codecLookup);\n\tif (encoded.ok) return encoded.value;\n\tconst [problem] = encoded.failure;\n\tassertDefined(problem, \"encodeEnumMembers fails with at least one problem\");\n\tthrow enumMemberError(handle, problem, storedBy);\n}\n//#endregion\n//#region src/field-preset-helpers.ts\nconst blockedSegments = /* @__PURE__ */ new Set([\n\t\"__proto__\",\n\t\"constructor\",\n\t\"prototype\"\n]);\nfunction assertSafeAuthoringHelperKey(key, path) {\n\tif (blockedSegments.has(key)) throw contractError(\"CONTRACT.PACK_CONTRIBUTION_INVALID\", `Invalid authoring helper \"${[...path, key].join(\".\")}\". Helper path segments must not use \"${key}\".`, { meta: {\n\t\thelperPath: [...path, key].join(\".\"),\n\t\tsegment: key\n\t} });\n}\n/**\n* Walks a field-preset namespace and produces the callable surface mirroring its tree shape. Each leaf descriptor becomes the helper `createLeafHelper` returns; nested namespaces recurse.\n*/\nfunction createFieldHelpersFromNamespace(namespace, createLeafHelper, path = []) {\n\tconst helpers = {};\n\tfor (const [key, value] of Object.entries(namespace)) {\n\t\tassertSafeAuthoringHelperKey(key, path);\n\t\tconst currentPath = [...path, key];\n\t\tif (isAuthoringFieldPresetDescriptor(value)) {\n\t\t\thelpers[key] = createLeafHelper({\n\t\t\t\thelperPath: currentPath.join(\".\"),\n\t\t\t\tdescriptor: value\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\thelpers[key] = createFieldHelpersFromNamespace(value, createLeafHelper, currentPath);\n\t}\n\treturn helpers;\n}\nfunction isNonEmptyRecord(value) {\n\treturn typeof value === \"object\" && value !== null && Object.keys(value).length > 0;\n}\nconst descriptorKindByNamespace = {\n\ttype: {\n\t\tdescriptorKind: \"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, encodeEnumTypeMembers, enumType, isEnumTypeHandle, member, mergeCapabilityMatrices, resolveToOneRelationNullable, withDerivedToOneRelationNullability };\n\n//# sourceMappingURL=index.mjs.map"],"mappings":";;;;;;;;;;;;;;;;;;;AAkBA,SAAS,wBAAwB,GAAG,SAAS;CAC5C,MAAM,SAAS,CAAC;CAChB,KAAK,MAAM,UAAU,SAAS;EAC7B,IAAI,WAAW,KAAK,GAAG;EACvB,KAAK,MAAM,CAAC,WAAW,iBAAiB,OAAO,QAAQ,MAAM,GAAG;GAC/D,MAAM,WAAW,OAAO;GACxB,OAAO,aAAa,WAAW;IAC9B,GAAG;IACH,GAAG;GACJ,IAAI,EAAE,GAAG,aAAa;EACvB;CACD;CACA,OAAO;AACR;;;;;;;AASA,SAAS,iCAAiC,WAAW,SAAS,OAAO,CAAC,GAAG;CACxE,MAAM,SAAS,CAAC;CAChB,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,SAAS,GAAG;EACrD,MAAM,cAAc,CAAC,GAAG,MAAM,GA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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,8 +1,8 @@
|
|
|
1
1
|
import { U as PslSpan } from "./framework-authoring-BaBmrcxi-DV-OErsx.mjs";
|
|
2
2
|
import { d as TaggedLiteralCanonicalization } from "./written-value--KnOpj99-BA9i2Wto.mjs";
|
|
3
|
-
import "./authoring-
|
|
3
|
+
import "./authoring-D--mDfh-.mjs";
|
|
4
4
|
import "./psl-ast-Dho77tVl.mjs";
|
|
5
|
-
import { h as PslParserOptions, r as ContractSourceDiagnostic } from "./config-types-
|
|
5
|
+
import { h as PslParserOptions, r as ContractSourceDiagnostic } from "./config-types-z-EG3487.mjs";
|
|
6
6
|
import { n as TokenKind, t as Token } from "./tokenizer-i8RaVWVa-7fRwlCPP.mjs";
|
|
7
7
|
//#region ../../../1-framework/2-authoring/psl-parser/dist/parse-CJtBvEYy.d.mts
|
|
8
8
|
//#region src/syntax/syntax-kind.d.ts
|
|
@@ -553,4 +553,4 @@ interface ParseResult {
|
|
|
553
553
|
declare function parse(source: string, filename: string, options?: PslParserOptions): ParseResult;
|
|
554
554
|
//#endregion
|
|
555
555
|
export { TypeAnnotationAst as $, NamespaceDeclarationAst as A, PslDiagnosticCollector as B, IdentifierAst as C, ModelAttributeAst as D, MixinInclusionAst as E, ParseDiagnostic as F, StringLiteralExprAst as G, QualifiedNameAst as H, ParseResult as I, SyntaxKind as J, StringLiteralQuote as K, PathExprAst as L, NumberLiteralExprAst as M, ObjectFieldAst as N, ModelDeclarationAst as O, ObjectLiteralExprAst as P, TokenAtOffset as Q, Position as R, HasDocComment as S, MixinDeclarationAst as T, Range as U, PslSources as V, SourceFile as W, SyntaxToken as X, SyntaxNode as Y, TaggedLiteralExprAst as Z, GenericBlockDeclarationAst as _, AttributeAst as a, diagnosticFromSpan as at, GreenNode as b, BracedBlock as c, filterChildren as ct, DiagnosticSource as d, greenNode as dt, TypesBlockAst as et, DocumentAst as f, greenToken as ft, FunctionCallAst as g, FieldDeclarationAst as h, printSyntax as ht, AttributeArgListAst as i, createSyntaxTree as it, NamespaceMemberAst as j, NamedTypeDeclarationAst as k, CompositeTypeDeclarationAst as l, findChildToken as lt, FieldAttributeAst as m, parse as mt, AstNode as n, castExpression as nt, BlockMemberAst as o, diagnosticSource as ot, ExpressionAst as p, mapPslDiagnostics as pt, SyntaxElement as q, AttributeArgAst as r, createPslDiagnosticCollector as rt, BooleanLiteralExprAst as s, dottedPathsIn as st, ArrayLiteralAst as t, any as tt, DeclarationAst as u, findFirstChild as ut, GenericBlockMemberAst as v, KeyValuePairAst as w, GreenToken as x, GreenElement as y, PslDiagnostic as z };
|
|
556
|
-
//# sourceMappingURL=parse-CJtBvEYy-
|
|
556
|
+
//# sourceMappingURL=parse-CJtBvEYy-CDKziSed.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-CJtBvEYy-
|
|
1
|
+
{"version":3,"file":"parse-CJtBvEYy-CDKziSed.d.mts","names":[],"sources":["../../../../1-framework/2-authoring/psl-parser/dist/parse-CJtBvEYy.d.mts"],"mappings":";;;;;;;;KAKK;;;UAGK;WACC;WACA,MAAM;WACN;;UAED;WACC;WACA,MAAM;WACN,UAAU,cAAc;WACxB;;KAEN,eAAe,YAAY;iBACf,WAAW,MAAM,WAAW,eAAe;iBAC3C,UAAU,MAAM,YAAY,UAAU,cAAc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BAAgB,SAAS;SAClB,KAAK,MAAM,aAAa;;cAEnB,sCAAsC,aAAa;WACtD,QAAQ;EACjB,YAAY,QAAQ;EACpB,WAAW;EACX,QAAQ;EACR,UAAU;EACV,UAAU;EACV,WAAW,SAAS;;EAEpB,UAAU,SAAS;EACnB,cAAc,SAAS;EACvB,cAAc,SAAS;EACvB,WAAW,SAAS;EACpB;SACO,KAAK,MAAM,aAAa;;cAEnB,+BAA+B,aAAa;WAC/C,QAAQ;EACjB,YAAY,QAAQ;EACpB,WAAW;EACX,gBAAgB;EAChB,QAAQ;EACR,UAAU;EACV,UAAU;EACV,UAAU,SAAS;EACnB,WAAW,SAAS;EACpB,cAAc,SAAS;;EAEvB,cAAc,SAAS;EACvB,WAAW,SAAS,iBAAiB;EACrC;SACO,KAAK,MAAM,aAAa;;cAEnB,6BAA6B;WAChC,QAAQ;EACjB,YAAY,QAAQ;EACpB,QAAQ;EACR,QAAQ;SACD,KAAK,MAAM,aAAa;;cAEnB,2BAA2B;WAC9B,QAAQ;EACjB,YAAY,QAAQ;EACpB,OAAO;EACP,UAAU;EACV,SAAS;;EAET,cAAc,SAAS;SAChB,KAAK,MAAM,aAAa;;cAEnB,+BAA+B,SAAS;WAC3C,QAAQ;EACjB,YAAY,QAAQ;EACpB,QAAQ;EACR,kBAAkB;EAClB,cAAc,SAAS;EACvB;SACO,KAAK,MAAM,aAAa;;cAEnB,mCAAmC,SAAS;WAC/C,QAAQ;EACjB,YAAY,QAAQ;EACpB,QAAQ;EACR,UAAU;EACV,kBAAkB;EAClB,cAAc,SAAS;EACvB;SACO,KAAK,MAAM,aAAa;;;;KAI5B,kBAAkB;UACb;WACC,UAAU;WACV,sBAAsB;WACtB,SAAS;;;;;;iBAMH,MAAM,gBAAgB,kBAAkB,UAAU,mBAAmB"}
|
package/dist/psl-parser.d.mts
CHANGED
|
@@ -3,14 +3,14 @@ import { B as PslExtensionBlockParsedAttribute, C as AuthoringPslBlockDescriptor
|
|
|
3
3
|
import { n as ControlMutationDefaultRegistry } from "./mutation-default-types-DCgdIlXt-DSAdarYA.mjs";
|
|
4
4
|
import { r as Result } from "./result-BYCOANWy.mjs";
|
|
5
5
|
import { m as WrittenScalar, n as DataTypeSupport } from "./written-value--KnOpj99-BA9i2Wto.mjs";
|
|
6
|
-
import "./authoring-
|
|
6
|
+
import "./authoring-D--mDfh-.mjs";
|
|
7
7
|
import "./codec-DXDkDjYm.mjs";
|
|
8
8
|
import { C as PslTypesBlock, O as flatPslModels, S as PslTypeConstructorCall, _ as PslModelAttribute, a as PslAttributePositionalArgument, c as PslDefaultFunctionValue, f as PslDocumentAst, g as PslModel, i as PslAttributeNamedArgument, j as namespacePslExtensionBlocks, l as PslDefaultLiteralValue, m as PslFieldAttribute, n as PslAttribute, o as PslAttributeTarget, p as PslField, r as PslAttributeArgument, s as PslCompositeType, u as PslDefaultValue, v as PslNamedTypeDeclaration, y as PslNamespace } from "./psl-ast-BER6m646-c8XvWGXr.mjs";
|
|
9
9
|
import { r as AssembledAuthoringContributions } from "./control-DYUdUrD2.mjs";
|
|
10
10
|
import "./psl-ast-Dho77tVl.mjs";
|
|
11
11
|
import { i as isPslIdentifier } from "./tokenizer-i8RaVWVa-7fRwlCPP.mjs";
|
|
12
|
-
import { B as PslDiagnosticCollector, D as ModelAttributeAst, V as PslSources, Y as SyntaxNode, at as diagnosticFromSpan, d as DiagnosticSource, m as FieldAttributeAst, n as AstNode, ot as diagnosticSource, p as ExpressionAst, pt as mapPslDiagnostics, r as AttributeArgAst, rt as createPslDiagnosticCollector, z as PslDiagnostic } from "./parse-CJtBvEYy-
|
|
13
|
-
import { $ as ModelSymbol, A as DescribeUnresolvedType, At as SymbolTableResult, B as FixedStrArgType, Bt as contributedTypeOf, C as ContributedTypeNamespace, Ct as ResolvedAttributeArg, D as CtxOf, Dt as Scope, E as CreateBinderInput, Et as ResolvedTypeConstructorCall, F as FieldAttributeCtx, Ft as UnrestrictedIdentifierArgType, G as InferAttr, Gt as matchesSelector, H as FuncCallSig, Ht as entityReference, I as FieldRefArgType, It as UnrestrictedNumArgType, J as JsonArgType, Jt as readResolvedAttribute, K as InspectableArgType, Kt as memberEntries, L as FieldSymbol, Lt as UnrestrictedStrArgType, M as EntityDeclaration, Mt as TopLevelScope, N as EntityRefArgType, Nt as TypedFuncCall, O as DataTypeValueArgType, Ot as ScopeResolution, P as EntitySelector, Pt as UnresolvedTypeReference, Q as ModelAttributeCtx, R as FixedIdentifierArgType, Rt as UnsupportedAttribute, S as ContributedTypeDescriptor, St as ResolvedAttribute, T as ContributedTypeSymbol, Tt as ResolvedNamedTypeBinding, U as FunctionSymbol, Ut as isNamespaceLike, V as FuncCallArgType, Vt as createBinder, W as IdentifierArgType, Wt as keywordPslSpan, X as ListArgType, Xt as readResolvedConstructorCall, Y as JsonValueArgType, Yt as readResolvedAttributes, Z as MixinSymbol, Zt as typeReferenceNode, _ as CompositeTypeSymbol, _t as RecordArgType, a as AttributeLevel, at as NumLiteralArgType, b as ContributedMember, bt as RequiredContextFor, c as AttributeSymbol, ct as OutOf, d as BinderResult, dt as ParameterSymbol, et as NamedOut, f as BlockAttributeCtx, ft as ParsedTaggedLiteral, g as BuildSymbolTableOptions, gt as PslSymbol, h as BoundSpec, ht as PositionalParam, i as AttributeCtx, it as NumLiteral, j as DescribeUnsupportedAttribute, jt as TaggedLiteralArgType, k as DeclarationFor, kt as SymbolTable, l as Binder, lt as PSL_UNRESOLVED_REFERENCE, m as BoolArgType, mt as PosOut, n as ArgType, nt as NamespaceSymbol, o as AttributeOut, ot as OneOfArgType, p as BlockSymbol, pt as ParsedTypedValue, q as IntArgType, qt as nodePslSpan, r as ArgTypeKind, rt as NullArgType, s as AttributeSpec, st as OptionalArgType, t as AnyArgType, tt as NamedTypeSymbol, u as BinderContext, ut as Param, v as ConstantSymbol, vt as ReferencedFieldRefArgType, w as ContributedTypeScope, wt as ResolvedEntityReference, x as ContributedNamespaceSymbol, xt as Resolution, y as ContextForRequirement, yt as RejectingArgType, z as FixedNumArgType, zt as buildSymbolTable } from "./binder-C54tCWu0-
|
|
12
|
+
import { B as PslDiagnosticCollector, D as ModelAttributeAst, V as PslSources, Y as SyntaxNode, at as diagnosticFromSpan, d as DiagnosticSource, m as FieldAttributeAst, n as AstNode, ot as diagnosticSource, p as ExpressionAst, pt as mapPslDiagnostics, r as AttributeArgAst, rt as createPslDiagnosticCollector, z as PslDiagnostic } from "./parse-CJtBvEYy-CDKziSed.mjs";
|
|
13
|
+
import { $ as ModelSymbol, A as DescribeUnresolvedType, At as SymbolTableResult, B as FixedStrArgType, Bt as contributedTypeOf, C as ContributedTypeNamespace, Ct as ResolvedAttributeArg, D as CtxOf, Dt as Scope, E as CreateBinderInput, Et as ResolvedTypeConstructorCall, F as FieldAttributeCtx, Ft as UnrestrictedIdentifierArgType, G as InferAttr, Gt as matchesSelector, H as FuncCallSig, Ht as entityReference, I as FieldRefArgType, It as UnrestrictedNumArgType, J as JsonArgType, Jt as readResolvedAttribute, K as InspectableArgType, Kt as memberEntries, L as FieldSymbol, Lt as UnrestrictedStrArgType, M as EntityDeclaration, Mt as TopLevelScope, N as EntityRefArgType, Nt as TypedFuncCall, O as DataTypeValueArgType, Ot as ScopeResolution, P as EntitySelector, Pt as UnresolvedTypeReference, Q as ModelAttributeCtx, R as FixedIdentifierArgType, Rt as UnsupportedAttribute, S as ContributedTypeDescriptor, St as ResolvedAttribute, T as ContributedTypeSymbol, Tt as ResolvedNamedTypeBinding, U as FunctionSymbol, Ut as isNamespaceLike, V as FuncCallArgType, Vt as createBinder, W as IdentifierArgType, Wt as keywordPslSpan, X as ListArgType, Xt as readResolvedConstructorCall, Y as JsonValueArgType, Yt as readResolvedAttributes, Z as MixinSymbol, Zt as typeReferenceNode, _ as CompositeTypeSymbol, _t as RecordArgType, a as AttributeLevel, at as NumLiteralArgType, b as ContributedMember, bt as RequiredContextFor, c as AttributeSymbol, ct as OutOf, d as BinderResult, dt as ParameterSymbol, et as NamedOut, f as BlockAttributeCtx, ft as ParsedTaggedLiteral, g as BuildSymbolTableOptions, gt as PslSymbol, h as BoundSpec, ht as PositionalParam, i as AttributeCtx, it as NumLiteral, j as DescribeUnsupportedAttribute, jt as TaggedLiteralArgType, k as DeclarationFor, kt as SymbolTable, l as Binder, lt as PSL_UNRESOLVED_REFERENCE, m as BoolArgType, mt as PosOut, n as ArgType, nt as NamespaceSymbol, o as AttributeOut, ot as OneOfArgType, p as BlockSymbol, pt as ParsedTypedValue, q as IntArgType, qt as nodePslSpan, r as ArgTypeKind, rt as NullArgType, s as AttributeSpec, st as OptionalArgType, t as AnyArgType, tt as NamedTypeSymbol, u as BinderContext, ut as Param, v as ConstantSymbol, vt as ReferencedFieldRefArgType, w as ContributedTypeScope, wt as ResolvedEntityReference, x as ContributedNamespaceSymbol, xt as Resolution, y as ContextForRequirement, yt as RejectingArgType, z as FixedNumArgType, zt as buildSymbolTable } from "./binder-C54tCWu0-VCDLfJaz.mjs";
|
|
14
14
|
//#region ../../../1-framework/2-authoring/psl-parser/dist/index.d.mts
|
|
15
15
|
//#region src/attribute-helpers.d.ts
|
|
16
16
|
declare function getPositionalArgument(attribute: PslAttribute, index?: number): string | undefined;
|
package/dist/psl-parser.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { t as InternalError } from "./internal-error-ChGYPVpq-DhUD05u0.mjs";
|
|
|
3
3
|
import { a as or, i as okVoid, n as notOk, r as ok, t as and } from "./result-8OXF26MN.mjs";
|
|
4
4
|
import { r as createDataTypeLookup } from "./data-type-4xQlxYB5-DD158cOq.mjs";
|
|
5
5
|
import { S as isAuthoringPslBlockDescriptor, f as describeTaggedLiteralFailure, x as isAuthoringModelAttributeDescriptor } from "./temporal-presets-DEyPX8qQ-Bz4DdZ8v.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { a as describeExpected, b as tagForm, i as describeAdmittedForms, n as admittedTags, o as describeRefusal, p as exactRewrite, r as castTypedValue, t as admittedForms, y as readWrittenValue } from "./authoring-axlemDvs.mjs";
|
|
7
7
|
import { a as flatPslModels, c as namespacePslExtensionBlocks } from "./psl-ast-CyvE6CR-.mjs";
|
|
8
8
|
import { l as printSyntax } from "./ast-helpers-CzydMPdh-Mi0SrZRa.mjs";
|
|
9
9
|
import { n as isPslIdentifier } from "./tokenizer-C-GTKKjR-B1vOzJy0.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as PslParserOptions } from "./config-types-
|
|
1
|
+
import { h as PslParserOptions } from "./config-types-z-EG3487.mjs";
|
|
2
2
|
//#region ../../../1-framework/2-authoring/psl-parser/dist/format.d.mts
|
|
3
3
|
//#region src/format/options.d.ts
|
|
4
4
|
interface FormatOptions {
|