@prisma/orm-framework 8.0.0-rc.21-dev.6 → 8.0.0-rc.21-dev.8
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-D75oR8Nt.d.mts → authoring-BKOoGNxH.d.mts} +56 -4
- package/dist/authoring-BKOoGNxH.d.mts.map +1 -0
- package/dist/{authoring-4wc_1ETR.mjs → authoring-CcfXu8Dz.mjs} +377 -31
- package/dist/authoring-CcfXu8Dz.mjs.map +1 -0
- package/dist/{framework-authoring-ebqZ8M_M-Bdi8MutX.d.mts → authoring-type-choice-CHcRX0RP-CkG1L8a9.d.mts} +111 -27
- package/dist/authoring-type-choice-CHcRX0RP-CkG1L8a9.d.mts.map +1 -0
- package/dist/{binder-BszqDG1t-pSH-fXt5.d.mts → binder-CMy3WM5A-DRrDzBAq.d.mts} +35 -17
- package/dist/{binder-BszqDG1t-pSH-fXt5.d.mts.map → binder-CMy3WM5A-DRrDzBAq.d.mts.map} +1 -1
- package/dist/{components-CHWGZJ5q.d.mts → components-BvnVHOK3.d.mts} +3 -3
- package/dist/{components-CHWGZJ5q.d.mts.map → components-BvnVHOK3.d.mts.map} +1 -1
- package/dist/components.d.mts +11 -11
- package/dist/components.mjs +4 -4
- package/dist/components__authoring.d.mts +4 -4
- package/dist/components__authoring.mjs +3 -3
- package/dist/components__components.d.mts +3 -3
- package/dist/components__control.d.mts +3 -3
- package/dist/components__control.mjs +2 -2
- package/dist/components__execution.d.mts +1 -1
- package/dist/components__psl-ast.d.mts +3 -3
- package/dist/components__runtime.d.mts +2 -2
- package/dist/{config-types-B0JjhuaX.d.mts → config-types-De3gHQOy.d.mts} +5 -5
- package/dist/{config-types-B0JjhuaX.d.mts.map → config-types-De3gHQOy.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 +2 -2
- package/dist/contract-authoring.mjs +3 -3
- package/dist/{control-DLpQIwer.mjs → control-BE0sjzPI.mjs} +6 -2
- package/dist/control-BE0sjzPI.mjs.map +1 -0
- package/dist/{control-BeXOxtXA-DyPvQsqJ.d.mts → control-BeXOxtXA-DOfRFBDx.d.mts} +2 -2
- package/dist/{control-BeXOxtXA-DyPvQsqJ.d.mts.map → control-BeXOxtXA-DOfRFBDx.d.mts.map} +1 -1
- package/dist/{control-BrO2h8ed.d.mts → control-DanUY6NX.d.mts} +5 -5
- package/dist/{control-BrO2h8ed.d.mts.map → control-DanUY6NX.d.mts.map} +1 -1
- package/dist/{control-MllEQmML-yjvIIvnf.mjs → control-MllEQmML-BgM0TgK3.mjs} +2 -2
- package/dist/{control-MllEQmML-yjvIIvnf.mjs.map → control-MllEQmML-BgM0TgK3.mjs.map} +1 -1
- package/dist/control-QJnHVB3m.d.mts +1 -0
- package/dist/{declarations-BgUAq1RG-D99LhVXe.mjs → declarations-BgUAq1RG-DvmyJ8LS.mjs} +2 -2
- package/dist/{declarations-BgUAq1RG-D99LhVXe.mjs.map → declarations-BgUAq1RG-DvmyJ8LS.mjs.map} +1 -1
- 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-Cgkrs6UV.d.mts → execution-0NPar3Ng.d.mts} +3 -3
- package/dist/{execution-Cgkrs6UV.d.mts.map → execution-0NPar3Ng.d.mts.map} +1 -1
- package/dist/{execution-CXXKXfwB.mjs → execution-BkFLjpfc.mjs} +2 -2
- package/dist/{execution-CXXKXfwB.mjs.map → execution-BkFLjpfc.mjs.map} +1 -1
- package/dist/{execution-BhFeCTkt.d.mts → execution-CyddhERj.d.mts} +2 -2
- package/dist/{execution-BhFeCTkt.d.mts.map → execution-CyddhERj.d.mts.map} +1 -1
- package/dist/{expressions-CMQzbnHk-Db8YJA0B.mjs → expressions-CMQzbnHk-B7zBWJ0c.mjs} +2 -2
- package/dist/{expressions-CMQzbnHk-Db8YJA0B.mjs.map → expressions-CMQzbnHk-B7zBWJ0c.mjs.map} +1 -1
- package/dist/{framework-components-BqHA1V92-D_nUDFf9.d.mts → framework-components-GBAmsfWO-DUJQpMpU.d.mts} +3 -3
- package/dist/{framework-components-BqHA1V92-D_nUDFf9.d.mts.map → framework-components-GBAmsfWO-DUJQpMpU.d.mts.map} +1 -1
- package/dist/{migration-CMMT3vcR.d.mts → migration-B7ur91Et.d.mts} +2 -2
- package/dist/{migration-CMMT3vcR.d.mts.map → migration-B7ur91Et.d.mts.map} +1 -1
- package/dist/{migration-B1TEF2ij.mjs → migration-CQufZA_7.mjs} +2 -2
- package/dist/{migration-B1TEF2ij.mjs.map → migration-CQufZA_7.mjs.map} +1 -1
- package/dist/{parse-bZgfjovA-CaBuZnet.mjs → parse-bZgfjovA-Vk8LMIu5.mjs} +3 -3
- package/dist/{parse-bZgfjovA-CaBuZnet.mjs.map → parse-bZgfjovA-Vk8LMIu5.mjs.map} +1 -1
- package/dist/{parse-djL5wker-Bf4uawTE.d.mts → parse-djL5wker-4_2Cqwev.d.mts} +6 -6
- package/dist/{parse-djL5wker-Bf4uawTE.d.mts.map → parse-djL5wker-4_2Cqwev.d.mts.map} +1 -1
- package/dist/{psl-ast-0oMzInxd-BjKbrwNk.d.mts → psl-ast-B4ZxpQdr-DT9LRqBC.d.mts} +3 -3
- package/dist/{psl-ast-0oMzInxd-BjKbrwNk.d.mts.map → psl-ast-B4ZxpQdr-DT9LRqBC.d.mts.map} +1 -1
- package/dist/psl-ast-Dsf1-QLK.d.mts +2 -0
- package/dist/psl-parser.d.mts +22 -13
- package/dist/psl-parser.d.mts.map +1 -1
- package/dist/psl-parser.mjs +29 -43
- package/dist/psl-parser.mjs.map +1 -1
- package/dist/psl-parser__format.d.mts +1 -1
- package/dist/psl-parser__format.mjs +3 -3
- package/dist/psl-parser__interpret.d.mts +64 -22
- package/dist/psl-parser__interpret.d.mts.map +1 -1
- package/dist/psl-parser__interpret.mjs +135 -140
- package/dist/psl-parser__interpret.mjs.map +1 -1
- package/dist/psl-parser__syntax.d.mts +1 -1
- package/dist/psl-parser__syntax.mjs +3 -3
- package/dist/psl-printer.d.mts +4 -4
- package/dist/psl-printer.mjs +1 -1
- package/dist/{runtime-BERs-lBJ.d.mts → runtime-BgorXwT2.d.mts} +5 -3
- package/dist/runtime-BgorXwT2.d.mts.map +1 -0
- package/dist/{temporal-type-aliases-C9tIy4rv-Dsun86cY.mjs → temporal-type-aliases-BI3SL5iB-DIP8j4Gv.mjs} +383 -172
- package/dist/temporal-type-aliases-BI3SL5iB-DIP8j4Gv.mjs.map +1 -0
- package/dist/{temporal-type-aliases-BIiamFSH-DLxWO37e.d.mts → temporal-type-aliases-D5QWPhYa-BNKiNvmd.d.mts} +3 -3
- package/dist/{temporal-type-aliases-BIiamFSH-DLxWO37e.d.mts.map → temporal-type-aliases-D5QWPhYa-BNKiNvmd.d.mts.map} +1 -1
- package/dist/type-constructor-calls-Bfg5ojed-DYHnzC9z.mjs +538 -0
- package/dist/type-constructor-calls-Bfg5ojed-DYHnzC9z.mjs.map +1 -0
- package/package.json +15 -15
- package/dist/authoring-4wc_1ETR.mjs.map +0 -1
- package/dist/authoring-D75oR8Nt.d.mts.map +0 -1
- package/dist/control-COPuZO7V.d.mts +0 -1
- package/dist/control-DLpQIwer.mjs.map +0 -1
- package/dist/framework-authoring-ebqZ8M_M-Bdi8MutX.d.mts.map +0 -1
- package/dist/psl-ast-DjTRQDW7.d.mts +0 -2
- package/dist/runtime-BERs-lBJ.d.mts.map +0 -1
- package/dist/temporal-type-aliases-C9tIy4rv-Dsun86cY.mjs.map +0 -1
- package/dist/type-constructor-calls-CNd1Xlw2-CfYTYNSm.mjs +0 -306
- package/dist/type-constructor-calls-CNd1Xlw2-CfYTYNSm.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
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;;;UAGlB;WACC;;WAEA;;;iBAGM,0BAA0B,SAAS;;UAE1C,iCAAiC,KAAK;WACrC,SAAS;WACT;;WAEA;WACA,gBAAgB;;WAEhB,iBAAiB;;iBAEX,gCAAgC,KAAK,4BAA4B;KAC7E,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;;iBAElG,qBAAqB,qBAAqB,yBAAyB,0CAA0C,cAAc,eAAe,eAAe,sBAAsB,sBAA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8B;;;UAGpE,6BAA6B;WAC5B,OAAO;WACP,YAAY;WACZ,MAAM;WACN,SAAS;WACT,SAAS;WACT,QAAQ;WACR,WAAW;;iBAEL,wBAAwB,UAAU,oBAAoB,OAAO,6BAA6B,KAAK,OAAO,wBAA0B,WAAW,cAAc;UAChK;WACC,OAAO;WACP,YAAY;WACZ,SAAS;WACT,SAAS;WACT,QAAQ;WACR,WAAW;;iBAEL,kCAAkC,OAAO;WAC/C,YAAY,SAAS,eAAe;WACpC,sBAAsB;;UAEvB;WACC,cAAc,YAAY,aAAa;WACvC,sBAAsB;;UAEvB;WACC,aAAa;WACb,SAAS;WACT,qBAAqB;WACrB,QAAQ;;WAER,WAAW;;iBAEL,yBAAyB,OAAO,gCAAgC;;;;iBAIhE,iBAAiB;WACvB,SAAS;WACT,WAAW;IAClB;;;
|
|
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;;;UAGlB;WACC;;WAEA;;;iBAGM,0BAA0B,SAAS;;UAE1C,iCAAiC,KAAK;WACrC,SAAS;WACT;;WAEA;WACA,gBAAgB;;WAEhB,iBA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mB;;iBAEnB,sBAAsB;;;;cAIzB,4BAA4B;;KAErC;WACM;WACA,YAAY;;WAEZ,MAAM;;WAEN;WACA,QAAQ;;WAER,MAAM;;WAEN;WACA,QAAQ;;;UAGT;WACC,QAAQ;WACR,MAAM;;WAEN;WACA,gBAAgB;;WAEhB,qBAAqB,kBAAkB;;;;;iBAKjC,mBAAmB;WACzB,uBAAuB;WACvB,QAAQ;WACR,SAAS;WACT,aAAa;;WAEb,gBAAgB;;WAEhB,qBAAqB;;WAErB,gCAAgC,WAAW,kBAAkB,oBAAoB,aAAa;IACrG,IAAI,iBAAiB;;UAEf;;WAEC;WACA,YAAY;;;iBAGN,uBAAuB,YAAY,yBAAyB;;iBAE5D,wBAAwB,OAAO,YAAY,uBAAuB;;iBAElE,iBAAiB,OAAO,aAAa,QAAQ,QAAQ,SAAS,YAAY,iBAAiB,aAAa;;iBAExG,qBAAqB,OAAO,WAAW;WAC7C,SAAS;WACT,QAAQ;WACR,yBAAyB;WACzB,oBAAoB;WACpB,WAAW;IAClB;;;;iBAIa,kCAAkC;WACxC,OAAO;;WAEP;WACA,OAAO,YAAY;WACnB,SAAS;WACT,aAAa;;;;;KAKnB;WACM;WACA,SAAS;;WAET;WACA;;WAEA;WACA;WACA;;;iBAGM,kBAAkB,YAAY,gBAAgB"}
|
package/dist/psl-parser.mjs
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { t as blindCast } 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
|
-
import {
|
|
5
|
-
import { T as isAuthoringPslBlockDescriptor, h as describeTaggedLiteralFailure, w as isAuthoringModelAttributeDescriptor, y as instantiateAuthoringTypeAlias } from "./temporal-type-aliases-C9tIy4rv-Dsun86cY.mjs";
|
|
4
|
+
import { O as isAuthoringModelAttributeDescriptor, S as instantiateAuthoringTypeAlias, _ as describeTaggedLiteralFailure, k as isAuthoringPslBlockDescriptor } from "./temporal-type-aliases-BI3SL5iB-DIP8j4Gv.mjs";
|
|
6
5
|
import { r as UNBOUND_NAMESPACE_ID } from "./namespace-VUH2dgnS-By5y75h9.mjs";
|
|
7
|
-
import { n as admittedTags, s as describeAdmittedForms,
|
|
6
|
+
import { T as tagForm, n as admittedTags, s as describeAdmittedForms, y as findAuthoringTypeConstructorCall } from "./authoring-CcfXu8Dz.mjs";
|
|
8
7
|
import { a as flatPslModels, c as namespacePslExtensionBlocks, n as UNBOUND_PSL_NAMESPACE_NAME } from "./psl-ast-CyvE6CR-.mjs";
|
|
9
8
|
import { n as isPslIdentifier } from "./tokenizer-C-GTKKjR-B1vOzJy0.mjs";
|
|
10
|
-
import { C as printSyntax, a as IdentifierAst, c as ObjectLiteralExprAst, d as StringLiteralExprAst, i as FunctionCallAst, l as PathExprAst, m as TaggedLiteralExprAst, o as NumberLiteralExprAst, r as BooleanLiteralExprAst, t as ArrayLiteralAst } from "./expressions-CMQzbnHk-
|
|
11
|
-
import {
|
|
12
|
-
import { a as FieldDeclarationAst, c as MixinDeclarationAst, d as ModelDeclarationAst, g as isTrivia, h as TypesBlockAst, n as CompositeTypeDeclarationAst, o as GenericBlockDeclarationAst, p as NamespaceDeclarationAst, s as KeyValuePairAst, u as ModelAttributeAst } from "./declarations-BgUAq1RG-
|
|
13
|
-
//#region ../../../1-framework/2-authoring/psl-parser/dist/binder-
|
|
9
|
+
import { C as printSyntax, a as IdentifierAst, c as ObjectLiteralExprAst, d as StringLiteralExprAst, i as FunctionCallAst, l as PathExprAst, m as TaggedLiteralExprAst, o as NumberLiteralExprAst, r as BooleanLiteralExprAst, t as ArrayLiteralAst } from "./expressions-CMQzbnHk-B7zBWJ0c.mjs";
|
|
10
|
+
import { C as typeAttributeSpecContextOfField, S as readWrittenScalar, _ as printTypeConstructorCall, a as chosenTypeConstructor, b as readResolvedAttributes, c as contributedTypeScope, d as diagnosticSource, f as isContributedTypeChoice, g as nodePslSpan, l as createPslDiagnosticCollector, m as mapPslDiagnostics, o as contributedTypeAt, p as keywordPslSpan, r as EMPTY_DATA_TYPES, s as contributedTypeCodecId, t as isBareTypeConstructor, u as diagnosticFromSpan, v as readExpressionAs, w as typeAttributeSubjectLabel, x as readResolvedConstructorCall, y as readResolvedAttribute } from "./type-constructor-calls-Bfg5ojed-DYHnzC9z.mjs";
|
|
11
|
+
import { a as FieldDeclarationAst, c as MixinDeclarationAst, d as ModelDeclarationAst, g as isTrivia, h as TypesBlockAst, n as CompositeTypeDeclarationAst, o as GenericBlockDeclarationAst, p as NamespaceDeclarationAst, s as KeyValuePairAst, u as ModelAttributeAst } from "./declarations-BgUAq1RG-DvmyJ8LS.mjs";
|
|
12
|
+
//#region ../../../1-framework/2-authoring/psl-parser/dist/binder-CqDHN1et.mjs
|
|
14
13
|
function* modelAttributeDescriptors(namespace) {
|
|
15
14
|
for (const value of Object.values(namespace)) {
|
|
16
15
|
if (isAuthoringModelAttributeDescriptor(value)) {
|
|
@@ -629,13 +628,21 @@ const PSL_UNRESOLVED_REFERENCE = "PSL_UNRESOLVED_REFERENCE";
|
|
|
629
628
|
function typeReferenceNode(symbol) {
|
|
630
629
|
return symbol.node.typeAnnotation()?.name()?.syntax;
|
|
631
630
|
}
|
|
632
|
-
|
|
633
|
-
|
|
631
|
+
/**
|
|
632
|
+
* The contributed type a field's or type alias's type resolves to, through a named type when it is declared with one, and the call it is written with there: `call`, the field's own, for a contributed type, or the named type's.
|
|
633
|
+
*/
|
|
634
|
+
function contributedTypeOf(resolution, binder, call) {
|
|
635
|
+
return contributedTypeOfResolution(resolution, (base) => binder.symbolForNode(base), call);
|
|
634
636
|
}
|
|
635
|
-
function contributedTypeOfResolution(resolution, resolve) {
|
|
636
|
-
const
|
|
637
|
+
function contributedTypeOfResolution(resolution, resolve, call) {
|
|
638
|
+
const named = resolution?.kind === "namedType" ? resolution.symbol : void 0;
|
|
639
|
+
const base = named === void 0 ? void 0 : typeReferenceNode(named);
|
|
637
640
|
const target = base === void 0 ? resolution : resolve(base);
|
|
638
|
-
|
|
641
|
+
if (target?.kind !== "contributedType") return void 0;
|
|
642
|
+
return {
|
|
643
|
+
symbol: target.symbol,
|
|
644
|
+
call: named === void 0 ? call : named.typeConstructor
|
|
645
|
+
};
|
|
639
646
|
}
|
|
640
647
|
var PslBinder = class {
|
|
641
648
|
#declarations;
|
|
@@ -874,12 +881,12 @@ function bind(options) {
|
|
|
874
881
|
if (specContext === void 0) return void 0;
|
|
875
882
|
const node = typeReferenceNode(field);
|
|
876
883
|
const typeResolution = node === void 0 ? void 0 : references.get(node);
|
|
877
|
-
const
|
|
884
|
+
const contributedType = contributedTypeOfResolution(typeResolution, (base) => references.get(base), field.typeConstructor);
|
|
878
885
|
return factory({
|
|
879
886
|
...specContext,
|
|
880
887
|
field,
|
|
881
888
|
typeResolution,
|
|
882
|
-
|
|
889
|
+
contributedType
|
|
883
890
|
});
|
|
884
891
|
}, {
|
|
885
892
|
...context,
|
|
@@ -2098,32 +2105,6 @@ function fieldLevelAttribute(name, config) {
|
|
|
2098
2105
|
...config.refine !== void 0 ? { refine: config.refine } : {}
|
|
2099
2106
|
};
|
|
2100
2107
|
}
|
|
2101
|
-
/** The data types of a stack that registers none. */
|
|
2102
|
-
const EMPTY_DATA_TYPES = {
|
|
2103
|
-
entries: {},
|
|
2104
|
-
lookup: createDataTypeLookup([]),
|
|
2105
|
-
dataTypeOfCodec: () => void 0
|
|
2106
|
-
};
|
|
2107
|
-
/** How a diagnostic names a subject, as in `Field "Post.slug"` or `Type alias "Slug"`. */
|
|
2108
|
-
function typeAttributeSubjectLabel(subject) {
|
|
2109
|
-
return `${subject.kind === "field" ? "Field" : "Type alias"} "${subject.name}"`;
|
|
2110
|
-
}
|
|
2111
|
-
function typeAttributeSpecContextOfField(ctx) {
|
|
2112
|
-
return {
|
|
2113
|
-
symbols: ctx.symbols,
|
|
2114
|
-
defaultFunctionRegistry: ctx.defaultFunctionRegistry,
|
|
2115
|
-
generatorFunctions: ctx.generatorFunctions,
|
|
2116
|
-
dataTypes: ctx.dataTypes,
|
|
2117
|
-
subject: {
|
|
2118
|
-
kind: "field",
|
|
2119
|
-
name: `${ctx.model.name}.${ctx.field.name}`
|
|
2120
|
-
},
|
|
2121
|
-
list: ctx.field.list,
|
|
2122
|
-
typeName: ctx.field.typeName,
|
|
2123
|
-
typeResolution: ctx.typeResolution,
|
|
2124
|
-
typeConstructor: ctx.typeConstructor
|
|
2125
|
-
};
|
|
2126
|
-
}
|
|
2127
2108
|
const GENERATOR_PHASE_DOCUMENTATION = {
|
|
2128
2109
|
onCreate: "Generates a value in the client when a row is created without one.",
|
|
2129
2110
|
onUpdate: "Generates a value in the client every time a row is updated."
|
|
@@ -2150,7 +2131,7 @@ function generatorFunctionCall(name, signature, dataTypes) {
|
|
|
2150
2131
|
* 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.
|
|
2151
2132
|
*/
|
|
2152
2133
|
function generatorCallArm(ctx) {
|
|
2153
|
-
const codecId = ctx.
|
|
2134
|
+
const codecId = ctx.contributedType === void 0 ? void 0 : contributedTypeCodecId(ctx.contributedType, ctx.dataTypes);
|
|
2154
2135
|
const functions = codecId === void 0 ? [] : ctx.generatorFunctions.functionsFor(codecId);
|
|
2155
2136
|
const subject = typeAttributeSubjectLabel(ctx.subject);
|
|
2156
2137
|
const target = codecId === void 0 ? "the field's type" : `codec "${codecId}"`;
|
|
@@ -2570,6 +2551,11 @@ function baseOf(declaration, resolution) {
|
|
|
2570
2551
|
symbol: resolution.symbol
|
|
2571
2552
|
};
|
|
2572
2553
|
if (resolution?.kind !== "contributedType") return void 0;
|
|
2554
|
+
if (isContributedTypeChoice(resolution.symbol)) return {
|
|
2555
|
+
kind: "typeChoice",
|
|
2556
|
+
symbol: resolution.symbol,
|
|
2557
|
+
call: declaration.typeConstructor
|
|
2558
|
+
};
|
|
2573
2559
|
const { descriptor } = resolution.symbol;
|
|
2574
2560
|
if (descriptor.kind !== "typeConstructor") return void 0;
|
|
2575
2561
|
if (declaration.isConstructor) return {
|
|
@@ -2672,7 +2658,7 @@ function typeAliasSpecContext(alias, input) {
|
|
|
2672
2658
|
list: false,
|
|
2673
2659
|
typeName: alias.baseName,
|
|
2674
2660
|
typeResolution: alias.baseResolution,
|
|
2675
|
-
|
|
2661
|
+
contributedType: contributedTypeOf(alias.baseResolution, input.binder, alias.symbol.typeConstructor)
|
|
2676
2662
|
};
|
|
2677
2663
|
}
|
|
2678
2664
|
/**
|
|
@@ -2691,6 +2677,6 @@ function refuseRepeatedTypeAliasAttributes(input) {
|
|
|
2691
2677
|
return repeated.length > 0;
|
|
2692
2678
|
}
|
|
2693
2679
|
//#endregion
|
|
2694
|
-
export { EMPTY_DATA_TYPES, NAME_THE_PSL_SOURCE_LOSES, PSL_UNRESOLVED_REFERENCE, TYPE_ALIAS_ATTRIBUTE_NAMES, assembleAttributeSpecs, blockAttribute, blockSpecContext, blockSpecFactoryOf, bool, buildSymbolTable, contributedTypeAliasOf, contributedTypeAt, contributedTypeCodecId, contributedTypeOf, createBinder, createPslDiagnosticCollector, dataTypeValue, diagnosticFromSpan, diagnosticSource, entityRef, entityReference, enumMemberValue, fieldAttribute, fieldRef, findBlockDescriptor, flatPslModels, funcCall, generatorAttributeSpec, generatorFunctionCall, getPositionalArgument, groupedTypeLabel, 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, readExpressionAs, readResolvedAttribute, readResolvedAttributes, readResolvedConstructorCall, readWrittenScalar, record, referencedFieldRef, refineArg, refuseRepeatedTypeAliasAttributes, renameLegacyDirective, resolveTypeAliases, str, structBlock, taggedLiteral, typeAliasAttributeNames, typeAliasOfField, typeAliasSpecContext, typeAttribute, typeAttributeSpecContextOfField, typeAttributeSubjectLabel, typeGeneratorAttributeSpec, typeReferenceNode, writtenList, writtenScalar };
|
|
2680
|
+
export { EMPTY_DATA_TYPES, NAME_THE_PSL_SOURCE_LOSES, PSL_UNRESOLVED_REFERENCE, TYPE_ALIAS_ATTRIBUTE_NAMES, assembleAttributeSpecs, blockAttribute, blockSpecContext, blockSpecFactoryOf, bool, buildSymbolTable, chosenTypeConstructor, contributedTypeAliasOf, contributedTypeAt, contributedTypeCodecId, contributedTypeOf, createBinder, createPslDiagnosticCollector, dataTypeValue, diagnosticFromSpan, diagnosticSource, entityRef, entityReference, enumMemberValue, fieldAttribute, fieldRef, findBlockDescriptor, flatPslModels, funcCall, generatorAttributeSpec, generatorFunctionCall, getPositionalArgument, groupedTypeLabel, identifier, int, interpretArgs, interpretAttribute, interpretExtensionBlock, interpretExtensionBlockAttributes, interpretExtensionBlocks, isContributedTypeChoice, isNamespaceLike, isPrismaNextSchema, isPslIdentifier, json, jsonValue, keywordPslSpan, leafDiagnostic, list, mapArg, mapBlock, mapPslDiagnostics, matchesSelector, memberEntries, modelAttribute, namespacePslExtensionBlocks, nodePslSpan, nodeSourceText, num, numLiteral, oneOf, optional, parseQuotedStringLiteral, printTypeConstructorCall, readExpressionAs, readResolvedAttribute, readResolvedAttributes, readResolvedConstructorCall, readWrittenScalar, record, referencedFieldRef, refineArg, refuseRepeatedTypeAliasAttributes, renameLegacyDirective, resolveTypeAliases, str, structBlock, taggedLiteral, typeAliasAttributeNames, typeAliasOfField, typeAliasSpecContext, typeAttribute, typeAttributeSpecContextOfField, typeAttributeSubjectLabel, typeGeneratorAttributeSpec, typeReferenceNode, writtenList, writtenScalar };
|
|
2695
2681
|
|
|
2696
2682
|
//# sourceMappingURL=psl-parser.mjs.map
|