@elyx-code/project-logic-tree 0.0.6033 → 0.0.6035
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/built-in-base-entities/ids.d.ts +60 -0
- package/dist/definitions/built-in-base-entities/loops/counted/body.d.ts +7 -0
- package/dist/definitions/built-in-base-entities/loops/counted/index.d.ts +2 -0
- package/dist/definitions/built-in-base-entities/loops/counted/loop.d.ts +9 -0
- package/dist/definitions/built-in-base-entities/loops/index.d.ts +4 -1
- package/dist/definitions/built-in-base-entities/loops/list/body.d.ts +11 -0
- package/dist/definitions/built-in-base-entities/loops/list/index.d.ts +2 -0
- package/dist/definitions/built-in-base-entities/loops/list/loop.d.ts +7 -0
- package/dist/definitions/built-in-base-entities/loops/manual-flow/body.d.ts +7 -0
- package/dist/definitions/built-in-base-entities/loops/manual-flow/index.d.ts +2 -0
- package/dist/definitions/built-in-base-entities/loops/manual-flow/loop.d.ts +3 -0
- package/dist/definitions/built-in-base-entities/loops/object-keys-loop/body.d.ts +11 -0
- package/dist/definitions/built-in-base-entities/loops/object-keys-loop/index.d.ts +2 -0
- package/dist/definitions/built-in-base-entities/loops/object-keys-loop/loop.d.ts +7 -0
- package/dist/definitions/built-in-base-entities/loops/object-values-loop/body.d.ts +11 -0
- package/dist/definitions/built-in-base-entities/loops/object-values-loop/index.d.ts +2 -0
- package/dist/definitions/built-in-base-entities/loops/object-values-loop/loop.d.ts +7 -0
- package/dist/definitions/built-in-base-entities/loops/string/body.d.ts +11 -0
- package/dist/definitions/built-in-base-entities/loops/string/index.d.ts +2 -0
- package/dist/definitions/built-in-base-entities/loops/string/loop.d.ts +7 -0
- package/dist/definitions/types/data-type.d.ts +3 -2
- package/dist/definitions/types/function.d.ts +8 -1
- package/dist/definitions/types/return.d.ts +5 -1
- package/dist/index.js +11388 -10167
- package/dist/index.umd.cjs +187 -187
- package/dist/tree/state/action-descriptor/action-descriptor.d.ts +2 -5
- package/dist/tree/state/action-descriptor/validation/validation-schema.d.ts +16 -16
- package/dist/tree/state/argument-declaration/argument-declaration.d.ts +5 -5
- package/dist/tree/state/base.d.ts +2 -5
- package/dist/tree/state/break-statement/break-statement.d.ts +2 -5
- package/dist/tree/state/condition/condition.d.ts +2 -5
- package/dist/tree/state/continue-statement/continue-statement.d.ts +2 -5
- package/dist/tree/state/custom-entity/custom-entity.d.ts +2 -5
- package/dist/tree/state/data-type/data-type.d.ts +5 -8
- package/dist/tree/state/function-call/function-call.d.ts +2 -5
- package/dist/tree/state/function-declaration/function-declaration.d.ts +3 -5
- package/dist/tree/state/global-event/global-event.d.ts +2 -5
- package/dist/tree/state/global-event/validation/validation-schema.d.ts +16 -16
- package/dist/tree/state/input-map/input-map.d.ts +2 -5
- package/dist/tree/state/installed-project/installed-project.d.ts +2 -5
- package/dist/tree/state/internal-call/internal-call.d.ts +2 -5
- package/dist/tree/state/loop/loop.d.ts +4 -4
- package/dist/tree/state/operation/operation.d.ts +2 -5
- package/dist/tree/state/output-map/output-map.d.ts +2 -5
- package/dist/tree/state/primitive-value/primitive-value.d.ts +4 -5
- package/dist/tree/state/project/project.d.ts +3 -5
- package/dist/tree/state/property/property.d.ts +2 -5
- package/dist/tree/state/return-declaration/return-declaration.d.ts +5 -5
- package/dist/tree/state/return-statement/return-statement.d.ts +2 -5
- package/dist/tree/state/search/search.d.ts +2 -5
- package/dist/tree/state/value-descriptor/value-descriptor.d.ts +2 -5
- package/dist/tree/state/variable-declaration/variable-declaration.d.ts +2 -5
- package/dist/tree/state/variable-instance/variable-instance.d.ts +2 -5
- package/package.json +1 -1
- package/dist/definitions/built-in-base-entities/loops/list.d.ts +0 -9
- package/dist/definitions/built-in-base-entities/loops/manual-flow.d.ts +0 -7
|
@@ -17,7 +17,7 @@ import { BuiltInBaseEntityState } from '../built-in-base-entity';
|
|
|
17
17
|
import { EntityError, EntityGenerationError } from '../error';
|
|
18
18
|
import { ActionDescriptorState } from '../action-descriptor';
|
|
19
19
|
import { ValueDescriptorState } from '../value-descriptor';
|
|
20
|
-
import { IModuleInjection } from '../types';
|
|
20
|
+
import { IChangeSet, IModuleInjection } from '../types';
|
|
21
21
|
|
|
22
22
|
export interface UUIDModule {
|
|
23
23
|
isBackup?: boolean;
|
|
@@ -49,6 +49,7 @@ export declare class ProjectState implements IProject, UserManagedEntityStateFun
|
|
|
49
49
|
operationDeclarations: ActionDescriptorState[];
|
|
50
50
|
globalEventActionDescriptors: ActionDescriptorState[];
|
|
51
51
|
loopDeclarations: ActionDescriptorState[];
|
|
52
|
+
loopDeclarationsBodies: ActionDescriptorState[];
|
|
52
53
|
conditionDeclarations: ActionDescriptorState[];
|
|
53
54
|
valueDescriptors: ValueDescriptorState[];
|
|
54
55
|
dataTypes: DataTypeState[];
|
|
@@ -86,10 +87,7 @@ export declare class ProjectState implements IProject, UserManagedEntityStateFun
|
|
|
86
87
|
errors: EntityGenerationError[];
|
|
87
88
|
modifiedData: Partial<IProjectGenerationTarget>;
|
|
88
89
|
};
|
|
89
|
-
addSelfToProject():
|
|
90
|
-
affected: EntityState[];
|
|
91
|
-
self: ProjectState;
|
|
92
|
-
};
|
|
90
|
+
addSelfToProject(): IChangeSet<ProjectState>;
|
|
93
91
|
get instancesList(): EntityState[];
|
|
94
92
|
isOperationDeclaration(entity: ActionDescriptorState): boolean;
|
|
95
93
|
isGlobalEventActionDescriptor(entity: ActionDescriptorState): boolean;
|
|
@@ -8,7 +8,7 @@ import { CustomEntityState } from '../custom-entity';
|
|
|
8
8
|
import { BuiltInBaseEntityState } from '../built-in-base-entity';
|
|
9
9
|
import { EntityError, EntityGenerationError } from '../error';
|
|
10
10
|
import { PrimitiveValueState } from '../primitive-value';
|
|
11
|
-
import { EntityState } from '../types';
|
|
11
|
+
import { EntityState, IChangeSet } from '../types';
|
|
12
12
|
|
|
13
13
|
export declare class PropertyState implements IProperty, UserManagedEntityStateFunctionality, BaseState, ChildEntityState, EntityWithValueClass {
|
|
14
14
|
initialData: IProperty | IPropertyTransfer;
|
|
@@ -53,10 +53,7 @@ export declare class PropertyState implements IProperty, UserManagedEntityStateF
|
|
|
53
53
|
errors: EntityGenerationError[];
|
|
54
54
|
modifiedData: Partial<IPropertyGenerationTarget>;
|
|
55
55
|
};
|
|
56
|
-
addSelfToProject():
|
|
57
|
-
affected: EntityState[];
|
|
58
|
-
self: PropertyState;
|
|
59
|
-
};
|
|
56
|
+
addSelfToProject(): IChangeSet<PropertyState>;
|
|
60
57
|
setParent(parent: CustomEntityState | PrimitiveEntityState | BuiltInBaseEntityState): PropertyState;
|
|
61
58
|
initChildren(): PropertyState;
|
|
62
59
|
subscribe(): PropertyState;
|
|
@@ -2,13 +2,14 @@ import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType,
|
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
3
|
import { BaseState, ChildEntityState, EntityWithValueClass, UserManagedEntityStateFunctionality, ValueReadingEntityClass } from '../base';
|
|
4
4
|
import { DataTypeState } from '../data-type';
|
|
5
|
-
import { EntityState, ValueWritingEntityState } from '../types';
|
|
5
|
+
import { EntityState, IChangeSet, ValueWritingEntityState } from '../types';
|
|
6
6
|
import { ProjectState } from '../project/project';
|
|
7
7
|
import { ReturnStatementState } from '../return-statement';
|
|
8
8
|
import { BreakStatementState } from '../break-statement';
|
|
9
9
|
import { ContinueStatementState } from '../continue-statement';
|
|
10
10
|
import { EntityError, EntityGenerationError } from '../../state/error';
|
|
11
11
|
import { PrimitiveValueState } from '../primitive-value';
|
|
12
|
+
import { ValueDescriptorState } from '../value-descriptor';
|
|
12
13
|
|
|
13
14
|
export declare class ReturnDeclarationState implements IReturnDeclaration, UserManagedEntityStateFunctionality, ValueReadingEntityClass, BaseState, ChildEntityState, EntityWithValueClass {
|
|
14
15
|
initialData: IReturnDeclaration | IReturnDeclarationTransfer;
|
|
@@ -22,6 +23,7 @@ export declare class ReturnDeclarationState implements IReturnDeclaration, UserM
|
|
|
22
23
|
readonly type: EntityType.ReturnDeclaration;
|
|
23
24
|
dataType: DataTypeState | null;
|
|
24
25
|
readsValue: ValueWritingEntityState | null;
|
|
26
|
+
implements: ValueDescriptorState | null;
|
|
25
27
|
project: ProjectState;
|
|
26
28
|
errors: EntityError[];
|
|
27
29
|
parent: ReturnStatementState | BreakStatementState | ContinueStatementState;
|
|
@@ -50,11 +52,9 @@ export declare class ReturnDeclarationState implements IReturnDeclaration, UserM
|
|
|
50
52
|
errors: EntityGenerationError[];
|
|
51
53
|
modifiedData: Partial<IReturnDeclarationGenerationTarget>;
|
|
52
54
|
};
|
|
53
|
-
addSelfToProject():
|
|
54
|
-
affected: EntityState[];
|
|
55
|
-
self: ReturnDeclarationState;
|
|
56
|
-
};
|
|
55
|
+
addSelfToProject(): IChangeSet<ReturnDeclarationState>;
|
|
57
56
|
setParent(parent: ReturnStatementState | BreakStatementState | ContinueStatementState): ReturnDeclarationState;
|
|
57
|
+
setImplements(implementsEntity: ValueDescriptorState): ReturnDeclarationState;
|
|
58
58
|
initChildren(): ReturnDeclarationState;
|
|
59
59
|
setValueWriter(valueWriter: ValueWritingEntityState): ReturnDeclarationState;
|
|
60
60
|
removeValueWriter(): ReturnDeclarationState;
|
|
@@ -3,7 +3,7 @@ import { ZodError } from 'zod';
|
|
|
3
3
|
import { BaseCanvasDraggableState, BaseState, CallableEntityClass, ChildEntityState, UserManagedEntityStateFunctionality } from '../base';
|
|
4
4
|
import { FunctionDeclarationState } from '../function-declaration';
|
|
5
5
|
import { ReturnDeclarationState } from '../return-declaration';
|
|
6
|
-
import { CallerEntityState, EntityState, EntityWithLogicScopeState, EntryPointEntityState, PassThroughCallableEntityState } from '../types';
|
|
6
|
+
import { CallerEntityState, EntityState, EntityWithLogicScopeState, EntryPointEntityState, IChangeSet, PassThroughCallableEntityState } from '../types';
|
|
7
7
|
import { ProjectState } from '../project/project';
|
|
8
8
|
import { EntityError, EntityGenerationError } from '../../state/error';
|
|
9
9
|
|
|
@@ -47,10 +47,7 @@ export declare class ReturnStatementState implements IReturnStatement, UserManag
|
|
|
47
47
|
errors: EntityGenerationError[];
|
|
48
48
|
modifiedData: Partial<IReturnStatementGenerationTarget>;
|
|
49
49
|
};
|
|
50
|
-
addSelfToProject():
|
|
51
|
-
affected: EntityState[];
|
|
52
|
-
self: ReturnStatementState;
|
|
53
|
-
};
|
|
50
|
+
addSelfToProject(): IChangeSet<ReturnStatementState>;
|
|
54
51
|
get calledBy(): CallerEntityState[];
|
|
55
52
|
addSuccessCaller(caller: PassThroughCallableEntityState): ReturnStatementState;
|
|
56
53
|
addErrorCaller(caller: PassThroughCallableEntityState): ReturnStatementState;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, ISearch, ISearchGenerationTarget, ISearchReference, ISearchShallowTransfer, ISearchTransfer, SearchTypesUnion } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
3
|
import { BaseCanvasDraggableState, BaseState, CallableEntityClass, ChildEntityState, PassThroughCallableEntityClass, UserManagedEntityStateFunctionality } from '../base';
|
|
4
|
-
import { CallableEntityState, CallerEntityState, EntityState, EntityWithLogicScopeState, EntryPointEntityState, PassThroughCallableEntityState } from '../types';
|
|
4
|
+
import { CallableEntityState, CallerEntityState, EntityState, EntityWithLogicScopeState, EntryPointEntityState, IChangeSet, PassThroughCallableEntityState } from '../types';
|
|
5
5
|
import { ActionInputMapState } from '../input-map';
|
|
6
6
|
import { ActionOutputMapState } from '../output-map';
|
|
7
7
|
import { ProjectState } from '../project/project';
|
|
@@ -56,10 +56,7 @@ export declare class SearchState implements ISearch, BaseState, UserManagedEntit
|
|
|
56
56
|
errors: EntityGenerationError[];
|
|
57
57
|
modifiedData: Partial<ISearchGenerationTarget>;
|
|
58
58
|
};
|
|
59
|
-
addSelfToProject():
|
|
60
|
-
affected: EntityState[];
|
|
61
|
-
self: SearchState;
|
|
62
|
-
};
|
|
59
|
+
addSelfToProject(): IChangeSet<SearchState>;
|
|
63
60
|
get calledBy(): CallerEntityState[];
|
|
64
61
|
removeInput(input: ActionInputMapState): SearchState;
|
|
65
62
|
addInput(input: ActionInputMapState): SearchState;
|
|
@@ -5,7 +5,7 @@ import { DataTypeState } from '../data-type';
|
|
|
5
5
|
import { ProjectState } from '../project/project';
|
|
6
6
|
import { ActionDescriptorState } from '../action-descriptor';
|
|
7
7
|
import { EntityError, EntityGenerationError } from '../error';
|
|
8
|
-
import { EntityState } from '../types';
|
|
8
|
+
import { EntityState, IChangeSet } from '../types';
|
|
9
9
|
import { PrimitiveValueState } from '../primitive-value';
|
|
10
10
|
import { LoopState } from '../loop';
|
|
11
11
|
import { SearchState } from '../search';
|
|
@@ -48,10 +48,7 @@ export declare class ValueDescriptorState implements IValueDescriptor, UserManag
|
|
|
48
48
|
errors: EntityGenerationError[];
|
|
49
49
|
modifiedData: Partial<IValueDescriptorGenerationTarget>;
|
|
50
50
|
};
|
|
51
|
-
addSelfToProject():
|
|
52
|
-
affected: EntityState[];
|
|
53
|
-
self: ValueDescriptorState;
|
|
54
|
-
};
|
|
51
|
+
addSelfToProject(): IChangeSet<ValueDescriptorState>;
|
|
55
52
|
setParent(parent: ActionDescriptorState | LoopState | SearchState): ValueDescriptorState;
|
|
56
53
|
initChildren(): ValueDescriptorState;
|
|
57
54
|
subscribe(): ValueDescriptorState;
|
|
@@ -2,7 +2,7 @@ import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType,
|
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
3
|
import { BaseCanvasDraggableState, BaseState, CallableEntityClass, ChildEntityState, EntityWithValueClass, PassThroughCallableEntityClass, UserManagedEntityStateFunctionality, ValueReadingEntityClass, ValueWritingEntityClass } from '../base';
|
|
4
4
|
import { DataTypeState } from '../data-type';
|
|
5
|
-
import { CallableEntityState, CallerEntityState, EntityState, EntityWithLogicScopeState, EntryPointEntityState, PassThroughCallableEntityState, ValueReadingEntityState, ValueWritingEntityState } from '../types';
|
|
5
|
+
import { CallableEntityState, CallerEntityState, EntityState, EntityWithLogicScopeState, EntryPointEntityState, IChangeSet, PassThroughCallableEntityState, ValueReadingEntityState, ValueWritingEntityState } from '../types';
|
|
6
6
|
import { ProjectState } from '../project/project';
|
|
7
7
|
import { VariableOutputMapState } from '../output-map';
|
|
8
8
|
import { InternalCallState } from '../internal-call';
|
|
@@ -60,10 +60,7 @@ export declare class VariableDeclarationState implements IVariableDeclaration, B
|
|
|
60
60
|
errors: EntityGenerationError[];
|
|
61
61
|
modifiedData: Partial<IVariableDeclarationGenerationTarget>;
|
|
62
62
|
};
|
|
63
|
-
addSelfToProject():
|
|
64
|
-
affected: EntityState[];
|
|
65
|
-
self: VariableDeclarationState;
|
|
66
|
-
};
|
|
63
|
+
addSelfToProject(): IChangeSet<VariableDeclarationState>;
|
|
67
64
|
get calledBy(): CallerEntityState[];
|
|
68
65
|
get usedInputs(): VariableInputMapState[];
|
|
69
66
|
get unusedInputs(): VariableInputMapState[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, IVariableInstance, IVariableInstanceGenerationTarget, IVariableInstanceReference, IVariableInstanceShallowTransfer, IVariableInstanceTransfer, VariableInstanceTypesUnion } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
3
|
import { BaseCanvasDraggableState, BaseState, CallableEntityClass, ChildEntityState, EntityWithValueClass, PassThroughCallableEntityClass, UserManagedEntityStateFunctionality, ValueReadingEntityClass, ValueWritingEntityClass } from '../base';
|
|
4
|
-
import { CallableEntityState, CallerEntityState, EntityState, EntityWithLogicScopeState, EntryPointEntityState, PassThroughCallableEntityState, ValueReadingEntityState, ValueWritingEntityState } from '../types';
|
|
4
|
+
import { CallableEntityState, CallerEntityState, EntityState, EntityWithLogicScopeState, EntryPointEntityState, IChangeSet, PassThroughCallableEntityState, ValueReadingEntityState, ValueWritingEntityState } from '../types';
|
|
5
5
|
import { ProjectState } from '../project';
|
|
6
6
|
import { VariableInputMapState } from '../input-map';
|
|
7
7
|
import { VariableOutputMapState } from '../output-map';
|
|
@@ -57,10 +57,7 @@ export declare class VariableInstanceState implements IVariableInstance, BaseSta
|
|
|
57
57
|
errors: EntityGenerationError[];
|
|
58
58
|
modifiedData: Partial<IVariableInstanceGenerationTarget>;
|
|
59
59
|
};
|
|
60
|
-
addSelfToProject():
|
|
61
|
-
affected: EntityState[];
|
|
62
|
-
self: VariableInstanceState;
|
|
63
|
-
};
|
|
60
|
+
addSelfToProject(): IChangeSet<VariableInstanceState>;
|
|
64
61
|
get calledBy(): CallerEntityState[];
|
|
65
62
|
get usedInputs(): VariableInputMapState[];
|
|
66
63
|
get unusedInputs(): VariableInputMapState[];
|
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.6035",
|
|
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",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IArgumentDeclarationReference, IDataTypeTransfer, IActionDescriptorReference, IActionDescriptorTransfer, IValueDescriptorTransfer } from '../..';
|
|
2
|
-
|
|
3
|
-
export declare const iterateOverListActionDescriptorReturnDeclarationParentRef: IActionDescriptorReference;
|
|
4
|
-
export declare const iterateOverListActionDescriptorReturnDeclaration: IValueDescriptorTransfer;
|
|
5
|
-
export declare const iterateOverListActionDescriptorListArgumentDeclarationDataTypeParentRef: IArgumentDeclarationReference;
|
|
6
|
-
export declare const iterateOverListActionDescriptorListArgumentDeclarationDataType: IDataTypeTransfer;
|
|
7
|
-
export declare const iterateOverListActionDescriptorListArgumentDeclarationParentRef: IActionDescriptorReference;
|
|
8
|
-
export declare const iterateOverListActionDescriptorListArgumentDeclaration: IValueDescriptorTransfer;
|
|
9
|
-
export declare const iterateOverListActionDescriptor: IActionDescriptorTransfer;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { IDataTypeTransfer, IActionDescriptorReference, IActionDescriptorTransfer, IReturnDeclarationReference, IValueDescriptorTransfer } from '../..';
|
|
2
|
-
|
|
3
|
-
export declare const manualFlowActionDescriptorDeclarationReturnDeclarationDataTypeParentRef: IReturnDeclarationReference;
|
|
4
|
-
export declare const manualFlowActionDescriptorDeclarationReturnDeclarationDataType: IDataTypeTransfer;
|
|
5
|
-
export declare const manualFlowActionDescriptorDeclarationReturnDeclarationParentRef: IActionDescriptorReference;
|
|
6
|
-
export declare const manualFlowActionDescriptorDeclarationReturnDeclaration: IValueDescriptorTransfer;
|
|
7
|
-
export declare const manualFlowActionDescriptor: IActionDescriptorTransfer;
|