@prisma/orm-framework 8.0.0-rc.18-dev.29 → 8.0.0-rc.18-dev.31

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.
Files changed (99) hide show
  1. package/dist/{authoring-CnjmWENY.d.mts → authoring-BY3RNM--.d.mts} +2 -2
  2. package/dist/{authoring-CnjmWENY.d.mts.map → authoring-BY3RNM--.d.mts.map} +1 -1
  3. package/dist/{authoring-Cj8fyHRX.mjs → authoring-D77CrCtb.mjs} +2 -2
  4. package/dist/authoring-D77CrCtb.mjs.map +1 -0
  5. package/dist/{binder-BfzoRtNz-BKfkevTT.d.mts → binder-Cm0N-oPu-deLbJ-j9.d.mts} +17 -20
  6. package/dist/binder-Cm0N-oPu-deLbJ-j9.d.mts.map +1 -0
  7. package/dist/{components-BtODGXHF.d.mts → components-BdXloTpj.d.mts} +36 -3
  8. package/dist/components-BdXloTpj.d.mts.map +1 -0
  9. package/dist/{components-Bji-LsWb.mjs → components-DJ5O7uwz.mjs} +26 -3
  10. package/dist/components-DJ5O7uwz.mjs.map +1 -0
  11. package/dist/components.d.mts +8 -8
  12. package/dist/components.mjs +6 -6
  13. package/dist/components__authoring.d.mts +3 -3
  14. package/dist/components__authoring.mjs +3 -3
  15. package/dist/components__components.d.mts +4 -3
  16. package/dist/components__components.mjs +3 -3
  17. package/dist/components__control.d.mts +4 -4
  18. package/dist/components__control.mjs +2 -2
  19. package/dist/components__execution.d.mts +1 -1
  20. package/dist/{config-types-EWAkvPlg.d.mts → config-types-BXw8w6h9.d.mts} +9 -6
  21. package/dist/config-types-BXw8w6h9.d.mts.map +1 -0
  22. package/dist/config.d.mts +1 -1
  23. package/dist/config__config-types.d.mts +1 -1
  24. package/dist/contract-authoring.d.mts +1 -1
  25. package/dist/contract-authoring.mjs +3 -3
  26. package/dist/{control-xgQMivcm.mjs → control-BJypoZfu.mjs} +9 -27
  27. package/dist/control-BJypoZfu.mjs.map +1 -0
  28. package/dist/{control-Bv8UK63M-CQqlgvYt.mjs → control-Bv8UK63M-dBsEDbTP.mjs} +2 -2
  29. package/dist/{control-Bv8UK63M-CQqlgvYt.mjs.map → control-Bv8UK63M-dBsEDbTP.mjs.map} +1 -1
  30. package/dist/{control-C_zs63JQ-BjpDlKtD.d.mts → control-C_zs63JQ-BFg3u8U5.d.mts} +2 -2
  31. package/dist/{control-C_zs63JQ-BjpDlKtD.d.mts.map → control-C_zs63JQ-BFg3u8U5.d.mts.map} +1 -1
  32. package/dist/{control-B8VnqrE0.d.mts → control-D2f07K6R.d.mts} +5 -6
  33. package/dist/{control-B8VnqrE0.d.mts.map → control-D2f07K6R.d.mts.map} +1 -1
  34. package/dist/control-GrJDRvbD.d.mts +1 -0
  35. package/dist/{declarations-DuSbyF44-DXPe97O9.mjs → declarations-DuSbyF44-D-Q7-GRi.mjs} +2 -2
  36. package/dist/{declarations-DuSbyF44-DXPe97O9.mjs.map → declarations-DuSbyF44-D-Q7-GRi.mjs.map} +1 -1
  37. package/dist/errors.d.mts +4 -4
  38. package/dist/errors.mjs +3 -3
  39. package/dist/errors__control.d.mts +2 -2
  40. package/dist/errors__control.mjs +1 -1
  41. package/dist/errors__execution.d.mts +1 -1
  42. package/dist/errors__execution.mjs +1 -1
  43. package/dist/errors__migration.d.mts +1 -1
  44. package/dist/errors__migration.mjs +1 -1
  45. package/dist/{execution-DEujfQj7.d.mts → execution-B_f4fR5R.d.mts} +3 -3
  46. package/dist/{execution-DEujfQj7.d.mts.map → execution-B_f4fR5R.d.mts.map} +1 -1
  47. package/dist/{execution-kM8NRyxS.d.mts → execution-DbU_RTsu.d.mts} +2 -2
  48. package/dist/{execution-kM8NRyxS.d.mts.map → execution-DbU_RTsu.d.mts.map} +1 -1
  49. package/dist/{execution-Jca11rjy.mjs → execution-okmamhD2.mjs} +2 -2
  50. package/dist/{execution-Jca11rjy.mjs.map → execution-okmamhD2.mjs.map} +1 -1
  51. package/dist/{framework-components-sC9Bo0lq-DZlp3POU.d.mts → framework-components-CDiuJNYP-CwszHrSy.d.mts} +103 -5
  52. package/dist/framework-components-CDiuJNYP-CwszHrSy.d.mts.map +1 -0
  53. package/dist/generator-functions-CXbQfvYu-BIFU1Ryx.mjs +271 -0
  54. package/dist/generator-functions-CXbQfvYu-BIFU1Ryx.mjs.map +1 -0
  55. package/dist/ids.d.mts +1 -5
  56. package/dist/ids.d.mts.map +1 -1
  57. package/dist/ids.mjs +7 -37
  58. package/dist/ids.mjs.map +1 -1
  59. package/dist/{migration-DIM1Hl3K.mjs → migration-BfUEEHWP.mjs} +2 -2
  60. package/dist/{migration-DIM1Hl3K.mjs.map → migration-BfUEEHWP.mjs.map} +1 -1
  61. package/dist/{migration-dimjwpNp.d.mts → migration-BmIe8pwt.d.mts} +2 -2
  62. package/dist/{migration-dimjwpNp.d.mts.map → migration-BmIe8pwt.d.mts.map} +1 -1
  63. package/dist/mutation-default-types-js6llINX-WGmpaAAL.d.mts +66 -0
  64. package/dist/mutation-default-types-js6llINX-WGmpaAAL.d.mts.map +1 -0
  65. package/dist/{parse-BxcaGLV1-DdAqqkvr.mjs → parse-BxcaGLV1-BxEIfxh3.mjs} +2 -2
  66. package/dist/{parse-BxcaGLV1-DdAqqkvr.mjs.map → parse-BxcaGLV1-BxEIfxh3.mjs.map} +1 -1
  67. package/dist/{parse-CJtBvEYy-CM5fFbro.d.mts → parse-CJtBvEYy-wRfXv1HQ.d.mts} +4 -4
  68. package/dist/{parse-CJtBvEYy-CM5fFbro.d.mts.map → parse-CJtBvEYy-wRfXv1HQ.d.mts.map} +1 -1
  69. package/dist/psl-parser.d.mts +18 -7
  70. package/dist/psl-parser.d.mts.map +1 -1
  71. package/dist/psl-parser.mjs +63 -6
  72. package/dist/psl-parser.mjs.map +1 -1
  73. package/dist/psl-parser__format.d.mts +1 -1
  74. package/dist/psl-parser__format.mjs +2 -2
  75. package/dist/psl-parser__interpret.d.mts +4 -4
  76. package/dist/psl-parser__interpret.mjs +1 -1
  77. package/dist/psl-parser__syntax.d.mts +1 -1
  78. package/dist/psl-parser__syntax.mjs +2 -2
  79. package/dist/psl-printer.d.mts +1 -1
  80. package/dist/psl-printer.mjs +1 -1
  81. package/dist/{temporal-presets-woCv6gic-CdzSAygr.mjs → temporal-presets-BcDyr_hK-CFplJNGz.mjs} +5 -103
  82. package/dist/temporal-presets-BcDyr_hK-CFplJNGz.mjs.map +1 -0
  83. package/dist/{written-value-B25FrTvM--oHAqWy0.d.mts → written-value-CQt_C72W-aKFkxVmA.d.mts} +6 -42
  84. package/dist/written-value-CQt_C72W-aKFkxVmA.d.mts.map +1 -0
  85. package/package.json +15 -15
  86. package/dist/authoring-Cj8fyHRX.mjs.map +0 -1
  87. package/dist/binder-BfzoRtNz-BKfkevTT.d.mts.map +0 -1
  88. package/dist/capabilities-Cn-Kepnv-B8FOAyUu.mjs +0 -120
  89. package/dist/capabilities-Cn-Kepnv-B8FOAyUu.mjs.map +0 -1
  90. package/dist/components-Bji-LsWb.mjs.map +0 -1
  91. package/dist/components-BtODGXHF.d.mts.map +0 -1
  92. package/dist/config-types-EWAkvPlg.d.mts.map +0 -1
  93. package/dist/control-COKTlMDX.d.mts +0 -1
  94. package/dist/control-xgQMivcm.mjs.map +0 -1
  95. package/dist/framework-components-sC9Bo0lq-DZlp3POU.d.mts.map +0 -1
  96. package/dist/mutation-default-types-DMtyr_6u-wZRBOsHl.d.mts +0 -96
  97. package/dist/mutation-default-types-DMtyr_6u-wZRBOsHl.d.mts.map +0 -1
  98. package/dist/temporal-presets-woCv6gic-CdzSAygr.mjs.map +0 -1
  99. package/dist/written-value-B25FrTvM--oHAqWy0.d.mts.map +0 -1
