@elyx-code/project-logic-tree 0.0.6141 → 0.0.6143

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.
Files changed (38) hide show
  1. package/dist/definitions/types/base.d.ts +9 -3
  2. package/dist/definitions/types/generic-reference.d.ts +4 -3
  3. package/dist/index.js +27294 -22027
  4. package/dist/index.umd.cjs +268 -268
  5. package/dist/tree/built-in/operations/function-execution/parallel.d.ts +1 -1
  6. package/dist/tree/built-in/operations/function-execution/sequential.d.ts +1 -1
  7. package/dist/tree/built-in/operations/function-execution/wait.d.ts +1 -1
  8. package/dist/tree/state/action-descriptor/action-descriptor.d.ts +4 -4
  9. package/dist/tree/state/argument-declaration/argument-declaration.d.ts +4 -4
  10. package/dist/tree/state/base.d.ts +4 -0
  11. package/dist/tree/state/break-statement/break-statement.d.ts +4 -4
  12. package/dist/tree/state/built-in-base-entity/built-in-base-entity.d.ts +3 -2
  13. package/dist/tree/state/condition/condition.d.ts +4 -4
  14. package/dist/tree/state/continue-statement/continue-statement.d.ts +4 -4
  15. package/dist/tree/state/data-type/data-type.d.ts +4 -4
  16. package/dist/tree/state/definition-entity/definition-entity.d.ts +4 -4
  17. package/dist/tree/state/function-call/function-call.d.ts +4 -4
  18. package/dist/tree/state/function-declaration/function-declaration.d.ts +4 -4
  19. package/dist/tree/state/global-event/global-event.d.ts +4 -4
  20. package/dist/tree/state/input-map/input-map.d.ts +4 -4
  21. package/dist/tree/state/installed-project/installed-project.d.ts +4 -4
  22. package/dist/tree/state/internal-call/internal-call.d.ts +4 -4
  23. package/dist/tree/state/literal-value/literal-value.d.ts +4 -4
  24. package/dist/tree/state/loop/loop.d.ts +4 -4
  25. package/dist/tree/state/operation/operation.d.ts +4 -4
  26. package/dist/tree/state/output-map/output-map.d.ts +4 -4
  27. package/dist/tree/state/primitive-entity/primitive-entity.d.ts +4 -4
  28. package/dist/tree/state/project/project.d.ts +4 -4
  29. package/dist/tree/state/property/property.d.ts +4 -4
  30. package/dist/tree/state/return-declaration/return-declaration.d.ts +4 -4
  31. package/dist/tree/state/return-statement/return-statement.d.ts +4 -4
  32. package/dist/tree/state/search/search.d.ts +4 -4
  33. package/dist/tree/state/value-descriptor/value-descriptor.d.ts +4 -4
  34. package/dist/tree/state/variable-declaration/variable-declaration.d.ts +4 -4
  35. package/dist/tree/state/variable-instance/variable-instance.d.ts +4 -4
  36. package/dist/tree/state/version.d.ts +11 -0
  37. package/dist/tree/utils/index.d.ts +1 -0
  38. package/package.json +3 -3
@@ -1,4 +1,4 @@
1
- import { EntityId, EntityType, EntityVersion, IProject, IDefinitionEntity, IFunctionDeclaration, IGlobalEvent, Element, IProjectTransfer, IGenericReference, ElementTransfer, Reference, IProjectReference, IFunctionCallTransfer, IDefinitionEntityTransfer, IFunctionDeclarationTransfer, IInstalledProjectTransfer, IVariableDeclarationTransfer, IProjectShallowTransfer, ElementShallowTransfer, ElementGenerationTarget, IProjectGenerationTarget, IConditionTransfer, IOperationTransfer, ProjectTypesUnion } from '../../../definitions';
1
+ import { EntityId, EntityType, IProject, IDefinitionEntity, IFunctionDeclaration, IGlobalEvent, Element, IProjectTransfer, IGenericReference, ElementTransfer, Reference, IProjectReference, IFunctionCallTransfer, IDefinitionEntityTransfer, IFunctionDeclarationTransfer, IInstalledProjectTransfer, IVariableDeclarationTransfer, IProjectShallowTransfer, ElementShallowTransfer, ElementGenerationTarget, IProjectGenerationTarget, IConditionTransfer, IOperationTransfer, ProjectTypesUnion } from '../../../definitions';
2
2
  import { ZodError } from 'zod';
