@almadar/core 4.10.0 → 5.1.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 +2 -2
- package/dist/builders.js +1 -1
- package/dist/builders.js.map +1 -1
- package/dist/{compose-behaviors-Dg_ADhIl.d.ts → compose-behaviors-vE2bU7TB.d.ts} +1 -1
- package/dist/domain-language/index.d.ts +1 -1
- package/dist/domain-language/index.js +3 -1
- package/dist/domain-language/index.js.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/{schema-DI8_HaRx.d.ts → schema-CsX_xlhO.d.ts} +88 -80
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.js +1 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -3761,7 +3761,7 @@ var TraitSchema = z.object({
|
|
|
3761
3761
|
description: z.string().optional(),
|
|
3762
3762
|
description_visual_prompt: z.string().optional(),
|
|
3763
3763
|
category: TraitCategorySchema.optional(),
|
|
3764
|
-
scope: TraitScopeSchema
|
|
3764
|
+
scope: TraitScopeSchema,
|
|
3765
3765
|
linkedEntity: z.string().optional(),
|
|
3766
3766
|
requiredFields: z.array(RequiredFieldSchema).optional(),
|
|
3767
3767
|
dataEntities: z.array(TraitDataEntitySchema).optional(),
|
|
@@ -5772,6 +5772,7 @@ function convertDomainToSchema(domainText, baseSchema) {
|
|
|
5772
5772
|
const traitRecord = formatBehaviorToSchema(result.data);
|
|
5773
5773
|
const trait = {
|
|
5774
5774
|
name: traitRecord.name,
|
|
5775
|
+
scope: traitRecord.scope ?? "instance",
|
|
5775
5776
|
stateMachine: traitRecord.stateMachine
|
|
5776
5777
|
};
|
|
5777
5778
|
const forEntity = result.data.entityName || void 0;
|
|
@@ -5952,6 +5953,7 @@ function applySectionUpdate(schema, sectionType, sectionId, newDomainText) {
|
|
|
5952
5953
|
const traitRecord = formatBehaviorToSchema(result.data);
|
|
5953
5954
|
const trait = {
|
|
5954
5955
|
name: traitRecord.name,
|
|
5956
|
+
scope: traitRecord.scope ?? "instance",
|
|
5955
5957
|
stateMachine: traitRecord.stateMachine
|
|
5956
5958
|
};
|
|
5957
5959
|
const traitRef = trait.name;
|