@@ -1,16 +1,18 @@
1
1
  import { v as DataTypeId } from "./codec-types-B5_YzEwo-DVCRRWlg.mjs";
2
2
  import { B as PslExtensionBlockParsedAttribute, C as AuthoringPslBlockDescriptorNamespace, F as ParsedPslExtensionBlock, H as PslPosition, I as PslDiagnosticCode, L as PslExtensionBlock, R as PslExtensionBlockAttribute, S as AuthoringPslBlockDescriptor, U as PslSpan, V as PslExtensionBlockPrintEntry, z as PslExtensionBlockAttributeArg } from "./framework-authoring-CdKfPz3Y-BGocjz36.mjs";
3
- import { r as ControlMutationDefaultRegistry } from "./mutation-default-types-DMtyr_6u-wZRBOsHl.mjs";
3
+ import { r as ControlMutationDefaultRegistry } from "./mutation-default-types-js6llINX-WGmpaAAL.mjs";
4
4
  import { r as Result } from "./result-BYCOANWy.mjs";
5
- import { _ as WrittenScalar, n as DataTypeSupport } from "./written-value-B25FrTvM--oHAqWy0.mjs";
6
- import "./authoring-CnjmWENY.mjs";
5
+ import { n as DataTypeSupport, p as WrittenScalar } from "./written-value-CQt_C72W-aKFkxVmA.mjs";
6
+ import "./authoring-BY3RNM--.mjs";
7
7
  import "./codec-CGFT5YKu.mjs";
8
+ import { D as GeneratorPhase, w as GeneratorFunctionRegistry } from "./framework-components-CDiuJNYP-CwszHrSy.mjs";
9
+ import "./components-BdXloTpj.mjs";
8
10
  import { C as PslTypesBlock, O as flatPslModels, S as PslTypeConstructorCall, _ as PslModelAttribute, a as PslAttributePositionalArgument, c as PslDefaultFunctionValue, f as PslDocumentAst, g as PslModel, i as PslAttributeNamedArgument, j as namespacePslExtensionBlocks, l as PslDefaultLiteralValue, m as PslFieldAttribute, n as PslAttribute, o as PslAttributeTarget, p as PslField, r as PslAttributeArgument, s as PslCompositeType, u as PslDefaultValue, v as PslNamedTypeDeclaration, y as PslNamespace } from "./psl-ast-DJhMWL6S-Bwyl-NrU.mjs";
9
- import { r as AssembledAuthoringContributions } from "./control-B8VnqrE0.mjs";
11
+ import { r as AssembledAuthoringContributions } from "./control-D2f07K6R.mjs";
10
12
  import "./psl-ast-BrpUfqBu.mjs";
