@almadar/core 7.18.0 → 7.19.1
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.
|
@@ -238,14 +238,6 @@ interface ParseResult<T> {
|
|
|
238
238
|
errors: ParseError[];
|
|
239
239
|
warnings: ParseError[];
|
|
240
240
|
}
|
|
241
|
-
/**
|
|
242
|
-
* Inferred role of a trait within an orbital. Driven by heuristics over
|
|
243
|
-
* the trait body (state-machine event names, AppLayout suffix, etc.)
|
|
244
|
-
* during signature extraction. Stays a closed union so the Phase 2
|
|
245
|
-
* projector can pattern-match exhaustively; `'other'` is the
|
|
246
|
-
* catch-all for traits that don't fit a known kind.
|
|
247
|
-
*/
|
|
248
|
-
type FactoryTraitKind = 'list' | 'detail' | 'modal' | 'layout' | 'wizard' | 'tabs' | 'realtime' | 'browse' | 'inspector' | 'navigation' | 'lifecycle' | 'access-control' | 'audit' | 'persistor' | 'other';
|
|
249
241
|
/**
|
|
250
242
|
* One field on a factory's canonical entity, in signature form. Mirrors
|
|
251
243
|
* the subset of `EntityField` that the projector needs to score a
|
|
@@ -267,32 +259,27 @@ interface FactoryEntitySignature {
|
|
|
267
259
|
name: string;
|
|
268
260
|
/** Fields the factory emits, post-auto-field stripping. */
|
|
269
261
|
fields: ReadonlyArray<FactorySignatureEntityField>;
|
|
270
|
-
/**
|
|
262
|
+
/** Persistence mode declared on the canonical entity in the `.orb`. */
|
|
271
263
|
persistence: EntityPersistence;
|
|
272
|
-
/** True when the factory's params accept an `entityName` override. */
|
|
273
|
-
renameable: boolean;
|
|
274
|
-
/**
|
|
275
|
-
* True when the factory's params accept appending extra fields via
|
|
276
|
-
* `params.fields[]`. Almost always true; declared explicitly so the
|
|
277
|
-
* projector can introspect.
|
|
278
|
-
*/
|
|
279
|
-
fieldsExtensible: boolean;
|
|
280
264
|
}
|
|
281
265
|
/**
|
|
282
266
|
* One trait the factory composes into the orbital. The projector reads
|
|
283
267
|
* these to determine which factory's trait stack covers a given
|
|
284
268
|
* `DomainBehavior` + which override knobs a presentation overlay can
|
|
285
|
-
* deterministically target.
|
|
269
|
+
* deterministically target. Trait identity is by `name` only; the
|
|
270
|
+
* projector matches structurally on the event / config arrays — no
|
|
271
|
+
* inferred "kind" tag.
|
|
286
272
|
*/
|
|
287
273
|
interface FactoryTraitSignature {
|
|
288
274
|
/** Canonical trait name post-rename (e.g. `"ChatMessageList"`). */
|
|
289
275
|
name: string;
|
|
290
|
-
|
|
291
|
-
|
|
276
|
+
/** Event keys this trait emits (post-rename). Read directly from
|
|
277
|
+
* the trait's `emits[].event`. */
|
|
292
278
|
emittedEvents: ReadonlyArray<string>;
|
|
293
|
-
/** Event keys this trait listens for. */
|
|
279
|
+
/** Event keys this trait listens for. Read directly from `listens[].event`. */
|
|
294
280
|
listenedEvents: ReadonlyArray<string>;
|
|
295
|
-
/** Config keys overridable via `traitOverrides.<name>.config.<key>`.
|
|
281
|
+
/** Config keys overridable via `traitOverrides.<name>.config.<key>`.
|
|
282
|
+
* Read directly from the trait's `config` declaration block. */
|
|
296
283
|
overridableConfigKeys: ReadonlyArray<string>;
|
|
297
284
|
}
|
|
298
285
|
/** One page the factory emits. The path is the factory default; the
|
|
@@ -1087,4 +1074,4 @@ declare function getRegistryStats(): {
|
|
|
1087
1074
|
*/
|
|
1088
1075
|
declare function generateDomainLanguageReference(): string;
|
|
1089
1076
|
|
|
1090
|
-
export { type ASTNode, type ComparisonCondition, type ComparisonOperator, type DomainBehavior, type DomainChunk, type DomainDocument, type DomainEffect, type DomainEntity, type DomainField, type DomainFieldDefault, type DomainFieldItems, type DomainFieldType, type DomainGuard, type DomainPage, type DomainPageAction, type DomainPageSection, type DomainRelationship, type DomainTick, type DomainToSchemaResult, type DomainTransition, EFFECT_REGISTRY, type EffectMapping, type EffectType, EntityPersistence, FIELD_TYPE_REGISTRY, type FactoryEntitySignature, type FactoryPageSignature, type FactorySignature, type FactorySignatureCatalog, type FactorySignatureEntityField, type
|
|
1077
|
+
export { type ASTNode, type ComparisonCondition, type ComparisonOperator, type DomainBehavior, type DomainChunk, type DomainDocument, type DomainEffect, type DomainEntity, type DomainField, type DomainFieldDefault, type DomainFieldItems, type DomainFieldType, type DomainGuard, type DomainPage, type DomainPageAction, type DomainPageSection, type DomainRelationship, type DomainTick, type DomainToSchemaResult, type DomainTransition, EFFECT_REGISTRY, type EffectMapping, type EffectType, EntityPersistence, FIELD_TYPE_REGISTRY, type FactoryEntitySignature, type FactoryPageSignature, type FactorySignature, type FactorySignatureCatalog, type FactorySignatureEntityField, type FactoryTraitSignature, type FieldCheckCondition, type FieldReference, type FieldTypeMapping, GUARD_REGISTRY, type GuardCondition, type GuardMapping, KEYWORDS, Lexer, type LogicalCondition, type LogicalOperator, MULTI_WORD_KEYWORDS, type MappingStore, type MergeResult, type ParseError, type ParseResult, type RelationshipType, type SchemaFieldType, type SchemaToDomainResult, type SectionMapping, type SourceLocation, type SourceRange, type Token, TokenType, TraitScope, type UserCheckCondition, applySectionUpdate, computeSchemaHash, convertDomainToSchema, convertEntitiesToDomain, convertPagesToDomain, convertSchemaToDomain, convertTraitsToDomain, createMappingStore, deleteSection, detectChanges, domainKeywordToSchemaType, findMapping, findMappingByPath, findMappingsByType, formatBehaviorToDomain, formatBehaviorToSchema, formatDomainGuardToSchema, formatEntityToDomain, formatEntityToSchema, formatGuardConditionToDomain, formatGuardToDomain, formatGuardToSchema, formatMergeSummary, formatPageToDomain, formatPageToSchema, formatSchemaEntityToDomain, formatSchemaGuardToDomain, formatSchemaPageToDomain, formatSchemaTraitToDomain, generateDomainLanguageReference, generateSectionId, getEffectMapping, getFieldTypeMapping, getGuardMapping, getRegisteredEffects, getRegisteredFieldTypes, getRegisteredGuards, getRegistryStats, getSchemaPath, hasSchemaChanged, isEffectRegistered, isFieldTypeRegistered, isGuardRegistered, mergeDomainChunks, parseBehavior, parseDomainEffect, parseDomainEffects, parseDomainGuard, parseEntity, parseGuard, parsePage, parseSectionId, removeMapping, resolveConflict, schemaEntityToDomainEntity, schemaPageToDomainPage, schemaTraitToDomainBehavior, schemaTypeToDomainKeyword, tokenize, updateMappingRange, updateSchemaHash, upsertMapping, validateDomainChunk };
|