3
3
  import { BaseState, IEntityPersistanceOptions, IEditableEntityPersistanceRepository, UserManagedEntityStateFunctionality, IEntityJSONCloneOptions, IEntityRecursionOptions } from '../base';
4
4
  import { FunctionDeclarationState } from '../function-declaration';
@@ -18,16 +18,16 @@ import { EntityError, EntityGenerationError } from '../error';
18
18
  import { ActionDescriptorState } from '../action-descriptor';
19
19
  import { ValueDescriptorState } from '../value-descriptor';
20
20
  import { IChangeSet, IModuleInjection } from '../types';
21
+ import { VersionedState } from '../version';
21
22
 
22
23
  export interface UUIDModule {
23
24
  isBackup?: boolean;
24
25
  uuid: () => string;
25
26
  fromUUID: (uuid: string) => string;
26
27
  }
27
- export declare class ProjectState implements IProject, UserManagedEntityStateFunctionality, BaseState {
28
+ export declare class ProjectState extends VersionedState implements IProject, UserManagedEntityStateFunctionality, BaseState {
28
29
  initialData: IProject | IProjectTransfer;
29
30
  readonly id: EntityId;
30
- version: EntityVersion;
31
31
  type: EntityType.Project;
32
32
  name: string | null;
33
33
  description: string | null;
@@ -63,7 +63,7 @@ export declare class ProjectState implements IProject, UserManagedEntityStateFun
63
63
  errors: EntityError[];
64
64
  references: IGenericReference[];
65
65
  initialized: boolean;
66
- constructor(initialProjectData: IProject | IProjectTransfer);
66
+ constructor(initialData: IProject | IProjectTransfer);
67
67
  static UUID: UUIDModule;
68
68
  static injectUUIDModule(module: UUIDModule): void;
69
69
  static repository: IEditableEntityPersistanceRepository;
@@ -1,4 +1,4 @@
1
- import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, IProperty, IPropertyGenerationTarget, IPropertyReference, IPropertyShallowTransfer, IPropertyTransfer, PropertyTypesUnion } from '../../../definitions';
1
+ import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, IProperty, IPropertyGenerationTarget, IPropertyReference, IPropertyShallowTransfer, IPropertyTransfer, PropertyTypesUnion } from '../../../definitions';
2
2
  import { ZodError } from 'zod';
3
3
  import { BaseState, ChildEntityState, EntityWithValueClass, IEntityPersistanceOptions, IEditableEntityPersistanceRepository, UserManagedEntityStateFunctionality, IEntityJSONCloneOptions, IEntityRecursionOptions } from '../base';
4
4
  import { DataTypeState } from '../data-type';
@@ -9,11 +9,11 @@ import { BuiltInBaseEntityState } from '../built-in-base-entity';
9
9
  import { EntityError, EntityGenerationError } from '../error';
10
10
  import { LiteralValueState } from '../literal-value';
11
11
  import { EntityState, IChangeSet } from '../types';
12
+ import { VersionedState } from '../version';
12
13
 