11
13
  import { i as isPslIdentifier } from "./tokenizer-i8RaVWVa-7fRwlCPP.mjs";
12
- import { B as PslDiagnosticCollector, D as ModelAttributeAst, V as PslSources, Y as SyntaxNode, at as diagnosticFromSpan, d as DiagnosticSource, m as FieldAttributeAst, n as AstNode, ot as diagnosticSource, p as ExpressionAst, pt as mapPslDiagnostics, r as AttributeArgAst, rt as createPslDiagnosticCollector, z as PslDiagnostic } from "./parse-CJtBvEYy-CM5fFbro.mjs";
13
- import { $ as ModelSymbol, A as DescribeUnresolvedType, At as SymbolTableResult, B as FixedStrArgType, Bt as createBinder, C as ContributedTypeNamespace, Ct as ResolvedAttributeArg, D as CtxOf, Dt as Scope, E as CreateBinderInput, Et as ResolvedTypeConstructorCall, F as FieldAttributeCtx, Ft as UnrestrictedNumArgType, G as InferAttr, Gt as memberEntries, H as FuncCallSig, Ht as isNamespaceLike, I as FieldRefArgType, It as UnrestrictedStrArgType, J as JsonArgType, Jt as readResolvedAttributes, K as InspectableArgType, Kt as nodePslSpan, L as FieldSymbol, Lt as UnsupportedAttribute, M as EntityDeclaration, Mt as TypedFuncCall, N as EntityRefArgType, Nt as UnresolvedTypeReference, O as DataTypeValueArgType, Ot as ScopeResolution, P as EntitySelector, Pt as UnrestrictedIdentifierArgType, Q as ModelAttributeCtx, R as FixedIdentifierArgType, Rt as buildSymbolTable, S as ContributedTypeDescriptor, St as ResolvedAttribute, T as ContributedTypeSymbol, Tt as ResolvedNamedTypeBinding, U as FunctionSymbol, Ut as keywordPslSpan, V as FuncCallArgType, Vt as entityReference, W as IdentifierArgType, Wt as matchesSelector, X as ListArgType, Xt as typeReferenceNode, Y as JsonValueArgType, Yt as readResolvedConstructorCall, Z as MixinSymbol, _ as CompositeTypeSymbol, _t as RecordArgType, a as AttributeLevel, at as NumLiteralArgType, b as ContributedMember, bt as RequiredContextFor, c as AttributeSymbol, ct as OutOf, d as BinderResult, dt as ParameterSymbol, et as NamedOut, f as BlockAttributeCtx, ft as ParsedTaggedLiteral, g as BuildSymbolTableOptions, gt as PslSymbol, h as BoundSpec, ht as PositionalParam, i as AttributeCtx, it as NumLiteral, j as DescribeUnsupportedAttribute, jt as TaggedLiteralArgType, k as DeclarationFor, kt as SymbolTable, l as Binder, lt as PSL_UNRESOLVED_REFERENCE, m as BoolArgType, mt as PosOut, n as ArgType, nt as NamespaceSymbol, o as AttributeOut, ot as OneOfArgType, p as BlockSymbol, pt as ParsedTypedValue, q as IntArgType, qt as readResolvedAttribute, r as ArgTypeKind, rt as NullArgType, s as AttributeSpec, st as OptionalArgType, t as AnyArgType, tt as NamedTypeSymbol, u as BinderContext, ut as Param, v as ConstantSymbol, vt as ReferencedFieldRefArgType, w as ContributedTypeScope, wt as ResolvedEntityReference, x as ContributedNamespaceSymbol, xt as Resolution, y as ContextForRequirement, yt as RejectingArgType, z as FixedNumArgType, zt as contributedTypeOf } from "./binder-BfzoRtNz-BKfkevTT.mjs";
14
+ import { B as PslDiagnosticCollector, D as ModelAttributeAst, V as PslSources, Y as SyntaxNode, at as diagnosticFromSpan, d as DiagnosticSource, m as FieldAttributeAst, n as AstNode, ot as diagnosticSource, p as ExpressionAst, pt as mapPslDiagnostics, r as AttributeArgAst, rt as createPslDiagnosticCollector, z as PslDiagnostic } from "./parse-CJtBvEYy-wRfXv1HQ.mjs";
15
+ import { $ as ModelSymbol, A as DescribeUnresolvedType, At as SymbolTableResult, B as FixedStrArgType, Bt as createBinder, C as ContributedTypeNamespace, Ct as ResolvedAttributeArg, D as CtxOf, Dt as Scope, E as CreateBinderInput, Et as ResolvedTypeConstructorCall, F as FieldAttributeCtx, Ft as UnrestrictedNumArgType, G as InferAttr, Gt as memberEntries, H as FuncCallSig, Ht as isNamespaceLike, I as FieldRefArgType, It as UnrestrictedStrArgType, J as JsonArgType, Jt as readResolvedAttributes, K as InspectableArgType, Kt as nodePslSpan, L as FieldSymbol, Lt as UnsupportedAttribute, M as EntityDeclaration, Mt as TypedFuncCall, N as EntityRefArgType, Nt as UnresolvedTypeReference, O as DataTypeValueArgType, Ot as ScopeResolution, P as EntitySelector, Pt as UnrestrictedIdentifierArgType, Q as ModelAttributeCtx, R as FixedIdentifierArgType, Rt as buildSymbolTable, S as ContributedTypeDescriptor, St as ResolvedAttribute, T as ContributedTypeSymbol, Tt as ResolvedNamedTypeBinding, U as FunctionSymbol, Ut as keywordPslSpan, V as FuncCallArgType, Vt as entityReference, W as IdentifierArgType, Wt as matchesSelector, X as ListArgType, Xt as typeReferenceNode, Y as JsonValueArgType, Yt as readResolvedConstructorCall, Z as MixinSymbol, _ as CompositeTypeSymbol, _t as RecordArgType, a as AttributeLevel, at as NumLiteralArgType, b as ContributedMember, bt as RequiredContextFor, c as AttributeSymbol, ct as OutOf, d as BinderResult, dt as ParameterSymbol, et as NamedOut, f as BlockAttributeCtx, ft as ParsedTaggedLiteral, g as BuildSymbolTableOptions, gt as PslSymbol, h as BoundSpec, ht as PositionalParam, i as AttributeCtx, it as NumLiteral, j as DescribeUnsupportedAttribute, jt as TaggedLiteralArgType, k as DeclarationFor, kt as SymbolTable, l as Binder, lt as PSL_UNRESOLVED_REFERENCE, m as BoolArgType, mt as PosOut, n as ArgType, nt as NamespaceSymbol, o as AttributeOut, ot as OneOfArgType, p as BlockSymbol, pt as ParsedTypedValue, q as IntArgType, qt as readResolvedAttribute, r as ArgTypeKind, rt as NullArgType, s as AttributeSpec, st as OptionalArgType, t as AnyArgType, tt as NamedTypeSymbol, u as BinderContext, ut as Param, v as ConstantSymbol, vt as ReferencedFieldRefArgType, w as ContributedTypeScope, wt as ResolvedEntityReference, x as ContributedNamespaceSymbol, xt as Resolution, y as ContextForRequirement, yt as RejectingArgType, z as FixedNumArgType, zt as contributedTypeOf } from "./binder-Cm0N-oPu-deLbJ-j9.mjs";
14
16
  //#region ../../../1-framework/2-authoring/psl-parser/dist/index.d.mts
