@elyx-code/project-logic-tree 0.0.6140 → 0.0.6142
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/definitions/types/base.d.ts +9 -3
- package/dist/definitions/types/generic-reference.d.ts +4 -3
- package/dist/definitions/types/index.d.ts +3 -1
- package/dist/index.js +35262 -29593
- package/dist/index.umd.cjs +267 -267
- package/dist/tree/built-in/operations/function-execution/parallel.d.ts +1 -1
- package/dist/tree/built-in/operations/function-execution/sequential.d.ts +1 -1
- package/dist/tree/built-in/operations/function-execution/wait.d.ts +1 -1
- package/dist/tree/state/action-descriptor/action-descriptor.d.ts +7 -4
- package/dist/tree/state/argument-declaration/argument-declaration.d.ts +7 -4
- package/dist/tree/state/base.d.ts +4 -0
- package/dist/tree/state/break-statement/break-statement.d.ts +7 -4
- package/dist/tree/state/built-in-base-entity/built-in-base-entity.d.ts +3 -2
- package/dist/tree/state/condition/condition.d.ts +7 -4
- package/dist/tree/state/continue-statement/continue-statement.d.ts +7 -4
- package/dist/tree/state/data-type/data-type.d.ts +7 -4
- package/dist/tree/state/definition-entity/definition-entity.d.ts +7 -4
- package/dist/tree/state/function-call/function-call.d.ts +7 -4
- package/dist/tree/state/function-declaration/function-declaration.d.ts +7 -4
- package/dist/tree/state/global-event/global-event.d.ts +7 -4
- package/dist/tree/state/input-map/input-map.d.ts +7 -4
- package/dist/tree/state/installed-project/installed-project.d.ts +7 -4
- package/dist/tree/state/internal-call/internal-call.d.ts +7 -4
- package/dist/tree/state/literal-value/literal-value.d.ts +7 -4
- package/dist/tree/state/loop/loop.d.ts +7 -4
- package/dist/tree/state/operation/operation.d.ts +7 -4
- package/dist/tree/state/output-map/output-map.d.ts +7 -4
- package/dist/tree/state/primitive-entity/primitive-entity.d.ts +4 -4
- package/dist/tree/state/project/project.d.ts +7 -4
- package/dist/tree/state/property/property.d.ts +7 -4
- package/dist/tree/state/return-declaration/return-declaration.d.ts +7 -4
- package/dist/tree/state/return-statement/return-statement.d.ts +7 -4
- package/dist/tree/state/search/search.d.ts +7 -4
- package/dist/tree/state/value-descriptor/value-descriptor.d.ts +7 -4
- package/dist/tree/state/variable-declaration/variable-declaration.d.ts +7 -4
- package/dist/tree/state/variable-instance/variable-instance.d.ts +7 -4
- package/dist/tree/state/version.d.ts +11 -0
- package/dist/tree/utils/index.d.ts +1 -0
- package/package.json +2 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType,
|
|
1
|
+
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, IActionOutputMap, IActionOutputMapTransfer, IOutputMap, IOutputMapGenerationTarget, IOutputMapReference, IOutputMapShallowTransfer, IOutputMapTransfer, IVariableOutputMap, IVariableOutputMapTransfer, OutputMapParentChildRelation, OutputMapTypesUnion } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
3
|
import { BaseState, ChildEntityState, EntityWithValueClass, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, UserManagedEntityStateFunctionality, ValueWritingEntityClass } from '../base';
|
|
4
4
|
import { ReturnDeclarationState } from '../return-declaration';
|
|
@@ -11,11 +11,11 @@ import { EntityError, EntityGenerationError } from '../../state/error';
|
|
|
11
11
|
import { LiteralValueState } from '../literal-value';
|
|
12
12
|
import { DataTypeState } from '../data-type';
|
|
13
13
|
import { ValueDescriptorState } from '../value-descriptor';
|
|
14
|
+
import { VersionedState } from '../version';
|
|
14
15
|
|
|
15
|
-
export declare class OutputMapState implements IOutputMap, UserManagedEntityStateFunctionality, ValueWritingEntityClass, BaseState, ChildEntityState, EntityWithValueClass {
|
|
16
|
+
export declare class OutputMapState extends VersionedState implements IOutputMap, UserManagedEntityStateFunctionality, ValueWritingEntityClass, BaseState, ChildEntityState, EntityWithValueClass {
|
|
16
17
|
initialData: IOutputMap | IOutputMapTransfer;
|
|
17
18
|
readonly id: EntityId;
|
|
18
|
-
version: EntityVersion;
|
|
19
19
|
index: number;
|
|
20
20
|
readonly type: EntityType.OutputMap;
|
|
21
21
|
parentRelationType?: OutputMapParentChildRelation;
|
|
@@ -28,8 +28,11 @@ export declare class OutputMapState implements IOutputMap, UserManagedEntityStat
|
|
|
28
28
|
parent: PassThroughCallableEntityWithOutputsState;
|
|
29
29
|
initialized: boolean;
|
|
30
30
|
suggestion: boolean;
|
|
31
|
-
constructor(
|
|
31
|
+
constructor(initialData: IOutputMap | IOutputMapTransfer, parentProjectState: ProjectState);
|
|
32
32
|
static repository: IEditableEntityPersistanceRepository;
|
|
33
|
+
static type: EntityType.OutputMap;
|
|
34
|
+
static USER_MANAGED_PARENT_TYPES: EntityType[];
|
|
35
|
+
static PARENT_TYPES: EntityType[];
|
|
33
36
|
static MUTABLE_BASE_PROPERTIES: string[];
|
|
34
37
|
static INMUTABLE_BASE_PROPERTIES: string[];
|
|
35
38
|
static BASE_PROPERTIES: string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EntityId, EntityType,
|
|
1
|
+
import { EntityId, EntityType, IPrimitiveEntity, PrimitiveTypes, IPrimitiveEntityTransfer, IPrimitiveEntityReference, IPrimitiveEntityShallowTransfer, ElementShallowTransfer, IPrimitiveEntityGenerationTarget, ElementGenerationTarget, PrimitiveEntityTypesUnion } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
3
|
import { BaseState, IEntityPersistanceOptions, IEntityRecursionOptions, IReadOnlyEntityPersistanceRepository } from '../base';
|
|
4
4
|
import { PropertyState } from '../property';
|
|
@@ -8,11 +8,11 @@ import { FunctionDeclarationState } from '../function-declaration';
|
|
|
8
8
|
import { ActionDescriptorState } from '../action-descriptor';
|
|
9
9
|
import { EntityError } from '../../state/error';
|
|
10
10
|
import { EntityState } from '../types';
|
|
11
|
+
import { VersionedState } from '../version';
|
|
11
12
|
|
|
12
|
-
export declare class PrimitiveEntityState implements BaseState, IPrimitiveEntity {
|
|
13
|
+
export declare class PrimitiveEntityState extends VersionedState implements BaseState, IPrimitiveEntity {
|
|
13
14
|
initialData: IPrimitiveEntity | IPrimitiveEntityTransfer;
|
|
14
15
|
readonly id: EntityId;
|
|
15
|
-
readonly version: EntityVersion;
|
|
16
16
|
readonly name: PrimitiveTypes;
|
|
17
17
|
readonly description: string | null;
|
|
18
18
|
readonly type: EntityType.PrimitiveEntity;
|
|
@@ -24,7 +24,7 @@ export declare class PrimitiveEntityState implements BaseState, IPrimitiveEntity
|
|
|
24
24
|
readonly extends: (PrimitiveEntityState | BuiltInBaseEntityState)[];
|
|
25
25
|
errors: EntityError[];
|
|
26
26
|
project: ProjectState;
|
|
27
|
-
constructor(
|
|
27
|
+
constructor(initialData: IPrimitiveEntity | IPrimitiveEntityTransfer, parentProjectState: ProjectState);
|
|
28
28
|
static repository: IReadOnlyEntityPersistanceRepository;
|
|
29
29
|
get allBasePropertiesFromExtendedAndImplementedEntities(): PropertyState[];
|
|
30
30
|
get extendedPropertiesFromOriginalParents(): PropertyState[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EntityId, EntityType,
|
|
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,10 +63,13 @@ export declare class ProjectState implements IProject, UserManagedEntityStateFun
|
|
|
63
63
|
errors: EntityError[];
|
|
64
64
|
references: IGenericReference[];
|
|
65
65
|
initialized: boolean;
|
|
66
|
-
constructor(
|
|
66
|
+
constructor(initialData: IProject | IProjectTransfer);
|
|
67
67
|
static UUID: UUIDModule;
|
|
68
68
|
static injectUUIDModule(module: UUIDModule): void;
|
|
69
69
|
static repository: IEditableEntityPersistanceRepository;
|
|
70
|
+
static type: EntityType.Project;
|
|
71
|
+
static USER_MANAGED_PARENT_TYPES: EntityType[];
|
|
72
|
+
static PARENT_TYPES: EntityType[];
|
|
70
73
|
static MUTABLE_BASE_PROPERTIES: string[];
|
|
71
74
|
static INMUTABLE_BASE_PROPERTIES: string[];
|
|
72
75
|
static BASE_PROPERTIES: string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType,
|
|
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,8 +32,11 @@ export declare class PropertyState implements IProperty, UserManagedEntityStateF
|
|
|
32
32
|
parent: DefinitionEntityState | PrimitiveEntityState | BuiltInBaseEntityState;
|
|
33
33
|
initialized: boolean;
|
|
34
34
|
suggestion: boolean;
|
|
35
|
-
constructor(
|
|
35
|
+
constructor(initialData: IProperty | IPropertyTransfer, parentProjectState: ProjectState);
|
|
36
36
|
static repository: IEditableEntityPersistanceRepository;
|
|
37
|
+
static type: EntityType.Property;
|
|
38
|
+
static USER_MANAGED_PARENT_TYPES: EntityType[];
|
|
39
|
+
static PARENT_TYPES: EntityType[];
|
|
37
40
|
static MUTABLE_BASE_PROPERTIES: string[];
|
|
38
41
|
static INMUTABLE_BASE_PROPERTIES: string[];
|
|
39
42
|
static BASE_PROPERTIES: string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType,
|
|
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,8 +31,11 @@ export declare class ReturnDeclarationState implements IReturnDeclaration, UserM
|
|
|
31
31
|
parent: ReturnStatementState | BreakStatementState | ContinueStatementState;
|
|
32
32
|
initialized: boolean;
|
|
33
33
|
suggestion: boolean;
|
|
34
|
-
constructor(
|
|
34
|
+
constructor(initialData: IReturnDeclaration | IReturnDeclarationTransfer, parentProjectState: ProjectState);
|
|
35
35
|
static repository: IEditableEntityPersistanceRepository;
|
|
36
|
+
static type: EntityType.ReturnDeclaration;
|
|
37
|
+
static USER_MANAGED_PARENT_TYPES: EntityType[];
|
|
38
|
+
static PARENT_TYPES: EntityType[];
|
|
36
39
|
static MUTABLE_BASE_PROPERTIES: string[];
|
|
37
40
|
static INMUTABLE_BASE_PROPERTIES: string[];
|
|
38
41
|
static BASE_PROPERTIES: string[];
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType,
|
|
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,8 +23,11 @@ export declare class ReturnStatementState implements IReturnStatement, UserManag
|
|
|
23
23
|
parent: EntityWithLogicScopeState;
|
|
24
24
|
initialized: boolean;
|
|
25
25
|
suggestion: boolean;
|
|
26
|
-
constructor(
|
|
26
|
+
constructor(initialData: IReturnStatement | IReturnStatementTransfer, parentProjectState: ProjectState);
|
|
27
27
|
static repository: IEditableEntityPersistanceRepository;
|
|
28
|
+
static type: EntityType.ReturnStatement;
|
|
29
|
+
static USER_MANAGED_PARENT_TYPES: EntityType[];
|
|
30
|
+
static PARENT_TYPES: EntityType[];
|
|
28
31
|
static MUTABLE_BASE_PROPERTIES: string[];
|
|
29
32
|
static INMUTABLE_BASE_PROPERTIES: string[];
|
|
30
33
|
static BASE_PROPERTIES: string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType,
|
|
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,8 +32,11 @@ export declare class SearchState implements ISearch, BaseState, UserManagedEntit
|
|
|
32
32
|
errors: EntityError[];
|
|
33
33
|
project: ProjectState;
|
|
34
34
|
initialized: boolean;
|
|
35
|
-
constructor(
|
|
35
|
+
constructor(initialData: ISearch | ISearchTransfer, parentProjectState: ProjectState);
|
|
36
36
|
static repository: IEditableEntityPersistanceRepository;
|
|
37
|
+
static type: EntityType.Search;
|
|
38
|
+
static USER_MANAGED_PARENT_TYPES: EntityType[];
|
|
39
|
+
static PARENT_TYPES: EntityType[];
|
|
37
40
|
static MUTABLE_BASE_PROPERTIES: string[];
|
|
38
41
|
static INMUTABLE_BASE_PROPERTIES: string[];
|
|
39
42
|
static BASE_PROPERTIES: string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType,
|
|
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,8 +26,11 @@ export declare class ValueDescriptorState implements IValueDescriptor, UserManag
|
|
|
26
26
|
errors: EntityError[];
|
|
27
27
|
parent: ActionDescriptorState | LoopState | SearchState | null;
|
|
28
28
|
initialized: boolean;
|
|
29
|
-
constructor(
|
|
29
|
+
constructor(initialData: IValueDescriptor | IValueDescriptorTransfer, parentProjectState: ProjectState);
|
|
30
30
|
static repository: IEditableEntityPersistanceRepository;
|
|
31
|
+
static type: EntityType.ValueDescriptor;
|
|
32
|
+
static USER_MANAGED_PARENT_TYPES: EntityType[];
|
|
33
|
+
static PARENT_TYPES: EntityType[];
|
|
31
34
|
static MUTABLE_BASE_PROPERTIES: string[];
|
|
32
35
|
static INMUTABLE_BASE_PROPERTIES: string[];
|
|
33
36
|
static BASE_PROPERTIES: string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType,
|
|
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,8 +40,11 @@ export declare class VariableDeclarationState implements IVariableDeclaration, B
|
|
|
40
40
|
project: ProjectState;
|
|
41
41
|
initialized: boolean;
|
|
42
42
|
suggestion: boolean;
|
|
43
|
-
constructor(
|
|
43
|
+
constructor(initialData: IVariableDeclaration | IVariableDeclarationTransfer, parentProjectState: ProjectState);
|
|
44
44
|
static repository: IEditableEntityPersistanceRepository;
|
|
45
|
+
static type: EntityType.VariableDeclaration;
|
|
46
|
+
static USER_MANAGED_PARENT_TYPES: EntityType[];
|
|
47
|
+
static PARENT_TYPES: EntityType[];
|
|
45
48
|
static MUTABLE_BASE_PROPERTIES: string[];
|
|
46
49
|
static INMUTABLE_BASE_PROPERTIES: string[];
|
|
47
50
|
static BASE_PROPERTIES: string[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType,
|
|
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,8 +35,11 @@ export declare class VariableInstanceState implements IVariableInstance, BaseSta
|
|
|
35
35
|
parent: EntityWithLogicScopeState | ProjectState;
|
|
36
36
|
initialized: boolean;
|
|
37
37
|
suggestion: boolean;
|
|
38
|
-
constructor(
|
|
38
|
+
constructor(initialData: IVariableInstance | IVariableInstanceTransfer, parentProjectState: ProjectState);
|
|
39
39
|
static repository: IEditableEntityPersistanceRepository;
|
|
40
|
+
static type: EntityType.VariableInstance;
|
|
41
|
+
static USER_MANAGED_PARENT_TYPES: EntityType[];
|
|
42
|
+
static PARENT_TYPES: EntityType[];
|
|
40
43
|
static MUTABLE_BASE_PROPERTIES: string[];
|
|
41
44
|
static INMUTABLE_BASE_PROPERTIES: string[];
|
|
42
45
|
static BASE_PROPERTIES: string[];
|
|
@@ -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.
|
|
3
|
+
"version": "0.0.6142",
|
|
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",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@elyx-code/definitions": "^0.0.7956",
|
|
28
28
|
"axios": "^1.6.5",
|
|
29
|
+
"dayjs": "^1.11.13",
|
|
29
30
|
"pluralize": "^8.0.0",
|
|
30
31
|
"short-uuid": "^5.2.0",
|
|
31
32
|
"underscore": "^1.13.7",
|