13
- export declare class PropertyState implements IProperty, UserManagedEntityStateFunctionality, BaseState, ChildEntityState, EntityWithValueClass {
14
+ export declare class PropertyState extends VersionedState implements IProperty, UserManagedEntityStateFunctionality, BaseState, ChildEntityState, EntityWithValueClass {
14
15
  initialData: IProperty | IPropertyTransfer;
15
16
  readonly id: EntityId;
16
- version: EntityVersion;
17
17
  name: string;
18
18
  description: string | null;
19
19
  private: boolean;
@@ -32,7 +32,7 @@ export declare class PropertyState implements IProperty, UserManagedEntityStateF
32
32
  parent: DefinitionEntityState | PrimitiveEntityState | BuiltInBaseEntityState;
33
33
  initialized: boolean;
34
34
  suggestion: boolean;
35
- constructor(initialPropertyData: IProperty | IPropertyTransfer, parentProjectState: ProjectState);
35
+ constructor(initialData: IProperty | IPropertyTransfer, parentProjectState: ProjectState);
36
36
  static repository: IEditableEntityPersistanceRepository;
37
37
  static type: EntityType.Property;
38
38
  static USER_MANAGED_PARENT_TYPES: EntityType[];
@@ -1,4 +1,4 @@
1
- import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, IReturnDeclaration, IReturnDeclarationGenerationTarget, IReturnDeclarationReference, IReturnDeclarationShallowTransfer, IReturnDeclarationTransfer, ReturnDeclarationTypesUnion } from '../../../definitions';
1
+ import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, IReturnDeclaration, IReturnDeclarationGenerationTarget, IReturnDeclarationReference, IReturnDeclarationShallowTransfer, IReturnDeclarationTransfer, ReturnDeclarationTypesUnion } from '../../../definitions';
2
2
  import { ZodError } from 'zod';
3
3
  import { BaseState, ChildEntityState, EntityWithValueClass, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, UserManagedEntityStateFunctionality, ValueReadingEntityClass } from '../base';
4
4
  import { DataTypeState } from '../data-type';
@@ -10,11 +10,11 @@ import { ContinueStatementState } from '../continue-statement';
10
10
  import { EntityError, EntityGenerationError } from '../../state/error';
11
11
  import { LiteralValueState } from '../literal-value';
12
12
  import { ValueDescriptorState } from '../value-descriptor';
13
+ import { VersionedState } from '../version';
13
14
 
14
- export declare class ReturnDeclarationState implements IReturnDeclaration, UserManagedEntityStateFunctionality, ValueReadingEntityClass, BaseState, ChildEntityState, EntityWithValueClass {
15
+ export declare class ReturnDeclarationState extends VersionedState implements IReturnDeclaration, UserManagedEntityStateFunctionality, ValueReadingEntityClass, BaseState, ChildEntityState, EntityWithValueClass {
15
16
  initialData: IReturnDeclaration | IReturnDeclarationTransfer;
16
17
  readonly id: EntityId;
17
- version: EntityVersion;
18
18
  name: string;
19
19
  description: string | null;
20
20
  index: number;
@@ -31,7 +31,7 @@ export declare class ReturnDeclarationState implements IReturnDeclaration, UserM
31
31
  parent: ReturnStatementState | BreakStatementState | ContinueStatementState;
32
32
  initialized: boolean;
33
33
  suggestion: boolean;
34
- constructor(initialReturnVariableMapData: IReturnDeclaration | IReturnDeclarationTransfer, parentProjectState: ProjectState);
34
+ constructor(initialData: IReturnDeclaration | IReturnDeclarationTransfer, parentProjectState: ProjectState);
35
35
  static repository: IEditableEntityPersistanceRepository;
36
36
  static type: EntityType.ReturnDeclaration;
37
37
  static USER_MANAGED_PARENT_TYPES: EntityType[];
@@ -1,15 +1,15 @@
1
- import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, IReturnStatement, IReturnStatementGenerationTarget, IReturnStatementReference, IReturnStatementShallowTransfer, IReturnStatementTransfer, ReturnStatementTypesUnion } from '../../../definitions';
1
+ import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, IReturnStatement, IReturnStatementGenerationTarget, IReturnStatementReference, IReturnStatementShallowTransfer, IReturnStatementTransfer, ReturnStatementTypesUnion } from '../../../definitions';
2
2
  import { ZodError } from 'zod';
