@almadar/core 10.74.0 → 10.75.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 +3 -3
- package/dist/builders.js +10 -3
- package/dist/builders.js.map +1 -1
- package/dist/{effect-C0MRXCwF.d.ts → effect-CK1NMWES.d.ts} +4 -4
- package/dist/{entityAccess-CpfvoNOd.d.ts → entityAccess-B-de_0a8.d.ts} +14 -2
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory/index.js +6 -2
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +10 -3
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/{index-D4jODKSD.d.ts → index-CBxIR1yy.d.ts} +4 -4
- package/dist/index.d.ts +10 -10
- package/dist/index.js +17 -6
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +4 -4
- package/dist/mock/index.js +16 -2
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/index.d.ts +2 -2
- package/dist/{schema-DJY7OUOM.d.ts → schema-DlTrByoG.d.ts} +88 -88
- package/dist/{trait-D1zKrxnf.d.ts → trait-Cm9H3lHN.d.ts} +23 -22
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.js +11 -4
- package/dist/types/index.js.map +1 -1
- package/dist/{types-BdiOJCat.d.ts → types-cCAU_Z-5.d.ts} +17 -3
- 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-CK1NMWES.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-DlTrByoG.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-Cm9H3lHN.js';
|
|
4
4
|
import { S as SExpr } from './expression-Fk8bQWef.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
|
package/dist/builders.js
CHANGED
|
@@ -101,7 +101,8 @@ var FIELD_TYPES = [
|
|
|
101
101
|
"trait",
|
|
102
102
|
"slot",
|
|
103
103
|
"pattern",
|
|
104
|
-
"node"
|
|
104
|
+
"node",
|
|
105
|
+
"event"
|
|
105
106
|
];
|
|
106
107
|
z.enum(FIELD_TYPES);
|
|
107
108
|
var RelationCardinalitySchema = z.enum([
|
|
@@ -194,6 +195,7 @@ var EntityFieldSchema = z.lazy(() => {
|
|
|
194
195
|
scalarVariant("slot"),
|
|
195
196
|
scalarVariant("pattern"),
|
|
196
197
|
scalarVariant("node"),
|
|
198
|
+
scalarVariant("event"),
|
|
197
199
|
scalarVariant("money"),
|
|
198
200
|
scalarVariant("file"),
|
|
199
201
|
// Enum variant — REQUIRES non-empty values.
|
|
@@ -559,7 +561,11 @@ var TraitEntityFieldSchema = z.object({
|
|
|
559
561
|
"image",
|
|
560
562
|
"trait",
|
|
561
563
|
"slot",
|
|
562
|
-
"pattern"
|
|
564
|
+
"pattern",
|
|
565
|
+
// `node` was missing here while being a real `TraitFieldType` member
|
|
566
|
+
// — the same latent-drift trap `event` would otherwise repeat.
|
|
567
|
+
"node",
|
|
568
|
+
"event"
|
|
563
569
|
]),
|
|
564
570
|
required: z.boolean().optional(),
|
|
565
571
|
default: TraitConfigValueSchema.optional(),
|
|
@@ -669,7 +675,8 @@ var TraitEventListenerSchema = z.object({
|
|
|
669
675
|
});
|
|
670
676
|
var RequiredFieldSchema = z.object({
|
|
671
677
|
name: z.string().min(1),
|
|
672
|
-
|
|
678
|
+
// `node` was missing here too (same drift as TraitEntityFieldSchema above).
|
|
679
|
+
type: z.enum(["string", "number", "boolean", "date", "array", "object", "timestamp", "datetime", "enum", "email", "url", "phone", "uuid", "image", "trait", "slot", "pattern", "node", "event"]),
|
|
673
680
|
description: z.string().optional()
|
|
674
681
|
});
|
|
675
682
|
var TraitReferenceSchema = z.object({
|