15
17
  //#region src/attribute-helpers.d.ts
16
18
  declare function getPositionalArgument(attribute: PslAttribute, index?: number): string | undefined;
@@ -45,6 +47,7 @@ interface AttributeSpecContext {
45
47
  readonly symbols: SymbolTable;
46
48
  readonly model: ModelSymbol | MixinSymbol;
47
49
  readonly defaultFunctionRegistry: ControlMutationDefaultRegistry;
50
+ readonly generatorFunctions: GeneratorFunctionRegistry;
48
51
  readonly dataTypes: DataTypeSupport;
49
52
  }
50
53
  /** The data types of a stack that registers none. */
@@ -208,6 +211,14 @@ interface FieldAttributeConfig<Pos extends readonly PositionalParam<unknown, Fie
208
211
  }
209
212
  declare function fieldAttribute<const Pos extends readonly PositionalParam<unknown, FieldAttributeCtx>[] = readonly [], const Named extends Record<string, Param<unknown, FieldAttributeCtx>> = Record<never, never>>(name: string, config: FieldAttributeConfig<Pos, Named>): AttributeSpec<AttributeOut<Pos, Named>, FieldAttributeCtx>;
210
213
  //#endregion
214
+ //#region src/attribute-spec/generator-attribute.d.ts
215
+ /** The source text of a node, as the author wrote it. */
216
+ declare function nodeSourceText(node: AstNode, ctx: Pick<AttributeCtx, 'sources'>): string;
217
+ /** The spec of `@onCreate(fn())` or `@onUpdate(fn())`, offering the generator functions bound to the field's codec. */
218
+ declare function generatorAttributeSpec(phase: GeneratorPhase): (ctx: FieldAttributeSpecContext) => AttributeSpec<{
219
+ value: TypedFuncCall;
220
+ }, FieldAttributeCtx>;
221
+ //#endregion
211
222
  //#region src/attribute-spec/interpret.d.ts
