@prisma/orm-framework 8.0.0-rc.18-dev.31 → 8.0.0-rc.18-dev.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{authoring-BY3RNM--.d.mts → authoring-BJgarhJI.d.mts} +10 -8
- package/dist/authoring-BJgarhJI.d.mts.map +1 -0
- package/dist/{authoring-D77CrCtb.mjs → authoring-so3aBYD8.mjs} +70 -42
- package/dist/authoring-so3aBYD8.mjs.map +1 -0
- package/dist/{binder-Cm0N-oPu-deLbJ-j9.d.mts → binder-Cm0N-oPu-XR7EBW2L.d.mts} +12 -12
- package/dist/{binder-Cm0N-oPu-deLbJ-j9.d.mts.map → binder-Cm0N-oPu-XR7EBW2L.d.mts.map} +1 -1
- package/dist/codec-DGRG8oEH.mjs +56 -0
- package/dist/codec-DGRG8oEH.mjs.map +1 -0
- package/dist/{codec-CGFT5YKu.d.mts → codec-DkiEF2cQ.d.mts} +15 -3
- package/dist/codec-DkiEF2cQ.d.mts.map +1 -0
- package/dist/{codec-descriptor-DEfL2Kb6-B-vOB0ue.mjs → codec-descriptor-V2-N5Qmm-BR-5owl6.mjs} +3 -3
- package/dist/{codec-descriptor-DEfL2Kb6-B-vOB0ue.mjs.map → codec-descriptor-V2-N5Qmm-BR-5owl6.mjs.map} +1 -1
- package/dist/{codec-types-B5_YzEwo-DVCRRWlg.d.mts → codec-types-DjozIOvT-BIcpyFea.d.mts} +10 -2
- package/dist/codec-types-DjozIOvT-BIcpyFea.d.mts.map +1 -0
- package/dist/{components-BdXloTpj.d.mts → components-BbJVTEds.d.mts} +4 -4
- package/dist/{components-BdXloTpj.d.mts.map → components-BbJVTEds.d.mts.map} +1 -1
- package/dist/components.d.mts +16 -16
- package/dist/components.mjs +6 -6
- package/dist/components__authoring.d.mts +3 -3
- package/dist/components__authoring.mjs +1 -1
- package/dist/components__codec.d.mts +3 -3
- package/dist/components__codec.mjs +4 -4
- package/dist/components__components.d.mts +3 -3
- package/dist/components__control.d.mts +2 -2
- package/dist/components__control.mjs +1 -1
- package/dist/components__emission.d.mts +3 -3
- package/dist/components__execution.d.mts +1 -1
- package/dist/components__psl-ast.d.mts +3 -3
- package/dist/components__runtime.d.mts +1 -1
- package/dist/{config-types-BXw8w6h9.d.mts → config-types-DshiyAml.d.mts} +9 -9
- package/dist/{config-types-BXw8w6h9.d.mts.map → config-types-DshiyAml.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 +5 -5
- package/dist/contract-authoring.mjs +3 -3
- package/dist/contract-authoring.mjs.map +1 -1
- package/dist/contract.d.mts +3 -3
- package/dist/contract.mjs +1 -1
- package/dist/contract__enum-accessor.d.mts +1 -1
- package/dist/contract__enum-accessor.mjs +1 -1
- package/dist/contract__types.d.mts +2 -2
- package/dist/{control-Bv8UK63M-dBsEDbTP.mjs → control-Bv8UK63M-w9cKGBgd.mjs} +2 -2
- package/dist/{control-Bv8UK63M-dBsEDbTP.mjs.map → control-Bv8UK63M-w9cKGBgd.mjs.map} +1 -1
- package/dist/{control-C_zs63JQ-BFg3u8U5.d.mts → control-C_zs63JQ-Bzie4S4Y.d.mts} +2 -2
- package/dist/{control-C_zs63JQ-BFg3u8U5.d.mts.map → control-C_zs63JQ-Bzie4S4Y.d.mts.map} +1 -1
- package/dist/{control-BJypoZfu.mjs → control-DTKpwU3x.mjs} +2 -2
- package/dist/{control-BJypoZfu.mjs.map → control-DTKpwU3x.mjs.map} +1 -1
- package/dist/control-GTC0UlpN.d.mts +1 -0
- package/dist/{control-D2f07K6R.d.mts → control-i2ob_mHM.d.mts} +9 -9
- package/dist/{control-D2f07K6R.d.mts.map → control-i2ob_mHM.d.mts.map} +1 -1
- package/dist/{data-type-DPhZLx30-DP2Kmnf5.mjs → data-type-CVNHtd6y-BFa_VnCb.mjs} +4 -3
- package/dist/data-type-CVNHtd6y-BFa_VnCb.mjs.map +1 -0
- package/dist/emission-XBYOUuHN.d.mts +2 -0
- package/dist/{emission-types-CH6r1DQ8-eg79TO6Y.d.mts → emission-types-sz0-pyyS-D3-ssRUu.d.mts} +4 -4
- package/dist/{emission-types-CH6r1DQ8-eg79TO6Y.d.mts.map → emission-types-sz0-pyyS-D3-ssRUu.d.mts.map} +1 -1
- package/dist/{enum-accessor-BUVBc6ZH.d.mts → enum-accessor-2OZgavDX.d.mts} +4 -2
- package/dist/enum-accessor-2OZgavDX.d.mts.map +1 -0
- package/dist/{enum-accessor-CAlX-HOl.mjs → enum-accessor-B-A2wNok.mjs} +17 -4
- package/dist/enum-accessor-B-A2wNok.mjs.map +1 -0
- package/dist/errors.d.mts +4 -4
- package/dist/errors.mjs +3 -3
- package/dist/errors__control.d.mts +2 -2
- package/dist/errors__control.mjs +1 -1
- package/dist/errors__execution.d.mts +1 -1
- package/dist/errors__execution.mjs +1 -1
- package/dist/errors__migration.d.mts +1 -1
- package/dist/errors__migration.mjs +1 -1
- package/dist/{execution-okmamhD2.mjs → execution-C94w3M_6.mjs} +2 -2
- package/dist/{execution-okmamhD2.mjs.map → execution-C94w3M_6.mjs.map} +1 -1
- package/dist/{execution-B_f4fR5R.d.mts → execution-CQcplRZV.d.mts} +3 -3
- package/dist/{execution-B_f4fR5R.d.mts.map → execution-CQcplRZV.d.mts.map} +1 -1
- package/dist/{execution-DbU_RTsu.d.mts → execution-oZAqgZPd.d.mts} +2 -2
- package/dist/{execution-DbU_RTsu.d.mts.map → execution-oZAqgZPd.d.mts.map} +1 -1
- package/dist/{framework-authoring-CdKfPz3Y-BGocjz36.d.mts → framework-authoring-D3AsJskV-BALZR-J9.d.mts} +131 -10
- package/dist/framework-authoring-D3AsJskV-BALZR-J9.d.mts.map +1 -0
- package/dist/{framework-components-CDiuJNYP-CwszHrSy.d.mts → framework-components-CTibZus8-BK5QlxM-.d.mts} +5 -5
- package/dist/{framework-components-CDiuJNYP-CwszHrSy.d.mts.map → framework-components-CTibZus8-BK5QlxM-.d.mts.map} +1 -1
- package/dist/ids.d.mts +1 -1
- package/dist/{migration-BfUEEHWP.mjs → migration-BN_eRcEi.mjs} +2 -2
- package/dist/{migration-BfUEEHWP.mjs.map → migration-BN_eRcEi.mjs.map} +1 -1
- package/dist/{migration-BmIe8pwt.d.mts → migration-DFDepmTh.d.mts} +2 -2
- package/dist/{migration-BmIe8pwt.d.mts.map → migration-DFDepmTh.d.mts.map} +1 -1
- package/dist/{parse-CJtBvEYy-wRfXv1HQ.d.mts → parse-CJtBvEYy-CtMI21Fx.d.mts} +6 -6
- package/dist/{parse-CJtBvEYy-wRfXv1HQ.d.mts.map → parse-CJtBvEYy-CtMI21Fx.d.mts.map} +1 -1
- package/dist/psl-ast-DOJH1ZST.d.mts +2 -0
- package/dist/{psl-ast-DJhMWL6S-Bwyl-NrU.d.mts → psl-ast-JQykH4Uz-D6tMHdnz.d.mts} +3 -3
- package/dist/{psl-ast-DJhMWL6S-Bwyl-NrU.d.mts.map → psl-ast-JQykH4Uz-D6tMHdnz.d.mts.map} +1 -1
- package/dist/psl-parser.d.mts +19 -14
- package/dist/psl-parser.d.mts.map +1 -1
- package/dist/psl-parser.mjs +145 -116
- package/dist/psl-parser.mjs.map +1 -1
- package/dist/psl-parser__format.d.mts +1 -1
- package/dist/psl-parser__interpret.d.mts +6 -6
- package/dist/psl-parser__syntax.d.mts +1 -1
- package/dist/psl-printer.d.mts +4 -4
- package/dist/{runtime-CsMROQco.d.mts → runtime-BXPhK_oW.d.mts} +2 -2
- package/dist/{runtime-CsMROQco.d.mts.map → runtime-BXPhK_oW.d.mts.map} +1 -1
- package/dist/{written-value-CQt_C72W-aKFkxVmA.d.mts → temporal-presets-adW53vQH-DPdAe_Oe.d.mts} +4 -125
- package/dist/temporal-presets-adW53vQH-DPdAe_Oe.d.mts.map +1 -0
- package/dist/{types-BBb-tMcj.d.mts → types-GNXJ7xW2.d.mts} +16 -3
- package/dist/types-GNXJ7xW2.d.mts.map +1 -0
- package/dist/{types-import-spec-B2nK2jwW-DkF7t1NL.d.mts → types-import-spec-hkPsnreE-C-fa8812.d.mts} +3 -3
- package/dist/{types-import-spec-B2nK2jwW-DkF7t1NL.d.mts.map → types-import-spec-hkPsnreE-C-fa8812.d.mts.map} +1 -1
- package/package.json +15 -15
- package/dist/authoring-BY3RNM--.d.mts.map +0 -1
- package/dist/authoring-D77CrCtb.mjs.map +0 -1
- package/dist/codec-BYGt3r-S.mjs +0 -28
- package/dist/codec-BYGt3r-S.mjs.map +0 -1
- package/dist/codec-CGFT5YKu.d.mts.map +0 -1
- package/dist/codec-types-B5_YzEwo-DVCRRWlg.d.mts.map +0 -1
- package/dist/control-GrJDRvbD.d.mts +0 -1
- package/dist/data-type-DPhZLx30-DP2Kmnf5.mjs.map +0 -1
- package/dist/emission-D9fjPyAg.d.mts +0 -2
- package/dist/enum-accessor-BUVBc6ZH.d.mts.map +0 -1
- package/dist/enum-accessor-CAlX-HOl.mjs.map +0 -1
- package/dist/framework-authoring-CdKfPz3Y-BGocjz36.d.mts.map +0 -1
- package/dist/psl-ast-BrpUfqBu.d.mts +0 -2
- package/dist/types-BBb-tMcj.d.mts.map +0 -1
- package/dist/written-value-CQt_C72W-aKFkxVmA.d.mts.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as PslParserOptions } from "./config-types-
|
|
1
|
+
import { h as PslParserOptions } from "./config-types-DshiyAml.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 {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as Contract } from "./contract-types-DEIEpzU_-DvAVuBr5.mjs";
|
|
2
|
-
import { C as AuthoringPslBlockDescriptorNamespace, D as AuthoringTypeConstructorDescriptor, Q as instantiateAuthoringFieldPreset, U as PslSpan, n as AuthoringArgumentDescriptor, p as AuthoringFieldPresetDescriptor } from "./framework-authoring-CdKfPz3Y-BGocjz36.mjs";
|
|
3
2
|
import { r as Result } from "./result-BYCOANWy.mjs";
|
|
4
|
-
import "./authoring-
|
|
5
|
-
import "./
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
3
|
+
import { C as AuthoringPslBlockDescriptorNamespace, D as AuthoringTypeConstructorDescriptor, G as PslSpan, gt as instantiateAuthoringFieldPreset, n as AuthoringArgumentDescriptor, p as AuthoringFieldPresetDescriptor } from "./framework-authoring-D3AsJskV-BALZR-J9.mjs";
|
|
4
|
+
import "./authoring-BJgarhJI.mjs";
|
|
5
|
+
import "./psl-ast-DOJH1ZST.mjs";
|
|
6
|
+
import { c as ContractSourceProvider, n as ContractSourceContext, o as ContractSourceDiagnostics, p as PslContractSourceProvider, r as ContractSourceDiagnostic } from "./config-types-DshiyAml.mjs";
|
|
7
|
+
import { B as PslDiagnosticCollector, V as PslSources, d as DiagnosticSource, f as DocumentAst, z as PslDiagnostic } from "./parse-CJtBvEYy-CtMI21Fx.mjs";
|
|
8
|
+
import { Ct as ResolvedAttributeArg, Et as ResolvedTypeConstructorCall, L as FieldSymbol, kt as SymbolTable, l as Binder, p as BlockSymbol } from "./binder-Cm0N-oPu-XR7EBW2L.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-i8RaVWVa-7fRwlCPP.mjs";
|
|
2
|
-
import { $ as TypeAnnotationAst, A as NamespaceDeclarationAst, C as IdentifierAst, D as ModelAttributeAst, E as MixinInclusionAst, F as ParseDiagnostic, G as StringLiteralExprAst, H as QualifiedNameAst, I as ParseResult, J as SyntaxKind, K as StringLiteralQuote, L as PathExprAst, M as NumberLiteralExprAst, N as ObjectFieldAst, O as ModelDeclarationAst, P as ObjectLiteralExprAst, Q as TokenAtOffset, R as Position, S as HasDocComment, T as MixinDeclarationAst, U as Range, V as PslSources, W as SourceFile, X as SyntaxToken, Y as SyntaxNode, Z as TaggedLiteralExprAst, _ as GenericBlockDeclarationAst, a as AttributeAst, b as GreenNode, c as BracedBlock, ct as filterChildren, dt as greenNode, et as TypesBlockAst, f as DocumentAst, ft as greenToken, g as FunctionCallAst, h as FieldDeclarationAst, ht as printSyntax, i as AttributeArgListAst, it as createSyntaxTree, j as NamespaceMemberAst, k as NamedTypeDeclarationAst, l as CompositeTypeDeclarationAst, lt as findChildToken, m as FieldAttributeAst, mt as parse, n as AstNode, nt as castExpression, o as BlockMemberAst, p as ExpressionAst, q as SyntaxElement, r as AttributeArgAst, s as BooleanLiteralExprAst, st as dottedPathsIn, t as ArrayLiteralAst, tt as any, u as DeclarationAst, ut as findFirstChild, v as GenericBlockMemberAst, w as KeyValuePairAst, x as GreenToken, y as GreenElement } from "./parse-CJtBvEYy-
|
|
2
|
+
import { $ as TypeAnnotationAst, A as NamespaceDeclarationAst, C as IdentifierAst, D as ModelAttributeAst, E as MixinInclusionAst, F as ParseDiagnostic, G as StringLiteralExprAst, H as QualifiedNameAst, I as ParseResult, J as SyntaxKind, K as StringLiteralQuote, L as PathExprAst, M as NumberLiteralExprAst, N as ObjectFieldAst, O as ModelDeclarationAst, P as ObjectLiteralExprAst, Q as TokenAtOffset, R as Position, S as HasDocComment, T as MixinDeclarationAst, U as Range, V as PslSources, W as SourceFile, X as SyntaxToken, Y as SyntaxNode, Z as TaggedLiteralExprAst, _ as GenericBlockDeclarationAst, a as AttributeAst, b as GreenNode, c as BracedBlock, ct as filterChildren, dt as greenNode, et as TypesBlockAst, f as DocumentAst, ft as greenToken, g as FunctionCallAst, h as FieldDeclarationAst, ht as printSyntax, i as AttributeArgListAst, it as createSyntaxTree, j as NamespaceMemberAst, k as NamedTypeDeclarationAst, l as CompositeTypeDeclarationAst, lt as findChildToken, m as FieldAttributeAst, mt as parse, n as AstNode, nt as castExpression, o as BlockMemberAst, p as ExpressionAst, q as SyntaxElement, r as AttributeArgAst, s as BooleanLiteralExprAst, st as dottedPathsIn, t as ArrayLiteralAst, tt as any, u as DeclarationAst, ut as findFirstChild, v as GenericBlockMemberAst, w as KeyValuePairAst, x as GreenToken, y as GreenElement } from "./parse-CJtBvEYy-CtMI21Fx.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 {
|
package/dist/psl-printer.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as AuthoringPslBlockDescriptorNamespace } from "./framework-authoring-
|
|
2
|
-
import "./authoring-
|
|
3
|
-
import { f as PslDocumentAst } from "./psl-ast-
|
|
4
|
-
import "./psl-ast-
|
|
1
|
+
import { C as AuthoringPslBlockDescriptorNamespace } from "./framework-authoring-D3AsJskV-BALZR-J9.mjs";
|
|
2
|
+
import "./authoring-BJgarhJI.mjs";
|
|
3
|
+
import { f as PslDocumentAst } from "./psl-ast-JQykH4Uz-D6tMHdnz.mjs";
|
|
4
|
+
import "./psl-ast-DOJH1ZST.mjs";
|
|
5
5
|
//#region ../../../1-framework/2-authoring/psl-printer/dist/index.d.mts
|
|
6
6
|
//#region src/print-psl.d.ts
|
|
7
7
|
type PslBlockDescriptorsNamespace = AuthoringPslBlockDescriptorNamespace;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { W as PlanMeta } from "./domain-envelope-CN721GnP-4huRt7Wc.mjs";
|
|
2
2
|
import { n as ContractExecutionSection } from "./contract-types-DEIEpzU_-DvAVuBr5.mjs";
|
|
3
|
-
import { a as CodecCallContext } from "./codec-types-
|
|
3
|
+
import { a as CodecCallContext } from "./codec-types-DjozIOvT-BIcpyFea.mjs";
|
|
4
4
|
import { t as RuntimeErrorEnvelope } from "./runtime-error-CO4MA3Px-YW5SCUcH.mjs";
|
|
5
5
|
//#region ../../../1-framework/1-core/framework-components/dist/runtime.d.mts
|
|
6
6
|
//#region src/annotations.d.ts
|
|
@@ -894,4 +894,4 @@ interface LaneMetaBuilder<K extends OperationKind> extends MetaBuilder<K> {
|
|
|
894
894
|
declare function createMetaBuilder<K extends OperationKind>(kind: K, terminalName: string): LaneMetaBuilder<K>;
|
|
895
895
|
//#endregion
|
|
896
896
|
export { RuntimeStatementStats as $, GeneratorStability as A, QueryPlan as B, ClientActivityRegistry as C, defineAnnotation as Ct, DefineAnnotationOptions as D, startClientActivity as Dt, CrossFamilyMiddleware as E, runtimeAborted as Et, MutationDefaultsOp as F, RuntimeAbortedPhase as G, RelationKeys as H, MutationDefaultsOptions as I, RuntimeExecuteOptions as J, RuntimeCore as K, OperationKind as L, MetaBuilder as M, MutationDefaultGeneratorContributor as N, ExecuteInterceptResult as O, startTransactionActivity as Ot, MutationDefaults as P, RuntimeMutationDefaultGenerator as Q, ParamRefMutator as R, ClientActivityOptions as S, createStateStore as St, ClientActivityRun as T, raceAgainstAbort as Tt, RelationNamesOf as U, RUNTIME_ABORTED as V, ResultType as W, RuntimeLog as X, RuntimeExecutor as Y, RuntimeMiddleware as Z, AsyncIterableResult as _, checkAborted as _t, ActivityContext as a, StatementActivityRun as at, ClientActivityEnded as b, createContextBeneath as bt, ActivityFinalizedResult as c, TransactionActivity as ct, ActivityParent as d, TransactionEnded as dt, Scalars as et, ActivityStateStore as f, TransactionSettlement as ft, AppliedMutationDefault as g, assertMutationDefaultGeneratorsAvailable as gt, AnnotationValue as h, assertAnnotationsApplicable as ht, ActivityChildSlot as i, StatementActivity as it, LaneMetaBuilder as j, ExecutionPlan as k, streamStatement as kt, ActivityInterceptResult as l, TransactionActivityOptions as lt, AnnotationSource as m, applyMutationDefaults as mt, ActivityBase as n, ShapeSpec as nt, ActivityContextFields as o, StatementEnded as ot, AnnotationHandle as p, ValidAnnotations as pt, RuntimeCoreOptions as q, ActivityChild as r, StartActivity as rt, ActivityEndedResult as s, StatementOptions as st, Activity as t, Shape as tt, ActivityObserver as u, TransactionActivityRun as ut, ClientActivity as v, checkMiddlewareCompatibility as vt, ClientActivityResult as w, executeStatement as wt, ClientActivityKind as x, createMetaBuilder as xt, ClientActivityEnd as y, collectMutationDefaultGenerators as yt, QueryInterceptResult as z };
|
|
897
|
-
//# sourceMappingURL=runtime-
|
|
897
|
+
//# sourceMappingURL=runtime-BXPhK_oW.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-
|
|
1
|
+
{"version":3,"file":"runtime-BXPhK_oW.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/runtime.d.mts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;KAqBK;;;;;;;;;;;;UAYK,gBAAgB,SAAS,cAAc;WACtC;WACA;WACA,OAAO;WACP,cAAc,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA2C3B,iBAAiB,SAAS,cAAc;GAC/C,OAAO,UAAU,gBAAgB,SAAS;WAClC;WACA,cAAc,YAAY;EACnC,KAAK,QAAQ,mBAAmB;;;KAG7B;WACM;aACE,cAAc;;;WAGhB,aAAa;;;;;;;;;;;;;;;;;;;;;;;;UAwBd,wBAAwB,cAAc;WACrC;WACA,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuCjB,iBAAiB,mBAAmB,cAAc,eAAe,SAAS,wBAAwB,WAAW,iBAAiB,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAsDnJ,iBAAiB,UAAU,eAAe,oBAAoB,yBAAyB,gCAAgC,WAAW,KAAK,GAAG,WAAW,sBAAsB,SAAS,SAAS,UAAU,QAAQ,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;iBAwBtN,4BAA4B,sBAAsB,yBAAyB,kBAAkB,MAAM,eAAe;;;;;;;;;;;;;;;;;cAiBrH;;KAET;;;;;;;;;;iBAUY,eAAe,OAAO,qBAAqB,kBAAkB;;;cAGhE,oBAAoB,gB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AEhC,2BAA2B,iBAAiB;WAC3C,YAAY,cAAc;WAC1B,SAAS,sBAAsB;;WAE/B,QAAQ;;WAER;;;;;iBAKM,yBAAyB,iBAAiB,iBAAiB,SAAS,2BAA2B,YAAY,QAAQ,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAiCjJ,YAAY,UAAU;EAC9B,SAAS,GAAG,cAAc,eAAe,YAAY,UAAU,QAAQ,gBAAgB,GAAG;;;;;;;;;;;;UAYlF,gBAAgB,UAAU,uBAAuB,YAAY;WAC5D,aAAa,oBAAoB,yBAAyB;;;;;;;;;;;iBAWpD,kBAAkB,UAAU,eAAe,MAAM,GAAG,uBAAuB,gBAAgB"}
|
package/dist/{written-value-CQt_C72W-aKFkxVmA.d.mts → temporal-presets-adW53vQH-DPdAe_Oe.d.mts}
RENAMED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { E as AuthoringTemplateValue, N as DataTypeAuthoringEntry, T as AuthoringStorageTypeTemplate, W as ScalarTypeConstructorOutput } from "./framework-authoring-CdKfPz3Y-BGocjz36.mjs";
|
|
1
|
+
import { E as AuthoringTemplateValue, T as AuthoringStorageTypeTemplate, Y as ScalarTypeConstructorOutput } from "./framework-authoring-D3AsJskV-BALZR-J9.mjs";
|
|
3
2
|
import { c as MutationDefaultGeneratorDescriptor } from "./mutation-default-types-js6llINX-WGmpaAAL.mjs";
|
|
4
|
-
|
|
5
|
-
//#region ../../../1-framework/1-core/framework-components/dist/written-value-CQt_C72W.d.mts
|
|
3
|
+
//#region ../../../1-framework/1-core/framework-components/dist/temporal-presets-adW53vQH.d.mts
|
|
6
4
|
//#region src/shared/tagged-literal.d.ts
|
|
7
5
|
/**
|
|
8
6
|
* `text` is the canonical value of the literal. Every failure `offset` is an
|
|
@@ -188,124 +186,5 @@ declare function temporalCodecPreset<const Storage extends PresetStorageTemplate
|
|
|
188
186
|
};
|
|
189
187
|
};
|
|
190
188
|
//#endregion
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
type WrittenValue = {
|
|
194
|
-
readonly kind: 'tag';
|
|
195
|
-
readonly tag: string;
|
|
196
|
-
readonly text: string;
|
|
197
|
-
} | {
|
|
198
|
-
readonly kind: 'string';
|
|
199
|
-
readonly text: string;
|
|
200
|
-
} | {
|
|
201
|
-
readonly kind: 'boolean';
|
|
202
|
-
readonly value: boolean;
|
|
203
|
-
} | {
|
|
204
|
-
readonly kind: 'number';
|
|
205
|
-
readonly text: string;
|
|
206
|
-
} | {
|
|
207
|
-
readonly kind: 'list';
|
|
208
|
-
readonly elements: readonly WrittenValue[];
|
|
209
|
-
};
|
|
210
|
-
type WrittenScalar = Exclude<WrittenValue, {
|
|
211
|
-
readonly kind: 'list';
|
|
212
|
-
}>;
|
|
213
|
-
/** A stack's registered data types with their authoring entries, and the data type each of its codecs represents. */
|
|
214
|
-
interface DataTypeSupport {
|
|
215
|
-
readonly entries: Readonly<Record<string, DataTypeAuthoringEntry>>;
|
|
216
|
-
readonly lookup: DataTypeLookup;
|
|
217
|
-
readonly dataTypeOfCodec: (codecId: string) => DataTypeId | undefined;
|
|
218
|
-
}
|
|
219
|
-
type ReadRefusal = {
|
|
220
|
-
readonly kind: 'unreadable';
|
|
221
|
-
readonly message: string;
|
|
222
|
-
} | {
|
|
223
|
-
readonly kind: 'unknown-tag';
|
|
224
|
-
readonly tag: string;
|
|
225
|
-
readonly known: readonly string[];
|
|
226
|
-
} | {
|
|
227
|
-
readonly kind: 'unwritable';
|
|
228
|
-
readonly syntax: 'string' | 'boolean' | 'number';
|
|
229
|
-
};
|
|
230
|
-
type CastRefusal = {
|
|
231
|
-
readonly kind: 'no-cast';
|
|
232
|
-
readonly receivingType: DataTypeId;
|
|
233
|
-
/** The parameters the receiving position holds its value under. */
|
|
234
|
-
readonly receivingParams: DataTypeParams;
|
|
235
|
-
readonly valueType: DataTypeId;
|
|
236
|
-
readonly casts: readonly string[];
|
|
237
|
-
} | {
|
|
238
|
-
readonly kind: 'unreadable';
|
|
239
|
-
readonly message: string;
|
|
240
|
-
} | {
|
|
241
|
-
/** The receiving type does not hold the value under the receiving position's parameters. */
|
|
242
|
-
readonly kind: 'refused-by-type';
|
|
243
|
-
readonly receivingType: DataTypeId;
|
|
244
|
-
readonly message: string;
|
|
245
|
-
};
|
|
246
|
-
/** A cast-rule refusal worded for a diagnostic. */
|
|
247
|
-
interface RefusalDescription {
|
|
248
|
-
readonly code: 'PSL_UNKNOWN_LITERAL_TAG' | 'PSL_VALUE_TYPE_INCOMPATIBLE' | 'PSL_INVALID_LITERAL';
|
|
249
|
-
readonly message: string;
|
|
250
|
-
}
|
|
251
|
-
/** A syntax a value is written in, with the phrase a diagnostic names it by. */
|
|
252
|
-
type WrittenForm = {
|
|
253
|
-
readonly kind: 'tag';
|
|
254
|
-
readonly tag: string;
|
|
255
|
-
readonly phrase: string;
|
|
256
|
-
} | {
|
|
257
|
-
readonly kind: 'string' | 'boolean' | 'number';
|
|
258
|
-
readonly phrase: string;
|
|
259
|
-
};
|
|
260
|
-
/** What a refusal tells the author to write: the forms the position admits, and an exact rewrite of the written value when there is one. */
|
|
261
|
-
interface RefusalGuidance {
|
|
262
|
-
/** Each form the position admits, as {@link admittedForms} lists them. */
|
|
263
|
-
readonly forms: readonly WrittenForm[];
|
|
264
|
-
/** The written value rewritten in an admitted form, as in ``sql`8` ``. */
|
|
265
|
-
readonly rewrite: string | undefined;
|
|
266
|
-
}
|
|
267
|
-
/**
|
|
268
|
-
* Words a refusal of the cast rule. The message leads with what to write; the types are named only when the value has a form the position admits and its type is still refused, such as a number too large for the receiving type.
|
|
269
|
-
*/
|
|
270
|
-
declare function describeRefusal(refusal: ReadRefusal | CastRefusal, support: DataTypeSupport, guidance: RefusalGuidance): RefusalDescription;
|
|
271
|
-
/** `Expected <forms>`, the forms joined with `or`: the start of every refusal that says what to write. */
|
|
272
|
-
declare function describeExpected(forms: readonly WrittenForm[]): string;
|
|
273
|
-
/**
|
|
274
|
-
* Words a value of type `valueType` that `receivingType` refuses, where `guidance.forms` may be written. The types are named only when the value has one of those forms.
|
|
275
|
-
*/
|
|
276
|
-
declare function describeRefusedValueType(refused: {
|
|
277
|
-
readonly receivingType: DataTypeId;
|
|
278
|
-
readonly valueType: DataTypeId;
|
|
279
|
-
}, support: DataTypeSupport, guidance: RefusalGuidance): string;
|
|
280
|
-
/**
|
|
281
|
-
* The literal to write in place of a quoted string that `receivingType` refuses under `receivingParams`: the string as a literal of the first tag the type admits. `undefined` when the value is not a quoted string, the type admits no tag, the literal would not read back as the same text, or the type would refuse the literal too.
|
|
282
|
-
*/
|
|
283
|
-
declare function exactRewrite(support: DataTypeSupport, receiving: {
|
|
284
|
-
readonly receivingType: DataTypeId;
|
|
285
|
-
readonly receivingParams: DataTypeParams;
|
|
286
|
-
}, written: WrittenScalar): string | undefined;
|
|
287
|
-
interface FoundEntry {
|
|
288
|
-
readonly key: string;
|
|
289
|
-
readonly entry: DataTypeAuthoringEntry;
|
|
290
|
-
}
|
|
291
|
-
/** The entry a tag names, or `undefined` when no pack registered that tag. */
|
|
292
|
-
declare function entryForTag(support: DataTypeSupport, tag: string): FoundEntry | undefined;
|
|
293
|
-
/** The entry that reads a plain string, boolean or number, or `undefined` when none does. */
|
|
294
|
-
declare function entryForPlain(support: DataTypeSupport, syntax: 'string' | 'boolean' | 'number'): FoundEntry | undefined;
|
|
295
|
-
/** Every tag a stack registers, in the order the entries were merged. */
|
|
296
|
-
declare function knownTags(support: DataTypeSupport): readonly string[];
|
|
297
|
-
/** Read one written value through the authoring entry for its syntax, as a value its type constructs. */
|
|
298
|
-
declare function readWrittenValue(support: DataTypeSupport, written: WrittenScalar): Result<DataTypeValue, ReadRefusal>;
|
|
299
|
-
/** Take a value into the receiving type, directly or through the cast that type declares; the receiving type constructs the result under `receivingParams`, the parameters of the position that receives it. */
|
|
300
|
-
declare function castTypedValue(support: DataTypeSupport, receivingType: DataTypeId, receivingParams: DataTypeParams, value: DataTypeValue): Result<DataTypeValue, CastRefusal>;
|
|
301
|
-
/** The tags a position of `dataType` admits: its own tag, then the tags of the types it casts from. */
|
|
302
|
-
declare function admittedTags(support: DataTypeSupport, dataType: DataTypeId): readonly string[];
|
|
303
|
-
/** The form a value of a tagged literal's type is written in. */
|
|
304
|
-
declare function tagForm(tag: string): WrittenForm;
|
|
305
|
-
/** Each form a position receiving every one of `receivingTypes` admits, once, in order: ``sql`...` ``, `true or false`. */
|
|
306
|
-
declare function admittedForms(support: DataTypeSupport, receivingTypes: readonly DataTypeId[]): readonly WrittenForm[];
|
|
307
|
-
/** How a position of `dataType` can be written, for a diagnostic: ``sql`...` ``, `true or false`. */
|
|
308
|
-
declare function describeAdmittedForms(support: DataTypeSupport, dataType: DataTypeId): string;
|
|
309
|
-
//#endregion
|
|
310
|
-
export { readWrittenValue as A, describeTaggedLiteralFailure as C, knownTags as D, exactRewrite as E, temporalCodecPreset as F, temporalPhaseTemplate as I, temporalPhaseTemplateWithParams as L, resolveTemplateTagEscapes as M, tagForm as N, printTaggedLiteral as O, temporalAuthoringPresets as P, timestampNowControlDescriptor as R, describeRefusedValueType as S, entryForTag as T, canonicalizeTaggedLiteralBody as _, RefusalDescription as a, describeExpected as b, TEMPORAL_ON_CREATE_ARG as c, TaggedLiteralCanonicalization as d, WrittenForm as f, admittedTags as g, admittedForms as h, ReadRefusal as i, resolvePslBacktickEscapes as j, printedTaggedLiteralReadsBack as k, TEMPORAL_ON_UPDATE_ARG as l, WrittenValue as m, DataTypeSupport as n, RefusalGuidance as o, WrittenScalar as p, PresetStorageTemplate as r, TAGGED_LITERAL_MAX_BYTES as s, CastRefusal as t, TIMESTAMP_NOW_GENERATOR_ID as u, castTypedValue as v, entryForPlain as w, describeRefusal as x, describeAdmittedForms as y, tsTaggedTemplateSource as z };
|
|
311
|
-
//# sourceMappingURL=written-value-CQt_C72W-aKFkxVmA.d.mts.map
|
|
189
|
+
export { timestampNowControlDescriptor as _, TIMESTAMP_NOW_GENERATOR_ID as a, describeTaggedLiteralFailure as c, resolvePslBacktickEscapes as d, resolveTemplateTagEscapes as f, temporalPhaseTemplateWithParams as g, temporalPhaseTemplate as h, TEMPORAL_ON_UPDATE_ARG as i, printTaggedLiteral as l, temporalCodecPreset as m, TAGGED_LITERAL_MAX_BYTES as n, TaggedLiteralCanonicalization as o, temporalAuthoringPresets as p, TEMPORAL_ON_CREATE_ARG as r, canonicalizeTaggedLiteralBody as s, PresetStorageTemplate as t, printedTaggedLiteralReadsBack as u, tsTaggedTemplateSource as v };
|
|
190
|
+
//# sourceMappingURL=temporal-presets-adW53vQH-DPdAe_Oe.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"temporal-presets-adW53vQH-DPdAe_Oe.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/temporal-presets-adW53vQH.d.mts"],"mappings":";;;;;;;;;KAQK;WACM;WACA;;WAEA;WACA;WACA;;cAEG;;iBAEG,6BAA6B;;iBAE7B,0BAA0B;;iBAE1B,0BAA0B;;;;;;;;;iBAS1B,8BAA8B,mBAAmB;;;;;;;;iBAQjD,mBAAmB,aAAa;;iBAEhC,8BAA8B;;;;;;;;iBAQ9B,uBAAuB,aAAa;WAC1C;WACA;;;;;;;KAON,wBAAwB,8BAA8B;;;;cAI7C;;iBAEG,iCAAiC;;;;iBAIjC,+BAA+B,gBAAgB,6BAA6B,oCAAoC,4BAA4B,OAAO;WACzJ,cAAc;;WAEd;aACE;aACA,QAAQ,KAAK;eACX,cAAc;;eAEd;iBACE;mBACE;mBACA,qBAAqB;;;;;WAK7B;aACE;aACA,QAAQ,KAAK;eACX,cAAc;;eAEd;iBACE;mBACE;mBACA,qBAAqB;;iBAEvB;mBACE;mBACA,qBAAqB;;;;;;cAM1B;WACH;WACA;WACA;WACA;;cAEG;WACH;WACA;WACA;WACA;;;;;iBAKM,4BAA4B,4BAA4B,4BAA4B,OAAO,OAAO,aAAa;WACrH;WACA,OAAO;WACP;aACE;eACE;eACA,IAAI;;;;;;;iBAOF,sCAAsC,4BAA4B,kCAAkC,eAAe,eAAe,yBAAyB,OAAO,OAAO,aAAa,aAAa,QAAQ;WACjN;WACA,OAAO;WACP;aACE;eACE;eACA,IAAI;eACJ,QAAQ;;;;;;;iBAON,0BAA0B,gBAAgB,6BAA6B,oCAAoC,4BAA4B,OAAO;WACpJ,cAAc;;WAEd;WACA;aACE;aACA;aACA;aACA;;aAEA;aACA;aACA;aACA;;WAEF,QAAQ,KAAK;aACX,cAAc;;aAEd;eACE;iBACE;iBACA;iBACA;mBACE;qBACE;qBACA,qBAAqB;;;;eAI3B;iBACE;iBACA;iBACA;mBACE;qBACE;qBACA,qBAAqB"}
|
|
@@ -40,6 +40,19 @@ type Lookup<T, Key> = Key extends keyof T ? T[Key] : never;
|
|
|
40
40
|
type NonEmptyTypeParams<TypeParams> = TypeParams extends Record<string, unknown> ? keyof TypeParams extends never ? undefined : TypeParams : undefined;
|
|
41
41
|
type PlainCodecType<CodecTypes, CodecId, Side extends ValueTypeSide> = CodecId extends keyof CodecTypes ? CodecTypes[CodecId] extends { readonly [S in Side]: infer Plain; } ? Plain : unknown : unknown;
|
|
42
42
|
type CodecType<CodecTypes, CodecId, TypeParams, ParameterizedOutputs extends ParameterizedOutputTypesFunction, Side extends ValueTypeSide> = Side extends 'output' ? NonEmptyTypeParams<TypeParams> extends (infer Params extends Record<string, unknown>) ? ParameterizedOutputType<ParameterizedOutputs, CodecId, Params, PlainCodecType<CodecTypes, CodecId, Side>> : PlainCodecType<CodecTypes, CodecId, Side> : PlainCodecType<CodecTypes, CodecId, Side>;
|
|
43
|
+
/**
|
|
44
|
+
* `Override`, unless the codec's type map entry carries `keepsWrittenForm`: its data type holds values equal that have more than one stored form, so a read can return a value the override's member literals do not name, and the value keeps the codec's type.
|
|
45
|
+
*/
|
|
46
|
+
type MemberOverride<Override, CodecTypes, CodecId> = CodecId extends keyof CodecTypes ? CodecTypes[CodecId] extends {
|
|
47
|
+
readonly keepsWrittenForm: true;
|
|
48
|
+
} ? never : Override : Override;
|
|
49
|
+
/**
|
|
50
|
+
* The type of an enum member's value as a query reads it: `Value`, the member's literal, unless the codec's type map entry carries `keepsWrittenForm`, when a read can return the member in another form and the member has the codec's output type. The emitted `contract.d.ts` and every `defineContract` builder type members by this rule.
|
|
51
|
+
*/
|
|
52
|
+
type EnumMemberValueType<CodecTypes, CodecId, Value> = CodecId extends keyof CodecTypes ? CodecTypes[CodecId] extends {
|
|
53
|
+
readonly keepsWrittenForm: true;
|
|
54
|
+
readonly output: infer Output;
|
|
55
|
+
} ? Output : Value : Value;
|
|
43
56
|
type BaseType<Override, Base, Side extends ValueTypeSide> = [Override] extends [never] ? Base : Override extends { readonly [S in Side]: infer T; } ? T : Base;
|
|
44
57
|
/**
|
|
45
58
|
* The type of the value one storage entry holds, after its override, its list or dictionary wrapping and its nullability. `Item` is the entry, with optional `nullable`, `many` and `dict`, holding values of codec `CodecId`. On each side the value is typed by `Override` for that side when it gives one, else, on the output side, by the type a type function in `ParameterizedOutputs` gives a value with these type parameters, else by the codec's type in `CodecTypes`, or `unknown` for a codec it lacks. A family's storage type maps apply it to each storage entry.
|
|
@@ -73,7 +86,7 @@ type Listed<Base, Many> = [Many] extends [{
|
|
|
73
86
|
readonly elementNullable: infer ElementNullable;
|
|
74
87
|
}] ? ReadonlyArray<Base | (ElementNullable extends true ? null : never)> : Base;
|
|
75
88
|
type WithModifiers<Base, Nullable, Many, Dictionary> = ([Dictionary] extends [true] ? Readonly<Record<string, Listed<Base, Many>>> : Listed<Base, Many>) | ([Nullable] extends [true] ? null : never) extends (infer Value) ? { readonly [K in 'value']: Value; }['value'] : never;
|
|
76
|
-
type ScalarValueType<CodecId, TypeParams, Override, Nullable, Many, Dictionary, CodecTypes, ParameterizedOutputs extends ParameterizedOutputTypesFunction, Side extends ValueTypeSide> = WithModifiers<BaseType<Override, CodecType<CodecTypes, CodecId, TypeParams, ParameterizedOutputs, Side>, Side>, Nullable, Many, Dictionary>;
|
|
89
|
+
type ScalarValueType<CodecId, TypeParams, Override, Nullable, Many, Dictionary, CodecTypes, ParameterizedOutputs extends ParameterizedOutputTypesFunction, Side extends ValueTypeSide> = WithModifiers<BaseType<MemberOverride<Override, CodecTypes, CodecId>, CodecType<CodecTypes, CodecId, TypeParams, ParameterizedOutputs, Side>, Side>, Nullable, Many, Dictionary>;
|
|
77
90
|
type FieldValueType<Field, Override, Parts, CodecTypes, ParameterizedOutputs extends ParameterizedOutputTypesFunction, Side extends ValueTypeSide> = Field extends {
|
|
78
91
|
readonly type: {
|
|
79
92
|
readonly kind: 'scalar';
|
|
@@ -114,5 +127,5 @@ type NamespaceFieldTypes<Models, Parts, CodecTypes, ParameterizedOutputs extends
|
|
|
114
127
|
*/
|
|
115
128
|
type ValueObjectTypesFromDomain<DomainNamespaces, CodecTypes, ParameterizedOutputs extends ParameterizedOutputTypesFunction, Overrides, Side extends ValueTypeSide> = { readonly [Ns in keyof DomainNamespaces]: { readonly [V in keyof Lookup<DomainNamespaces[Ns], 'valueObjects'>]: ValueObjectType<V, NamespacePartsOf<DomainNamespaces, Ns, Overrides>, CodecTypes, ParameterizedOutputs, Side>; }; };
|
|
116
129
|
//#endregion
|
|
117
|
-
export {
|
|
118
|
-
//# sourceMappingURL=types-
|
|
130
|
+
export { ParameterizedOutputType as a, ValueObjectTypesFromDomain as c, domainValueObjectsAtDefaultNamespace as d, FieldTypesFromDomain as i, ValueTypeSide as l, ContractExecutionSectionSchema as n, ParameterizedOutputTypesFunction as o, EnumMemberValueType as r, StoredValueType as s, ApplyParameterizedOutputTypes as t, domainModelsAtDefaultNamespace as u };
|
|
131
|
+
//# sourceMappingURL=types-GNXJ7xW2.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types-GNXJ7xW2.d.mts","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/types.d.mts"],"mappings":";;;;;;;;;iBAUiB,+BAA+B,QAAQ,oBAAoB,eAAe;;;;;iBAK1E,qCAAqC,QAAQ,oBAAoB,e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QAAQ;WACzH;aACE;aACA,YAAY;;WAEd,aAAa;WACb,aAAa;IACpB,cAAc,SAAS,UAAU,gBAAgB,MAAM,OAAO,YAAY,sBAAsB,OAAO,OAAO,aAAa,QAAQ,MAAM,cAAc;WAChJ,YAAY;WACZ,aAAa;WACb,aAAa;IACpB,cAAc,SAAS,UAAU,YAAY,WAAW,OAAO,YAAY,sBAAsB,OAAO,OAAO,aAAa,QAAQ,MAAM;KACzI,iBAAiB,kBAAkB,IAAI,aAAa,eAAe,OAAO,OAAO,kBAAkB,sBAAsB,OAAO,WAAW;;;;;;;;;;;;;KAa3I,qBAAqB,kBAAkB,YAAY,6BAA6B,kCAAkC,WAAW,aAAa,6BAA6B,YAAY,mBAAmB,oBAAoB,OAAO,iBAAiB,gBAAgB,iBAAiB,kBAAkB,IAAI,YAAY,YAAY,sBAAsB;KACvV,oBAAoB,QAAQ,OAAO,YAAY,6BAA6B,kCAAkC,aAAa,6BAA6B,WAAW,SAAS,OAAO,OAAO,6BAA6B,WAAW,kCAAkC,qBAAqB,kBAAkB,WAAW,SAAS,eAAe,OAAO,IAAI,OAAO,OAAO,OAAO,OAAO,gCAAgC,IAAI,IAAI,OAAO,YAAY,sBAAsB;;;;KAItc,2BAA2B,kBAAkB,YAAY,6BAA6B,kCAAkC,WAAW,aAAa,6BAA6B,YAAY,+BAA+B,WAAW,OAAO,iBAAiB,uBAAuB,gBAAgB,GAAG,iBAAiB,kBAAkB,IAAI,YAAY,YAAY,sBAAsB"}
|
package/dist/{types-import-spec-B2nK2jwW-DkF7t1NL.d.mts → types-import-spec-hkPsnreE-C-fa8812.d.mts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { B as JsonValue } from "./domain-envelope-CN721GnP-4huRt7Wc.mjs";
|
|
2
|
-
import { g as CodecTrait, m as CodecRef } from "./codec-types-
|
|
3
|
-
//#region ../../../1-framework/1-core/framework-components/dist/types-import-spec-
|
|
2
|
+
import { g as CodecTrait, m as CodecRef } from "./codec-types-DjozIOvT-BIcpyFea.mjs";
|
|
3
|
+
//#region ../../../1-framework/1-core/framework-components/dist/types-import-spec-hkPsnreE.d.mts
|
|
4
4
|
//#region src/shared/aggregate-descriptor.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* How a descriptor matches the value an aggregate consumes.
|
|
@@ -110,4 +110,4 @@ interface TypesImportSpec {
|
|
|
110
110
|
}
|
|
111
111
|
//#endregion
|
|
112
112
|
export { AnyInputAggregateDescriptor as a, SelfAggregateOutput as c, aggregateDescriptorKey as d, isAggregateDescriptor as f, AggregateResultNullability as i, TypesImportSpec as l, isNoInputAggregateDescriptor as m, AggregateInputMatch as n, NamedAggregateOutput as o, isAnyInputAggregateDescriptor as p, AggregateOutputCodec as r, NoInputAggregateDescriptor as s, AggregateDescriptor as t, ValueInputAggregateDescriptor as u };
|
|
113
|
-
//# sourceMappingURL=types-import-spec-
|
|
113
|
+
//# sourceMappingURL=types-import-spec-hkPsnreE-C-fa8812.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types-import-spec-
|
|
1
|
+
{"version":3,"file":"types-import-spec-hkPsnreE-C-fa8812.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/types-import-spec-hkPsnreE.d.mts"],"mappings":";;;;;;;;;;;;;;KAaK;WACM;;WAEA;WACA;;WAEA;WACA,OAAO;;WAEP;;;;;;;UAOD;WACC;WACA;WACA,cAAc,OAAO,yBAAyB;;;UAG/C;WACC;;;KAGN,uBAAuB,sBAAsB;;;;;;KAM7C;WACM;;WAEA;WACA;;KAEN,0BAA0B;;WAEpB;;;KAGN,6BAA6B;WACvB;aACE;;WAEF,QAAQ;;;KAGd,8BAA8B;WACxB;aACE;;WAEF,QAAQ;;;KAGd,gCAAgC;WAC1B;aACE;aACA;;aAEA;aACA,OAAO;;WAET,QAAQ;;;;;;;KAOd,sBAAsB,6BAA6B,8BAA8B;;;;iBAIrE,uBAAuB,YAAY;;iBAEnC,6BAA6B,YAAY,sBAAsB,cAAc;;iBAE7E,8BAA8B,YAAY,sBAAsB,cAAc;;;;iBAI9E,sBAAsB,iBAAiB,SAAS;;;;;;;UAOvD;WACC;WACA;WACA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/orm-framework",
|
|
3
|
-
"version": "8.0.0-rc.18-dev.
|
|
3
|
+
"version": "8.0.0-rc.18-dev.33",
|
|
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.18-dev.
|
|
20
|
-
"@internal/contract": "8.0.0-rc.18-dev.
|
|
21
|
-
"@internal/contract-authoring": "8.0.0-rc.18-dev.
|
|
22
|
-
"@internal/errors": "8.0.0-rc.18-dev.
|
|
23
|
-
"@internal/framework-components": "8.0.0-rc.18-dev.
|
|
24
|
-
"@internal/ids": "8.0.0-rc.18-dev.
|
|
25
|
-
"@internal/operations": "8.0.0-rc.18-dev.
|
|
26
|
-
"@internal/psl-parser": "8.0.0-rc.18-dev.
|
|
27
|
-
"@internal/psl-printer": "8.0.0-rc.18-dev.
|
|
28
|
-
"@internal/ts-render": "8.0.0-rc.18-dev.
|
|
29
|
-
"@repo/tsconfig": "8.0.0-rc.18-dev.
|
|
30
|
-
"@internal/publish-surface": "8.0.0-rc.18-dev.
|
|
31
|
-
"@repo/tsdown": "8.0.0-rc.18-dev.
|
|
32
|
-
"@internal/utils": "8.0.0-rc.18-dev.
|
|
19
|
+
"@internal/config": "8.0.0-rc.18-dev.33",
|
|
20
|
+
"@internal/contract": "8.0.0-rc.18-dev.33",
|
|
21
|
+
"@internal/contract-authoring": "8.0.0-rc.18-dev.33",
|
|
22
|
+
"@internal/errors": "8.0.0-rc.18-dev.33",
|
|
23
|
+
"@internal/framework-components": "8.0.0-rc.18-dev.33",
|
|
24
|
+
"@internal/ids": "8.0.0-rc.18-dev.33",
|
|
25
|
+
"@internal/operations": "8.0.0-rc.18-dev.33",
|
|
26
|
+
"@internal/psl-parser": "8.0.0-rc.18-dev.33",
|
|
27
|
+
"@internal/psl-printer": "8.0.0-rc.18-dev.33",
|
|
28
|
+
"@internal/ts-render": "8.0.0-rc.18-dev.33",
|
|
29
|
+
"@repo/tsconfig": "8.0.0-rc.18-dev.33",
|
|
30
|
+
"@internal/publish-surface": "8.0.0-rc.18-dev.33",
|
|
31
|
+
"@repo/tsdown": "8.0.0-rc.18-dev.33",
|
|
32
|
+
"@internal/utils": "8.0.0-rc.18-dev.33",
|
|
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":"authoring-BY3RNM--.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/authoring.d.mts"],"mappings":";;;;;;;;KAOK,iCAAiC,kBAAkB;;UAE9C;WACC;WACA;;;iBAGM,0BAA0B,WAAW,wBAAwB,2BAA2B;WAC9F;WACA,YAAY;;;;;;;iBAON,kCAAkC,YAAY,oCAAoC,QAAQ;;;;;;;iBAO1F,iCAAiC,WAAW,wBAAwB,QAAQ,iCAAiC;;;UAGpH;WACC;WACA,QAAQ;;UAET;WACC;WACA;WACA,QAAQ;;;;;iBAKF,uBAAuB,kBAAkB,8BAA8B;;;;UAI9E;WACC;WACA;aACE;aACA;;;;UAIH;WACC;WACA,OAAO;;UAER;WACC;WACA;WACA;WACA;;UAED;WACC;WACA;WACA;WACA,QAAQ;WACR;;KAEN;WACM;WACA;;WAEA;IACP,qBAAqB;WACd;IACP;;;;iBAIa,kBAAkB,aAAa,aAAa,aAAa,6BAA6B,gBAAgB,8BAA8B;;;UAG3I;WACC;WACA;;UAED;WACC;WACA;WACA;WACA,MAAM;;;;;UAKP;WACC;WACA;WACA;WACA,MAAM;WACN,aAAa,SAAS,eAAe;;;;;iBAK/B,4BAA4B,SAAS,mBAAmB,MAAM,gBAAgB;;;;;;iBAM9E,qBAAqB,OAAO,wBAAwB,SAAS,eAAe,0BAA0B,iBAAiB,OAAO,OAAO,KAAK,kCAAkC;;;;;;iBAM5K,qBAAqB,eAAe,oCAAoC;;;;iBAIxE,wBAAwB,eAAe,oCAAoC,0BAA0B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"authoring-D77CrCtb.mjs","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/authoring.mjs"],"sourcesContent":["import { t as canonicalizeJson } from \"./canonicalize-json-ZPawceQR.mjs\";\nimport { a as dataTypeId } from \"./data-type-DPhZLx30.mjs\";\nimport { a as readContractValue, r as enumRefusalOf } from \"./codec-descriptor-DEfL2Kb6.mjs\";\nimport { A as isAuthoringModelAttributeDescriptor, C as getAuthoringTypeConstructor, D as isAuthoringArgRef, E as instantiateAuthoringTypeConstructor, F as mergeAuthoringNamespaces, I as resolveAuthoringTemplateValue, L as resolveEnumCodecId, M as isAuthoringSelectRef, N as isAuthoringTypeConstructorDescriptor, O as isAuthoringEntityTypeDescriptor, R as validateAuthoringHelperArguments, S as flushAuthoringWarnings, T as instantiateAuthoringFieldPreset, _ as assertNoCrossRegistryCollisions, a as temporalCodecPreset, d as describeTaggedLiteralFailure, f as printTaggedLiteral, g as tsTaggedTemplateSource, h as resolveTemplateTagEscapes, i as temporalAuthoringPresets, j as isAuthoringPslBlockDescriptor, k as isAuthoringFieldPresetDescriptor, n as TEMPORAL_ON_UPDATE_ARG, o as temporalPhaseTemplate, p as printedTaggedLiteralReadsBack, r as TIMESTAMP_NOW_GENERATOR_ID, s as temporalPhaseTemplateWithParams, t as TEMPORAL_ON_CREATE_ARG, u as canonicalizeTaggedLiteralBody, v as assertResolvableTypeConstructorTemplates, w as instantiateAuthoringEntityType, x as collectScalarTypeConstructors, y as classifyEnumMemberType, z as validateAuthoringTypeParams } from \"./temporal-presets-BcDyr_hK.mjs\";\nimport { InternalError, isInternalError } from \"@internal/utils/internal-error\";\nimport { canonicalStringify } from \"@internal/utils/canonical-stringify\";\nimport { notOk, ok } from \"@internal/utils/result\";\n//#region src/shared/authoring-type-constructor-call.ts\n/** Every type constructor of `namespace`, with its path, in namespace order. */\nfunction* authoringTypeConstructors(namespace, path = []) {\n\tfor (const [name, value] of Object.entries(namespace)) if (isAuthoringTypeConstructorDescriptor(value)) yield {\n\t\tpath: [...path, name],\n\t\tdescriptor: value\n\t};\n\telse yield* authoringTypeConstructors(value, [...path, name]);\n}\nfunction produces(produced, wanted) {\n\tconst wantedFields = {\n\t\t...wanted,\n\t\ttypeParams: wanted.typeParams ?? {}\n\t};\n\treturn Object.entries({\n\t\t...produced,\n\t\ttypeParams: produced.typeParams ?? {}\n\t}).every(([key, value]) => canonicalizeJson(value) === canonicalizeJson(wantedFields[key]));\n}\n/**\n* The arguments that make `descriptor` produce exactly `output`, when each of its type parameters\n* comes straight from one argument; `undefined` when it cannot produce `output`, including when\n* `output` has no value for an argument the constructor requires.\n*/\nfunction authoringTypeConstructorArguments(descriptor, output) {\n\tif (descriptor.entityRefArg !== void 0 || descriptor.output.codecId !== output.codecId) return;\n\tconst args = [];\n\tfor (const [key, template] of Object.entries(descriptor.output.typeParams ?? {})) {\n\t\tconst value = output.typeParams?.[key];\n\t\tif (value !== void 0 && isAuthoringArgRef(template) && template.path === void 0) args[template.index] = value;\n\t}\n\tconst requiredArgs = (descriptor.args ?? []).filter((arg) => arg.optional !== true).length;\n\tif (args.length < requiredArgs || Array.from(args).includes(void 0)) return void 0;\n\ttry {\n\t\treturn produces(instantiateAuthoringTypeConstructor(descriptor, args), output) ? args : void 0;\n\t} catch {\n\t\treturn;\n\t}\n}\n/**\n* The first call, in namespace order, to a type constructor in `namespace` that produces exactly\n* `output`. The inverse of {@link instantiateAuthoringTypeConstructor} for constructors whose type\n* parameters each come straight from one argument. A constructor whose argument names another\n* entity is never chosen. `undefined` when no call produces `output`.\n*/\nfunction findAuthoringTypeConstructorCall(namespace, output) {\n\tfor (const { path, descriptor } of authoringTypeConstructors(namespace)) {\n\t\tconst args = authoringTypeConstructorArguments(descriptor, output);\n\t\tif (args !== void 0) return {\n\t\t\tpath,\n\t\t\targs\n\t\t};\n\t}\n}\n//#endregion\n//#region src/shared/enum-stored-members.ts\n/**\n* Each enum member whose stored form equals an earlier member's, paired with the first such member. Stored forms are compared as `contract.json` holds them, so negative zero is zero, and by `canonicalStringify`, so two objects with the same entries in a different order are equal. Every enum authoring surface refuses the members this returns.\n*/\nfunction duplicateStoredMembers(members) {\n\tconst memberByStoredForm = /* @__PURE__ */ new Map();\n\tconst duplicates = [];\n\tfor (const { name, stored } of members) {\n\t\tconst key = canonicalStringify(JSON.parse(JSON.stringify(stored)));\n\t\tconst earlier = memberByStoredForm.get(key);\n\t\tif (earlier === void 0) memberByStoredForm.set(key, name);\n\t\telse duplicates.push({\n\t\t\tearlier,\n\t\t\tlater: name,\n\t\t\tstored\n\t\t});\n\t}\n\treturn duplicates;\n}\n//#endregion\n//#region src/shared/enum-block-members.ts\n/**\n* A problem with an enum's members as a diagnostic at the member, or at the block when the problem is the enum's codec.\n*/\nfunction enumMemberProblemDiagnostic(problem, site) {\n\tconst { enumName, codecId, sourceId } = site;\n\tconst at = (member) => ({\n\t\tsourceId,\n\t\tspan: site.memberSpans[member] ?? site.span\n\t});\n\tswitch (problem.kind) {\n\t\tcase \"codec-not-for-enums\": return {\n\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\tmessage: `enum \"${enumName}\" cannot use the codec \"${codecId}\". ${problem.refusal}`,\n\t\t\tsourceId,\n\t\t\tspan: site.span\n\t\t};\n\t\tcase \"codec-missing\": return {\n\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\tmessage: `enum \"${enumName}\" uses codec \"${codecId}\", which no pack in the contract provides`,\n\t\t\tsourceId,\n\t\t\tspan: site.span\n\t\t};\n\t\tcase \"codec-refused-member\": return {\n\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\tmessage: `enum \"${enumName}\" member \"${problem.member}\" was rejected by codec \"${codecId}\": ${problem.reason}`,\n\t\t\t...at(problem.member)\n\t\t};\n\t\tcase \"member-not-stored-as-written\": return {\n\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\tmessage: `enum \"${enumName}\" member \"${problem.member}\" is written ${problem.written}, but its codec stores ${JSON.stringify(problem.stored)}. Write the member as ${problem.writeAs}.`,\n\t\t\t...at(problem.member)\n\t\t};\n\t\tcase \"duplicate-member-value\": return {\n\t\t\tcode: \"PSL_ENUM_DUPLICATE_MEMBER_VALUE\",\n\t\t\tmessage: `enum \"${enumName}\": members \"${problem.earlier}\" and \"${problem.later}\" both store ${JSON.stringify(problem.stored)}`,\n\t\t\t...at(problem.later)\n\t\t};\n\t}\n}\n/**\n* Reads the members of an `enum` block through its codec. A member written as a number literal is read from its source text as a column default is read, when the family gives a reader for it (`ctx.readWrittenNumber`), so no digit is lost; when that reader refuses the number, the codec's data type and then the codec read it, and only if they refuse it too is the reader's reason reported. Every other member is read the same way, as a value of the codec's data type converted by `fromDataTypeValue`, and a bare member is read from its own name.\n* Pushes a diagnostic and returns `undefined` when the codec refuses a member, when two members\n* store the same value, or when the block has no members. Shared by every family's enum factory.\n*/\nfunction readEnumBlockMembers(block, codecId, codec, ctx) {\n\tconst sourceId = ctx.sourceId ?? \"unknown\";\n\tconst diagnostics = ctx.diagnostics;\n\tconst site = {\n\t\tenumName: block.name,\n\t\tcodecId,\n\t\tsourceId,\n\t\tspan: block.span,\n\t\tmemberSpans: block.parameterSpans\n\t};\n\tconst members = [];\n\tconst storedMembers = [];\n\tlet memberError = false;\n\tfor (const [memberName, memberValue] of Object.entries(block.values)) {\n\t\tconst span = block.parameterSpans[memberName] ?? block.span;\n\t\tconst reading = typeof memberValue === \"number\" ? ctx.readWrittenNumber?.({\n\t\t\ttext: block.numberTexts?.[memberName] ?? String(memberValue),\n\t\t\tcodecId,\n\t\t\tsubject: `enum \"${block.name}\" member \"${memberName}\"`\n\t\t}) : void 0;\n\t\tconst written = reading?.ok ? reading.value : memberValue === void 0 ? memberName : memberValue;\n\t\tlet read;\n\t\ttry {\n\t\t\tread = readContractValue(codec, written, void 0);\n\t\t} catch (err) {\n\t\t\tif (isInternalError(err)) throw err;\n\t\t\tdiagnostics?.push(reading !== void 0 && !reading.ok ? {\n\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\tmessage: reading.message,\n\t\t\t\tsourceId,\n\t\t\t\tspan\n\t\t\t} : memberValue === void 0 ? {\n\t\t\t\tcode: \"PSL_ENUM_BARE_MEMBER_NON_STRING_CODEC\",\n\t\t\t\tmessage: `enum \"${block.name}\" member \"${memberName}\" has no value and codec \"${codecId}\" does not accept a bare name as input`,\n\t\t\t\tsourceId,\n\t\t\t\tspan\n\t\t\t} : {\n\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\tmessage: `enum \"${block.name}\" member \"${memberName}\" was rejected by codec \"${codecId}\": ${err instanceof Error ? err.message : String(err)}`,\n\t\t\t\tsourceId,\n\t\t\t\tspan\n\t\t\t});\n\t\t\tmemberError = true;\n\t\t\tcontinue;\n\t\t}\n\t\tmembers.push({\n\t\t\tname: memberName,\n\t\t\tvalue: read\n\t\t});\n\t\tstoredMembers.push({\n\t\t\tname: memberName,\n\t\t\tstored: codec.dataType.toContract(codec.toDataTypeValue(read))\n\t\t});\n\t}\n\tfor (const duplicate of duplicateStoredMembers(storedMembers)) {\n\t\tdiagnostics?.push(enumMemberProblemDiagnostic({\n\t\t\tkind: \"duplicate-member-value\",\n\t\t\t...duplicate\n\t\t}, site));\n\t\tmemberError = true;\n\t}\n\tif (memberError) return void 0;\n\tif (members.length === 0) {\n\t\tdiagnostics?.push({\n\t\t\tcode: \"PSL_ENUM_MISSING_TYPE\",\n\t\t\tmessage: `enum \"${block.name}\" must have at least one member`,\n\t\t\tsourceId,\n\t\t\tspan: block.span\n\t\t});\n\t\treturn;\n\t}\n\treturn members;\n}\n//#endregion\n//#region src/shared/enum-members.ts\n/** Whether TypeScript gives the value a literal type: a primitive, or an array or plain object of them. */\nfunction hasLiteralType(value) {\n\tif ([\n\t\t\"string\",\n\t\t\"number\",\n\t\t\"boolean\",\n\t\t\"bigint\"\n\t].includes(typeof value)) return true;\n\tif (Array.isArray(value)) return value.every(hasLiteralType);\n\tif (typeof value !== \"object\" || value === null) return false;\n\tconst prototype = Object.getPrototypeOf(value);\n\treturn (prototype === Object.prototype || prototype === null) && Object.values(value).every(hasLiteralType);\n}\n/**\n* A member's value in the form its codec stores it, and that form read back by the codec. A codec that throws on either is a refusal naming the member; an internal error is not the member's fault and propagates.\n*/\nfunction encodeEnumMember(member, codec) {\n\ttry {\n\t\tconst stored = codec.dataType.toContract(codec.toDataTypeValue(member.value));\n\t\treturn ok({\n\t\t\tstored,\n\t\t\treadBack: readContractValue(codec, stored, void 0)\n\t\t});\n\t} catch (cause) {\n\t\tif (isInternalError(cause)) throw cause;\n\t\treturn notOk({\n\t\t\tkind: \"codec-refused-member\",\n\t\t\tmember: member.name,\n\t\t\treason: cause instanceof Error ? cause.message : String(cause),\n\t\t\tcause\n\t\t});\n\t}\n}\n/**\n* Refuses a member its codec reads back as a different value from the one written. A member with no literal type has nothing to compare.\n*/\nfunction notStoredAsWritten(member, stored, readBack) {\n\tif (!hasLiteralType(member.value)) return void 0;\n\tif (hasLiteralType(readBack) && canonicalStringify(readBack) === canonicalStringify(member.value)) return void 0;\n\treturn {\n\t\tkind: \"member-not-stored-as-written\",\n\t\tmember: member.name,\n\t\twritten: canonicalStringify(member.value),\n\t\tstored,\n\t\twriteAs: hasLiteralType(readBack) ? canonicalStringify(readBack) : JSON.stringify(stored)\n\t};\n}\n/**\n* Each member of an enum in the form its codec stores it. Refuses a codec an enum cannot use, a codec the lookup does not have, a member the codec refuses, a member the codec reads back as another value, and two members stored as the same value. Every family's contract build calls this, and reports the problems in its own terms.\n*/\nfunction encodeEnumMembers(decodedEnum, codecLookup) {\n\tconst descriptor = codecLookup.descriptorFor(decodedEnum.codecId);\n\tconst refusal = descriptor === void 0 ? void 0 : enumRefusalOf(descriptor);\n\tif (refusal !== void 0) return notOk([{\n\t\tkind: \"codec-not-for-enums\",\n\t\trefusal\n\t}]);\n\tconst codec = codecLookup.get(decodedEnum.codecId);\n\tif (codec === void 0) return notOk([{ kind: \"codec-missing\" }]);\n\tconst problems = [];\n\tconst members = [];\n\tfor (const member of decodedEnum.enumMembers) {\n\t\tconst encoded = encodeEnumMember(member, codec);\n\t\tif (!encoded.ok) {\n\t\t\tproblems.push(encoded.failure);\n\t\t\tcontinue;\n\t\t}\n\t\tconst { stored, readBack } = encoded.value;\n\t\tconst mismatch = notStoredAsWritten(member, stored, readBack);\n\t\tif (mismatch !== void 0) problems.push(mismatch);\n\t\tmembers.push({\n\t\t\tname: member.name,\n\t\t\tvalue: stored\n\t\t});\n\t}\n\tfor (const duplicate of duplicateStoredMembers(members.map(({ name, value }) => ({\n\t\tname,\n\t\tstored: value\n\t})))) problems.push({\n\t\tkind: \"duplicate-member-value\",\n\t\t...duplicate\n\t});\n\treturn problems.length > 0 ? notOk(problems) : ok(members);\n}\n//#endregion\n//#region src/shared/field-preset-resolution.ts\nfunction presetSpellingsUnder(members, prefix) {\n\treturn Object.entries(members).flatMap(([name, member]) => isAuthoringFieldPresetDescriptor(member) ? [`${prefix}.${name}(${(member.args ?? []).map((arg, index) => arg.name ?? `argument${index + 1}`).join(\", \")})`] : presetSpellingsUnder(member, `${prefix}.${name}`));\n}\n/**\n* How each field preset registered under `namespace`, at any depth, is written, with the names of its arguments: `temporal.timestamp(onCreate, onUpdate)`.\n*/\nfunction fieldPresetSpellings(contributions, namespace) {\n\tconst members = contributions?.field?.[namespace];\n\tif (members === void 0 || isAuthoringFieldPresetDescriptor(members)) return [];\n\treturn presetSpellingsUnder(members, namespace);\n}\n/**\n* Walks `authoringContributions.field` segment by segment and returns the field-preset descriptor at the path, or `undefined` when none is registered there.\n*/\nfunction getAuthoringFieldPreset(contributions, path) {\n\tlet current = contributions?.field;\n\tfor (const segment of path) {\n\t\tif (typeof current !== \"object\" || current === null || \"kind\" in current) return;\n\t\tcurrent = current[segment];\n\t}\n\treturn current !== void 0 && isAuthoringFieldPresetDescriptor(current) ? current : void 0;\n}\n//#endregion\n//#region src/shared/written-value.ts\n/**\n* Words a refusal of the cast rule. The message leads with what to write; the types are named only when the value has a form the position admits and its type is still refused, such as a number too large for the receiving type.\n*/\nfunction describeRefusal(refusal, support, guidance) {\n\tswitch (refusal.kind) {\n\t\tcase \"unknown-tag\": return {\n\t\t\tcode: \"PSL_UNKNOWN_LITERAL_TAG\",\n\t\t\tmessage: `Unknown literal tag \"${refusal.tag}\". Known tags: ${refusal.known.join(\", \")}.`\n\t\t};\n\t\tcase \"unwritable\": return {\n\t\t\tcode: \"PSL_VALUE_TYPE_INCOMPATIBLE\",\n\t\t\tmessage: `${describeExpected(guidance.forms)}; this target has no data type for a ${refusal.syntax} value`\n\t\t};\n\t\tcase \"unreadable\":\n\t\tcase \"refused-by-type\": return {\n\t\t\tcode: \"PSL_INVALID_LITERAL\",\n\t\t\tmessage: refusal.message\n\t\t};\n\t\tcase \"no-cast\": return {\n\t\t\tcode: \"PSL_VALUE_TYPE_INCOMPATIBLE\",\n\t\t\tmessage: describeRefusedValueType(refusal, support, guidance)\n\t\t};\n\t}\n}\n/** `Expected <forms>`, the forms joined with `or`: the start of every refusal that says what to write. */\nfunction describeExpected(forms) {\n\treturn `Expected ${joinForms(forms)}`;\n}\n/**\n* Words a value of type `valueType` that `receivingType` refuses, where `guidance.forms` may be written. The types are named only when the value has one of those forms.\n*/\nfunction describeRefusedValueType(refused, support, guidance) {\n\tconst expected = describeExpected(guidance.forms);\n\tconst valueForm = writtenForm(support, refused.valueType);\n\tif (valueForm !== void 0 && guidance.forms.some((form) => isSameForm(form, valueForm))) return `${expected} that ${refused.receivingType} can hold; got ${refused.valueType}`;\n\treturn guidance.rewrite === void 0 ? expected : `${expected}; write ${guidance.rewrite}`;\n}\nfunction isSameForm(a, b) {\n\treturn a.kind === \"tag\" && b.kind === \"tag\" ? a.tag === b.tag : a.kind === b.kind;\n}\n/**\n* The literal to write in place of a quoted string that `receivingType` refuses under `receivingParams`: the string as a literal of the first tag the type admits. `undefined` when the value is not a quoted string, the type admits no tag, the literal would not read back as the same text, or the type would refuse the literal too.\n*/\nfunction exactRewrite(support, receiving, written) {\n\tconst { receivingType, receivingParams } = receiving;\n\tconst [tag] = admittedTags(support, receivingType);\n\tif (written.kind !== \"string\" || tag === void 0) return void 0;\n\tif (!printedTaggedLiteralReadsBack(written.text)) return void 0;\n\tconst read = readWrittenValue(support, {\n\t\tkind: \"tag\",\n\t\ttag,\n\t\ttext: written.text\n\t});\n\tif (!read.ok || !castTypedValue(support, receivingType, receivingParams, read.value).ok) return;\n\treturn printTaggedLiteral(tag, written.text);\n}\nfunction findEntry(support, matches) {\n\tfor (const [key, entry] of Object.entries(support.entries)) if (matches(entry)) return {\n\t\tkey,\n\t\tentry\n\t};\n}\n/** The entry a tag names, or `undefined` when no pack registered that tag. */\nfunction entryForTag(support, tag) {\n\treturn findEntry(support, ({ written }) => written.kind === \"tag\" && written.tag === tag);\n}\n/** The entry that reads a plain string, boolean or number, or `undefined` when none does. */\nfunction entryForPlain(support, syntax) {\n\treturn findEntry(support, ({ written }) => written.kind === \"plain\" && written.syntax === syntax);\n}\n/** Every tag a stack registers, in the order the entries were merged. */\nfunction knownTags(support) {\n\treturn Object.values(support.entries).flatMap((entry) => entry.written.kind === \"tag\" ? [entry.written.tag] : []);\n}\nfunction textOf(written) {\n\treturn written.kind === \"boolean\" ? String(written.value) : written.text;\n}\nfunction messageOf(error) {\n\treturn error instanceof Error ? error.message : String(error);\n}\n/** The value of `type` that `json` gives under `params`, constructed by that type; a refusal is worded for a diagnostic. */\nfunction valueOfType(support, type, json, params, refuse) {\n\tconst declaration = support.lookup.get(type);\n\tif (declaration === void 0) throw new InternalError(`A value of \"${type}\" was written, and this stack does not register it.`);\n\ttry {\n\t\treturn ok(declaration.valueFrom(json(), params));\n\t} catch (error) {\n\t\tif (isInternalError(error)) throw error;\n\t\treturn notOk(refuse(messageOf(error)));\n\t}\n}\n/** Read one written value through the authoring entry for its syntax, as a value its type constructs. */\nfunction readWrittenValue(support, written) {\n\tconst found = written.kind === \"tag\" ? entryForTag(support, written.tag) : entryForPlain(support, written.kind);\n\tif (found === void 0) return written.kind === \"tag\" ? notOk({\n\t\tkind: \"unknown-tag\",\n\t\ttag: written.tag,\n\t\tknown: knownTags(support)\n\t}) : notOk({\n\t\tkind: \"unwritable\",\n\t\tsyntax: written.kind\n\t});\n\tconst text = textOf(written);\n\tconst form = found.entry.written;\n\tconst unreadable = (message) => ({\n\t\tkind: \"unreadable\",\n\t\tmessage\n\t});\n\tif (form.kind === \"plain\" && form.syntax === \"number\") {\n\t\tconst classified = form.classify(text);\n\t\treturn classified === void 0 ? notOk(unreadable(`no data type of this target holds the number ${text}`)) : valueOfType(support, classified.type, () => classified.value, {}, unreadable);\n\t}\n\treturn valueOfType(support, dataTypeId(found.key), () => form.parse(text), {}, unreadable);\n}\n/** Take a value into the receiving type, directly or through the cast that type declares; the receiving type constructs the result under `receivingParams`, the parameters of the position that receives it. */\nfunction castTypedValue(support, receivingType, receivingParams, value) {\n\tconst refusedByType = (message) => ({\n\t\tkind: \"refused-by-type\",\n\t\treceivingType,\n\t\tmessage\n\t});\n\tif (value.type === receivingType) return valueOfType(support, receivingType, () => value.value, receivingParams, refusedByType);\n\tconst declaration = support.lookup.get(receivingType);\n\tconst cast = declaration?.casts[value.type];\n\tif (cast === void 0) return notOk({\n\t\tkind: \"no-cast\",\n\t\treceivingType,\n\t\treceivingParams,\n\t\tvalueType: value.type,\n\t\tcasts: Object.keys(declaration?.casts ?? {})\n\t});\n\tconst source = support.lookup.get(value.type);\n\tif (source === void 0) throw new InternalError(`A value of \"${value.type}\" was cast, and this stack does not register it.`);\n\tlet json;\n\ttry {\n\t\tjson = cast(source.toContract(value));\n\t} catch (error) {\n\t\tif (isInternalError(error)) throw error;\n\t\treturn notOk({\n\t\t\tkind: \"unreadable\",\n\t\t\tmessage: messageOf(error)\n\t\t});\n\t}\n\treturn valueOfType(support, receivingType, () => json, receivingParams, refusedByType);\n}\n/** The type itself, then each type it casts from, in key order. */\nfunction admittedTypes(support, dataType) {\n\treturn [dataType, ...Object.keys(support.lookup.get(dataType)?.casts ?? {})];\n}\n/** The tags a position of `dataType` admits: its own tag, then the tags of the types it casts from. */\nfunction admittedTags(support, dataType) {\n\tconst tags = admittedTypes(support, dataType).flatMap((type) => {\n\t\tconst written = support.entries[type]?.written;\n\t\treturn written?.kind === \"tag\" ? [written.tag] : [];\n\t});\n\treturn [...new Set(tags)];\n}\n/** The form a value of a tagged literal's type is written in. */\nfunction tagForm(tag) {\n\treturn {\n\t\tkind: \"tag\",\n\t\ttag,\n\t\tphrase: `${tag}\\`...\\``\n\t};\n}\nconst PLAIN_PHRASES = {\n\tstring: \"a quoted string\",\n\tboolean: \"true or false\",\n\tnumber: \"a number\"\n};\nfunction writtenForm(support, type) {\n\tconst written = support.entries[type]?.written;\n\tif (written?.kind === \"tag\") return tagForm(written.tag);\n\tif (written?.kind === \"plain\" && written.syntax !== \"number\") return {\n\t\tkind: written.syntax,\n\t\tphrase: PLAIN_PHRASES[written.syntax]\n\t};\n\treturn Object.entries(support.entries).some(([key, entry]) => entry.written.kind === \"plain\" && entry.written.syntax === \"number\" && (key === type || entry.written.types.some((listed) => listed === type))) ? {\n\t\tkind: \"number\",\n\t\tphrase: PLAIN_PHRASES.number\n\t} : void 0;\n}\n/** What {@link describeAdmittedForms} returns for a type that nothing writes. */\nconst NO_WRITTEN_FORM = \"no written form\";\n/** Each form a position receiving every one of `receivingTypes` admits, once, in order: ``sql`...` ``, `true or false`. */\nfunction admittedForms(support, receivingTypes) {\n\tconst forms = [];\n\tfor (const type of receivingTypes.flatMap((receiving) => admittedTypes(support, receiving))) {\n\t\tconst form = writtenForm(support, type);\n\t\tif (form !== void 0 && !forms.some((listed) => isSameForm(listed, form))) forms.push(form);\n\t}\n\treturn forms;\n}\nfunction joinForms(forms) {\n\treturn forms.length === 0 ? NO_WRITTEN_FORM : forms.map((form) => form.phrase).join(\" or \");\n}\n/** How a position of `dataType` can be written, for a diagnostic: ``sql`...` ``, `true or false`. */\nfunction describeAdmittedForms(support, dataType) {\n\treturn joinForms(admittedForms(support, [dataType]));\n}\n//#endregion\nexport { TEMPORAL_ON_CREATE_ARG, TEMPORAL_ON_UPDATE_ARG, TIMESTAMP_NOW_GENERATOR_ID, admittedForms, admittedTags, assertNoCrossRegistryCollisions, assertResolvableTypeConstructorTemplates, authoringTypeConstructorArguments, authoringTypeConstructors, canonicalizeTaggedLiteralBody, castTypedValue, classifyEnumMemberType, collectScalarTypeConstructors, describeAdmittedForms, describeExpected, describeRefusal, describeRefusedValueType, describeTaggedLiteralFailure, duplicateStoredMembers, encodeEnumMembers, entryForPlain, entryForTag, enumMemberProblemDiagnostic, exactRewrite, fieldPresetSpellings, findAuthoringTypeConstructorCall, flushAuthoringWarnings, getAuthoringFieldPreset, getAuthoringTypeConstructor, instantiateAuthoringEntityType, instantiateAuthoringFieldPreset, instantiateAuthoringTypeConstructor, isAuthoringArgRef, isAuthoringEntityTypeDescriptor, isAuthoringFieldPresetDescriptor, isAuthoringModelAttributeDescriptor, isAuthoringPslBlockDescriptor, isAuthoringSelectRef, isAuthoringTypeConstructorDescriptor, knownTags, mergeAuthoringNamespaces, printTaggedLiteral, printedTaggedLiteralReadsBack, readEnumBlockMembers, readWrittenValue, resolveAuthoringTemplateValue, resolveEnumCodecId, resolveTemplateTagEscapes, tagForm, temporalAuthoringPresets, temporalCodecPreset, temporalPhaseTemplate, temporalPhaseTemplateWithParams, tsTaggedTemplateSource, validateAuthoringHelperArguments, validateAuthoringTypeParams };\n\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AK,KAAK,CAAC,MAAM,MAAM,WAAW,WAAW,QAAQ,IAAI,CAAC,GAAG,MAAM,KAAK,IAAI;CAC1F;CACA,OAAO;AACR;AACA,SAAS,UAAU,OAAO;CACzB,OAAO,MAAM,WAAW,IAAI,kBAAkB,MAAM,KAAK,SAAS,KAAK,MAAM,CAAC,CAAC,KAAK,MAAM;AAC3F;;AAEA,SAAS,sBAAsB,SAAS,UAAU;CACjD,OAAO,UAAU,cAAc,SAAS,CAAC,QAAQ,CAAC,CAAC;AACpD"}
|
package/dist/codec-BYGt3r-S.mjs
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { s as tsStringLiteral } from "./dist-D1f6xr7F.mjs";
|
|
2
|
-
//#region ../../../1-framework/1-core/framework-components/dist/codec.mjs
|
|
3
|
-
/**
|
|
4
|
-
* Trivial column packager. Per-codec helpers call this directly with the result of `descriptor.factory(params)` — direct method invocation binds the descriptor's method-level generic at the call site and the literal flows through `R`.
|
|
5
|
-
*/
|
|
6
|
-
function column(codecFactory, codecId, typeParams) {
|
|
7
|
-
return {
|
|
8
|
-
codecFactory,
|
|
9
|
-
codecId,
|
|
10
|
-
typeParams
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Renders a stored value as a TypeScript literal (e.g. `"low"`, `1`, `true`), or `undefined`
|
|
15
|
-
* when the value isn't literal-expressible (objects, arrays, null).
|
|
16
|
-
*
|
|
17
|
-
* Valid **only for codecs whose application value is the stored JSON** (text, int, float, bool). A
|
|
18
|
-
* codec whose application value differs from the stored JSON (e.g. digit text read as a `bigint`)
|
|
19
|
-
* must NOT use this: it renders the application value in its own `renderValueLiteral`.
|
|
20
|
-
*/
|
|
21
|
-
function renderTsLiteral(value) {
|
|
22
|
-
if (typeof value === "string") return tsStringLiteral(value);
|
|
23
|
-
if (typeof value === "number" || typeof value === "boolean") return String(value);
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
export { renderTsLiteral as n, column as t };
|
|
27
|
-
|
|
28
|
-
//# sourceMappingURL=codec-BYGt3r-S.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"codec-BYGt3r-S.mjs","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/codec.mjs"],"sourcesContent":["import { C as readJsonInteger, D as refuseJsonValue, E as readJsonString, O as DATA_TYPE_ID_PATTERN, S as readJsonFloat, T as readJsonMatching, _ as SAFE_INTEGER_RANGE, a as dataTypeId, b as isNonFiniteText, c as dataTypeValuesEqual, d as requiredParamKeys, f as requiredSchemaKeys, g as SAFE_INTEGER_BIGINT_RANGE, h as INT64_RANGE, i as dataType, l as objectSchemaKeys, m as INT32_RANGE, n as assertDataTypeParams, o as dataTypeParams, p as schemaKeysAllowing, r as createDataTypeLookup, s as dataTypeParamsProblem, t as assembleDataTypes, u as requireValueOf, v as floatToJson, w as readJsonIntegerText, x as readJsonBoolean, y as isIntegerIn } from \"./data-type-DPhZLx30.mjs\";\nimport { a as readContractValue, i as CodecImpl, n as CodecDescriptorTemplateImpl, r as enumRefusalOf, t as CodecDescriptorImpl } from \"./codec-descriptor-DEfL2Kb6.mjs\";\nimport { t as emptyCodecLookup } from \"./codec-types-BXLUbk-Y.mjs\";\nimport { a as resolveCodecDescriptorOrThrow, i as materializeCodec, o as validateCodecTypeParams, r as codecForRef, t as CONTRACT_CODEC_DESCRIPTOR_MISSING } from \"./resolve-codec-qqMjZrmn.mjs\";\nimport { tsStringLiteral } from \"@internal/ts-render\";\n//#region src/shared/column-spec.ts\n/**\n* Trivial column packager. Per-codec helpers call this directly with the result of `descriptor.factory(params)` — direct method invocation binds the descriptor's method-level generic at the call site and the literal flows through `R`.\n*/\nfunction column(codecFactory, codecId, typeParams) {\n\treturn {\n\t\tcodecFactory,\n\t\tcodecId,\n\t\ttypeParams\n\t};\n}\n//#endregion\n//#region src/shared/render-ts-literal.ts\n/**\n* Renders a stored value as a TypeScript literal (e.g. `\"low\"`, `1`, `true`), or `undefined`\n* when the value isn't literal-expressible (objects, arrays, null).\n*\n* Valid **only for codecs whose application value is the stored JSON** (text, int, float, bool). A\n* codec whose application value differs from the stored JSON (e.g. digit text read as a `bigint`)\n* must NOT use this: it renders the application value in its own `renderValueLiteral`.\n*/\nfunction renderTsLiteral(value) {\n\tif (typeof value === \"string\") return tsStringLiteral(value);\n\tif (typeof value === \"number\" || typeof value === \"boolean\") return String(value);\n}\n//#endregion\nexport { CONTRACT_CODEC_DESCRIPTOR_MISSING, CodecDescriptorImpl, CodecDescriptorTemplateImpl, CodecImpl, DATA_TYPE_ID_PATTERN, INT32_RANGE, INT64_RANGE, SAFE_INTEGER_BIGINT_RANGE, SAFE_INTEGER_RANGE, assembleDataTypes, assertDataTypeParams, codecForRef, column, createDataTypeLookup, dataType, dataTypeId, dataTypeParams, dataTypeParamsProblem, dataTypeValuesEqual, emptyCodecLookup, enumRefusalOf, floatToJson, isIntegerIn, isNonFiniteText, materializeCodec, objectSchemaKeys, readContractValue, readJsonBoolean, readJsonFloat, readJsonInteger, readJsonIntegerText, readJsonMatching, readJsonString, refuseJsonValue, renderTsLiteral, requireValueOf, requiredParamKeys, requiredSchemaKeys, resolveCodecDescriptorOrThrow, schemaKeysAllowing, validateCodecTypeParams };\n\n//# sourceMappingURL=codec.mjs.map"],"mappings":";;;;;AASA,SAAS,OAAO,cAAc,SAAS,YAAY;CAClD,OAAO;EACN;EACA;EACA;CACD;AACD;;;;;;;;;AAWA,SAAS,gBAAgB,OAAO;CAC/B,IAAI,OAAO,UAAU,UAAU,OAAO,gBAAgB,KAAK;CAC3D,IAAI,OAAO,UAAU,YAAY,OAAO,UAAU,WAAW,OAAO,OAAO,KAAK;AACjF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"codec-CGFT5YKu.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/codec.d.mts"],"mappings":";;;;;;;;;;;KAUK,qBAAqB;WACf,SAAS;WACT,aAAa;WACb;;;;;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AKvC,kBAAkB,OAAO,KAAK,0CAA0C,MAAM,WAAW;;;;;;uBAMnF,UAAU,4BAA4B,yBAAyB,wBAAwB,cAAc,iBAAiB,6BAA6B,MAAM,IAAI,SAAS,OAAO;WACzL,YAAY;WACZ,UAAU;qBACA,gBAAgB;;;;EAInC,YAAY,YAAY,8BAA8B,UAAU,UAAU,iBAAiB;MACvF,MAAM;;YAEA,gBAAgB,UAAU,WAAW,MAAM,IAAI,cAAc;WAC9D,kBAAkB,OAAO,gBAAgB;WACzC,gBAAgB,OAAO,SAAS;WAChC,SAAS,MAAM,OAAO,KAAK,mBAAmB,QAAQ;WACtD,OAAO,OAAO,QAAQ,KAAK,mBAAmB,QAAQ;;;;;cAKnD;KACT,qBAAqB;;;;;;;;;;;;UAYhB;WACC;WACA,aAAa;WACb;;;;;;;;;;;;;UAaD;WACC,SAAS;;;;;;;;UAQV;EACR,IAAI,aAAa;EACjB,oBAAoB,YAAY,QAAQ;;EAExC,oBAAoB,YAAY,QAAQ;;EAExC,uBAAuB,YAAY,OAAO,WAAW;;;UAG7C,mCAAmC;;;;EAI3C,cAAc,aAAa;;;UAGnB,YAAY,eAAe,KAAK,+CAA+C,KAAK,8CAA8C,kBAAkB,KAAK,yBAAyB,KAAK;WACtL,aAAa;WACb,gBAAgB;;;;;;;;;;;;;;;UAejB,sBAAsB;EAC9B,YAAY,KAAK,WAAW;EAC5B,UAAU,qBAAqB,eAAe,iBAAiB;;;cAGnD,kBAAkB;;;;;;;;UAQtB;WACC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./control-C_zs63JQ-BFg3u8U5.mjs";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"data-type-DPhZLx30-DP2Kmnf5.mjs","names":["#constructedByItsType"],"sources":["../../../../1-framework/1-core/framework-components/dist/data-type-DPhZLx30.mjs"],"sourcesContent":["import { t as canonicalizeJson } from \"./canonicalize-json-ZPawceQR.mjs\";\nimport { n as runtimeError } from \"./runtime-error-BA9d7XjZ.mjs\";\nimport { InternalError, isInternalError } from \"@internal/utils/internal-error\";\nimport { blindCast } from \"@internal/utils/casts\";\nimport { ifDefined } from \"@internal/utils/defined\";\nimport { structuredError } from \"@internal/utils/structured-error\";\nimport { type } from \"arktype\";\n//#region src/shared/data-type-id-pattern.ts\n/** The whole of what a data type id is: `owner/name` in lower case, with no version. */\nconst DATA_TYPE_ID_PATTERN = /^[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-z0-9]+(?:-[a-z0-9]+)*$/;\n//#endregion\n//#region src/shared/json-readers.ts\n/**\n* Readers for the JSON forms data types share. Each returns the JSON it is given in a form it reads and refuses anything else with {@link refuseJsonValue}. `owner` is the data type whose value is read, or the codec whose own limit refuses it.\n*/\nconst RECEIVED_PREVIEW_LIMIT = 100;\n/** The value a refusal names: its JSON text, or its digits for a number JSON cannot write, cut to 100 characters. */\nfunction receivedPreview(json) {\n\treturn (typeof json === \"number\" ? String(json) : JSON.stringify(json)).slice(0, RECEIVED_PREVIEW_LIMIT);\n}\n/**\n* The refusal of a JSON value: `RUNTIME.DECODE_FAILED`, `<owner> JSON value must be <expected>`, with `meta.received`, the value it was given as JSON text, cut to 100 characters, and `meta.dataType` or `meta.codecId` naming the owner. A data type id carries no version and a codec id does, so the id says which it is.\n*/\nfunction refuseJsonValue(owner, expected, json) {\n\tconst named = DATA_TYPE_ID_PATTERN.test(owner) ? { dataType: owner } : { codecId: owner };\n\tthrow structuredError(\"RUNTIME.DECODE_FAILED\", `${owner} JSON value must be ${expected}`, { meta: {\n\t\t...named,\n\t\treceived: receivedPreview(json)\n\t} });\n}\nfunction readJsonString(owner, json) {\n\tif (typeof json !== \"string\") return refuseJsonValue(owner, \"a string\", json);\n\treturn json;\n}\n/** Reads a JSON string that matches `pattern`; `form` names what the pattern accepts, for the refusal. */\nfunction readJsonMatching(owner, json, pattern, form) {\n\tif (typeof json !== \"string\" || !pattern.test(json)) return refuseJsonValue(owner, form, json);\n\treturn json;\n}\nfunction readJsonBoolean(owner, json) {\n\tif (typeof json !== \"boolean\") return refuseJsonValue(owner, \"a boolean\", json);\n\treturn json;\n}\n/** Whether `value` is an integer within `range`, its ends included. */\nfunction isIntegerIn(value, range) {\n\treturn typeof value === \"number\" && Number.isInteger(value) && value >= range.min && value <= range.max;\n}\n/** The integers a JavaScript `number` holds exactly. */\nconst SAFE_INTEGER_RANGE = {\n\tmin: Number.MIN_SAFE_INTEGER,\n\tmax: Number.MAX_SAFE_INTEGER\n};\n/** The integers a signed 32-bit integer holds. */\nconst INT32_RANGE = {\n\tmin: -(2 ** 31),\n\tmax: 2 ** 31 - 1\n};\nfunction readJsonInteger(owner, json, range) {\n\tif (!isIntegerIn(json, range)) return refuseJsonValue(owner, `an integer from ${range.min} to ${range.max}`, json);\n\treturn json;\n}\n/** The integers a signed 64-bit integer holds. */\nconst INT64_RANGE = {\n\tmin: -(2n ** 63n),\n\tmax: 2n ** 63n - 1n\n};\n/** The integers a JavaScript `number` holds exactly, as a `bigint` range. */\nconst SAFE_INTEGER_BIGINT_RANGE = {\n\tmin: BigInt(Number.MIN_SAFE_INTEGER),\n\tmax: BigInt(Number.MAX_SAFE_INTEGER)\n};\nconst DECIMAL_INTEGER_TEXT = /^-?\\d+$/;\n/**\n* Reads an integer a codec writes as decimal text, because a JSON number cannot hold every value of its type. The text must be the integer's decimal text, with no leading zeros and no minus sign on zero; another spelling is refused with the text to write, as `\"7\"` for `\"007\"`.\n*/\nfunction readJsonIntegerText(owner, json, range) {\n\tconst expected = range === void 0 ? \"a decimal integer string\" : `a decimal integer string from ${range.min} to ${range.max}`;\n\tconst value = BigInt(readJsonMatching(owner, json, DECIMAL_INTEGER_TEXT, expected));\n\tif (range !== void 0 && (value < range.min || value > range.max)) return refuseJsonValue(owner, expected, json);\n\tconst written = value.toString();\n\tif (json !== written) return refuseJsonValue(owner, `\"${written}\", the integer's decimal text without leading zeros or a minus sign on zero`, json);\n\treturn value;\n}\nconst NON_FINITE_TEXT = /* @__PURE__ */ new Set([\n\t\"NaN\",\n\t\"Infinity\",\n\t\"-Infinity\"\n]);\n/** Whether `text` is `NaN`, `Infinity` or `-Infinity`, the text a float's JSON form writes for a value JSON has no number for. */\nfunction isNonFiniteText(text) {\n\treturn NON_FINITE_TEXT.has(text);\n}\n/** JSON has no number for NaN or an infinity, so a float's JSON form writes them as the text `NaN`, `Infinity` and `-Infinity`. */\nfunction floatToJson(value) {\n\treturn Number.isFinite(value) ? value : String(value);\n}\nfunction readJsonFloat(owner, json) {\n\tif (typeof json === \"number\" && Number.isFinite(json)) return json;\n\tif (typeof json === \"string\" && isNonFiniteText(json)) return Number(json);\n\treturn refuseJsonValue(owner, \"a finite number or the text NaN, Infinity or -Infinity\", json);\n}\n//#endregion\n//#region src/shared/data-type.ts\nvar DataTypeValueRecord = class {\n\ttype;\n\tparams;\n\tvalue;\n\t#constructedByItsType = true;\n\tconstructor(type, params, value) {\n\t\tthis.type = type;\n\t\tthis.params = params;\n\t\tthis.value = value;\n\t\tObject.freeze(this);\n\t}\n\tstatic isConstructed(value) {\n\t\treturn typeof value === \"object\" && value !== null && #constructedByItsType in value && value.#constructedByItsType;\n\t}\n};\n/** Read `id` as a data type id, refusing anything that is not `owner/name` in lower case. */\nfunction dataTypeId(id) {\n\tif (!DATA_TYPE_ID_PATTERN.test(id)) throw runtimeError(\"CONTRACT.DATA_TYPE_ID_INVALID\", `\"${id}\" is not a data type id. A data type id is \"owner/name\" in lower case and carries no version, as in \"owner/name\"; a versioned id names a codec.`, { id });\n\treturn blindCast(id);\n}\n/** Declare a data type. Every id it names, its own and each cast's source, is validated here. */\nfunction dataType(id, spec) {\n\tconst typeId = dataTypeId(id);\n\tconst casts = {};\n\tfor (const [source, cast] of Object.entries(spec.casts ?? {})) casts[dataTypeId(source)] = cast;\n\tconst listCast = spec.listCast;\n\tconst { read, spell, normalize } = spec;\n\tconst construct = (json, params) => new DataTypeValueRecord(typeId, Object.freeze({ ...normalize === void 0 ? params : normalize(params) }), json);\n\tconst spelledUnder = (json, params) => {\n\t\tconst accepted = read(json, params);\n\t\treturn spell === void 0 ? accepted : spell(accepted, params);\n\t};\n\t/** Whether `json` is already the spelling the type gives it without parameters, so that a difference under `params` is theirs. */\n\tconst spelledWithoutParams = (json) => {\n\t\ttry {\n\t\t\treturn canonicalizeJson(spelledUnder(json, {})) === canonicalizeJson(json);\n\t\t} catch (error) {\n\t\t\tif (isInternalError(error)) throw error;\n\t\t\treturn false;\n\t\t}\n\t};\n\tconst fromContract = (json, params) => {\n\t\tconst spelled = spelledUnder(json, params);\n\t\tif (canonicalizeJson(spelled) !== canonicalizeJson(json)) return refuseJsonValue(typeId, Object.keys(params).length > 0 && spelledWithoutParams(json) ? `${JSON.stringify(spelled)}, the spelling its parameters give this value` : `${JSON.stringify(spelled)}, as ${typeId} stores this value`, json);\n\t\treturn construct(json, params);\n\t};\n\treturn {\n\t\tid: typeId,\n\t\t...ifDefined(\"params\", spec.params),\n\t\tcasts,\n\t\t...listCast === void 0 ? {} : { listCast: {\n\t\t\tof: listCast.of.map(dataTypeId),\n\t\t\tcast: listCast.cast\n\t\t} },\n\t\tfromContract,\n\t\tvalueFrom: (json, params) => blindCast(construct(spelledUnder(json, params), params)),\n\t\ttoContract: (value) => requireValueOf(typeId, value, `Data type ${typeId}`).value\n\t};\n}\n/** What is wrong with `params` for `type`, or undefined when `type` accepts them or has no parameter schema. */\nfunction dataTypeParamsProblem(type$1, params) {\n\tconst result = type$1.params?.(params);\n\tif (!(result instanceof type.errors)) return void 0;\n\treturn {\n\t\tdataType: type$1.id,\n\t\tmessage: `${type$1.id}: ${result.summary}`,\n\t\tparameters: [...new Set(result.map((error) => error.path.map(String).join(\".\")))]\n\t};\n}\n/** Refuses `params` that `type` does not accept with `CONTRACT.TYPE_PARAMS_INVALID`, naming the data type and each parameter it refuses, plus the facts in `meta`. */\nfunction assertDataTypeParams(type, params, meta = {}) {\n\tconst problem = dataTypeParamsProblem(type, params);\n\tif (problem === void 0) return;\n\tthrow structuredError(\"CONTRACT.TYPE_PARAMS_INVALID\", problem.message, { meta: {\n\t\tdataType: problem.dataType,\n\t\tparameters: problem.parameters,\n\t\t...meta\n\t} });\n}\n/** `value`, when it is a value of `type` that a data type constructed; anything else is a bug in `holder`'s caller. */\nfunction requireValueOf(type, value, holder) {\n\tif (!DataTypeValueRecord.isConstructed(value)) throw new InternalError(`${holder} takes only values of ${type}, and was handed an object no data type constructed.`);\n\tif (value.type !== type) throw new InternalError(`${holder} takes only values of ${type}, and was handed a value of ${value.type}.`);\n\treturn value;\n}\n/** The parameters in `typeParams` that `type` declares; keys a codec keeps for itself are dropped. */\nfunction dataTypeParams(type, typeParams) {\n\tif (typeof typeParams !== \"object\" || typeParams === null) return {};\n\tconst kept = {};\n\tfor (const key of objectSchemaKeys(type.params) ?? []) if (Object.hasOwn(typeParams, key)) kept[key] = Reflect.get(typeParams, key);\n\treturn kept;\n}\n/** Whether two values are one: the same type, equal parameters, and JSON equal as canonical JSON. */\nfunction dataTypeValuesEqual(a, b) {\n\treturn a.type === b.type && canonicalizeJson(a.params) === canonicalizeJson(b.params) && canonicalizeJson(a.value) === canonicalizeJson(b.value);\n}\nfunction isSchemaPropList(value) {\n\treturn Array.isArray(value) && value.every((prop) => prop !== null && (typeof prop === \"object\" || typeof prop === \"function\") && \"key\" in prop);\n}\nfunction describesObjects(schema) {\n\tconst extendsType = Reflect.get(schema, \"extends\");\n\treturn typeof extendsType === \"function\" && extendsType.call(schema, \"object\") === true;\n}\nfunction objectSchemaProps(schema) {\n\tif (schema === null || typeof schema !== \"object\" && typeof schema !== \"function\") return;\n\tif (!describesObjects(schema)) return void 0;\n\tconst props = readProps(schema);\n\treturn isSchemaPropList(props) ? props : void 0;\n}\n/** Arktype throws from `props` for a union or a morph, whose keys it cannot list. */\nfunction readProps(schema) {\n\ttry {\n\t\treturn Reflect.get(schema, \"props\");\n\t} catch {\n\t\treturn;\n\t}\n}\n/** The keys an arktype object schema declares, or undefined when `schema` is not one. */\nfunction objectSchemaKeys(schema) {\n\treturn objectSchemaProps(schema)?.flatMap((prop) => typeof prop.key === \"string\" ? [prop.key] : []);\n}\n/** The required keys an arktype object schema declares, or undefined when `schema` is not one. */\nfunction requiredSchemaKeys(schema) {\n\treturn objectSchemaProps(schema)?.flatMap((prop) => prop.kind === \"required\" && typeof prop.key === \"string\" ? [prop.key] : []);\n}\nfunction propAllows(prop, value) {\n\tconst schema = prop.value;\n\tif (schema === null || typeof schema !== \"object\" && typeof schema !== \"function\") return false;\n\tconst allows = Reflect.get(schema, \"allows\");\n\treturn typeof allows === \"function\" && allows.call(schema, value) === true;\n}\n/** The keys of an arktype object schema whose own schema accepts `value`, or undefined when `schema` is not one. */\nfunction schemaKeysAllowing(schema, value) {\n\treturn objectSchemaProps(schema)?.flatMap((prop) => typeof prop.key === \"string\" && propAllows(prop, value) ? [prop.key] : []);\n}\n/** The parameters a data type requires. */\nfunction requiredParamKeys(type) {\n\treturn requiredSchemaKeys(type.params) ?? [];\n}\nfunction createDataTypeLookup(types) {\n\tconst byId = new Map(types.map((type) => [type.id, type]));\n\treturn {\n\t\tget: (id) => byId.get(id),\n\t\thas: (id) => byId.has(id)\n\t};\n}\n/** Collect every data type the composed components register, refusing two declarations of one id. */\nfunction assembleDataTypes(descriptors) {\n\tconst declared = [];\n\tconst owners = /* @__PURE__ */ new Map();\n\tfor (const descriptor of descriptors) {\n\t\tconst contributedBy = descriptor.id ?? \"<unknown>\";\n\t\tfor (const type of descriptor.dataTypes ?? []) {\n\t\t\tconst existingOwner = owners.get(type.id);\n\t\t\tif (existingOwner !== void 0) throw runtimeError(\"CONTRACT.DATA_TYPE_DUPLICATE\", `Duplicate data type \"${type.id}\". Component \"${contributedBy}\" conflicts with \"${existingOwner}\". Each data type has exactly one owner across the composed stack.`, {\n\t\t\t\tdataType: type.id,\n\t\t\t\tcontributedBy,\n\t\t\t\towner: existingOwner\n\t\t\t});\n\t\t\towners.set(type.id, contributedBy);\n\t\t\tdeclared.push({\n\t\t\t\ttype,\n\t\t\t\tcontributedBy\n\t\t\t});\n\t\t}\n\t}\n\treturn {\n\t\tlookup: createDataTypeLookup(declared.map((entry) => entry.type)),\n\t\tdeclared\n\t};\n}\n//#endregion\nexport { readJsonInteger as C, refuseJsonValue as D, readJsonString as E, DATA_TYPE_ID_PATTERN as O, readJsonFloat as S, readJsonMatching as T, SAFE_INTEGER_RANGE as _, dataTypeId as a, isNonFiniteText as b, dataTypeValuesEqual as c, requiredParamKeys as d, requiredSchemaKeys as f, SAFE_INTEGER_BIGINT_RANGE as g, INT64_RANGE as h, dataType as i, objectSchemaKeys as l, INT32_RANGE as m, assertDataTypeParams as n, dataTypeParams as o, schemaKeysAllowing as p, createDataTypeLookup as r, dataTypeParamsProblem as s, assembleDataTypes as t, requireValueOf as u, floatToJson as v, readJsonIntegerText as w, readJsonBoolean as x, isIntegerIn as y };\n\n//# sourceMappingURL=data-type-DPhZLx30.mjs.map"],"mappings":";;;;;;;;;AASA,MAAM,uBAAuB;;;;AAM7B,MAAM,yBAAyB;;AAE/B,SAAS,gBAAgB,MAAM;CAC9B,QAAQ,OAAO,SAAS,WAAW,OAAO,IAAI,IAAI,KAAK,UAAU,IAAI,EAAA,CAAG,MAAM,GAAG,sBAAsB;AACxG;;;;AAIA,SAAS,gBAAgB,OAAO,UAAU,MAAM;CAC/C,MAAM,QAAQ,qBAAqB,KAAK,KAAK,IAAI,EAAE,UAAU,MAAM,IAAI,EAAE,SAAS,MAAM;CACxF,MAAM,gBAAgB,yBAAyB,GAAG,MAAM,sBAAsB,YAAY,EAAE,MAAM;EACjG,GAAG;EACH,UAAU,gBAAgB,IAAI;CAC/B,EAAE,CAAC;AACJ;AACA,SAAS,eAAe,OAAO,MAAM;CACpC,IAAI,OAAO,SAAS,UAAU,OAAO,gBAAgB,OAAO,YAAY,IAAI;CAC5E,OAAO;AACR;;AAEA,SAAS,iBAAiB,OAAO,MAAM,SAAS,MAAM;CACrD,IAAI,OAAO,SAAS,YAAY,CAAC,QAAQ,KAAK,IAAI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IAAI,IAAI,MAAM,KAAK,SAAS,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC;CACzD,OAAO;EACN,MAAM,OAAO,KAAK,IAAI,EAAE;EACxB,MAAM,OAAO,KAAK,IAAI,EAAE;CACzB;AACD;;AAEA,SAAS,kBAAkB,aAAa;CACvC,MAAM,WAAW,CAAC;CAClB,MAAM,yBAAyB,IAAI,IAAI;CACvC,KAAK,MAAM,cAAc,aAAa;EACrC,MAAM,gBAAgB,WAAW,MAAM;EACvC,KAAK,MAAM,QAAQ,WAAW,aAAa,CAAC,GAAG;GAC9C,MAAM,gBAAgB,OAAO,IAAI,KAAK,EAAE;GACxC,IAAI,kBAAkB,KAAK,GAAG,MAAM,aAAa,gCAAgC,wBAAwB,KAAK,GAAG,gBAAgB,cAAc,oBAAoB,cAAc,qEAAqE;IACrP,UAAU,KAAK;IACf;IACA,OAAO;GACR,CAAC;GACD,OAAO,IAAI,KAAK,IAAI,aAAa;GACjC,SAAS,KAAK;IACb;IACA;GACD,CAAC;EACF;CACD;CACA,OAAO;EACN,QAAQ,qBAAqB,SAAS,KAAK,UAAU,MAAM,IAAI,CAAC;EAChE;CACD;AACD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"enum-accessor-BUVBc6ZH.d.mts","names":[],"sources":["../../../../1-framework/0-foundation/contract/dist/enum-accessor.d.mts"],"mappings":";;;;;;;UAMU;WACC;IACP,aAAa,MAAM,WAAW,QAAQ,SAAS;IAC/C,WAAW,iBAAiB;;EAE9B,kBAAkB;EAClB,gBAAgB;;;KAGb,sBAAsB,oBAAoB;;;;;;UAMrC;;WAEC;WACA;WACA,SAAS,SAAS;EAC3B,IAAI;EACJ,QAAQ;EACR,OAAO;EACP,UAAU;;;;;iBAKK,mBAAmB,cAAc,cAAc,QAAQ,kBAAkB;;;;iBAIzE,0BAA0B;WAChC,YAAY,SAAS;aACnB,OAAO,SAAS,eAAe;;GAEzC,qBAAqB,UAAU,qBAAqB,eAAe;iB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