@prisma/orm-framework 8.0.0-rc.14-dev.42 → 8.0.0-rc.14-dev.44
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/{binder-Dz5zT7tr-UEfDpcxO.d.mts → binder-Dz5zT7tr-Dc_RkyB2.d.mts} +3 -3
- package/dist/{binder-Dz5zT7tr-UEfDpcxO.d.mts.map → binder-Dz5zT7tr-Dc_RkyB2.d.mts.map} +1 -1
- package/dist/{codec-BSm2qNVe.d.mts → codec-51beiCY-.d.mts} +19 -3
- package/dist/codec-51beiCY-.d.mts.map +1 -0
- package/dist/components.d.mts +2 -2
- package/dist/components__codec.d.mts +2 -2
- package/dist/{config-types-D7Gkm2iv.d.mts → config-types-D-P60plU.d.mts} +2 -2
- package/dist/{config-types-D7Gkm2iv.d.mts.map → config-types-D-P60plU.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 +1 -1
- package/dist/contract.d.mts +1 -1
- package/dist/contract.mjs +1 -1
- package/dist/contract__validate-domain.d.mts +1 -1
- package/dist/contract__validate-domain.mjs +1 -1
- package/dist/ids.d.mts +1 -1
- package/dist/{parse-eSQ_clQv-BQKtf4px.d.mts → parse-eSQ_clQv-YWR_NQoq.d.mts} +2 -2
- package/dist/{parse-eSQ_clQv-BQKtf4px.d.mts.map → parse-eSQ_clQv-YWR_NQoq.d.mts.map} +1 -1
- package/dist/psl-parser.d.mts +2 -2
- package/dist/psl-parser__format.d.mts +1 -1
- package/dist/psl-parser__interpret.d.mts +3 -3
- package/dist/psl-parser__syntax.d.mts +1 -1
- package/dist/{validate-domain-DgY72oWI.mjs → validate-domain-BWxgeXy0.mjs} +12 -1
- package/dist/validate-domain-BWxgeXy0.mjs.map +1 -0
- package/dist/{validate-domain-M93ZRMRA.d.mts → validate-domain-DaAswa8n.d.mts} +3 -3
- package/dist/validate-domain-DaAswa8n.d.mts.map +1 -0
- package/package.json +15 -15
- package/dist/codec-BSm2qNVe.d.mts.map +0 -1
- package/dist/validate-domain-DgY72oWI.mjs.map +0 -1
- package/dist/validate-domain-M93ZRMRA.d.mts.map +0 -1
|
@@ -6,8 +6,8 @@ import "./authoring-CcT010vl.mjs";
|
|
|
6
6
|
import { r as Result } from "./result-BYCOANWy.mjs";
|
|
7
7
|
import "./control-C1x8zzHb.mjs";
|
|
8
8
|
import "./psl-ast-a1L1ep0a.mjs";
|
|
9
|
-
import { n as ContractSourceContext } from "./config-types-
|
|
10
|
-
import { D as NamedTypeDeclarationAst, E as ModelDeclarationAst, L as PslDiagnostic, N as ParseDiagnostic, O as NamespaceDeclarationAst, T as ModelAttributeAst, Z as TypeAnnotationAst, _ as GenericBlockDeclarationAst, f as DocumentAst, h as FieldDeclarationAst, l as CompositeTypeDeclarationAst, m as FieldAttributeAst, n as AstNode, p as ExpressionAst, q as SyntaxNode, z as PslSources } from "./parse-eSQ_clQv-
|
|
9
|
+
import { n as ContractSourceContext } from "./config-types-D-P60plU.mjs";
|
|
10
|
+
import { D as NamedTypeDeclarationAst, E as ModelDeclarationAst, L as PslDiagnostic, N as ParseDiagnostic, O as NamespaceDeclarationAst, T as ModelAttributeAst, Z as TypeAnnotationAst, _ as GenericBlockDeclarationAst, f as DocumentAst, h as FieldDeclarationAst, l as CompositeTypeDeclarationAst, m as FieldAttributeAst, n as AstNode, p as ExpressionAst, q as SyntaxNode, z as PslSources } from "./parse-eSQ_clQv-YWR_NQoq.mjs";
|
|
11
11
|
import { n as UnionToIntersection, t as Simplify } from "./types-DGxlljKG.mjs";
|
|
12
12
|
//#region ../../../1-framework/2-authoring/psl-parser/dist/binder-Dz5zT7tr.d.mts
|
|
13
13
|
//#region src/resolve.d.ts
|
|
@@ -476,4 +476,4 @@ declare function contributedTypeOf(resolution: Resolution | undefined, binder: B
|
|
|
476
476
|
declare function createBinder(input: CreateBinderInput): BinderResult;
|
|
477
477
|
//#endregion
|
|
478
478
|
export { NamedTypeSymbol as $, DescribeUnsupportedAttribute as A, TypedFuncCall as At, FuncCallArgType as B, isNamespaceLike as Bt, ContributedTypeNamespace as C, ResolvedTypeConstructorCall as Ct, CtxOf as D, SymbolTableResult as Dt, CreateBinderInput as E, SymbolTable as Et, FieldRefArgType as F, UnsupportedAttribute as Ft, InspectableArgType as G, readResolvedAttribute as Gt, FunctionSymbol as H, matchesSelector as Ht, FieldSymbol as I, buildSymbolTable as It, JsonValueArgType as J, typeReferenceNode as Jt, IntArgType as K, readResolvedAttributes as Kt, FixedIdentifierArgType as L, contributedTypeOf as Lt, EntityRefArgType as M, UnrestrictedIdentifierArgType as Mt, EntitySelector as N, UnrestrictedNumArgType as Nt, DeclarationFor as O, TaggedLiteralArgType as Ot, FieldAttributeCtx as P, UnrestrictedStrArgType as Pt, NamedOut as Q, FixedNumArgType as R, createBinder as Rt, ContributedTypeDescriptor as S, ResolvedNamedTypeBinding as St, ContributedTypeSymbol as T, ScopeResolution as Tt, IdentifierArgType as U, memberEntries as Ut, FuncCallSig as V, keywordPslSpan as Vt, InferAttr as W, nodePslSpan as Wt, ModelAttributeCtx as X, ListArgType as Y, ModelSymbol as Z, CompositeTypeSymbol as _, RequiredContextFor as _t, AttributeLevel as a, OptionalArgType as at, ContributedMember as b, ResolvedAttributeArg as bt, AttributeSymbol as c, Param as ct, BinderResult as d, PosOut as dt, NamespaceSymbol as et, BlockAttributeCtx as f, PositionalParam as ft, BuildSymbolTableOptions as g, RejectingArgType as gt, BoundSpec as h, ReferencedFieldRefArgType as ht, AttributeCtx as i, OneOfArgType as it, EntityDeclaration as j, UnresolvedTypeReference as jt, DescribeUnresolvedType as k, TopLevelScope as kt, Binder as l, ParameterSymbol as lt, BoolArgType as m, RecordArgType as mt, ArgType as n, NumLiteral as nt, AttributeOut as o, OutOf as ot, BlockSymbol as p, PslSymbol as pt, JsonArgType as q, readResolvedConstructorCall as qt, ArgTypeKind as r, NumLiteralArgType as rt, AttributeSpec as s, PSL_UNRESOLVED_REFERENCE as st, AnyArgType as t, NullArgType as tt, BinderContext as u, ParsedTaggedLiteral as ut, ConstantSymbol as v, Resolution as vt, ContributedTypeScope as w, Scope as wt, ContributedNamespaceSymbol as x, ResolvedEntityReference as xt, ContextForRequirement as y, ResolvedAttribute as yt, FixedStrArgType as z, entityReference as zt };
|
|
479
|
-
//# sourceMappingURL=binder-Dz5zT7tr-
|
|
479
|
+
//# sourceMappingURL=binder-Dz5zT7tr-Dc_RkyB2.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binder-Dz5zT7tr-
|
|
1
|
+
{"version":3,"file":"binder-Dz5zT7tr-Dc_RkyB2.d.mts","names":[],"sources":["../../../../1-framework/2-authoring/psl-parser/dist/binder-Dz5zT7tr.d.mts"],"mappings":";;;;;;;;;;;;;UASU;WACC;WACA;WACA;WACA,aAAa;WACb,MAAM;;UAEP,kBAAkB,cAAc,oBAAoB,oBAAoB,oBAAoB;WAC3F;WACA,eAAe;WACf,MAAM;WACN,MAAM;;UAEP;WACC;WACA,eAAe;WACf,MAAM;;iBAEA,sBAAsB,cAAc,oBAAoB,mBAAmB,WAAW,OAAO,SAAS,aAAa,kBAAkB;iBACrI,uBAAuB,cAAc,oBAAoB,mBAAmB,YAAY,SAAS,QAAQ,SAAS,sBAAsB,kBAAkB;iBAC1J,4BAA4B,YAAY,+BAA+B,SAAS,aAAa;iBAC7F,YAAY,MAAM,YAAY,SAAS,aAAa;;iBAEpD,eAAe,MAAM,YAAY,iBAAiB,SAAS,aAAa;;;UAG/E;WACC,UAAU;;UAEX;WACC,YAAY,eAAe;WAC3B,YAAY,eAAe;WAC3B,QAAQ,eAAe;WACvB,QAAQ,eAAe;WACvB,gBAAgB,eAAe;;UAEhC;WACC,MAAM;WACN,MAAM;;UAEP;WACC;WACA;WACA,eAAe,yBAAyB;WACxC,QAAQ,eAAe;WACvB,gBAAgB,eAAe;WAC/B,QAAQ,eAAe;;UAExB;WACC;WACA;WACA,MAAM;WACN,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AAqB,qBAAqB,qBAAqB,qBAAqB,qBAAqB;UAChH;WACC;WACA;WACA;WACA,MAAM;;UAEP;WACC;WACA;WACA,OAAO;;UAER;WACC;WACA;WACA,WAAW;;UAEZ;WACC;WACA;WACA;;KAEN,YAAY,cAAc,sBAAsB,kBAAkB,cAAc,kBAAkB;KAClG,aAAa;WACP;WACA,QAAQ;;WAER;WACA,QAAQ;;WAER;WACA,QAAQ;;WAER;WACA,QAAQ;;WAER;WACA,QAAQ;;WAER;;WAEA;WACA;;UAED;EACR,eAAe,MAAM,aAAa;EAClC,cAAc,MAAM,aAAa;EACjC,QAAQ,MAAM,aAAa;;UAEnB;WACC,WAAW;WACX;WACA,OAAO,cAAc;WACrB,OAAO;;KAEb,gCAAgC,aAAa,yBAAyB;UACjE;WACC,OAAO;WACP,OAAO,cAAc;WACrB;;KAEN,0BAA0B,YAAY;UACjC,sBAAsB,KAAK;WAC1B,yBAAyB,KAAK;;UAE/B;WACC,SAAS;WACT,aAAa;WACb,SAAS;;UAEV;WACC,QAAQ;WACR,sBAAsB;;iBAEhB,kBAAkB,QAAQ,cAAc,kBAAkB;iBAC1D,kBAAkB,YAAY,wBAAwB,QAAQ,SAAS;iBACvE,aAAa,OAAO,oBAAoB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as JsonValue, nt as ValueSetRef } from "./domain-envelope-C2vVIWGK-C5x7cBpU.mjs";
|
|
1
|
+
import { V as JsonValue, d as ContractField, nt as ValueSetRef } from "./domain-envelope-C2vVIWGK-C5x7cBpU.mjs";
|
|
2
2
|
import { c as CodecDescriptorTemplate, d as CodecInstanceContext, i as Codec, m as CodecRef, p as CodecLookupWithDescriptors, t as AnyCodecDescriptor } from "./codec-types-8NKqm4AQ-DyNSay3e.mjs";
|
|
3
3
|
//#region ../../../1-framework/1-core/framework-components/dist/codec.d.mts
|
|
4
4
|
//#region src/shared/column-spec.d.ts
|
|
@@ -24,6 +24,22 @@ type ColumnTypeDescriptor<TCodecId extends string = string> = {
|
|
|
24
24
|
readonly valueSet?: ValueSetRef;
|
|
25
25
|
readonly entityRef?: EntityRef;
|
|
26
26
|
};
|
|
27
|
+
/** The codec part of a type descriptor, which is all a reader of a field declaration needs. */
|
|
28
|
+
interface CodecDescriptorRef<CodecId extends string = string> {
|
|
29
|
+
readonly codecId: CodecId;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* What a field builder declares about its field: the descriptor of the field's type, when the builder names one, whether the value may be null, and whether the field is a list, recorded as a contract field records it: `false` for one value, `{ elementNullable }` for a list. Readers that only need the codec, the nullability and the list kind read this instead of the builder's own type.
|
|
33
|
+
*/
|
|
34
|
+
interface ScalarFieldDeclaration<Descriptor extends CodecDescriptorRef = CodecDescriptorRef, Nullable extends boolean = boolean> {
|
|
35
|
+
readonly descriptor?: Descriptor | undefined;
|
|
36
|
+
readonly nullable: Nullable;
|
|
37
|
+
readonly many?: ContractField['many'];
|
|
38
|
+
}
|
|
39
|
+
/** A field builder, read through the declaration its `build()` returns. */
|
|
40
|
+
interface ScalarFieldDeclarationBuilder<Descriptor extends CodecDescriptorRef = CodecDescriptorRef, Nullable extends boolean = boolean> {
|
|
41
|
+
build(): ScalarFieldDeclaration<Descriptor, Nullable>;
|
|
42
|
+
}
|
|
27
43
|
/**
|
|
28
44
|
* Late-resolved pack-entity reference — a field on the type descriptor it is
|
|
29
45
|
* declared on: `entityKind`/`entityName` identify a pack entity whose final
|
|
@@ -144,5 +160,5 @@ declare function materializeCodec(descriptor: AnyCodecDescriptor, ref: CodecRef,
|
|
|
144
160
|
*/
|
|
145
161
|
declare function codecForRef(lookup: Pick<CodecLookupWithDescriptors, 'descriptorFor'>, ref: CodecRef): Codec | undefined;
|
|
146
162
|
//#endregion
|
|
147
|
-
export {
|
|
148
|
-
//# sourceMappingURL=codec-
|
|
163
|
+
export { validateCodecTypeParams as A, encodeJsonFloat as C, refuseJsonValue as D, materializeCodec as E, renderTsLiteral as O, decodeJsonString as S, isNonFiniteText as T, decodeJsonBoolean as _, ColumnHelperForStrict as a, decodeJsonIntegerText as b, INT32_RANGE as c, SAFE_INTEGER_BIGINT_RANGE as d, SAFE_INTEGER_RANGE as f, column as g, codecForRef as h, ColumnHelperFor as i, resolveCodecDescriptorOrThrow as k, INT64_RANGE as l, ScalarFieldDeclarationBuilder as m, CONTRACT_CODEC_DESCRIPTOR_MISSING as n, ColumnSpec as o, ScalarFieldDeclaration as p, CodecDescriptorRef as r, ColumnTypeDescriptor as s, BigIntRange as t, IntegerRange as u, decodeJsonFloat as v, isIntegerIn as w, decodeJsonMatching as x, decodeJsonInteger as y };
|
|
164
|
+
//# sourceMappingURL=codec-51beiCY-.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codec-51beiCY-.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/codec.d.mts"],"mappings":";;;;;;;;;;;KAUK,qBAAqB;WACf,SAAS;WACT,aAAa;WACb;;;;;;;;;WASA,WAAW;WACX,YAAY;;;UAGb,mBAAmB;WAClB,SAAS;;;;;UAKV,uBAAuB,mBAAmB,qBAAqB,oBAAoB;WAClF,aAAa;WACb,UAAU;WACV,OAAO;;;UAGR,8BAA8B,mBAAmB,qBAAqB,oBAAoB;EAClG,SAAS,uBAAuB,YAAY;;;;;;;;;KASzC;WACM;WACA;WACA;;;;;;;UAOD,WAAW,GAAG,UAAU,6CAA6C;WACpE,eAAe,KAAK,yBAAyB;WAC7C,YAAY;;;;;iBAKN,OAAO,GAAG,UAAU,qCAAqC,eAAe,KAAK,yBAAyB,GAAG,iBAAiB,YAAY,IAAI,WAAW,GAAG;;;;;;KAMpK,gBAAgB,UAAU,oCAAoC,gBAAgB,oBAAoB,mBAAmB;;;;KAIrH,sBAAsB,UAAU,oCAAoC,gBAAgB,WAAW,WAAW,WAAW,gBAAgB,mBAAmB;;;;KAIxJ,mBAAmB,UAAU,gCAAgC,WAAW,yBAAyB,0BAA0B,WAAW;;;;;;iBAM1H,gBAAgB,iBAAiB,kBAAkB,MAAM;iBACzD,iBAAiB,iBAAiB,MAAM;;iBAExC,mBAAmB,iBAAiB,MAAM,WAAW,SAAS,QAAQ;iBACtE,kBAAkB,iBAAiB,MAAM;UAChD;WACC;WACA;;;iBAGM,YAAY,gBAAgB,OAAO,eAAe;;cAErD,oBAAoB;;cAEpB,aAAa;iBACV,kBAAkB,iBAAiB,MAAM,WAAW,OAAO;UAClE;WACC;WACA;;;cAGG,aAAa;;cAEb,2BAA2B;;iBAExB,sBAAsB,iBAAiB,MAAM,WAAW,QAAQ;;iBAEhE,gBAAgB;;iBAEhB,gBAAgB,gBAAgB;iBAChC,gBAAgB,iBAAiB,MAAM;;;;;;;;;;;;iBAYvC,gBAAgB,OAAO;;;cAG1B;;;;;;;iBAOG,8BAA8B,gBAAgB,oBAAoB,gCAAgC,KAAK,UAAU,iFAAiF;;;;;;;;;;;iBAWlM,wBAAwB,YAAY,oBAAoB,KAAK;;;;;;;iBAO7D,iBAAiB,YAAY,oBAAoB,KAAK,UAAU,KAAK,uBAAuB;;;;iBAI5F,YAAY,QAAQ,KAAK,8CAA8C,KAAK,WAAW"}
|
package/dist/components.d.mts
CHANGED
|
@@ -3,7 +3,7 @@ import { $ as instantiateAuthoringFieldPreset, A as AuthoringWarning, B as PslEx
|
|
|
3
3
|
import { a as DefaultFunctionLoweringContext, c as MutationDefaultGeneratorDescriptor, d as TypedDefaultFunctionCall, i as ControlMutationDefaults, l as SourceDiagnostic, n as ControlMutationDefaultEntry, o as LoweredDefaultResult, r as ControlMutationDefaultRegistry, s as LoweredDefaultValue, t as ControlDefaultRegistries, u as SourceSpan } from "./mutation-default-types-D_M8NC3U-BQNexfRU.mjs";
|
|
4
4
|
import { a as TIMESTAMP_NOW_GENERATOR_ID, c as describeTaggedLiteralFailure, d as resolveTemplateTagEscapes, f as temporalAuthoringPresets, h as timestampNowControlDescriptor, i as TEMPORAL_ON_UPDATE_ARG, l as printTaggedLiteral, m as temporalPhaseTemplate, n as TAGGED_LITERAL_MAX_BYTES, o as TaggedLiteralCanonicalization, p as temporalCodecPreset, r as TEMPORAL_ON_CREATE_ARG, s as canonicalizeTaggedLiteralBody, t as PresetStorageTemplate, u as resolvePslBacktickEscapes } from "./temporal-presets-CLsu00ZK-CAx-cLAM.mjs";
|
|
5
5
|
import { a as findAuthoringTypeConstructorCall, i as fieldPresetSpellings, n as AuthoringTypeConstructorOutput, o as getAuthoringFieldPreset, r as EnumBlockMember, s as readEnumBlockMembers, t as AuthoringTypeConstructorCall } from "./authoring-CcT010vl.mjs";
|
|
6
|
-
import { C as
|
|
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-51beiCY-.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-U2GFdg-x-CRt_XdWj.mjs";
|
|
8
8
|
import { n as mergeCapabilityMatrices, t as CapabilityMatrix } from "./capabilities-Cupq4-1--C71ORI3N.mjs";
|
|
9
9
|
import { S as checkContractComponentRequirements, _ as PackRefBase, a as ComponentMetadata, b as TargetInstance, c as DriverDescriptor, d as ExtensionDescriptor, f as ExtensionInstance, g as FamilyPackRef, h as FamilyInstance, i as ComponentDescriptor, l as DriverInstance, m as FamilyDescriptor, n as AdapterInstance, o as ContractComponentRequirementsCheckInput, p as ExtensionPackRef, r as AdapterPackRef, s as ContractComponentRequirementsCheckResult, t as AdapterDescriptor, u as DriverPackRef, v as TargetBoundComponentDescriptor, x as TargetPackRef, y as TargetDescriptor } from "./framework-components-DDr6lZoZ-EpXYrZj7.mjs";
|
|
@@ -20,4 +20,4 @@ import { S as promoteBuiltinKinds, _ as domainElementCoordinates, a as IRNode, b
|
|
|
20
20
|
import "./psl-ast-a1L1ep0a.mjs";
|
|
21
21
|
import { $ as reportQueryEnding, A as RuntimeCoreOptions, B as ShapeSpec, C as QueryPlan, D as ResultType, E as RelationNamesOf, F as RuntimeMiddlewareContext, G as checkAborted, H as applyMutationDefaults, I as RuntimeMutationDefaultGenerator, J as createMetaBuilder, K as checkMiddlewareCompatibility, L as RuntimeStatementStats, M as RuntimeExecutor, N as RuntimeLog, O as RuntimeAbortedPhase, P as RuntimeMiddleware, Q as reportExecuteEnding, R as Scalars, S as QueryInterceptResult, T as RelationKeys, U as assertAnnotationsApplicable, V as ValidAnnotations, W as assertMutationDefaultGeneratorsAvailable, X as onQueryEndOutsideTransaction, Y as defineAnnotation, Z as raceAgainstAbort, _ as MutationDefaultsOp, a as AnnotationValue, at as runtimeAborted, b as ParamRefMutator, c as CrossFamilyMiddleware, d as ExecutionPlan, et as runAfterTransaction, f as GeneratorStability, g as MutationDefaults, h as MutationDefaultGeneratorContributor, i as AnnotationHandle, it as runQueryWithMiddleware, j as RuntimeExecuteOptions, k as RuntimeCore, l as DefineAnnotationOptions, m as MetaBuilder, n as AfterQueryResult, nt as runBeforeQueryChain, o as AppliedMutationDefault, p as LaneMetaBuilder, q as collectMutationDefaultGenerators, r as AfterTransactionResult, rt as runExecuteWithMiddleware, s as AsyncIterableResult, t as AfterExecuteResult, tt as runBeforeExecuteChain, u as ExecuteInterceptResult, v as MutationDefaultsOptions, w as RUNTIME_ABORTED, x as QueryEnding, y as OperationKind, z as Shape } from "./runtime-NuBiQEuH.mjs";
|
|
22
22
|
import { t as canonicalizeJson } from "./utils-DeWL_zD9.mjs";
|
|
23
|
-
export { APP_SPACE_ID, type AdapterDescriptor, type AdapterInstance, type AdapterPackRef, type AfterExecuteResult, type AfterQueryResult, type AfterTransactionResult, type AggregateCodecTraits, type AggregateDescriptor, type AggregateInputMatch, type AggregateOutputCodec, type AggregateOverloadAmbiguity, type AggregateOverloadDuplicate, type AggregateResultNullability, type AnnotationHandle, type AnnotationValue, type AnyCodecDescriptor, type AnyCodecDescriptorTemplate, type AnyEntityKindDescriptor, type AnyInputAggregateDescriptor, 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 Codec, type CodecCallContext, type CodecDescriptor, CodecDescriptorImpl, type CodecDescriptorTemplate, CodecDescriptorTemplateImpl, CodecImpl, type CodecInstanceContext, type CodecLookup, type CodecLookupWithDescriptors, type CodecRef, type CodecRegistry, type CodecTrait, type ColumnHelperFor, type ColumnHelperForStrict, type ColumnSpec, type ColumnTypeDescriptor, type ComponentDescriptor, type ComponentMetadata, type ContractComponentRequirementsCheckInput, type ContractComponentRequirementsCheckResult, type ContractSerializer, type ContractSpace, type ContractSpaceHeadRef, type ContributedPslDiagnosticCode, type ControlAdapterDescriptor, type ControlAdapterInstance, type ControlDefaultRegistries, type ControlDriverDescriptor, type ControlDriverInstance, type ControlExtensionDescriptor, type ControlExtensionInstance, type ControlFamilyDescriptor, type ControlFamilyInstance, type ControlMutationDefaultEntry, type ControlMutationDefaultRegistry, type ControlMutationDefaults, type ControlStack, type ControlTargetDescriptor, type ControlTargetInstance, type CoreSchemaView, type CreateControlStackInput, type CrossFamilyMiddleware, DATA_TYPE_ID_PATTERN, type DataType, type DataTypeAuthoringEntry, type DataTypeId, type DataTypeInvariantInput, type DataTypeLookup, type DataTypeSpec, type DataTypeWrittenForm, type DefaultFunctionLoweringContext, type DefaultNamespaceEntries, type DefineAnnotationOptions, type DiffSubjectGranularity, type DiffableNode, type DriverDescriptor, type DriverInstance, type DriverPackRef, 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 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 MigrationMetadata, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPackage, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanWithAuthoringSurface, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerFailureResult, type MigrationPlannerResult, type MigrationPlannerSuccessResult, type MigrationRunner, type MigrationRunnerExecutionChecks, type MigrationRunnerFailure, type MigrationRunnerPerSpaceOptions, type MigrationRunnerPerSpaceSuccessValue, type MigrationRunnerResult, type MigrationRunnerSuccessValue, type MigrationScaffoldContext, type 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 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 QueryEnding, type QueryInterceptResult, type QueryPlan, RUNTIME_ABORTED, RelationKeys, type RelationNamesOf, type ResultType, type RuntimeAbortedPhase, 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 RuntimeMiddlewareContext, type RuntimeMutationDefaultGenerator, type RuntimeStatementStats, type RuntimeTargetDescriptor, type RuntimeTargetInstance, SAFE_INTEGER_BIGINT_RANGE, SAFE_INTEGER_RANGE, 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 Storage, type StorageType, 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 TypedDefaultFunctionCall, 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, aggregateDescriptorKey, applyMutationDefaults, assembleAuthoringContributions, assembleAuthoringDataTypes, assembleControlMutationDefaults, assembleDataTypes, assertAnnotationsApplicable, assertMutationDefaultGeneratorsAvailable, assertNoCrossRegistryCollisions, assertResolvableTypeConstructorTemplates, assertRuntimeContractRequirementsSatisfied, assertUniqueCodecOwner, authoringEntryType, buildExtensionLoadOrder, buildNamespacedEntities, buildSingleNamespaceView, canonicalFormOf, canonicalizeJson, canonicalizeTaggedLiteralBody, checkAborted, checkContractComponentRequirements, checkMiddlewareCompatibility, classifyEnumMemberType, codecForRef, collectMutationDefaultGenerators, collectScalarTypeConstructors, column, contractSnapshotJsonSpecifier, contractSnapshotTypesSpecifier, coordinateKey, createControlStack, createDataTypeLookup, createExecutionStack, createMetaBuilder, dataType, dataTypeId, decodeJsonBoolean, decodeJsonFloat, decodeJsonInteger, decodeJsonIntegerText, decodeJsonMatching, decodeJsonString, defineAnnotation, describeTaggedLiteralFailure, diffSchemas, dispositionForCategory, domainElementCoordinates, elementCoordinates, emptyCodecLookup, encodeJsonFloat, enforceDataTypeInvariants, entityAt, extractCodecLookup, extractCodecTypeImports, extractComponentIds, extractQueryOperationTypeImports, fieldPresetSpellings, findAuthoringTypeConstructorCall, flatPslCompositeTypes, flatPslModels, flushAuthoringWarnings, freezeNode, getAuthoringFieldPreset, getAuthoringTypeConstructor, hasMigrations, hasOperationPreview, hasPslContractBuild, hasPslContractInfer, hasSchemaSubjectClassifier, hasSchemaView, hydrateNamespaceEntities, instantiateAuthoringEntityType, instantiateAuthoringFieldPreset, instantiateAuthoringTypeConstructor, instantiateExecutionStack, isAggregateDescriptor, isAnyInputAggregateDescriptor, isAuthoringArgRef, isAuthoringEntityTypeDescriptor, isAuthoringFieldPresetDescriptor, isAuthoringModelAttributeDescriptor, isAuthoringPslBlockDescriptor, isAuthoringTypeConstructorDescriptor, isIntegerIn, isNoInputAggregateDescriptor, isNonFiniteText, isPlainRecord, isRuntimeError, isTagEntryKey, issueOutcome, keepInternalSpecifiers, makePslNamespace, makePslNamespaceEntries, materializeCodec, mergeAuthoringNamespaces, mergeCapabilityMatrices, namespacePslExtensionBlocks, objectSchemaKeys, onQueryEndOutsideTransaction, orderIssuesByDependencies, printTaggedLiteral, promoteBuiltinKinds, raceAgainstAbort, readEnumBlockMembers, refuseJsonValue, renderTsLiteral, reportExecuteEnding, reportQueryEnding, requiredParamKeys, requiredSchemaKeys, resolveAuthoringTemplateValue, resolveCodecDescriptorOrThrow, resolveEnumCodecId, resolvePslBacktickEscapes, resolveRequirementSpecifiers, resolveTemplateTagEscapes, runAfterTransaction, runBeforeExecuteChain, runBeforeQueryChain, runExecuteWithMiddleware, runQueryWithMiddleware, runtimeAborted, runtimeError, sameMarkerHashes, settleAggregateOverloads, storageHashHex, tagEntryKey, temporalAuthoringPresets, temporalCodecPreset, temporalPhaseTemplate, timestampNowControlDescriptor, validateAuthoringHelperArguments, validateAuthoringTypeParams, validateCodecTypeParams };
|
|
23
|
+
export { APP_SPACE_ID, type AdapterDescriptor, type AdapterInstance, type AdapterPackRef, type AfterExecuteResult, type AfterQueryResult, type AfterTransactionResult, type AggregateCodecTraits, type AggregateDescriptor, type AggregateInputMatch, type AggregateOutputCodec, type AggregateOverloadAmbiguity, type AggregateOverloadDuplicate, type AggregateResultNullability, type AnnotationHandle, type AnnotationValue, type AnyCodecDescriptor, type AnyCodecDescriptorTemplate, type AnyEntityKindDescriptor, type AnyInputAggregateDescriptor, 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 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 ControlDefaultRegistries, type ControlDriverDescriptor, type ControlDriverInstance, type ControlExtensionDescriptor, type ControlExtensionInstance, type ControlFamilyDescriptor, type ControlFamilyInstance, type ControlMutationDefaultEntry, type ControlMutationDefaultRegistry, type ControlMutationDefaults, type ControlStack, type ControlTargetDescriptor, type ControlTargetInstance, type CoreSchemaView, type CreateControlStackInput, type CrossFamilyMiddleware, DATA_TYPE_ID_PATTERN, type DataType, type DataTypeAuthoringEntry, type DataTypeId, type DataTypeInvariantInput, type DataTypeLookup, type DataTypeSpec, type DataTypeWrittenForm, type DefaultFunctionLoweringContext, type DefaultNamespaceEntries, type DefineAnnotationOptions, type DiffSubjectGranularity, type DiffableNode, type DriverDescriptor, type DriverInstance, type DriverPackRef, 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 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 MigrationMetadata, type MigrationOperationClass, type MigrationOperationPolicy, type MigrationPackage, type MigrationPlan, type MigrationPlanOperation, type MigrationPlanWithAuthoringSurface, type MigrationPlanner, type MigrationPlannerConflict, type MigrationPlannerFailureResult, type MigrationPlannerResult, type MigrationPlannerSuccessResult, type MigrationRunner, type MigrationRunnerExecutionChecks, type MigrationRunnerFailure, type MigrationRunnerPerSpaceOptions, type MigrationRunnerPerSpaceSuccessValue, type MigrationRunnerResult, type MigrationRunnerSuccessValue, type MigrationScaffoldContext, type 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 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 QueryEnding, type QueryInterceptResult, type QueryPlan, RUNTIME_ABORTED, RelationKeys, type RelationNamesOf, type ResultType, type RuntimeAbortedPhase, 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 RuntimeMiddlewareContext, 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 Storage, type StorageType, 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 TypedDefaultFunctionCall, 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, aggregateDescriptorKey, applyMutationDefaults, assembleAuthoringContributions, assembleAuthoringDataTypes, assembleControlMutationDefaults, assembleDataTypes, assertAnnotationsApplicable, assertMutationDefaultGeneratorsAvailable, assertNoCrossRegistryCollisions, assertResolvableTypeConstructorTemplates, assertRuntimeContractRequirementsSatisfied, assertUniqueCodecOwner, authoringEntryType, buildExtensionLoadOrder, buildNamespacedEntities, buildSingleNamespaceView, canonicalFormOf, canonicalizeJson, canonicalizeTaggedLiteralBody, checkAborted, checkContractComponentRequirements, checkMiddlewareCompatibility, classifyEnumMemberType, codecForRef, collectMutationDefaultGenerators, collectScalarTypeConstructors, column, contractSnapshotJsonSpecifier, contractSnapshotTypesSpecifier, coordinateKey, createControlStack, createDataTypeLookup, createExecutionStack, createMetaBuilder, dataType, dataTypeId, decodeJsonBoolean, decodeJsonFloat, decodeJsonInteger, decodeJsonIntegerText, decodeJsonMatching, decodeJsonString, defineAnnotation, describeTaggedLiteralFailure, diffSchemas, dispositionForCategory, domainElementCoordinates, elementCoordinates, emptyCodecLookup, encodeJsonFloat, enforceDataTypeInvariants, entityAt, extractCodecLookup, extractCodecTypeImports, extractComponentIds, extractQueryOperationTypeImports, fieldPresetSpellings, findAuthoringTypeConstructorCall, flatPslCompositeTypes, flatPslModels, flushAuthoringWarnings, freezeNode, getAuthoringFieldPreset, getAuthoringTypeConstructor, hasMigrations, hasOperationPreview, hasPslContractBuild, hasPslContractInfer, hasSchemaSubjectClassifier, hasSchemaView, hydrateNamespaceEntities, instantiateAuthoringEntityType, instantiateAuthoringFieldPreset, instantiateAuthoringTypeConstructor, instantiateExecutionStack, isAggregateDescriptor, isAnyInputAggregateDescriptor, isAuthoringArgRef, isAuthoringEntityTypeDescriptor, isAuthoringFieldPresetDescriptor, isAuthoringModelAttributeDescriptor, isAuthoringPslBlockDescriptor, isAuthoringTypeConstructorDescriptor, isIntegerIn, isNoInputAggregateDescriptor, isNonFiniteText, isPlainRecord, isRuntimeError, isTagEntryKey, issueOutcome, keepInternalSpecifiers, makePslNamespace, makePslNamespaceEntries, materializeCodec, mergeAuthoringNamespaces, mergeCapabilityMatrices, namespacePslExtensionBlocks, objectSchemaKeys, onQueryEndOutsideTransaction, orderIssuesByDependencies, printTaggedLiteral, promoteBuiltinKinds, raceAgainstAbort, readEnumBlockMembers, refuseJsonValue, renderTsLiteral, reportExecuteEnding, reportQueryEnding, requiredParamKeys, requiredSchemaKeys, resolveAuthoringTemplateValue, resolveCodecDescriptorOrThrow, resolveEnumCodecId, resolvePslBacktickEscapes, resolveRequirementSpecifiers, resolveTemplateTagEscapes, runAfterTransaction, runBeforeExecuteChain, runBeforeQueryChain, runExecuteWithMiddleware, runQueryWithMiddleware, runtimeAborted, runtimeError, sameMarkerHashes, settleAggregateOverloads, storageHashHex, tagEntryKey, temporalAuthoringPresets, temporalCodecPreset, temporalPhaseTemplate, timestampNowControlDescriptor, validateAuthoringHelperArguments, validateAuthoringTypeParams, validateCodecTypeParams };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { A as objectSchemaKeys, C as ToCanonicalForm, D as dataType, E as createDataTypeLookup, M as requiredSchemaKeys, O as dataTypeId, S as ListCast, T as canonicalFormOf, _ as DATA_TYPE_ID_PATTERN, a as CodecCallContext, b as DataTypeLookup, c as CodecDescriptorTemplate, d as CodecInstanceContext, f as CodecLookup, g as CodecTrait, h as CodecRegistry, i as Codec, j as requiredParamKeys, k as emptyCodecLookup, l as CodecDescriptorTemplateImpl, m as CodecRef, n as AnyCodecDescriptorTemplate, o as CodecDescriptor, p as CodecLookupWithDescriptors, r as Cast, s as CodecDescriptorImpl, t as AnyCodecDescriptor, u as CodecImpl, v as DataType, w as assembleDataTypes, x as DataTypeSpec, y as DataTypeId } from "./codec-types-8NKqm4AQ-DyNSay3e.mjs";
|
|
2
|
-
import { C as
|
|
3
|
-
export { type AnyCodecDescriptor, type AnyCodecDescriptorTemplate, type BigIntRange, CONTRACT_CODEC_DESCRIPTOR_MISSING, type Cast, type Codec, type CodecCallContext, type CodecDescriptor, CodecDescriptorImpl, type CodecDescriptorTemplate, CodecDescriptorTemplateImpl, CodecImpl, type CodecInstanceContext, type CodecLookup, type CodecLookupWithDescriptors, type CodecRef, type CodecRegistry, type CodecTrait, type ColumnHelperFor, type ColumnHelperForStrict, type ColumnSpec, type ColumnTypeDescriptor, DATA_TYPE_ID_PATTERN, type DataType, type DataTypeId, type DataTypeLookup, type DataTypeSpec, INT32_RANGE, INT64_RANGE, type IntegerRange, type ListCast, SAFE_INTEGER_BIGINT_RANGE, SAFE_INTEGER_RANGE, type ToCanonicalForm, assembleDataTypes, canonicalFormOf, codecForRef, column, createDataTypeLookup, dataType, dataTypeId, decodeJsonBoolean, decodeJsonFloat, decodeJsonInteger, decodeJsonIntegerText, decodeJsonMatching, decodeJsonString, emptyCodecLookup, encodeJsonFloat, isIntegerIn, isNonFiniteText, materializeCodec, objectSchemaKeys, refuseJsonValue, renderTsLiteral, requiredParamKeys, requiredSchemaKeys, resolveCodecDescriptorOrThrow, validateCodecTypeParams };
|
|
2
|
+
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-51beiCY-.mjs";
|
|
3
|
+
export { type AnyCodecDescriptor, type AnyCodecDescriptorTemplate, type BigIntRange, CONTRACT_CODEC_DESCRIPTOR_MISSING, type Cast, 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, DATA_TYPE_ID_PATTERN, type DataType, type DataTypeId, type DataTypeLookup, type DataTypeSpec, INT32_RANGE, INT64_RANGE, type IntegerRange, type ListCast, SAFE_INTEGER_BIGINT_RANGE, SAFE_INTEGER_RANGE, type ScalarFieldDeclaration, type ScalarFieldDeclarationBuilder, type ToCanonicalForm, assembleDataTypes, canonicalFormOf, codecForRef, column, createDataTypeLookup, dataType, dataTypeId, decodeJsonBoolean, decodeJsonFloat, decodeJsonInteger, decodeJsonIntegerText, decodeJsonMatching, decodeJsonString, emptyCodecLookup, encodeJsonFloat, isIntegerIn, isNonFiniteText, materializeCodec, objectSchemaKeys, refuseJsonValue, renderTsLiteral, requiredParamKeys, requiredSchemaKeys, resolveCodecDescriptorOrThrow, validateCodecTypeParams };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as Contract } from "./contract-types-BIaUtO7Z-Bcxx2I74.mjs";
|
|
2
2
|
import { b as DataTypeLookup, p as CodecLookupWithDescriptors } from "./codec-types-8NKqm4AQ-DyNSay3e.mjs";
|
|
3
3
|
import { i as ControlMutationDefaults } from "./mutation-default-types-D_M8NC3U-BQNexfRU.mjs";
|
|
4
|
-
import "./codec-
|
|
4
|
+
import "./codec-51beiCY-.mjs";
|
|
5
5
|
import { t as CapabilityMatrix } from "./capabilities-Cupq4-1--C71ORI3N.mjs";
|
|
6
6
|
import "./components-CK8GHz8l.mjs";
|
|
7
7
|
import { r as Result } from "./result-BYCOANWy.mjs";
|
|
@@ -201,4 +201,4 @@ declare function defineConfig<TFamilyId extends string = string, TTargetId exten
|
|
|
201
201
|
declare function defaultContractOutputPath(contractPath: string): string;
|
|
202
202
|
//#endregion
|
|
203
203
|
export { defaultContractOutputPath as _, ContractSourceDiagnosticSpan as a, ContractSourceProvider as c, FormatterConfig as d, PrismaNextConfig as f, TypeScriptContractSourceProvider as g, PslParserOptions as h, ContractSourceDiagnosticPosition as i, ContractSourceProviderBase as l, PslGrammar as m, ContractSourceContext as n, ContractSourceDiagnostics as o, PslContractSourceProvider as p, ContractSourceDiagnostic as r, ContractSourceFormat as s, ContractConfig as t, DEFAULT_CONTRACT_SOURCE_DIR as u, defineConfig as v, normalizeContractConfig as y };
|
|
204
|
-
//# sourceMappingURL=config-types-
|
|
204
|
+
//# sourceMappingURL=config-types-D-P60plU.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-types-
|
|
1
|
+
{"version":3,"file":"config-types-D-P60plU.d.mts","names":[],"sources":["../../../../1-framework/1-core/config/dist/config-types.d.mts"],"mappings":";;;;;;;;;;UAMU;WACC;WACA;WACA;;UAED;WACC,OAAO;WACP,KAAK;;UAEN;WACC;WACA;WACA;WACA,OAAO;;WAEP;;;;;;WAMA,OAAO,SAAS;;UAEjB;WACC;WACA,sBAAsB;WACtB,OAAO;;UAER;WACC;;WAEA,4BAA4B,oBAAoB;WAChD,wBAAwB;WACxB,aAAa;;WAEb,gBAAgB;WAChB,yBAAyB;;;;;;;WAOzB;WACA,cAAc;;;;WAId,iBAAiB,YAAY;WAC7B;aACE;aACA;;;;;;;;KAQR;UACK;;;;;;WAMC;WACA,OAAO,SAAS,0BAA0B,QAAQ,OAAO,UAAU;;;KAGzE;;UAEK;;WAEC,UAAU;;UAEX,kCAAkC;WACjC;WACA,gBAAgB;;UAEjB,yCAAyC;WACxC;;KAEN,yBAAyB,4BAA4B;;;;;;UAMhD;;;;;WAKC,QAAQ;;;;;;;WAOR;;UAED;WACC;WACA;;;;;;;cAOG;iBACG,wBAAwB,UAAU,iBAAiB;WACzD;;;;;;;;;;UAUD,iBAAiB,mCAAmC,mCAAmC;WACtF,QAAQ,wBAAwB;WAChC,QAAQ,wBAAwB,WAAW;WAC3C,SAAS,yBAAyB,WAAW;WAC7C,sBAAsB,2BAA2B,WAAW;;;;;;;WAO5D,SAAS,wBAAwB,WAAW,WAAW,sBAAsB,WAAW,YAAY;;;;;WAKpG;;;;;;aAME,aAAa;;;;;;WAMf,WAAW;;;;WAIX;;aAEE;;WAEF,YAAY;;;;;;;WAOZ;;;;;;;;;;;;;;;iBAeM,aAAa,mCAAmC,mCAAmC,QAAQ,iBAAiB,WAAW,aAAa,iBAAiB,WAAW;;;;;;;;iBAQhK,0BAA0B"}
|
package/dist/config.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { _ as defaultContractOutputPath, a as ContractSourceDiagnosticSpan, c as ContractSourceProvider, d as FormatterConfig, f as PrismaNextConfig, g as TypeScriptContractSourceProvider, h as PslParserOptions, i as ContractSourceDiagnosticPosition, l as ContractSourceProviderBase, m as PslGrammar, n as ContractSourceContext, o as ContractSourceDiagnostics, p as PslContractSourceProvider, r as ContractSourceDiagnostic, s as ContractSourceFormat, t as ContractConfig, u as DEFAULT_CONTRACT_SOURCE_DIR, v as defineConfig, y as normalizeContractConfig } from "./config-types-
|
|
1
|
+
import { _ as defaultContractOutputPath, a as ContractSourceDiagnosticSpan, c as ContractSourceProvider, d as FormatterConfig, f as PrismaNextConfig, g as TypeScriptContractSourceProvider, h as PslParserOptions, i as ContractSourceDiagnosticPosition, l as ContractSourceProviderBase, m as PslGrammar, n as ContractSourceContext, o as ContractSourceDiagnostics, p as PslContractSourceProvider, r as ContractSourceDiagnostic, s as ContractSourceFormat, t as ContractConfig, u as DEFAULT_CONTRACT_SOURCE_DIR, v as defineConfig, y as normalizeContractConfig } from "./config-types-D-P60plU.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-D-P60plU.mjs";
|
|
2
2
|
export { type ContractConfig, type ContractSourceContext, type ContractSourceDiagnostic, type ContractSourceDiagnosticPosition, type ContractSourceDiagnosticSpan, type ContractSourceDiagnostics, type ContractSourceFormat, type ContractSourceProvider, type ContractSourceProviderBase, DEFAULT_CONTRACT_SOURCE_DIR, type FormatterConfig, type PrismaNextConfig, type PslContractSourceProvider, type PslGrammar, type PslParserOptions, type TypeScriptContractSourceProvider, defaultContractOutputPath, defineConfig, normalizeContractConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { C as ContractToOneRelation, g as ContractModelBase, n as ApplicationDomain } from "./domain-envelope-C2vVIWGK-C5x7cBpU.mjs";
|
|
2
2
|
import { c as AuthoringEntityTypeDescriptor, f as AuthoringFieldNamespace, k as AuthoringTypeNamespace, n as AuthoringArgumentDescriptor, p as AuthoringFieldPresetDescriptor, s as AuthoringEntityContext, u as AuthoringEntityTypeNamespace } from "./framework-authoring-DRrZ8_s0-CJ7XXqvx.mjs";
|
|
3
3
|
import "./authoring-CcT010vl.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { s as ColumnTypeDescriptor } from "./codec-51beiCY-.mjs";
|
|
5
5
|
//#region ../../../1-framework/2-authoring/contract/dist/index.d.mts
|
|
6
6
|
//#region src/authoring-argument-types.d.ts
|
|
7
7
|
type OptionalObjectArgumentKeys<Properties extends Record<string, AuthoringArgumentDescriptor>> = { readonly [K in keyof Properties]: Properties[K] extends {
|
package/dist/contract.d.mts
CHANGED
|
@@ -10,5 +10,5 @@ import { t as applySpecifierDefaultControlPolicy } from "./apply-specifier-defau
|
|
|
10
10
|
import { n as ContractValidationPhase, t as ContractValidationError } from "./contract-validation-error-R7cMoK04.mjs";
|
|
11
11
|
import { a as EnumValues, c as buildEnumsMapForNamespace, i as EnumMemberNames, l as buildNamespacedEnums, n as EnumAccessor, o as NamespaceEnumAccessors, r as EnumEntriesToAccessors, s as NamespacedEnums, t as ContractEnumAccessor, u as createEnumAccessor } from "./enum-accessor-YBT4SFYM.mjs";
|
|
12
12
|
import { a as compareByNameProperty, c as matchesPathPattern, i as PathSegment$1, n as PathPattern, o as createPreserveEmptyPredicate, r as PathSegment, s as createStorageSort, t as NamedArraySortTarget } from "./hashing-utils-pciIgMxz.mjs";
|
|
13
|
-
import { n as DomainModelShape, r as validateContractDomain, t as DomainContractShape } from "./validate-domain-
|
|
13
|
+
import { n as DomainModelShape, r as validateContractDomain, t as DomainContractShape } from "./validate-domain-DaAswa8n.mjs";
|
|
14
14
|
export { type $, type ApplicationDomain, type ApplicationDomainNamespace, type Brand, type CanonicalizeContractOptions, type ColumnDefault, type ColumnDefaultLiteralInputValue, type ColumnDefaultLiteralValue, type Contract, type ContractDiscriminator, type ContractEmbedRelation, type ContractEnum, type ContractEnumAccessor, type ContractExecutionSection, ContractExecutionSectionSchema, type ContractField, type ContractFieldType, type ContractManyToManyRelation, type ContractMarkerRecord, type ContractModel, type ContractModelBase, type ContractNonJunctionRelation, type ContractReferenceRelation, type ContractRelation, type ContractRelationOn, type ContractRelationThrough, type ContractToManyRelation, type ContractToOneRelation, ContractValidationError, type ContractValidationPhase, type ContractValueObject, type ContractValueObjectDefinitions, type ContractVariantEntry, type ContractWithDomain, type ControlPolicy, type CrossReference, CrossReferenceSchema, type DocCollection, type DocIndex, type DomainContractShape, type DomainModelShape, type EmbedRelationKeys, type EnumAccessor, type EnumEntriesToAccessors, type EnumMemberNames, type EnumValues, type ExecutionHashBase, type ExecutionMutationDefault, type ExecutionMutationDefaultPhases, type ExecutionMutationDefaultValue, type ExecutionSection, type Expr, type FieldType, type GeneratedValueSpec, type JsonPrimitive, type JsonValue, type LedgerEntryRecord, type ModelStorageBase, type NamedArraySortTarget, type NamespaceEnumAccessors, type NamespaceId, type NamespacedEnums, type PathPattern, type PlanMeta, type PathSegment as PreserveEmptyPathSegment, type PreserveEmptyPredicate, type ProfileHashBase, type ReferenceRelationKeys, type ResolvedDomainModel, type ScalarFieldType, type SerializeContract, type Source, type StorageBase, type StorageEntitySlot, type StorageHashBase, type StorageNamespace, type StorageSort, type PathSegment$1 as StorageSortPathSegment, UNBOUND_DOMAIN_NAMESPACE_ID, type UnionFieldType, type ValueObjectFieldType, type ValueSetRef, applySpecifierDefaultControlPolicy, asNamespaceId, buildEnumsMapForNamespace, buildExecutionSection, buildNamespacedEnums, canonicalizeContract, canonicalizeContractToObject, compareByNameProperty, computeExecutionHash, computeProfileHash, computeStorageHash, coreHash, createEnumAccessor, createPreserveEmptyPredicate, createStorageSort, crossRef, domainModelsAtDefaultNamespace, domainValueObjectsAtDefaultNamespace, effectiveControlPolicy, executionHash, isColumnDefault, isColumnDefaultLiteralInputValue, isExecutionMutationDefaultValue, isPlainRecord, matchesPathPattern, profileHash, resolveDomainModel, soleDomainNamespaceId, validateContractDomain };
|
package/dist/contract.mjs
CHANGED
|
@@ -8,5 +8,5 @@ import { a as computeProfileHash, i as computeExecutionHash, n as canonicalizeCo
|
|
|
8
8
|
import { t as resolveDomainModel } from "./resolve-domain-model-BovPAsW2-8rwyzjxp.mjs";
|
|
9
9
|
import { t as asNamespaceId } from "./namespace-id-asbWpwMw-3yxn-tRe.mjs";
|
|
10
10
|
import { a as domainModelsAtDefaultNamespace, c as executionHash, d as isExecutionMutationDefaultValue, f as profileHash, i as crossRef, l as isColumnDefault, n as CrossReferenceSchema, o as domainValueObjectsAtDefaultNamespace, r as coreHash, s as effectiveControlPolicy, t as ContractExecutionSectionSchema, u as isColumnDefaultLiteralInputValue } from "./types-QyibIZST.mjs";
|
|
11
|
-
import { t as validateContractDomain } from "./validate-domain-
|
|
11
|
+
import { t as validateContractDomain } from "./validate-domain-BWxgeXy0.mjs";
|
|
12
12
|
export { ContractExecutionSectionSchema, ContractValidationError, CrossReferenceSchema, UNBOUND_DOMAIN_NAMESPACE_ID, applySpecifierDefaultControlPolicy, asNamespaceId, buildEnumsMapForNamespace, buildExecutionSection, buildNamespacedEnums, canonicalizeContract, canonicalizeContractToObject, compareByNameProperty, computeExecutionHash, computeProfileHash, computeStorageHash, coreHash, createEnumAccessor, createPreserveEmptyPredicate, createStorageSort, crossRef, domainModelsAtDefaultNamespace, domainValueObjectsAtDefaultNamespace, effectiveControlPolicy, executionHash, isColumnDefault, isColumnDefaultLiteralInputValue, isExecutionMutationDefaultValue, isPlainRecord, matchesPathPattern, profileHash, resolveDomainModel, soleDomainNamespaceId, validateContractDomain };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as DomainModelShape, r as validateContractDomain, t as DomainContractShape } from "./validate-domain-
|
|
1
|
+
import { n as DomainModelShape, r as validateContractDomain, t as DomainContractShape } from "./validate-domain-DaAswa8n.mjs";
|
|
2
2
|
export { type DomainContractShape, type DomainModelShape, validateContractDomain };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as validateContractDomain } from "./validate-domain-
|
|
1
|
+
import { t as validateContractDomain } from "./validate-domain-BWxgeXy0.mjs";
|
|
2
2
|
export { validateContractDomain };
|
package/dist/ids.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { F as ExecutionMutationDefaultValue } from "./domain-envelope-C2vVIWGK-C5x7cBpU.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { s as ColumnTypeDescriptor } from "./codec-51beiCY-.mjs";
|
|
3
3
|
import { cuid2 as cuid2$1 } from "uniku/cuid2";
|
|
4
4
|
import { ksuid as ksuid$1 } from "uniku/ksuid";
|
|
5
5
|
import { nanoid as nanoid$1 } from "uniku/nanoid";
|
|
@@ -2,7 +2,7 @@ import { U as PslSpan } from "./framework-authoring-DRrZ8_s0-CJ7XXqvx.mjs";
|
|
|
2
2
|
import { o as TaggedLiteralCanonicalization } from "./temporal-presets-CLsu00ZK-CAx-cLAM.mjs";
|
|
3
3
|
import "./control-C1x8zzHb.mjs";
|
|
4
4
|
import "./psl-ast-a1L1ep0a.mjs";
|
|
5
|
-
import { h as PslParserOptions, r as ContractSourceDiagnostic } from "./config-types-
|
|
5
|
+
import { h as PslParserOptions, r as ContractSourceDiagnostic } from "./config-types-D-P60plU.mjs";
|
|
6
6
|
import { n as TokenKind, t as Token } from "./tokenizer-DW30uwhx-BHsWTwYk.mjs";
|
|
7
7
|
//#region ../../../1-framework/2-authoring/psl-parser/dist/parse-eSQ_clQv.d.mts
|
|
8
8
|
//#region src/syntax/syntax-kind.d.ts
|
|
@@ -525,4 +525,4 @@ interface ParseResult {
|
|
|
525
525
|
declare function parse(source: string, filename: string, options?: PslParserOptions): ParseResult;
|
|
526
526
|
//#endregion
|
|
527
527
|
export { any as $, NumberLiteralExprAst as A, QualifiedNameAst as B, IdentifierAst as C, NamedTypeDeclarationAst as D, ModelDeclarationAst as E, PathExprAst as F, SyntaxElement as G, SourceFile as H, Position as I, SyntaxToken as J, SyntaxKind as K, PslDiagnostic as L, ObjectLiteralExprAst as M, ParseDiagnostic as N, NamespaceDeclarationAst as O, ParseResult as P, TypesBlockAst as Q, PslDiagnosticCollector as R, HasDocComment as S, ModelAttributeAst as T, StringLiteralExprAst as U, Range as V, StringLiteralQuote as W, TokenAtOffset as X, TaggedLiteralExprAst as Y, TypeAnnotationAst as Z, GenericBlockDeclarationAst as _, AttributeAst as a, dottedPathsIn as at, GreenNode as b, BracedBlock as c, findFirstChild as ct, DiagnosticSource as d, mapPslDiagnostics as dt, castExpression as et, DocumentAst as f, parse as ft, FunctionCallAst as g, FieldDeclarationAst as h, AttributeArgListAst as i, diagnosticSource as it, ObjectFieldAst as j, NamespaceMemberAst as k, CompositeTypeDeclarationAst as l, greenNode as lt, FieldAttributeAst as m, AstNode as n, createSyntaxTree as nt, BlockMemberAst as o, filterChildren as ot, ExpressionAst as p, printSyntax as pt, SyntaxNode as q, AttributeArgAst as r, diagnosticFromSpan as rt, BooleanLiteralExprAst as s, findChildToken as st, ArrayLiteralAst as t, createPslDiagnosticCollector as tt, DeclarationAst as u, greenToken as ut, GenericBlockMemberAst as v, KeyValuePairAst as w, GreenToken as x, GreenElement as y, PslSources as z };
|
|
528
|
-
//# sourceMappingURL=parse-eSQ_clQv-
|
|
528
|
+
//# sourceMappingURL=parse-eSQ_clQv-YWR_NQoq.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-eSQ_clQv-
|
|
1
|
+
{"version":3,"file":"parse-eSQ_clQv-YWR_NQoq.d.mts","names":[],"sources":["../../../../1-framework/2-authoring/psl-parser/dist/parse-eSQ_clQv.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,gBAAgB;;;;;;;;;;cAUvE,uBAAuB;WAC1B,OAAO;WACP,MAAM;WACN;WACA;WACA,QAAQ;;WAER;EACT,YAAY,OAAO,YAAY,gBAAgB,QAAQ,YAAY;MAC/D;MACA;;EAEJ,SAAS;EACT,UAAU;;MAEN,sBAAsB;;MAEtB,sBAAsB;;MAEtB,aAAa;;MAEb,aAAa;;KAEd,gBAAgB,aAAa;cACpB;;UAEJ;SACD,QAAQ;SACR,OAAO,OAAO,cAAc;SAC5B,QAAQ,MAAM,aAAa,OAAO,cAAc;MACnD;MACA;EACJ,cAAc;EACd,eAAe;;cAEH;;WAEH,OAAO;WACP;WACA,QAAQ;;WAER;EACT,YAAY,OAAO,WAAW,gBAAgB,QAAQ,wBAAwB;EAC9E,QAAQ,gBAAgB;MACpB,QAAQ;MACR;MACA;;EAEJ,SAAS;EACT,UAAU;MACN,cAAc;MACd,aAAa;MACb,eAAe;MACf,eAAe;;MAEf,sBAAsB;;MAEtB,sBAAsB;;MAEtB,cAA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WACtB,SAAS;;;;;;iBAMH,MAAM,gBAAgB,kBAAkB,UAAU,mBAAmB"}
|
package/dist/psl-parser.d.mts
CHANGED
|
@@ -6,8 +6,8 @@ import { r as Result } from "./result-BYCOANWy.mjs";
|
|
|
6
6
|
import { n as AssembledAuthoringContributions } from "./control-C1x8zzHb.mjs";
|
|
7
7
|
import "./psl-ast-a1L1ep0a.mjs";
|
|
8
8
|
import { i as isPslIdentifier } from "./tokenizer-DW30uwhx-BHsWTwYk.mjs";
|
|
9
|
-
import { L as PslDiagnostic, R as PslDiagnosticCollector, T as ModelAttributeAst, d as DiagnosticSource, dt as mapPslDiagnostics, it as diagnosticSource, m as FieldAttributeAst, n as AstNode, q as SyntaxNode, r as AttributeArgAst, rt as diagnosticFromSpan, tt as createPslDiagnosticCollector, z as PslSources } from "./parse-eSQ_clQv-
|
|
10
|
-
import { $ as NamedTypeSymbol, A as DescribeUnsupportedAttribute, At as TypedFuncCall, B as FuncCallArgType, Bt as isNamespaceLike, C as ContributedTypeNamespace, Ct as ResolvedTypeConstructorCall, D as CtxOf, Dt as SymbolTableResult, E as CreateBinderInput, Et as SymbolTable, F as FieldRefArgType, Ft as UnsupportedAttribute, G as InspectableArgType, Gt as readResolvedAttribute, H as FunctionSymbol, Ht as matchesSelector, I as FieldSymbol, It as buildSymbolTable, J as JsonValueArgType, Jt as typeReferenceNode, K as IntArgType, Kt as readResolvedAttributes, L as FixedIdentifierArgType, Lt as contributedTypeOf, M as EntityRefArgType, Mt as UnrestrictedIdentifierArgType, N as EntitySelector, Nt as UnrestrictedNumArgType, O as DeclarationFor, Ot as TaggedLiteralArgType, P as FieldAttributeCtx, Pt as UnrestrictedStrArgType, Q as NamedOut, R as FixedNumArgType, Rt as createBinder, S as ContributedTypeDescriptor, St as ResolvedNamedTypeBinding, T as ContributedTypeSymbol, Tt as ScopeResolution, U as IdentifierArgType, Ut as memberEntries, V as FuncCallSig, Vt as keywordPslSpan, W as InferAttr, Wt as nodePslSpan, X as ModelAttributeCtx, Y as ListArgType, Z as ModelSymbol, _ as CompositeTypeSymbol, _t as RequiredContextFor, a as AttributeLevel, at as OptionalArgType, b as ContributedMember, bt as ResolvedAttributeArg, c as AttributeSymbol, ct as Param, d as BinderResult, dt as PosOut, et as NamespaceSymbol, f as BlockAttributeCtx, ft as PositionalParam, g as BuildSymbolTableOptions, gt as RejectingArgType, h as BoundSpec, ht as ReferencedFieldRefArgType, i as AttributeCtx, it as OneOfArgType, j as EntityDeclaration, jt as UnresolvedTypeReference, k as DescribeUnresolvedType, kt as TopLevelScope, l as Binder, lt as ParameterSymbol, m as BoolArgType, mt as RecordArgType, n as ArgType, nt as NumLiteral, o as AttributeOut, ot as OutOf, p as BlockSymbol, pt as PslSymbol, q as JsonArgType, qt as readResolvedConstructorCall, r as ArgTypeKind, rt as NumLiteralArgType, s as AttributeSpec, st as PSL_UNRESOLVED_REFERENCE, t as AnyArgType, tt as NullArgType, u as BinderContext, ut as ParsedTaggedLiteral, v as ConstantSymbol, vt as Resolution, w as ContributedTypeScope, wt as Scope, x as ContributedNamespaceSymbol, xt as ResolvedEntityReference, y as ContextForRequirement, yt as ResolvedAttribute, z as FixedStrArgType, zt as entityReference } from "./binder-Dz5zT7tr-
|
|
9
|
+
import { L as PslDiagnostic, R as PslDiagnosticCollector, T as ModelAttributeAst, d as DiagnosticSource, dt as mapPslDiagnostics, it as diagnosticSource, m as FieldAttributeAst, n as AstNode, q as SyntaxNode, r as AttributeArgAst, rt as diagnosticFromSpan, tt as createPslDiagnosticCollector, z as PslSources } from "./parse-eSQ_clQv-YWR_NQoq.mjs";
|
|
10
|
+
import { $ as NamedTypeSymbol, A as DescribeUnsupportedAttribute, At as TypedFuncCall, B as FuncCallArgType, Bt as isNamespaceLike, C as ContributedTypeNamespace, Ct as ResolvedTypeConstructorCall, D as CtxOf, Dt as SymbolTableResult, E as CreateBinderInput, Et as SymbolTable, F as FieldRefArgType, Ft as UnsupportedAttribute, G as InspectableArgType, Gt as readResolvedAttribute, H as FunctionSymbol, Ht as matchesSelector, I as FieldSymbol, It as buildSymbolTable, J as JsonValueArgType, Jt as typeReferenceNode, K as IntArgType, Kt as readResolvedAttributes, L as FixedIdentifierArgType, Lt as contributedTypeOf, M as EntityRefArgType, Mt as UnrestrictedIdentifierArgType, N as EntitySelector, Nt as UnrestrictedNumArgType, O as DeclarationFor, Ot as TaggedLiteralArgType, P as FieldAttributeCtx, Pt as UnrestrictedStrArgType, Q as NamedOut, R as FixedNumArgType, Rt as createBinder, S as ContributedTypeDescriptor, St as ResolvedNamedTypeBinding, T as ContributedTypeSymbol, Tt as ScopeResolution, U as IdentifierArgType, Ut as memberEntries, V as FuncCallSig, Vt as keywordPslSpan, W as InferAttr, Wt as nodePslSpan, X as ModelAttributeCtx, Y as ListArgType, Z as ModelSymbol, _ as CompositeTypeSymbol, _t as RequiredContextFor, a as AttributeLevel, at as OptionalArgType, b as ContributedMember, bt as ResolvedAttributeArg, c as AttributeSymbol, ct as Param, d as BinderResult, dt as PosOut, et as NamespaceSymbol, f as BlockAttributeCtx, ft as PositionalParam, g as BuildSymbolTableOptions, gt as RejectingArgType, h as BoundSpec, ht as ReferencedFieldRefArgType, i as AttributeCtx, it as OneOfArgType, j as EntityDeclaration, jt as UnresolvedTypeReference, k as DescribeUnresolvedType, kt as TopLevelScope, l as Binder, lt as ParameterSymbol, m as BoolArgType, mt as RecordArgType, n as ArgType, nt as NumLiteral, o as AttributeOut, ot as OutOf, p as BlockSymbol, pt as PslSymbol, q as JsonArgType, qt as readResolvedConstructorCall, r as ArgTypeKind, rt as NumLiteralArgType, s as AttributeSpec, st as PSL_UNRESOLVED_REFERENCE, t as AnyArgType, tt as NullArgType, u as BinderContext, ut as ParsedTaggedLiteral, v as ConstantSymbol, vt as Resolution, w as ContributedTypeScope, wt as Scope, x as ContributedNamespaceSymbol, xt as ResolvedEntityReference, y as ContextForRequirement, yt as ResolvedAttribute, z as FixedStrArgType, zt as entityReference } from "./binder-Dz5zT7tr-Dc_RkyB2.mjs";
|
|
11
11
|
//#region ../../../1-framework/2-authoring/psl-parser/dist/index.d.mts
|
|
12
12
|
//#region src/attribute-helpers.d.ts
|
|
13
13
|
declare function getPositionalArgument(attribute: PslAttribute, index?: number): string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as PslParserOptions } from "./config-types-
|
|
1
|
+
import { h as PslParserOptions } from "./config-types-D-P60plU.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 {
|
|
@@ -3,9 +3,9 @@ import { $ as instantiateAuthoringFieldPreset, C as AuthoringPslBlockDescriptorN
|
|
|
3
3
|
import "./authoring-CcT010vl.mjs";
|
|
4
4
|
import { r as Result } from "./result-BYCOANWy.mjs";
|
|
5
5
|
import "./psl-ast-a1L1ep0a.mjs";
|
|
6
|
-
import { c as ContractSourceProvider, n as ContractSourceContext, o as ContractSourceDiagnostics, p as PslContractSourceProvider, r as ContractSourceDiagnostic } from "./config-types-
|
|
7
|
-
import { L as PslDiagnostic, R as PslDiagnosticCollector, d as DiagnosticSource, f as DocumentAst, z as PslSources } from "./parse-eSQ_clQv-
|
|
8
|
-
import { Ct as ResolvedTypeConstructorCall, Et as SymbolTable, I as FieldSymbol, bt as ResolvedAttributeArg, l as Binder, p as BlockSymbol } from "./binder-Dz5zT7tr-
|
|
6
|
+
import { c as ContractSourceProvider, n as ContractSourceContext, o as ContractSourceDiagnostics, p as PslContractSourceProvider, r as ContractSourceDiagnostic } from "./config-types-D-P60plU.mjs";
|
|
7
|
+
import { L as PslDiagnostic, R as PslDiagnosticCollector, d as DiagnosticSource, f as DocumentAst, z as PslSources } from "./parse-eSQ_clQv-YWR_NQoq.mjs";
|
|
8
|
+
import { Ct as ResolvedTypeConstructorCall, Et as SymbolTable, I as FieldSymbol, bt as ResolvedAttributeArg, l as Binder, p as BlockSymbol } from "./binder-Dz5zT7tr-Dc_RkyB2.mjs";
|
|
9
9
|
//#region ../../../1-framework/2-authoring/psl-parser/dist/interpret.d.mts
|
|
10
10
|
//#region src/authoring-arguments.d.ts
|
|
11
11
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as TokenKind } from "./tokenizer-DW30uwhx-BHsWTwYk.mjs";
|
|
2
|
-
import { $ as any, A as NumberLiteralExprAst, B as QualifiedNameAst, C as IdentifierAst, D as NamedTypeDeclarationAst, E as ModelDeclarationAst, F as PathExprAst, G as SyntaxElement, H as SourceFile, I as Position, J as SyntaxToken, K as SyntaxKind, M as ObjectLiteralExprAst, N as ParseDiagnostic, O as NamespaceDeclarationAst, P as ParseResult, Q as TypesBlockAst, S as HasDocComment, T as ModelAttributeAst, U as StringLiteralExprAst, V as Range, W as StringLiteralQuote, X as TokenAtOffset, Y as TaggedLiteralExprAst, Z as TypeAnnotationAst, _ as GenericBlockDeclarationAst, a as AttributeAst, at as dottedPathsIn, b as GreenNode, c as BracedBlock, ct as findFirstChild, et as castExpression, f as DocumentAst, ft as parse, g as FunctionCallAst, h as FieldDeclarationAst, i as AttributeArgListAst, j as ObjectFieldAst, k as NamespaceMemberAst, l as CompositeTypeDeclarationAst, lt as greenNode, m as FieldAttributeAst, n as AstNode, nt as createSyntaxTree, o as BlockMemberAst, ot as filterChildren, p as ExpressionAst, pt as printSyntax, q as SyntaxNode, r as AttributeArgAst, s as BooleanLiteralExprAst, st as findChildToken, t as ArrayLiteralAst, u as DeclarationAst, ut as greenToken, v as GenericBlockMemberAst, w as KeyValuePairAst, x as GreenToken, y as GreenElement, z as PslSources } from "./parse-eSQ_clQv-
|
|
2
|
+
import { $ as any, A as NumberLiteralExprAst, B as QualifiedNameAst, C as IdentifierAst, D as NamedTypeDeclarationAst, E as ModelDeclarationAst, F as PathExprAst, G as SyntaxElement, H as SourceFile, I as Position, J as SyntaxToken, K as SyntaxKind, M as ObjectLiteralExprAst, N as ParseDiagnostic, O as NamespaceDeclarationAst, P as ParseResult, Q as TypesBlockAst, S as HasDocComment, T as ModelAttributeAst, U as StringLiteralExprAst, V as Range, W as StringLiteralQuote, X as TokenAtOffset, Y as TaggedLiteralExprAst, Z as TypeAnnotationAst, _ as GenericBlockDeclarationAst, a as AttributeAst, at as dottedPathsIn, b as GreenNode, c as BracedBlock, ct as findFirstChild, et as castExpression, f as DocumentAst, ft as parse, g as FunctionCallAst, h as FieldDeclarationAst, i as AttributeArgListAst, j as ObjectFieldAst, k as NamespaceMemberAst, l as CompositeTypeDeclarationAst, lt as greenNode, m as FieldAttributeAst, n as AstNode, nt as createSyntaxTree, o as BlockMemberAst, ot as filterChildren, p as ExpressionAst, pt as printSyntax, q as SyntaxNode, r as AttributeArgAst, s as BooleanLiteralExprAst, st as findChildToken, t as ArrayLiteralAst, u as DeclarationAst, ut as greenToken, v as GenericBlockMemberAst, w as KeyValuePairAst, x as GreenToken, y as GreenElement, z as PslSources } from "./parse-eSQ_clQv-YWR_NQoq.mjs";
|
|
3
3
|
//#region ../../../1-framework/2-authoring/psl-parser/dist/syntax.d.mts
|
|
4
4
|
//#region src/syntax/green-builder.d.ts
|
|
5
5
|
declare class GreenNodeBuilder {
|
|
@@ -100,6 +100,17 @@ function validateDiscriminators(modelIndex, errors) {
|
|
|
100
100
|
if (!model.variants || Object.keys(model.variants).length === 0) errors.push(`Model "${namespaceId}:${modelName}" has discriminator but no variants`);
|
|
101
101
|
if (!Object.hasOwn(model.fields, model.discriminator.field)) errors.push(`Discriminator field "${model.discriminator.field}" is not a field on model "${namespaceId}:${modelName}"`);
|
|
102
102
|
}
|
|
103
|
+
if (model.variants) {
|
|
104
|
+
const variantsByValue = /* @__PURE__ */ new Map();
|
|
105
|
+
for (const [variantName, { value }] of Object.entries(model.variants)) {
|
|
106
|
+
const existingVariant = variantsByValue.get(value);
|
|
107
|
+
if (existingVariant !== void 0) {
|
|
108
|
+
errors.push(`Discriminator value "${value}" is used by both "${namespaceId}:${existingVariant}" and "${namespaceId}:${variantName}" on base model "${namespaceId}:${modelName}"`);
|
|
109
|
+
continue;
|
|
110
|
+
}
|
|
111
|
+
variantsByValue.set(value, variantName);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
103
114
|
if (model.variants && Object.keys(model.variants).length > 0 && !model.discriminator) errors.push(`Model "${namespaceId}:${modelName}" has variants but no discriminator`);
|
|
104
115
|
if (model.base) {
|
|
105
116
|
if (model.discriminator) errors.push(`Model "${namespaceId}:${modelName}" has base and must not have discriminator`);
|
|
@@ -157,4 +168,4 @@ function validateFieldModifiers(modelIndex, contract, errors) {
|
|
|
157
168
|
//#endregion
|
|
158
169
|
export { validateContractDomain as t };
|
|
159
170
|
|
|
160
|
-
//# sourceMappingURL=validate-domain-
|
|
171
|
+
//# sourceMappingURL=validate-domain-BWxgeXy0.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-domain-BWxgeXy0.mjs","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/validate-domain.mjs"],"sourcesContent":["import { t as asNamespaceId } from \"./namespace-id-asbWpwMw.mjs\";\nimport { t as ContractValidationError } from \"./contract-validation-error-DEiWp_EI.mjs\";\nimport { blindCast } from \"@internal/utils/casts\";\n//#region src/validate-domain.ts\nfunction indexDomainModels(contract) {\n\tconst index = /* @__PURE__ */ new Map();\n\tfor (const [namespaceKey, namespace] of Object.entries(contract.domain.namespaces)) {\n\t\tconst namespaceId = asNamespaceId(namespaceKey);\n\t\tlet modelsInNamespace = index.get(namespaceId);\n\t\tif (modelsInNamespace === void 0) {\n\t\t\tmodelsInNamespace = /* @__PURE__ */ new Map();\n\t\t\tindex.set(namespaceId, modelsInNamespace);\n\t\t}\n\t\tfor (const [name, model] of Object.entries(namespace.models)) modelsInNamespace.set(name, {\n\t\t\tnamespaceId,\n\t\t\tname,\n\t\t\tmodel\n\t\t});\n\t}\n\treturn index;\n}\nfunction lookupModel(index, ref) {\n\treturn index.get(ref.namespace)?.get(ref.model);\n}\nfunction* iterateIndexedModels(index) {\n\tfor (const modelsInNamespace of index.values()) for (const entry of modelsInNamespace.values()) yield entry;\n}\nfunction validateContractDomain(contract) {\n\tconst errors = [];\n\tconst modelIndex = indexDomainModels(contract);\n\tvalidateRoots(contract, modelIndex, errors);\n\tvalidateVariantsAndBases(modelIndex, errors);\n\tvalidateRelationTargets(modelIndex, errors);\n\tvalidateRelationNullability(modelIndex, errors);\n\tvalidateDiscriminators(modelIndex, errors);\n\tvalidateOwnership(contract, modelIndex, errors);\n\tvalidateValueObjectReferences(contract, errors);\n\tvalidateFieldModifiers(modelIndex, contract, errors);\n\tif (errors.length > 0) throw new ContractValidationError(`Contract domain validation failed:\\n- ${errors.join(\"\\n- \")}`, \"domain\");\n}\nfunction validateRoots(contract, modelIndex, errors) {\n\tconst seenRootTargets = /* @__PURE__ */ new Map();\n\tfor (const [rootKey, crossRef] of Object.entries(contract.roots)) {\n\t\tlet modelsInNamespace = seenRootTargets.get(crossRef.namespace);\n\t\tif (modelsInNamespace === void 0) {\n\t\t\tmodelsInNamespace = /* @__PURE__ */ new Set();\n\t\t\tseenRootTargets.set(crossRef.namespace, modelsInNamespace);\n\t\t}\n\t\tif (modelsInNamespace.has(crossRef.model)) errors.push(`Duplicate root value: \"${crossRef.namespace}:${crossRef.model}\" is mapped by multiple root keys`);\n\t\tmodelsInNamespace.add(crossRef.model);\n\t\tif (!lookupModel(modelIndex, crossRef)) errors.push(`Root \"${rootKey}\" references model \"${crossRef.namespace}:${crossRef.model}\" which does not exist in domain.namespaces`);\n\t}\n}\nfunction validateVariantsAndBases(modelIndex, errors) {\n\tfor (const { namespaceId, name: modelName, model } of iterateIndexedModels(modelIndex)) {\n\t\tif (model.variants) for (const variantName of Object.keys(model.variants)) {\n\t\t\tconst variantEntry = lookupModel(modelIndex, {\n\t\t\t\tnamespace: namespaceId,\n\t\t\t\tmodel: variantName\n\t\t\t});\n\t\t\tif (!variantEntry) {\n\t\t\t\terrors.push(`Model \"${namespaceId}:${modelName}\" lists variant \"${variantName}\" which does not exist at that namespace coordinate`);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst variantBase = variantEntry.model.base;\n\t\t\tif (variantBase?.namespace !== namespaceId || variantBase?.model !== modelName) errors.push(`Variant \"${namespaceId}:${variantName}\" has base \"${variantBase?.namespace ?? \"?\"}:${variantBase?.model ?? \"(none)\"}\" but expected \"${namespaceId}:${modelName}\"`);\n\t\t}\n\t\tif (model.base) {\n\t\t\tconst baseEntry = lookupModel(modelIndex, model.base);\n\t\t\tif (!baseEntry) {\n\t\t\t\terrors.push(`Model \"${namespaceId}:${modelName}\" has base \"${model.base.namespace}:${model.base.model}\" which does not exist in domain.namespaces`);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (!baseEntry.model.variants || !Object.hasOwn(baseEntry.model.variants, modelName)) errors.push(`Model \"${namespaceId}:${modelName}\" has base \"${model.base.namespace}:${model.base.model}\" which does not list it as a variant`);\n\t\t}\n\t}\n}\nfunction validateRelationTargets(modelIndex, errors) {\n\tfor (const { namespaceId, name: modelName, model } of iterateIndexedModels(modelIndex)) for (const [relName, relation] of Object.entries(model.relations ?? {})) {\n\t\tif (relation.to.space !== void 0) continue;\n\t\tif (!lookupModel(modelIndex, relation.to)) errors.push(`Relation \"${relName}\" on model \"${namespaceId}:${modelName}\" targets \"${relation.to.namespace}:${relation.to.model}\" which does not exist in domain.namespaces`);\n\t}\n}\nfunction relationKindLabel(relation) {\n\treturn relation.on === void 0 ? \"embed relation\" : `${relation.cardinality} relation`;\n}\nfunction validateRelationNullability(modelIndex, errors) {\n\tfor (const { namespaceId, name: modelName, model } of iterateIndexedModels(modelIndex)) for (const [relName, relation] of Object.entries(model.relations ?? {})) {\n\t\tconst location = `Relation \"${relName}\" on model \"${namespaceId}:${modelName}\"`;\n\t\tif (relation.on !== void 0 && (relation.cardinality === \"1:1\" || relation.cardinality === \"N:1\")) {\n\t\t\tif (relation.nullable !== void 0 && typeof relation.nullable !== \"boolean\") errors.push(`${location} is a ${relation.cardinality} relation and its \"nullable\" must be a boolean`);\n\t\t\tcontinue;\n\t\t}\n\t\tif (relation.nullable !== void 0) errors.push(`${location} is a ${relationKindLabel(relation)} and must not carry \"nullable\"`);\n\t}\n}\nfunction validateDiscriminators(modelIndex, errors) {\n\tfor (const { namespaceId, name: modelName, model } of iterateIndexedModels(modelIndex)) {\n\t\tif (model.discriminator) {\n\t\t\tif (!model.variants || Object.keys(model.variants).length === 0) errors.push(`Model \"${namespaceId}:${modelName}\" has discriminator but no variants`);\n\t\t\tif (!Object.hasOwn(model.fields, model.discriminator.field)) errors.push(`Discriminator field \"${model.discriminator.field}\" is not a field on model \"${namespaceId}:${modelName}\"`);\n\t\t}\n\t\tif (model.variants) {\n\t\t\tconst variantsByValue = /* @__PURE__ */ new Map();\n\t\t\tfor (const [variantName, { value }] of Object.entries(model.variants)) {\n\t\t\t\tconst existingVariant = variantsByValue.get(value);\n\t\t\t\tif (existingVariant !== void 0) {\n\t\t\t\t\terrors.push(`Discriminator value \"${value}\" is used by both \"${namespaceId}:${existingVariant}\" and \"${namespaceId}:${variantName}\" on base model \"${namespaceId}:${modelName}\"`);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tvariantsByValue.set(value, variantName);\n\t\t\t}\n\t\t}\n\t\tif (model.variants && Object.keys(model.variants).length > 0 && !model.discriminator) errors.push(`Model \"${namespaceId}:${modelName}\" has variants but no discriminator`);\n\t\tif (model.base) {\n\t\t\tif (model.discriminator) errors.push(`Model \"${namespaceId}:${modelName}\" has base and must not have discriminator`);\n\t\t\tif (model.variants && Object.keys(model.variants).length > 0) errors.push(`Model \"${namespaceId}:${modelName}\" has base and must not have variants`);\n\t\t}\n\t}\n}\nfunction validateOwnership(contract, modelIndex, errors) {\n\tfor (const { namespaceId, name: modelName, model } of iterateIndexedModels(modelIndex)) {\n\t\tif (!model.owner) continue;\n\t\tif (model.owner === modelName) errors.push(`Model \"${namespaceId}:${modelName}\" cannot own itself`);\n\t\tif (!lookupModel(modelIndex, {\n\t\t\tnamespace: namespaceId,\n\t\t\tmodel: model.owner\n\t\t})) errors.push(`Model \"${namespaceId}:${modelName}\" has owner \"${namespaceId}:${model.owner}\" which does not exist in domain.namespaces`);\n\t\tfor (const [rootKey, rootRef] of Object.entries(contract.roots)) if (rootRef.namespace === namespaceId && rootRef.model === modelName) errors.push(`Owned model \"${namespaceId}:${modelName}\" must not appear in roots (found as root \"${rootKey}\")`);\n\t}\n}\nfunction validateValueObjectReferences(contract, errors) {\n\tconst voNamesByNamespace = /* @__PURE__ */ new Map();\n\tfor (const [namespaceKey, namespace] of Object.entries(contract.domain.namespaces)) {\n\t\tconst namespaceId = asNamespaceId(namespaceKey);\n\t\tvoNamesByNamespace.set(namespaceId, new Set(Object.keys(namespace.valueObjects ?? {})));\n\t}\n\tfunction checkType(type, location, namespaceId) {\n\t\tif (!type) return;\n\t\tconst voNames = voNamesByNamespace.get(namespaceId) ?? /* @__PURE__ */ new Set();\n\t\tif (type.kind === \"valueObject\" && type.name && !voNames.has(type.name)) {\n\t\t\terrors.push(`${location} references value object \"${namespaceId}:${type.name}\" which does not exist in that namespace's valueObjects`);\n\t\t\treturn;\n\t\t}\n\t\tif (type.kind === \"union\") for (const member of type.members ?? []) checkType(member, location, namespaceId);\n\t}\n\tfor (const [namespaceKey, namespace] of Object.entries(contract.domain.namespaces)) {\n\t\tconst namespaceId = asNamespaceId(namespaceKey);\n\t\tfor (const [modelName, model] of Object.entries(namespace.models)) for (const [fieldName, field] of Object.entries(model.fields)) checkType(blindCast(field)?.type, `Model \"${namespaceId}:${modelName}\" field \"${fieldName}\"`, namespaceId);\n\t\tfor (const [voName, vo] of Object.entries(namespace.valueObjects ?? {})) for (const [fieldName, field] of Object.entries(vo.fields)) checkType(blindCast(field)?.type, `Value object \"${namespaceId}:${voName}\" field \"${fieldName}\"`, namespaceId);\n\t}\n}\nfunction validateFieldModifiers(modelIndex, contract, errors) {\n\tfunction validateField(location, field) {\n\t\tconst candidate = blindCast(field);\n\t\tconst many = candidate?.many;\n\t\tconst isList = typeof many === \"object\" && many !== null && !Array.isArray(many) && Object.keys(many).length === 1 && \"elementNullable\" in many && typeof many.elementNullable === \"boolean\";\n\t\tif (many !== void 0 && many !== false && !isList) errors.push(`${location} has invalid \"many\"; expected false or an elementNullable descriptor`);\n\t\tif (candidate?.elementNullable !== void 0) errors.push(`${location} cannot have sibling \"elementNullable\"; put it inside \"many\"`);\n\t\tif (isList && candidate?.dict) errors.push(`${location} cannot have both \"many\" and \"dict\" modifiers`);\n\t}\n\tfor (const { namespaceId, name: modelName, model } of iterateIndexedModels(modelIndex)) for (const [fieldName, field] of Object.entries(model.fields)) validateField(`Model \"${namespaceId}:${modelName}\" field \"${fieldName}\"`, field);\n\tfor (const [namespaceKey, namespace] of Object.entries(contract.domain.namespaces)) {\n\t\tconst namespaceId = asNamespaceId(namespaceKey);\n\t\tfor (const [voName, vo] of Object.entries(namespace.valueObjects ?? {})) for (const [fieldName, field] of Object.entries(vo.fields)) validateField(`Value object \"${namespaceId}:${voName}\" field \"${fieldName}\"`, field);\n\t}\n}\n//#endregion\nexport { validateContractDomain };\n\n//# sourceMappingURL=validate-domain.mjs.map"],"mappings":";;;;AAIA,SAAS,kBAAkB,UAAU;CACpC,MAAM,wBAAwB,IAAI,IAAI;CACtC,KAAK,MAAM,CAAC,cAAc,cAAc,OAAO,QAAQ,SAAS,OAAO,UAAU,GAAG;EACnF,MAAM,cAAc,cAAc,YAAY;EAC9C,IAAI,oBAAoB,MAAM,IAAI,WAAW;EAC7C,IAAI,sBAAsB,KAAK,GAAG;GACjC,oCAAoC,IAAI,IAAI;GAC5C,MAAM,IAAI,aAAa,iBAAiB;EACzC;EACA,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAQ,UAAU,MAAM,GAAG,kBAAkB,IAAI,MAAM;GACzF;GACA;GACA;EACD,CAAC;CACF;CACA,OAAO;AACR;AACA,SAAS,YAAY,OAAO,KAAK;CAChC,OAAO,MAAM,IAAI,IAAI,SAAS,CAAC,EA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AAO,KAAK,IAAI,CAAC,CAAC,WAAW,KAAK,qBAAqB,QAAQ,OAAO,KAAK,oBAAoB;EACnL,IAAI,SAAS,KAAK,KAAK,SAAS,SAAS,CAAC,QAAQ,OAAO,KAAK,GAAG,SAAS,qEAAqE;EAC/I,IAAI,WAAW,oBAAoB,KAAK,GAAG,OAAO,KAAK,GAAG,SAAS,6DAA6D;EAChI,IAAI,UAAU,WAAW,MAAM,OAAO,KAAK,GAAG,SAAS,8CAA8C;CACtG;CACA,KAAK,MAAM,EAAE,aAAa,MAAM,WAAW,WAAW,qBAAqB,UAAU,GAAG,KAAK,MAAM,CAAC,WAAW,UAAU,OAAO,QAAQ,MAAM,MAAM,GAAG,cAAc,UAAU,YAAY,GAAG,UAAU,WAAW,UAAU,IAAI,KAAK;CACtO,KAAK,MAAM,CAAC,cAAc,cAAc,OAAO,QAAQ,SAAS,OAAO,UAAU,GAAG;EACnF,MAAM,cAAc,cAAc,YAAY;EAC9C,KAAK,MAAM,CAAC,QAAQ,OAAO,OAAO,QAAQ,UAAU,gBAAgB,CAAC,CAAC,GAAG,KAAK,MAAM,CAAC,WAAW,UAAU,OAAO,QAAQ,GAAG,MAAM,GAAG,cAAc,iBAAiB,YAAY,GAAG,OAAO,WAAW,UAAU,IAAI,KAAK;CACzN;AACD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as CrossReference, E as ContractWithDomain } from "./domain-envelope-C2vVIWGK-C5x7cBpU.mjs";
|
|
1
|
+
import { D as CrossReference, E as ContractWithDomain, T as ContractVariantEntry } from "./domain-envelope-C2vVIWGK-C5x7cBpU.mjs";
|
|
2
2
|
//#region ../../../1-framework/0-foundation/contract/dist/validate-domain.d.mts
|
|
3
3
|
//#region src/validate-domain.d.ts
|
|
4
4
|
interface DomainRelationShape {
|
|
@@ -13,7 +13,7 @@ interface DomainModelShape {
|
|
|
13
13
|
readonly discriminator?: {
|
|
14
14
|
readonly field: string;
|
|
15
15
|
};
|
|
16
|
-
readonly variants?: Record<string,
|
|
16
|
+
readonly variants?: Record<string, ContractVariantEntry>;
|
|
17
17
|
readonly base?: CrossReference;
|
|
18
18
|
readonly owner?: string;
|
|
19
19
|
}
|
|
@@ -23,4 +23,4 @@ interface DomainContractShape extends ContractWithDomain {
|
|
|
23
23
|
declare function validateContractDomain(contract: DomainContractShape): void;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { DomainModelShape as n, validateContractDomain as r, DomainContractShape as t };
|
|
26
|
-
//# sourceMappingURL=validate-domain-
|
|
26
|
+
//# sourceMappingURL=validate-domain-DaAswa8n.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate-domain-DaAswa8n.d.mts","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/validate-domain.d.mts"],"mappings":";;;UAEU;WACC,IAAI;WACJ;WACA;WACA;;UAED;WACC,QAAQ;WACR,YAAY,eAAe;WAC3B;aACE;;WAEF,WAAW,eAAe;WAC1B,OAAO;WACP;;UAED,4BAA4B;WAC3B,OAAO,eAAe;;iBAEhB,uBAAuB,UAAU"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/orm-framework",
|
|
3
|
-
"version": "8.0.0-rc.14-dev.
|
|
3
|
+
"version": "8.0.0-rc.14-dev.44",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -16,20 +16,20 @@
|
|
|
16
16
|
"uniku": "^0.5.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@internal/config": "8.0.0-rc.14-dev.
|
|
20
|
-
"@internal/contract": "8.0.0-rc.14-dev.
|
|
21
|
-
"@internal/contract-authoring": "8.0.0-rc.14-dev.
|
|
22
|
-
"@internal/errors": "8.0.0-rc.14-dev.
|
|
23
|
-
"@internal/framework-components": "8.0.0-rc.14-dev.
|
|
24
|
-
"@internal/ids": "8.0.0-rc.14-dev.
|
|
25
|
-
"@internal/operations": "8.0.0-rc.14-dev.
|
|
26
|
-
"@internal/psl-parser": "8.0.0-rc.14-dev.
|
|
27
|
-
"@internal/psl-printer": "8.0.0-rc.14-dev.
|
|
28
|
-
"@internal/ts-render": "8.0.0-rc.14-dev.
|
|
29
|
-
"@repo/tsconfig": "8.0.0-rc.14-dev.
|
|
30
|
-
"@internal/publish-surface": "8.0.0-rc.14-dev.
|
|
31
|
-
"@repo/tsdown": "8.0.0-rc.14-dev.
|
|
32
|
-
"@internal/utils": "8.0.0-rc.14-dev.
|
|
19
|
+
"@internal/config": "8.0.0-rc.14-dev.44",
|
|
20
|
+
"@internal/contract": "8.0.0-rc.14-dev.44",
|
|
21
|
+
"@internal/contract-authoring": "8.0.0-rc.14-dev.44",
|
|
22
|
+
"@internal/errors": "8.0.0-rc.14-dev.44",
|
|
23
|
+
"@internal/framework-components": "8.0.0-rc.14-dev.44",
|
|
24
|
+
"@internal/ids": "8.0.0-rc.14-dev.44",
|
|
25
|
+
"@internal/operations": "8.0.0-rc.14-dev.44",
|
|
26
|
+
"@internal/psl-parser": "8.0.0-rc.14-dev.44",
|
|
27
|
+
"@internal/psl-printer": "8.0.0-rc.14-dev.44",
|
|
28
|
+
"@internal/ts-render": "8.0.0-rc.14-dev.44",
|
|
29
|
+
"@repo/tsconfig": "8.0.0-rc.14-dev.44",
|
|
30
|
+
"@internal/publish-surface": "8.0.0-rc.14-dev.44",
|
|
31
|
+
"@repo/tsdown": "8.0.0-rc.14-dev.44",
|
|
32
|
+
"@internal/utils": "8.0.0-rc.14-dev.44",
|
|
33
33
|
"tsdown": "0.22.14",
|
|
34
34
|
"typescript": "5.9.3",
|
|
35
35
|
"vitest": "5.0.0-rc.2"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"codec-BSm2qNVe.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/codec.d.mts"],"mappings":";;;;;;;;;;;KAUK,qBAA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
{"version":3,"file":"validate-domain-DgY72oWI.mjs","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/validate-domain.mjs"],"sourcesContent":["import { t as asNamespaceId } from \"./namespace-id-asbWpwMw.mjs\";\nimport { t as ContractValidationError } from \"./contract-validation-error-DEiWp_EI.mjs\";\nimport { blindCast } from \"@internal/utils/casts\";\n//#region src/validate-domain.ts\nfunction indexDomainModels(contract) {\n\tconst index = /* @__PURE__ */ new Map();\n\tfor (const [namespaceKey, namespace] of Object.entries(contract.domain.namespaces)) {\n\t\tconst namespaceId = asNamespaceId(namespaceKey);\n\t\tlet modelsInNamespace = index.get(namespaceId);\n\t\tif (modelsInNamespace === void 0) {\n\t\t\tmodelsInNamespace = /* @__PURE__ */ new Map();\n\t\t\tindex.set(namespaceId, modelsInNamespace);\n\t\t}\n\t\tfor (const [name, model] of Object.entries(namespace.models)) modelsInNamespace.set(name, {\n\t\t\tnamespaceId,\n\t\t\tname,\n\t\t\tmodel\n\t\t});\n\t}\n\treturn index;\n}\nfunction lookupModel(index, ref) {\n\treturn index.get(ref.namespace)?.get(ref.model);\n}\nfunction* iterateIndexedModels(index) {\n\tfor (const modelsInNamespace of index.values()) for (const entry of modelsInNamespace.values()) yield entry;\n}\nfunction validateContractDomain(contract) {\n\tconst errors = [];\n\tconst modelIndex = indexDomainModels(contract);\n\tvalidateRoots(contract, modelIndex, errors);\n\tvalidateVariantsAndBases(modelIndex, errors);\n\tvalidateRelationTargets(modelIndex, errors);\n\tvalidateRelationNullability(modelIndex, errors);\n\tvalidateDiscriminators(modelIndex, errors);\n\tvalidateOwnership(contract, modelIndex, errors);\n\tvalidateValueObjectReferences(contract, errors);\n\tvalidateFieldModifiers(modelIndex, contract, errors);\n\tif (errors.length > 0) throw new ContractValidationError(`Contract domain validation failed:\\n- ${errors.join(\"\\n- \")}`, \"domain\");\n}\nfunction validateRoots(contract, modelIndex, errors) {\n\tconst seenRootTargets = /* @__PURE__ */ new Map();\n\tfor (const [rootKey, crossRef] of Object.entries(contract.roots)) {\n\t\tlet modelsInNamespace = seenRootTargets.get(crossRef.namespace);\n\t\tif (modelsInNamespace === void 0) {\n\t\t\tmodelsInNamespace = /* @__PURE__ */ new Set();\n\t\t\tseenRootTargets.set(crossRef.namespace, modelsInNamespace);\n\t\t}\n\t\tif (modelsInNamespace.has(crossRef.model)) errors.push(`Duplicate root value: \"${crossRef.namespace}:${crossRef.model}\" is mapped by multiple root keys`);\n\t\tmodelsInNamespace.add(crossRef.model);\n\t\tif (!lookupModel(modelIndex, crossRef)) errors.push(`Root \"${rootKey}\" references model \"${crossRef.namespace}:${crossRef.model}\" which does not exist in domain.namespaces`);\n\t}\n}\nfunction validateVariantsAndBases(modelIndex, errors) {\n\tfor (const { namespaceId, name: modelName, model } of iterateIndexedModels(modelIndex)) {\n\t\tif (model.variants) for (const variantName of Object.keys(model.variants)) {\n\t\t\tconst variantEntry = lookupModel(modelIndex, {\n\t\t\t\tnamespace: namespaceId,\n\t\t\t\tmodel: variantName\n\t\t\t});\n\t\t\tif (!variantEntry) {\n\t\t\t\terrors.push(`Model \"${namespaceId}:${modelName}\" lists variant \"${variantName}\" which does not exist at that namespace coordinate`);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tconst variantBase = variantEntry.model.base;\n\t\t\tif (variantBase?.namespace !== namespaceId || variantBase?.model !== modelName) errors.push(`Variant \"${namespaceId}:${variantName}\" has base \"${variantBase?.namespace ?? \"?\"}:${variantBase?.model ?? \"(none)\"}\" but expected \"${namespaceId}:${modelName}\"`);\n\t\t}\n\t\tif (model.base) {\n\t\t\tconst baseEntry = lookupModel(modelIndex, model.base);\n\t\t\tif (!baseEntry) {\n\t\t\t\terrors.push(`Model \"${namespaceId}:${modelName}\" has base \"${model.base.namespace}:${model.base.model}\" which does not exist in domain.namespaces`);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (!baseEntry.model.variants || !Object.hasOwn(baseEntry.model.variants, modelName)) errors.push(`Model \"${namespaceId}:${modelName}\" has base \"${model.base.namespace}:${model.base.model}\" which does not list it as a variant`);\n\t\t}\n\t}\n}\nfunction validateRelationTargets(modelIndex, errors) {\n\tfor (const { namespaceId, name: modelName, model } of iterateIndexedModels(modelIndex)) for (const [relName, relation] of Object.entries(model.relations ?? {})) {\n\t\tif (relation.to.space !== void 0) continue;\n\t\tif (!lookupModel(modelIndex, relation.to)) errors.push(`Relation \"${relName}\" on model \"${namespaceId}:${modelName}\" targets \"${relation.to.namespace}:${relation.to.model}\" which does not exist in domain.namespaces`);\n\t}\n}\nfunction relationKindLabel(relation) {\n\treturn relation.on === void 0 ? \"embed relation\" : `${relation.cardinality} relation`;\n}\nfunction validateRelationNullability(modelIndex, errors) {\n\tfor (const { namespaceId, name: modelName, model } of iterateIndexedModels(modelIndex)) for (const [relName, relation] of Object.entries(model.relations ?? {})) {\n\t\tconst location = `Relation \"${relName}\" on model \"${namespaceId}:${modelName}\"`;\n\t\tif (relation.on !== void 0 && (relation.cardinality === \"1:1\" || relation.cardinality === \"N:1\")) {\n\t\t\tif (relation.nullable !== void 0 && typeof relation.nullable !== \"boolean\") errors.push(`${location} is a ${relation.cardinality} relation and its \"nullable\" must be a boolean`);\n\t\t\tcontinue;\n\t\t}\n\t\tif (relation.nullable !== void 0) errors.push(`${location} is a ${relationKindLabel(relation)} and must not carry \"nullable\"`);\n\t}\n}\nfunction validateDiscriminators(modelIndex, errors) {\n\tfor (const { namespaceId, name: modelName, model } of iterateIndexedModels(modelIndex)) {\n\t\tif (model.discriminator) {\n\t\t\tif (!model.variants || Object.keys(model.variants).length === 0) errors.push(`Model \"${namespaceId}:${modelName}\" has discriminator but no variants`);\n\t\t\tif (!Object.hasOwn(model.fields, model.discriminator.field)) errors.push(`Discriminator field \"${model.discriminator.field}\" is not a field on model \"${namespaceId}:${modelName}\"`);\n\t\t}\n\t\tif (model.variants && Object.keys(model.variants).length > 0 && !model.discriminator) errors.push(`Model \"${namespaceId}:${modelName}\" has variants but no discriminator`);\n\t\tif (model.base) {\n\t\t\tif (model.discriminator) errors.push(`Model \"${namespaceId}:${modelName}\" has base and must not have discriminator`);\n\t\t\tif (model.variants && Object.keys(model.variants).length > 0) errors.push(`Model \"${namespaceId}:${modelName}\" has base and must not have variants`);\n\t\t}\n\t}\n}\nfunction validateOwnership(contract, modelIndex, errors) {\n\tfor (const { namespaceId, name: modelName, model } of iterateIndexedModels(modelIndex)) {\n\t\tif (!model.owner) continue;\n\t\tif (model.owner === modelName) errors.push(`Model \"${namespaceId}:${modelName}\" cannot own itself`);\n\t\tif (!lookupModel(modelIndex, {\n\t\t\tnamespace: namespaceId,\n\t\t\tmodel: model.owner\n\t\t})) errors.push(`Model \"${namespaceId}:${modelName}\" has owner \"${namespaceId}:${model.owner}\" which does not exist in domain.namespaces`);\n\t\tfor (const [rootKey, rootRef] of Object.entries(contract.roots)) if (rootRef.namespace === namespaceId && rootRef.model === modelName) errors.push(`Owned model \"${namespaceId}:${modelName}\" must not appear in roots (found as root \"${rootKey}\")`);\n\t}\n}\nfunction validateValueObjectReferences(contract, errors) {\n\tconst voNamesByNamespace = /* @__PURE__ */ new Map();\n\tfor (const [namespaceKey, namespace] of Object.entries(contract.domain.namespaces)) {\n\t\tconst namespaceId = asNamespaceId(namespaceKey);\n\t\tvoNamesByNamespace.set(namespaceId, new Set(Object.keys(namespace.valueObjects ?? {})));\n\t}\n\tfunction checkType(type, location, namespaceId) {\n\t\tif (!type) return;\n\t\tconst voNames = voNamesByNamespace.get(namespaceId) ?? /* @__PURE__ */ new Set();\n\t\tif (type.kind === \"valueObject\" && type.name && !voNames.has(type.name)) {\n\t\t\terrors.push(`${location} references value object \"${namespaceId}:${type.name}\" which does not exist in that namespace's valueObjects`);\n\t\t\treturn;\n\t\t}\n\t\tif (type.kind === \"union\") for (const member of type.members ?? []) checkType(member, location, namespaceId);\n\t}\n\tfor (const [namespaceKey, namespace] of Object.entries(contract.domain.namespaces)) {\n\t\tconst namespaceId = asNamespaceId(namespaceKey);\n\t\tfor (const [modelName, model] of Object.entries(namespace.models)) for (const [fieldName, field] of Object.entries(model.fields)) checkType(blindCast(field)?.type, `Model \"${namespaceId}:${modelName}\" field \"${fieldName}\"`, namespaceId);\n\t\tfor (const [voName, vo] of Object.entries(namespace.valueObjects ?? {})) for (const [fieldName, field] of Object.entries(vo.fields)) checkType(blindCast(field)?.type, `Value object \"${namespaceId}:${voName}\" field \"${fieldName}\"`, namespaceId);\n\t}\n}\nfunction validateFieldModifiers(modelIndex, contract, errors) {\n\tfunction validateField(location, field) {\n\t\tconst candidate = blindCast(field);\n\t\tconst many = candidate?.many;\n\t\tconst isList = typeof many === \"object\" && many !== null && !Array.isArray(many) && Object.keys(many).length === 1 && \"elementNullable\" in many && typeof many.elementNullable === \"boolean\";\n\t\tif (many !== void 0 && many !== false && !isList) errors.push(`${location} has invalid \"many\"; expected false or an elementNullable descriptor`);\n\t\tif (candidate?.elementNullable !== void 0) errors.push(`${location} cannot have sibling \"elementNullable\"; put it inside \"many\"`);\n\t\tif (isList && candidate?.dict) errors.push(`${location} cannot have both \"many\" and \"dict\" modifiers`);\n\t}\n\tfor (const { namespaceId, name: modelName, model } of iterateIndexedModels(modelIndex)) for (const [fieldName, field] of Object.entries(model.fields)) validateField(`Model \"${namespaceId}:${modelName}\" field \"${fieldName}\"`, field);\n\tfor (const [namespaceKey, namespace] of Object.entries(contract.domain.namespaces)) {\n\t\tconst namespaceId = asNamespaceId(namespaceKey);\n\t\tfor (const [voName, vo] of Object.entries(namespace.valueObjects ?? {})) for (const [fieldName, field] of Object.entries(vo.fields)) validateField(`Value object \"${namespaceId}:${voName}\" field \"${fieldName}\"`, field);\n\t}\n}\n//#endregion\nexport { validateContractDomain };\n\n//# sourceMappingURL=validate-domain.mjs.map"],"mappings":";;;;AAIA,SAAS,kBAAkB,UAAU;CACpC,MAAM,wBAAwB,IAAI,IAAI;CACtC,KAAK,MAAM,CAAC,cAAc,cAAc,OAAO,QAAQ,SAAS,OAAO,UAAU,GAAG;EACnF,MAAM,cAAc,c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