3
3
  import { BaseCanvasDraggableState, BaseState, CallableEntityClass, ChildEntityState, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, UserManagedEntityStateFunctionality } from '../base';
4
4
  import { ReturnDeclarationState } from '../return-declaration';
5
5
  import { CallerEntityState, EntityState, EntityWithLogicScopeState, EntryPointEntityState, IChangeSet, PassThroughCallableEntityState } from '../types';
6
6
  import { ProjectState } from '../project/project';
7
7
  import { EntityError, EntityGenerationError } from '../../state/error';
8
+ import { VersionedState } from '../version';
8
9
 
9
- export declare class ReturnStatementState implements IReturnStatement, UserManagedEntityStateFunctionality, BaseState, BaseCanvasDraggableState, CallableEntityClass, ChildEntityState {
10
+ export declare class ReturnStatementState extends VersionedState implements IReturnStatement, UserManagedEntityStateFunctionality, BaseState, BaseCanvasDraggableState, CallableEntityClass, ChildEntityState {
10
11
  initialData: IReturnStatement | IReturnStatementTransfer;
11
12
  readonly id: EntityId;
12
- version: EntityVersion;
13
13
  x: number;
14
14
  y: number;
15
15
  readonly type: EntityType.ReturnStatement;
@@ -23,7 +23,7 @@ export declare class ReturnStatementState implements IReturnStatement, UserManag
23
23
  parent: EntityWithLogicScopeState;
24
24
  initialized: boolean;
25
25
  suggestion: boolean;
26
- constructor(initialReturnStatementData: IReturnStatement | IReturnStatementTransfer, parentProjectState: ProjectState);
26
+ constructor(initialData: IReturnStatement | IReturnStatementTransfer, parentProjectState: ProjectState);
27
27
  static repository: IEditableEntityPersistanceRepository;
28
28
  static type: EntityType.ReturnStatement;
29
29
  static USER_MANAGED_PARENT_TYPES: EntityType[];
@@ -1,4 +1,4 @@
1
- import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, ISearch, ISearchGenerationTarget, ISearchReference, ISearchShallowTransfer, ISearchTransfer, SearchTypesUnion } from '../../../definitions';
1
+ import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, ISearch, ISearchGenerationTarget, ISearchReference, ISearchShallowTransfer, ISearchTransfer, SearchTypesUnion } from '../../../definitions';
2
2
  import { ZodError } from 'zod';
3
3
  import { BaseCanvasDraggableState, BaseState, CallableEntityClass, ChildEntityState, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, PassThroughCallableEntityClass, UserManagedEntityStateFunctionality } from '../base';
4
4
  import { CallableEntityState, CallerEntityState, EntityState, EntityWithLogicScopeState, EntryPointEntityState, IChangeSet, PassThroughCallableEntityState } from '../types';
@@ -7,11 +7,11 @@ import { ActionOutputMapState } from '../output-map';
7
7
  import { ProjectState } from '../project/project';
8
8
  import { EntityError, EntityGenerationError } from '../../state/error';
9
9
  import { ValueDescriptorState } from '../value-descriptor';
10
+ import { VersionedState } from '../version';
10
11
 
