@almadar/core 10.79.0 → 10.80.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 +11 -3
- package/dist/builders.js.map +1 -1
- package/dist/{effect-Mx_niZdY.d.ts → effect-C4uehm-r.d.ts} +1 -1
- package/dist/{entityAccess-C3_cjLNi.d.ts → entityAccess-BMKFgmsc.d.ts} +1 -1
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory/index.js +50 -164
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +11 -3
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/{index-B1N3gjT0.d.ts → index-DqUnw2Oo.d.ts} +4 -4
- package/dist/index.d.ts +10 -10
- package/dist/index.js +66 -172
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +4 -4
- package/dist/patterns/component-mapping.json +1 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +101 -219
- package/dist/patterns/index.js +53 -167
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/patterns-registry.json +51 -165
- package/dist/patterns/registry.json +51 -165
- package/dist/{schema-CkTuSx6F.d.ts → schema-Cma07_18.d.ts} +38 -38
- package/dist/{trait-B1fI0lTU.d.ts → trait-BXkQKZbO.d.ts} +32 -2
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.js +12 -4
- package/dist/types/index.js.map +1 -1
- package/dist/{types-B53Myv7U.d.ts → types-DoAKLgCZ.d.ts} +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-
|
|
2
|
-
import { i as CallSiteConfig, j as CallSiteConfigEntry, h as Trait } from '../trait-
|
|
3
|
-
import { E as EntityField, a as EntityPersistence } from '../effect-
|
|
1
|
+
import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-Cma07_18.js';
|
|
2
|
+
import { i as CallSiteConfig, j as CallSiteConfigEntry, h as Trait } from '../trait-BXkQKZbO.js';
|
|
3
|
+
import { E as EntityField, a as EntityPersistence } from '../effect-C4uehm-r.js';
|
|
4
4
|
import { MakeTraitRefOpts } from '../builders.js';
|
|
5
5
|
import '../expression-Fk8bQWef.js';
|
|
6
6
|
import 'zod';
|
|
@@ -472,11 +472,17 @@ var StateSchema = z.object({
|
|
|
472
472
|
onEntry: z.array(z.string()).optional(),
|
|
473
473
|
onExit: z.array(z.string()).optional()
|
|
474
474
|
});
|
|
475
|
+
var PayloadTypeWhenSchema = z.object({
|
|
476
|
+
knob: z.string().min(1),
|
|
477
|
+
equals: z.string().min(1),
|
|
478
|
+
type: z.string().min(1)
|
|
479
|
+
});
|
|
475
480
|
var PayloadFieldSchema = z.object({
|
|
476
481
|
name: z.string().min(1),
|
|
477
482
|
type: z.string().min(1),
|
|
478
483
|
required: z.boolean().optional(),
|
|
479
|
-
properties: z.lazy(() => z.array(PayloadFieldSchema)).optional()
|
|
484
|
+
properties: z.lazy(() => z.array(PayloadFieldSchema)).optional(),
|
|
485
|
+
typeWhen: z.array(PayloadTypeWhenSchema).optional()
|
|
480
486
|
});
|
|
481
487
|
var EventSchema = z.object({
|
|
482
488
|
key: z.string().min(1, "Event key is required"),
|
|
@@ -529,7 +535,8 @@ var ConfigFieldItemsDeclarationSchema = z.lazy(
|
|
|
529
535
|
() => z.object({
|
|
530
536
|
type: z.string().optional(),
|
|
531
537
|
properties: z.record(TraitEntityFieldSchema).optional(),
|
|
532
|
-
items: ConfigFieldItemsDeclarationSchema.optional()
|
|
538
|
+
items: ConfigFieldItemsDeclarationSchema.optional(),
|
|
539
|
+
values: z.array(z.string()).optional()
|
|
533
540
|
})
|
|
534
541
|
);
|
|
535
542
|
var ConfigFieldDeclarationSchema = z.object({
|
|
@@ -645,7 +652,8 @@ var EventPayloadFieldSchema = z.object({
|
|
|
645
652
|
required: z.boolean().optional(),
|
|
646
653
|
description: z.string().optional(),
|
|
647
654
|
entityType: z.string().optional(),
|
|
648
|
-
properties: z.lazy(() => z.array(EventPayloadFieldSchema)).optional()
|
|
655
|
+
properties: z.lazy(() => z.array(EventPayloadFieldSchema)).optional(),
|
|
656
|
+
typeWhen: z.array(PayloadTypeWhenSchema).optional()
|
|
649
657
|
});
|
|
650
658
|
var TraitEventContractSchema = z.object({
|
|
651
659
|
/**
|