@prisma-next/framework-components 0.5.0-dev.51 → 0.5.0-dev.53
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.d.mts +2 -2
- package/dist/authoring.mjs +2 -121
- package/dist/{codec-types-CB0jWeHU.d.mts → codec-types-MWvfFmu1.d.mts} +1 -1
- package/dist/{codec-types-CB0jWeHU.d.mts.map → codec-types-MWvfFmu1.d.mts.map} +1 -1
- package/dist/codec.d.mts +1 -1
- package/dist/components.d.mts +3 -1
- package/dist/control.d.mts +6 -6
- package/dist/control.d.mts.map +1 -1
- package/dist/control.mjs +9 -30
- package/dist/control.mjs.map +1 -1
- package/dist/{emission-types-D6t3_a0x.d.mts → emission-types-DzNgwiFC.d.mts} +2 -2
- package/dist/{emission-types-D6t3_a0x.d.mts.map → emission-types-DzNgwiFC.d.mts.map} +1 -1
- package/dist/emission.d.mts +2 -2
- package/dist/execution.d.mts +3 -1
- package/dist/execution.d.mts.map +1 -1
- package/dist/{framework-authoring-BdrFDx4x.d.mts → framework-authoring-DJbiXhmf.d.mts} +40 -11
- package/dist/framework-authoring-DJbiXhmf.d.mts.map +1 -0
- package/dist/framework-authoring-gi_BJlNO.mjs +206 -0
- package/dist/framework-authoring-gi_BJlNO.mjs.map +1 -0
- package/dist/{framework-components-AHI6V96G.d.mts → framework-components-BvzjH6Pt.d.mts} +22 -6
- package/dist/framework-components-BvzjH6Pt.d.mts.map +1 -0
- package/dist/{psl-ast-9X5rwo98.d.mts → psl-ast-BlDveJZ4.d.mts} +1 -1
- package/dist/{psl-ast-9X5rwo98.d.mts.map → psl-ast-BlDveJZ4.d.mts.map} +1 -1
- package/dist/psl-ast.d.mts +1 -1
- package/dist/runtime.d.mts +1 -1
- package/dist/{types-import-spec-D-O6GotH.d.mts → types-import-spec-CPhrNJIV.d.mts} +1 -1
- package/dist/types-import-spec-CPhrNJIV.d.mts.map +1 -0
- package/package.json +4 -4
- package/src/control/control-stack.ts +14 -70
- package/src/exports/authoring.ts +3 -0
- package/src/shared/framework-authoring.ts +202 -23
- package/src/shared/mutation-default-types.ts +22 -2
- package/dist/authoring.mjs.map +0 -1
- package/dist/framework-authoring-BdrFDx4x.d.mts.map +0 -1
- package/dist/framework-components-AHI6V96G.d.mts.map +0 -1
- package/dist/types-import-spec-D-O6GotH.d.mts.map +0 -1
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ColumnDefault,
|
|
3
|
+
ExecutionMutationDefaultPhases,
|
|
4
|
+
ExecutionMutationDefaultValue,
|
|
5
|
+
} from '@prisma-next/contract/types';
|
|
6
|
+
import {
|
|
7
|
+
isColumnDefaultLiteralInputValue,
|
|
8
|
+
isExecutionMutationDefaultValue,
|
|
9
|
+
} from '@prisma-next/contract/types';
|
|
1
10
|
import { ifDefined } from '@prisma-next/utils/defined';
|
|
2
11
|
|
|
3
12
|
export type AuthoringArgRef = {
|
|
@@ -63,10 +72,15 @@ export type AuthoringColumnDefaultTemplate =
|
|
|
63
72
|
| AuthoringColumnDefaultTemplateLiteral
|
|
64
73
|
| AuthoringColumnDefaultTemplateFunction;
|
|
65
74
|
|
|
75
|
+
export interface AuthoringExecutionDefaultsTemplate {
|
|
76
|
+
readonly onCreate?: AuthoringTemplateValue;
|
|
77
|
+
readonly onUpdate?: AuthoringTemplateValue;
|
|
78
|
+
}
|
|
79
|
+
|
|
66
80
|
export interface AuthoringFieldPresetOutput extends AuthoringStorageTypeTemplate {
|
|
67
81
|
readonly nullable?: boolean;
|
|
68
82
|
readonly default?: AuthoringColumnDefaultTemplate;
|
|
69
|
-
readonly
|
|
83
|
+
readonly executionDefaults?: AuthoringExecutionDefaultsTemplate;
|
|
70
84
|
readonly id?: boolean;
|
|
71
85
|
readonly unique?: boolean;
|
|
72
86
|
}
|
|
@@ -132,6 +146,148 @@ export function isAuthoringFieldPresetDescriptor(
|
|
|
132
146
|
);
|
|
133
147
|
}
|
|
134
148
|
|
|
149
|
+
/**
|
|
150
|
+
* Returns true when `namespace` is a non-leaf key in `contributions.field`.
|
|
151
|
+
*
|
|
152
|
+
* `AuthoringFieldNamespace` permits a leaf descriptor at any depth — including
|
|
153
|
+
* the root — so a top-level `field: { Foo: { kind: 'fieldPreset', ... } }`
|
|
154
|
+
* registration must NOT be treated as a "namespace" with sub-paths. Callers
|
|
155
|
+
* use this predicate to gate dot-namespaced lookups (e.g. PSL `@Foo.bar`).
|
|
156
|
+
*/
|
|
157
|
+
export function hasRegisteredFieldNamespace(
|
|
158
|
+
contributions: AuthoringContributions | undefined,
|
|
159
|
+
namespace: string,
|
|
160
|
+
): boolean {
|
|
161
|
+
if (contributions?.field === undefined || !Object.hasOwn(contributions.field, namespace)) {
|
|
162
|
+
return false;
|
|
163
|
+
}
|
|
164
|
+
return !isAuthoringFieldPresetDescriptor(contributions.field[namespace]);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
function isPlainNamespaceObject(value: unknown): value is Record<string, unknown> {
|
|
168
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Merges `source` into `target` recursively at the descriptor-namespace
|
|
173
|
+
* level. `leafGuard` decides which values are descriptors (terminal
|
|
174
|
+
* merge points; same-path registrations across components are reported
|
|
175
|
+
* as duplicates) versus sub-namespaces (recursion targets).
|
|
176
|
+
*
|
|
177
|
+
* Path segments are validated against prototype-pollution names
|
|
178
|
+
* (`__proto__`, `constructor`, `prototype`). A value that is neither a
|
|
179
|
+
* recognized leaf nor a plain object — e.g. a malformed descriptor
|
|
180
|
+
* where the canonical leaf guard rejected it for missing `output` —
|
|
181
|
+
* is reported as an invalid contribution rather than recursed into,
|
|
182
|
+
* which would either silently mangle state or infinite-loop on
|
|
183
|
+
* primitive properties.
|
|
184
|
+
*
|
|
185
|
+
* Within-registry duplicate detection is this walker's job;
|
|
186
|
+
* cross-registry detection runs separately via
|
|
187
|
+
* `assertNoCrossRegistryCollisions` after merging completes.
|
|
188
|
+
*/
|
|
189
|
+
export function mergeAuthoringNamespaces(
|
|
190
|
+
target: Record<string, unknown>,
|
|
191
|
+
source: Record<string, unknown>,
|
|
192
|
+
path: readonly string[],
|
|
193
|
+
leafGuard: (value: unknown) => boolean,
|
|
194
|
+
label: string,
|
|
195
|
+
): void {
|
|
196
|
+
const assertSafePath = (currentPath: readonly string[]) => {
|
|
197
|
+
const blockedSegment = currentPath.find(
|
|
198
|
+
(segment) => segment === '__proto__' || segment === 'constructor' || segment === 'prototype',
|
|
199
|
+
);
|
|
200
|
+
if (blockedSegment) {
|
|
201
|
+
throw new Error(
|
|
202
|
+
`Invalid authoring ${label} helper "${currentPath.join('.')}". Helper path segments must not use "${blockedSegment}".`,
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
|
|
207
|
+
for (const [key, sourceValue] of Object.entries(source)) {
|
|
208
|
+
const currentPath = [...path, key];
|
|
209
|
+
assertSafePath(currentPath);
|
|
210
|
+
const hasExistingValue = Object.hasOwn(target, key);
|
|
211
|
+
const existingValue = hasExistingValue ? target[key] : undefined;
|
|
212
|
+
|
|
213
|
+
if (!hasExistingValue) {
|
|
214
|
+
target[key] = sourceValue;
|
|
215
|
+
continue;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
const existingIsLeaf = leafGuard(existingValue);
|
|
219
|
+
const sourceIsLeaf = leafGuard(sourceValue);
|
|
220
|
+
|
|
221
|
+
if (existingIsLeaf || sourceIsLeaf) {
|
|
222
|
+
throw new Error(
|
|
223
|
+
`Duplicate authoring ${label} helper "${currentPath.join('.')}". Helper names must be unique across composed packs.`,
|
|
224
|
+
);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
if (!isPlainNamespaceObject(existingValue) || !isPlainNamespaceObject(sourceValue)) {
|
|
228
|
+
throw new Error(
|
|
229
|
+
`Invalid authoring ${label} helper "${currentPath.join('.')}". Expected a sub-namespace object or a recognized descriptor; received a malformed value.`,
|
|
230
|
+
);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
mergeAuthoringNamespaces(existingValue, sourceValue, currentPath, leafGuard, label);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
function collectAuthoringLeafPaths(
|
|
238
|
+
namespace: Readonly<Record<string, unknown>>,
|
|
239
|
+
isLeaf: (value: unknown) => boolean,
|
|
240
|
+
path: readonly string[] = [],
|
|
241
|
+
): string[] {
|
|
242
|
+
const paths: string[] = [];
|
|
243
|
+
for (const [key, value] of Object.entries(namespace)) {
|
|
244
|
+
const currentPath = [...path, key];
|
|
245
|
+
if (isLeaf(value)) {
|
|
246
|
+
paths.push(currentPath.join('.'));
|
|
247
|
+
continue;
|
|
248
|
+
}
|
|
249
|
+
if (typeof value === 'object' && value !== null && !Array.isArray(value)) {
|
|
250
|
+
paths.push(
|
|
251
|
+
...collectAuthoringLeafPaths(
|
|
252
|
+
value as Readonly<Record<string, unknown>>,
|
|
253
|
+
isLeaf,
|
|
254
|
+
currentPath,
|
|
255
|
+
),
|
|
256
|
+
);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
return paths;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
export function assertNoCrossRegistryCollisions(
|
|
263
|
+
typeNamespace: AuthoringTypeNamespace,
|
|
264
|
+
fieldNamespace: AuthoringFieldNamespace,
|
|
265
|
+
): void {
|
|
266
|
+
const typePaths = new Set(
|
|
267
|
+
collectAuthoringLeafPaths(typeNamespace, isAuthoringTypeConstructorDescriptor),
|
|
268
|
+
);
|
|
269
|
+
// Within-registry duplicate detection is handled upstream by the merge
|
|
270
|
+
// walker (`mergeAuthoringNamespaces` in control-stack.ts and
|
|
271
|
+
// `mergeHelperNamespaces` in composed-authoring-helpers.ts), which throws
|
|
272
|
+
// on same-path registrations within either registry before this check
|
|
273
|
+
// runs. This function only handles the cross-registry case — and an
|
|
274
|
+
// empty type namespace makes a cross-registry collision structurally
|
|
275
|
+
// impossible, so the early-out is sound.
|
|
276
|
+
if (typePaths.size === 0) {
|
|
277
|
+
return;
|
|
278
|
+
}
|
|
279
|
+
for (const fieldPath of collectAuthoringLeafPaths(
|
|
280
|
+
fieldNamespace,
|
|
281
|
+
isAuthoringFieldPresetDescriptor,
|
|
282
|
+
)) {
|
|
283
|
+
if (typePaths.has(fieldPath)) {
|
|
284
|
+
throw new Error(
|
|
285
|
+
`Ambiguous authoring registry path "${fieldPath}". The same path is registered as both a type constructor and a field preset; PSL resolution would be ambiguous. Register each path in only one of authoringContributions.field / authoringContributions.type.`,
|
|
286
|
+
);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
135
291
|
export function resolveAuthoringTemplateValue(
|
|
136
292
|
template: AuthoringTemplateValue,
|
|
137
293
|
args: readonly unknown[],
|
|
@@ -295,20 +451,17 @@ function resolveAuthoringStorageTypeTemplate(
|
|
|
295
451
|
function resolveAuthoringColumnDefaultTemplate(
|
|
296
452
|
template: AuthoringColumnDefaultTemplate,
|
|
297
453
|
args: readonly unknown[],
|
|
298
|
-
):
|
|
299
|
-
| {
|
|
300
|
-
readonly kind: 'literal';
|
|
301
|
-
readonly value: unknown;
|
|
302
|
-
}
|
|
303
|
-
| {
|
|
304
|
-
readonly kind: 'function';
|
|
305
|
-
readonly expression: string;
|
|
306
|
-
} {
|
|
454
|
+
): ColumnDefault {
|
|
307
455
|
if (template.kind === 'literal') {
|
|
308
456
|
const value = resolveAuthoringTemplateValue(template.value, args);
|
|
309
457
|
if (value === undefined) {
|
|
310
458
|
throw new Error('Resolved authoring literal default must not be undefined');
|
|
311
459
|
}
|
|
460
|
+
if (!isColumnDefaultLiteralInputValue(value)) {
|
|
461
|
+
throw new Error(
|
|
462
|
+
`Resolved authoring literal default must be a JSON-serializable value or Date, received ${String(value)}`,
|
|
463
|
+
);
|
|
464
|
+
}
|
|
312
465
|
return {
|
|
313
466
|
kind: 'literal',
|
|
314
467
|
value,
|
|
@@ -327,6 +480,40 @@ function resolveAuthoringColumnDefaultTemplate(
|
|
|
327
480
|
};
|
|
328
481
|
}
|
|
329
482
|
|
|
483
|
+
function resolveExecutionMutationDefaultPhase(
|
|
484
|
+
phase: 'onCreate' | 'onUpdate',
|
|
485
|
+
template: AuthoringTemplateValue,
|
|
486
|
+
args: readonly unknown[],
|
|
487
|
+
): ExecutionMutationDefaultValue {
|
|
488
|
+
const value = resolveAuthoringTemplateValue(template, args);
|
|
489
|
+
if (!isExecutionMutationDefaultValue(value)) {
|
|
490
|
+
throw new Error(
|
|
491
|
+
`Authoring preset executionDefaults.${phase} did not resolve to a valid generator descriptor (kind: 'generator', id: string).`,
|
|
492
|
+
);
|
|
493
|
+
}
|
|
494
|
+
return value;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
function resolveAuthoringExecutionDefaultsTemplate(
|
|
498
|
+
template: AuthoringExecutionDefaultsTemplate,
|
|
499
|
+
args: readonly unknown[],
|
|
500
|
+
): ExecutionMutationDefaultPhases {
|
|
501
|
+
return {
|
|
502
|
+
...ifDefined(
|
|
503
|
+
'onCreate',
|
|
504
|
+
template.onCreate !== undefined
|
|
505
|
+
? resolveExecutionMutationDefaultPhase('onCreate', template.onCreate, args)
|
|
506
|
+
: undefined,
|
|
507
|
+
),
|
|
508
|
+
...ifDefined(
|
|
509
|
+
'onUpdate',
|
|
510
|
+
template.onUpdate !== undefined
|
|
511
|
+
? resolveExecutionMutationDefaultPhase('onUpdate', template.onUpdate, args)
|
|
512
|
+
: undefined,
|
|
513
|
+
),
|
|
514
|
+
};
|
|
515
|
+
}
|
|
516
|
+
|
|
330
517
|
export function instantiateAuthoringTypeConstructor(
|
|
331
518
|
descriptor: AuthoringTypeConstructorDescriptor,
|
|
332
519
|
args: readonly unknown[],
|
|
@@ -348,16 +535,8 @@ export function instantiateAuthoringFieldPreset(
|
|
|
348
535
|
readonly typeParams?: Record<string, unknown>;
|
|
349
536
|
};
|
|
350
537
|
readonly nullable: boolean;
|
|
351
|
-
readonly default?:
|
|
352
|
-
|
|
353
|
-
readonly kind: 'literal';
|
|
354
|
-
readonly value: unknown;
|
|
355
|
-
}
|
|
356
|
-
| {
|
|
357
|
-
readonly kind: 'function';
|
|
358
|
-
readonly expression: string;
|
|
359
|
-
};
|
|
360
|
-
readonly executionDefault?: unknown;
|
|
538
|
+
readonly default?: ColumnDefault;
|
|
539
|
+
readonly executionDefaults?: ExecutionMutationDefaultPhases;
|
|
361
540
|
readonly id: boolean;
|
|
362
541
|
readonly unique: boolean;
|
|
363
542
|
} {
|
|
@@ -371,9 +550,9 @@ export function instantiateAuthoringFieldPreset(
|
|
|
371
550
|
: undefined,
|
|
372
551
|
),
|
|
373
552
|
...ifDefined(
|
|
374
|
-
'
|
|
375
|
-
descriptor.output.
|
|
376
|
-
?
|
|
553
|
+
'executionDefaults',
|
|
554
|
+
descriptor.output.executionDefaults !== undefined
|
|
555
|
+
? resolveAuthoringExecutionDefaultsTemplate(descriptor.output.executionDefaults, args)
|
|
377
556
|
: undefined,
|
|
378
557
|
),
|
|
379
558
|
id: descriptor.output.id ?? false,
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type {
|
|
2
|
+
ColumnDefault,
|
|
3
|
+
ExecutionMutationDefaultPhases,
|
|
4
|
+
ExecutionMutationDefaultValue,
|
|
5
|
+
} from '@prisma-next/contract/types';
|
|
2
6
|
|
|
3
7
|
interface SourcePosition {
|
|
4
8
|
readonly offset: number;
|
|
@@ -60,7 +64,16 @@ export type DefaultFunctionRegistry = ReadonlyMap<string, DefaultFunctionRegistr
|
|
|
60
64
|
|
|
61
65
|
export interface MutationDefaultGeneratorDescriptor {
|
|
62
66
|
readonly id: string;
|
|
63
|
-
|
|
67
|
+
/**
|
|
68
|
+
* Codec ids the generator is compatible with when the codec choice
|
|
69
|
+
* and the generator choice are made independently by the contract
|
|
70
|
+
* author. Set when the registry-coherence check is meaningful
|
|
71
|
+
* (the codec and the generator can be paired arbitrarily by the
|
|
72
|
+
* caller); omitted when the generator is only reachable through a
|
|
73
|
+
* descriptor that co-registers a fixed codec, so coherence is
|
|
74
|
+
* structural and the list would be tautological.
|
|
75
|
+
*/
|
|
76
|
+
readonly applicableCodecIds?: readonly string[];
|
|
64
77
|
readonly resolveGeneratedColumnDescriptor?: (input: {
|
|
65
78
|
readonly generated: ExecutionMutationDefaultValue;
|
|
66
79
|
}) =>
|
|
@@ -71,6 +84,13 @@ export interface MutationDefaultGeneratorDescriptor {
|
|
|
71
84
|
readonly typeParams?: Record<string, unknown>;
|
|
72
85
|
}
|
|
73
86
|
| undefined;
|
|
87
|
+
/**
|
|
88
|
+
* Construct the `onCreate`/`onUpdate` phases value owned by this
|
|
89
|
+
* generator. Authoring layers (PSL `temporal.updatedAt()`, TS field presets) call
|
|
90
|
+
* this instead of building the literal inline so PSL/TS-authored
|
|
91
|
+
* contracts stay byte-equivalent for any future params-bearing generator.
|
|
92
|
+
*/
|
|
93
|
+
readonly buildPhases?: (args?: Record<string, unknown>) => ExecutionMutationDefaultPhases;
|
|
74
94
|
}
|
|
75
95
|
|
|
76
96
|
export interface ControlMutationDefaultEntry {
|
package/dist/authoring.mjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"authoring.mjs","names":["resolved: Record<string, unknown>"],"sources":["../src/shared/framework-authoring.ts"],"sourcesContent":["import { ifDefined } from '@prisma-next/utils/defined';\n\nexport type AuthoringArgRef = {\n readonly kind: 'arg';\n readonly index: number;\n readonly path?: readonly string[];\n readonly default?: AuthoringTemplateValue;\n};\n\nexport type AuthoringTemplateValue =\n | string\n | number\n | boolean\n | null\n | AuthoringArgRef\n | readonly AuthoringTemplateValue[]\n | { readonly [key: string]: AuthoringTemplateValue };\n\ninterface AuthoringArgumentDescriptorCommon {\n readonly name?: string;\n readonly optional?: boolean;\n}\n\nexport type AuthoringArgumentDescriptor = AuthoringArgumentDescriptorCommon &\n (\n | { readonly kind: 'string' }\n | {\n readonly kind: 'number';\n readonly integer?: boolean;\n readonly minimum?: number;\n readonly maximum?: number;\n }\n | { readonly kind: 'stringArray' }\n | {\n readonly kind: 'object';\n readonly properties: Record<string, AuthoringArgumentDescriptor>;\n }\n );\n\nexport interface AuthoringStorageTypeTemplate {\n readonly codecId: string;\n readonly nativeType: AuthoringTemplateValue;\n readonly typeParams?: Record<string, AuthoringTemplateValue>;\n}\n\nexport interface AuthoringTypeConstructorDescriptor {\n readonly kind: 'typeConstructor';\n readonly args?: readonly AuthoringArgumentDescriptor[];\n readonly output: AuthoringStorageTypeTemplate;\n}\n\nexport interface AuthoringColumnDefaultTemplateLiteral {\n readonly kind: 'literal';\n readonly value: AuthoringTemplateValue;\n}\n\nexport interface AuthoringColumnDefaultTemplateFunction {\n readonly kind: 'function';\n readonly expression: AuthoringTemplateValue;\n}\n\nexport type AuthoringColumnDefaultTemplate =\n | AuthoringColumnDefaultTemplateLiteral\n | AuthoringColumnDefaultTemplateFunction;\n\nexport interface AuthoringFieldPresetOutput extends AuthoringStorageTypeTemplate {\n readonly nullable?: boolean;\n readonly default?: AuthoringColumnDefaultTemplate;\n readonly executionDefault?: AuthoringTemplateValue;\n readonly id?: boolean;\n readonly unique?: boolean;\n}\n\nexport interface AuthoringFieldPresetDescriptor {\n readonly kind: 'fieldPreset';\n readonly args?: readonly AuthoringArgumentDescriptor[];\n readonly output: AuthoringFieldPresetOutput;\n}\n\nexport type AuthoringTypeNamespace = {\n readonly [name: string]: AuthoringTypeConstructorDescriptor | AuthoringTypeNamespace;\n};\n\nexport type AuthoringFieldNamespace = {\n readonly [name: string]: AuthoringFieldPresetDescriptor | AuthoringFieldNamespace;\n};\n\nexport interface AuthoringContributions {\n readonly type?: AuthoringTypeNamespace;\n readonly field?: AuthoringFieldNamespace;\n}\n\nexport function isAuthoringArgRef(value: unknown): value is AuthoringArgRef {\n if (typeof value !== 'object' || value === null || (value as { kind?: unknown }).kind !== 'arg') {\n return false;\n }\n const { index, path } = value as { index?: unknown; path?: unknown };\n if (typeof index !== 'number' || !Number.isInteger(index) || index < 0) {\n return false;\n }\n if (path !== undefined && (!Array.isArray(path) || path.some((s) => typeof s !== 'string'))) {\n return false;\n }\n return true;\n}\n\nfunction isAuthoringTemplateRecord(value: unknown): value is Record<string, unknown> {\n return typeof value === 'object' && value !== null && !Array.isArray(value);\n}\n\nexport function isAuthoringTypeConstructorDescriptor(\n value: unknown,\n): value is AuthoringTypeConstructorDescriptor {\n return (\n typeof value === 'object' &&\n value !== null &&\n (value as { kind?: unknown }).kind === 'typeConstructor' &&\n typeof (value as { output?: unknown }).output === 'object' &&\n (value as { output?: unknown }).output !== null\n );\n}\n\nexport function isAuthoringFieldPresetDescriptor(\n value: unknown,\n): value is AuthoringFieldPresetDescriptor {\n return (\n typeof value === 'object' &&\n value !== null &&\n (value as { kind?: unknown }).kind === 'fieldPreset' &&\n typeof (value as { output?: unknown }).output === 'object' &&\n (value as { output?: unknown }).output !== null\n );\n}\n\nexport function resolveAuthoringTemplateValue(\n template: AuthoringTemplateValue,\n args: readonly unknown[],\n): unknown {\n if (isAuthoringArgRef(template)) {\n let value = args[template.index];\n\n for (const segment of template.path ?? []) {\n if (!isAuthoringTemplateRecord(value) || !Object.hasOwn(value, segment)) {\n value = undefined;\n break;\n }\n value = (value as Record<string, unknown>)[segment];\n }\n\n if (value === undefined && template.default !== undefined) {\n return resolveAuthoringTemplateValue(template.default, args);\n }\n\n return value;\n }\n if (Array.isArray(template)) {\n return template.map((value) => resolveAuthoringTemplateValue(value, args));\n }\n if (typeof template === 'object' && template !== null) {\n const resolved: Record<string, unknown> = {};\n for (const [key, value] of Object.entries(template)) {\n const resolvedValue = resolveAuthoringTemplateValue(value, args);\n if (resolvedValue !== undefined) {\n resolved[key] = resolvedValue;\n }\n }\n return resolved;\n }\n return template;\n}\n\nfunction validateAuthoringArgument(\n descriptor: AuthoringArgumentDescriptor,\n value: unknown,\n path: string,\n): void {\n if (value === undefined) {\n if (descriptor.optional) {\n return;\n }\n throw new Error(`Missing required authoring helper argument at ${path}`);\n }\n\n if (descriptor.kind === 'string') {\n if (typeof value !== 'string') {\n throw new Error(`Authoring helper argument at ${path} must be a string`);\n }\n return;\n }\n\n if (descriptor.kind === 'stringArray') {\n if (!Array.isArray(value)) {\n throw new Error(`Authoring helper argument at ${path} must be an array of strings`);\n }\n for (const entry of value) {\n if (typeof entry !== 'string') {\n throw new Error(`Authoring helper argument at ${path} must be an array of strings`);\n }\n }\n return;\n }\n\n if (descriptor.kind === 'object') {\n if (typeof value !== 'object' || value === null || Array.isArray(value)) {\n throw new Error(`Authoring helper argument at ${path} must be an object`);\n }\n\n const input = value as Record<string, unknown>;\n const expectedKeys = new Set(Object.keys(descriptor.properties));\n\n for (const key of Object.keys(input)) {\n if (!expectedKeys.has(key)) {\n throw new Error(`Authoring helper argument at ${path} contains unknown property \"${key}\"`);\n }\n }\n\n for (const [key, propertyDescriptor] of Object.entries(descriptor.properties)) {\n validateAuthoringArgument(propertyDescriptor, input[key], `${path}.${key}`);\n }\n\n return;\n }\n\n if (typeof value !== 'number' || Number.isNaN(value)) {\n throw new Error(`Authoring helper argument at ${path} must be a number`);\n }\n\n if (descriptor.integer && !Number.isInteger(value)) {\n throw new Error(`Authoring helper argument at ${path} must be an integer`);\n }\n if (descriptor.minimum !== undefined && value < descriptor.minimum) {\n throw new Error(\n `Authoring helper argument at ${path} must be >= ${descriptor.minimum}, received ${value}`,\n );\n }\n if (descriptor.maximum !== undefined && value > descriptor.maximum) {\n throw new Error(\n `Authoring helper argument at ${path} must be <= ${descriptor.maximum}, received ${value}`,\n );\n }\n}\n\nexport function validateAuthoringHelperArguments(\n helperPath: string,\n descriptors: readonly AuthoringArgumentDescriptor[] | undefined,\n args: readonly unknown[],\n): void {\n const expected = descriptors ?? [];\n const minimumArgs = expected.reduce(\n (count, descriptor, index) => (descriptor.optional ? count : index + 1),\n 0,\n );\n if (args.length < minimumArgs || args.length > expected.length) {\n throw new Error(\n `${helperPath} expects ${minimumArgs === expected.length ? expected.length : `${minimumArgs}-${expected.length}`} argument(s), received ${args.length}`,\n );\n }\n\n expected.forEach((descriptor, index) => {\n validateAuthoringArgument(descriptor, args[index], `${helperPath}[${index}]`);\n });\n}\n\nfunction resolveAuthoringStorageTypeTemplate(\n template: AuthoringStorageTypeTemplate,\n args: readonly unknown[],\n): {\n readonly codecId: string;\n readonly nativeType: string;\n readonly typeParams?: Record<string, unknown>;\n} {\n const nativeType = resolveAuthoringTemplateValue(template.nativeType, args);\n if (typeof nativeType !== 'string') {\n throw new Error(\n `Resolved authoring nativeType must be a string for codec \"${template.codecId}\", received ${String(nativeType)}`,\n );\n }\n const typeParams =\n template.typeParams === undefined\n ? undefined\n : resolveAuthoringTemplateValue(template.typeParams, args);\n if (typeParams !== undefined && !isAuthoringTemplateRecord(typeParams)) {\n throw new Error(\n `Resolved authoring typeParams must be an object for codec \"${template.codecId}\", received ${String(typeParams)}`,\n );\n }\n\n return {\n codecId: template.codecId,\n nativeType,\n ...(typeParams === undefined ? {} : { typeParams }),\n };\n}\n\nfunction resolveAuthoringColumnDefaultTemplate(\n template: AuthoringColumnDefaultTemplate,\n args: readonly unknown[],\n):\n | {\n readonly kind: 'literal';\n readonly value: unknown;\n }\n | {\n readonly kind: 'function';\n readonly expression: string;\n } {\n if (template.kind === 'literal') {\n const value = resolveAuthoringTemplateValue(template.value, args);\n if (value === undefined) {\n throw new Error('Resolved authoring literal default must not be undefined');\n }\n return {\n kind: 'literal',\n value,\n };\n }\n\n const expression = resolveAuthoringTemplateValue(template.expression, args);\n if (expression === undefined || (typeof expression === 'object' && expression !== null)) {\n throw new Error(\n `Resolved authoring function default expression must resolve to a primitive, received ${String(expression)}`,\n );\n }\n return {\n kind: 'function',\n expression: String(expression),\n };\n}\n\nexport function instantiateAuthoringTypeConstructor(\n descriptor: AuthoringTypeConstructorDescriptor,\n args: readonly unknown[],\n): {\n readonly codecId: string;\n readonly nativeType: string;\n readonly typeParams?: Record<string, unknown>;\n} {\n return resolveAuthoringStorageTypeTemplate(descriptor.output, args);\n}\n\nexport function instantiateAuthoringFieldPreset(\n descriptor: AuthoringFieldPresetDescriptor,\n args: readonly unknown[],\n): {\n readonly descriptor: {\n readonly codecId: string;\n readonly nativeType: string;\n readonly typeParams?: Record<string, unknown>;\n };\n readonly nullable: boolean;\n readonly default?:\n | {\n readonly kind: 'literal';\n readonly value: unknown;\n }\n | {\n readonly kind: 'function';\n readonly expression: string;\n };\n readonly executionDefault?: unknown;\n readonly id: boolean;\n readonly unique: boolean;\n} {\n return {\n descriptor: resolveAuthoringStorageTypeTemplate(descriptor.output, args),\n nullable: descriptor.output.nullable ?? false,\n ...ifDefined(\n 'default',\n descriptor.output.default !== undefined\n ? resolveAuthoringColumnDefaultTemplate(descriptor.output.default, args)\n : undefined,\n ),\n ...ifDefined(\n 'executionDefault',\n descriptor.output.executionDefault !== undefined\n ? resolveAuthoringTemplateValue(descriptor.output.executionDefault, args)\n : undefined,\n ),\n id: descriptor.output.id ?? false,\n unique: descriptor.output.unique ?? false,\n };\n}\n"],"mappings":";;;AA4FA,SAAgB,kBAAkB,OAA0C;AAC1E,KAAI,OAAO,UAAU,YAAY,UAAU,QAAS,MAA6B,SAAS,MACxF,QAAO;CAET,MAAM,EAAE,OAAO,SAAS;AACxB,KAAI,OAAO,UAAU,YAAY,CAAC,OAAO,UAAU,MAAM,IAAI,QAAQ,EACnE,QAAO;AAET,KAAI,SAAS,WAAc,CAAC,MAAM,QAAQ,KAAK,IAAI,KAAK,MAAM,MAAM,OAAO,MAAM,SAAS,EACxF,QAAO;AAET,QAAO;;AAGT,SAAS,0BAA0B,OAAkD;AACnF,QAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,CAAC,MAAM,QAAQ,MAAM;;AAG7E,SAAgB,qCACd,OAC6C;AAC7C,QACE,OAAO,UAAU,YACjB,UAAU,QACT,MAA6B,SAAS,qBACvC,OAAQ,MAA+B,WAAW,YACjD,MAA+B,WAAW;;AAI/C,SAAgB,iCACd,OACyC;AACzC,QACE,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zCI,sBA0CZ,CAAA;AAG3B;AAKgB,UA/CC,kCAAA,CA+C2C;EAkB5C,SAAA,IAAA,EAAA,iBAAA;EAYA,SAAA,IAAA,CAAA,EAAA,SA3EW,2BA6Ef,EAAA;EAUI,SAAA,MAAA,EAtFG,4BAuFP;AA2GZ;AAuFgB,UAtRC,qCAAA,CAuRH;EAUE,SAAA,IAAA,EAAA,SAAA;kBA/RE;;UAGD,sCAAA;;uBAEM;;KAGX,8BAAA,GACR,wCACA;UAEa,0BAAA,SAAmC;;qBAE/B;8BACS;;;;UAKb,8BAAA;;2BAEU;mBACR;;KAGP,sBAAA;2BACe,qCAAqC;;KAGpD,uBAAA;2BACe,iCAAiC;;UAG3C,sBAAA;kBACC;mBACC;;iBAGH,iBAAA,2BAA4C;iBAkB5C,oCAAA,2BAEJ;iBAUI,gCAAA,2BAEJ;iBAUI,6BAAA,WACJ;iBA2GI,gCAAA,2CAEQ;iBAqFR,mCAAA,aACF;;;wBAKU;;iBAKR,+BAAA,aACF;;;;0BAMY"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"framework-components-AHI6V96G.d.mts","names":[],"sources":["../src/shared/mutation-default-types.ts","../src/shared/framework-components.ts"],"sourcesContent":[],"mappings":";;;;;;UAEU,cAAA;;;;;AAAA,UAMO,UAAA,CANO;EAMP,SAAA,KAAU,EACT,cAAA;EAID,SAAA,GAAA,EAHD,cAGiB;;AAKN,UALV,gBAAA,CAKU;EAAT,SAAA,IAAA,EAAA,MAAA;EAAQ,SAAA,OAAA,EAAA,MAAA;EAGhB,SAAA,QAAA,CAAA,EAAA,MAAuB;EAKhB,SAAA,IAAA,CAAA,EATC,UASD;EAOA,SAAA,IAAA,CAAA,EAfC,QAeD,CAfU,MAeV,CAAA,MAA8B,EAAA,OAAA,CAAA,CAAA;AAO/C;AAIA,UAvBU,uBAAA,CAuBsB;EAIpB,SAAA,GAAA,EAAA,MAAA;EACK,SAAA,IAAA,EA1BA,UA0BA;;AAEX,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