11
- export declare class SearchState implements ISearch, BaseState, UserManagedEntityStateFunctionality, BaseCanvasDraggableState, CallableEntityClass, ChildEntityState, PassThroughCallableEntityClass {
12
+ export declare class SearchState extends VersionedState implements ISearch, BaseState, UserManagedEntityStateFunctionality, BaseCanvasDraggableState, CallableEntityClass, ChildEntityState, PassThroughCallableEntityClass {
12
13
  initialData: ISearch | ISearchTransfer;
13
14
  readonly id: EntityId;
14
- version: EntityVersion;
15
15
  name: string;
16
16
  description: string | null;
17
17
  x: number;
@@ -32,7 +32,7 @@ export declare class SearchState implements ISearch, BaseState, UserManagedEntit
32
32
  errors: EntityError[];
33
33
  project: ProjectState;
34
34
  initialized: boolean;
35
- constructor(initialFunctionCallData: ISearch | ISearchTransfer, parentProjectState: ProjectState);
35
+ constructor(initialData: ISearch | ISearchTransfer, parentProjectState: ProjectState);
36
36
  static repository: IEditableEntityPersistanceRepository;
37
37
  static type: EntityType.Search;
38
38
  static USER_MANAGED_PARENT_TYPES: EntityType[];
@@ -1,4 +1,4 @@
1
- import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, ValueDescriptorParentChildRelation, IValueDescriptor, IValueDescriptorGenerationTarget, IValueDescriptorReference, IValueDescriptorShallowTransfer, IValueDescriptorTransfer, ValueDescriptorTypesUnion } from '../../../definitions';
1
+ import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, ValueDescriptorParentChildRelation, IValueDescriptor, IValueDescriptorGenerationTarget, IValueDescriptorReference, IValueDescriptorShallowTransfer, IValueDescriptorTransfer, ValueDescriptorTypesUnion } from '../../../definitions';
2
2
  import { ZodError } from 'zod';
3
3
  import { BaseState, ChildEntityState, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, UserManagedEntityStateFunctionality } from '../base';
4
4
  import { DataTypeState } from '../data-type';
@@ -9,11 +9,11 @@ import { EntityState, IChangeSet } from '../types';
9
9
  import { LiteralValueState } from '../literal-value';
10
10
  import { LoopState } from '../loop';
11
11
  import { SearchState } from '../search';
12
+ import { VersionedState } from '../version';
12
13
 
13
- export declare class ValueDescriptorState implements IValueDescriptor, UserManagedEntityStateFunctionality, BaseState, ChildEntityState {
14
+ export declare class ValueDescriptorState extends VersionedState implements IValueDescriptor, UserManagedEntityStateFunctionality, BaseState, ChildEntityState {
14
15
  initialData: IValueDescriptor | IValueDescriptorTransfer;
15
16
  readonly id: EntityId;
16
- version: EntityVersion;
17
17
  name: string;
18
18
  description: string | null;
19
19
  index: number;
@@ -26,7 +26,7 @@ export declare class ValueDescriptorState implements IValueDescriptor, UserManag
26
26
  errors: EntityError[];
27
27
  parent: ActionDescriptorState | LoopState | SearchState | null;
28
28
  initialized: boolean;
29
- constructor(initialVariableDeclarationData: IValueDescriptor | IValueDescriptorTransfer, parentProjectState: ProjectState);
29
+ constructor(initialData: IValueDescriptor | IValueDescriptorTransfer, parentProjectState: ProjectState);
30
30
  static repository: IEditableEntityPersistanceRepository;
31
31
  static type: EntityType.ValueDescriptor;
32
32
  static USER_MANAGED_PARENT_TYPES: EntityType[];
@@ -1,4 +1,4 @@
1
- import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, IVariableDeclaration, IVariableDeclarationGenerationTarget, IVariableDeclarationReference, IVariableDeclarationShallowTransfer, IVariableDeclarationTransfer, IVariableInstanceTransfer, VariableDeclarationTypesUnion } from '../../../definitions';
1
+ import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, IVariableDeclaration, IVariableDeclarationGenerationTarget, IVariableDeclarationReference, IVariableDeclarationShallowTransfer, IVariableDeclarationTransfer, IVariableInstanceTransfer, VariableDeclarationTypesUnion } from '../../../definitions';
2
2
  import { ZodError } from 'zod';
3
3
  import { BaseCanvasDraggableState, BaseState, CallableEntityClass, ChildEntityState, EntityWithValueClass, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, PassThroughCallableEntityClass, UserManagedEntityStateFunctionality, ValueReadingEntityClass, ValueWritingEntityClass } from '../base';
