@elyx-code/project-logic-tree 0.0.6034 → 0.0.6036
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/data-type.d.ts +1 -0
- package/dist/index.js +1974 -1651
- package/dist/index.umd.cjs +93 -93
- package/dist/tree/state/action-descriptor/action-descriptor.d.ts +2 -5
- package/dist/tree/state/argument-declaration/argument-declaration.d.ts +2 -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 +3 -6
- package/dist/tree/state/function-call/function-call.d.ts +2 -5
- package/dist/tree/state/function-declaration/function-declaration.d.ts +2 -5
- package/dist/tree/state/global-event/global-event.d.ts +2 -5
- 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 +1 -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 +2 -5
- package/dist/tree/state/property/property.d.ts +2 -5
- package/dist/tree/state/return-declaration/return-declaration.d.ts +2 -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
|
@@ -8,7 +8,7 @@ import { CustomEntityState } from '../custom-entity';
|
|
|
8
8
|
import { PrimitiveEntityState } from '../primitive-entity';
|
|
9
9
|
import { BuiltInBaseEntityState } from '../built-in-base-entity';
|
|
10
10
|
import { EntityError, EntityGenerationError } from '../error';
|
|
11
|
-
import { EntityState, EntityWithLogicScopeState } from '../types';
|
|
11
|
+
import { EntityState, EntityWithLogicScopeState, IChangeSet } from '../types';
|
|
12
12
|
import { LoopState } from '../loop';
|
|
13
13
|
import { OperationState } from '../operation';
|
|
14
14
|
import { ConditionState } from '../condition';
|
|
@@ -59,10 +59,7 @@ export declare class ActionDescriptorState implements IActionDescriptor, UserMan
|
|
|
59
59
|
errors: EntityGenerationError[];
|
|
60
60
|
modifiedData: Partial<IActionDescriptorGenerationTarget>;
|
|
61
61
|
};
|
|
62
|
-
addSelfToProject():
|
|
63
|
-
affected: EntityState[];
|
|
64
|
-
self: ActionDescriptorState;
|
|
65
|
-
};
|
|
62
|
+
addSelfToProject(): IChangeSet<ActionDescriptorState>;
|
|
66
63
|
setParent(parent: CustomEntityState | PrimitiveEntityState | BuiltInBaseEntityState | DataTypeState): ActionDescriptorState;
|
|
67
64
|
setDynamicReturnTypes(dataType: DataTypeState): ActionDescriptorState;
|
|
68
65
|
setDynamicArgumentTypes(dataType: DataTypeState): ActionDescriptorState;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, IArgumentDeclaration, IArgumentDeclarationGenerationTarget, IArgumentDeclarationReference, IArgumentDeclarationShallowTransfer, IArgumentDeclarationTransfer, ArgumentDeclarationTypesUnion } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
3
|
import { BaseState, ChildEntityState, EntityWithValueClass, UserManagedEntityStateFunctionality, ValueWritingEntityClass } from '../base';
|
|
4
|
-
import { EntityState, EntryPointEntityState, ValueReadingEntityState } from '../types';
|
|
4
|
+
import { EntityState, EntryPointEntityState, IChangeSet, ValueReadingEntityState } from '../types';
|
|
5
5
|
import { DataTypeState } from '../data-type';
|
|
6
6
|
import { ProjectState } from '../project/project';
|
|
7
7
|
import { SearchState } from '../search';
|
|
@@ -49,10 +49,7 @@ export declare class ArgumentDeclarationState implements IArgumentDeclaration, U
|
|
|
49
49
|
errors: EntityGenerationError[];
|
|
50
50
|
modifiedData: Partial<IArgumentDeclarationGenerationTarget>;
|
|
51
51
|
};
|
|
52
|
-
addSelfToProject():
|
|
53
|
-
affected: EntityState[];
|
|
54
|
-
self: ArgumentDeclarationState;
|
|
55
|
-
};
|
|
52
|
+
addSelfToProject(): IChangeSet<ArgumentDeclarationState>;
|
|
56
53
|
addValueReader(entity: ValueReadingEntityState): ArgumentDeclarationState;
|
|
57
54
|
removeValueReader(valueReader: ValueReadingEntityState): ArgumentDeclarationState;
|
|
58
55
|
setParent(parent: EntryPointEntityState | SearchState): ArgumentDeclarationState;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EntityId, EntityType, EntityVersion, IGenericBase, Element, ElementTransfer, IGenericReference, ElementShallowTransfer, ElementGenerationTarget, ElementTypesUnion } from '../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
|
-
import { CallableEntityState, CallerEntityState, CanvasEntityState, EntityState, InputMapState, ValueReadingEntityState, ValueWritingEntityState } from '.';
|
|
3
|
+
import { CallableEntityState, CallerEntityState, CanvasEntityState, EntityState, IChangeSet, InputMapState, ValueReadingEntityState, ValueWritingEntityState } from '.';
|
|
4
4
|
import { ProjectState } from './project/project';
|
|
5
5
|
import { EntityError } from './error';
|
|
6
6
|
import { PrimitiveValueState } from './primitive-value';
|
|
@@ -31,10 +31,7 @@ export declare abstract class SharedStateFunctionality {
|
|
|
31
31
|
abstract getShallowErrors(): EntityError[];
|
|
32
32
|
}
|
|
33
33
|
export declare abstract class UserManagedEntityStateFunctionality {
|
|
34
|
-
abstract addSelfToProject():
|
|
35
|
-
affected: EntityState[];
|
|
36
|
-
self: UserManagedEntityStateFunctionality;
|
|
37
|
-
};
|
|
34
|
+
abstract addSelfToProject(): IChangeSet<UserManagedEntityStateFunctionality>;
|
|
38
35
|
abstract sync(data: Partial<IGenericBase>): SharedStateFunctionality;
|
|
39
36
|
abstract create(): Promise<SharedStateFunctionality>;
|
|
40
37
|
abstract update(data: Partial<ElementTypesUnion>): Promise<SharedStateFunctionality>;
|
|
@@ -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, EntryPointEntityState, PassThroughCallableEntityState } from '../types';
|
|
6
|
+
import { CallerEntityState, EntityState, EntryPointEntityState, IChangeSet, PassThroughCallableEntityState } from '../types';
|
|
7
7
|
import { ProjectState } from '../project/project';
|
|
8
8
|
import { LoopState } from '../loop';
|
|
9
9
|
import { EntityError, EntityGenerationError } from '../../state/error';
|
|
@@ -48,10 +48,7 @@ export declare class BreakStatementState implements IBreakStatement, UserManaged
|
|
|
48
48
|
errors: EntityGenerationError[];
|
|
49
49
|
modifiedData: Partial<IBreakStatementGenerationTarget>;
|
|
50
50
|
};
|
|
51
|
-
addSelfToProject():
|
|
52
|
-
affected: EntityState[];
|
|
53
|
-
self: BreakStatementState;
|
|
54
|
-
};
|
|
51
|
+
addSelfToProject(): IChangeSet<BreakStatementState>;
|
|
55
52
|
get calledBy(): CallerEntityState[];
|
|
56
53
|
addSuccessCaller(caller: PassThroughCallableEntityState): BreakStatementState;
|
|
57
54
|
addErrorCaller(caller: PassThroughCallableEntityState): BreakStatementState;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EntityId, EntityType, EntityVersion, ICondition, IConditionTransfer, IConditionReference, IConditionShallowTransfer, ElementShallowTransfer, IConditionGenerationTarget, ElementGenerationTarget, ConditionTypesUnion } 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 { ProjectState } from '../project/project';
|
|
7
7
|
import { EntityError, EntityGenerationError } from '../../state/error';
|
|
@@ -49,10 +49,7 @@ export declare class ConditionState implements ICondition, UserManagedEntityStat
|
|
|
49
49
|
errors: EntityGenerationError[];
|
|
50
50
|
modifiedData: Partial<IConditionGenerationTarget>;
|
|
51
51
|
};
|
|
52
|
-
addSelfToProject():
|
|
53
|
-
affected: EntityState[];
|
|
54
|
-
self: ConditionState;
|
|
55
|
-
};
|
|
52
|
+
addSelfToProject(): IChangeSet<ConditionState>;
|
|
56
53
|
get calledBy(): CallerEntityState[];
|
|
57
54
|
removeInput(input: ActionInputMapState): ConditionState;
|
|
58
55
|
addInput(input: ActionInputMapState): ConditionState;
|
|
@@ -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, EntryPointEntityState, PassThroughCallableEntityState } from '../types';
|
|
6
|
+
import { CallerEntityState, EntityState, EntryPointEntityState, IChangeSet, PassThroughCallableEntityState } from '../types';
|
|
7
7
|
import { ProjectState } from '../project/project';
|
|
8
8
|
import { LoopState } from '../loop';
|
|
9
9
|
import { EntityError, EntityGenerationError } from '../../state/error';
|
|
@@ -48,10 +48,7 @@ export declare class ContinueStatementState implements IContinueStatement, UserM
|
|
|
48
48
|
errors: EntityGenerationError[];
|
|
49
49
|
modifiedData: Partial<IContinueStatementGenerationTarget>;
|
|
50
50
|
};
|
|
51
|
-
addSelfToProject():
|
|
52
|
-
affected: EntityState[];
|
|
53
|
-
self: ContinueStatementState;
|
|
54
|
-
};
|
|
51
|
+
addSelfToProject(): IChangeSet<ContinueStatementState>;
|
|
55
52
|
get calledBy(): CallerEntityState[];
|
|
56
53
|
addSuccessCaller(caller: PassThroughCallableEntityState): ContinueStatementState;
|
|
57
54
|
addErrorCaller(caller: PassThroughCallableEntityState): ContinueStatementState;
|
|
@@ -7,7 +7,7 @@ import { ProjectState } from '../project/project';
|
|
|
7
7
|
import { BuiltInBaseEntityState } from '../built-in-base-entity';
|
|
8
8
|
import { ActionDescriptorState } from '../action-descriptor';
|
|
9
9
|
import { EntityError, EntityGenerationError } from '../error';
|
|
10
|
-
import { EntityState } from '../types';
|
|
10
|
+
import { EntityState, IChangeSet } from '../types';
|
|
11
11
|
import { DataTypeState } from '../data-type';
|
|
12
12
|
import { VariableInputMapState } from '../input-map';
|
|
13
13
|
|
|
@@ -57,10 +57,7 @@ export declare class CustomEntityState implements BaseState, UserManagedEntitySt
|
|
|
57
57
|
errors: EntityGenerationError[];
|
|
58
58
|
modifiedData: Partial<ICustomEntityGenerationTarget>;
|
|
59
59
|
};
|
|
60
|
-
addSelfToProject():
|
|
61
|
-
affected: EntityState[];
|
|
62
|
-
self: CustomEntityState;
|
|
63
|
-
};
|
|
60
|
+
addSelfToProject(): IChangeSet<CustomEntityState>;
|
|
64
61
|
setParent(parent: ProjectState | DataTypeState): CustomEntityState;
|
|
65
62
|
removeProperty(property: PropertyState): CustomEntityState;
|
|
66
63
|
addMethod(method: FunctionDeclarationState): CustomEntityState;
|
|
@@ -60,10 +60,7 @@ export declare class DataTypeState implements IDataType, UserManagedEntityStateF
|
|
|
60
60
|
errors: EntityGenerationError[];
|
|
61
61
|
modifiedData: Partial<IDataTypeGenerationTarget>;
|
|
62
62
|
};
|
|
63
|
-
addSelfToProject():
|
|
64
|
-
affected: EntityState[];
|
|
65
|
-
self: DataTypeState;
|
|
66
|
-
};
|
|
63
|
+
addSelfToProject(): IChangeSet<DataTypeState>;
|
|
67
64
|
setParent(parent: PropertyState | ArgumentDeclarationState | ReturnDeclarationState | VariableDeclarationState | ActionDescriptorState | ValueDescriptorState | DataTypeState): DataTypeState;
|
|
68
65
|
removeChildGroup(child: DataTypeState): DataTypeState;
|
|
69
66
|
initChildren(): DataTypeState;
|
|
@@ -104,12 +101,12 @@ export declare class DataTypeState implements IDataType, UserManagedEntityStateF
|
|
|
104
101
|
getErrors(): EntityError[];
|
|
105
102
|
getShallowErrors(): EntityError[];
|
|
106
103
|
clone(parent?: PropertyState | VariableDeclarationState | ArgumentDeclarationState | ReturnDeclarationState | ActionDescriptorState | ValueDescriptorState | DataTypeState | null, newId?: string | null, subscribe?: boolean): DataTypeState;
|
|
107
|
-
merge(
|
|
104
|
+
merge(sourceEntity: DataTypeState): IChangeSet<DataTypeState>;
|
|
108
105
|
addToAndGroup(child: DataTypeState): DataTypeState;
|
|
109
106
|
addToOrGroup(child: DataTypeState): DataTypeState;
|
|
110
107
|
getDefaultValue(): PrimitiveValueState | null;
|
|
111
108
|
setDefaultValue(value: PrimitiveValueState): DataTypeState;
|
|
112
|
-
setEntity(entity: CustomEntityState | PrimitiveEntityState | ActionDescriptorState | BuiltInBaseEntityState): DataTypeState;
|
|
109
|
+
setEntity(entity: CustomEntityState | PrimitiveEntityState | ActionDescriptorState | BuiltInBaseEntityState | null): DataTypeState;
|
|
113
110
|
isResolved(): boolean;
|
|
114
111
|
inferFromInputs(inputs: VariableInputMapState[]): DataTypeState;
|
|
115
112
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EntityId, EntityType, EntityVersion, IFunctionCall, IFunctionCallTransfer, IFunctionCallReference, IFunctionCallShallowTransfer, ElementShallowTransfer, IFunctionCallGenerationTarget, ElementGenerationTarget, FunctionCallTypesUnion } 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, ValueReadingEntityState } from '../types';
|
|
4
|
+
import { CallableEntityState, CallerEntityState, EntityState, EntityWithLogicScopeState, EntryPointEntityState, IChangeSet, PassThroughCallableEntityState, ValueReadingEntityState } from '../types';
|
|
5
5
|
import { FunctionDeclarationState } from '../function-declaration';
|
|
6
6
|
import { ActionInputMapState } from '../input-map';
|
|
7
7
|
import { ActionOutputMapState } from '../output-map';
|
|
@@ -52,10 +52,7 @@ export declare class FunctionCallState implements IFunctionCall, BaseState, User
|
|
|
52
52
|
errors: EntityGenerationError[];
|
|
53
53
|
modifiedData: Partial<IFunctionCallGenerationTarget>;
|
|
54
54
|
};
|
|
55
|
-
addSelfToProject():
|
|
56
|
-
affected: EntityState[];
|
|
57
|
-
self: FunctionCallState;
|
|
58
|
-
};
|
|
55
|
+
addSelfToProject(): IChangeSet<FunctionCallState>;
|
|
59
56
|
get calledBy(): CallerEntityState[];
|
|
60
57
|
removeInput(input: ActionInputMapState): FunctionCallState;
|
|
61
58
|
addInput(input: ActionInputMapState): FunctionCallState;
|
|
@@ -3,7 +3,7 @@ import { ZodError } from 'zod';
|
|
|
3
3
|
import { BaseCanvasDraggableState, BaseState, ChildEntityState, EntityWithLogicScopeClass, EntryPointEntityClass, UserManagedEntityStateFunctionality } from '../base';
|
|
4
4
|
import { ArgumentDeclarationState } from '../argument-declaration';
|
|
5
5
|
import { ReturnStatementState } from '../return-statement';
|
|
6
|
-
import { CallableEntityState, CanvasEntityState, EntityState, EntityWithLogicScopeState, VariableState } from '../types';
|
|
6
|
+
import { CallableEntityState, CanvasEntityState, EntityState, EntityWithLogicScopeState, IChangeSet, VariableState } from '../types';
|
|
7
7
|
import { ProjectState } from '../project/project';
|
|
8
8
|
import { InstalledProjectState } from '../installed-project';
|
|
9
9
|
import { CustomEntityState } from '../custom-entity';
|
|
@@ -61,10 +61,7 @@ export declare class FunctionDeclarationState implements IFunctionDeclaration, B
|
|
|
61
61
|
errors: EntityGenerationError[];
|
|
62
62
|
modifiedData: Partial<IFunctionDeclarationGenerationTarget>;
|
|
63
63
|
};
|
|
64
|
-
addSelfToProject():
|
|
65
|
-
affected: EntityState[];
|
|
66
|
-
self: FunctionDeclarationState;
|
|
67
|
-
};
|
|
64
|
+
addSelfToProject(): IChangeSet<FunctionDeclarationState>;
|
|
68
65
|
replaceDetachedChild(existingChild: CanvasEntityState, newChild: CanvasEntityState): FunctionDeclarationState;
|
|
69
66
|
subscribeDetachedChild(child: CanvasEntityState): FunctionDeclarationState;
|
|
70
67
|
addInputDeclaration(input: ArgumentDeclarationState): FunctionDeclarationState;
|
|
@@ -2,7 +2,7 @@ import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType,
|
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
3
|
import { BaseCanvasDraggableState, BaseState, ChildEntityState, EntityWithLogicScopeClass, EntryPointEntityClass, UserManagedEntityStateFunctionality } from '../base';
|
|
4
4
|
import { ArgumentDeclarationState } from '../argument-declaration';
|
|
5
|
-
import { CallableEntityState, CanvasEntityState, EntityState } from '../types';
|
|
5
|
+
import { CallableEntityState, CanvasEntityState, EntityState, IChangeSet } from '../types';
|
|
6
6
|
import { ReturnStatementState } from '../return-statement';
|
|
7
7
|
import { ProjectState } from '../project/project';
|
|
8
8
|
import { InstalledProjectState } from '../installed-project';
|
|
@@ -52,10 +52,7 @@ export declare class GlobalEventState implements IGlobalEvent, UserManagedEntity
|
|
|
52
52
|
errors: EntityGenerationError[];
|
|
53
53
|
modifiedData: Partial<IGlobalEventGenerationTarget>;
|
|
54
54
|
};
|
|
55
|
-
addSelfToProject():
|
|
56
|
-
affected: EntityState[];
|
|
57
|
-
self: GlobalEventState;
|
|
58
|
-
};
|
|
55
|
+
addSelfToProject(): IChangeSet<GlobalEventState>;
|
|
59
56
|
replaceDetachedChild(existingChild: CanvasEntityState, newChild: CanvasEntityState): GlobalEventState;
|
|
60
57
|
subscribeDetachedChild(child: CanvasEntityState): GlobalEventState;
|
|
61
58
|
setParent(parent: ProjectState | InstalledProjectState): GlobalEventState;
|
|
@@ -2,7 +2,7 @@ import { EntityId, EntityType, EntityVersion, IInputMap, IInputMapTransfer, IAct
|
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
3
|
import { BaseState, ChildEntityState, EntityWithValueClass, UserManagedEntityStateFunctionality, ValueReadingEntityClass } from '../base';
|
|
4
4
|
import { ArgumentDeclarationState } from '../argument-declaration';
|
|
5
|
-
import { EntityState, PassThroughCallableEntityState, ValueWritingEntityState } from '../types';
|
|
5
|
+
import { EntityState, IChangeSet, PassThroughCallableEntityState, ValueWritingEntityState } from '../types';
|
|
6
6
|
import { ProjectState } from '../project/project';
|
|
7
7
|
import { VariableDeclarationState } from '../variable-declaration';
|
|
8
8
|
import { PropertyState } from '../property';
|
|
@@ -57,10 +57,7 @@ export declare class InputMapState implements IInputMap, ValueReadingEntityClass
|
|
|
57
57
|
errors: EntityGenerationError[];
|
|
58
58
|
modifiedData: Partial<IInputMapGenerationTarget>;
|
|
59
59
|
};
|
|
60
|
-
addSelfToProject():
|
|
61
|
-
affected: EntityState[];
|
|
62
|
-
self: InputMapState;
|
|
63
|
-
};
|
|
60
|
+
addSelfToProject(): IChangeSet<InputMapState>;
|
|
64
61
|
setParent(parent: PassThroughCallableEntityState): InputMapState;
|
|
65
62
|
setDeclaration(declaration: ArgumentDeclarationState | PropertyState | ValueDescriptorState | null): InputMapState;
|
|
66
63
|
initChildren(): InputMapState;
|
|
@@ -5,7 +5,7 @@ import { FunctionDeclarationState } from '../function-declaration';
|
|
|
5
5
|
import { GlobalEventState } from '../global-event';
|
|
6
6
|
import { ProjectState } from '../project/project';
|
|
7
7
|
import { EntityError, EntityGenerationError } from '../error';
|
|
8
|
-
import { EntityState } from '../types';
|
|
8
|
+
import { EntityState, IChangeSet } from '../types';
|
|
9
9
|
|
|
10
10
|
export declare class InstalledProjectState implements IInstalledProject, UserManagedEntityStateFunctionality, BaseState, BaseCanvasDraggableState, ChildEntityState {
|
|
11
11
|
initialData: IInstalledProject | IInstalledProjectTransfer;
|
|
@@ -46,10 +46,7 @@ export declare class InstalledProjectState implements IInstalledProject, UserMan
|
|
|
46
46
|
errors: EntityGenerationError[];
|
|
47
47
|
modifiedData: Partial<IInstalledProjectGenerationTarget>;
|
|
48
48
|
};
|
|
49
|
-
addSelfToProject():
|
|
50
|
-
affected: EntityState[];
|
|
51
|
-
self: InstalledProjectState;
|
|
52
|
-
};
|
|
49
|
+
addSelfToProject(): IChangeSet<InstalledProjectState>;
|
|
53
50
|
setParent(parent: ProjectState): InstalledProjectState;
|
|
54
51
|
initChildren(): InstalledProjectState;
|
|
55
52
|
subscribe(): InstalledProjectState;
|
|
@@ -3,7 +3,7 @@ import { ZodError } from 'zod';
|
|
|
3
3
|
import { BaseState, CallableEntityClass, ChildEntityState, PassThroughCallableEntityClass, UserManagedEntityStateFunctionality } from '../base';
|
|
4
4
|
import { ActionInputMapState } from '../input-map';
|
|
5
5
|
import { ActionOutputMapState } from '../output-map';
|
|
6
|
-
import { CallableEntityState, CallerEntityState, EntityState, EntryPointEntityState, PassThroughCallableEntityState, ValueReadingEntityState, VariableState } from '../types';
|
|
6
|
+
import { CallableEntityState, CallerEntityState, EntityState, EntryPointEntityState, IChangeSet, PassThroughCallableEntityState, ValueReadingEntityState, VariableState } from '../types';
|
|
7
7
|
import { ProjectState } from '../project/project';
|
|
8
8
|
import { FunctionDeclarationState } from '../function-declaration';
|
|
9
9
|
import { EntityError, EntityGenerationError } from '../error';
|
|
@@ -52,10 +52,7 @@ export declare class InternalCallState implements IInternalCall, UserManagedEnti
|
|
|
52
52
|
errors: EntityGenerationError[];
|
|
53
53
|
modifiedData: Partial<IInternalCallGenerationTarget>;
|
|
54
54
|
};
|
|
55
|
-
addSelfToProject():
|
|
56
|
-
affected: EntityState[];
|
|
57
|
-
self: InternalCallState;
|
|
58
|
-
};
|
|
55
|
+
addSelfToProject(): IChangeSet<InternalCallState>;
|
|
59
56
|
get calledBy(): CallerEntityState[];
|
|
60
57
|
removeInput(input: ActionInputMapState): InternalCallState;
|
|
61
58
|
addInput(input: ActionInputMapState): InternalCallState;
|
|
@@ -73,10 +73,7 @@ export declare class LoopState implements ILoop, BaseState, UserManagedEntitySta
|
|
|
73
73
|
errors: EntityGenerationError[];
|
|
74
74
|
modifiedData: Partial<ILoopGenerationTarget>;
|
|
75
75
|
};
|
|
76
|
-
addSelfToProject():
|
|
77
|
-
affected: EntityState[];
|
|
78
|
-
self: LoopState;
|
|
79
|
-
};
|
|
76
|
+
addSelfToProject(): IChangeSet<LoopState>;
|
|
80
77
|
get calledBy(): CallerEntityState[];
|
|
81
78
|
removeInput(input: ActionInputMapState): LoopState;
|
|
82
79
|
addInput(input: ActionInputMapState): LoopState;
|
|
@@ -4,7 +4,7 @@ import { BaseCanvasDraggableState, BaseState, CallableEntityClass, ChildEntitySt
|
|
|
4
4
|
import { ActionDescriptorState } from '../action-descriptor/action-descriptor';
|
|
5
5
|
import { ActionInputMapState } from '../input-map';
|
|
6
6
|
import { ActionOutputMapState } from '../output-map';
|
|
7
|
-
import { CallableEntityState, CallerEntityState, EntityState, EntityWithLogicScopeState, EntryPointEntityState, PassThroughCallableEntityState, ValueReadingEntityState } from '../types';
|
|
7
|
+
import { CallableEntityState, CallerEntityState, EntityState, EntityWithLogicScopeState, EntryPointEntityState, IChangeSet, PassThroughCallableEntityState, ValueReadingEntityState } from '../types';
|
|
8
8
|
import { ProjectState } from '../project/project';
|
|
9
9
|
import { EntityError, EntityGenerationError } from '../../state/error';
|
|
10
10
|
|
|
@@ -52,10 +52,7 @@ export declare class OperationState implements IOperation, BaseState, UserManage
|
|
|
52
52
|
errors: EntityGenerationError[];
|
|
53
53
|
modifiedData: Partial<IOperationGenerationTarget>;
|
|
54
54
|
};
|
|
55
|
-
addSelfToProject():
|
|
56
|
-
affected: EntityState[];
|
|
57
|
-
self: OperationState;
|
|
58
|
-
};
|
|
55
|
+
addSelfToProject(): IChangeSet<OperationState>;
|
|
59
56
|
get calledBy(): CallerEntityState[];
|
|
60
57
|
removeInput(input: ActionInputMapState): OperationState;
|
|
61
58
|
addInput(input: ActionInputMapState): OperationState;
|
|
@@ -2,7 +2,7 @@ import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType,
|
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
3
|
import { BaseState, ChildEntityState, EntityWithValueClass, UserManagedEntityStateFunctionality, ValueWritingEntityClass } from '../base';
|
|
4
4
|
import { ReturnDeclarationState } from '../return-declaration';
|
|
5
|
-
import { EntityState, PassThroughCallableEntityState, PassThroughCallableEntityWithOutputsState, ValueReadingEntityState } from '../types';
|
|
5
|
+
import { EntityState, IChangeSet, PassThroughCallableEntityState, PassThroughCallableEntityWithOutputsState, ValueReadingEntityState } from '../types';
|
|
6
6
|
import { ProjectState } from '../project/project';
|
|
7
7
|
import { VariableDeclarationState } from '../variable-declaration';
|
|
8
8
|
import { VariableInstanceState } from '../variable-instance';
|
|
@@ -49,10 +49,7 @@ export declare class OutputMapState implements IOutputMap, UserManagedEntityStat
|
|
|
49
49
|
errors: EntityGenerationError[];
|
|
50
50
|
modifiedData: Partial<IOutputMapGenerationTarget>;
|
|
51
51
|
};
|
|
52
|
-
addSelfToProject():
|
|
53
|
-
affected: EntityState[];
|
|
54
|
-
self: OutputMapState;
|
|
55
|
-
};
|
|
52
|
+
addSelfToProject(): IChangeSet<OutputMapState>;
|
|
56
53
|
addValueReader(entity: ValueReadingEntityState): OutputMapState;
|
|
57
54
|
removeValueReader(valueReader: ValueReadingEntityState): OutputMapState;
|
|
58
55
|
setParent(parent: PassThroughCallableEntityWithOutputsState): OutputMapState;
|
|
@@ -8,7 +8,7 @@ import { BaseState, ChildEntityState, UserManagedEntityStateFunctionality } from
|
|
|
8
8
|
import { FunctionDeclarationState } from '../function-declaration';
|
|
9
9
|
import { EntityError, EntityGenerationError } from '../../state/error';
|
|
10
10
|
import { OperationState } from '../operation';
|
|
11
|
-
import { EntityState } from '../types';
|
|
11
|
+
import { EntityState, IChangeSet } from '../types';
|
|
12
12
|
|
|
13
13
|
export type ValueAsTypeState = CustomEntityState | FunctionDeclarationState | OperationState;
|
|
14
14
|
export declare class PrimitiveValueState implements BaseState, UserManagedEntityStateFunctionality, ChildEntityState, IPrimitiveValue {
|
|
@@ -47,11 +47,9 @@ export declare class PrimitiveValueState implements BaseState, UserManagedEntity
|
|
|
47
47
|
errors: EntityGenerationError[];
|
|
48
48
|
modifiedData: Partial<IPrimitiveValueGenerationTarget>;
|
|
49
49
|
};
|
|
50
|
-
addSelfToProject():
|
|
51
|
-
affected: EntityState[];
|
|
52
|
-
self: PrimitiveValueState;
|
|
53
|
-
};
|
|
50
|
+
addSelfToProject(): IChangeSet<PrimitiveValueState>;
|
|
54
51
|
setParent(parent: DataTypeState | InputMapState): PrimitiveValueState;
|
|
52
|
+
setValueAsType(valueAsType: ValueAsTypeState | ValueAsTypeState[] | null): PrimitiveValueState;
|
|
55
53
|
initChildren(): PrimitiveValueState;
|
|
56
54
|
subscribe(): PrimitiveValueState;
|
|
57
55
|
unsubscribe(): PrimitiveValueState;
|
|
@@ -90,5 +88,6 @@ export declare class PrimitiveValueState implements BaseState, UserManagedEntity
|
|
|
90
88
|
getErrors(): EntityError[];
|
|
91
89
|
getShallowErrors(): EntityError[];
|
|
92
90
|
clone(parent?: DataTypeState | InputMapState | null, newId?: string | null, subscribe?: boolean): PrimitiveValueState;
|
|
91
|
+
merge(sourceEntity: PrimitiveValueState): IChangeSet<PrimitiveValueState>;
|
|
93
92
|
}
|
|
94
93
|
export type PrimitiveValuePayloadUnion = PrimitiveValueState | PrimitiveValueTypesUnion;
|
|
@@ -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;
|
|
@@ -87,10 +87,7 @@ export declare class ProjectState implements IProject, UserManagedEntityStateFun
|
|
|
87
87
|
errors: EntityGenerationError[];
|
|
88
88
|
modifiedData: Partial<IProjectGenerationTarget>;
|
|
89
89
|
};
|
|
90
|
-
addSelfToProject():
|
|
91
|
-
affected: EntityState[];
|
|
92
|
-
self: ProjectState;
|
|
93
|
-
};
|
|
90
|
+
addSelfToProject(): IChangeSet<ProjectState>;
|
|
94
91
|
get instancesList(): EntityState[];
|
|
95
92
|
isOperationDeclaration(entity: ActionDescriptorState): boolean;
|
|
96
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,7 +2,7 @@ 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';
|
|
@@ -52,10 +52,7 @@ export declare class ReturnDeclarationState implements IReturnDeclaration, UserM
|
|
|
52
52
|
errors: EntityGenerationError[];
|
|
53
53
|
modifiedData: Partial<IReturnDeclarationGenerationTarget>;
|
|
54
54
|
};
|
|
55
|
-
addSelfToProject():
|
|
56
|
-
affected: EntityState[];
|
|
57
|
-
self: ReturnDeclarationState;
|
|
58
|
-
};
|
|
55
|
+
addSelfToProject(): IChangeSet<ReturnDeclarationState>;
|
|
59
56
|
setParent(parent: ReturnStatementState | BreakStatementState | ContinueStatementState): ReturnDeclarationState;
|
|
60
57
|
setImplements(implementsEntity: ValueDescriptorState): ReturnDeclarationState;
|
|
61
58
|
initChildren(): 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.6036",
|
|
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",
|