@almadar/core 10.9.0 → 10.11.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 +15 -5
- package/dist/builders.js.map +1 -1
- package/dist/{compose-behaviors-CNTCOsui.d.ts → compose-behaviors-D9bQEgqN.d.ts} +1 -1
- package/dist/factory/index.d.ts +60 -8
- package/dist/factory/index.js +67 -31
- package/dist/factory/index.js.map +1 -1
- package/dist/factory-runtime/index.d.ts +176 -0
- package/dist/factory-runtime/index.js +1727 -0
- package/dist/factory-runtime/index.js.map +1 -0
- package/dist/index.d.ts +8 -8
- package/dist/index.js +68 -32
- package/dist/index.js.map +1 -1
- package/dist/{schema-DAc5czBW.d.ts → schema-CtOoanon.d.ts} +1 -1
- package/dist/{trait-CWjT0yBO.d.ts → trait-BB1dc5A_.d.ts} +12 -2
- package/dist/types/index.d.ts +318 -7
- package/dist/types/index.js +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/{types-CQvAbsEc.d.ts → types-COc0mLs1.d.ts} +5 -1
- package/package.json +6 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { e as TraitEventListener, f as EntityField, g as EntityPersistence, j as TraitReference } from './trait-
|
|
1
|
+
import { e as TraitEventListener, f as EntityField, g as EntityPersistence, j as TraitReference, k as RelationConfig } from './trait-BB1dc5A_.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* JSON primitives — the universal "data crossed a boundary" type.
|
|
@@ -185,6 +185,10 @@ interface FactorySignatureEntityField {
|
|
|
185
185
|
description?: string;
|
|
186
186
|
/** User-vocabulary synonyms (`@synonyms "..."`). */
|
|
187
187
|
synonyms?: string;
|
|
188
|
+
/** Closed string vocabulary for `type: 'enum'` fields. Matches `EnumEntityField.values`. */
|
|
189
|
+
values?: string[];
|
|
190
|
+
/** Relation target binding for `type: 'relation'` fields. Matches `RelationEntityField.relation`. */
|
|
191
|
+
relation?: RelationConfig;
|
|
188
192
|
}
|
|
189
193
|
/**
|
|
190
194
|
* The canonical entity a factory produces. Almost always one entity
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@almadar/core",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.11.0",
|
|
4
4
|
"description": "Core schema types and definitions for Almadar",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -22,6 +22,11 @@
|
|
|
22
22
|
"import": "./dist/factory/index.js",
|
|
23
23
|
"require": "./dist/factory/index.js"
|
|
24
24
|
},
|
|
25
|
+
"./factory-runtime": {
|
|
26
|
+
"types": "./dist/factory-runtime/index.d.ts",
|
|
27
|
+
"import": "./dist/factory-runtime/index.js",
|
|
28
|
+
"require": "./dist/factory-runtime/index.js"
|
|
29
|
+
},
|
|
25
30
|
"./state-machine": {
|
|
26
31
|
"types": "./dist/state-machine/index.d.ts",
|
|
27
32
|
"import": "./dist/state-machine/index.js",
|