@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
|
@@ -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;
|
|
@@ -37,15 +37,15 @@ export declare function getActionDescriptorBaseSchema(): z.ZodObject<{
|
|
|
37
37
|
type: EntityType.ActionDescriptor;
|
|
38
38
|
name: string;
|
|
39
39
|
description: string | null;
|
|
40
|
-
argumentsType: ActionDescriptorValuesType;
|
|
41
|
-
returnsType: ActionDescriptorValuesType;
|
|
40
|
+
argumentsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
41
|
+
returnsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
42
42
|
}, {
|
|
43
43
|
id: string;
|
|
44
44
|
type: EntityType.ActionDescriptor;
|
|
45
45
|
name: string;
|
|
46
46
|
description: string | null;
|
|
47
|
-
argumentsType: ActionDescriptorValuesType;
|
|
48
|
-
returnsType: ActionDescriptorValuesType;
|
|
47
|
+
argumentsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
48
|
+
returnsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
49
49
|
}>;
|
|
50
50
|
export declare function getActionDescriptorMetaShema(): z.ZodObject<z.objectUtil.extendShape<{
|
|
51
51
|
id: z.ZodString;
|
|
@@ -62,16 +62,16 @@ export declare function getActionDescriptorMetaShema(): z.ZodObject<z.objectUtil
|
|
|
62
62
|
name: string;
|
|
63
63
|
description: string | null;
|
|
64
64
|
version: number;
|
|
65
|
-
argumentsType: ActionDescriptorValuesType;
|
|
66
|
-
returnsType: ActionDescriptorValuesType;
|
|
65
|
+
argumentsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
66
|
+
returnsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
67
67
|
}, {
|
|
68
68
|
id: string;
|
|
69
69
|
type: EntityType.ActionDescriptor;
|
|
70
70
|
name: string;
|
|
71
71
|
description: string | null;
|
|
72
72
|
version: number;
|
|
73
|
-
argumentsType: ActionDescriptorValuesType;
|
|
74
|
-
returnsType: ActionDescriptorValuesType;
|
|
73
|
+
argumentsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
74
|
+
returnsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
75
75
|
}>;
|
|
76
76
|
export declare function getActionDescriptorGenerationTargetSchema(): z.ZodObject<z.objectUtil.extendShape<{
|
|
77
77
|
id: z.ZodString;
|
|
@@ -85,15 +85,15 @@ export declare function getActionDescriptorGenerationTargetSchema(): z.ZodObject
|
|
|
85
85
|
type: EntityType.ActionDescriptor;
|
|
86
86
|
name: string;
|
|
87
87
|
description: string | null;
|
|
88
|
-
argumentsType: ActionDescriptorValuesType;
|
|
89
|
-
returnsType: ActionDescriptorValuesType;
|
|
88
|
+
argumentsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
89
|
+
returnsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
90
90
|
}, {
|
|
91
91
|
id: string;
|
|
92
92
|
type: EntityType.ActionDescriptor;
|
|
93
93
|
name: string;
|
|
94
94
|
description: string | null;
|
|
95
|
-
argumentsType: ActionDescriptorValuesType;
|
|
96
|
-
returnsType: ActionDescriptorValuesType;
|
|
95
|
+
argumentsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
96
|
+
returnsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
97
97
|
}>;
|
|
98
98
|
export declare function getActionDescriptorNestedEntitiesSchema(): z.ZodObject<{
|
|
99
99
|
fixedArguments: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
@@ -380,8 +380,8 @@ export declare function getActionDescriptorSchema(): z.ZodObject<z.objectUtil.ex
|
|
|
380
380
|
entityId: string;
|
|
381
381
|
} | null;
|
|
382
382
|
version: number;
|
|
383
|
-
argumentsType: ActionDescriptorValuesType;
|
|
384
|
-
returnsType: ActionDescriptorValuesType;
|
|
383
|
+
argumentsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
384
|
+
returnsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
385
385
|
fixedArguments: ({
|
|
386
386
|
type: EntityType.ValueDescriptor;
|
|
387
387
|
} | Record<string, any>)[];
|
|
@@ -421,8 +421,8 @@ export declare function getActionDescriptorSchema(): z.ZodObject<z.objectUtil.ex
|
|
|
421
421
|
entityId: string;
|
|
422
422
|
} | null;
|
|
423
423
|
version: number;
|
|
424
|
-
argumentsType: ActionDescriptorValuesType;
|
|
425
|
-
returnsType: ActionDescriptorValuesType;
|
|
424
|
+
argumentsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
425
|
+
returnsType: ActionDescriptorValuesType.Fixed | ActionDescriptorValuesType.None | ActionDescriptorValuesType.Dynamic;
|
|
426
426
|
fixedArguments: ({
|
|
427
427
|
type: EntityType.ValueDescriptor;
|
|
428
428
|
} | Record<string, any>)[];
|
|
@@ -1,12 +1,13 @@
|
|
|
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';
|
|
8
8
|
import { EntityError, EntityGenerationError } from '../../state/error';
|
|
9
9
|
import { PrimitiveValueState } from '../primitive-value';
|
|
10
|
+
import { ValueDescriptorState } from '../value-descriptor';
|
|
10
11
|
|
|
11
12
|
export declare class ArgumentDeclarationState implements IArgumentDeclaration, UserManagedEntityStateFunctionality, ValueWritingEntityClass, BaseState, ChildEntityState, EntityWithValueClass {
|
|
12
13
|
initialData: IArgumentDeclaration | IArgumentDeclarationTransfer;
|
|
@@ -19,6 +20,7 @@ export declare class ArgumentDeclarationState implements IArgumentDeclaration, U
|
|
|
19
20
|
readonly type: EntityType.ArgumentDeclaration;
|
|
20
21
|
dataType: DataTypeState | null;
|
|
21
22
|
writesValues: ValueReadingEntityState[];
|
|
23
|
+
implements: ValueDescriptorState | null;
|
|
22
24
|
project: ProjectState;
|
|
23
25
|
errors: EntityError[];
|
|
24
26
|
parent: EntryPointEntityState | SearchState;
|
|
@@ -47,13 +49,11 @@ export declare class ArgumentDeclarationState implements IArgumentDeclaration, U
|
|
|
47
49
|
errors: EntityGenerationError[];
|
|
48
50
|
modifiedData: Partial<IArgumentDeclarationGenerationTarget>;
|
|
49
51
|
};
|
|
50
|
-
addSelfToProject():
|
|
51
|
-
affected: EntityState[];
|
|
52
|
-
self: ArgumentDeclarationState;
|
|
53
|
-
};
|
|
52
|
+
addSelfToProject(): IChangeSet<ArgumentDeclarationState>;
|
|
54
53
|
addValueReader(entity: ValueReadingEntityState): ArgumentDeclarationState;
|
|
55
54
|
removeValueReader(valueReader: ValueReadingEntityState): ArgumentDeclarationState;
|
|
56
55
|
setParent(parent: EntryPointEntityState | SearchState): ArgumentDeclarationState;
|
|
56
|
+
setImplements(implementsEntity: ValueDescriptorState): ArgumentDeclarationState;
|
|
57
57
|
initChildren(): ArgumentDeclarationState;
|
|
58
58
|
subscribe(): ArgumentDeclarationState;
|
|
59
59
|
unsubscribe(): 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;
|
|
@@ -21,9 +21,9 @@ export declare class DataTypeState implements IDataType, UserManagedEntityStateF
|
|
|
21
21
|
readonly id: EntityId;
|
|
22
22
|
version: EntityVersion;
|
|
23
23
|
isNullable: boolean;
|
|
24
|
-
isList: boolean;
|
|
24
|
+
isList: boolean | null;
|
|
25
25
|
constant: boolean;
|
|
26
|
-
asType: boolean;
|
|
26
|
+
asType: boolean | null;
|
|
27
27
|
readonly type: EntityType.DataType;
|
|
28
28
|
options?: string[];
|
|
29
29
|
parentRelationType?: DataTypeParentChildRelation;
|
|
@@ -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,15 +61,13 @@ 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;
|
|
71
68
|
removeInputDeclaration(input: ArgumentDeclarationState): FunctionDeclarationState;
|
|
72
69
|
setParent(parent: ProjectState | InstalledProjectState | CustomEntityState | LoopState | BuiltInBaseEntityState | PrimitiveEntityState): FunctionDeclarationState;
|
|
70
|
+
setImplements(implementsEntity: ActionDescriptorState): FunctionDeclarationState;
|
|
73
71
|
addCall(entity: CallableEntityState): FunctionDeclarationState;
|
|
74
72
|
removeCall(entity: CallableEntityState): FunctionDeclarationState;
|
|
75
73
|
initChildren(): 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;
|
|
@@ -221,8 +221,8 @@ export declare function getGlobalEventNestedEntitiesSchema(): z.ZodObject<z.obje
|
|
|
221
221
|
entityId: string;
|
|
222
222
|
} | null;
|
|
223
223
|
version: number;
|
|
224
|
-
argumentsType: import(
|
|
225
|
-
returnsType: import(
|
|
224
|
+
argumentsType: import("@src/definitions").ActionDescriptorValuesType.Fixed | import("@src/definitions").ActionDescriptorValuesType.None | import("@src/definitions").ActionDescriptorValuesType.Dynamic;
|
|
225
|
+
returnsType: import("@src/definitions").ActionDescriptorValuesType.Fixed | import("@src/definitions").ActionDescriptorValuesType.None | import("@src/definitions").ActionDescriptorValuesType.Dynamic;
|
|
226
226
|
fixedArguments: ({
|
|
227
227
|
type: EntityType.ValueDescriptor;
|
|
228
228
|
} | Record<string, any>)[];
|
|
@@ -262,8 +262,8 @@ export declare function getGlobalEventNestedEntitiesSchema(): z.ZodObject<z.obje
|
|
|
262
262
|
entityId: string;
|
|
263
263
|
} | null;
|
|
264
264
|
version: number;
|
|
265
|
-
argumentsType: import(
|
|
266
|
-
returnsType: import(
|
|
265
|
+
argumentsType: import("@src/definitions").ActionDescriptorValuesType.Fixed | import("@src/definitions").ActionDescriptorValuesType.None | import("@src/definitions").ActionDescriptorValuesType.Dynamic;
|
|
266
|
+
returnsType: import("@src/definitions").ActionDescriptorValuesType.Fixed | import("@src/definitions").ActionDescriptorValuesType.None | import("@src/definitions").ActionDescriptorValuesType.Dynamic;
|
|
267
267
|
fixedArguments: ({
|
|
268
268
|
type: EntityType.ValueDescriptor;
|
|
269
269
|
} | Record<string, any>)[];
|
|
@@ -512,8 +512,8 @@ export declare function getGlobalEventNestedEntitiesSchema(): z.ZodObject<z.obje
|
|
|
512
512
|
entityId: string;
|
|
513
513
|
} | null;
|
|
514
514
|
version: number;
|
|
515
|
-
argumentsType: import(
|
|
516
|
-
returnsType: import(
|
|
515
|
+
argumentsType: import("@src/definitions").ActionDescriptorValuesType.Fixed | import("@src/definitions").ActionDescriptorValuesType.None | import("@src/definitions").ActionDescriptorValuesType.Dynamic;
|
|
516
|
+
returnsType: import("@src/definitions").ActionDescriptorValuesType.Fixed | import("@src/definitions").ActionDescriptorValuesType.None | import("@src/definitions").ActionDescriptorValuesType.Dynamic;
|
|
517
517
|
fixedArguments: ({
|
|
518
518
|
type: EntityType.ValueDescriptor;
|
|
519
519
|
} | Record<string, any>)[];
|
|
@@ -632,8 +632,8 @@ export declare function getGlobalEventNestedEntitiesSchema(): z.ZodObject<z.obje
|
|
|
632
632
|
entityId: string;
|
|
633
633
|
} | null;
|
|
634
634
|
version: number;
|
|
635
|
-
argumentsType: import(
|
|
636
|
-
returnsType: import(
|
|
635
|
+
argumentsType: import("@src/definitions").ActionDescriptorValuesType.Fixed | import("@src/definitions").ActionDescriptorValuesType.None | import("@src/definitions").ActionDescriptorValuesType.Dynamic;
|
|
636
|
+
returnsType: import("@src/definitions").ActionDescriptorValuesType.Fixed | import("@src/definitions").ActionDescriptorValuesType.None | import("@src/definitions").ActionDescriptorValuesType.Dynamic;
|
|
637
637
|
fixedArguments: ({
|
|
638
638
|
type: EntityType.ValueDescriptor;
|
|
639
639
|
} | Record<string, any>)[];
|
|
@@ -870,8 +870,8 @@ export declare function getGlobalEventSchema(): z.ZodObject<z.objectUtil.extendS
|
|
|
870
870
|
entityId: string;
|
|
871
871
|
} | null;
|
|
872
872
|
version: number;
|
|
873
|
-
argumentsType: import(
|
|
874
|
-
returnsType: import(
|
|
873
|
+
argumentsType: import("@src/definitions").ActionDescriptorValuesType.Fixed | import("@src/definitions").ActionDescriptorValuesType.None | import("@src/definitions").ActionDescriptorValuesType.Dynamic;
|
|
874
|
+
returnsType: import("@src/definitions").ActionDescriptorValuesType.Fixed | import("@src/definitions").ActionDescriptorValuesType.None | import("@src/definitions").ActionDescriptorValuesType.Dynamic;
|
|
875
875
|
fixedArguments: ({
|
|
876
876
|
type: EntityType.ValueDescriptor;
|
|
877
877
|
} | Record<string, any>)[];
|
|
@@ -911,8 +911,8 @@ export declare function getGlobalEventSchema(): z.ZodObject<z.objectUtil.extendS
|
|
|
911
911
|
entityId: string;
|
|
912
912
|
} | null;
|
|
913
913
|
version: number;
|
|
914
|
-
argumentsType: import(
|
|
915
|
-
returnsType: import(
|
|
914
|
+
argumentsType: import("@src/definitions").ActionDescriptorValuesType.Fixed | import("@src/definitions").ActionDescriptorValuesType.None | import("@src/definitions").ActionDescriptorValuesType.Dynamic;
|
|
915
|
+
returnsType: import("@src/definitions").ActionDescriptorValuesType.Fixed | import("@src/definitions").ActionDescriptorValuesType.None | import("@src/definitions").ActionDescriptorValuesType.Dynamic;
|
|
916
916
|
fixedArguments: ({
|
|
917
917
|
type: EntityType.ValueDescriptor;
|
|
918
918
|
} | Record<string, any>)[];
|
|
@@ -1161,8 +1161,8 @@ export declare function getGlobalEventSchema(): z.ZodObject<z.objectUtil.extendS
|
|
|
1161
1161
|
entityId: string;
|
|
1162
1162
|
} | null;
|
|
1163
1163
|
version: number;
|
|
1164
|
-
argumentsType: import(
|
|
1165
|
-
returnsType: import(
|
|
1164
|
+
argumentsType: import("@src/definitions").ActionDescriptorValuesType.Fixed | import("@src/definitions").ActionDescriptorValuesType.None | import("@src/definitions").ActionDescriptorValuesType.Dynamic;
|
|
1165
|
+
returnsType: import("@src/definitions").ActionDescriptorValuesType.Fixed | import("@src/definitions").ActionDescriptorValuesType.None | import("@src/definitions").ActionDescriptorValuesType.Dynamic;
|
|
1166
1166
|
fixedArguments: ({
|
|
1167
1167
|
type: EntityType.ValueDescriptor;
|
|
1168
1168
|
} | Record<string, any>)[];
|
|
@@ -1284,8 +1284,8 @@ export declare function getGlobalEventSchema(): z.ZodObject<z.objectUtil.extendS
|
|
|
1284
1284
|
entityId: string;
|
|
1285
1285
|
} | null;
|
|
1286
1286
|
version: number;
|
|
1287
|
-
argumentsType: import(
|
|
1288
|
-
returnsType: import(
|
|
1287
|
+
argumentsType: import("@src/definitions").ActionDescriptorValuesType.Fixed | import("@src/definitions").ActionDescriptorValuesType.None | import("@src/definitions").ActionDescriptorValuesType.Dynamic;
|
|
1288
|
+
returnsType: import("@src/definitions").ActionDescriptorValuesType.Fixed | import("@src/definitions").ActionDescriptorValuesType.None | import("@src/definitions").ActionDescriptorValuesType.Dynamic;
|
|
1289
1289
|
fixedArguments: ({
|
|
1290
1290
|
type: EntityType.ValueDescriptor;
|
|
1291
1291
|
} | Record<string, any>)[];
|
|
@@ -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;
|
|
@@ -150,6 +147,9 @@ export declare class LoopState implements ILoop, BaseState, UserManagedEntitySta
|
|
|
150
147
|
createCurrentValueInputBasedOnInputMap(): IChangeSet<LoopState>;
|
|
151
148
|
syncFixedBodyArgumentDeclarations(): IChangeSet<LoopState>;
|
|
152
149
|
syncInputMaps(): IChangeSet<LoopState>;
|
|
150
|
+
getCurrentValueBuiltInValueDescriptor(): ValueDescriptorState | null;
|
|
151
|
+
getCurrentIterationNumberBuiltInValueDescriptor(): ValueDescriptorState;
|
|
152
|
+
syncBody(): IChangeSet<LoopState>;
|
|
153
153
|
syncChildren(): IChangeSet<LoopState>;
|
|
154
154
|
}
|
|
155
155
|
export type LoopPayloadUnion = LoopState | LoopTypesUnion;
|
|
@@ -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;
|