@elyx-code/project-logic-tree 0.0.6233 → 0.0.6234

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.
@@ -1,4 +1,4 @@
1
- import { IDataTypeReference, IProperty, IInputMap, IInputMapReference, EntityType, IChildEntity, IChildEntityTransfer, IBaseEntityTransfer, IDataType, IFunctionDeclaration, IFunctionDeclarationTransfer, IBuiltInBaseEntity, IBuiltInBaseEntityTransfer, IDefinitionEntity, IDefinitionEntityTransfer, IOperation, IOperationTransfer, StringAutogenerationOptions, NumberAutogenerationOptions, BooleanAutogenerationOptions, DateAutogenerationOptions, UUIDAutogenerationOptions, ValueAutogenerationOptions, EntityId, IGenericBase, IChildEntityShallowTransfer, IDefinitionEntityReference, IFunctionDeclarationReference, IOperationReference, IBaseEntity_meta, IBaseEntityShallowTransfer, IBuiltInBaseEntityReference, IPrimitiveEntityReference, IBaseEntityGenerationTarget, IChildEntityGenerationTarget, EntityWithValueReference, EntityWithValue, IVariableDeclaration, IArgumentDeclaration, IReturnDeclaration, IValueDescriptor, IOutputMap, IVariableDeclarationReference, IArgumentDeclarationReference, IReturnDeclarationReference, IPropertyReference, IValueDescriptorReference, IOutputMapReference, IVariableInstance, IVariableInstanceReference } from '.';
1
+ import { IDataTypeReference, IProperty, IInputMap, IInputMapReference, EntityType, IChildEntity, IChildEntityTransfer, IBaseEntityTransfer, IDataType, IFunctionDeclaration, IFunctionDeclarationTransfer, IBuiltInBaseEntity, IBuiltInBaseEntityTransfer, IDefinitionEntity, IDefinitionEntityTransfer, StringAutogenerationOptions, NumberAutogenerationOptions, BooleanAutogenerationOptions, DateAutogenerationOptions, UUIDAutogenerationOptions, ValueAutogenerationOptions, EntityId, IGenericBase, IChildEntityShallowTransfer, IDefinitionEntityReference, IFunctionDeclarationReference, IBaseEntity_meta, IBaseEntityShallowTransfer, IBuiltInBaseEntityReference, IPrimitiveEntityReference, IBaseEntityGenerationTarget, IChildEntityGenerationTarget, EntityWithValueReference, EntityWithValue, IVariableDeclaration, IArgumentDeclaration, IReturnDeclaration, IValueDescriptor, IOutputMap, IVariableDeclarationReference, IArgumentDeclarationReference, IReturnDeclarationReference, IPropertyReference, IValueDescriptorReference, IOutputMapReference, IVariableInstance, IVariableInstanceReference, IActionDescriptor, IActionDescriptorReference, IActionDescriptorTransfer, IOperation, IFunctionCall, IOperationReference, IFunctionCallReference, IOperationTransfer, IFunctionCallTransfer } from '.';
2
2
 
3
3
  export declare enum PrimitiveTypes {
4
4
  EntityTemplate = "entity-template",
@@ -23,9 +23,9 @@ export type UntypedObjectValue = {
23
23
  export type UntypedList = UntypedValue[];
24
24
  export type UntypedObjectList = UntypedObjectValue[];
25
25
  export type LiteralValueType = string | number | boolean | null | Date | UntypedValue;
26
- export type LiteralValueAsTypeTransfer = IDefinitionEntity | IDefinitionEntityTransfer | IFunctionDeclaration | IFunctionDeclarationTransfer | IOperation | IOperationTransfer;
27
- export type LiteralValueAsTypeReference = IDefinitionEntityReference | IFunctionDeclarationReference | IOperationReference;
28
- export type LiteralValueAsType = IDefinitionEntity | IFunctionDeclaration | IOperation;
26
+ export type LiteralValueAsTypeTransfer = IDefinitionEntity | IDefinitionEntityTransfer | IFunctionDeclaration | IFunctionDeclarationTransfer | IOperation | IOperationTransfer | IFunctionCall | IFunctionCallTransfer | IActionDescriptor | IActionDescriptorTransfer | IBuiltInBaseEntity | IBuiltInBaseEntityTransfer;
27
+ export type LiteralValueAsTypeReference = IDefinitionEntityReference | IFunctionDeclarationReference | IOperationReference | IFunctionCallReference | IActionDescriptorReference | IBuiltInBaseEntityReference;
28
+ export type LiteralValueAsType = IDefinitionEntity | IFunctionDeclaration | IOperation | IFunctionCall | IActionDescriptor | IBuiltInBaseEntity;
29
29
  export interface ILiteralValue_base {
30
30
  id: EntityId;
31
31
  type: EntityType.LiteralValue;
package/dist/index.js CHANGED
@@ -6461,7 +6461,7 @@ const rA = {
6461
6461
  orChildrenGroup: null,
6462
6462
  isList: !1,
6463
6463
  entity: Rt,
6464
- asType: !1,
6464
+ asType: !0,
6465
6465
  parent: e1
6466
6466
  }, r1 = {
6467
6467
  id: "persisted-built-in-base-entity-database-property-parent-ref-id",
@@ -56857,15 +56857,15 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
56857
56857
  // Calls the 'subscribeDependents' method with itself as the only argument on any dependencies the current entity has
56858
56858
  // It could be multiple
56859
56859
  subscribeToDependencies() {
56860
- return !this.valueAsTypeSingle && !this.valueAsTypeList ? this : (this.valueAsTypeList && Array.isArray(this.valueAsTypeList) ? this.valueAsTypeList.forEach(
56861
- (e) => e.subscribeDependents([
56860
+ return !this.valueAsTypeSingle && !this.valueAsTypeList ? this : (this.valueAsTypeList && Array.isArray(this.valueAsTypeList) ? this.valueAsTypeList.forEach((e) => {
56861
+ e.type !== n.BuiltInBaseEntity && e.subscribeDependents([
56862
56862
  {
56863
56863
  entity: this,
56864
56864
  field: "value-as-type-list"
56865
56865
  /* ValueAsTypeList */
56866
56866
  }
56867
- ])
56868
- ) : this.valueAsTypeSingle && this.valueAsTypeSingle.subscribeDependents([
56867
+ ]);
56868
+ }) : this.valueAsTypeSingle && this.valueAsTypeSingle.type !== n.BuiltInBaseEntity && this.valueAsTypeSingle.subscribeDependents([
56869
56869
  {
56870
56870
  entity: this,
56871
56871
  field: "value-as-type-single"
@@ -57408,7 +57408,6 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
57408
57408
  name: this.name,
57409
57409
  autogeneration: this.autogeneration,
57410
57410
  value: this.value,
57411
- // @ts-ignore
57412
57411
  valueAsTypeSingle: this.valueAsTypeSingle ? this.project.getBuiltIn(this.valueAsTypeSingle.id) ? this.valueAsTypeSingle.toJSON() : this.valueAsTypeSingle.toJSONClone({ ...e, newId: null }) : null,
57413
57412
  valueAsTypeList: this.valueAsTypeSingle && Array.isArray(this.valueAsTypeSingle) ? this.valueAsTypeSingle.map(
57414
57413
  (c) => this.project.getBuiltIn(c.id) ? c.toJSON() : c.toJSONClone({ ...e, newId: null })