@elyx-code/project-logic-tree 0.0.6113 → 0.0.6115
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/conditions/index.d.ts +1 -0
- package/dist/definitions/built-in-base-entities/entities/execution/index.d.ts +1 -1
- package/dist/definitions/built-in-base-entities/entities/index.d.ts +3 -0
- package/dist/definitions/built-in-base-entities/global-events/index.d.ts +1 -0
- package/dist/definitions/built-in-base-entities/index.d.ts +2 -0
- package/dist/definitions/built-in-base-entities/loops/index.d.ts +3 -0
- package/dist/definitions/built-in-base-entities/operations/index.d.ts +1 -0
- package/dist/definitions/built-in-base-entities/primitive-entities.d.ts +1 -0
- package/dist/definitions/built-in-base-entities/value-descriptors/index.d.ts +3 -0
- package/dist/definitions/mock/default-mock/entities/alt-relational-database/properties.d.ts +2 -2
- package/dist/definitions/mock/default-mock/entities/default-relational-database/properties.d.ts +2 -2
- package/dist/definitions/mock/default-mock/entities/get-company-by-id-endpoint/properties.d.ts +3 -3
- package/dist/definitions/mock/default-mock/events/project-loaded/get-bitcoin-price/get-bitcoin-price-http-call.d.ts +2 -2
- package/dist/definitions/mock/default-mock/functions/concurrency-and-waits/wait.d.ts +2 -2
- package/dist/definitions/mock/default-mock/functions/manual-hello-world-loop/loop/break-statement.d.ts +1 -2
- package/dist/definitions/mock/default-mock/functions/manual-hello-world-loop/loop/loop.d.ts +2 -2
- package/dist/definitions/types/index.d.ts +4 -0
- package/dist/definitions/types/variable.d.ts +2 -2
- package/dist/index.js +25358 -21568
- package/dist/index.umd.cjs +253 -253
- package/dist/tree/state/action-descriptor/action-descriptor.d.ts +18 -14
- package/dist/tree/state/argument-declaration/argument-declaration.d.ts +16 -12
- package/dist/tree/state/argument-declaration/validation/validation-schema.d.ts +4 -4
- package/dist/tree/state/base.d.ts +34 -8
- package/dist/tree/state/break-statement/break-statement.d.ts +17 -14
- package/dist/tree/state/built-in-base-entity/built-in-base-entity.d.ts +10 -10
- package/dist/tree/state/built-in-base-entity/validation-schema.d.ts +10 -10
- package/dist/tree/state/condition/condition.d.ts +18 -13
- package/dist/tree/state/continue-statement/continue-statement.d.ts +17 -14
- package/dist/tree/state/custom-entity/custom-entity.d.ts +21 -13
- package/dist/tree/state/custom-entity/validation/validation-schema.d.ts +12 -12
- package/dist/tree/state/data-type/data-type.d.ts +16 -12
- package/dist/tree/state/function-call/function-call.d.ts +18 -13
- package/dist/tree/state/function-declaration/function-declaration.d.ts +17 -13
- package/dist/tree/state/function-declaration/validation/validation-schema.d.ts +4 -4
- package/dist/tree/state/global-event/global-event.d.ts +18 -13
- package/dist/tree/state/input-map/input-map.d.ts +19 -15
- package/dist/tree/state/installed-project/installed-project.d.ts +17 -13
- package/dist/tree/state/internal-call/internal-call.d.ts +22 -13
- package/dist/tree/state/literal-value/literal-value.d.ts +16 -12
- package/dist/tree/state/loop/loop.d.ts +18 -13
- package/dist/tree/state/operation/operation.d.ts +18 -13
- package/dist/tree/state/output-map/output-map.d.ts +20 -16
- package/dist/tree/state/primitive-entity/primitive-entity.d.ts +10 -10
- package/dist/tree/state/primitive-entity/validation/validation-schema.d.ts +10 -10
- package/dist/tree/state/project/project.d.ts +17 -12
- package/dist/tree/state/project/project.test.d.ts +1 -0
- package/dist/tree/state/property/property.d.ts +17 -12
- package/dist/tree/state/property/validation/validation-schema.d.ts +12 -12
- package/dist/tree/state/return-declaration/return-declaration.d.ts +16 -12
- package/dist/tree/state/return-statement/return-statement.d.ts +17 -14
- package/dist/tree/state/search/search.d.ts +17 -13
- package/dist/tree/state/store.d.ts +1 -0
- package/dist/tree/state/value-descriptor/value-descriptor.d.ts +17 -13
- package/dist/tree/state/variable-declaration/validation/validation-schema.d.ts +4 -4
- package/dist/tree/state/variable-declaration/variable-declaration.d.ts +17 -13
- package/dist/tree/state/variable-instance/validation/validation-schema.d.ts +4 -4
- package/dist/tree/state/variable-instance/variable-instance.d.ts +17 -13
- package/dist/tree/utils/index.d.ts +96 -4
- package/dist/tree/utils/traverser.d.ts +17 -0
- package/dist/tree/utils/traverser.test.d.ts +1 -0
- package/dist/tree/utils/uuid.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CustomEntityTypesUnion, ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, ICustomEntity, ICustomEntityGenerationTarget, ICustomEntityReference, ICustomEntityShallowTransfer, ICustomEntityTransfer } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
|
-
import { BaseCanvasDraggableState, BaseState, ChildEntityState, UserManagedEntityStateFunctionality } from '../base';
|
|
3
|
+
import { BaseCanvasDraggableState, BaseState, ChildEntityState, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, UserManagedEntityStateFunctionality } from '../base';
|
|
4
4
|
import { PropertyState } from '../property';
|
|
5
5
|
import { FunctionDeclarationState } from '../function-declaration';
|
|
6
6
|
import { ProjectState } from '../project/project';
|
|
@@ -34,6 +34,7 @@ export declare class CustomEntityState implements BaseState, UserManagedEntitySt
|
|
|
34
34
|
suggestedProperties: PropertyState[];
|
|
35
35
|
suggestedMethods: FunctionDeclarationState[];
|
|
36
36
|
constructor(initialEntityData: ICustomEntity | ICustomEntityTransfer, parentProjectState: ProjectState);
|
|
37
|
+
static repository: IEditableEntityPersistanceRepository;
|
|
37
38
|
static MUTABLE_BASE_PROPERTIES: string[];
|
|
38
39
|
static INMUTABLE_BASE_PROPERTIES: string[];
|
|
39
40
|
static BASE_PROPERTIES: string[];
|
|
@@ -61,8 +62,14 @@ export declare class CustomEntityState implements BaseState, UserManagedEntitySt
|
|
|
61
62
|
errors: EntityGenerationError[];
|
|
62
63
|
modifiedData: Partial<ICustomEntityGenerationTarget>;
|
|
63
64
|
};
|
|
65
|
+
hydrateAncestors(): IChangeSet<CustomEntityState>;
|
|
66
|
+
afterAllChildrenInitialized(): IChangeSet<CustomEntityState>;
|
|
64
67
|
addSelfToProject(): IChangeSet<CustomEntityState>;
|
|
65
68
|
setParent(parent: ProjectState | DataTypeState): CustomEntityState;
|
|
69
|
+
addExtension(entity: CustomEntityState | BuiltInBaseEntityState): CustomEntityState;
|
|
70
|
+
removeExtension(entity: CustomEntityState | BuiltInBaseEntityState): CustomEntityState;
|
|
71
|
+
addImplementation(entity: CustomEntityState | BuiltInBaseEntityState): CustomEntityState;
|
|
72
|
+
removeImplementation(entity: CustomEntityState | BuiltInBaseEntityState): CustomEntityState;
|
|
66
73
|
removeProperty(property: PropertyState): CustomEntityState;
|
|
67
74
|
addMethod(method: FunctionDeclarationState): CustomEntityState;
|
|
68
75
|
removeMethod(method: FunctionDeclarationState): CustomEntityState;
|
|
@@ -80,10 +87,10 @@ export declare class CustomEntityState implements BaseState, UserManagedEntitySt
|
|
|
80
87
|
subscribe(): CustomEntityState;
|
|
81
88
|
unsubscribe(): CustomEntityState;
|
|
82
89
|
sync(data: Partial<ICustomEntity | ICustomEntityTransfer>): CustomEntityState;
|
|
83
|
-
load(): Promise<CustomEntityState>;
|
|
84
|
-
create(): Promise<CustomEntityState>;
|
|
85
|
-
update(_
|
|
86
|
-
delete(): Promise<CustomEntityState>;
|
|
90
|
+
load(_?: IEntityPersistanceOptions): Promise<CustomEntityState>;
|
|
91
|
+
create(_?: IEntityPersistanceOptions): Promise<CustomEntityState>;
|
|
92
|
+
update(_?: IEntityPersistanceOptions): Promise<CustomEntityState>;
|
|
93
|
+
delete(_?: IEntityPersistanceOptions): Promise<CustomEntityState>;
|
|
87
94
|
remove({ ignoreUpstream: _, seenEntities, }?: {
|
|
88
95
|
ignoreUpstream: boolean;
|
|
89
96
|
seenEntities: Set<string>;
|
|
@@ -97,14 +104,15 @@ export declare class CustomEntityState implements BaseState, UserManagedEntitySt
|
|
|
97
104
|
affected: EntityState[];
|
|
98
105
|
self: CustomEntityState;
|
|
99
106
|
};
|
|
100
|
-
toFlat(seenEntities?: Set<
|
|
101
|
-
toFlatIds(seenEntities?: Set<
|
|
102
|
-
toJSON(): ICustomEntityTransfer;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
107
|
+
toFlat(seenEntities?: Set<EntityId>): EntityState[];
|
|
108
|
+
toFlatIds(seenEntities?: Set<EntityId>): EntityId[];
|
|
109
|
+
toJSON(seenEntities?: Set<EntityId>): ICustomEntityTransfer | ICustomEntityReference;
|
|
110
|
+
toJSONClone(options?: IEntityJSONCloneOptions): ICustomEntityTransfer | ICustomEntityReference;
|
|
111
|
+
toReference(options?: IEntityRecursionOptions): ICustomEntityReference;
|
|
112
|
+
toShallowJSON(options?: IEntityRecursionOptions): ICustomEntityShallowTransfer;
|
|
113
|
+
toFlatJSON(seenEntities?: Set<EntityId>): ElementShallowTransfer[];
|
|
106
114
|
toGenerationTarget(): ICustomEntityGenerationTarget;
|
|
107
|
-
toFlatGenerationTarget(seenEntities?: Set<
|
|
115
|
+
toFlatGenerationTarget(seenEntities?: Set<EntityId>): ElementGenerationTarget[];
|
|
108
116
|
clearErrors(): CustomEntityState;
|
|
109
117
|
validate(): {
|
|
110
118
|
success: boolean;
|
|
@@ -113,7 +121,7 @@ export declare class CustomEntityState implements BaseState, UserManagedEntitySt
|
|
|
113
121
|
};
|
|
114
122
|
getErrors(): EntityError[];
|
|
115
123
|
getShallowErrors(): EntityError[];
|
|
116
|
-
clone(parent?: DataTypeState | null, newId?: string | null, subscribe?: boolean): CustomEntityState;
|
|
124
|
+
clone(parent?: ProjectState | DataTypeState | null, newId?: string | null, subscribe?: boolean): CustomEntityState;
|
|
117
125
|
getFunctionDeclaration(id: EntityId): FunctionDeclarationState | undefined;
|
|
118
126
|
implement(newEntityName: string, newId?: string): {
|
|
119
127
|
errors: [];
|
|
@@ -36,15 +36,15 @@ export declare function getCustomEntityBaseSchema(): z.ZodObject<{
|
|
|
36
36
|
type: EntityType.CustomEntity;
|
|
37
37
|
name: string;
|
|
38
38
|
description: string | null;
|
|
39
|
-
abstract: boolean;
|
|
40
39
|
static: boolean;
|
|
40
|
+
abstract: boolean;
|
|
41
41
|
}, {
|
|
42
42
|
id: string;
|
|
43
43
|
type: EntityType.CustomEntity;
|
|
44
44
|
name: string;
|
|
45
45
|
description: string | null;
|
|
46
|
-
abstract: boolean;
|
|
47
46
|
static: boolean;
|
|
47
|
+
abstract: boolean;
|
|
48
48
|
}>;
|
|
49
49
|
export declare function getCustomEntityMetaSchema(): z.ZodObject<z.objectUtil.extendShape<{
|
|
50
50
|
id: z.ZodString;
|
|
@@ -63,20 +63,20 @@ export declare function getCustomEntityMetaSchema(): z.ZodObject<z.objectUtil.ex
|
|
|
63
63
|
name: string;
|
|
64
64
|
description: string | null;
|
|
65
65
|
version: number;
|
|
66
|
-
abstract: boolean;
|
|
67
|
-
static: boolean;
|
|
68
66
|
x: number;
|
|
69
67
|
y: number;
|
|
68
|
+
static: boolean;
|
|
69
|
+
abstract: boolean;
|
|
70
70
|
}, {
|
|
71
71
|
id: string;
|
|
72
72
|
type: EntityType.CustomEntity;
|
|
73
73
|
name: string;
|
|
74
74
|
description: string | null;
|
|
75
75
|
version: number;
|
|
76
|
-
abstract: boolean;
|
|
77
|
-
static: boolean;
|
|
78
76
|
x: number;
|
|
79
77
|
y: number;
|
|
78
|
+
static: boolean;
|
|
79
|
+
abstract: boolean;
|
|
80
80
|
}>;
|
|
81
81
|
export declare function getCustomEntityGenerationTargetSchema(): z.ZodObject<z.objectUtil.extendShape<{
|
|
82
82
|
id: z.ZodString;
|
|
@@ -90,15 +90,15 @@ export declare function getCustomEntityGenerationTargetSchema(): z.ZodObject<z.o
|
|
|
90
90
|
type: EntityType.CustomEntity;
|
|
91
91
|
name: string;
|
|
92
92
|
description: string | null;
|
|
93
|
-
abstract: boolean;
|
|
94
93
|
static: boolean;
|
|
94
|
+
abstract: boolean;
|
|
95
95
|
}, {
|
|
96
96
|
id: string;
|
|
97
97
|
type: EntityType.CustomEntity;
|
|
98
98
|
name: string;
|
|
99
99
|
description: string | null;
|
|
100
|
-
abstract: boolean;
|
|
101
100
|
static: boolean;
|
|
101
|
+
abstract: boolean;
|
|
102
102
|
}>;
|
|
103
103
|
export declare function getCustomEntityParentReferenceSchema(): z.ZodUnion<[z.ZodObject<{
|
|
104
104
|
entityType: z.ZodLiteral<EntityType.Project>;
|
|
@@ -416,8 +416,6 @@ export declare function getCustomEntitySchema(): z.ZodObject<z.objectUtil.extend
|
|
|
416
416
|
entityId: string;
|
|
417
417
|
};
|
|
418
418
|
version: number;
|
|
419
|
-
abstract: boolean;
|
|
420
|
-
static: boolean;
|
|
421
419
|
methods: (Record<string, any> | {
|
|
422
420
|
type: EntityType.FunctionDeclaration;
|
|
423
421
|
})[];
|
|
@@ -429,6 +427,8 @@ export declare function getCustomEntitySchema(): z.ZodObject<z.objectUtil.extend
|
|
|
429
427
|
abstractMethods: (Record<string, any> | {
|
|
430
428
|
type: EntityType.ActionDescriptor;
|
|
431
429
|
})[];
|
|
430
|
+
static: boolean;
|
|
431
|
+
abstract: boolean;
|
|
432
432
|
}, {
|
|
433
433
|
id: string;
|
|
434
434
|
type: EntityType.CustomEntity;
|
|
@@ -456,8 +456,6 @@ export declare function getCustomEntitySchema(): z.ZodObject<z.objectUtil.extend
|
|
|
456
456
|
entityId: string;
|
|
457
457
|
};
|
|
458
458
|
version: number;
|
|
459
|
-
abstract: boolean;
|
|
460
|
-
static: boolean;
|
|
461
459
|
methods: (Record<string, any> | {
|
|
462
460
|
type: EntityType.FunctionDeclaration;
|
|
463
461
|
})[];
|
|
@@ -469,4 +467,6 @@ export declare function getCustomEntitySchema(): z.ZodObject<z.objectUtil.extend
|
|
|
469
467
|
abstractMethods: (Record<string, any> | {
|
|
470
468
|
type: EntityType.ActionDescriptor;
|
|
471
469
|
})[];
|
|
470
|
+
static: boolean;
|
|
471
|
+
abstract: boolean;
|
|
472
472
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EntityId, EntityType, EntityVersion, IDataType, IDataTypeTransfer, IDataTypeReference, IDataTypeShallowTransfer, ElementShallowTransfer, IDataTypeGenerationTarget, ElementGenerationTarget, DataTypeParentChildRelation, DataTypeTypesUnion } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
|
-
import { BaseState, ChildEntityState, UserManagedEntityStateFunctionality } from '../base';
|
|
3
|
+
import { BaseState, ChildEntityState, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, UserManagedEntityStateFunctionality } from '../base';
|
|
4
4
|
import { CustomEntityState } from '../custom-entity';
|
|
5
5
|
import { PrimitiveEntityState } from '../primitive-entity';
|
|
6
6
|
import { ProjectState } from '../project/project';
|
|
@@ -40,6 +40,7 @@ export declare class DataTypeState implements IDataType, UserManagedEntityStateF
|
|
|
40
40
|
initialized: boolean;
|
|
41
41
|
inferred: boolean;
|
|
42
42
|
constructor(initialDataTypeData: IDataType | IDataTypeTransfer, parentProjectState: ProjectState);
|
|
43
|
+
static repository: IEditableEntityPersistanceRepository;
|
|
43
44
|
static MUTABLE_BASE_PROPERTIES: string[];
|
|
44
45
|
static INMUTABLE_BASE_PROPERTIES: string[];
|
|
45
46
|
static BASE_PROPERTIES: string[];
|
|
@@ -64,6 +65,8 @@ export declare class DataTypeState implements IDataType, UserManagedEntityStateF
|
|
|
64
65
|
errors: EntityGenerationError[];
|
|
65
66
|
modifiedData: Partial<IDataTypeGenerationTarget>;
|
|
66
67
|
};
|
|
68
|
+
hydrateAncestors(): IChangeSet<DataTypeState>;
|
|
69
|
+
afterAllChildrenInitialized(): IChangeSet<DataTypeState>;
|
|
67
70
|
addSelfToProject(): IChangeSet<DataTypeState>;
|
|
68
71
|
setParent(parent: PropertyState | ArgumentDeclarationState | ReturnDeclarationState | VariableDeclarationState | ValueDescriptorState | InputMapState | OutputMapState | DataTypeState): DataTypeState;
|
|
69
72
|
removeChildGroup(child: DataTypeState): DataTypeState;
|
|
@@ -71,10 +74,10 @@ export declare class DataTypeState implements IDataType, UserManagedEntityStateF
|
|
|
71
74
|
subscribe(): DataTypeState;
|
|
72
75
|
unsubscribe(): DataTypeState;
|
|
73
76
|
sync(data: Partial<IDataType>): DataTypeState;
|
|
74
|
-
load(): Promise<DataTypeState>;
|
|
75
|
-
create(): Promise<DataTypeState>;
|
|
76
|
-
update(_
|
|
77
|
-
delete(): Promise<DataTypeState>;
|
|
77
|
+
load(_?: IEntityPersistanceOptions): Promise<DataTypeState>;
|
|
78
|
+
create(_?: IEntityPersistanceOptions): Promise<DataTypeState>;
|
|
79
|
+
update(_?: IEntityPersistanceOptions): Promise<DataTypeState>;
|
|
80
|
+
delete(_?: IEntityPersistanceOptions): Promise<DataTypeState>;
|
|
78
81
|
remove({ ignoreUpstream, seenEntities, }?: {
|
|
79
82
|
ignoreUpstream: boolean;
|
|
80
83
|
seenEntities: Set<string>;
|
|
@@ -88,14 +91,15 @@ export declare class DataTypeState implements IDataType, UserManagedEntityStateF
|
|
|
88
91
|
affected: EntityState[];
|
|
89
92
|
self: DataTypeState;
|
|
90
93
|
};
|
|
91
|
-
toFlat(seenEntities?: Set<
|
|
92
|
-
toFlatIds(seenEntities?: Set<
|
|
93
|
-
toJSON(): IDataTypeTransfer;
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
toFlat(seenEntities?: Set<EntityId>): EntityState[];
|
|
95
|
+
toFlatIds(seenEntities?: Set<EntityId>): EntityId[];
|
|
96
|
+
toJSON(seenEntities?: Set<EntityId>): IDataTypeTransfer | IDataTypeReference;
|
|
97
|
+
toJSONClone(options?: IEntityJSONCloneOptions): IDataTypeTransfer | IDataTypeReference;
|
|
98
|
+
toReference(options?: IEntityRecursionOptions): IDataTypeReference;
|
|
99
|
+
toShallowJSON(options?: IEntityRecursionOptions): IDataTypeShallowTransfer;
|
|
100
|
+
toFlatJSON(seenEntities?: Set<EntityId>): ElementShallowTransfer[];
|
|
97
101
|
toGenerationTarget(): IDataTypeGenerationTarget;
|
|
98
|
-
toFlatGenerationTarget(seenEntities?: Set<
|
|
102
|
+
toFlatGenerationTarget(seenEntities?: Set<EntityId>): ElementGenerationTarget[];
|
|
99
103
|
clearErrors(): DataTypeState;
|
|
100
104
|
validate(): {
|
|
101
105
|
success: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EntityId, EntityType, EntityVersion, IFunctionCall, IFunctionCallTransfer, IFunctionCallReference, IFunctionCallShallowTransfer, ElementShallowTransfer, IFunctionCallGenerationTarget, ElementGenerationTarget, FunctionCallTypesUnion } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
|
-
import { BaseCanvasDraggableState, BaseState, CallableEntityClass, ChildEntityState, PassThroughCallableEntityClass, UserManagedEntityStateFunctionality } from '../base';
|
|
3
|
+
import { BaseCanvasDraggableState, BaseState, CallableEntityClass, ChildEntityState, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, PassThroughCallableEntityClass, UserManagedEntityStateFunctionality } from '../base';
|
|
4
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';
|
|
@@ -30,6 +30,7 @@ export declare class FunctionCallState implements IFunctionCall, BaseState, User
|
|
|
30
30
|
project: ProjectState;
|
|
31
31
|
initialized: boolean;
|
|
32
32
|
constructor(initialFunctionCallData: IFunctionCall | IFunctionCallTransfer, parentProjectState: ProjectState);
|
|
33
|
+
static repository: IEditableEntityPersistanceRepository;
|
|
33
34
|
static MUTABLE_BASE_PROPERTIES: string[];
|
|
34
35
|
static INMUTABLE_BASE_PROPERTIES: string[];
|
|
35
36
|
static BASE_PROPERTIES: string[];
|
|
@@ -52,6 +53,8 @@ export declare class FunctionCallState implements IFunctionCall, BaseState, User
|
|
|
52
53
|
errors: EntityGenerationError[];
|
|
53
54
|
modifiedData: Partial<IFunctionCallGenerationTarget>;
|
|
54
55
|
};
|
|
56
|
+
hydrateAncestors(): IChangeSet<FunctionCallState>;
|
|
57
|
+
afterAllChildrenInitialized(): IChangeSet<FunctionCallState>;
|
|
55
58
|
addSelfToProject(): IChangeSet<FunctionCallState>;
|
|
56
59
|
get calledBy(): CallerEntityState[];
|
|
57
60
|
removeInput(input: ActionInputMapState): FunctionCallState;
|
|
@@ -68,14 +71,15 @@ export declare class FunctionCallState implements IFunctionCall, BaseState, User
|
|
|
68
71
|
removeCall(call: CallableEntityState): FunctionCallState;
|
|
69
72
|
removeCaller(caller: CallerEntityState): FunctionCallState;
|
|
70
73
|
setParent(parent: EntityWithLogicScopeState | ProjectState): FunctionCallState;
|
|
74
|
+
setDeclaration(declaration: FunctionDeclarationState): FunctionCallState;
|
|
71
75
|
initChildren(): FunctionCallState;
|
|
72
76
|
subscribe(): FunctionCallState;
|
|
73
77
|
unsubscribe(): FunctionCallState;
|
|
74
78
|
sync(data: Partial<IFunctionCall>): FunctionCallState;
|
|
75
|
-
load(): Promise<FunctionCallState>;
|
|
76
|
-
create(): Promise<FunctionCallState>;
|
|
77
|
-
update(_
|
|
78
|
-
delete(): Promise<FunctionCallState>;
|
|
79
|
+
load(_?: IEntityPersistanceOptions): Promise<FunctionCallState>;
|
|
80
|
+
create(_?: IEntityPersistanceOptions): Promise<FunctionCallState>;
|
|
81
|
+
update(_?: IEntityPersistanceOptions): Promise<FunctionCallState>;
|
|
82
|
+
delete(_?: IEntityPersistanceOptions): Promise<FunctionCallState>;
|
|
79
83
|
remove({ ignoreUpstream, seenEntities, }?: {
|
|
80
84
|
ignoreUpstream: boolean;
|
|
81
85
|
seenEntities: Set<string>;
|
|
@@ -89,14 +93,15 @@ export declare class FunctionCallState implements IFunctionCall, BaseState, User
|
|
|
89
93
|
affected: EntityState[];
|
|
90
94
|
self: FunctionCallState;
|
|
91
95
|
};
|
|
92
|
-
toFlat(seenEntities?: Set<
|
|
93
|
-
toFlatIds(seenEntities?: Set<
|
|
94
|
-
toJSON(): IFunctionCallTransfer;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
toFlat(seenEntities?: Set<EntityId>): EntityState[];
|
|
97
|
+
toFlatIds(seenEntities?: Set<EntityId>): EntityId[];
|
|
98
|
+
toJSON(seenEntities?: Set<EntityId>): IFunctionCallTransfer | IFunctionCallReference;
|
|
99
|
+
toJSONClone(options?: IEntityJSONCloneOptions): IFunctionCallTransfer | IFunctionCallReference;
|
|
100
|
+
toReference(options?: IEntityRecursionOptions): IFunctionCallReference;
|
|
101
|
+
toShallowJSON(options?: IEntityRecursionOptions): IFunctionCallShallowTransfer;
|
|
102
|
+
toFlatJSON(seenEntities?: Set<EntityId>): ElementShallowTransfer[];
|
|
98
103
|
toGenerationTarget(): IFunctionCallGenerationTarget;
|
|
99
|
-
toFlatGenerationTarget(seenEntities?: Set<
|
|
104
|
+
toFlatGenerationTarget(seenEntities?: Set<EntityId>): ElementGenerationTarget[];
|
|
100
105
|
clearErrors(): FunctionCallState;
|
|
101
106
|
validate(): {
|
|
102
107
|
success: boolean;
|
|
@@ -105,7 +110,7 @@ export declare class FunctionCallState implements IFunctionCall, BaseState, User
|
|
|
105
110
|
};
|
|
106
111
|
getErrors(): EntityError[];
|
|
107
112
|
getShallowErrors(): EntityError[];
|
|
108
|
-
clone(
|
|
113
|
+
clone(parent?: EntryPointEntityState | ProjectState | null, newId?: string | null, subscribe?: boolean): FunctionCallState;
|
|
109
114
|
removeUnrecognizedInputs(): IChangeSet<FunctionCallState>;
|
|
110
115
|
removeUnrecognizedOutputs(): IChangeSet<FunctionCallState>;
|
|
111
116
|
syncMissingFixedInputs(): IChangeSet<FunctionCallState>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, FunctionDeclarationTypesUnion, IFunctionCallTransfer, IFunctionDeclaration, IFunctionDeclarationGenerationTarget, IFunctionDeclarationReference, IFunctionDeclarationShallowTransfer, IFunctionDeclarationTransfer, IInternalCallTransfer } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
|
-
import { BaseCanvasDraggableState, BaseState, ChildEntityState, EntityWithLogicScopeClass, EntryPointEntityClass, UserManagedEntityStateFunctionality } from '../base';
|
|
3
|
+
import { BaseCanvasDraggableState, BaseState, ChildEntityState, EntityWithLogicScopeClass, EntryPointEntityClass, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, UserManagedEntityStateFunctionality } from '../base';
|
|
4
4
|
import { ArgumentDeclarationState } from '../argument-declaration';
|
|
5
5
|
import { ReturnStatementState } from '../return-statement';
|
|
6
6
|
import { CallableEntityState, CanvasEntityState, EntityState, EntityWithLogicScopeState, IChangeSet, VariableState } from '../types';
|
|
@@ -40,6 +40,7 @@ export declare class FunctionDeclarationState implements IFunctionDeclaration, B
|
|
|
40
40
|
initialized: boolean;
|
|
41
41
|
suggestion: boolean;
|
|
42
42
|
constructor(initialFunctionData: IFunctionDeclaration | IFunctionDeclarationTransfer, parentProjectState: ProjectState);
|
|
43
|
+
static repository: IEditableEntityPersistanceRepository;
|
|
43
44
|
static MUTABLE_BASE_PROPERTIES: string[];
|
|
44
45
|
static INMUTABLE_BASE_PROPERTIES: string[];
|
|
45
46
|
static BASE_PROPERTIES: string[];
|
|
@@ -62,6 +63,8 @@ export declare class FunctionDeclarationState implements IFunctionDeclaration, B
|
|
|
62
63
|
errors: EntityGenerationError[];
|
|
63
64
|
modifiedData: Partial<IFunctionDeclarationGenerationTarget>;
|
|
64
65
|
};
|
|
66
|
+
hydrateAncestors(): IChangeSet<FunctionDeclarationState>;
|
|
67
|
+
afterAllChildrenInitialized(): IChangeSet<FunctionDeclarationState>;
|
|
65
68
|
addSelfToProject(): IChangeSet<FunctionDeclarationState>;
|
|
66
69
|
replaceDetachedChild(existingChild: CanvasEntityState, newChild: CanvasEntityState): FunctionDeclarationState;
|
|
67
70
|
subscribeDetachedChild(child: CanvasEntityState): FunctionDeclarationState;
|
|
@@ -75,10 +78,10 @@ export declare class FunctionDeclarationState implements IFunctionDeclaration, B
|
|
|
75
78
|
subscribe(): FunctionDeclarationState;
|
|
76
79
|
unsubscribe(): FunctionDeclarationState;
|
|
77
80
|
sync(data: Partial<IFunctionDeclaration>): FunctionDeclarationState;
|
|
78
|
-
load(): Promise<FunctionDeclarationState>;
|
|
79
|
-
create(): Promise<FunctionDeclarationState>;
|
|
80
|
-
update(_
|
|
81
|
-
delete(): Promise<FunctionDeclarationState>;
|
|
81
|
+
load(_?: IEntityPersistanceOptions): Promise<FunctionDeclarationState>;
|
|
82
|
+
create(_?: IEntityPersistanceOptions): Promise<FunctionDeclarationState>;
|
|
83
|
+
update(_?: IEntityPersistanceOptions): Promise<FunctionDeclarationState>;
|
|
84
|
+
delete(_?: IEntityPersistanceOptions): Promise<FunctionDeclarationState>;
|
|
82
85
|
remove({ ignoreUpstream: _, seenEntities, }?: {
|
|
83
86
|
ignoreUpstream: boolean;
|
|
84
87
|
seenEntities: Set<string>;
|
|
@@ -92,14 +95,15 @@ export declare class FunctionDeclarationState implements IFunctionDeclaration, B
|
|
|
92
95
|
affected: EntityState[];
|
|
93
96
|
self: FunctionDeclarationState;
|
|
94
97
|
};
|
|
95
|
-
toFlat(seenEntities?: Set<
|
|
96
|
-
toFlatIds(seenEntities?: Set<
|
|
97
|
-
toJSON(): IFunctionDeclarationTransfer;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
98
|
+
toFlat(seenEntities?: Set<EntityId>): EntityState[];
|
|
99
|
+
toFlatIds(seenEntities?: Set<EntityId>): EntityId[];
|
|
100
|
+
toJSON(seenEntities?: Set<EntityId>): IFunctionDeclarationTransfer | IFunctionDeclarationReference;
|
|
101
|
+
toJSONClone(options?: IEntityJSONCloneOptions): IFunctionDeclarationTransfer | IFunctionDeclarationReference;
|
|
102
|
+
toReference(options?: IEntityRecursionOptions): IFunctionDeclarationReference;
|
|
103
|
+
toShallowJSON(options?: IEntityRecursionOptions): IFunctionDeclarationShallowTransfer;
|
|
104
|
+
toFlatJSON(seenEntities?: Set<EntityId>): ElementShallowTransfer[];
|
|
101
105
|
toGenerationTarget(): IFunctionDeclarationGenerationTarget;
|
|
102
|
-
toFlatGenerationTarget(seenEntities?: Set<
|
|
106
|
+
toFlatGenerationTarget(seenEntities?: Set<EntityId>): ElementGenerationTarget[];
|
|
103
107
|
clearErrors(): FunctionDeclarationState;
|
|
104
108
|
validate(): {
|
|
105
109
|
success: boolean;
|
|
@@ -108,7 +112,7 @@ export declare class FunctionDeclarationState implements IFunctionDeclaration, B
|
|
|
108
112
|
};
|
|
109
113
|
getErrors(): EntityError[];
|
|
110
114
|
getShallowErrors(): EntityError[];
|
|
111
|
-
clone(parent?: CustomEntityState | null, newId?: string | null, subscribe?: boolean, cloneBody?: boolean): FunctionDeclarationState;
|
|
115
|
+
clone(parent?: InstalledProjectState | ProjectState | CustomEntityState | LoopState | null, newId?: string | null, subscribe?: boolean, cloneBody?: boolean): FunctionDeclarationState;
|
|
112
116
|
getVariableInstances(): VariableInstanceState[];
|
|
113
117
|
getArgument(id: EntityId): ArgumentDeclarationState | null;
|
|
114
118
|
createCall(parent?: EntityWithLogicScopeState | ProjectState, overrides?: Partial<IFunctionCallTransfer>): FunctionCallState;
|
|
@@ -56,18 +56,18 @@ export declare function getFunctionDeclarationMetaSchema(): z.ZodObject<z.object
|
|
|
56
56
|
name: string;
|
|
57
57
|
description: string | null;
|
|
58
58
|
version: number;
|
|
59
|
-
index: number | null;
|
|
60
59
|
x: number;
|
|
61
60
|
y: number;
|
|
61
|
+
index: number | null;
|
|
62
62
|
}, {
|
|
63
63
|
id: string;
|
|
64
64
|
type: EntityType.FunctionDeclaration;
|
|
65
65
|
name: string;
|
|
66
66
|
description: string | null;
|
|
67
67
|
version: number;
|
|
68
|
-
index: number | null;
|
|
69
68
|
x: number;
|
|
70
69
|
y: number;
|
|
70
|
+
index: number | null;
|
|
71
71
|
}>;
|
|
72
72
|
export declare function getFunctionDeclarationGenerationTargetSchema(): z.ZodObject<{
|
|
73
73
|
id: z.ZodString;
|
|
@@ -444,9 +444,9 @@ export declare function getFunctionDeclarationSchema(): z.ZodObject<z.objectUtil
|
|
|
444
444
|
entityId: string;
|
|
445
445
|
};
|
|
446
446
|
version: number;
|
|
447
|
-
index: number | null;
|
|
448
447
|
x: number;
|
|
449
448
|
y: number;
|
|
449
|
+
index: number | null;
|
|
450
450
|
inputs: (Record<string, any> | {
|
|
451
451
|
type: EntityType.ArgumentDeclaration;
|
|
452
452
|
})[];
|
|
@@ -493,9 +493,9 @@ export declare function getFunctionDeclarationSchema(): z.ZodObject<z.objectUtil
|
|
|
493
493
|
entityId: string;
|
|
494
494
|
};
|
|
495
495
|
version: number;
|
|
496
|
-
index: number | null;
|
|
497
496
|
x: number;
|
|
498
497
|
y: number;
|
|
498
|
+
index: number | null;
|
|
499
499
|
inputs: (Record<string, any> | {
|
|
500
500
|
type: EntityType.ArgumentDeclaration;
|
|
501
501
|
})[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, GlobalEventNames, GlobalEventTypesUnion, IGlobalEvent, IGlobalEventGenerationTarget, IGlobalEventReference, IGlobalEventShallowTransfer, IGlobalEventTransfer } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
|
-
import { BaseCanvasDraggableState, BaseState, ChildEntityState, EntityWithLogicScopeClass, EntryPointEntityClass, UserManagedEntityStateFunctionality } from '../base';
|
|
3
|
+
import { BaseCanvasDraggableState, BaseState, ChildEntityState, EntityWithLogicScopeClass, EntryPointEntityClass, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, UserManagedEntityStateFunctionality } from '../base';
|
|
4
4
|
import { ArgumentDeclarationState } from '../argument-declaration';
|
|
5
5
|
import { CallableEntityState, CanvasEntityState, EntityState, IChangeSet } from '../types';
|
|
6
6
|
import { ReturnStatementState } from '../return-statement';
|
|
@@ -30,6 +30,7 @@ export declare class GlobalEventState implements IGlobalEvent, UserManagedEntity
|
|
|
30
30
|
project: ProjectState;
|
|
31
31
|
initialized: boolean;
|
|
32
32
|
constructor(initialEventData: IGlobalEvent | IGlobalEventTransfer, parentProjectState: ProjectState);
|
|
33
|
+
static repository: IEditableEntityPersistanceRepository;
|
|
33
34
|
static MUTABLE_BASE_PROPERTIES: string[];
|
|
34
35
|
static INMUTABLE_BASE_PROPERTIES: string[];
|
|
35
36
|
static BASE_PROPERTIES: string[];
|
|
@@ -52,10 +53,13 @@ export declare class GlobalEventState implements IGlobalEvent, UserManagedEntity
|
|
|
52
53
|
errors: EntityGenerationError[];
|
|
53
54
|
modifiedData: Partial<IGlobalEventGenerationTarget>;
|
|
54
55
|
};
|
|
56
|
+
hydrateAncestors(): IChangeSet<GlobalEventState>;
|
|
57
|
+
afterAllChildrenInitialized(): IChangeSet<GlobalEventState>;
|
|
55
58
|
addSelfToProject(): IChangeSet<GlobalEventState>;
|
|
56
59
|
replaceDetachedChild(existingChild: CanvasEntityState, newChild: CanvasEntityState): GlobalEventState;
|
|
57
60
|
subscribeDetachedChild(child: CanvasEntityState): GlobalEventState;
|
|
58
61
|
setParent(parent: ProjectState | InstalledProjectState): GlobalEventState;
|
|
62
|
+
setImplements(implementsEntity: ActionDescriptorState): GlobalEventState;
|
|
59
63
|
addCall(entity: CallableEntityState): GlobalEventState;
|
|
60
64
|
removeCall(entity: CallableEntityState): GlobalEventState;
|
|
61
65
|
addInputDeclaration(entity: ArgumentDeclarationState): GlobalEventState;
|
|
@@ -64,10 +68,10 @@ export declare class GlobalEventState implements IGlobalEvent, UserManagedEntity
|
|
|
64
68
|
subscribe(): GlobalEventState;
|
|
65
69
|
unsubscribe(): GlobalEventState;
|
|
66
70
|
sync(data: Partial<IGlobalEvent>): GlobalEventState;
|
|
67
|
-
load(): Promise<GlobalEventState>;
|
|
68
|
-
create(): Promise<GlobalEventState>;
|
|
69
|
-
update(_
|
|
70
|
-
delete(): Promise<GlobalEventState>;
|
|
71
|
+
load(_?: IEntityPersistanceOptions): Promise<GlobalEventState>;
|
|
72
|
+
create(_?: IEntityPersistanceOptions): Promise<GlobalEventState>;
|
|
73
|
+
update(_?: IEntityPersistanceOptions): Promise<GlobalEventState>;
|
|
74
|
+
delete(_?: IEntityPersistanceOptions): Promise<GlobalEventState>;
|
|
71
75
|
remove({ ignoreUpstream: _, seenEntities, }?: {
|
|
72
76
|
ignoreUpstream: boolean;
|
|
73
77
|
seenEntities: Set<string>;
|
|
@@ -81,14 +85,15 @@ export declare class GlobalEventState implements IGlobalEvent, UserManagedEntity
|
|
|
81
85
|
affected: EntityState[];
|
|
82
86
|
self: GlobalEventState;
|
|
83
87
|
};
|
|
84
|
-
toFlat(seenEntities?: Set<
|
|
85
|
-
toFlatIds(seenEntities?: Set<
|
|
86
|
-
toJSON(): IGlobalEventTransfer;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
toFlat(seenEntities?: Set<EntityId>): EntityState[];
|
|
89
|
+
toFlatIds(seenEntities?: Set<EntityId>): EntityId[];
|
|
90
|
+
toJSON(seenEntities?: Set<EntityId>): IGlobalEventTransfer | IGlobalEventReference;
|
|
91
|
+
toJSONClone(options?: IEntityJSONCloneOptions): IGlobalEventTransfer | IGlobalEventReference;
|
|
92
|
+
toReference(options?: IEntityRecursionOptions): IGlobalEventReference;
|
|
93
|
+
toShallowJSON(options?: IEntityRecursionOptions): IGlobalEventShallowTransfer;
|
|
94
|
+
toFlatJSON(seenEntities?: Set<EntityId>): ElementShallowTransfer[];
|
|
90
95
|
toGenerationTarget(): IGlobalEventGenerationTarget;
|
|
91
|
-
toFlatGenerationTarget(seenEntities?: Set<
|
|
96
|
+
toFlatGenerationTarget(seenEntities?: Set<EntityId>): ElementGenerationTarget[];
|
|
92
97
|
clearErrors(): GlobalEventState;
|
|
93
98
|
validate(): {
|
|
94
99
|
success: boolean;
|
|
@@ -97,7 +102,7 @@ export declare class GlobalEventState implements IGlobalEvent, UserManagedEntity
|
|
|
97
102
|
};
|
|
98
103
|
getErrors(): EntityError[];
|
|
99
104
|
getShallowErrors(): EntityError[];
|
|
100
|
-
clone(): GlobalEventState;
|
|
105
|
+
clone(parent?: InstalledProjectState | ProjectState | null, newId?: string | null, subscribe?: boolean, cloneBody?: boolean): GlobalEventState;
|
|
101
106
|
getVariableInstances(): VariableInstanceState[];
|
|
102
107
|
addReturnStatement(statement: ReturnStatementState): GlobalEventState;
|
|
103
108
|
removeReturnStatement(statement: ReturnStatementState): GlobalEventState;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EntityId, EntityType, EntityVersion, IInputMap, IInputMapTransfer, IActionInputMap, IActionInputMapTransfer, IInputMapReference, IVariableInputMap, IVariableInputMapTransfer, IInputMapShallowTransfer, ElementShallowTransfer, IInputMapGenerationTarget, ElementGenerationTarget, InputMapTypesUnion } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
|
-
import { BaseState, ChildEntityState, EntityWithValueClass, UserManagedEntityStateFunctionality, ValueReadingEntityClass } from '../base';
|
|
3
|
+
import { BaseState, ChildEntityState, EntityWithValueClass, IEntityPersistanceOptions, IEditableEntityPersistanceRepository, UserManagedEntityStateFunctionality, ValueReadingEntityClass, IEntityJSONCloneOptions, IEntityRecursionOptions } from '../base';
|
|
4
4
|
import { ArgumentDeclarationState } from '../argument-declaration';
|
|
5
5
|
import { EntityState, IChangeSet, PassThroughCallableEntityState, ValueWritingEntityState } from '../types';
|
|
6
6
|
import { ProjectState } from '../project/project';
|
|
@@ -25,17 +25,18 @@ export declare class InputMapState implements IInputMap, ValueReadingEntityClass
|
|
|
25
25
|
index: number;
|
|
26
26
|
name: string | null;
|
|
27
27
|
description: string | null;
|
|
28
|
-
declaration: ArgumentDeclarationState | PropertyState | ValueDescriptorState | null;
|
|
29
28
|
readonly type: EntityType.InputMap;
|
|
30
29
|
defaultValue: LiteralValueState | null;
|
|
31
30
|
readsValue: ValueWritingEntityState | null;
|
|
32
31
|
dataType: DataTypeState | null;
|
|
32
|
+
declaration: ArgumentDeclarationState | PropertyState | ValueDescriptorState | null;
|
|
33
33
|
project: ProjectState;
|
|
34
34
|
errors: EntityError[];
|
|
35
35
|
parent: PassThroughCallableEntityState;
|
|
36
36
|
initialized: boolean;
|
|
37
37
|
suggestion: boolean;
|
|
38
38
|
constructor(initialVariableInputMapData: IInputMap | IInputMapTransfer, parentProjectState: ProjectState);
|
|
39
|
+
static repository: IEditableEntityPersistanceRepository;
|
|
39
40
|
static MUTABLE_BASE_PROPERTIES: string[];
|
|
40
41
|
static INMUTABLE_BASE_PROPERTIES: string[];
|
|
41
42
|
static BASE_PROPERTIES: string[];
|
|
@@ -58,6 +59,8 @@ export declare class InputMapState implements IInputMap, ValueReadingEntityClass
|
|
|
58
59
|
errors: EntityGenerationError[];
|
|
59
60
|
modifiedData: Partial<IInputMapGenerationTarget>;
|
|
60
61
|
};
|
|
62
|
+
hydrateAncestors(): IChangeSet<InputMapState>;
|
|
63
|
+
afterAllChildrenInitialized(): IChangeSet<InputMapState>;
|
|
61
64
|
addSelfToProject(): IChangeSet<InputMapState>;
|
|
62
65
|
setParent(parent: PassThroughCallableEntityState): InputMapState;
|
|
63
66
|
setDataType(dataType: DataTypeState): InputMapState;
|
|
@@ -69,10 +72,10 @@ export declare class InputMapState implements IInputMap, ValueReadingEntityClass
|
|
|
69
72
|
subscribe(): InputMapState;
|
|
70
73
|
unsubscribe(): InputMapState;
|
|
71
74
|
sync(data: Partial<IInputMap>): InputMapState;
|
|
72
|
-
load(): Promise<InputMapState>;
|
|
73
|
-
create(): Promise<InputMapState>;
|
|
74
|
-
update(
|
|
75
|
-
delete(): Promise<InputMapState>;
|
|
75
|
+
load(_?: IEntityPersistanceOptions): Promise<InputMapState>;
|
|
76
|
+
create(_?: IEntityPersistanceOptions): Promise<InputMapState>;
|
|
77
|
+
update(_?: IEntityPersistanceOptions): Promise<InputMapState>;
|
|
78
|
+
delete(_?: IEntityPersistanceOptions): Promise<InputMapState>;
|
|
76
79
|
remove({ ignoreUpstream, seenEntities, }?: {
|
|
77
80
|
ignoreUpstream: boolean;
|
|
78
81
|
seenEntities: Set<string>;
|
|
@@ -86,14 +89,15 @@ export declare class InputMapState implements IInputMap, ValueReadingEntityClass
|
|
|
86
89
|
affected: EntityState[];
|
|
87
90
|
self: InputMapState;
|
|
88
91
|
};
|
|
89
|
-
toFlat(seenEntities?: Set<
|
|
90
|
-
toFlatIds(seenEntities?: Set<
|
|
91
|
-
toJSON(): IInputMapTransfer;
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
toFlat(seenEntities?: Set<EntityId>): EntityState[];
|
|
93
|
+
toFlatIds(seenEntities?: Set<EntityId>): EntityId[];
|
|
94
|
+
toJSON(seenEntities?: Set<EntityId>): IInputMapTransfer | IInputMapReference;
|
|
95
|
+
toJSONClone(options?: IEntityJSONCloneOptions): IInputMapTransfer | IInputMapReference;
|
|
96
|
+
toReference(options?: IEntityRecursionOptions): IInputMapReference;
|
|
97
|
+
toShallowJSON(options?: IEntityRecursionOptions): IInputMapShallowTransfer;
|
|
98
|
+
toFlatJSON(seenEntities?: Set<EntityId>): ElementShallowTransfer[];
|
|
95
99
|
toGenerationTarget(): IInputMapGenerationTarget;
|
|
96
|
-
toFlatGenerationTarget(seenEntities?: Set<
|
|
100
|
+
toFlatGenerationTarget(seenEntities?: Set<EntityId>): ElementGenerationTarget[];
|
|
97
101
|
clearErrors(): InputMapState;
|
|
98
102
|
validate(): {
|
|
99
103
|
success: boolean;
|
|
@@ -112,7 +116,7 @@ export declare class VariableInputMapState extends InputMapState implements IVar
|
|
|
112
116
|
parent: VariableInstanceState | VariableDeclarationState;
|
|
113
117
|
errors: EntityError[];
|
|
114
118
|
constructor(initialVariableInputMapData: IVariableInputMap | IVariableInputMapTransfer, parentProjectState: ProjectState);
|
|
115
|
-
toJSON(): IVariableInputMapTransfer;
|
|
119
|
+
toJSON(seenEntities?: Set<EntityId>): IVariableInputMapTransfer | IInputMapReference;
|
|
116
120
|
}
|
|
117
121
|
export declare class ActionInputMapState extends InputMapState implements IActionInputMap {
|
|
118
122
|
name: null;
|
|
@@ -121,6 +125,6 @@ export declare class ActionInputMapState extends InputMapState implements IActio
|
|
|
121
125
|
parent: OperationState | FunctionCallState | ConditionState | LoopState | SearchState | InternalCallState;
|
|
122
126
|
errors: EntityError[];
|
|
123
127
|
constructor(initialActionInputMapData: IActionInputMap | IActionInputMapTransfer, parentProjectState: ProjectState);
|
|
124
|
-
toJSON(): IActionInputMapTransfer;
|
|
128
|
+
toJSON(seenEntities?: Set<EntityId>): IActionInputMapTransfer;
|
|
125
129
|
}
|
|
126
130
|
export type InputMapPayloadUnion = InputMapState | InputMapTypesUnion;
|