4
4
  import { DataTypeState } from '../data-type';
@@ -10,11 +10,11 @@ import { VariableInputMapState } from '../input-map';
10
10
  import { EntityError, EntityGenerationError } from '../error';
11
11
  import { LiteralValueState } from '../literal-value';
12
12
  import { VariableInstanceState } from '../variable-instance';
13
+ import { VersionedState } from '../version';
13
14
 
14
- export declare class VariableDeclarationState implements IVariableDeclaration, BaseState, UserManagedEntityStateFunctionality, ValueWritingEntityClass, ValueReadingEntityClass, BaseCanvasDraggableState, ChildEntityState, EntityWithValueClass, PassThroughCallableEntityClass, CallableEntityClass {
15
+ export declare class VariableDeclarationState extends VersionedState implements IVariableDeclaration, BaseState, UserManagedEntityStateFunctionality, ValueWritingEntityClass, ValueReadingEntityClass, BaseCanvasDraggableState, ChildEntityState, EntityWithValueClass, PassThroughCallableEntityClass, CallableEntityClass {
15
16
  initialData: IVariableDeclaration | IVariableDeclarationTransfer;
16
17
  readonly id: EntityId;
17
- version: EntityVersion;
18
18
  name: string;
19
19
  description: string | null;
20
20
  required: boolean;
@@ -40,7 +40,7 @@ export declare class VariableDeclarationState implements IVariableDeclaration, B
40
40
  project: ProjectState;
41
41
  initialized: boolean;
42
42
  suggestion: boolean;
43
- constructor(initialVariableDeclarationData: IVariableDeclaration | IVariableDeclarationTransfer, parentProjectState: ProjectState);
43
+ constructor(initialData: IVariableDeclaration | IVariableDeclarationTransfer, parentProjectState: ProjectState);
44
44
  static repository: IEditableEntityPersistanceRepository;
45
45
  static type: EntityType.VariableDeclaration;
46
46
  static USER_MANAGED_PARENT_TYPES: EntityType[];
@@ -1,4 +1,4 @@
1
- import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, IVariableInstance, IVariableInstanceGenerationTarget, IVariableInstanceReference, IVariableInstanceShallowTransfer, IVariableInstanceTransfer, VariableInstanceTypesUnion } from '../../../definitions';
1
+ import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, IVariableInstance, IVariableInstanceGenerationTarget, IVariableInstanceReference, IVariableInstanceShallowTransfer, IVariableInstanceTransfer, VariableInstanceTypesUnion } from '../../../definitions';
2
2
  import { ZodError } from 'zod';
3
3
  import { BaseCanvasDraggableState, BaseState, CallableEntityClass, ChildEntityState, EntityWithValueClass, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, PassThroughCallableEntityClass, UserManagedEntityStateFunctionality, ValueReadingEntityClass, ValueWritingEntityClass } from '../base';
4
4
  import { CallableEntityState, CallerEntityState, EntityState, EntityWithLogicScopeState, EntryPointEntityState, IChangeSet, PassThroughCallableEntityState, ValueReadingEntityState, ValueWritingEntityState } from '../types';
@@ -10,11 +10,11 @@ import { VariableDeclarationState } from '../variable-declaration';
10
10
  import { EntityError, EntityGenerationError } from '../error';
11
11
  import { LiteralValueState } from '../literal-value';
12
12
  import { DataTypeState } from '../data-type';
13
+ import { VersionedState } from '../version';
13
14
 
