@elyx-code/project-logic-tree 0.0.6015 → 0.0.6017
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/index.js +9025 -8760
- package/dist/index.umd.cjs +221 -221
- package/dist/tree/state/custom-entity/custom-entity.d.ts +5 -1
- package/dist/tree/state/data-type/data-type.d.ts +4 -0
- package/dist/tree/state/input-map/input-map.d.ts +4 -1
- package/dist/tree/state/variable-declaration/variable-declaration.d.ts +6 -1
- package/dist/tree/utils/data-type.d.ts +2 -2
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ import { ActionDescriptorState } from '../action-descriptor';
|
|
|
9
9
|
import { EntityError, EntityGenerationError } from '../error';
|
|
10
10
|
import { EntityState } from '../types';
|
|
11
11
|
import { DataTypeState } from '../data-type';
|
|
12
|
+
import { VariableInputMapState } from '../input-map';
|
|
12
13
|
|
|
13
14
|
export declare class CustomEntityState implements BaseState, UserManagedEntityStateFunctionality, BaseCanvasDraggableState, ICustomEntity, ChildEntityState {
|
|
14
15
|
initialData: ICustomEntity | ICustomEntityTransfer;
|
|
@@ -72,7 +73,7 @@ export declare class CustomEntityState implements BaseState, UserManagedEntitySt
|
|
|
72
73
|
addSuggestions(): CustomEntityState;
|
|
73
74
|
subscribe(): CustomEntityState;
|
|
74
75
|
unsubscribe(): CustomEntityState;
|
|
75
|
-
sync(data: Partial<ICustomEntity>): CustomEntityState;
|
|
76
|
+
sync(data: Partial<ICustomEntity | ICustomEntityTransfer>): CustomEntityState;
|
|
76
77
|
load(): Promise<CustomEntityState>;
|
|
77
78
|
create(): Promise<CustomEntityState>;
|
|
78
79
|
update(_: Partial<CustomEntityTypesUnion>): Promise<CustomEntityState>;
|
|
@@ -126,5 +127,8 @@ export declare class CustomEntityState implements BaseState, UserManagedEntitySt
|
|
|
126
127
|
};
|
|
127
128
|
};
|
|
128
129
|
getAllInteractiveMethods(): FunctionDeclarationState[];
|
|
130
|
+
inferFromInputs(inputs: VariableInputMapState[], { debug, }?: {
|
|
131
|
+
debug?: boolean;
|
|
132
|
+
}): CustomEntityState;
|
|
129
133
|
}
|
|
130
134
|
export type CustomEntityPayloadUnion = CustomEntityState | CustomEntityTypesUnion;
|
|
@@ -14,6 +14,7 @@ import { ValueDescriptorState } from '../value-descriptor';
|
|
|
14
14
|
import { BuiltInBaseEntityState } from '../built-in-base-entity';
|
|
15
15
|
import { PrimitiveValueState } from '../primitive-value/primitive-value';
|
|
16
16
|
import { EntityError, EntityGenerationError } from '../error';
|
|
17
|
+
import { VariableInputMapState } from '../input-map';
|
|
17
18
|
|
|
18
19
|
export declare class DataTypeState implements IDataType, UserManagedEntityStateFunctionality, BaseState, ChildEntityState {
|
|
19
20
|
initialData: IDataType | IDataTypeTransfer;
|
|
@@ -104,5 +105,8 @@ export declare class DataTypeState implements IDataType, UserManagedEntityStateF
|
|
|
104
105
|
getDefaultValue(): PrimitiveValueState | null;
|
|
105
106
|
setDefaultValue(value: PrimitiveValueState): DataTypeState;
|
|
106
107
|
setEntity(entity: CustomEntityState | PrimitiveEntityState | ActionDescriptorState | BuiltInBaseEntityState): DataTypeState;
|
|
108
|
+
inferFromInputs(inputs: VariableInputMapState[], { debug, }?: {
|
|
109
|
+
debug?: boolean;
|
|
110
|
+
}): DataTypeState;
|
|
107
111
|
}
|
|
108
112
|
export type DataTypePayloadUnion = DataTypeState | DataTypeTypesUnion;
|
|
@@ -60,6 +60,7 @@ export declare class InputMapState implements IInputMap, ValueReadingEntityClass
|
|
|
60
60
|
};
|
|
61
61
|
addSelfToProject(): InputMapState;
|
|
62
62
|
setParent(parent: PassThroughCallableEntityState | InputMapState): InputMapState;
|
|
63
|
+
setDeclaration(declaration: ArgumentDeclarationState | PropertyState | null): InputMapState;
|
|
63
64
|
removeInput(input: InputMapState): InputMapState;
|
|
64
65
|
addInput(input: InputMapState): InputMapState;
|
|
65
66
|
initChildren(): InputMapState;
|
|
@@ -104,7 +105,9 @@ export declare class InputMapState implements IInputMap, ValueReadingEntityClass
|
|
|
104
105
|
getDefaultValue(): PrimitiveValueState | null;
|
|
105
106
|
setDefaultValue(value: PrimitiveValueState): InputMapState;
|
|
106
107
|
clone(_?: PassThroughCallableEntityState): InputMapState;
|
|
107
|
-
getDataType(
|
|
108
|
+
getDataType({ debug, }?: {
|
|
109
|
+
debug?: boolean;
|
|
110
|
+
}): DataTypeState | null;
|
|
108
111
|
}
|
|
109
112
|
export declare class VariableInputMapState extends InputMapState implements IVariableInputMap {
|
|
110
113
|
declaration: PropertyState | null;
|
|
@@ -10,6 +10,7 @@ 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';
|
|
13
14
|
|
|
14
15
|
export declare class VariableDeclarationState implements IVariableDeclaration, BaseState, UserManagedEntityStateFunctionality, ValueWritingEntityClass, ValueReadingEntityClass, BaseCanvasDraggableState, ChildEntityState, EntityWithValueClass, PassThroughCallableEntityClass, CallableEntityClass {
|
|
15
16
|
initialData: IVariableDeclaration | IVariableDeclarationTransfer;
|
|
@@ -88,8 +89,12 @@ export declare class VariableDeclarationState implements IVariableDeclaration, B
|
|
|
88
89
|
subscribe(): VariableDeclarationState;
|
|
89
90
|
unsubscribe(): VariableDeclarationState;
|
|
90
91
|
subscribeInstance(instance: VariableInstanceState): VariableDeclarationState;
|
|
91
|
-
syncInputsAndOutputs(): VariableDeclarationState;
|
|
92
92
|
removeInstance(instance: VariableInstanceState): VariableDeclarationState;
|
|
93
|
+
getMasterInputWithValueWritterFromAllInstances(input: VariableInputMapState): VariableInputMapState;
|
|
94
|
+
getPropertyForInputFromAllInstances(input: VariableInputMapState): PropertyState | null;
|
|
95
|
+
inferDataTypeAndSyncInstancesInputsAndOutputs({ debug, }?: {
|
|
96
|
+
debug?: boolean;
|
|
97
|
+
}): VariableDeclarationState;
|
|
93
98
|
sync(data: Partial<IVariableDeclaration>): VariableDeclarationState;
|
|
94
99
|
load(): Promise<VariableDeclarationState>;
|
|
95
100
|
create(): Promise<VariableDeclarationState>;
|
|
@@ -47,5 +47,5 @@ export declare function inferInputMapDataType(entity: InputMapState): DataTypeSt
|
|
|
47
47
|
export declare function inferVariableInstanceDataType(entity: VariableInstanceState): DataTypeState | null;
|
|
48
48
|
export declare function inferVariableDeclarationDataType(entity: VariableDeclarationState): DataTypeState | null;
|
|
49
49
|
export declare function inferOutputMapDataType(entity: OutputMapState): DataTypeState | null;
|
|
50
|
-
export declare function inferDataType(entity: EntityWithValueState): DataTypeState | null;
|
|
51
|
-
export declare function resolveDataType(entity: EntityWithValueState): DataTypeState | null;
|
|
50
|
+
export declare function inferDataType(entity: EntityWithValueState | PropertyState | ValueDescriptorState): DataTypeState | null;
|
|
51
|
+
export declare function resolveDataType(entity: EntityWithValueState | PropertyState | ValueDescriptorState): 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.6017",
|
|
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",
|