@almadar/core 10.56.0 → 10.58.0
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/builders.d.ts +9 -3
- package/dist/builders.js +7 -2
- package/dist/builders.js.map +1 -1
- package/dist/{effect-DxD-XTI8.d.ts → effect-BH2k4oK6.d.ts} +45 -13
- package/dist/{entityAccess-Bnz5CJ3S.d.ts → entityAccess-QAurFO7l.d.ts} +1 -1
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory-runtime/index.d.ts +50 -15
- package/dist/factory-runtime/index.js +94 -10
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/index.d.ts +9 -9
- package/dist/index.js +197 -13
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +4 -4
- package/dist/mock/index.js +1 -0
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/component-mapping.json +1 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +323 -13
- package/dist/patterns/index.js +184 -11
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/integrators-registry.json +64 -1
- package/dist/patterns/patterns-registry.json +113 -8
- package/dist/patterns/registry.json +113 -8
- package/dist/patterns/services-registry.json +146 -237
- package/dist/{schema-Nk1usPv6.d.ts → schema-Sk_irLOY.d.ts} +88 -88
- package/dist/{trait-WnYkvPdZ.d.ts → trait-Bw4nWHu1.d.ts} +20 -20
- package/dist/types/index.d.ts +7 -7
- package/dist/types/index.js +6 -2
- package/dist/types/index.js.map +1 -1
- package/dist/{types-C4YztU2N.d.ts → types-D71hY_4A.d.ts} +2 -2
- package/package.json +1 -1
package/dist/builders.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { I as IdentityLedger, A as AnyPatternConfig, U as UISlot, c as Effect, h as RenderBinding, i as RenderUIEffect, d as EntityId, e as Entity, E as EntityField, a as EntityPersistence, f as EntityRow } from './effect-
|
|
2
|
-
import { a as OrbitalDefinition, O as OrbitalSchema, U as UseDeclaration, E as EntityRef, b as ExpectDeclaration, P as PageRef, c as Page, d as PageRefObject } from './schema-
|
|
3
|
-
import { b as TraitConfig, g as Trait, T as TraitEventListener, h as CallSiteConfig, j as TraitEventContract, d as TraitRef, a as TraitReference } from './trait-
|
|
1
|
+
import { I as IdentityLedger, A as AnyPatternConfig, U as UISlot, c as Effect, h as RenderBinding, i as RenderUIEffect, d as EntityId, e as Entity, E as EntityField, a as EntityPersistence, f as EntityRow } from './effect-BH2k4oK6.js';
|
|
2
|
+
import { a as OrbitalDefinition, O as OrbitalSchema, U as UseDeclaration, E as EntityRef, b as ExpectDeclaration, P as PageRef, c as Page, d as PageRefObject } from './schema-Sk_irLOY.js';
|
|
3
|
+
import { b as TraitConfig, g as Trait, T as TraitEventListener, h as CallSiteConfig, j as TraitEventContract, d as TraitRef, a as TraitReference } from './trait-Bw4nWHu1.js';
|
|
4
4
|
import { S as SExpr } from './expression-Fk8bQWef.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
|
@@ -486,6 +486,12 @@ interface MakeOrbitalWithUsesOpts {
|
|
|
486
486
|
* compute it. Omitted from the result when not provided.
|
|
487
487
|
*/
|
|
488
488
|
expects?: ExpectDeclaration[];
|
|
489
|
+
/**
|
|
490
|
+
* Auxiliary entities (name-resolution side channel for un-rebound atom
|
|
491
|
+
* imports — see {@link OrbitalDefinition.auxiliaryEntities}). Threaded
|
|
492
|
+
* verbatim; omitted from the result when not provided.
|
|
493
|
+
*/
|
|
494
|
+
auxiliaryEntities?: EntityRef[];
|
|
489
495
|
/** Trait references. */
|
|
490
496
|
traits: TraitRef[];
|
|
491
497
|
/** Optional page references (omitted entirely when not provided). */
|
package/dist/builders.js
CHANGED
|
@@ -138,6 +138,7 @@ var EntityFieldSchema = z.lazy(() => {
|
|
|
138
138
|
const baseFieldShape = {
|
|
139
139
|
name: z.string().min(1, "Field name is required").optional(),
|
|
140
140
|
required: z.boolean().optional(),
|
|
141
|
+
primaryKey: z.boolean().optional(),
|
|
141
142
|
default: JsonValueSchema.optional(),
|
|
142
143
|
min: z.number().optional(),
|
|
143
144
|
max: z.number().optional(),
|
|
@@ -542,7 +543,10 @@ var TraitEntityFieldSchema = z.object({
|
|
|
542
543
|
"url",
|
|
543
544
|
"phone",
|
|
544
545
|
"uuid",
|
|
545
|
-
"image"
|
|
546
|
+
"image",
|
|
547
|
+
"trait",
|
|
548
|
+
"slot",
|
|
549
|
+
"pattern"
|
|
546
550
|
]),
|
|
547
551
|
required: z.boolean().optional(),
|
|
548
552
|
default: TraitConfigValueSchema.optional(),
|
|
@@ -652,7 +656,7 @@ var TraitEventListenerSchema = z.object({
|
|
|
652
656
|
});
|
|
653
657
|
var RequiredFieldSchema = z.object({
|
|
654
658
|
name: z.string().min(1),
|
|
655
|
-
type: z.enum(["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum", "email", "url", "phone", "uuid", "image"]),
|
|
659
|
+
type: z.enum(["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum", "email", "url", "phone", "uuid", "image", "trait", "slot", "pattern"]),
|
|
656
660
|
description: z.string().optional()
|
|
657
661
|
});
|
|
658
662
|
var TraitReferenceSchema = z.object({
|
|
@@ -1842,6 +1846,7 @@ function makeOrbitalWithUses(opts) {
|
|
|
1842
1846
|
uses: opts.uses,
|
|
1843
1847
|
...opts.expects !== void 0 ? { expects: opts.expects } : {},
|
|
1844
1848
|
entity: opts.entity,
|
|
1849
|
+
...opts.auxiliaryEntities !== void 0 ? { auxiliaryEntities: opts.auxiliaryEntities } : {},
|
|
1845
1850
|
traits: opts.traits,
|
|
1846
1851
|
pages: opts.pages ?? []
|
|
1847
1852
|
};
|