@prisma/orm-framework 8.0.0-rc.15-dev.2 → 8.0.0-rc.16
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-CcT010vl.d.mts → authoring-DZ6xCFkL.d.mts} +2 -2
- package/dist/{authoring-CcT010vl.d.mts.map → authoring-DZ6xCFkL.d.mts.map} +1 -1
- package/dist/authoring-DcJL9g8s.mjs +352 -0
- package/dist/authoring-DcJL9g8s.mjs.map +1 -0
- package/dist/{binder-Dz5zT7tr-Dc_RkyB2.d.mts → binder-CfxKD8hm-CtG0Bs3W.d.mts} +30 -13
- package/dist/binder-CfxKD8hm-CtG0Bs3W.d.mts.map +1 -0
- package/dist/codec-U-xbQys_.mjs.map +1 -1
- package/dist/{components-CK8GHz8l.d.mts → components-DFGmVWZ7.d.mts} +2 -2
- package/dist/{components-CK8GHz8l.d.mts.map → components-DFGmVWZ7.d.mts.map} +1 -1
- package/dist/components.d.mts +8 -8
- package/dist/components.mjs +7 -6
- package/dist/components__authoring.d.mts +3 -3
- package/dist/components__authoring.mjs +3 -3
- package/dist/components__codec.mjs +2 -1
- 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/{config-types-D-P60plU.d.mts → config-types-CHO5rbVo.d.mts} +10 -8
- package/dist/config-types-CHO5rbVo.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 +1 -1
- package/dist/contract-authoring.mjs +1 -1
- package/dist/{control-BIv_-3QB.mjs → control-DZJQzwlC.mjs} +8 -4
- package/dist/control-DZJQzwlC.mjs.map +1 -0
- package/dist/{control-C1x8zzHb.d.mts → control-_4dB7KvO.d.mts} +7 -7
- package/dist/{control-C1x8zzHb.d.mts.map → control-_4dB7KvO.d.mts.map} +1 -1
- package/dist/{resolve-codec-vOfdHcIJ-IeNjz3Tm.mjs → data-type-4xQlxYB5-DD158cOq.mjs} +3 -70
- package/dist/data-type-4xQlxYB5-DD158cOq.mjs.map +1 -0
- package/dist/{declarations-DDT0hm5r-BZoOKiu1.mjs → declarations-5xLxC310-R3-Z4vcK.mjs} +6 -6
- package/dist/{declarations-DDT0hm5r-BZoOKiu1.mjs.map → declarations-5xLxC310-R3-Z4vcK.mjs.map} +1 -1
- package/dist/errors.d.mts +1 -1
- package/dist/errors__execution.d.mts +1 -1
- package/dist/{execution-gjfB1CvH.d.mts → execution-CYxp6gvp.d.mts} +2 -2
- package/dist/{execution-gjfB1CvH.d.mts.map → execution-CYxp6gvp.d.mts.map} +1 -1
- package/dist/{execution-o-z5gzZh.d.mts → execution-Utsq8aY6.d.mts} +2 -2
- package/dist/{execution-o-z5gzZh.d.mts.map → execution-Utsq8aY6.d.mts.map} +1 -1
- package/dist/{framework-components-DDr6lZoZ-EpXYrZj7.d.mts → framework-components-BY_7sg-B-ChOD-ovL.d.mts} +3 -3
- package/dist/{framework-components-DDr6lZoZ-EpXYrZj7.d.mts.map → framework-components-BY_7sg-B-ChOD-ovL.d.mts.map} +1 -1
- package/dist/{mutation-default-types-D_M8NC3U-BQNexfRU.d.mts → mutation-default-types-CMx8Y9zx-yQN8l2GU.d.mts} +4 -10
- package/dist/mutation-default-types-CMx8Y9zx-yQN8l2GU.d.mts.map +1 -0
- package/dist/{parse-ymgXJUnk-CwVCe8ZD.mjs → parse-Cjjj1-m4-Coaz3UzQ.mjs} +3 -3
- package/dist/{parse-ymgXJUnk-CwVCe8ZD.mjs.map → parse-Cjjj1-m4-Coaz3UzQ.mjs.map} +1 -1
- package/dist/{parse-eSQ_clQv-YWR_NQoq.d.mts → parse-GXhoypXR-CeQ_TuEg.d.mts} +7 -7
- package/dist/{parse-eSQ_clQv-YWR_NQoq.d.mts.map → parse-GXhoypXR-CeQ_TuEg.d.mts.map} +1 -1
- package/dist/psl-parser.d.mts +36 -7
- package/dist/psl-parser.d.mts.map +1 -1
- package/dist/psl-parser.mjs +161 -18
- 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__format.mjs.map +1 -1
- package/dist/psl-parser__interpret.d.mts +4 -4
- package/dist/psl-parser__interpret.mjs +1 -1
- package/dist/psl-parser__syntax.d.mts +1 -1
- package/dist/psl-parser__syntax.mjs +2 -2
- package/dist/psl-parser__syntax.mjs.map +1 -1
- package/dist/psl-printer.d.mts +1 -1
- package/dist/psl-printer.mjs +1 -1
- package/dist/resolve-codec-qqMjZrmn-Cok8elAo.mjs +74 -0
- package/dist/resolve-codec-qqMjZrmn-Cok8elAo.mjs.map +1 -0
- package/dist/{temporal-presets-DIo9uYtS-Odk6WBk8.mjs → temporal-presets-DUCEijgt-CODhqGVy.mjs} +20 -11
- package/dist/{temporal-presets-DIo9uYtS-Odk6WBk8.mjs.map → temporal-presets-DUCEijgt-CODhqGVy.mjs.map} +1 -1
- package/dist/utils.d.mts +1 -1
- package/dist/written-value-BB9UYfrg-OiFCVcz2.d.mts +278 -0
- package/dist/written-value-BB9UYfrg-OiFCVcz2.d.mts.map +1 -0
- package/package.json +15 -15
- package/dist/authoring-iMWszF7p.mjs +0 -157
- package/dist/authoring-iMWszF7p.mjs.map +0 -1
- package/dist/binder-Dz5zT7tr-Dc_RkyB2.d.mts.map +0 -1
- package/dist/config-types-D-P60plU.d.mts.map +0 -1
- package/dist/control-BIv_-3QB.mjs.map +0 -1
- package/dist/mutation-default-types-D_M8NC3U-BQNexfRU.d.mts.map +0 -1
- package/dist/resolve-codec-vOfdHcIJ-IeNjz3Tm.mjs.map +0 -1
- package/dist/temporal-presets-CLsu00ZK-CAx-cLAM.d.mts +0 -160
- package/dist/temporal-presets-CLsu00ZK-CAx-cLAM.d.mts.map +0 -1
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import { V as JsonValue } from "./domain-envelope-C2vVIWGK-C5x7cBpU.mjs";
|
|
2
|
+
import { b as DataTypeLookup, y as DataTypeId } from "./codec-types-8NKqm4AQ-DyNSay3e.mjs";
|
|
3
|
+
import { N as DataTypeAuthoringEntry, T as AuthoringStorageTypeTemplate, W as ScalarTypeConstructorOutput } from "./framework-authoring-DRrZ8_s0-CJ7XXqvx.mjs";
|
|
4
|
+
import { c as MutationDefaultGeneratorDescriptor } from "./mutation-default-types-CMx8Y9zx-yQN8l2GU.mjs";
|
|
5
|
+
import { r as Result } from "./result-BYCOANWy.mjs";
|
|
6
|
+
//#region ../../../1-framework/1-core/framework-components/dist/written-value-BB9UYfrg.d.mts
|
|
7
|
+
//#region src/shared/tagged-literal.d.ts
|
|
8
|
+
/**
|
|
9
|
+
* `text` is the canonical value of the literal. Every failure `offset` is an
|
|
10
|
+
* index into the resolved body the function was given, including `too-large`,
|
|
11
|
+
* whose limit is measured on the canonical text.
|
|
12
|
+
*/
|
|
13
|
+
type TaggedLiteralCanonicalization = {
|
|
14
|
+
readonly ok: true;
|
|
15
|
+
readonly text: string;
|
|
16
|
+
} | {
|
|
17
|
+
readonly ok: false;
|
|
18
|
+
readonly reason: 'nul' | 'too-large';
|
|
19
|
+
readonly offset: number;
|
|
20
|
+
};
|
|
21
|
+
declare const TAGGED_LITERAL_MAX_BYTES = 65536;
|
|
22
|
+
/** The message a tagged literal's canonicalization failure is reported with, in PSL and in TypeScript. */
|
|
23
|
+
declare function describeTaggedLiteralFailure(reason: 'nul' | 'too-large'): string;
|
|
24
|
+
/** The escapes a PSL backtick string resolves: `` \` `` and `\\`. PSL has no interpolation, so `${` is ordinary text. */
|
|
25
|
+
declare function resolvePslBacktickEscapes(raw: string): string;
|
|
26
|
+
/** The escapes a TypeScript template tag resolves: the PSL two plus `\$`, the only way to write `${` in a template literal. */
|
|
27
|
+
declare function resolveTemplateTagEscapes(raw: string): string;
|
|
28
|
+
/**
|
|
29
|
+
* Turns the escape-resolved body of a tagged literal into its canonical text:
|
|
30
|
+
* newlines become `\n`, a blank first and last line are dropped, common leading
|
|
31
|
+
* whitespace is removed, internal blank lines become empty, and no trailing
|
|
32
|
+
* newline is added. Fails on a NUL character or when the result is larger than
|
|
33
|
+
* 65536 UTF-8 bytes.
|
|
34
|
+
*/
|
|
35
|
+
declare function canonicalizeTaggedLiteralBody(resolved: string): TaggedLiteralCanonicalization;
|
|
36
|
+
/**
|
|
37
|
+
* The PSL text of a tagged literal holding `text`: the backtick form, or the double-quote form when the text holds a
|
|
38
|
+
* backtick, which reads better than escaping each backtick. A multi-line text starts on the line after the opening
|
|
39
|
+
* backtick, so indentation a printer adds to an enclosing block is common to every line and the canonicalization
|
|
40
|
+
* removes it. The literal's canonical text is `text` again only when {@link printedTaggedLiteralReadsBack} holds; text
|
|
41
|
+
* with leading indentation or a carriage return, for example, does not read back. ADR 129.
|
|
42
|
+
*/
|
|
43
|
+
declare function printTaggedLiteral(tag: string, text: string): string;
|
|
44
|
+
//#endregion
|
|
45
|
+
//#region src/shared/temporal-presets.d.ts
|
|
46
|
+
/**
|
|
47
|
+
* A codec's storage template with every member a preset needs to resolve.
|
|
48
|
+
*/
|
|
49
|
+
type PresetStorageTemplate = ScalarTypeConstructorOutput & AuthoringStorageTypeTemplate;
|
|
50
|
+
/**
|
|
51
|
+
* Canonical id for the wall-clock-now mutation default generator. It flows to the control-plane descriptor and the temporal field presets below, to each family's runtime generator, and to the authoring surfaces (PSL `temporal.updatedAt()`, TS `field.temporal.updatedAt()`) through the descriptor.
|
|
52
|
+
*/
|
|
53
|
+
declare const TIMESTAMP_NOW_GENERATOR_ID: "timestampNow";
|
|
54
|
+
/**
|
|
55
|
+
* Builds the control-plane descriptor for the wall-clock-now mutation default generator. Its `id` and `buildPhases` are target-agnostic, so PSL `temporal.updatedAt()` and TS `field.temporal.updatedAt()` lower to byte-identical contracts.
|
|
56
|
+
*
|
|
57
|
+
* `applicableCodecIds` is omitted: `timestampNow` is reachable only through a preset, which co-registers the codec itself, so a compatibility list would be tautological.
|
|
58
|
+
*/
|
|
59
|
+
declare function timestampNowControlDescriptor(): MutationDefaultGeneratorDescriptor;
|
|
60
|
+
/**
|
|
61
|
+
* Builds the `temporal.{createdAt,updatedAt}` field-preset pair. `createdAt` lowers to an execution generator on `onCreate`; `updatedAt` lowers to the same generator on both `onCreate` and `onUpdate`. The target supplies the storage template of its timestamp codec, which the presets carry through unchanged; everything else is shared, so PSL and TS authoring lower to byte-identical contracts across targets.
|
|
62
|
+
*/
|
|
63
|
+
declare function temporalAuthoringPresets<const Storage extends PresetStorageTemplate, const GeneratorId extends string = typeof TIMESTAMP_NOW_GENERATOR_ID>(input: Storage & {
|
|
64
|
+
readonly generatorId?: GeneratorId;
|
|
65
|
+
}): {
|
|
66
|
+
readonly createdAt: {
|
|
67
|
+
readonly kind: "fieldPreset";
|
|
68
|
+
readonly output: Omit<Storage & {
|
|
69
|
+
readonly generatorId?: GeneratorId;
|
|
70
|
+
}, "generatorId"> & {
|
|
71
|
+
readonly executionDefaults: {
|
|
72
|
+
readonly onCreate: {
|
|
73
|
+
readonly kind: "generator";
|
|
74
|
+
readonly id: "timestampNow" | GeneratorId;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
readonly updatedAt: {
|
|
80
|
+
readonly kind: "fieldPreset";
|
|
81
|
+
readonly output: Omit<Storage & {
|
|
82
|
+
readonly generatorId?: GeneratorId;
|
|
83
|
+
}, "generatorId"> & {
|
|
84
|
+
readonly executionDefaults: {
|
|
85
|
+
readonly onCreate: {
|
|
86
|
+
readonly kind: "generator";
|
|
87
|
+
readonly id: "timestampNow" | GeneratorId;
|
|
88
|
+
};
|
|
89
|
+
readonly onUpdate: {
|
|
90
|
+
readonly kind: "generator";
|
|
91
|
+
readonly id: "timestampNow" | GeneratorId;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
declare const TEMPORAL_ON_CREATE_ARG: {
|
|
98
|
+
readonly name: "onCreate";
|
|
99
|
+
readonly kind: "option";
|
|
100
|
+
readonly values: readonly ["now"];
|
|
101
|
+
readonly optional: true;
|
|
102
|
+
};
|
|
103
|
+
declare const TEMPORAL_ON_UPDATE_ARG: {
|
|
104
|
+
readonly name: "onUpdate";
|
|
105
|
+
readonly kind: "option";
|
|
106
|
+
readonly values: readonly ["now"];
|
|
107
|
+
readonly optional: true;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Selects a generator descriptor for the preset's `now` token. The token is preset vocabulary; the generator id never appears in a user's spelling (ADR 169 — these generators are preset-only).
|
|
111
|
+
*/
|
|
112
|
+
declare function temporalPhaseTemplate<const Index extends number, const GeneratorId extends string>(index: Index, generatorId: GeneratorId): {
|
|
113
|
+
readonly kind: "select";
|
|
114
|
+
readonly index: Index;
|
|
115
|
+
readonly cases: {
|
|
116
|
+
readonly now: {
|
|
117
|
+
readonly kind: "generator";
|
|
118
|
+
readonly id: GeneratorId;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* Builds a `temporal.<codec>` field preset for a codec with no type parameters, carrying the codec's storage template through unchanged. Both phase arguments are optional, and omitting one omits that phase.
|
|
124
|
+
*/
|
|
125
|
+
declare function temporalCodecPreset<const Storage extends PresetStorageTemplate>(storage: Storage): {
|
|
126
|
+
readonly kind: "fieldPreset";
|
|
127
|
+
readonly args: readonly [{
|
|
128
|
+
readonly name: "onCreate";
|
|
129
|
+
readonly kind: "option";
|
|
130
|
+
readonly values: readonly ["now"];
|
|
131
|
+
readonly optional: true;
|
|
132
|
+
}, {
|
|
133
|
+
readonly name: "onUpdate";
|
|
134
|
+
readonly kind: "option";
|
|
135
|
+
readonly values: readonly ["now"];
|
|
136
|
+
readonly optional: true;
|
|
137
|
+
}];
|
|
138
|
+
readonly output: Storage & {
|
|
139
|
+
readonly executionDefaults: {
|
|
140
|
+
readonly onCreate: {
|
|
141
|
+
readonly kind: "select";
|
|
142
|
+
readonly index: 0;
|
|
143
|
+
readonly cases: {
|
|
144
|
+
readonly now: {
|
|
145
|
+
readonly kind: "generator";
|
|
146
|
+
readonly id: "timestampNow";
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
readonly onUpdate: {
|
|
151
|
+
readonly kind: "select";
|
|
152
|
+
readonly index: 1;
|
|
153
|
+
readonly cases: {
|
|
154
|
+
readonly now: {
|
|
155
|
+
readonly kind: "generator";
|
|
156
|
+
readonly id: "timestampNow";
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
};
|
|
162
|
+
};
|
|
163
|
+
//#endregion
|
|
164
|
+
//#region src/shared/written-value.d.ts
|
|
165
|
+
/** One written value, in the syntax a contract source wrote it in. The framework defines the list shape, and the family's default reader is the only reader of it. ADR 254. */
|
|
166
|
+
type WrittenValue = {
|
|
167
|
+
readonly kind: 'tag';
|
|
168
|
+
readonly tag: string;
|
|
169
|
+
readonly text: string;
|
|
170
|
+
} | {
|
|
171
|
+
readonly kind: 'string';
|
|
172
|
+
readonly text: string;
|
|
173
|
+
} | {
|
|
174
|
+
readonly kind: 'boolean';
|
|
175
|
+
readonly value: boolean;
|
|
176
|
+
} | {
|
|
177
|
+
readonly kind: 'number';
|
|
178
|
+
readonly text: string;
|
|
179
|
+
} | {
|
|
180
|
+
readonly kind: 'list';
|
|
181
|
+
readonly elements: readonly WrittenValue[];
|
|
182
|
+
};
|
|
183
|
+
type WrittenScalar = Exclude<WrittenValue, {
|
|
184
|
+
readonly kind: 'list';
|
|
185
|
+
}>;
|
|
186
|
+
/** A stack's registered data types with their authoring entries. */
|
|
187
|
+
interface DataTypeSupport {
|
|
188
|
+
readonly entries: Readonly<Record<string, DataTypeAuthoringEntry>>;
|
|
189
|
+
readonly lookup: DataTypeLookup;
|
|
190
|
+
}
|
|
191
|
+
/** A value with its data type; `value` is the canonical form of `type`. */
|
|
192
|
+
interface TypedValue {
|
|
193
|
+
readonly type: DataTypeId;
|
|
194
|
+
readonly value: JsonValue;
|
|
195
|
+
}
|
|
196
|
+
type ReadRefusal = {
|
|
197
|
+
readonly kind: 'unreadable';
|
|
198
|
+
readonly message: string;
|
|
199
|
+
} | {
|
|
200
|
+
readonly kind: 'unknown-tag';
|
|
201
|
+
readonly tag: string;
|
|
202
|
+
readonly known: readonly string[];
|
|
203
|
+
} | {
|
|
204
|
+
readonly kind: 'unwritable';
|
|
205
|
+
readonly syntax: 'string' | 'boolean' | 'number';
|
|
206
|
+
};
|
|
207
|
+
type CastRefusal = {
|
|
208
|
+
readonly kind: 'no-cast';
|
|
209
|
+
readonly receivingType: DataTypeId;
|
|
210
|
+
readonly valueType: DataTypeId;
|
|
211
|
+
readonly casts: readonly string[];
|
|
212
|
+
} | {
|
|
213
|
+
readonly kind: 'unreadable';
|
|
214
|
+
readonly message: string;
|
|
215
|
+
};
|
|
216
|
+
/** A cast-rule refusal worded for a diagnostic. */
|
|
217
|
+
interface RefusalDescription {
|
|
218
|
+
readonly code: 'PSL_UNKNOWN_LITERAL_TAG' | 'PSL_VALUE_TYPE_INCOMPATIBLE' | 'PSL_INVALID_LITERAL';
|
|
219
|
+
readonly message: string;
|
|
220
|
+
}
|
|
221
|
+
/** A syntax a value is written in, with the phrase a diagnostic names it by. */
|
|
222
|
+
type WrittenForm = {
|
|
223
|
+
readonly kind: 'tag';
|
|
224
|
+
readonly tag: string;
|
|
225
|
+
readonly phrase: string;
|
|
226
|
+
} | {
|
|
227
|
+
readonly kind: 'string' | 'boolean' | 'number';
|
|
228
|
+
readonly phrase: string;
|
|
229
|
+
};
|
|
230
|
+
/** What a refusal tells the author to write: the forms the position admits, and an exact rewrite of the written value when there is one. */
|
|
231
|
+
interface RefusalGuidance {
|
|
232
|
+
/** Each form the position admits, as {@link admittedForms} lists them. */
|
|
233
|
+
readonly forms: readonly WrittenForm[];
|
|
234
|
+
/** The written value rewritten in an admitted form, as in ``sql`8` ``. */
|
|
235
|
+
readonly rewrite: string | undefined;
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Words a refusal of the cast rule. The message leads with what to write; the types are named only when the value has a form the position admits and its type is still refused, such as a number too large for the receiving type.
|
|
239
|
+
*/
|
|
240
|
+
declare function describeRefusal(refusal: ReadRefusal | CastRefusal, support: DataTypeSupport, guidance: RefusalGuidance): RefusalDescription;
|
|
241
|
+
/** `Expected <forms>`, the forms joined with `or`: the start of every refusal that says what to write. */
|
|
242
|
+
declare function describeExpected(forms: readonly WrittenForm[]): string;
|
|
243
|
+
/**
|
|
244
|
+
* Words a value of type `valueType` that `receivingType` refuses, where `guidance.forms` may be written. The types are named only when the value has one of those forms.
|
|
245
|
+
*/
|
|
246
|
+
declare function describeRefusedValueType(refused: {
|
|
247
|
+
readonly receivingType: DataTypeId;
|
|
248
|
+
readonly valueType: DataTypeId;
|
|
249
|
+
}, support: DataTypeSupport, guidance: RefusalGuidance): string;
|
|
250
|
+
/**
|
|
251
|
+
* The literal to write in place of a quoted string that `receivingType` refuses: the string as a literal of the first tag the type admits. `undefined` when the value is not a quoted string, the type admits no tag, the literal would not read back as the same text, or the type would refuse the literal too.
|
|
252
|
+
*/
|
|
253
|
+
declare function exactRewrite(support: DataTypeSupport, receivingType: DataTypeId, written: WrittenScalar): string | undefined;
|
|
254
|
+
interface FoundEntry {
|
|
255
|
+
readonly key: string;
|
|
256
|
+
readonly entry: DataTypeAuthoringEntry;
|
|
257
|
+
}
|
|
258
|
+
/** The entry a tag names, or `undefined` when no pack registered that tag. */
|
|
259
|
+
declare function entryForTag(support: DataTypeSupport, tag: string): FoundEntry | undefined;
|
|
260
|
+
/** The entry that reads a plain string, boolean or number, or `undefined` when none does. */
|
|
261
|
+
declare function entryForPlain(support: DataTypeSupport, syntax: 'string' | 'boolean' | 'number'): FoundEntry | undefined;
|
|
262
|
+
/** Every tag a stack registers, in the order the entries were merged. */
|
|
263
|
+
declare function knownTags(support: DataTypeSupport): readonly string[];
|
|
264
|
+
/** Read one written value through the authoring entry for its syntax. */
|
|
265
|
+
declare function readWrittenValue(support: DataTypeSupport, written: WrittenScalar): Result<TypedValue, ReadRefusal>;
|
|
266
|
+
/** Take a typed value into the receiving type, directly or through the cast that type declares. */
|
|
267
|
+
declare function castTypedValue(support: DataTypeSupport, receivingType: DataTypeId, typed: TypedValue): Result<TypedValue, CastRefusal>;
|
|
268
|
+
/** The tags a position of `dataType` admits: its own tag, then the tags of the types it casts from. */
|
|
269
|
+
declare function admittedTags(support: DataTypeSupport, dataType: DataTypeId): readonly string[];
|
|
270
|
+
/** The form a value of a tagged literal's type is written in. */
|
|
271
|
+
declare function tagForm(tag: string): WrittenForm;
|
|
272
|
+
/** Each form a position receiving every one of `receivingTypes` admits, once, in order: ``sql`...` ``, `true or false`. */
|
|
273
|
+
declare function admittedForms(support: DataTypeSupport, receivingTypes: readonly DataTypeId[]): readonly WrittenForm[];
|
|
274
|
+
/** How a position of `dataType` can be written, for a diagnostic: ``sql`...` ``, `true or false`. */
|
|
275
|
+
declare function describeAdmittedForms(support: DataTypeSupport, dataType: DataTypeId): string;
|
|
276
|
+
//#endregion
|
|
277
|
+
export { readWrittenValue as A, describeRefusedValueType as C, exactRewrite as D, entryForTag as E, temporalCodecPreset as F, temporalPhaseTemplate as I, timestampNowControlDescriptor as L, resolveTemplateTagEscapes as M, tagForm as N, knownTags as O, temporalAuthoringPresets as P, describeRefusal as S, entryForPlain as T, admittedTags as _, RefusalDescription as a, describeAdmittedForms as b, TEMPORAL_ON_CREATE_ARG as c, TaggedLiteralCanonicalization as d, TypedValue as f, admittedForms as g, WrittenValue as h, ReadRefusal as i, resolvePslBacktickEscapes as j, printTaggedLiteral as k, TEMPORAL_ON_UPDATE_ARG as l, WrittenScalar as m, DataTypeSupport as n, RefusalGuidance as o, WrittenForm as p, PresetStorageTemplate as r, TAGGED_LITERAL_MAX_BYTES as s, CastRefusal as t, TIMESTAMP_NOW_GENERATOR_ID as u, canonicalizeTaggedLiteralBody as v, describeTaggedLiteralFailure as w, describeExpected as x, castTypedValue as y };
|
|
278
|
+
//# sourceMappingURL=written-value-BB9UYfrg-OiFCVcz2.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"written-value-BB9UYfrg-OiFCVcz2.d.mts","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/written-value-BB9UYfrg.d.mts"],"mappings":";;;;;;;;;;;;KAWK;WACM;WACA;;WAEA;WACA;WACA;;cAEG;;iBAEG,6BAA6B;;iBAE7B,0BAA0B;;iBAE1B,0BAA0B;;;;;;;;iBAQ1B,8BAA8B,mBAAmB;;;;;;;;iBAQjD,mBAAmB,aAAa;;;;;;KAM5C,wBAAwB,8BAA8B;;;;cAI7C;;;;;;iBAMG,iCAAiC;;;;iBAIjC,+BAA+B,gBAAgB,6BAA6B,oCAAoC,4BAA4B,OAAO;WACzJ,cAAc;;WAEd;aACE;aACA,QAAQ,KAAK;eACX,cAAc;;eAEd;iBACE;mBACE;mBACA,qBAAqB;;;;;WAK7B;aACE;aACA,QAAQ,KAAK;eACX,cAAc;;eAEd;iBACE;mBACE;mBACA,qBAAqB;;iBAEvB;mBACE;mBACA,qBAAqB;;;;;;cAM1B;WACH;WACA;WACA;WACA;;cAEG;WACH;WACA;WACA;WACA;;;;;iBAKM,4BAA4B,4BAA4B,4BAA4B,OAAO,OAAO,aAAa;WACrH;WACA,OAAO;WACP;aACE;eACE;eACA,IAAI;;;;;;;iBAOF,0BAA0B,gBAAgB,uBAAuB,SAAS;WAChF;WACA;aACE;aACA;aACA;aACA;;aAEA;aACA;aACA;aACA;;WAEF,QAAQ;aACN;eACE;iBACE;iBACA;iBACA;mBACE;qBACE;qBACA;;;;eAIN;iBACE;iBACA;iBACA;mBACE;qBACE;qBACA;;;;;;;;;;KAUhB;WACM;WACA;WACA;;WAEA;WACA;;WAEA;WACA;;WAEA;WACA;;WAEA;WACA,mBAAmB;;KAEzB,gBAAgB,QAAQ;WAClB;;;UAGD;WACC,SAAS,SAAS,eAAe;WACjC,QAAQ;;;UAGT;WACC,MAAM;WACN,OAAO;;KAEb;WACM;WACA;;WAEA;WACA;WACA;;WAEA;WACA;;KAEN;WACM;WACA,eAAe;WACf,WAAW;WACX;;WAEA;WACA;;;UAGD;WACC;WACA;;;KAGN;WACM;WACA;WACA;;WAEA;WACA;;;UAGD;;WAEC,gBAAgB;;WAEhB;;;;;iBAKM,gBAAgB,SAAS,cAAc,aAAa,SAAS,iBAAiB,UAAU,kBAAkB;;iBAE1G,iBAAiB,gBAAgB;;;;iBAIjC,yBAAyB;WAC/B,eAAe;WACf,WAAW;GACnB,SAAS,iBAAiB,UAAU;;;;iBAItB,aAAa,SAAS,iBAAiB,eAAe,YAAY,SAAS;UAClF;WACC;WACA,OAAO;;;iBAGD,YAAY,SAAS,iBAAiB,cAAc;;iBAEpD,cAAc,SAAS,iBAAiB,0CAA0C;;iBAElF,UAAU,SAAS;;iBAEnB,iBAAiB,SAAS,iBAAiB,SAAS,gBAAgB,OAAO,YAAY;;iBAEvF,eAAe,SAAS,iBAAiB,eAAe,YAAY,OAAO,aAAa,OAAO,YAAY;;iBAE3G,aAAa,SAAS,iBAAiB,UAAU;;iBAEjD,QAAQ,cAAc;;iBAEtB,cAAc,SAAS,iBAAiB,yBAAyB,wBAAwB;;iBAEzF,sBAAsB,SAAS,iBAAiB,UAAU"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prisma/orm-framework",
|
|
3
|
-
"version": "8.0.0-rc.
|
|
3
|
+
"version": "8.0.0-rc.16",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -16,20 +16,20 @@
|
|
|
16
16
|
"uniku": "^0.5.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@internal/config": "8.0.0-rc.
|
|
20
|
-
"@internal/contract": "8.0.0-rc.
|
|
21
|
-
"@internal/contract-authoring": "8.0.0-rc.
|
|
22
|
-
"@internal/errors": "8.0.0-rc.
|
|
23
|
-
"@internal/framework-components": "8.0.0-rc.
|
|
24
|
-
"@internal/ids": "8.0.0-rc.
|
|
25
|
-
"@internal/operations": "8.0.0-rc.
|
|
26
|
-
"@internal/psl-parser": "8.0.0-rc.
|
|
27
|
-
"@internal/psl-printer": "8.0.0-rc.
|
|
28
|
-
"@internal/ts-render": "8.0.0-rc.
|
|
29
|
-
"@repo/tsconfig": "8.0.0-rc.
|
|
30
|
-
"@internal/publish-surface": "8.0.0-rc.
|
|
31
|
-
"@repo/tsdown": "8.0.0-rc.
|
|
32
|
-
"@internal/utils": "8.0.0-rc.
|
|
19
|
+
"@internal/config": "8.0.0-rc.16",
|
|
20
|
+
"@internal/contract": "8.0.0-rc.16",
|
|
21
|
+
"@internal/contract-authoring": "8.0.0-rc.16",
|
|
22
|
+
"@internal/errors": "8.0.0-rc.16",
|
|
23
|
+
"@internal/framework-components": "8.0.0-rc.16",
|
|
24
|
+
"@internal/ids": "8.0.0-rc.16",
|
|
25
|
+
"@internal/operations": "8.0.0-rc.16",
|
|
26
|
+
"@internal/psl-parser": "8.0.0-rc.16",
|
|
27
|
+
"@internal/psl-printer": "8.0.0-rc.16",
|
|
28
|
+
"@internal/ts-render": "8.0.0-rc.16",
|
|
29
|
+
"@repo/tsconfig": "8.0.0-rc.16",
|
|
30
|
+
"@internal/publish-surface": "8.0.0-rc.16",
|
|
31
|
+
"@repo/tsdown": "8.0.0-rc.16",
|
|
32
|
+
"@internal/utils": "8.0.0-rc.16",
|
|
33
33
|
"tsdown": "0.22.14",
|
|
34
34
|
"typescript": "5.9.3",
|
|
35
35
|
"vitest": "5.0.0-rc.2"
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import { r as isInternalError } from "./internal-error-ChGYPVpq-DhUD05u0.mjs";
|
|
2
|
-
import { t as canonicalStringify } from "./canonical-stringify-DY4NaAJi.mjs";
|
|
3
|
-
import { t as canonicalizeJson } from "./canonicalize-json-ZPawceQR-Dua1VNEB.mjs";
|
|
4
|
-
import { C as isAuthoringTypeConstructorDescriptor, _ as instantiateAuthoringTypeConstructor, b as isAuthoringFieldPresetDescriptor, v as isAuthoringArgRef } from "./temporal-presets-DIo9uYtS-Odk6WBk8.mjs";
|
|
5
|
-
//#region ../../../1-framework/1-core/framework-components/dist/authoring.mjs
|
|
6
|
-
function* typeConstructors(namespace, path = []) {
|
|
7
|
-
for (const [name, value] of Object.entries(namespace)) if (isAuthoringTypeConstructorDescriptor(value)) yield {
|
|
8
|
-
path: [...path, name],
|
|
9
|
-
descriptor: value
|
|
10
|
-
};
|
|
11
|
-
else yield* typeConstructors(value, [...path, name]);
|
|
12
|
-
}
|
|
13
|
-
function produces(produced, wanted) {
|
|
14
|
-
const wantedFields = {
|
|
15
|
-
...wanted,
|
|
16
|
-
typeParams: wanted.typeParams ?? {}
|
|
17
|
-
};
|
|
18
|
-
return Object.entries({
|
|
19
|
-
...produced,
|
|
20
|
-
typeParams: produced.typeParams ?? {}
|
|
21
|
-
}).every(([key, value]) => canonicalizeJson(value) === canonicalizeJson(wantedFields[key]));
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* The arguments that make `descriptor` produce exactly `output`, when each of its type parameters
|
|
25
|
-
* comes straight from one argument; `undefined` when it cannot produce `output`, including when
|
|
26
|
-
* `output` has no value for an argument the constructor requires.
|
|
27
|
-
*/
|
|
28
|
-
function argumentsFor(descriptor, output) {
|
|
29
|
-
if (descriptor.entityRefArg !== void 0 || descriptor.output.codecId !== output.codecId) return;
|
|
30
|
-
const args = [];
|
|
31
|
-
for (const [key, template] of Object.entries(descriptor.output.typeParams ?? {})) {
|
|
32
|
-
const value = output.typeParams?.[key];
|
|
33
|
-
if (value !== void 0 && isAuthoringArgRef(template) && template.path === void 0) args[template.index] = value;
|
|
34
|
-
}
|
|
35
|
-
const requiredArgs = (descriptor.args ?? []).filter((arg) => arg.optional !== true).length;
|
|
36
|
-
if (args.length < requiredArgs || Array.from(args).includes(void 0)) return void 0;
|
|
37
|
-
try {
|
|
38
|
-
return produces(instantiateAuthoringTypeConstructor(descriptor, args), output) ? args : void 0;
|
|
39
|
-
} catch {
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* The first call, in namespace order, to a type constructor in `namespace` that produces exactly
|
|
45
|
-
* `output`. The inverse of {@link instantiateAuthoringTypeConstructor} for constructors whose type
|
|
46
|
-
* parameters each come straight from one argument. A constructor whose argument names another
|
|
47
|
-
* entity is never chosen. `undefined` when no call produces `output`.
|
|
48
|
-
*/
|
|
49
|
-
function findAuthoringTypeConstructorCall(namespace, output) {
|
|
50
|
-
for (const { path, descriptor } of typeConstructors(namespace)) {
|
|
51
|
-
const args = argumentsFor(descriptor, output);
|
|
52
|
-
if (args !== void 0) return {
|
|
53
|
-
path,
|
|
54
|
-
args
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Reads the members of an `enum` block through its codec. A member written as a number literal is read from its source text as a column default is read, when the family gives a reader for it (`ctx.readWrittenNumber`), so no digit is lost; when that reader refuses the number, the codec's `decodeJson` reads it, and only if the codec refuses it too is the reader's reason reported. Every other member goes to the codec's `decodeJson`, and a bare member is read from its own name.
|
|
60
|
-
* Pushes a diagnostic and returns `undefined` when the codec refuses a member, when two members
|
|
61
|
-
* store the same value, or when the block has no members. Shared by every family's enum factory.
|
|
62
|
-
*/
|
|
63
|
-
function readEnumBlockMembers(block, codecId, codec, ctx) {
|
|
64
|
-
const sourceId = ctx.sourceId ?? "unknown";
|
|
65
|
-
const diagnostics = ctx.diagnostics;
|
|
66
|
-
const memberByStoredValue = /* @__PURE__ */ new Map();
|
|
67
|
-
const members = [];
|
|
68
|
-
let memberError = false;
|
|
69
|
-
for (const [memberName, memberValue] of Object.entries(block.values)) {
|
|
70
|
-
const span = block.parameterSpans[memberName] ?? block.span;
|
|
71
|
-
const reading = typeof memberValue === "number" ? ctx.readWrittenNumber?.({
|
|
72
|
-
text: block.numberTexts?.[memberName] ?? String(memberValue),
|
|
73
|
-
codecId,
|
|
74
|
-
subject: `enum "${block.name}" member "${memberName}"`
|
|
75
|
-
}) : void 0;
|
|
76
|
-
const written = reading?.ok ? reading.value : memberValue === void 0 ? memberName : memberValue;
|
|
77
|
-
let read;
|
|
78
|
-
try {
|
|
79
|
-
read = codec.decodeJson(written);
|
|
80
|
-
} catch (err) {
|
|
81
|
-
if (isInternalError(err)) throw err;
|
|
82
|
-
diagnostics?.push(reading !== void 0 && !reading.ok ? {
|
|
83
|
-
code: "PSL_EXTENSION_INVALID_VALUE",
|
|
84
|
-
message: reading.message,
|
|
85
|
-
sourceId,
|
|
86
|
-
span
|
|
87
|
-
} : memberValue === void 0 ? {
|
|
88
|
-
code: "PSL_ENUM_BARE_MEMBER_NON_STRING_CODEC",
|
|
89
|
-
message: `enum "${block.name}" member "${memberName}" has no value and codec "${codecId}" does not accept a bare name as input`,
|
|
90
|
-
sourceId,
|
|
91
|
-
span
|
|
92
|
-
} : {
|
|
93
|
-
code: "PSL_EXTENSION_INVALID_VALUE",
|
|
94
|
-
message: `enum "${block.name}" member "${memberName}" was rejected by codec "${codecId}": ${err instanceof Error ? err.message : String(err)}`,
|
|
95
|
-
sourceId,
|
|
96
|
-
span
|
|
97
|
-
});
|
|
98
|
-
memberError = true;
|
|
99
|
-
continue;
|
|
100
|
-
}
|
|
101
|
-
const stored = codec.encodeJson(read);
|
|
102
|
-
const storedKey = canonicalStringify(stored);
|
|
103
|
-
const earlier = memberByStoredValue.get(storedKey);
|
|
104
|
-
if (earlier !== void 0) {
|
|
105
|
-
diagnostics?.push({
|
|
106
|
-
code: "PSL_ENUM_DUPLICATE_MEMBER_VALUE",
|
|
107
|
-
message: `enum "${block.name}": members "${earlier}" and "${memberName}" both store ${JSON.stringify(stored)}`,
|
|
108
|
-
sourceId,
|
|
109
|
-
span
|
|
110
|
-
});
|
|
111
|
-
memberError = true;
|
|
112
|
-
continue;
|
|
113
|
-
}
|
|
114
|
-
memberByStoredValue.set(storedKey, memberName);
|
|
115
|
-
members.push({
|
|
116
|
-
name: memberName,
|
|
117
|
-
value: read
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
if (memberError) return void 0;
|
|
121
|
-
if (members.length === 0) {
|
|
122
|
-
diagnostics?.push({
|
|
123
|
-
code: "PSL_ENUM_MISSING_TYPE",
|
|
124
|
-
message: `enum "${block.name}" must have at least one member`,
|
|
125
|
-
sourceId,
|
|
126
|
-
span: block.span
|
|
127
|
-
});
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
return members;
|
|
131
|
-
}
|
|
132
|
-
function presetSpellingsUnder(members, prefix) {
|
|
133
|
-
return 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}`));
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* How each field preset registered under `namespace`, at any depth, is written, with the names of its arguments: `temporal.timestamp(onCreate, onUpdate)`.
|
|
137
|
-
*/
|
|
138
|
-
function fieldPresetSpellings(contributions, namespace) {
|
|
139
|
-
const members = contributions?.field?.[namespace];
|
|
140
|
-
if (members === void 0 || isAuthoringFieldPresetDescriptor(members)) return [];
|
|
141
|
-
return presetSpellingsUnder(members, namespace);
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* Walks `authoringContributions.field` segment by segment and returns the field-preset descriptor at the path, or `undefined` when none is registered there.
|
|
145
|
-
*/
|
|
146
|
-
function getAuthoringFieldPreset(contributions, path) {
|
|
147
|
-
let current = contributions?.field;
|
|
148
|
-
for (const segment of path) {
|
|
149
|
-
if (typeof current !== "object" || current === null || "kind" in current) return;
|
|
150
|
-
current = current[segment];
|
|
151
|
-
}
|
|
152
|
-
return current !== void 0 && isAuthoringFieldPresetDescriptor(current) ? current : void 0;
|
|
153
|
-
}
|
|
154
|
-
//#endregion
|
|
155
|
-
export { readEnumBlockMembers as i, findAuthoringTypeConstructorCall as n, getAuthoringFieldPreset as r, fieldPresetSpellings as t };
|
|
156
|
-
|
|
157
|
-
//# sourceMappingURL=authoring-iMWszF7p.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"authoring-iMWszF7p.mjs","names":[],"sources":["../../../../1-framework/1-core/framework-components/dist/authoring.mjs"],"sourcesContent":["import { t as canonicalizeJson } from \"./canonicalize-json-ZPawceQR.mjs\";\nimport { A as isAuthoringTypeConstructorDescriptor, C as instantiateAuthoringFieldPreset, D as isAuthoringFieldPresetDescriptor, E as isAuthoringEntityTypeDescriptor, F as resolveEnumCodecId, I as tagEntryKey, L as validateAuthoringHelperArguments, N as mergeAuthoringNamespaces, O as isAuthoringModelAttributeDescriptor, P as resolveAuthoringTemplateValue, R as validateAuthoringTypeParams, S as instantiateAuthoringEntityType, T as isAuthoringArgRef, _ as classifyEnumMemberType, a as temporalCodecPreset, b as flushAuthoringWarnings, d as printTaggedLiteral, g as authoringEntryType, h as assertResolvableTypeConstructorTemplates, i as temporalAuthoringPresets, j as isTagEntryKey, k as isAuthoringPslBlockDescriptor, m as assertNoCrossRegistryCollisions, n as TEMPORAL_ON_UPDATE_ARG, o as temporalPhaseTemplate, r as TIMESTAMP_NOW_GENERATOR_ID, t as TEMPORAL_ON_CREATE_ARG, w as instantiateAuthoringTypeConstructor, x as getAuthoringTypeConstructor, y as collectScalarTypeConstructors } from \"./temporal-presets-DIo9uYtS.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 member written as a number literal is read from its source text as a column default is read, when the family gives a reader for it (`ctx.readWrittenNumber`), so no digit is lost; when that reader refuses the number, the codec's `decodeJson` reads it, and only if the codec refuses it too is the reader's reason reported. Every other member goes to the codec's `decodeJson`, and a bare member is read from its own name.\n* Pushes a diagnostic and returns `undefined` when the codec refuses a member, when two members\n* store the same value, or when the block has no members. Shared by every family's enum factory.\n*/\nfunction readEnumBlockMembers(block, codecId, codec, ctx) {\n\tconst sourceId = ctx.sourceId ?? \"unknown\";\n\tconst diagnostics = ctx.diagnostics;\n\tconst 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 reading = typeof memberValue === \"number\" ? ctx.readWrittenNumber?.({\n\t\t\ttext: block.numberTexts?.[memberName] ?? String(memberValue),\n\t\t\tcodecId,\n\t\t\tsubject: `enum \"${block.name}\" member \"${memberName}\"`\n\t\t}) : void 0;\n\t\tconst written = reading?.ok ? reading.value : memberValue === void 0 ? memberName : memberValue;\n\t\tlet read;\n\t\ttry {\n\t\t\tread = codec.decodeJson(written);\n\t\t} catch (err) {\n\t\t\tif (isInternalError(err)) throw err;\n\t\t\tdiagnostics?.push(reading !== void 0 && !reading.ok ? {\n\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\tmessage: reading.message,\n\t\t\t\tsourceId,\n\t\t\t\tspan\n\t\t\t} : memberValue === void 0 ? {\n\t\t\t\tcode: \"PSL_ENUM_BARE_MEMBER_NON_STRING_CODEC\",\n\t\t\t\tmessage: `enum \"${block.name}\" member \"${memberName}\" has no value and codec \"${codecId}\" does not accept a bare name as input`,\n\t\t\t\tsourceId,\n\t\t\t\tspan\n\t\t\t} : {\n\t\t\t\tcode: \"PSL_EXTENSION_INVALID_VALUE\",\n\t\t\t\tmessage: `enum \"${block.name}\" member \"${memberName}\" was rejected by codec \"${codecId}\": ${err instanceof Error ? err.message : String(err)}`,\n\t\t\t\tsourceId,\n\t\t\t\tspan\n\t\t\t});\n\t\t\tmemberError = true;\n\t\t\tcontinue;\n\t\t}\n\t\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, authoringEntryType, classifyEnumMemberType, collectScalarTypeConstructors, fieldPresetSpellings, findAuthoringTypeConstructorCall, flushAuthoringWarnings, getAuthoringFieldPreset, getAuthoringTypeConstructor, instantiateAuthoringEntityType, instantiateAuthoringFieldPreset, instantiateAuthoringTypeConstructor, isAuthoringArgRef, isAuthoringEntityTypeDescriptor, isAuthoringFieldPresetDescriptor, isAuthoringModelAttributeDescriptor, isAuthoringPslBlockDescriptor, isAuthoringTypeConstructorDescriptor, isTagEntryKey, mergeAuthoringNamespaces, printTaggedLiteral, readEnumBlockMembers, resolveAuthoringTemplateValue, resolveEnumCodecId, tagEntryKey, temporalAuthoringPresets, temporalCodecPreset, temporalPhaseTemplate, validateAuthoringHelperArguments, validateAuthoringTypeParams };\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,iBAA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","names":[],"sources":["../../../../1-framework/1-core/config/dist/config-types.d.mts"],"mappings":";;;;;;;;;;UAMU;WACC;WACA;WACA;;UAED;WACC,OAAO;WACP,KAAK;;UAEN;WACC;WACA;WACA;WACA,OAAO;;WAEP;;;;;;WAMA,OAAO,SAAS;;UAEjB;WACC;WACA,sBAAsB;WACtB,OAAO;;UAER;WACC;;WAEA,4BAA4B,oBAAoB;WAChD,wBAAwB;WACxB,aAAa;;WAEb,gBAAgB;WAChB,yBAAyB;;;;;;;WAOzB;WACA,cAAc;;;;WAId,iBAAiB,YAAY;WAC7B;aACE;aACA;;;;;;;;KAQR;UACK;;;;;;WAMC;WACA,OAAO,SAAS,0BAA0B,QAAQ,OAAO,UAAU;;;KAGzE;;UAEK;;WAEC,UAAU;;UAEX,kCAAkC;WACjC;WACA,gBAAgB;;UAEjB,yCAAyC;WACxC;;KAEN,yBAAyB,4BAA4B;;;;;;UAMhD;;;;;WAKC,QAAQ;;;;;;;WAOR;;UAED;WACC;WACA;;;;;;;cAOG;iBACG,wBAAwB,UAAU,iBAAiB;WACzD;;;;;;;;;;UAUD,iBAAiB,mCAAmC,mCAAmC;WACtF,QAAQ,wBAAwB;WAChC,QAAQ,wBAAwB,WAAW;WAC3C,SAAS,yBAAyB,WAAW;WAC7C,sBAAsB,2BAA2B,WAAW;;;;;;;WAO5D,SAAS,wBAAwB,WAAW,WAAW,sBAAsB,WAAW,YAAY;;;;;WAKpG;;;;;;aAME,aAAa;;;;;;WAMf,WAAW;;;;WAIX;;aAEE;;WAEF,YAAY;;;;;;;WAOZ;;;;;;;;;;;;;;;iBAeM,aAAa,mCAAmC,mCAAmC,QAAQ,iBAAiB,WAAW,aAAa,iBAAiB,WAAW;;;;;;;;iBAQhK,0BAA0B"}
|