212
223
  interface ArgBindingSpec<Ctx extends AttributeCtx> {
213
224
  readonly name: string;
@@ -322,5 +333,5 @@ type WrittenScalarResult = {
322
333
  /** Reads a PSL literal expression as a `WrittenScalar`, for a position that takes a value of a data type. ADR 254. */
323
334
  declare function readWrittenScalar(expression: ExpressionAst): WrittenScalarResult;
324
335
  //#endregion
325
- export { type ArgBindingSpec, type ArgType, type ArgTypeKind, type AssembledAttributeSpecs, type AttributeCtx, type AttributeLevel, type AttributeOut, type AttributeSpec, type AttributeSpecContext, type AttributeSpecNamespace, type AttributeSymbol, type Binder, type BinderContext, type BinderResult, type BlockAttributeCtx, type BlockAttributeSpecFactory, type BlockEntryValueSpec, type BlockSpec, type BlockSpecContext, type BlockSpecFactory, type BlockSymbol, type BoundSpec, type BuildSymbolTableOptions, type CompositeTypeSymbol, type ConstantSymbol, type ContributedMember, type ContributedNamespaceSymbol, type ContributedTypeDescriptor, type ContributedTypeNamespace, type ContributedTypeScope, type ContributedTypeSymbol, type CreateBinderInput, type DataTypeValueArgType, type DeclarationFor, type DescribeUnresolvedType, type DescribeUnsupportedAttribute, type DiagnosticSource, EMPTY_DATA_TYPES, type EntityDeclaration, type EntityRefArgType, type EntitySelector, type FieldAttributeCtx, type FieldAttributeSpecContext, type FieldAttributeSpecFactory, type FieldSymbol, type FixedIdentifierArgType, type FuncCallSig, type FunctionSymbol, type IdentifierArgType, type InferAttr, type InferBlock, type InspectableArgType, type InterpretExtensionBlockAttributesInput, type InterpretExtensionBlockInput, type InterpretExtensionBlocksResult, type JsonValueArgType, type ListOptions, type MapBlockSpec, type MixinSymbol, type ModelAttributeCtx, type ModelAttributeSpecFactory, type ModelSymbol, NAME_THE_PSL_SOURCE_LOSES, type NamedOut, type NamedTypeSymbol, type NamespaceSymbol, type NullArgType, type NumLiteral, type OptionalArgType, type OutOf, PSL_UNRESOLVED_REFERENCE, type Param, type ParameterSymbol, type ParsedPslExtensionBlock, type ParsedTaggedLiteral, type ParsedTypedValue, type ParsedWrittenList, type ParsedWrittenScalar, type PosOut, type PositionalParam, type PslAttribute, type PslAttributeArgument, type PslAttributeNamedArgument, type PslAttributePositionalArgument, type PslAttributeTarget, type PslBlockSpecDescriptor, type PslCompositeType, type PslDefaultFunctionValue, type PslDefaultLiteralValue, type PslDefaultValue, type PslDiagnostic, type PslDiagnosticCode, type PslDiagnosticCollector, type PslDocumentAst, type PslExtensionBlock, type PslExtensionBlockAttribute, type PslExtensionBlockAttributeArg, type PslExtensionBlockParsedAttribute, type PslExtensionBlockPrintEntry, type PslField, type PslFieldAttribute, type PslModel, type PslModelAttribute, type PslNamedTypeDeclaration, type PslNamespace, type PslPosition, type PslSpan, type PslSymbol, type PslTypeConstructorCall, type PslTypesBlock, type RejectingArgType, type Resolution, type ResolvedAttribute, type ResolvedAttributeArg, type ResolvedEntityReference, type ResolvedNamedTypeBinding, type ResolvedTypeConstructorCall, type Scope, type ScopeResolution, type StructBlockSpec, type SymbolTable, type SymbolTableResult, type TaggedLiteralArgType, type TypedFuncCall, type UnresolvedTypeReference, type UnrestrictedIdentifierArgType, type UnsupportedAttribute, type WrittenScalarResult, assembleAttributeSpecs, blockAttribute, blockSpecContext, blockSpecFactoryOf, bool, buildSymbolTable, contributedTypeOf, createBinder, createPslDiagnosticCollector, dataTypeValue, diagnosticFromSpan, diagnosticSource, entityRef, entityReference, fieldAttribute, fieldRef, findBlockDescriptor, flatPslModels, funcCall, getPositionalArgument, identifier, int, interpretArgs, interpretAttribute, interpretExtensionBlock, interpretExtensionBlockAttributes, interpretExtensionBlocks, isNamespaceLike, isPrismaNextSchema, isPslIdentifier, json, jsonValue, keywordPslSpan, leafDiagnostic, list, mapArg, mapBlock, mapPslDiagnostics, matchesSelector, memberEntries, modelAttribute, namespacePslExtensionBlocks, nodePslSpan, num, numLiteral, oneOf, optional, parseQuotedStringLiteral, readResolvedAttribute, readResolvedAttributes, readResolvedConstructorCall, readWrittenScalar, record, referencedFieldRef, renameLegacyDirective, str, structBlock, taggedLiteral, typeReferenceNode, writtenList, writtenScalar };
336
+ export { type ArgBindingSpec, type ArgType, type ArgTypeKind, type AssembledAttributeSpecs, type AttributeCtx, type AttributeLevel, type AttributeOut, type AttributeSpec, type AttributeSpecContext, type AttributeSpecNamespace, type AttributeSymbol, type Binder, type BinderContext, type BinderResult, type BlockAttributeCtx, type BlockAttributeSpecFactory, type BlockEntryValueSpec, type BlockSpec, type BlockSpecContext, type BlockSpecFactory, type BlockSymbol, type BoundSpec, type BuildSymbolTableOptions, type CompositeTypeSymbol, type ConstantSymbol, type ContributedMember, type ContributedNamespaceSymbol, type ContributedTypeDescriptor, type ContributedTypeNamespace, type ContributedTypeScope, type ContributedTypeSymbol, type CreateBinderInput, type DataTypeValueArgType, type DeclarationFor, type DescribeUnresolvedType, type DescribeUnsupportedAttribute, type DiagnosticSource, EMPTY_DATA_TYPES, type EntityDeclaration, type EntityRefArgType, type EntitySelector, type FieldAttributeCtx, type FieldAttributeSpecContext, type FieldAttributeSpecFactory, type FieldSymbol, type FixedIdentifierArgType, type FixedNumArgType, type FuncCallSig, type FunctionSymbol, type IdentifierArgType, type InferAttr, type InferBlock, type InspectableArgType, type IntArgType, type InterpretExtensionBlockAttributesInput, type InterpretExtensionBlockInput, type InterpretExtensionBlocksResult, type JsonValueArgType, type ListOptions, type MapBlockSpec, type MixinSymbol, type ModelAttributeCtx, type ModelAttributeSpecFactory, type ModelSymbol, NAME_THE_PSL_SOURCE_LOSES, type NamedOut, type NamedTypeSymbol, type NamespaceSymbol, type NullArgType, type NumLiteral, type OneOfArgType, type OptionalArgType, type OutOf, PSL_UNRESOLVED_REFERENCE, type Param, type ParameterSymbol, type ParsedPslExtensionBlock, type ParsedTaggedLiteral, type ParsedTypedValue, type ParsedWrittenList, type ParsedWrittenScalar, type PosOut, type PositionalParam, type PslAttribute, type PslAttributeArgument, type PslAttributeNamedArgument, type PslAttributePositionalArgument, type PslAttributeTarget, type PslBlockSpecDescriptor, type PslCompositeType, type PslDefaultFunctionValue, type PslDefaultLiteralValue, type PslDefaultValue, type PslDiagnostic, type PslDiagnosticCode, type PslDiagnosticCollector, type PslDocumentAst, type PslExtensionBlock, type PslExtensionBlockAttribute, type PslExtensionBlockAttributeArg, type PslExtensionBlockParsedAttribute, type PslExtensionBlockPrintEntry, type PslField, type PslFieldAttribute, type PslModel, type PslModelAttribute, type PslNamedTypeDeclaration, type PslNamespace, type PslPosition, type PslSpan, type PslSymbol, type PslTypeConstructorCall, type PslTypesBlock, type RejectingArgType, type Resolution, type ResolvedAttribute, type ResolvedAttributeArg, type ResolvedEntityReference, type ResolvedNamedTypeBinding, type ResolvedTypeConstructorCall, type Scope, type ScopeResolution, type StructBlockSpec, type SymbolTable, type SymbolTableResult, type TaggedLiteralArgType, type TypedFuncCall, type UnresolvedTypeReference, type UnrestrictedIdentifierArgType, type UnrestrictedNumArgType, type UnsupportedAttribute, type WrittenScalarResult, assembleAttributeSpecs, blockAttribute, blockSpecContext, blockSpecFactoryOf, bool, buildSymbolTable, contributedTypeOf, createBinder, createPslDiagnosticCollector, dataTypeValue, diagnosticFromSpan, diagnosticSource, entityRef, entityReference, fieldAttribute, fieldRef, findBlockDescriptor, flatPslModels, funcCall, generatorAttributeSpec, getPositionalArgument, identifier, int, interpretArgs, interpretAttribute, interpretExtensionBlock, interpretExtensionBlockAttributes, interpretExtensionBlocks, isNamespaceLike, isPrismaNextSchema, isPslIdentifier, json, jsonValue, keywordPslSpan, leafDiagnostic, list, mapArg, mapBlock, mapPslDiagnostics, matchesSelector, memberEntries, modelAttribute, namespacePslExtensionBlocks, nodePslSpan, nodeSourceText, num, numLiteral, oneOf, optional, parseQuotedStringLiteral, readResolvedAttribute, readResolvedAttributes, readResolvedConstructorCall, readWrittenScalar, record, referencedFieldRef, renameLegacyDirective, str, structBlock, taggedLiteral, typeReferenceNode, writtenList, writtenScalar };
326
337
  //# sourceMappingURL=psl-parser.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"psl-parser.d.mts","names":[],"sources":["../../../../1-framework/2-authoring/psl-parser/dist/index.d.mts"],"mappings":";;;;;;;;;;;;;;;iBAUiB,sBAAsB,WAAW,cAAgB;iBACjD,yBAAyB;;;UAGhC;WACC,SAAS;WACT,WAAW;;UAEZ;WACC,MAAM,iBAAiB;WACvB;;UAED,gBAAgB;WACf;WACA,YAAY,SAAS,eAAe,eAAe;WACnD,OAAO;;UAER,aAAa;WACZ;WACA,OAAO;WACP;WACA,OAAO;;KAEb,UAAU,iBAAiB,gBAAgB,OAAO,aAAa;KAC/D,WAAW,KAAK,UAAU,gBAAgB,OAAO;KACjD,oBAAoB,KAAK,qBAAqB,UAAU,SAAS;;;UAG5D;WACC,SAAS;WACT,OAAO,cAAc;WACrB,yBAAyB;WACzB,WAAW;;;cAGR,kBAAkB;UACtB,kCAAkC;WACjC,OAAO;WACP,gBAAgB;;WAEhB,iBAAiB;;KAEvB,6BAA6B,KAAK,yBAAyB,qBAAqB;KAChF,6BAA6B,KAAK,8BAA8B,qBAAq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BAAiB;WACvB,SAAS;WACT,WAAW;IAClB;;;iBAGa,oBAAoB,aAAa,kDAAkD,kBAAkB;;;;;;cAMxG;;;iBAGG,mBAAmB;;iBAEnB,sBAAsB;;;;KAIlC;WACM;WACA,SAAS;;WAET;WACA;;WAEA;WACA;WACA;;;iBAGM,kBAAkB,YAAY,gBAAgB"}
1
+ {"version":3,"file":"psl-parser.d.mts","names":[],"sources":["../../../../1-framework/2-authoring/psl-parser/dist/index.d.mts"],"mappings":";;;;;;;;;;;;;;;;;iBAWiB,sBAAsB,WAAW,cAAgB;iBACjD,yBAAyB;;;UAGhC;WACC,SAAS;WACT,WAAW;;UAEZ;WACC,MAAM,iBAAiB;WACvB;;UAED,gBAAgB;WACf;WACA,YAAY,SAAS,eAAe,eAAe;WACnD,OAAO;;UAER,aAAa;WACZ;WACA,OAAO;WACP;WACA,OAAO;;KAEb,UAAU,iBAAiB,gBAAgB,OAAO,aAAa;KAC/D,WAAW,KAAK,UAAU,gBAAgB,OAAO;KACjD,oBAAoB,KAAK,qBAAqB,UAAU,SAAS;;;UAG5D;WACC,SAAS;WACT,OAAO,cAAc;WACrB,yBAAyB;WACzB,oBAAoB;WACpB,WAAW;;;cAGR,kBAAkB;UACtB,kCAAkC;WACjC,OAAO;WACP,gBAAgB;;WAEhB,iBAAiB;;KAEvB,6BAA6B,KAAK,yBAAyB,qBAAqB;KAChF,6BAA6B,KAAK,8BAA8B,qBAAqB;UAChF;WACC,OAAO,SAAS,eAAe;WAC/B,OAAO,SAAS,eAAe;;KAErC,6BAA6B,KAAK,qBAAqB,qBAAqB;;;UAGvE;WACC,OAAO,SAAS,eAAe;WAC/B,OAAO,SAAS,eAAe;;iBAEzB,uBAAuB,eAAe,kCAAkC;;;UAG/E,qBAAqB,qBAAqB,yBAAyB,sBAAsB,cAAc,eAAe,eAAe;WACpI;WACA,aAAa;WACb,QAAQ;WACR,UAAU,QAAQ,aAAa,KAAK,QAAQ,KAAK,mBAAmB,eAAe,qBAAqB;;iBA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} from "./casts-DpaahrlC-Bd5n2coI.mjs";
2
2
  import { t as InternalError } from "./internal-error-ChGYPVpq-DhUD05u0.mjs";
3
3
  import { a as or, i as okVoid, n as notOk, r as ok, t as and } from "./result-8OXF26MN.mjs";
4
4
  import { c as createDataTypeLookup } from "./data-type-DPhZLx30-DP2Kmnf5.mjs";
5
- import { C as isAuthoringPslBlockDescriptor, S as isAuthoringModelAttributeDescriptor, f as describeTaggedLiteralFailure } from "./temporal-presets-woCv6gic-CdzSAygr.mjs";
5
+ import { b as isAuthoringModelAttributeDescriptor, d as describeTaggedLiteralFailure, x as isAuthoringPslBlockDescriptor } from "./temporal-presets-BcDyr_hK-CFplJNGz.mjs";
6
6
  import { r as UNBOUND_NAMESPACE_ID } from "./namespace-VUH2dgnS-By5y75h9.mjs";
7
- import { S as tagForm, a as castTypedValue, c as describeRefusal, h as exactRewrite, n as admittedTags, o as describeAdmittedForms, s as describeExpected, t as admittedForms, x as readWrittenValue } from "./authoring-Cj8fyHRX.mjs";
7
+ import { S as tagForm, a as castTypedValue, c as describeRefusal, h as exactRewrite, n as admittedTags, o as describeAdmittedForms, s as describeExpected, t as admittedForms, x as readWrittenValue } from "./authoring-D77CrCtb.mjs";
8
8
  import { a as flatPslModels, c as namespacePslExtensionBlocks, n as UNBOUND_PSL_NAMESPACE_NAME } from "./psl-ast-CyvE6CR-.mjs";
9
9
  import { l as printSyntax } from "./ast-helpers-CzydMPdh-Mi0SrZRa.mjs";
10
10
  import { n as isPslIdentifier } from "./tokenizer-C-GTKKjR-B1vOzJy0.mjs";
11
- import { D as TypesBlockAst, S as PathExprAst, T as TaggedLiteralExprAst, a as CompositeTypeDeclarationAst, c as FieldDeclarationAst, d as IdentifierAst, f as KeyValuePairAst, g as ModelDeclarationAst, h as ModelAttributeAst, i as BooleanLiteralExprAst, l as FunctionCallAst, p as MixinDeclarationAst, t as ArrayLiteralAst, u as GenericBlockDeclarationAst, v as NamespaceDeclarationAst, w as StringLiteralExprAst, x as ObjectLiteralExprAst, y as NumberLiteralExprAst } from "./declarations-DuSbyF44-DXPe97O9.mjs";
11
+ import { D as TypesBlockAst, S as PathExprAst, T as TaggedLiteralExprAst, a as CompositeTypeDeclarationAst, c as FieldDeclarationAst, d as IdentifierAst, f as KeyValuePairAst, g as ModelDeclarationAst, h as ModelAttributeAst, i as BooleanLiteralExprAst, l as FunctionCallAst, p as MixinDeclarationAst, t as ArrayLiteralAst, u as GenericBlockDeclarationAst, v as NamespaceDeclarationAst, w as StringLiteralExprAst, x as ObjectLiteralExprAst, y as NumberLiteralExprAst } from "./declarations-DuSbyF44-D-Q7-GRi.mjs";
12
12
  import { a as mapPslDiagnostics, c as readResolvedAttributes, i as keywordPslSpan, l as readResolvedConstructorCall, n as diagnosticFromSpan, o as nodePslSpan, r as diagnosticSource, s as readResolvedAttribute, t as createPslDiagnosticCollector } from "./resolve-C8PUf8zv-QAvnPhCt.mjs";
13
- //#region ../../../1-framework/2-authoring/psl-parser/dist/binder-C6J2sCqG.mjs
13
+ //#region ../../../1-framework/2-authoring/psl-parser/dist/binder-CzIVWo8K.mjs
14
14
  function* modelAttributeDescriptors(namespace) {
15
15
  for (const value of Object.values(namespace)) {
16
16
  if (isAuthoringModelAttributeDescriptor(value)) {
@@ -830,13 +830,14 @@ function createBinder(input) {
830
830
  attributeSpecs: assembleAttributeSpecs(contributions),
831
831
  pslBlockDescriptors: contributions.pslBlockDescriptors,
832
832
  defaultFunctionRegistry: context.controlMutationDefaults.defaultFunctionRegistry,
833
+ generatorFunctions: context.generatorFunctions,
833
834
  dataTypes: context.dataTypes,
834
835
  ...describeUnsupportedAttributeFactory !== void 0 ? { describeUnsupportedAttribute: describeUnsupportedAttributeFactory(sources) } : {},
835
836
  ...describeUnresolvedTypeFactory !== void 0 ? { describeUnresolvedType: describeUnresolvedTypeFactory(contributions) } : {}
836
837
  });
837
838
  }
838
839
  function bind(options) {
839
- const { sources, symbolTable, contributedTypes, attributeSpecs, defaultFunctionRegistry, dataTypes, describeUnsupportedAttribute, describeUnresolvedType } = options;
840
+ const { sources, symbolTable, contributedTypes, attributeSpecs, defaultFunctionRegistry, generatorFunctions, dataTypes, describeUnsupportedAttribute, describeUnresolvedType } = options;
840
841
  const pslBlockDescriptors = options.pslBlockDescriptors ?? {};
841
842
  const contributed = contributedScope(contributedTypeScope(contributedTypes));
842
843
  const document = documentScope(symbolTable, contributed);
@@ -966,6 +967,7 @@ function bind(options) {
966
967
  symbols: symbolTable,
967
968
  model: entity,
968
969
  defaultFunctionRegistry,
970
+ generatorFunctions,
969
971
  dataTypes
970
972
  } : void 0;
971
973
  bindAttributes(entity, ownAttributes(entity), attributeSpecs.model, (factory) => specContext === void 0 ? void 0 : factory(specContext), {
@@ -2148,6 +2150,61 @@ function fieldAttribute(name, config) {
2148
2150
  ...config.refine !== void 0 ? { refine: config.refine } : {}
2149
2151
  };
2150
2152
  }
2153
+ const GENERATOR_PHASE_DOCUMENTATION = {
2154
+ onCreate: "Generates a value in the client when a row is created without one.",
2155
+ onUpdate: "Generates a value in the client every time a row is updated."
2156
+ };
2157
+ /** The source text of a node, as the author wrote it. */
2158
+ function nodeSourceText(node, ctx) {
2159
+ return ctx.sources.sourceFileFor(node.syntax).text.slice(node.syntax.offset, node.syntax.endOffset).trim();
2160
+ }
2161
+ function calleeName(node) {
2162
+ return FunctionCallAst.cast(node.syntax)?.path().join(".");
2163
+ }
2164
+ function functionListText(functions, codecKnown) {
2165
+ if (functions.length > 0) return `Functions that apply: ${functions.map(({ name }) => `${name}()`).join(", ")}.`;
2166
+ return codecKnown ? "No generator function applies to this codec." : "No generator function applies to it.";
2167
+ }
2168
+ /**
2169
+ * The generator function arms for a field's codec. A call to a function that does not apply to the codec, or that no component declares, is refused before the arms are tried, so the author is told which functions do apply.
2170
+ */
2171
+ function generatorCallArm(ctx) {
2172
+ const codecId = ctx.typeConstructor?.descriptor.output.codecId;
2173
+ const functions = codecId === void 0 ? [] : ctx.generatorFunctions.functionsFor(codecId);
2174
+ const fieldPath = `${ctx.model.name}.${ctx.field.name}`;
2175
+ const target = codecId === void 0 ? "the field's type" : `codec "${codecId}"`;
2176
+ const refuse = (arg, attributeCtx) => {
2177
+ const name = calleeName(arg);
2178
+ return notOk([name !== void 0 && !ctx.generatorFunctions.has(name) ? leafDiagnostic(attributeCtx, arg, `Field "${fieldPath}": unknown generator function "${name}". ${functionListText(functions, codecId !== void 0)}`, "PSL_UNKNOWN_GENERATOR_FUNCTION") : leafDiagnostic(attributeCtx, arg, `Field "${fieldPath}": ${nodeSourceText(arg, attributeCtx)} does not apply to ${target}. ${functionListText(functions, codecId !== void 0)}`, "PSL_GENERATOR_NOT_APPLICABLE")]);
2179
+ };
2180
+ const [first, ...rest] = functions.map(({ name, signature }) => funcCall(name, blindCast(signature)));
2181
+ if (first === void 0) return {
2182
+ kind: "rejecting",
2183
+ label: "generator function",
2184
+ message: `No generator function applies to ${target}`,
2185
+ parse: refuse
2186
+ };
2187
+ const value = oneOf(first, ...rest);
2188
+ const bound = new Set(functions.map(({ name }) => name));
2189
+ return {
2190
+ ...value,
2191
+ parse: (arg, attributeCtx) => {
2192
+ const name = calleeName(arg);
2193
+ return name !== void 0 && !bound.has(name) ? refuse(arg, attributeCtx) : value.parse(arg, attributeCtx);
2194
+ }
2195
+ };
2196
+ }
2197
+ /** The spec of `@onCreate(fn())` or `@onUpdate(fn())`, offering the generator functions bound to the field's codec. */
2198
+ function generatorAttributeSpec(phase) {
2199
+ return (ctx) => fieldAttribute(phase, {
2200
+ documentation: GENERATOR_PHASE_DOCUMENTATION[phase],
2201
+ positional: [{
2202
+ key: "value",
2203
+ type: generatorCallArm(ctx),
2204
+ documentation: "A generator function that applies to the field's codec."
2205
+ }]
2206
+ });
2207
+ }
2151
2208
  function modelAttribute(name, config) {
2152
2209
  return {
2153
2210
  level: "model",
@@ -2428,6 +2485,6 @@ function renameLegacyDirective(text) {
2428
2485
  return text.replace(DIRECTIVE, (whole, lead, name, trail) => name === LEGACY_NAME ? `${lead}prisma-8${trail}` : whole);
2429
2486
  }
2430
2487
  //#endregion
2431
- export { EMPTY_DATA_TYPES, NAME_THE_PSL_SOURCE_LOSES, PSL_UNRESOLVED_REFERENCE, assembleAttributeSpecs, blockAttribute, blockSpecContext, blockSpecFactoryOf, bool, buildSymbolTable, contributedTypeOf, createBinder, createPslDiagnosticCollector, dataTypeValue, diagnosticFromSpan, diagnosticSource, entityRef, entityReference, fieldAttribute, fieldRef, findBlockDescriptor, flatPslModels, funcCall, getPositionalArgument, identifier, int, interpretArgs, interpretAttribute, interpretExtensionBlock, interpretExtensionBlockAttributes, interpretExtensionBlocks, isNamespaceLike, isPrismaNextSchema, isPslIdentifier, json, jsonValue, keywordPslSpan, leafDiagnostic, list, mapArg, mapBlock, mapPslDiagnostics, matchesSelector, memberEntries, modelAttribute, namespacePslExtensionBlocks, nodePslSpan, num, numLiteral, oneOf, optional, parseQuotedStringLiteral, readResolvedAttribute, readResolvedAttributes, readResolvedConstructorCall, readWrittenScalar, record, referencedFieldRef, renameLegacyDirective, str, structBlock, taggedLiteral, typeReferenceNode, writtenList, writtenScalar };
2488
+ export { EMPTY_DATA_TYPES, NAME_THE_PSL_SOURCE_LOSES, PSL_UNRESOLVED_REFERENCE, assembleAttributeSpecs, blockAttribute, blockSpecContext, blockSpecFactoryOf, bool, buildSymbolTable, contributedTypeOf, createBinder, createPslDiagnosticCollector, dataTypeValue, diagnosticFromSpan, diagnosticSource, entityRef, entityReference, fieldAttribute, fieldRef, findBlockDescriptor, flatPslModels, funcCall, generatorAttributeSpec, getPositionalArgument, identifier, int, interpretArgs, interpretAttribute, interpretExtensionBlock, interpretExtensionBlockAttributes, interpretExtensionBlocks, isNamespaceLike, isPrismaNextSchema, isPslIdentifier, json, jsonValue, keywordPslSpan, leafDiagnostic, list, mapArg, mapBlock, mapPslDiagnostics, matchesSelector, memberEntries, modelAttribute, namespacePslExtensionBlocks, nodePslSpan, nodeSourceText, num, numLiteral, oneOf, optional, parseQuotedStringLiteral, readResolvedAttribute, readResolvedAttributes, readResolvedConstructorCall, readWrittenScalar, record, referencedFieldRef, renameLegacyDirective, str, structBlock, taggedLiteral, typeReferenceNode, writtenList, writtenScalar };
2432
2489
 
2433
2490
  //# sourceMappingURL=psl-parser.mjs.map