@elyx-code/project-logic-tree 0.0.6017 → 0.0.6019
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/mock/default-mock/functions/manual-hello-world-loop/loop/continue-statement.d.ts +1 -1
- package/dist/index.js +14263 -14132
- package/dist/index.umd.cjs +235 -235
- package/dist/tree/state/action-descriptor/action-descriptor.d.ts +5 -2
- package/dist/tree/state/argument-declaration/argument-declaration.d.ts +5 -3
- package/dist/tree/state/base.d.ts +4 -1
- package/dist/tree/state/break-statement/break-statement.d.ts +4 -1
- package/dist/tree/state/condition/condition.d.ts +4 -1
- package/dist/tree/state/continue-statement/continue-statement.d.ts +4 -1
- package/dist/tree/state/custom-entity/custom-entity.d.ts +6 -5
- package/dist/tree/state/data-type/data-type.d.ts +7 -5
- package/dist/tree/state/function-call/function-call.d.ts +4 -1
- package/dist/tree/state/function-declaration/function-declaration.d.ts +6 -3
- package/dist/tree/state/global-event/global-event.d.ts +4 -1
- package/dist/tree/state/input-map/input-map.d.ts +5 -4
- package/dist/tree/state/installed-project/installed-project.d.ts +4 -1
- package/dist/tree/state/internal-call/internal-call.d.ts +4 -1
- package/dist/tree/state/loop/loop.d.ts +4 -1
- package/dist/tree/state/operation/operation.d.ts +4 -1
- package/dist/tree/state/output-map/output-map.d.ts +4 -1
- package/dist/tree/state/primitive-value/primitive-value.d.ts +4 -1
- package/dist/tree/state/project/project.d.ts +4 -1
- package/dist/tree/state/property/property.d.ts +4 -1
- package/dist/tree/state/return-declaration/return-declaration.d.ts +5 -1
- package/dist/tree/state/return-declaration/return-declaration.test.d.ts +1 -0
- package/dist/tree/state/return-statement/return-statement.d.ts +4 -1
- package/dist/tree/state/search/search.d.ts +4 -1
- package/dist/tree/state/value-descriptor/value-descriptor.d.ts +5 -2
- package/dist/tree/state/variable-declaration/variable-declaration.d.ts +5 -6
- package/dist/tree/state/variable-instance/variable-instance.d.ts +4 -1
- package/dist/tree/utils/data-type.d.ts +1 -0
- package/package.json +1 -1
|
@@ -59,7 +59,10 @@ export declare class ActionDescriptorState implements IActionDescriptor, UserMan
|
|
|
59
59
|
errors: EntityGenerationError[];
|
|
60
60
|
modifiedData: Partial<IActionDescriptorGenerationTarget>;
|
|
61
61
|
};
|
|
62
|
-
addSelfToProject():
|
|
62
|
+
addSelfToProject(): {
|
|
63
|
+
affected: EntityState[];
|
|
64
|
+
self: ActionDescriptorState;
|
|
65
|
+
};
|
|
63
66
|
setParent(parent: CustomEntityState | PrimitiveEntityState | BuiltInBaseEntityState | DataTypeState): ActionDescriptorState;
|
|
64
67
|
setDynamicReturnTypes(dataType: DataTypeState): ActionDescriptorState;
|
|
65
68
|
setDynamicArgumentTypes(dataType: DataTypeState): ActionDescriptorState;
|
|
@@ -106,7 +109,7 @@ export declare class ActionDescriptorState implements IActionDescriptor, UserMan
|
|
|
106
109
|
};
|
|
107
110
|
getErrors(): EntityError[];
|
|
108
111
|
getShallowErrors(): EntityError[];
|
|
109
|
-
clone(
|
|
112
|
+
clone(parent?: CustomEntityState | PrimitiveEntityState | BuiltInBaseEntityState | DataTypeState | null, newId?: string | null, subscribe?: boolean): ActionDescriptorState;
|
|
110
113
|
setDynamicArgumentsDataType(dataType: DataTypeState): ActionDescriptorState;
|
|
111
114
|
setDynamicReturnsDataType(dataType: DataTypeState): ActionDescriptorState;
|
|
112
115
|
addFixedArgument(argument: ValueDescriptorState): ActionDescriptorState;
|
|
@@ -4,7 +4,6 @@ import { BaseState, ChildEntityState, EntityWithValueClass, UserManagedEntitySta
|
|
|
4
4
|
import { EntityState, EntryPointEntityState, ValueReadingEntityState } from '../types';
|
|
5
5
|
import { DataTypeState } from '../data-type';
|
|
6
6
|
import { ProjectState } from '../project/project';
|
|
7
|
-
import { ActionDescriptorState } from '../action-descriptor';
|
|
8
7
|
import { SearchState } from '../search';
|
|
9
8
|
import { EntityError, EntityGenerationError } from '../../state/error';
|
|
10
9
|
import { PrimitiveValueState } from '../primitive-value';
|
|
@@ -48,7 +47,10 @@ export declare class ArgumentDeclarationState implements IArgumentDeclaration, U
|
|
|
48
47
|
errors: EntityGenerationError[];
|
|
49
48
|
modifiedData: Partial<IArgumentDeclarationGenerationTarget>;
|
|
50
49
|
};
|
|
51
|
-
addSelfToProject():
|
|
50
|
+
addSelfToProject(): {
|
|
51
|
+
affected: EntityState[];
|
|
52
|
+
self: ArgumentDeclarationState;
|
|
53
|
+
};
|
|
52
54
|
addValueReader(entity: ValueReadingEntityState): ArgumentDeclarationState;
|
|
53
55
|
removeValueReader(valueReader: ValueReadingEntityState): ArgumentDeclarationState;
|
|
54
56
|
setParent(parent: EntryPointEntityState | SearchState): ArgumentDeclarationState;
|
|
@@ -90,7 +92,7 @@ export declare class ArgumentDeclarationState implements IArgumentDeclaration, U
|
|
|
90
92
|
getErrors(): EntityError[];
|
|
91
93
|
getShallowErrors(): EntityError[];
|
|
92
94
|
getDefaultValue(): PrimitiveValueState | null;
|
|
93
|
-
clone(
|
|
95
|
+
clone(parent?: EntryPointEntityState | SearchState | null, newId?: string | null, subscribe?: boolean): ArgumentDeclarationState;
|
|
94
96
|
getDataType(): DataTypeState | null;
|
|
95
97
|
setDataType(dataType: DataTypeState): ArgumentDeclarationState;
|
|
96
98
|
removeDataType(): ArgumentDeclarationState;
|
|
@@ -31,7 +31,10 @@ export declare abstract class SharedStateFunctionality {
|
|
|
31
31
|
abstract getShallowErrors(): EntityError[];
|
|
32
32
|
}
|
|
33
33
|
export declare abstract class UserManagedEntityStateFunctionality {
|
|
34
|
-
abstract addSelfToProject():
|
|
34
|
+
abstract addSelfToProject(): {
|
|
35
|
+
affected: EntityState[];
|
|
36
|
+
self: UserManagedEntityStateFunctionality;
|
|
37
|
+
};
|
|
35
38
|
abstract sync(data: Partial<IGenericBase>): SharedStateFunctionality;
|
|
36
39
|
abstract create(): Promise<SharedStateFunctionality>;
|
|
37
40
|
abstract update(data: Partial<ElementTypesUnion>): Promise<SharedStateFunctionality>;
|
|
@@ -48,7 +48,10 @@ export declare class BreakStatementState implements IBreakStatement, UserManaged
|
|
|
48
48
|
errors: EntityGenerationError[];
|
|
49
49
|
modifiedData: Partial<IBreakStatementGenerationTarget>;
|
|
50
50
|
};
|
|
51
|
-
addSelfToProject():
|
|
51
|
+
addSelfToProject(): {
|
|
52
|
+
affected: EntityState[];
|
|
53
|
+
self: BreakStatementState;
|
|
54
|
+
};
|
|
52
55
|
get calledBy(): CallerEntityState[];
|
|
53
56
|
addSuccessCaller(caller: PassThroughCallableEntityState): BreakStatementState;
|
|
54
57
|
addErrorCaller(caller: PassThroughCallableEntityState): BreakStatementState;
|
|
@@ -49,7 +49,10 @@ export declare class ConditionState implements ICondition, UserManagedEntityStat
|
|
|
49
49
|
errors: EntityGenerationError[];
|
|
50
50
|
modifiedData: Partial<IConditionGenerationTarget>;
|
|
51
51
|
};
|
|
52
|
-
addSelfToProject():
|
|
52
|
+
addSelfToProject(): {
|
|
53
|
+
affected: EntityState[];
|
|
54
|
+
self: ConditionState;
|
|
55
|
+
};
|
|
53
56
|
get calledBy(): CallerEntityState[];
|
|
54
57
|
removeInput(input: ActionInputMapState): ConditionState;
|
|
55
58
|
addInput(input: ActionInputMapState): ConditionState;
|
|
@@ -48,7 +48,10 @@ export declare class ContinueStatementState implements IContinueStatement, UserM
|
|
|
48
48
|
errors: EntityGenerationError[];
|
|
49
49
|
modifiedData: Partial<IContinueStatementGenerationTarget>;
|
|
50
50
|
};
|
|
51
|
-
addSelfToProject():
|
|
51
|
+
addSelfToProject(): {
|
|
52
|
+
affected: EntityState[];
|
|
53
|
+
self: ContinueStatementState;
|
|
54
|
+
};
|
|
52
55
|
get calledBy(): CallerEntityState[];
|
|
53
56
|
addSuccessCaller(caller: PassThroughCallableEntityState): ContinueStatementState;
|
|
54
57
|
addErrorCaller(caller: PassThroughCallableEntityState): ContinueStatementState;
|
|
@@ -57,7 +57,10 @@ export declare class CustomEntityState implements BaseState, UserManagedEntitySt
|
|
|
57
57
|
errors: EntityGenerationError[];
|
|
58
58
|
modifiedData: Partial<ICustomEntityGenerationTarget>;
|
|
59
59
|
};
|
|
60
|
-
addSelfToProject():
|
|
60
|
+
addSelfToProject(): {
|
|
61
|
+
affected: EntityState[];
|
|
62
|
+
self: CustomEntityState;
|
|
63
|
+
};
|
|
61
64
|
setParent(parent: ProjectState | DataTypeState): CustomEntityState;
|
|
62
65
|
removeProperty(property: PropertyState): CustomEntityState;
|
|
63
66
|
addMethod(method: FunctionDeclarationState): CustomEntityState;
|
|
@@ -107,7 +110,7 @@ export declare class CustomEntityState implements BaseState, UserManagedEntitySt
|
|
|
107
110
|
};
|
|
108
111
|
getErrors(): EntityError[];
|
|
109
112
|
getShallowErrors(): EntityError[];
|
|
110
|
-
clone(): CustomEntityState;
|
|
113
|
+
clone(parent?: DataTypeState | null, newId?: string | null, subscribe?: boolean): CustomEntityState;
|
|
111
114
|
getFunctionDeclaration(id: EntityId): FunctionDeclarationState | undefined;
|
|
112
115
|
implement(newEntityName: string, newId?: string): {
|
|
113
116
|
errors: [];
|
|
@@ -127,8 +130,6 @@ export declare class CustomEntityState implements BaseState, UserManagedEntitySt
|
|
|
127
130
|
};
|
|
128
131
|
};
|
|
129
132
|
getAllInteractiveMethods(): FunctionDeclarationState[];
|
|
130
|
-
inferFromInputs(inputs: VariableInputMapState[]
|
|
131
|
-
debug?: boolean;
|
|
132
|
-
}): CustomEntityState;
|
|
133
|
+
inferFromInputs(inputs: VariableInputMapState[]): CustomEntityState;
|
|
133
134
|
}
|
|
134
135
|
export type CustomEntityPayloadUnion = CustomEntityState | CustomEntityTypesUnion;
|
|
@@ -59,7 +59,10 @@ export declare class DataTypeState implements IDataType, UserManagedEntityStateF
|
|
|
59
59
|
errors: EntityGenerationError[];
|
|
60
60
|
modifiedData: Partial<IDataTypeGenerationTarget>;
|
|
61
61
|
};
|
|
62
|
-
addSelfToProject():
|
|
62
|
+
addSelfToProject(): {
|
|
63
|
+
affected: EntityState[];
|
|
64
|
+
self: DataTypeState;
|
|
65
|
+
};
|
|
63
66
|
setParent(parent: PropertyState | ArgumentDeclarationState | ReturnDeclarationState | VariableDeclarationState | ActionDescriptorState | ValueDescriptorState | DataTypeState): DataTypeState;
|
|
64
67
|
removeChildGroup(child: DataTypeState): DataTypeState;
|
|
65
68
|
initChildren(): DataTypeState;
|
|
@@ -99,14 +102,13 @@ export declare class DataTypeState implements IDataType, UserManagedEntityStateF
|
|
|
99
102
|
};
|
|
100
103
|
getErrors(): EntityError[];
|
|
101
104
|
getShallowErrors(): EntityError[];
|
|
102
|
-
clone(parent?: PropertyState | VariableDeclarationState | ArgumentDeclarationState | ReturnDeclarationState | ActionDescriptorState | DataTypeState | null, newId?: string | null, subscribe?: boolean): DataTypeState;
|
|
105
|
+
clone(parent?: PropertyState | VariableDeclarationState | ArgumentDeclarationState | ReturnDeclarationState | ActionDescriptorState | ValueDescriptorState | DataTypeState | null, newId?: string | null, subscribe?: boolean): DataTypeState;
|
|
103
106
|
addToAndGroup(child: DataTypeState): DataTypeState;
|
|
104
107
|
addToOrGroup(child: DataTypeState): DataTypeState;
|
|
105
108
|
getDefaultValue(): PrimitiveValueState | null;
|
|
106
109
|
setDefaultValue(value: PrimitiveValueState): DataTypeState;
|
|
107
110
|
setEntity(entity: CustomEntityState | PrimitiveEntityState | ActionDescriptorState | BuiltInBaseEntityState): DataTypeState;
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}): DataTypeState;
|
|
111
|
+
isResolved(): boolean;
|
|
112
|
+
inferFromInputs(inputs: VariableInputMapState[]): DataTypeState;
|
|
111
113
|
}
|
|
112
114
|
export type DataTypePayloadUnion = DataTypeState | DataTypeTypesUnion;
|
|
@@ -52,7 +52,10 @@ export declare class FunctionCallState implements IFunctionCall, BaseState, User
|
|
|
52
52
|
errors: EntityGenerationError[];
|
|
53
53
|
modifiedData: Partial<IFunctionCallGenerationTarget>;
|
|
54
54
|
};
|
|
55
|
-
addSelfToProject():
|
|
55
|
+
addSelfToProject(): {
|
|
56
|
+
affected: EntityState[];
|
|
57
|
+
self: FunctionCallState;
|
|
58
|
+
};
|
|
56
59
|
get calledBy(): CallerEntityState[];
|
|
57
60
|
removeInput(input: ActionInputMapState): FunctionCallState;
|
|
58
61
|
addInput(input: ActionInputMapState): FunctionCallState;
|
|
@@ -61,12 +61,15 @@ export declare class FunctionDeclarationState implements IFunctionDeclaration, B
|
|
|
61
61
|
errors: EntityGenerationError[];
|
|
62
62
|
modifiedData: Partial<IFunctionDeclarationGenerationTarget>;
|
|
63
63
|
};
|
|
64
|
-
addSelfToProject():
|
|
64
|
+
addSelfToProject(): {
|
|
65
|
+
affected: EntityState[];
|
|
66
|
+
self: FunctionDeclarationState;
|
|
67
|
+
};
|
|
65
68
|
replaceDetachedChild(existingChild: CanvasEntityState, newChild: CanvasEntityState): FunctionDeclarationState;
|
|
66
69
|
subscribeDetachedChild(child: CanvasEntityState): FunctionDeclarationState;
|
|
67
70
|
addInputDeclaration(input: ArgumentDeclarationState): FunctionDeclarationState;
|
|
68
71
|
removeInputDeclaration(input: ArgumentDeclarationState): FunctionDeclarationState;
|
|
69
|
-
setParent(parent: ProjectState | InstalledProjectState | CustomEntityState | LoopState | BuiltInBaseEntityState): FunctionDeclarationState;
|
|
72
|
+
setParent(parent: ProjectState | InstalledProjectState | CustomEntityState | LoopState | BuiltInBaseEntityState | PrimitiveEntityState): FunctionDeclarationState;
|
|
70
73
|
addCall(entity: CallableEntityState): FunctionDeclarationState;
|
|
71
74
|
removeCall(entity: CallableEntityState): FunctionDeclarationState;
|
|
72
75
|
initChildren(): FunctionDeclarationState;
|
|
@@ -106,7 +109,7 @@ export declare class FunctionDeclarationState implements IFunctionDeclaration, B
|
|
|
106
109
|
};
|
|
107
110
|
getErrors(): EntityError[];
|
|
108
111
|
getShallowErrors(): EntityError[];
|
|
109
|
-
clone(
|
|
112
|
+
clone(parent?: CustomEntityState | null, newId?: string | null, subscribe?: boolean, cloneBody?: boolean): FunctionDeclarationState;
|
|
110
113
|
getVariableInstances(): VariableInstanceState[];
|
|
111
114
|
getArgument(id: EntityId): ArgumentDeclarationState | null;
|
|
112
115
|
createCall(parent?: EntityWithLogicScopeState | ProjectState, overrides?: Partial<IFunctionCallTransfer>): FunctionCallState;
|
|
@@ -52,7 +52,10 @@ export declare class GlobalEventState implements IGlobalEvent, UserManagedEntity
|
|
|
52
52
|
errors: EntityGenerationError[];
|
|
53
53
|
modifiedData: Partial<IGlobalEventGenerationTarget>;
|
|
54
54
|
};
|
|
55
|
-
addSelfToProject():
|
|
55
|
+
addSelfToProject(): {
|
|
56
|
+
affected: EntityState[];
|
|
57
|
+
self: GlobalEventState;
|
|
58
|
+
};
|
|
56
59
|
replaceDetachedChild(existingChild: CanvasEntityState, newChild: CanvasEntityState): GlobalEventState;
|
|
57
60
|
subscribeDetachedChild(child: CanvasEntityState): GlobalEventState;
|
|
58
61
|
setParent(parent: ProjectState | InstalledProjectState): GlobalEventState;
|
|
@@ -58,7 +58,10 @@ export declare class InputMapState implements IInputMap, ValueReadingEntityClass
|
|
|
58
58
|
errors: EntityGenerationError[];
|
|
59
59
|
modifiedData: Partial<IInputMapGenerationTarget>;
|
|
60
60
|
};
|
|
61
|
-
addSelfToProject():
|
|
61
|
+
addSelfToProject(): {
|
|
62
|
+
affected: EntityState[];
|
|
63
|
+
self: InputMapState;
|
|
64
|
+
};
|
|
62
65
|
setParent(parent: PassThroughCallableEntityState | InputMapState): InputMapState;
|
|
63
66
|
setDeclaration(declaration: ArgumentDeclarationState | PropertyState | null): InputMapState;
|
|
64
67
|
removeInput(input: InputMapState): InputMapState;
|
|
@@ -105,9 +108,7 @@ export declare class InputMapState implements IInputMap, ValueReadingEntityClass
|
|
|
105
108
|
getDefaultValue(): PrimitiveValueState | null;
|
|
106
109
|
setDefaultValue(value: PrimitiveValueState): InputMapState;
|
|
107
110
|
clone(_?: PassThroughCallableEntityState): InputMapState;
|
|
108
|
-
getDataType(
|
|
109
|
-
debug?: boolean;
|
|
110
|
-
}): DataTypeState | null;
|
|
111
|
+
getDataType(): DataTypeState | null;
|
|
111
112
|
}
|
|
112
113
|
export declare class VariableInputMapState extends InputMapState implements IVariableInputMap {
|
|
113
114
|
declaration: PropertyState | null;
|
|
@@ -46,7 +46,10 @@ export declare class InstalledProjectState implements IInstalledProject, UserMan
|
|
|
46
46
|
errors: EntityGenerationError[];
|
|
47
47
|
modifiedData: Partial<IInstalledProjectGenerationTarget>;
|
|
48
48
|
};
|
|
49
|
-
addSelfToProject():
|
|
49
|
+
addSelfToProject(): {
|
|
50
|
+
affected: EntityState[];
|
|
51
|
+
self: InstalledProjectState;
|
|
52
|
+
};
|
|
50
53
|
setParent(parent: ProjectState): InstalledProjectState;
|
|
51
54
|
initChildren(): InstalledProjectState;
|
|
52
55
|
subscribe(): InstalledProjectState;
|
|
@@ -52,7 +52,10 @@ export declare class InternalCallState implements IInternalCall, UserManagedEnti
|
|
|
52
52
|
errors: EntityGenerationError[];
|
|
53
53
|
modifiedData: Partial<IInternalCallGenerationTarget>;
|
|
54
54
|
};
|
|
55
|
-
addSelfToProject():
|
|
55
|
+
addSelfToProject(): {
|
|
56
|
+
affected: EntityState[];
|
|
57
|
+
self: InternalCallState;
|
|
58
|
+
};
|
|
56
59
|
get calledBy(): CallerEntityState[];
|
|
57
60
|
removeInput(input: ActionInputMapState): InternalCallState;
|
|
58
61
|
addInput(input: ActionInputMapState): InternalCallState;
|
|
@@ -61,7 +61,10 @@ export declare class LoopState implements ILoop, BaseState, UserManagedEntitySta
|
|
|
61
61
|
errors: EntityGenerationError[];
|
|
62
62
|
modifiedData: Partial<ILoopGenerationTarget>;
|
|
63
63
|
};
|
|
64
|
-
addSelfToProject():
|
|
64
|
+
addSelfToProject(): {
|
|
65
|
+
affected: EntityState[];
|
|
66
|
+
self: LoopState;
|
|
67
|
+
};
|
|
65
68
|
get calledBy(): CallerEntityState[];
|
|
66
69
|
removeInput(input: ActionInputMapState): LoopState;
|
|
67
70
|
addInput(input: ActionInputMapState): LoopState;
|
|
@@ -53,7 +53,10 @@ export declare class OperationState implements IOperation, BaseState, UserManage
|
|
|
53
53
|
errors: EntityGenerationError[];
|
|
54
54
|
modifiedData: Partial<IOperationGenerationTarget>;
|
|
55
55
|
};
|
|
56
|
-
addSelfToProject():
|
|
56
|
+
addSelfToProject(): {
|
|
57
|
+
affected: EntityState[];
|
|
58
|
+
self: OperationState;
|
|
59
|
+
};
|
|
57
60
|
get calledBy(): CallerEntityState[];
|
|
58
61
|
removeInput(input: ActionInputMapState): OperationState;
|
|
59
62
|
addInput(input: ActionInputMapState): OperationState;
|
|
@@ -49,7 +49,10 @@ export declare class OutputMapState implements IOutputMap, UserManagedEntityStat
|
|
|
49
49
|
errors: EntityGenerationError[];
|
|
50
50
|
modifiedData: Partial<IOutputMapGenerationTarget>;
|
|
51
51
|
};
|
|
52
|
-
addSelfToProject():
|
|
52
|
+
addSelfToProject(): {
|
|
53
|
+
affected: EntityState[];
|
|
54
|
+
self: OutputMapState;
|
|
55
|
+
};
|
|
53
56
|
addValueReader(entity: ValueReadingEntityState): OutputMapState;
|
|
54
57
|
removeValueReader(valueReader: ValueReadingEntityState): OutputMapState;
|
|
55
58
|
setParent(parent: PassThroughCallableEntityWithOutputsState): OutputMapState;
|
|
@@ -47,7 +47,10 @@ export declare class PrimitiveValueState implements BaseState, UserManagedEntity
|
|
|
47
47
|
errors: EntityGenerationError[];
|
|
48
48
|
modifiedData: Partial<IPrimitiveValueGenerationTarget>;
|
|
49
49
|
};
|
|
50
|
-
addSelfToProject():
|
|
50
|
+
addSelfToProject(): {
|
|
51
|
+
affected: EntityState[];
|
|
52
|
+
self: PrimitiveValueState;
|
|
53
|
+
};
|
|
51
54
|
setParent(parent: DataTypeState | InputMapState): PrimitiveValueState;
|
|
52
55
|
initChildren(): PrimitiveValueState;
|
|
53
56
|
subscribe(): PrimitiveValueState;
|
|
@@ -85,7 +85,10 @@ export declare class ProjectState implements IProject, UserManagedEntityStateFun
|
|
|
85
85
|
errors: EntityGenerationError[];
|
|
86
86
|
modifiedData: Partial<IProjectGenerationTarget>;
|
|
87
87
|
};
|
|
88
|
-
addSelfToProject():
|
|
88
|
+
addSelfToProject(): {
|
|
89
|
+
affected: EntityState[];
|
|
90
|
+
self: ProjectState;
|
|
91
|
+
};
|
|
89
92
|
get instancesList(): EntityState[];
|
|
90
93
|
isOperationDeclaration(entity: ActionDescriptorState): boolean;
|
|
91
94
|
isGlobalEventActionDescriptor(entity: ActionDescriptorState): boolean;
|
|
@@ -53,7 +53,10 @@ export declare class PropertyState implements IProperty, UserManagedEntityStateF
|
|
|
53
53
|
errors: EntityGenerationError[];
|
|
54
54
|
modifiedData: Partial<IPropertyGenerationTarget>;
|
|
55
55
|
};
|
|
56
|
-
addSelfToProject():
|
|
56
|
+
addSelfToProject(): {
|
|
57
|
+
affected: EntityState[];
|
|
58
|
+
self: PropertyState;
|
|
59
|
+
};
|
|
57
60
|
setParent(parent: CustomEntityState | PrimitiveEntityState | BuiltInBaseEntityState): PropertyState;
|
|
58
61
|
initChildren(): PropertyState;
|
|
59
62
|
subscribe(): PropertyState;
|
|
@@ -51,7 +51,10 @@ export declare class ReturnDeclarationState implements IReturnDeclaration, UserM
|
|
|
51
51
|
errors: EntityGenerationError[];
|
|
52
52
|
modifiedData: Partial<IReturnDeclarationGenerationTarget>;
|
|
53
53
|
};
|
|
54
|
-
addSelfToProject():
|
|
54
|
+
addSelfToProject(): {
|
|
55
|
+
affected: EntityState[];
|
|
56
|
+
self: ReturnDeclarationState;
|
|
57
|
+
};
|
|
55
58
|
setParent(parent: ReturnStatementState | SearchState | BreakStatementState | ContinueStatementState): ReturnDeclarationState;
|
|
56
59
|
initChildren(): ReturnDeclarationState;
|
|
57
60
|
setValueWriter(valueWriter: ValueWritingEntityState): ReturnDeclarationState;
|
|
@@ -96,6 +99,7 @@ export declare class ReturnDeclarationState implements IReturnDeclaration, UserM
|
|
|
96
99
|
clone(_?: ReturnStatementState | SearchState | BreakStatementState | ContinueStatementState): ReturnDeclarationState;
|
|
97
100
|
setDataType(dataType: DataTypeState): ReturnDeclarationState;
|
|
98
101
|
removeDataType(): ReturnDeclarationState;
|
|
102
|
+
inferDataType(): ReturnDeclarationState;
|
|
99
103
|
getDataType(): DataTypeState | null;
|
|
100
104
|
}
|
|
101
105
|
export type ReturnDeclarationPayloadUnion = ReturnDeclarationState | ReturnDeclarationTypesUnion;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -47,7 +47,10 @@ export declare class ReturnStatementState implements IReturnStatement, UserManag
|
|
|
47
47
|
errors: EntityGenerationError[];
|
|
48
48
|
modifiedData: Partial<IReturnStatementGenerationTarget>;
|
|
49
49
|
};
|
|
50
|
-
addSelfToProject():
|
|
50
|
+
addSelfToProject(): {
|
|
51
|
+
affected: EntityState[];
|
|
52
|
+
self: ReturnStatementState;
|
|
53
|
+
};
|
|
51
54
|
get calledBy(): CallerEntityState[];
|
|
52
55
|
addSuccessCaller(caller: PassThroughCallableEntityState): ReturnStatementState;
|
|
53
56
|
addErrorCaller(caller: PassThroughCallableEntityState): ReturnStatementState;
|
|
@@ -56,7 +56,10 @@ export declare class SearchState implements ISearch, BaseState, UserManagedEntit
|
|
|
56
56
|
errors: EntityGenerationError[];
|
|
57
57
|
modifiedData: Partial<ISearchGenerationTarget>;
|
|
58
58
|
};
|
|
59
|
-
addSelfToProject():
|
|
59
|
+
addSelfToProject(): {
|
|
60
|
+
affected: EntityState[];
|
|
61
|
+
self: SearchState;
|
|
62
|
+
};
|
|
60
63
|
get calledBy(): CallerEntityState[];
|
|
61
64
|
removeInput(input: ActionInputMapState): SearchState;
|
|
62
65
|
addInput(input: ActionInputMapState): SearchState;
|
|
@@ -46,7 +46,10 @@ export declare class ValueDescriptorState implements IValueDescriptor, UserManag
|
|
|
46
46
|
errors: EntityGenerationError[];
|
|
47
47
|
modifiedData: Partial<IValueDescriptorGenerationTarget>;
|
|
48
48
|
};
|
|
49
|
-
addSelfToProject():
|
|
49
|
+
addSelfToProject(): {
|
|
50
|
+
affected: EntityState[];
|
|
51
|
+
self: ValueDescriptorState;
|
|
52
|
+
};
|
|
50
53
|
setParent(parent: ActionDescriptorState): ValueDescriptorState;
|
|
51
54
|
initChildren(): ValueDescriptorState;
|
|
52
55
|
subscribe(): ValueDescriptorState;
|
|
@@ -85,7 +88,7 @@ export declare class ValueDescriptorState implements IValueDescriptor, UserManag
|
|
|
85
88
|
};
|
|
86
89
|
getErrors(): EntityError[];
|
|
87
90
|
getShallowErrors(): EntityError[];
|
|
88
|
-
clone(): ValueDescriptorState;
|
|
91
|
+
clone(parent?: ActionDescriptorState | null, newId?: string | null, subscribe?: boolean): ValueDescriptorState;
|
|
89
92
|
getDataType(): DataTypeState | null;
|
|
90
93
|
setDataType(dataType: DataTypeState): ValueDescriptorState;
|
|
91
94
|
getDefaultValue(): PrimitiveValueState | null;
|
|
@@ -10,7 +10,6 @@ import { VariableInputMapState } from '../input-map';
|
|
|
10
10
|
import { EntityError, EntityGenerationError } from '../error';
|
|
11
11
|
import { PrimitiveValueState } from '../primitive-value';
|
|
12
12
|
import { VariableInstanceState } from '../variable-instance';
|
|
13
|
-
import { PropertyState } from '../property';
|
|
14
13
|
|
|
15
14
|
export declare class VariableDeclarationState implements IVariableDeclaration, BaseState, UserManagedEntityStateFunctionality, ValueWritingEntityClass, ValueReadingEntityClass, BaseCanvasDraggableState, ChildEntityState, EntityWithValueClass, PassThroughCallableEntityClass, CallableEntityClass {
|
|
16
15
|
initialData: IVariableDeclaration | IVariableDeclarationTransfer;
|
|
@@ -61,7 +60,10 @@ export declare class VariableDeclarationState implements IVariableDeclaration, B
|
|
|
61
60
|
errors: EntityGenerationError[];
|
|
62
61
|
modifiedData: Partial<IVariableDeclarationGenerationTarget>;
|
|
63
62
|
};
|
|
64
|
-
addSelfToProject():
|
|
63
|
+
addSelfToProject(): {
|
|
64
|
+
affected: EntityState[];
|
|
65
|
+
self: VariableDeclarationState;
|
|
66
|
+
};
|
|
65
67
|
get calledBy(): CallerEntityState[];
|
|
66
68
|
get usedInputs(): VariableInputMapState[];
|
|
67
69
|
get unusedInputs(): VariableInputMapState[];
|
|
@@ -91,10 +93,7 @@ export declare class VariableDeclarationState implements IVariableDeclaration, B
|
|
|
91
93
|
subscribeInstance(instance: VariableInstanceState): VariableDeclarationState;
|
|
92
94
|
removeInstance(instance: VariableInstanceState): VariableDeclarationState;
|
|
93
95
|
getMasterInputWithValueWritterFromAllInstances(input: VariableInputMapState): VariableInputMapState;
|
|
94
|
-
|
|
95
|
-
inferDataTypeAndSyncInstancesInputsAndOutputs({ debug, }?: {
|
|
96
|
-
debug?: boolean;
|
|
97
|
-
}): VariableDeclarationState;
|
|
96
|
+
inferDataTypeAndSyncInstancesInputsAndOutputs(): VariableDeclarationState;
|
|
98
97
|
sync(data: Partial<IVariableDeclaration>): VariableDeclarationState;
|
|
99
98
|
load(): Promise<VariableDeclarationState>;
|
|
100
99
|
create(): Promise<VariableDeclarationState>;
|
|
@@ -57,7 +57,10 @@ export declare class VariableInstanceState implements IVariableInstance, BaseSta
|
|
|
57
57
|
errors: EntityGenerationError[];
|
|
58
58
|
modifiedData: Partial<IVariableInstanceGenerationTarget>;
|
|
59
59
|
};
|
|
60
|
-
addSelfToProject():
|
|
60
|
+
addSelfToProject(): {
|
|
61
|
+
affected: EntityState[];
|
|
62
|
+
self: VariableInstanceState;
|
|
63
|
+
};
|
|
61
64
|
get calledBy(): CallerEntityState[];
|
|
62
65
|
get usedInputs(): VariableInputMapState[];
|
|
63
66
|
get unusedInputs(): VariableInputMapState[];
|
|
@@ -44,6 +44,7 @@ export declare function checkAreDataTypesCompatible(dataTypeA: DataTypeState | n
|
|
|
44
44
|
export declare function generateExecutionDataType(entity: PropertyState | ArgumentDeclarationState | ReturnDeclarationState | VariableDeclarationState | ActionDescriptorState | ValueDescriptorState | DataTypeState): DataTypeState;
|
|
45
45
|
export declare function inferArgumentDeclarationDataType(entity: ArgumentDeclarationState): DataTypeState | null;
|
|
46
46
|
export declare function inferInputMapDataType(entity: InputMapState): DataTypeState | null;
|
|
47
|
+
export declare function inferReturnDeclarationDataType(entity: ReturnDeclarationState): DataTypeState | null;
|
|
47
48
|
export declare function inferVariableInstanceDataType(entity: VariableInstanceState): DataTypeState | null;
|
|
48
49
|
export declare function inferVariableDeclarationDataType(entity: VariableDeclarationState): DataTypeState | null;
|
|
49
50
|
export declare function inferOutputMapDataType(entity: OutputMapState): DataTypeState | null;
|
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.6019",
|
|
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",
|