14
- export declare class VariableInstanceState implements IVariableInstance, BaseState, UserManagedEntityStateFunctionality, ValueWritingEntityClass, ValueReadingEntityClass, BaseCanvasDraggableState, ChildEntityState, EntityWithValueClass, PassThroughCallableEntityClass, CallableEntityClass {
15
+ export declare class VariableInstanceState extends VersionedState implements IVariableInstance, BaseState, UserManagedEntityStateFunctionality, ValueWritingEntityClass, ValueReadingEntityClass, BaseCanvasDraggableState, ChildEntityState, EntityWithValueClass, PassThroughCallableEntityClass, CallableEntityClass {
15
16
  initialData: IVariableInstance | IVariableInstanceTransfer;
16
17
  readonly id: EntityId;
17
- version: EntityVersion;
18
18
  x: number;
19
19
  y: number;
20
20
  readonly type: EntityType.VariableInstance;
@@ -35,7 +35,7 @@ export declare class VariableInstanceState implements IVariableInstance, BaseSta
35
35
  parent: EntityWithLogicScopeState | ProjectState;
36
36
  initialized: boolean;
37
37
  suggestion: boolean;
38
- constructor(initialVariableDeclarationData: IVariableInstance | IVariableInstanceTransfer, parentProjectState: ProjectState);
38
+ constructor(initialData: IVariableInstance | IVariableInstanceTransfer, parentProjectState: ProjectState);
39
39
  static repository: IEditableEntityPersistanceRepository;
40
40
  static type: EntityType.VariableInstance;
41
41
  static USER_MANAGED_PARENT_TYPES: EntityType[];
@@ -0,0 +1,11 @@
1
+ import { EntityVersion, IVersionMetadata } from '../../definitions';
2
+
3
+ export declare class VersionedState implements IVersionMetadata {
4
+ version: EntityVersion;
5
+ previousVersion: EntityVersion | null;
6
+ createdAt: string | Date;
7
+ deleted: boolean;
8
+ author: string;
9
+ constructor(data: IVersionMetadata);
10
+ sync(data: Partial<IVersionMetadata>): void;
11
+ }
@@ -67,6 +67,7 @@ export declare function flattenProjectElements(project: ProjectState): EntitySta
67
67
  export declare function findReferenceToSelfInList(element: EntityState, elements: EntityState[]): EntityState[];
68
68
  export declare function findReferencesToSelfInProject(element: EntityState): EntityState[];
69
69
  export declare function enrichFromKnownEntities(entity: ElementTransfer | Element | IGenericReference | EntityId, allKnownEntities: Record<EntityId, Element | ElementTransfer>): Element | ElementTransfer | null;
70
+ export declare function getReferencedIds(entity: ElementTransfer | Element | ElementShallowTransfer | EntityState): Record<EntityId, EntityId>;
70
71
  export declare function getRelatedCanvasElementsOnTheLeftFromTransfer(entity: DraggableElement | DraggableElementTransfer, allKnownEntities: Record<EntityId, Element | ElementTransfer>): (DraggableElement | DraggableElementTransfer)[];
71
72
  export declare function getRelatedCanvasElementsOnTheLeft(entity: CanvasEntityState): CanvasEntityState[];
72
73
  export declare function getCalledBy(entity: CallableEntityState | CallableEntity | CallableEntityTransfer): (CallerEntityState | CallerEntity | CallerEntityTransfer)[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elyx-code/project-logic-tree",
3
- "version": "0.0.6141",
3
+ "version": "0.0.6143",
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",
@@ -24,8 +24,8 @@
24
24
  }
25
25
  },
26
26
  "dependencies": {
27
- "@elyx-code/definitions": "^0.0.7956",
28
27
  "axios": "^1.6.5",
28
+ "dayjs": "^1.11.13",
29
29
  "pluralize": "^8.0.0",
30
30
  "short-uuid": "^5.2.0",
31
31
  "underscore": "^1.13.7",
@@ -39,7 +39,7 @@
39
39
  "@types/underscore": "^1.11.15",
40
40
  "jest": "^27.5.1",
41
41
  "ts-jest": "^27.1.4",
42
- "typescript": "^5.0.2",
42
+ "typescript": "^5.7.2",
43
43
  "vite": "^4.4.5",
44
44
  "vite-plugin-dts": "^3.5.2"
45
45
  },