@prisma/orm-framework 8.0.0-rc.14-dev.16 → 8.0.0-rc.14-dev.17
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-Bn_5zI9q.mjs → authoring-C8hxYYQI.mjs} +3 -21
- package/dist/authoring-C8hxYYQI.mjs.map +1 -0
- package/dist/{authoring-DTZsvKV7.d.mts → authoring-CQOFIHhF.d.mts} +4 -20
- package/dist/{authoring-DTZsvKV7.d.mts.map → authoring-CQOFIHhF.d.mts.map} +1 -1
- package/dist/binder-CQGFQCuK-DrdVszQh.d.mts +452 -0
- package/dist/binder-CQGFQCuK-DrdVszQh.d.mts.map +1 -0
- package/dist/{components-DgQX4ccF.d.mts → components-DFA65tWf.d.mts} +2 -2
- package/dist/{components-DgQX4ccF.d.mts.map → components-DFA65tWf.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 +2 -2
- 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/{config-types-CcK2xcMX.d.mts → config-types-DDNiQ3jk.d.mts} +8 -4
- package/dist/config-types-DDNiQ3jk.d.mts.map +1 -0
- 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 +1 -1
- package/dist/{control-qWBPmuvX.d.mts → control-B059zyD4.d.mts} +10 -6
- package/dist/{control-qWBPmuvX.d.mts.map → control-B059zyD4.d.mts.map} +1 -1
- package/dist/{control-uVHmDgha.mjs → control-DEcjDcjA.mjs} +2 -2
- package/dist/{control-uVHmDgha.mjs.map → control-DEcjDcjA.mjs.map} +1 -1
- package/dist/{declarations-C0VwsVFX-24_6w6Lb.mjs → declarations-C0VwsVFX-BcP1Nyv4.mjs} +2 -2
- package/dist/{declarations-C0VwsVFX-24_6w6Lb.mjs.map → declarations-C0VwsVFX-BcP1Nyv4.mjs.map} +1 -1
- package/dist/errors.d.mts +1 -1
- package/dist/errors__execution.d.mts +1 -1
- package/dist/{execution-DHFIqFJC.d.mts → execution-D5L9gHoo.d.mts} +2 -2
- package/dist/{execution-DHFIqFJC.d.mts.map → execution-D5L9gHoo.d.mts.map} +1 -1
- package/dist/{execution-BW3cjWqQ.d.mts → execution-NKU9_mZ4.d.mts} +2 -2
- package/dist/{execution-BW3cjWqQ.d.mts.map → execution-NKU9_mZ4.d.mts.map} +1 -1
- package/dist/{framework-authoring-CsVwBOxP-saf7NH7p.d.mts → framework-authoring-BLXTNi9g-CcRc8u9I.d.mts} +3 -12
- package/dist/{framework-authoring-CsVwBOxP-saf7NH7p.d.mts.map → framework-authoring-BLXTNi9g-CcRc8u9I.d.mts.map} +1 -1
- package/dist/{framework-components-DNtoaHTX-DWt4JeHF.d.mts → framework-components-CwclBqDh-CBGrY3Ry.d.mts} +4 -4
- package/dist/{framework-components-DNtoaHTX-DWt4JeHF.d.mts.map → framework-components-CwclBqDh-CBGrY3Ry.d.mts.map} +1 -1
- package/dist/{mutation-default-types--XIOgxCm-B6NmSBxF.d.mts → mutation-default-types-ZfKqVdmf-DATmLFpQ.d.mts} +3 -3
- package/dist/{mutation-default-types--XIOgxCm-B6NmSBxF.d.mts.map → mutation-default-types-ZfKqVdmf-DATmLFpQ.d.mts.map} +1 -1
- package/dist/{parse-DqMTVHCw-Cw1RjDIQ.d.mts → parse-DqMTVHCw-DqqgVEUq.d.mts} +6 -6
- package/dist/{parse-DqMTVHCw-Cw1RjDIQ.d.mts.map → parse-DqMTVHCw-DqqgVEUq.d.mts.map} +1 -1
- package/dist/{parse-EvT3Ac9q-j7zYLB_6.mjs → parse-EvT3Ac9q-B0Nxq52v.mjs} +2 -2
- package/dist/{parse-EvT3Ac9q-j7zYLB_6.mjs.map → parse-EvT3Ac9q-B0Nxq52v.mjs.map} +1 -1
- package/dist/{psl-ast-CAA6nJRp-DIk-wyX1.d.mts → psl-ast-CPxYIxM1-XHoHPgRO.d.mts} +3 -3
- package/dist/{psl-ast-CAA6nJRp-DIk-wyX1.d.mts.map → psl-ast-CPxYIxM1-XHoHPgRO.d.mts.map} +1 -1
- package/dist/psl-ast-DA_tKWiL.d.mts +2 -0
- package/dist/psl-parser.d.mts +10 -320
- package/dist/psl-parser.d.mts.map +1 -1
- package/dist/psl-parser.mjs +1388 -1328
- package/dist/psl-parser.mjs.map +1 -1
- package/dist/psl-parser__format.d.mts +1 -1
- package/dist/psl-parser__format.mjs +2 -2
- package/dist/psl-parser__interpret.d.mts +21 -32
- package/dist/psl-parser__interpret.d.mts.map +1 -1
- package/dist/psl-parser__interpret.mjs +28 -40
- package/dist/psl-parser__interpret.mjs.map +1 -1
- package/dist/psl-parser__syntax.d.mts +1 -1
- package/dist/psl-parser__syntax.mjs +2 -2
- package/dist/psl-printer.d.mts +4 -4
- package/dist/psl-printer.mjs +1 -1
- package/dist/{temporal-presets-UGhnJIuo-DCoJ3HJj.d.mts → temporal-presets-DKHiZVPP-DLAr--Pb.d.mts} +4 -4
- package/dist/{temporal-presets-UGhnJIuo-DCoJ3HJj.d.mts.map → temporal-presets-DKHiZVPP-DLAr--Pb.d.mts.map} +1 -1
- package/dist/{temporal-presets-DsGuaFyT-DWzKyja_.mjs → temporal-presets-DzBBD4St-BaL1QaZ7.mjs} +3 -16
- package/dist/temporal-presets-DzBBD4St-BaL1QaZ7.mjs.map +1 -0
- package/package.json +15 -15
- package/dist/authoring-Bn_5zI9q.mjs.map +0 -1
- package/dist/config-types-CcK2xcMX.d.mts.map +0 -1
- package/dist/psl-ast-irbNZ93U.d.mts +0 -2
- package/dist/symbol-table-DZDTpkQ7-BrBUqb4g.d.mts +0 -126
- package/dist/symbol-table-DZDTpkQ7-BrBUqb4g.d.mts.map +0 -1
- package/dist/temporal-presets-DsGuaFyT-DWzKyja_.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as isInternalError } from "./internal-error-ChGYPVpq-DhUD05u0.mjs";
|
|
2
2
|
import { t as canonicalStringify } from "./canonical-stringify-DY4NaAJi.mjs";
|
|
3
3
|
import { t as canonicalizeJson } from "./canonicalize-json-ZPawceQR-Dua1VNEB.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { S as isAuthoringTypeConstructorDescriptor, _ as isAuthoringArgRef, g as instantiateAuthoringTypeConstructor, y as isAuthoringFieldPresetDescriptor } from "./temporal-presets-DzBBD4St-BaL1QaZ7.mjs";
|
|
5
5
|
//#region ../../../1-framework/1-core/framework-components/dist/authoring.mjs
|
|
6
6
|
function* typeConstructors(namespace, path = []) {
|
|
7
7
|
for (const [name, value] of Object.entries(namespace)) if (isAuthoringTypeConstructorDescriptor(value)) yield {
|
|
@@ -141,25 +141,7 @@ function getAuthoringFieldPreset(contributions, path) {
|
|
|
141
141
|
}
|
|
142
142
|
return current !== void 0 && isAuthoringFieldPresetDescriptor(current) ? current : void 0;
|
|
143
143
|
}
|
|
144
|
-
/**
|
|
145
|
-
* Returns the namespace prefix of `attributeName` when it names an extension namespace that is not composed, otherwise `undefined`. A namespace is recognized when it is:
|
|
146
|
-
*
|
|
147
|
-
* - `db` (native-type spec, always allowed),
|
|
148
|
-
* - the active family id,
|
|
149
|
-
* - the active target id,
|
|
150
|
-
* - a registered field-preset namespace (e.g. `temporal`),
|
|
151
|
-
* - present in `composedExtensions`.
|
|
152
|
-
*
|
|
153
|
-
* Family, target, and field-preset namespaces are exempt so an attribute that does not exist under them surfaces as an unsupported attribute rather than as an uncomposed extension namespace.
|
|
154
|
-
*/
|
|
155
|
-
function checkUncomposedNamespace(attributeName, composedExtensions, context) {
|
|
156
|
-
const dotIndex = attributeName.indexOf(".");
|
|
157
|
-
if (dotIndex <= 0 || dotIndex === attributeName.length - 1) return;
|
|
158
|
-
const namespace = attributeName.slice(0, dotIndex);
|
|
159
|
-
if (namespace === "db" || namespace === context?.familyId || namespace === context?.targetId || hasRegisteredFieldNamespace(context?.authoringContributions, namespace) || composedExtensions.has(namespace)) return;
|
|
160
|
-
return namespace;
|
|
161
|
-
}
|
|
162
144
|
//#endregion
|
|
163
|
-
export { readEnumBlockMembers as
|
|
145
|
+
export { readEnumBlockMembers as i, findAuthoringTypeConstructorCall as n, getAuthoringFieldPreset as r, fieldPresetSpellings as t };
|
|
164
146
|
|
|
165
|
-
//# sourceMappingURL=authoring-
|
|
147
|
+
//# sourceMappingURL=authoring-C8hxYYQI.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authoring-C8hxYYQI.mjs","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/authoring.mjs"],"sourcesContent":["import { t as canonicalizeJson } from \"./canonicalize-json-ZPawceQR.mjs\";\nimport { C as instantiateAuthoringTypeConstructor, D as isAuthoringModelAttributeDescriptor, E as isAuthoringFieldPresetDescriptor, M as resolveAuthoringTemplateValue, N as resolveEnumCodecId, O as isAuthoringPslBlockDescriptor, P as validateAuthoringHelperArguments, S as instantiateAuthoringFieldPreset, T as isAuthoringEntityTypeDescriptor, a as temporalCodecPreset, b as getAuthoringTypeConstructor, d as printTaggedLiteral, g as classifyEnumMemberType, h as assertResolvableTypeConstructorTemplates, i as temporalAuthoringPresets, j as mergeAuthoringNamespaces, k as isAuthoringTypeConstructorDescriptor, m as assertNoCrossRegistryCollisions, n as TEMPORAL_ON_UPDATE_ARG, o as temporalPhaseTemplate, r as TIMESTAMP_NOW_GENERATOR_ID, t as TEMPORAL_ON_CREATE_ARG, v as collectScalarTypeConstructors, w as isAuthoringArgRef, x as instantiateAuthoringEntityType, y as flushAuthoringWarnings } from \"./temporal-presets-DzBBD4St.mjs\";\nimport { isInternalError } from \"@internal/utils/internal-error\";\nimport { canonicalStringify } from \"@internal/utils/canonical-stringify\";\n//#region src/shared/authoring-type-constructor-call.ts\nfunction* typeConstructors(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* typeConstructors(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 argumentsFor(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 typeConstructors(namespace)) {\n\t\tconst args = argumentsFor(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-block-members.ts\n/**\n* Reads the members of an `enum` block through its codec. 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 memberByStoredValue = /* @__PURE__ */ new Map();\n\tconst members = [];\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 written = memberValue === void 0 ? memberName : memberValue;\n\t\tlet read;\n\t\ttry {\n\t\t\tread = codec.decodeJson(written);\n\t\t} catch (err) {\n\t\t\tif (isInternalError(err)) throw err;\n\t\t\tdiagnostics?.push(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\tconst stored = codec.encodeJson(read);\n\t\tconst storedKey = canonicalStringify(stored);\n\t\tconst earlier = memberByStoredValue.get(storedKey);\n\t\tif (earlier !== void 0) {\n\t\t\tdiagnostics?.push({\n\t\t\t\tcode: \"PSL_ENUM_DUPLICATE_MEMBER_VALUE\",\n\t\t\t\tmessage: `enum \"${block.name}\": members \"${earlier}\" and \"${memberName}\" both store ${JSON.stringify(stored)}`,\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\tmemberByStoredValue.set(storedKey, memberName);\n\t\tmembers.push({\n\t\t\tname: memberName,\n\t\t\tvalue: read\n\t\t});\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/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\nexport { TEMPORAL_ON_CREATE_ARG, TEMPORAL_ON_UPDATE_ARG, TIMESTAMP_NOW_GENERATOR_ID, assertNoCrossRegistryCollisions, assertResolvableTypeConstructorTemplates, classifyEnumMemberType, collectScalarTypeConstructors, fieldPresetSpellings, findAuthoringTypeConstructorCall, flushAuthoringWarnings, getAuthoringFieldPreset, getAuthoringTypeConstructor, instantiateAuthoringEntityType, instantiateAuthoringFieldPreset, instantiateAuthoringTypeConstructor, isAuthoringArgRef, isAuthoringEntityTypeDescriptor, isAuthoringFieldPresetDescriptor, isAuthoringModelAttributeDescriptor, isAuthoringPslBlockDescriptor, isAuthoringTypeConstructorDescriptor, mergeAuthoringNamespaces, printTaggedLiteral, readEnumBlockMembers, resolveAuthoringTemplateValue, resolveEnumCodecId, temporalAuthoringPresets, temporalCodecPreset, temporalPhaseTemplate, validateAuthoringHelperArguments };\n\n//# sourceMappingURL=authoring.mjs.map"],"mappings":";;;;;AAKA,UAAU,iBAAiB,WAAW,OAAO,CAAC,GAAG;CAChD,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAQ,SAAS,GAAG,IAAI,qCAAqC,KAAK,GAAG,MAAM;EAC7G,MAAM,CAAC,GAAG,MAAM,IAAI;EACpB,YAAY;CACb;MACK,OAAO,iBAAiB,OAAO,CAAC,GAAG,MAAM,IAAI,CAAC;AACpD;AACA,SAAS,SAAS,UAAU,QAAQ;CACnC,MAAM,eAAe;EACpB,GAAG;EACH,YAAY,OAAO,cAAc,CAAC;CACnC;CACA,OAAO,OAAO,QAAQ;EACrB,GAAG;EACH,YAAY,SAAS,cAAc,CAAC;CACrC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,WAAW,iBAAiB,KAAK,MAAM,iBAAiB,aAAa,IAAI,CAAC;AAC3F;;;;;;AAMA,SAAS,aAAa,YAAY,QAAQ;CACzC,IAAI,WAAW,iBAAiB,KAAK,KAAK,WAAW,OAAO,YAAY,OAAO,SAAS;CACxF,MAAM,OAAO,CAAC;CACd,KAAK,MAAM,CAAC,KAAK,aAAa,OAAO,QAAQ,WAAW,OAAO,cAAc,CAAC,CAAC,GAAG;EACjF,MAAM,QAAQ,OAAO,aAAa;EAClC,IAAI,UAAU,KAAK,KAAK,kBAAkB,QAAQ,KAAK,SAAS,SAAS,KAAK,GAAG,KAAK,SAAS,SAAS;CACzG;CACA,MAAM,gBAAgB,WAAW,QA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AAK,KAAK,iCAAiC,OAAO,IAAI,UAAU,KAAK;AACzF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { V as JsonValue } from "./domain-envelope-C2vVIWGK-C5x7cBpU.mjs";
|
|
2
2
|
import { i as Codec } from "./codec-types-DrcxdLlC-CAfu8HRL.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import "./temporal-presets-
|
|
3
|
+
import { $ as instantiateAuthoringTypeConstructor, F as ParsedPslExtensionBlock, a as AuthoringContributions, k as AuthoringTypeNamespace, p as AuthoringFieldPresetDescriptor, s as AuthoringEntityContext } from "./framework-authoring-BLXTNi9g-CcRc8u9I.mjs";
|
|
4
|
+
import "./temporal-presets-DKHiZVPP-DLAr--Pb.mjs";
|
|
5
5
|
//#region ../../../1-framework/1-core/framework-components/dist/authoring.d.mts
|
|
6
6
|
//#region src/shared/authoring-type-constructor-call.d.ts
|
|
7
7
|
/** What a type constructor call produces for a column. */
|
|
@@ -40,22 +40,6 @@ declare function fieldPresetSpellings(contributions: AuthoringContributions | un
|
|
|
40
40
|
* Walks `authoringContributions.field` segment by segment and returns the field-preset descriptor at the path, or `undefined` when none is registered there.
|
|
41
41
|
*/
|
|
42
42
|
declare function getAuthoringFieldPreset(contributions: AuthoringContributions | undefined, path: readonly string[]): AuthoringFieldPresetDescriptor | undefined;
|
|
43
|
-
/**
|
|
44
|
-
* Returns the namespace prefix of `attributeName` when it names an extension namespace that is not composed, otherwise `undefined`. A namespace is recognized when it is:
|
|
45
|
-
*
|
|
46
|
-
* - `db` (native-type spec, always allowed),
|
|
47
|
-
* - the active family id,
|
|
48
|
-
* - the active target id,
|
|
49
|
-
* - a registered field-preset namespace (e.g. `temporal`),
|
|
50
|
-
* - present in `composedExtensions`.
|
|
51
|
-
*
|
|
52
|
-
* Family, target, and field-preset namespaces are exempt so an attribute that does not exist under them surfaces as an unsupported attribute rather than as an uncomposed extension namespace.
|
|
53
|
-
*/
|
|
54
|
-
declare function checkUncomposedNamespace(attributeName: string, composedExtensions: ReadonlySet<string>, context?: {
|
|
55
|
-
readonly familyId?: string;
|
|
56
|
-
readonly targetId?: string;
|
|
57
|
-
readonly authoringContributions?: AuthoringContributions | undefined;
|
|
58
|
-
}): string | undefined;
|
|
59
43
|
//#endregion
|
|
60
|
-
export {
|
|
61
|
-
//# sourceMappingURL=authoring-
|
|
44
|
+
export { findAuthoringTypeConstructorCall as a, fieldPresetSpellings as i, AuthoringTypeConstructorOutput as n, getAuthoringFieldPreset as o, EnumBlockMember as r, readEnumBlockMembers as s, AuthoringTypeConstructorCall as t };
|
|
45
|
+
//# sourceMappingURL=authoring-CQOFIHhF.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authoring-
|
|
1
|
+
{"version":3,"file":"authoring-CQOFIHhF.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/authoring.d.mts"],"mappings":";;;;;;;KAMK,iCAAiC,kBAAkB;;UAE9C;WACC;WACA;;;;;;;;iBAQM,iCAAiC,WAAW,wBAAwB,QAAQ,iCAAiC;;;UAGpH;WACC;WACA;;;;;;;iBAOM,qBAAqB,OAAO,wBAAwB,SAAS,eAAe,0BAA0B,iBAAiB,OAAO,OAAO,KAAK,kCAAkC;;;;;;iBAM5K,qBAAqB,eAAe,oCAAoC;;;;iBAIxE,wBAAwB,eAAe,oCAAoC,0BAA0B"}
|
|
@@ -0,0 +1,452 @@
|
|
|
1
|
+
import { V as JsonValue } from "./domain-envelope-C2vVIWGK-C5x7cBpU.mjs";
|
|
2
|
+
import { D as AuthoringTypeConstructorDescriptor, U as PslSpan, p as AuthoringFieldPresetDescriptor } from "./framework-authoring-BLXTNi9g-CcRc8u9I.mjs";
|
|
3
|
+
import { i as ControlMutationDefaults } from "./mutation-default-types-ZfKqVdmf-DATmLFpQ.mjs";
|
|
4
|
+
import { o as TaggedLiteralCanonicalization } from "./temporal-presets-DKHiZVPP-DLAr--Pb.mjs";
|
|
5
|
+
import "./authoring-CQOFIHhF.mjs";
|
|
6
|
+
import { r as Result } from "./result-BYCOANWy.mjs";
|
|
7
|
+
import "./control-B059zyD4.mjs";
|
|
8
|
+
import "./psl-ast-DA_tKWiL.mjs";
|
|
9
|
+
import { n as ContractSourceContext } from "./config-types-DDNiQ3jk.mjs";
|
|
10
|
+
import { D as NamespaceDeclarationAst, E as NamedTypeDeclarationAst, I as PslDiagnostic, K as SyntaxNode, M as ParseDiagnostic, R as PslSources, T as ModelDeclarationAst, X as TypeAnnotationAst, _ as GenericBlockDeclarationAst, f as DocumentAst, h as FieldDeclarationAst, l as CompositeTypeDeclarationAst, m as FieldAttributeAst, n as AstNode, p as ExpressionAst, w as ModelAttributeAst } from "./parse-DqMTVHCw-DqqgVEUq.mjs";
|
|
11
|
+
import { n as UnionToIntersection, t as Simplify } from "./types-DGxlljKG.mjs";
|
|
12
|
+
//#region ../../../1-framework/2-authoring/psl-parser/dist/binder-CQGFQCuK.d.mts
|
|
13
|
+
//#region src/resolve.d.ts
|
|
14
|
+
interface ResolvedAttributeArg {
|
|
15
|
+
readonly kind: 'positional' | 'named';
|
|
16
|
+
readonly name?: string;
|
|
17
|
+
readonly value: string;
|
|
18
|
+
readonly expression?: ExpressionAst;
|
|
19
|
+
readonly span: PslSpan;
|
|
20
|
+
}
|
|
21
|
+
interface ResolvedAttribute<TNode extends FieldAttributeAst | ModelAttributeAst = FieldAttributeAst | ModelAttributeAst> {
|
|
22
|
+
readonly name: string;
|
|
23
|
+
readonly args: readonly ResolvedAttributeArg[];
|
|
24
|
+
readonly span: PslSpan;
|
|
25
|
+
readonly node: TNode;
|
|
26
|
+
}
|
|
27
|
+
interface ResolvedTypeConstructorCall {
|
|
28
|
+
readonly path: readonly string[];
|
|
29
|
+
readonly args: readonly ResolvedAttributeArg[];
|
|
30
|
+
readonly span: PslSpan;
|
|
31
|
+
}
|
|
32
|
+
declare function readResolvedAttribute<TNode extends FieldAttributeAst | ModelAttributeAst>(attribute: TNode, sources: PslSources): ResolvedAttribute<TNode>;
|
|
33
|
+
declare function readResolvedAttributes<TNode extends FieldAttributeAst | ModelAttributeAst>(attributes: Iterable<TNode>, sources: PslSources): readonly ResolvedAttribute<TNode>[];
|
|
34
|
+
declare function readResolvedConstructorCall(annotation: TypeAnnotationAst | undefined, sources: PslSources): ResolvedTypeConstructorCall | undefined;
|
|
35
|
+
declare function nodePslSpan(node: SyntaxNode, sources: PslSources): PslSpan;
|
|
36
|
+
/** Unsupported-top-level-block diagnostics are anchored to the keyword token. */
|
|
37
|
+
declare function keywordPslSpan(node: SyntaxNode, keyword: string, sources: PslSources): PslSpan;
|
|
38
|
+
//#endregion
|
|
39
|
+
//#region src/symbol-table.d.ts
|
|
40
|
+
interface SymbolTable {
|
|
41
|
+
readonly topLevel: TopLevelScope;
|
|
42
|
+
}
|
|
43
|
+
interface TopLevelScope {
|
|
44
|
+
readonly namespaces: Record<string, NamespaceSymbol>;
|
|
45
|
+
readonly namedTypes: Record<string, NamedTypeSymbol>;
|
|
46
|
+
readonly blocks: Record<string, BlockSymbol>;
|
|
47
|
+
readonly models: Record<string, ModelSymbol>;
|
|
48
|
+
readonly compositeTypes: Record<string, CompositeTypeSymbol>;
|
|
49
|
+
}
|
|
50
|
+
interface NamespaceDeclaration {
|
|
51
|
+
readonly node: NamespaceDeclarationAst;
|
|
52
|
+
readonly span: PslSpan;
|
|
53
|
+
}
|
|
54
|
+
interface NamespaceSymbol {
|
|
55
|
+
readonly kind: 'namespace';
|
|
56
|
+
readonly name: string;
|
|
57
|
+
readonly declarations: [NamespaceDeclaration, ...NamespaceDeclaration[]];
|
|
58
|
+
readonly models: Record<string, ModelSymbol>;
|
|
59
|
+
readonly compositeTypes: Record<string, CompositeTypeSymbol>;
|
|
60
|
+
readonly blocks: Record<string, BlockSymbol>;
|
|
61
|
+
}
|
|
62
|
+
interface ModelSymbol {
|
|
63
|
+
readonly kind: 'model';
|
|
64
|
+
readonly name: string;
|
|
65
|
+
readonly node: ModelDeclarationAst;
|
|
66
|
+
readonly span: PslSpan;
|
|
67
|
+
readonly fields: Record<string, FieldSymbol>;
|
|
68
|
+
readonly attributes: readonly ResolvedAttribute<ModelAttributeAst>[];
|
|
69
|
+
}
|
|
70
|
+
interface CompositeTypeSymbol {
|
|
71
|
+
readonly kind: 'compositeType';
|
|
72
|
+
readonly name: string;
|
|
73
|
+
readonly node: CompositeTypeDeclarationAst;
|
|
74
|
+
readonly span: PslSpan;
|
|
75
|
+
readonly fields: Record<string, FieldSymbol>;
|
|
76
|
+
readonly attributes: readonly ResolvedAttribute<ModelAttributeAst>[];
|
|
77
|
+
}
|
|
78
|
+
interface BlockSymbol {
|
|
79
|
+
readonly kind: 'block';
|
|
80
|
+
readonly name: string;
|
|
81
|
+
readonly keyword: string;
|
|
82
|
+
readonly node: GenericBlockDeclarationAst;
|
|
83
|
+
readonly span: PslSpan;
|
|
84
|
+
}
|
|
85
|
+
interface ResolvedNamedTypeBinding {
|
|
86
|
+
readonly baseType?: string;
|
|
87
|
+
readonly typeConstructor?: ResolvedTypeConstructorCall;
|
|
88
|
+
readonly isConstructor: boolean;
|
|
89
|
+
readonly attributes: readonly ResolvedAttribute<FieldAttributeAst>[];
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* A `types {}` binding, collected without classification: whether the binding
|
|
93
|
+
* refines a target scalar is pronounced by the interpreter
|
|
94
|
+
* (`resolveNamedTypeDeclarations`), not by the family-blind symbol table.
|
|
95
|
+
*/
|
|
96
|
+
interface NamedTypeSymbol extends ResolvedNamedTypeBinding {
|
|
97
|
+
readonly kind: 'namedType';
|
|
98
|
+
readonly name: string;
|
|
99
|
+
readonly node: NamedTypeDeclarationAst;
|
|
100
|
+
readonly span: PslSpan;
|
|
101
|
+
}
|
|
102
|
+
interface FieldSymbol {
|
|
103
|
+
readonly kind: 'field';
|
|
104
|
+
readonly name: string;
|
|
105
|
+
readonly node: FieldDeclarationAst;
|
|
106
|
+
readonly span: PslSpan;
|
|
107
|
+
readonly typeName: string;
|
|
108
|
+
readonly typeNamespaceId?: string;
|
|
109
|
+
readonly typeContractSpaceId?: string;
|
|
110
|
+
readonly optional: boolean;
|
|
111
|
+
readonly list: boolean;
|
|
112
|
+
/** Element-nullability axis (`Foo?[]`); meaningful only when {@link list}. */
|
|
113
|
+
readonly elementOptional: boolean;
|
|
114
|
+
readonly typeConstructor?: ResolvedTypeConstructorCall;
|
|
115
|
+
readonly attributes: readonly ResolvedAttribute<FieldAttributeAst>[];
|
|
116
|
+
/** Prevents cascading unsupported-type diagnostics after invalid qualification. */
|
|
117
|
+
readonly malformedType?: boolean;
|
|
118
|
+
}
|
|
119
|
+
interface BuildSymbolTableOptions {
|
|
120
|
+
readonly documents: readonly DocumentAst[];
|
|
121
|
+
readonly sources: PslSources;
|
|
122
|
+
}
|
|
123
|
+
interface SymbolTableResult {
|
|
124
|
+
readonly symbolTable: SymbolTable;
|
|
125
|
+
readonly diagnostics: readonly ParseDiagnostic[];
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Owns duplicate-declaration detection for all PSL scopes; downstream consumers
|
|
129
|
+
* should consume first-wins symbols rather than re-emitting duplicate diagnostics.
|
|
130
|
+
*/
|
|
131
|
+
declare function buildSymbolTable(options: BuildSymbolTableOptions): SymbolTableResult;
|
|
132
|
+
//#endregion
|
|
133
|
+
//#region src/entity-reference.d.ts
|
|
134
|
+
type EntitySelector = {
|
|
135
|
+
readonly kind: 'model';
|
|
136
|
+
} | {
|
|
137
|
+
readonly kind: 'compositeType';
|
|
138
|
+
} | {
|
|
139
|
+
readonly kind: 'namedType';
|
|
140
|
+
} | {
|
|
141
|
+
readonly kind: 'block';
|
|
142
|
+
readonly keyword: string;
|
|
143
|
+
};
|
|
144
|
+
type EntityDeclaration = ModelSymbol | CompositeTypeSymbol | NamedTypeSymbol | BlockSymbol;
|
|
145
|
+
type DeclarationFor<S extends EntitySelector> = Extract<EntityDeclaration, {
|
|
146
|
+
kind: S['kind'];
|
|
147
|
+
}>;
|
|
148
|
+
interface ResolvedEntityReference<D extends EntityDeclaration = EntityDeclaration> {
|
|
149
|
+
readonly declaration: D;
|
|
150
|
+
readonly namespace: NamespaceSymbol | undefined;
|
|
151
|
+
}
|
|
152
|
+
declare function entityReference(resolution: Resolution): ResolvedEntityReference | undefined;
|
|
153
|
+
declare function matchesSelector<S extends EntitySelector>(reference: ResolvedEntityReference, expected: S): reference is ResolvedEntityReference<DeclarationFor<S>>;
|
|
154
|
+
//#endregion
|
|
155
|
+
//#region src/attribute-spec/types.d.ts
|
|
156
|
+
type AttributeLevel = 'field' | 'model' | 'block';
|
|
157
|
+
interface AttributeCtx {
|
|
158
|
+
readonly sources: PslSources;
|
|
159
|
+
readonly symbols: SymbolTable;
|
|
160
|
+
readonly binder: Binder;
|
|
161
|
+
}
|
|
162
|
+
interface ModelAttributeCtx extends AttributeCtx {
|
|
163
|
+
readonly selfModel: ModelSymbol;
|
|
164
|
+
}
|
|
165
|
+
interface FieldAttributeCtx extends ModelAttributeCtx {
|
|
166
|
+
readonly field: FieldSymbol;
|
|
167
|
+
}
|
|
168
|
+
type ArgTypeKind = 'bool' | 'entityRef' | 'fieldRef' | 'funcCall' | 'identifier' | 'int' | 'json' | 'null' | 'list' | 'num' | 'oneOf' | 'record' | 'referencedFieldRef' | 'rejecting' | 'str' | 'taggedLiteral';
|
|
169
|
+
type ArgTypeContext = 'attribute' | 'field' | 'model';
|
|
170
|
+
interface ArgTypeOutput<T, Ctx extends AttributeCtx> {
|
|
171
|
+
readonly label: string;
|
|
172
|
+
readonly _out?: T;
|
|
173
|
+
readonly parse: (arg: ExpressionAst, ctx: Ctx) => Result<T, readonly PslDiagnostic[]>;
|
|
174
|
+
}
|
|
175
|
+
interface BoolArgType<Ctx extends AttributeCtx = AttributeCtx> extends ArgTypeOutput<boolean, Ctx> {
|
|
176
|
+
readonly kind: 'bool';
|
|
177
|
+
}
|
|
178
|
+
interface EntityRefArgType<D extends EntityDeclaration = EntityDeclaration, Ctx extends AttributeCtx = AttributeCtx> extends ArgTypeOutput<ResolvedEntityReference<D>, Ctx> {
|
|
179
|
+
readonly kind: 'entityRef';
|
|
180
|
+
readonly expected: EntitySelector;
|
|
181
|
+
}
|
|
182
|
+
interface FieldRefArgType<Ctx extends ModelAttributeCtx = ModelAttributeCtx> extends ArgTypeOutput<string, Ctx> {
|
|
183
|
+
readonly kind: 'fieldRef';
|
|
184
|
+
}
|
|
185
|
+
interface ReferencedFieldRefArgType<Ctx extends FieldAttributeCtx = FieldAttributeCtx> extends ArgTypeOutput<string, Ctx> {
|
|
186
|
+
readonly kind: 'referencedFieldRef';
|
|
187
|
+
}
|
|
188
|
+
interface FuncCallSig {
|
|
189
|
+
readonly documentation: string;
|
|
190
|
+
readonly positional?: readonly PositionalParam<unknown, AttributeCtx>[];
|
|
191
|
+
readonly named?: Readonly<Record<string, Param<unknown, AttributeCtx>>>;
|
|
192
|
+
}
|
|
193
|
+
interface TypedFuncCall {
|
|
194
|
+
readonly fn: string;
|
|
195
|
+
readonly span: PslSpan;
|
|
196
|
+
readonly args: Readonly<Record<string, unknown>>;
|
|
197
|
+
}
|
|
198
|
+
interface FuncCallArgType<Name extends string = string, Ctx extends AttributeCtx = AttributeCtx, Signature extends FuncCallSig = FuncCallSig> extends ArgTypeOutput<TypedFuncCall, Ctx> {
|
|
199
|
+
readonly kind: 'funcCall';
|
|
200
|
+
readonly name: Name;
|
|
201
|
+
readonly signature: Signature;
|
|
202
|
+
}
|
|
203
|
+
interface FixedIdentifierArgType<Name extends string = string, Ctx extends AttributeCtx = AttributeCtx> extends ArgTypeOutput<Name, Ctx> {
|
|
204
|
+
readonly kind: 'identifier';
|
|
205
|
+
readonly name: Name;
|
|
206
|
+
readonly documentation: string;
|
|
207
|
+
}
|
|
208
|
+
interface UnrestrictedIdentifierArgType<Ctx extends AttributeCtx = AttributeCtx> extends ArgTypeOutput<string, Ctx> {
|
|
209
|
+
readonly kind: 'identifier';
|
|
210
|
+
readonly name: undefined;
|
|
211
|
+
}
|
|
212
|
+
type IdentifierArgType<Name extends string = string, Ctx extends AttributeCtx = AttributeCtx> = FixedIdentifierArgType<Name, Ctx> | UnrestrictedIdentifierArgType<Ctx>;
|
|
213
|
+
interface IntArgType<Ctx extends AttributeCtx = AttributeCtx> extends ArgTypeOutput<number, Ctx> {
|
|
214
|
+
readonly kind: 'int';
|
|
215
|
+
readonly min?: number;
|
|
216
|
+
readonly max?: number;
|
|
217
|
+
}
|
|
218
|
+
interface JsonArgType<Ctx extends AttributeCtx = AttributeCtx> extends ArgTypeOutput<Record<string, unknown>, Ctx> {
|
|
219
|
+
readonly kind: 'json';
|
|
220
|
+
}
|
|
221
|
+
interface JsonValueArgType<Ctx extends AttributeCtx = AttributeCtx> extends ArgTypeOutput<JsonValue, Ctx> {
|
|
222
|
+
readonly kind: 'oneOf';
|
|
223
|
+
readonly alternatives: readonly [UnrestrictedStrArgType<Ctx>, UnrestrictedNumArgType<Ctx>, BoolArgType<Ctx>, NullArgType<Ctx>, ListArgType<JsonValue, Ctx>, RecordArgType<JsonValue, Ctx>];
|
|
224
|
+
}
|
|
225
|
+
interface NullArgType<Ctx extends AttributeCtx = AttributeCtx> extends ArgTypeOutput<null, Ctx> {
|
|
226
|
+
readonly kind: 'null';
|
|
227
|
+
}
|
|
228
|
+
interface ListArgType<T = unknown, Ctx extends AttributeCtx = AttributeCtx> extends ArgTypeOutput<T[], Ctx> {
|
|
229
|
+
readonly kind: 'list';
|
|
230
|
+
readonly of: ArgType<T, Ctx>;
|
|
231
|
+
readonly allowEmpty: boolean;
|
|
232
|
+
readonly unique: boolean;
|
|
233
|
+
}
|
|
234
|
+
interface UnrestrictedNumArgType<Ctx extends AttributeCtx = AttributeCtx> extends ArgTypeOutput<number, Ctx> {
|
|
235
|
+
readonly kind: 'num';
|
|
236
|
+
readonly value: undefined;
|
|
237
|
+
}
|
|
238
|
+
interface FixedNumArgType<T extends number = number, Ctx extends AttributeCtx = AttributeCtx> extends ArgTypeOutput<T, Ctx> {
|
|
239
|
+
readonly kind: 'num';
|
|
240
|
+
readonly value: T;
|
|
241
|
+
}
|
|
242
|
+
interface NumLiteral {
|
|
243
|
+
readonly text: string;
|
|
244
|
+
}
|
|
245
|
+
interface NumLiteralArgType<Ctx extends AttributeCtx = AttributeCtx> extends ArgTypeOutput<NumLiteral, Ctx> {
|
|
246
|
+
readonly kind: 'num';
|
|
247
|
+
readonly value: undefined;
|
|
248
|
+
}
|
|
249
|
+
interface OneOfArgType<Alts extends readonly [AnyArgType, ...AnyArgType[]], Ctx extends AttributeCtx = ContextForRequirement<RequiredContextFor<CtxOf<Alts[number]>>>> extends ArgTypeOutput<OutOf<Alts[number]>, Ctx>, OneOfMetadata {
|
|
250
|
+
readonly alternatives: Alts;
|
|
251
|
+
}
|
|
252
|
+
interface OneOfMetadata {
|
|
253
|
+
readonly kind: 'oneOf';
|
|
254
|
+
readonly alternatives: readonly [AnyArgType, ...AnyArgType[]];
|
|
255
|
+
}
|
|
256
|
+
interface RecordArgType<T = unknown, Ctx extends AttributeCtx = AttributeCtx> extends ArgTypeOutput<Record<string, T>, Ctx> {
|
|
257
|
+
readonly kind: 'record';
|
|
258
|
+
readonly of: ArgType<T, Ctx>;
|
|
259
|
+
}
|
|
260
|
+
interface RejectingArgType<T = never, Ctx extends AttributeCtx = AttributeCtx> extends ArgTypeOutput<T, Ctx> {
|
|
261
|
+
readonly kind: 'rejecting';
|
|
262
|
+
readonly message: string;
|
|
263
|
+
}
|
|
264
|
+
interface UnrestrictedStrArgType<Ctx extends AttributeCtx = AttributeCtx> extends ArgTypeOutput<string, Ctx> {
|
|
265
|
+
readonly kind: 'str';
|
|
266
|
+
readonly value: undefined;
|
|
267
|
+
}
|
|
268
|
+
interface FixedStrArgType<T extends string = string, Ctx extends AttributeCtx = AttributeCtx> extends ArgTypeOutput<T, Ctx> {
|
|
269
|
+
readonly kind: 'str';
|
|
270
|
+
readonly value: T;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* A tagged literal argument as parsed: its tag, the canonicalization of its string literal, and its
|
|
274
|
+
* span. Neither the tag nor the canonicalization has been checked; lowering does both.
|
|
275
|
+
*/
|
|
276
|
+
interface ParsedTaggedLiteral {
|
|
277
|
+
readonly tag: string;
|
|
278
|
+
readonly canonicalization: TaggedLiteralCanonicalization;
|
|
279
|
+
readonly span: PslSpan;
|
|
280
|
+
}
|
|
281
|
+
interface TaggedLiteralArgType<Ctx extends AttributeCtx = AttributeCtx> extends ArgTypeOutput<ParsedTaggedLiteral, Ctx> {
|
|
282
|
+
readonly kind: 'taggedLiteral';
|
|
283
|
+
readonly tags: readonly string[];
|
|
284
|
+
readonly documentation: string;
|
|
285
|
+
}
|
|
286
|
+
type ArgTypeMetadata<Type> = Type extends object ? Omit<Type, keyof ArgTypeOutput<unknown, never>> : never;
|
|
287
|
+
type ArgType<T, Ctx extends AttributeCtx> = ArgTypeOutput<T, Ctx> & ArgTypeMetadata<ArgTypeVariant<Ctx>>;
|
|
288
|
+
type AnyArgType = ArgType<unknown, AttributeCtx> | ArgType<unknown, ModelAttributeCtx> | ArgType<unknown, FieldAttributeCtx>;
|
|
289
|
+
type CtxOf<P> = P extends ArgTypeOutput<unknown, infer Ctx> ? Ctx : never;
|
|
290
|
+
type RequiredContextFor<Ctx extends AttributeCtx> = [Extract<Ctx, FieldAttributeCtx>] extends [never] ? [Extract<Ctx, ModelAttributeCtx>] extends [never] ? 'attribute' : 'model' : 'field';
|
|
291
|
+
type ContextForRequirement<Req extends ArgTypeContext> = Req extends 'field' ? FieldAttributeCtx : Req extends 'model' ? ModelAttributeCtx : AttributeCtx;
|
|
292
|
+
type InspectableArgType<Ctx extends AttributeCtx> = ArgType<unknown, Ctx>;
|
|
293
|
+
type ArgTypeVariant<Ctx extends AttributeCtx> = BoolArgType<Ctx> | EntityRefArgType<EntityDeclaration, Ctx> | FieldRefArgType<ModelAttributeCtx & Ctx> | FuncCallArgType<string, Ctx> | IdentifierArgType<string, Ctx> | IntArgType<Ctx> | JsonArgType<Ctx> | NullArgType<Ctx> | ListArgType<unknown, Ctx> | FixedNumArgType<number, Ctx> | UnrestrictedNumArgType<Ctx> | NumLiteralArgType<Ctx> | OneOfMetadata | RecordArgType<unknown, Ctx> | ReferencedFieldRefArgType<FieldAttributeCtx & Ctx> | RejectingArgType<never, Ctx> | FixedStrArgType<string, Ctx> | UnrestrictedStrArgType<Ctx> | TaggedLiteralArgType<Ctx>;
|
|
294
|
+
type OptionalArgType<T, Ctx extends AttributeCtx, Type extends object = ArgType<T, Ctx>, HasDefault extends boolean = boolean> = Type & {
|
|
295
|
+
readonly optional: true;
|
|
296
|
+
readonly hasDefault: HasDefault;
|
|
297
|
+
readonly defaultValue?: T | undefined;
|
|
298
|
+
};
|
|
299
|
+
interface Param<T, Ctx extends AttributeCtx> {
|
|
300
|
+
readonly type: ArgType<T, Ctx>;
|
|
301
|
+
readonly documentation: string;
|
|
302
|
+
}
|
|
303
|
+
interface PositionalParam<T, Ctx extends AttributeCtx> extends Param<T, Ctx> {
|
|
304
|
+
readonly key: string;
|
|
305
|
+
}
|
|
306
|
+
interface AttributeSpec<Out, Ctx extends AttributeCtx> {
|
|
307
|
+
readonly documentation: string;
|
|
308
|
+
readonly level: AttributeLevel;
|
|
309
|
+
readonly name: string;
|
|
310
|
+
readonly positional: readonly PositionalParam<unknown, Ctx>[];
|
|
311
|
+
readonly named: Readonly<Record<string, Param<unknown, Ctx>>>;
|
|
312
|
+
/**
|
|
313
|
+
* Cross-argument validation after all arguments parse. `attributeNode` is
|
|
314
|
+
* the attribute's own AST node so refines can span-anchor their
|
|
315
|
+
* diagnostics at the attribute rather than the enclosing model.
|
|
316
|
+
*/
|
|
317
|
+
readonly refine?: (parsed: Out, ctx: Ctx, attributeNode: AstNode) => readonly PslDiagnostic[];
|
|
318
|
+
}
|
|
319
|
+
type OutOf<P> = P extends {
|
|
320
|
+
readonly _out?: infer T;
|
|
321
|
+
} ? T : never;
|
|
322
|
+
type OptionalMarker = {
|
|
323
|
+
readonly optional: true;
|
|
324
|
+
};
|
|
325
|
+
type NamedOut<N extends Record<string, Param<unknown, never>>> = Simplify<{ [K in keyof N as N[K]['type'] extends OptionalMarker ? never : K]: OutOf<N[K]['type']>; } & { [K in keyof N as N[K]['type'] extends OptionalMarker ? K : never]?: OutOf<N[K]['type']>; }>;
|
|
326
|
+
type PosEntryObject<E extends PositionalParam<unknown, never>> = E['type'] extends OptionalMarker ? { [K in E['key']]?: OutOf<E['type']>; } : { [K in E['key']]: OutOf<E['type']>; };
|
|
327
|
+
type PosOut<Pos extends readonly PositionalParam<unknown, never>[]> = Simplify<UnionToIntersection<{ [I in keyof Pos]: PosEntryObject<Pos[I]>; }[number]>>;
|
|
328
|
+
type AttributeOut<Pos extends readonly PositionalParam<unknown, never>[], Named extends Record<string, Param<unknown, never>>> = Simplify<PosOut<Pos> & NamedOut<Named>>;
|
|
329
|
+
type InferAttr<S> = S extends AttributeSpec<infer Out, never> ? Out : never;
|
|
330
|
+
//#endregion
|
|
331
|
+
//#region src/contributed-type-scope.d.ts
|
|
332
|
+
type ContributedTypeDescriptor = AuthoringTypeConstructorDescriptor | AuthoringFieldPresetDescriptor;
|
|
333
|
+
type ContributedTypeNamespace = {
|
|
334
|
+
readonly [name: string]: ContributedTypeDescriptor | ContributedTypeNamespace;
|
|
335
|
+
};
|
|
336
|
+
interface ContributedTypeSymbol {
|
|
337
|
+
readonly kind: 'contributedType';
|
|
338
|
+
readonly name: string;
|
|
339
|
+
readonly path: readonly string[];
|
|
340
|
+
readonly descriptor: ContributedTypeDescriptor;
|
|
341
|
+
}
|
|
342
|
+
interface ContributedNamespaceSymbol {
|
|
343
|
+
readonly kind: 'contributedNamespace';
|
|
344
|
+
readonly name: string;
|
|
345
|
+
readonly path: readonly string[];
|
|
346
|
+
readonly members: ReadonlyMap<string, ContributedMember>;
|
|
347
|
+
}
|
|
348
|
+
type ContributedMember = ContributedTypeSymbol | ContributedNamespaceSymbol;
|
|
349
|
+
interface ContributedTypeScope {
|
|
350
|
+
lookup(name: string): ContributedMember | undefined;
|
|
351
|
+
entries(): Iterable<readonly [string, ContributedMember]>;
|
|
352
|
+
}
|
|
353
|
+
//#endregion
|
|
354
|
+
//#region src/scope.d.ts
|
|
355
|
+
type ScopeResolution = {
|
|
356
|
+
readonly kind: 'model';
|
|
357
|
+
readonly symbol: ModelSymbol;
|
|
358
|
+
readonly namespace?: NamespaceSymbol;
|
|
359
|
+
} | {
|
|
360
|
+
readonly kind: 'compositeType';
|
|
361
|
+
readonly symbol: CompositeTypeSymbol;
|
|
362
|
+
readonly namespace?: NamespaceSymbol;
|
|
363
|
+
} | {
|
|
364
|
+
readonly kind: 'namedType';
|
|
365
|
+
readonly symbol: NamedTypeSymbol;
|
|
366
|
+
readonly namespace?: NamespaceSymbol;
|
|
367
|
+
} | {
|
|
368
|
+
readonly kind: 'block';
|
|
369
|
+
readonly symbol: BlockSymbol;
|
|
370
|
+
readonly namespace?: NamespaceSymbol;
|
|
371
|
+
} | {
|
|
372
|
+
readonly kind: 'namespace';
|
|
373
|
+
readonly symbol: NamespaceSymbol;
|
|
374
|
+
} | {
|
|
375
|
+
readonly kind: 'contributedNamespace';
|
|
376
|
+
readonly symbol: ContributedNamespaceSymbol;
|
|
377
|
+
} | {
|
|
378
|
+
readonly kind: 'contributedType';
|
|
379
|
+
readonly symbol: ContributedTypeSymbol;
|
|
380
|
+
};
|
|
381
|
+
declare abstract class Scope {
|
|
382
|
+
protected readonly parent: Scope | undefined;
|
|
383
|
+
constructor(parent: Scope | undefined);
|
|
384
|
+
abstract lookup(name: string): ScopeResolution | undefined;
|
|
385
|
+
protected abstract ownNames(): Iterable<string>;
|
|
386
|
+
entries(): Iterable<readonly [string, ScopeResolution]>;
|
|
387
|
+
}
|
|
388
|
+
declare function isNamespaceLike(resolution: ScopeResolution): resolution is Extract<ScopeResolution, {
|
|
389
|
+
kind: 'namespace' | 'contributedNamespace';
|
|
390
|
+
}>;
|
|
391
|
+
declare function memberEntries(qualifier: Extract<ScopeResolution, {
|
|
392
|
+
kind: 'namespace' | 'contributedNamespace';
|
|
393
|
+
}>): Iterable<readonly [string, ScopeResolution]>;
|
|
394
|
+
//#endregion
|
|
395
|
+
//#region src/binder.d.ts
|
|
396
|
+
declare const PSL_UNRESOLVED_REFERENCE = "PSL_UNRESOLVED_REFERENCE";
|
|
397
|
+
type BoundSpec = AttributeSpec<never, ModelAttributeCtx> | AttributeSpec<never, FieldAttributeCtx>;
|
|
398
|
+
interface AttributeSymbol {
|
|
399
|
+
readonly kind: 'attribute';
|
|
400
|
+
readonly name: string;
|
|
401
|
+
readonly level: 'model' | 'field';
|
|
402
|
+
readonly spec: BoundSpec;
|
|
403
|
+
}
|
|
404
|
+
type PslSymbol = ModelSymbol | CompositeTypeSymbol | NamedTypeSymbol | BlockSymbol | NamespaceSymbol | FieldSymbol;
|
|
405
|
+
type Resolution = ScopeResolution | {
|
|
406
|
+
readonly kind: 'field';
|
|
407
|
+
readonly symbol: FieldSymbol;
|
|
408
|
+
} | {
|
|
409
|
+
readonly kind: 'attribute';
|
|
410
|
+
readonly symbol: AttributeSymbol;
|
|
411
|
+
} | {
|
|
412
|
+
readonly kind: 'crossSpace';
|
|
413
|
+
} | {
|
|
414
|
+
readonly kind: 'unresolved';
|
|
415
|
+
readonly name: string;
|
|
416
|
+
};
|
|
417
|
+
interface Binder {
|
|
418
|
+
declaredSymbol(node: SyntaxNode): PslSymbol | undefined;
|
|
419
|
+
symbolForNode(node: SyntaxNode): Resolution | undefined;
|
|
420
|
+
scopeAt(node: SyntaxNode): Scope;
|
|
421
|
+
}
|
|
422
|
+
interface UnsupportedAttribute {
|
|
423
|
+
readonly attribute: ResolvedAttribute;
|
|
424
|
+
readonly level: 'model' | 'field';
|
|
425
|
+
readonly owner: ModelSymbol | CompositeTypeSymbol;
|
|
426
|
+
readonly field: FieldSymbol | undefined;
|
|
427
|
+
}
|
|
428
|
+
type DescribeUnsupportedAttribute = (unsupported: UnsupportedAttribute) => ParseDiagnostic | undefined;
|
|
429
|
+
interface UnresolvedTypeReference {
|
|
430
|
+
readonly field: FieldSymbol;
|
|
431
|
+
readonly owner: ModelSymbol | CompositeTypeSymbol;
|
|
432
|
+
readonly written: string;
|
|
433
|
+
}
|
|
434
|
+
type DescribeUnresolvedType = (unresolved: UnresolvedTypeReference) => string | undefined;
|
|
435
|
+
interface BinderContext extends Pick<ContractSourceContext, 'authoringContributions' | 'pslDiagnostics'> {
|
|
436
|
+
readonly controlMutationDefaults: Pick<ControlMutationDefaults, 'defaultFunctionRegistry'>;
|
|
437
|
+
}
|
|
438
|
+
interface CreateBinderInput {
|
|
439
|
+
readonly sources: PslSources;
|
|
440
|
+
readonly symbolTable: SymbolTable;
|
|
441
|
+
readonly context: BinderContext;
|
|
442
|
+
}
|
|
443
|
+
interface BinderResult {
|
|
444
|
+
readonly binder: Binder;
|
|
445
|
+
readonly diagnostics: readonly ParseDiagnostic[];
|
|
446
|
+
}
|
|
447
|
+
declare function typeReferenceNode(symbol: FieldSymbol | NamedTypeSymbol): SyntaxNode | undefined;
|
|
448
|
+
declare function contributedTypeOf(resolution: Resolution | undefined, binder: Binder): ContributedTypeSymbol | undefined;
|
|
449
|
+
declare function createBinder(input: CreateBinderInput): BinderResult;
|
|
450
|
+
//#endregion
|
|
451
|
+
export { NumLiteral as $, EntityRefArgType as A, UnrestrictedStrArgType as At, IdentifierArgType as B, nodePslSpan as Bt, ContributedTypeSymbol as C, SymbolTableResult as Ct, DescribeUnresolvedType as D, UnresolvedTypeReference as Dt, DeclarationFor as E, TypedFuncCall as Et, FixedIdentifierArgType as F, entityReference as Ft, JsonValueArgType as G, InspectableArgType as H, readResolvedAttributes as Ht, FixedNumArgType as I, isNamespaceLike as It, ModelSymbol as J, ListArgType as K, FixedStrArgType as L, keywordPslSpan as Lt, FieldAttributeCtx as M, buildSymbolTable as Mt, FieldRefArgType as N, contributedTypeOf as Nt, DescribeUnsupportedAttribute as O, UnrestrictedIdentifierArgType as Ot, FieldSymbol as P, createBinder as Pt, NullArgType as Q, FuncCallArgType as R, matchesSelector as Rt, ContributedTypeScope as S, SymbolTable as St, CtxOf as T, TopLevelScope as Tt, IntArgType as U, readResolvedConstructorCall as Ut, InferAttr as V, readResolvedAttribute as Vt, JsonArgType as W, typeReferenceNode as Wt, NamedTypeSymbol as X, NamedOut as Y, NamespaceSymbol as Z, ContextForRequirement as _, ResolvedEntityReference as _t, AttributeLevel as a, Param as at, ContributedTypeDescriptor as b, Scope as bt, AttributeSymbol as c, PositionalParam as ct, BinderResult as d, ReferencedFieldRefArgType as dt, NumLiteralArgType as et, BlockSymbol as f, RejectingArgType as ft, CompositeTypeSymbol as g, ResolvedAttributeArg as gt, BuildSymbolTableOptions as h, ResolvedAttribute as ht, AttributeCtx as i, PSL_UNRESOLVED_REFERENCE as it, EntitySelector as j, UnsupportedAttribute as jt, EntityDeclaration as k, UnrestrictedNumArgType as kt, Binder as l, PslSymbol as lt, BoundSpec as m, Resolution as mt, ArgType as n, OptionalArgType as nt, AttributeOut as o, ParsedTaggedLiteral as ot, BoolArgType as p, RequiredContextFor as pt, ModelAttributeCtx as q, ArgTypeKind as r, OutOf as rt, AttributeSpec as s, PosOut as st, AnyArgType as t, OneOfArgType as tt, BinderContext as u, RecordArgType as ut, ContributedMember as v, ResolvedNamedTypeBinding as vt, CreateBinderInput as w, TaggedLiteralArgType as wt, ContributedTypeNamespace as x, ScopeResolution as xt, ContributedNamespaceSymbol as y, ResolvedTypeConstructorCall as yt, FuncCallSig as z, memberEntries as zt };
|
|
452
|
+
//# sourceMappingURL=binder-CQGFQCuK-DrdVszQh.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"binder-CQGFQCuK-DrdVszQh.d.mts","names":[],"sources":["../../../../1-framework/2-authoring/psl-parser/dist/binder-CQGFQCuK.d.mts"],"mappings":";;;;;;;;;;;;;UASU;WACC;WACA;WACA;WACA,aAAa;WACb,MAAM;;UAEP,kBAAkB,cAAc,oBAAoB,oBAAoB,oBAAoB;WAC3F;WACA,eAAe;WACf,MAAM;WAC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
1
1
|
import { g as CodecTrait } from "./codec-types-DrcxdLlC-CAfu8HRL.mjs";
|
|
2
2
|
import { t as AggregateDescriptor } from "./types-import-spec-D-EPunhV-B3y6hGP5.mjs";
|
|
3
|
-
import "./framework-components-
|
|
3
|
+
import "./framework-components-CwclBqDh-CBGrY3Ry.mjs";
|
|
4
4
|
//#region ../../../1-framework/1-core/framework-components/dist/components.d.mts
|
|
5
5
|
//#region src/shared/aggregate-overloads.d.ts
|
|
6
6
|
/** What settling needs to know about a codec: its id, and the traits an overload can claim it by. */
|
|
@@ -47,4 +47,4 @@ interface SettledAggregateOverloads<TDescriptor extends AggregateDescriptor> {
|
|
|
47
47
|
declare function settleAggregateOverloads<TDescriptor extends AggregateDescriptor>(descriptors: readonly TDescriptor[], codecs: Iterable<AggregateCodecTraits>): SettledAggregateOverloads<TDescriptor>;
|
|
48
48
|
//#endregion
|
|
49
49
|
export { SettledAggregateOverloads as a, SettledAggregateOperation as i, AggregateOverloadAmbiguity as n, settleAggregateOverloads as o, AggregateOverloadDuplicate as r, AggregateCodecTraits as t };
|
|
50
|
-
//# sourceMappingURL=components-
|
|
50
|
+
//# sourceMappingURL=components-DFA65tWf.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-
|
|
1
|
+
{"version":3,"file":"components-DFA65tWf.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/components.d.mts"],"mappings":";;;;;;UAOU;WACC;WACA,iBAAiB;;;UAGlB,0BAA0B,oBAAoB;;WAE7C,WAAW,oBAAoB;;WAE/B,SAAS;;WAET,UAAU;;;UAGX;WACC;WACA;WACA,iBAAiB;;;UAGlB,2BAA2B,oBAAoB;WAC9C;WACA;WACA,OAAO;WACP,QAAQ;;UAET,0BAA0B,oBAAoB;WAC7C,YAAY,oBAAoB,0BAA0B;WAC1D,sBAAsB;WACtB,qBAAqB,2BAA2B;;;;;;;;;;;iBAW1C,yBAAyB,oBAAoB,qBAAqB,sBAAsB,eAAe,QAAQ,SAAS,wBAAwB,0BAA0B"}
|