@elyx-code/project-logic-tree 0.0.6049 → 0.0.6050
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 +20 -1
- package/dist/definitions/built-in-base-entities/operations/custom-entity/validate-data.d.ts +0 -8
- package/dist/definitions/types/data-type.d.ts +4 -4
- package/dist/index.js +7799 -7566
- package/dist/index.umd.cjs +167 -167
- package/dist/tree/built-in/operations/custom-entity/validate-data.d.ts +11 -1
- package/dist/tree/state/action-descriptor/action-descriptor.d.ts +5 -0
- package/dist/tree/state/data-type/data-type.d.ts +5 -4
- package/dist/tree/state/input-map/input-map.d.ts +3 -0
- package/dist/tree/state/output-map/output-map.d.ts +3 -0
- package/dist/tree/utils/data-type.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
import { ActionDescriptorState, ProjectState } from '../../../state';
|
|
1
|
+
import { ActionDescriptorState, CustomEntityState, DataTypeState, InputMapState, OperationState, OutputMapState, ProjectState } from '../../../state';
|
|
2
2
|
|
|
3
3
|
export declare class ValidateDataOperation extends ActionDescriptorState {
|
|
4
4
|
constructor(parentProjectState: ProjectState);
|
|
5
|
+
getEntityToMatchInputMap(operation: OperationState): InputMapState | null;
|
|
6
|
+
getDataToValidateInputMap(operation: OperationState): InputMapState | null;
|
|
7
|
+
getOutputDataOutputMap(operation: OperationState): OutputMapState | null;
|
|
8
|
+
getEntityToMatch(entityToMatchInputMap: InputMapState): CustomEntityState | null;
|
|
9
|
+
syncOperationInstance(operation: OperationState): OperationState;
|
|
10
|
+
syncEntityToMatchInputMapDataType(inputMap: InputMapState): DataTypeState | null;
|
|
11
|
+
syncDataToValidateInputMapDataType(inputMap: InputMapState): DataTypeState | null;
|
|
12
|
+
syncOutputDataOutputMapDataType(outputMap: OutputMapState): DataTypeState | null;
|
|
13
|
+
inferInputMapDataType(inputMap: InputMapState): DataTypeState | null;
|
|
14
|
+
inferOutputMapDataType(outputMap: OutputMapState): DataTypeState | null;
|
|
5
15
|
}
|
|
@@ -12,6 +12,8 @@ import { EntityState, EntityWithLogicScopeState, IChangeSet } from '../types';
|
|
|
12
12
|
import { LoopState } from '../loop';
|
|
13
13
|
import { OperationState } from '../operation';
|
|
14
14
|
import { ConditionState } from '../condition';
|
|
15
|
+
import { InputMapState } from '../input-map';
|
|
16
|
+
import { OutputMapState } from '../output-map';
|
|
15
17
|
|
|
16
18
|
export interface IPrimitiveExecutionResult {
|
|
17
19
|
value: 'success' | 'error';
|
|
@@ -51,6 +53,9 @@ export declare class ActionDescriptorState implements IActionDescriptor, UserMan
|
|
|
51
53
|
errors: EntityGenerationError[];
|
|
52
54
|
modifiedData: IActionDescriptorGenerationTarget;
|
|
53
55
|
};
|
|
56
|
+
syncOperationInstance(operation: OperationState): OperationState;
|
|
57
|
+
inferInputMapDataType(inputMap: InputMapState): DataTypeState | null;
|
|
58
|
+
inferOutputMapDataType(outputMap: OutputMapState): DataTypeState | null;
|
|
54
59
|
validateGeneratedUpdate(data: Partial<IActionDescriptorGenerationTarget>): {
|
|
55
60
|
errors: EntityGenerationError[];
|
|
56
61
|
modifiedData: Partial<IActionDescriptorGenerationTarget>;
|
|
@@ -14,7 +14,8 @@ 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
|
+
import { InputMapState, VariableInputMapState } from '../input-map';
|
|
18
|
+
import { OutputMapState } from '../output-map';
|
|
18
19
|
|
|
19
20
|
export declare class DataTypeState implements IDataType, UserManagedEntityStateFunctionality, BaseState, ChildEntityState {
|
|
20
21
|
initialData: IDataType | IDataTypeTransfer;
|
|
@@ -34,7 +35,7 @@ export declare class DataTypeState implements IDataType, UserManagedEntityStateF
|
|
|
34
35
|
orChildrenGroup: DataTypeState[] | null;
|
|
35
36
|
project: ProjectState;
|
|
36
37
|
errors: EntityError[];
|
|
37
|
-
parent: PropertyState | ArgumentDeclarationState | ReturnDeclarationState | VariableDeclarationState | ValueDescriptorState | DataTypeState;
|
|
38
|
+
parent: PropertyState | ArgumentDeclarationState | ReturnDeclarationState | VariableDeclarationState | ValueDescriptorState | InputMapState | OutputMapState | DataTypeState;
|
|
38
39
|
initialized: boolean;
|
|
39
40
|
inferred: boolean;
|
|
40
41
|
constructor(initialDataTypeData: IDataType | IDataTypeTransfer, parentProjectState: ProjectState);
|
|
@@ -61,7 +62,7 @@ export declare class DataTypeState implements IDataType, UserManagedEntityStateF
|
|
|
61
62
|
modifiedData: Partial<IDataTypeGenerationTarget>;
|
|
62
63
|
};
|
|
63
64
|
addSelfToProject(): IChangeSet<DataTypeState>;
|
|
64
|
-
setParent(parent: PropertyState | ArgumentDeclarationState | ReturnDeclarationState | VariableDeclarationState | ValueDescriptorState | DataTypeState): DataTypeState;
|
|
65
|
+
setParent(parent: PropertyState | ArgumentDeclarationState | ReturnDeclarationState | VariableDeclarationState | ValueDescriptorState | InputMapState | OutputMapState | DataTypeState): DataTypeState;
|
|
65
66
|
removeChildGroup(child: DataTypeState): DataTypeState;
|
|
66
67
|
initChildren(): DataTypeState;
|
|
67
68
|
subscribe(): DataTypeState;
|
|
@@ -100,7 +101,7 @@ export declare class DataTypeState implements IDataType, UserManagedEntityStateF
|
|
|
100
101
|
};
|
|
101
102
|
getErrors(): EntityError[];
|
|
102
103
|
getShallowErrors(): EntityError[];
|
|
103
|
-
clone(parent?: PropertyState | VariableDeclarationState | ArgumentDeclarationState | ReturnDeclarationState | ValueDescriptorState | DataTypeState | null, newId?: string | null, subscribe?: boolean): DataTypeState;
|
|
104
|
+
clone(parent?: PropertyState | VariableDeclarationState | ArgumentDeclarationState | ReturnDeclarationState | ValueDescriptorState | InputMapState | OutputMapState | DataTypeState | null, newId?: string | null, subscribe?: boolean): DataTypeState;
|
|
104
105
|
merge(sourceEntity: DataTypeState): IChangeSet<DataTypeState>;
|
|
105
106
|
addToAndGroup(child: DataTypeState): DataTypeState;
|
|
106
107
|
addToOrGroup(child: DataTypeState): DataTypeState;
|
|
@@ -29,6 +29,7 @@ export declare class InputMapState implements IInputMap, ValueReadingEntityClass
|
|
|
29
29
|
readonly type: EntityType.InputMap;
|
|
30
30
|
defaultValue: PrimitiveValueState | null;
|
|
31
31
|
readsValue: ValueWritingEntityState | null;
|
|
32
|
+
dataType: DataTypeState | null;
|
|
32
33
|
project: ProjectState;
|
|
33
34
|
errors: EntityError[];
|
|
34
35
|
parent: PassThroughCallableEntityState;
|
|
@@ -59,6 +60,8 @@ export declare class InputMapState implements IInputMap, ValueReadingEntityClass
|
|
|
59
60
|
};
|
|
60
61
|
addSelfToProject(): IChangeSet<InputMapState>;
|
|
61
62
|
setParent(parent: PassThroughCallableEntityState): InputMapState;
|
|
63
|
+
setDataType(dataType: DataTypeState): InputMapState;
|
|
64
|
+
removeDataType(): InputMapState;
|
|
62
65
|
setDeclaration(declaration: ArgumentDeclarationState | PropertyState | ValueDescriptorState | null): InputMapState;
|
|
63
66
|
initChildren(): InputMapState;
|
|
64
67
|
setValueWriter(valueWriter: ValueWritingEntityState): InputMapState;
|
|
@@ -21,6 +21,7 @@ export declare class OutputMapState implements IOutputMap, UserManagedEntityStat
|
|
|
21
21
|
parentRelationType?: OutputMapParentChildRelation;
|
|
22
22
|
declaration: ReturnDeclarationState | PropertyState | ValueDescriptorState;
|
|
23
23
|
writesValues: ValueReadingEntityState[];
|
|
24
|
+
dataType: DataTypeState | null;
|
|
24
25
|
project: ProjectState;
|
|
25
26
|
errors: EntityError[];
|
|
26
27
|
parent: PassThroughCallableEntityWithOutputsState;
|
|
@@ -53,6 +54,8 @@ export declare class OutputMapState implements IOutputMap, UserManagedEntityStat
|
|
|
53
54
|
addValueReader(entity: ValueReadingEntityState): OutputMapState;
|
|
54
55
|
removeValueReader(valueReader: ValueReadingEntityState): OutputMapState;
|
|
55
56
|
setParent(parent: PassThroughCallableEntityWithOutputsState): OutputMapState;
|
|
57
|
+
setDataType(dataType: DataTypeState): OutputMapState;
|
|
58
|
+
removeDataType(): OutputMapState;
|
|
56
59
|
setDeclaration(declaration: ReturnDeclarationState | PropertyState | ValueDescriptorState): OutputMapState;
|
|
57
60
|
initChildren(): OutputMapState;
|
|
58
61
|
subscribe(): OutputMapState;
|
|
@@ -47,5 +47,7 @@ export declare function inferReturnDeclarationDataType(entity: ReturnDeclaration
|
|
|
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 inferPropertyDataType(entity: PropertyState): DataTypeState | null;
|
|
51
|
+
export declare function inferValueDescriptorDataType(entity: ValueDescriptorState): DataTypeState | null;
|
|
50
52
|
export declare function inferDataType(entity: EntityWithValueState | PropertyState | ValueDescriptorState): DataTypeState | null;
|
|
51
53
|
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.6050",
|
|
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",
|