@elyx-code/project-logic-tree 0.0.595 → 0.0.597

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.
@@ -14,7 +14,8 @@ export declare enum SharedEntityErrorCode {
14
14
  MethodOverwrite = "method-overwrite",
15
15
  NoOverlapWithImplementedSignature = "no-overlap-with-implemented-signature",
16
16
  ReaderWriterIncompatibleDataType = "reader-writer-incompatible-data-type",
17
- UnreachableEntity = "unreachable-entity"
17
+ UnreachableEntity = "unreachable-entity",
18
+ InvalidInternalCallParentDeclarationRelation = "invalid-internal-call-parent-declaration-relation"
18
19
  }
19
20
  export declare enum EntityGenerationErrorCode {
20
21
  RootReference = "root-reference",
@@ -87,7 +88,11 @@ export declare enum EntityInstanceErrorCode {
87
88
  ReadingFromIncompatibleType = "reading-from-incompatible-type",
88
89
  WritingToIncompatibleType = "writing-to-incompatible-type",
89
90
  InvalidPropertiesCombination = "invalid-properties-combination",
90
- DisconnectedCallableEntity = "disconnected-callable-entity"
91
+ DisconnectedCallableEntity = "disconnected-callable-entity",
92
+ VariableHasInputsAndInternalCall = "variable-has-inputs-and-internal-calls",
93
+ VariableHasOutputsAndInternalCall = "variable-has-outputs-and-internal-call",
94
+ VariableIsCalledAndHasInternalCall = "variable-is-called-and-has-internal-call",
95
+ VariableCallsOthersAndHasInternalCall = "variable-calls-others-and-has-internal-call"
91
96
  }
92
97
  export type EntityErrorCode = SharedEntityErrorCode | EntityGenerationErrorCode | EntityInstanceErrorCode;
93
98
  export interface IEntityGenerationError {
@@ -2,3 +2,4 @@ import { EntityError } from '../../error';
2
2
  import { InternalCallState } from '../internal-call';
3
3
 
4
4
  export declare function validate(self: InternalCallState): EntityError[];
5
+ export declare function validateParentRelation(self: InternalCallState): EntityError[];
@@ -2,7 +2,7 @@ import { CallableEntityGenerationTarget, ElementGenerationTarget, EntityId, Enti
2
2
  import { SafeParseReturnType } from 'zod';
3
3
  import { EntityError, EntityGenerationError } from './error';
4
4
  import { ProjectState } from './project';
5
- import { CallerEntityState, EntityState, EntityWithValueState, PassThroughCallableEntityState, ValueReadingEntityState, ValueWritingEntityState } from '.';
5
+ import { CallerEntityState, EntityState, EntityWithValueState, PassThroughCallableEntityState, ValueReadingEntityState, ValueWritingEntityState, VariableState } from '.';
6
6
  import { IDataTypeCompatible, IDataTypeIncompatibile } from '../utils/data-type';
7
7
 
8
8
  type UnkownEntity = {
@@ -119,4 +119,5 @@ export declare function validateValueReaderGenerationUpdate(data: Partial<IValue
119
119
  modifiedData: Partial<IValueReadingEntityGenerationTarget>;
120
120
  };
121
121
  export declare function validateReachability(self: PassThroughCallableEntityState): EntityError[];
122
+ export declare function validateVariableInternalCallUse(self: VariableState): EntityError[];
122
123
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elyx-code/project-logic-tree",
3
- "version": "0.0.595",
3
+ "version": "0.0.597",
4
4
  "author": "Sergio Herrero",
5
5
  "license": "UNLICENSED",
6
6
  "description": "An installable module which contains the type definitions and ephemeral state management for a projects' logic tree data structure",