@elyx-code/project-logic-tree 0.0.6156 → 0.0.6158
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +10674 -8379
- package/dist/index.umd.cjs +238 -238
- package/dist/tree/state/action-descriptor/action-descriptor.d.ts +13 -6
- package/dist/tree/state/argument-declaration/argument-declaration.d.ts +13 -6
- package/dist/tree/state/base.d.ts +18 -9
- package/dist/tree/state/break-statement/break-statement.d.ts +13 -6
- package/dist/tree/state/built-in-base-entity/built-in-base-entity.d.ts +1 -1
- package/dist/tree/state/condition/condition.d.ts +13 -6
- package/dist/tree/state/continue-statement/continue-statement.d.ts +13 -6
- package/dist/tree/state/data-type/data-type.d.ts +13 -6
- package/dist/tree/state/definition-entity/definition-entity.d.ts +13 -6
- package/dist/tree/state/function-call/function-call.d.ts +13 -6
- package/dist/tree/state/function-declaration/function-declaration.d.ts +13 -6
- package/dist/tree/state/global-event/global-event.d.ts +13 -6
- package/dist/tree/state/input-map/input-map.d.ts +13 -6
- package/dist/tree/state/installed-project/installed-project.d.ts +13 -6
- package/dist/tree/state/internal-call/internal-call.d.ts +13 -6
- package/dist/tree/state/literal-value/literal-value.d.ts +13 -6
- package/dist/tree/state/loop/loop.d.ts +13 -6
- package/dist/tree/state/operation/operation.d.ts +13 -6
- package/dist/tree/state/output-map/output-map.d.ts +13 -6
- package/dist/tree/state/primitive-entity/primitive-entity.d.ts +1 -1
- package/dist/tree/state/project/project.d.ts +23 -7
- package/dist/tree/state/property/property.d.ts +13 -6
- package/dist/tree/state/return-declaration/return-declaration.d.ts +13 -6
- package/dist/tree/state/return-statement/return-statement.d.ts +13 -6
- package/dist/tree/state/search/search.d.ts +13 -6
- package/dist/tree/state/types/index.d.ts +20 -5
- package/dist/tree/state/value-descriptor/value-descriptor.d.ts +13 -6
- package/dist/tree/state/variable-declaration/variable-declaration.d.ts +13 -6
- package/dist/tree/state/variable-instance/variable-instance.d.ts +13 -6
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, IInternalCall, IInternalCallGenerationTarget, IInternalCallReference, IInternalCallShallowTransfer, IInternalCallTransfer, InternalCallTypesUnion } from '../../../definitions';
|
|
1
|
+
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, IInternalCall, IInternalCallGenerationTarget, IInternalCallReference, IInternalCallShallowTransfer, IInternalCallTransfer, InternalCallTypesUnion } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
3
|
import { BaseState, CallableEntityClass, ChildEntityState, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, PassThroughCallableEntityClass, UserManagedEntityStateFunctionality } from '../base';
|
|
4
4
|
import { ActionInputMapState } from '../input-map';
|
|
@@ -27,6 +27,8 @@ export declare class InternalCallState extends VersionedState implements IIntern
|
|
|
27
27
|
parent: VariableState;
|
|
28
28
|
project: ProjectState;
|
|
29
29
|
errors: EntityError[];
|
|
30
|
+
knownVersions: Map<string, EntityState> | null;
|
|
31
|
+
activeVersion: boolean;
|
|
30
32
|
initialized: boolean;
|
|
31
33
|
suggestion: boolean;
|
|
32
34
|
constructor(initialData: IInternalCall | IInternalCallTransfer, parentProjectState: ProjectState);
|
|
@@ -56,6 +58,9 @@ export declare class InternalCallState extends VersionedState implements IIntern
|
|
|
56
58
|
errors: EntityGenerationError[];
|
|
57
59
|
modifiedData: Partial<IInternalCallGenerationTarget>;
|
|
58
60
|
};
|
|
61
|
+
captureVersion(): InternalCallState;
|
|
62
|
+
recursiveCaptureUpstreamVersions(): IChangeSet<InternalCallState>;
|
|
63
|
+
restoreVersion(versionId: EntityVersion): Promise<IChangeSet<InternalCallState>>;
|
|
59
64
|
hydrateAncestors(): IChangeSet<InternalCallState>;
|
|
60
65
|
afterAllChildrenInitialized(): IChangeSet<InternalCallState>;
|
|
61
66
|
addSelfToProject(): IChangeSet<InternalCallState>;
|
|
@@ -78,11 +83,13 @@ export declare class InternalCallState extends VersionedState implements IIntern
|
|
|
78
83
|
initChildren(): InternalCallState;
|
|
79
84
|
subscribe(): InternalCallState;
|
|
80
85
|
unsubscribe(): InternalCallState;
|
|
81
|
-
sync(data: Partial<IInternalCall>): InternalCallState;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
+
sync(data: Partial<IInternalCall | IInternalCallTransfer | IInternalCallShallowTransfer>): InternalCallState;
|
|
87
|
+
APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<InternalCallState>;
|
|
88
|
+
APICreate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<InternalCallState>;
|
|
89
|
+
APIUpdate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<InternalCallState>;
|
|
90
|
+
APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<InternalCallState>;
|
|
91
|
+
APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<InternalCallState>;
|
|
92
|
+
APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<IInternalCallShallowTransfer | null>;
|
|
86
93
|
remove({ ignoreUpstream, seenEntities, }?: {
|
|
87
94
|
ignoreUpstream: boolean;
|
|
88
95
|
seenEntities: Set<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ILiteralValue, ILiteralValueTransfer, EntityId, EntityType, PrimitiveTypes, ILiteralValueReference, ValueAutogenerationOptions, LiteralValueType, ILiteralValueShallowTransfer, ElementShallowTransfer, ILiteralValueGenerationTarget, ElementGenerationTarget, LiteralValueTypesUnion } from '../../../definitions';
|
|
1
|
+
import { ILiteralValue, ILiteralValueTransfer, EntityId, EntityType, PrimitiveTypes, ILiteralValueReference, ValueAutogenerationOptions, LiteralValueType, ILiteralValueShallowTransfer, ElementShallowTransfer, ILiteralValueGenerationTarget, ElementGenerationTarget, LiteralValueTypesUnion, EntityVersion } from '../../../definitions';
|
|
2
2
|
import { ProjectState } from '../project';
|
|
3
3
|
import { DefinitionEntityState } from '../definition-entity';
|
|
4
4
|
import { DataTypeState } from '../data-type';
|
|
@@ -31,6 +31,8 @@ export declare class LiteralValueState extends VersionedState implements BaseSta
|
|
|
31
31
|
parent: DataTypeState | InputMapState | PropertyState | ArgumentDeclarationState | ReturnDeclarationState | VariableDeclarationState | VariableInstanceState | ValueDescriptorState | OutputMapState;
|
|
32
32
|
standaloneParent: EntityWithValueState;
|
|
33
33
|
project: ProjectState;
|
|
34
|
+
knownVersions: Map<string, EntityState> | null;
|
|
35
|
+
activeVersion: boolean;
|
|
34
36
|
initialized: boolean;
|
|
35
37
|
standalone: boolean;
|
|
36
38
|
constructor(initialData: ILiteralValue | ILiteralValueTransfer, parentProjectState: ProjectState);
|
|
@@ -60,6 +62,9 @@ export declare class LiteralValueState extends VersionedState implements BaseSta
|
|
|
60
62
|
errors: EntityGenerationError[];
|
|
61
63
|
modifiedData: Partial<ILiteralValueGenerationTarget>;
|
|
62
64
|
};
|
|
65
|
+
captureVersion(): LiteralValueState;
|
|
66
|
+
recursiveCaptureUpstreamVersions(): IChangeSet<LiteralValueState>;
|
|
67
|
+
restoreVersion(versionId: EntityVersion): Promise<IChangeSet<LiteralValueState>>;
|
|
63
68
|
hydrateAncestors(): IChangeSet<LiteralValueState>;
|
|
64
69
|
afterAllChildrenInitialized(): IChangeSet<LiteralValueState>;
|
|
65
70
|
addSelfToProject(): IChangeSet<LiteralValueState>;
|
|
@@ -69,11 +74,13 @@ export declare class LiteralValueState extends VersionedState implements BaseSta
|
|
|
69
74
|
initChildren(): LiteralValueState;
|
|
70
75
|
subscribe(): LiteralValueState;
|
|
71
76
|
unsubscribe(): LiteralValueState;
|
|
72
|
-
sync(data: Partial<ILiteralValue>): LiteralValueState;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
+
sync(data: Partial<ILiteralValue | ILiteralValueTransfer | ILiteralValueShallowTransfer>): LiteralValueState;
|
|
78
|
+
APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<LiteralValueState>;
|
|
79
|
+
APICreate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<LiteralValueState>;
|
|
80
|
+
APIUpdate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<LiteralValueState>;
|
|
81
|
+
APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<LiteralValueState>;
|
|
82
|
+
APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<LiteralValueState>;
|
|
83
|
+
APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<ILiteralValueShallowTransfer | null>;
|
|
77
84
|
remove({ ignoreUpstream: _, seenEntities, }?: {
|
|
78
85
|
ignoreUpstream: boolean;
|
|
79
86
|
seenEntities: Set<string>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ZodError } from 'zod';
|
|
2
|
-
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, ILoop, ILoopGenerationTarget, ILoopReference, ILoopShallowTransfer, ILoopTransfer, LoopTypesUnion } from '../../../definitions';
|
|
2
|
+
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, ILoop, ILoopGenerationTarget, ILoopReference, ILoopShallowTransfer, ILoopTransfer, LoopTypesUnion } from '../../../definitions';
|
|
3
3
|
import { BaseCanvasDraggableState, BaseState, CallableEntityClass, ChildEntityState, EntityWithLogicScopeClass, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, PassThroughCallableEntityClass, UserManagedEntityStateFunctionality } from '../base';
|
|
4
4
|
import { ActionInputMapState } from '../input-map';
|
|
5
5
|
import { ActionOutputMapState } from '../output-map';
|
|
@@ -43,6 +43,8 @@ export declare class LoopState extends VersionedState implements ILoop, BaseStat
|
|
|
43
43
|
currentValueArgumentDeclaration: ArgumentDeclarationState | null;
|
|
44
44
|
errors: EntityError[];
|
|
45
45
|
project: ProjectState;
|
|
46
|
+
knownVersions: Map<string, EntityState> | null;
|
|
47
|
+
activeVersion: boolean;
|
|
46
48
|
initialized: boolean;
|
|
47
49
|
constructor(initialData: ILoop | ILoopTransfer, parentProjectState: ProjectState);
|
|
48
50
|
static repository: IEditableEntityPersistanceRepository;
|
|
@@ -79,6 +81,9 @@ export declare class LoopState extends VersionedState implements ILoop, BaseStat
|
|
|
79
81
|
errors: EntityGenerationError[];
|
|
80
82
|
modifiedData: Partial<ILoopGenerationTarget>;
|
|
81
83
|
};
|
|
84
|
+
captureVersion(): LoopState;
|
|
85
|
+
recursiveCaptureUpstreamVersions(): IChangeSet<LoopState>;
|
|
86
|
+
restoreVersion(versionId: EntityVersion): Promise<IChangeSet<LoopState>>;
|
|
82
87
|
hydrateAncestors(): IChangeSet<LoopState>;
|
|
83
88
|
afterAllChildrenInitialized(): IChangeSet<LoopState>;
|
|
84
89
|
addSelfToProject(): IChangeSet<LoopState>;
|
|
@@ -104,11 +109,13 @@ export declare class LoopState extends VersionedState implements ILoop, BaseStat
|
|
|
104
109
|
initChildren(): LoopState;
|
|
105
110
|
subscribe(): LoopState;
|
|
106
111
|
unsubscribe(): LoopState;
|
|
107
|
-
sync(data: Partial<ILoop>): LoopState;
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
+
sync(data: Partial<ILoop | ILoopTransfer | ILoopShallowTransfer>): LoopState;
|
|
113
|
+
APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<LoopState>;
|
|
114
|
+
APICreate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<LoopState>;
|
|
115
|
+
APIUpdate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<LoopState>;
|
|
116
|
+
APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<LoopState>;
|
|
117
|
+
APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<LoopState>;
|
|
118
|
+
APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<ILoopShallowTransfer | null>;
|
|
112
119
|
remove({ ignoreUpstream, seenEntities, }?: {
|
|
113
120
|
ignoreUpstream: boolean;
|
|
114
121
|
seenEntities: Set<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, IOperation, IOperationGenerationTarget, IOperationReference, IOperationShallowTransfer, IOperationTransfer, OperationTypesUnion } from '../../../definitions';
|
|
1
|
+
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, IOperation, IOperationGenerationTarget, IOperationReference, IOperationShallowTransfer, IOperationTransfer, OperationTypesUnion, EntityVersion } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
3
|
import { BaseCanvasDraggableState, BaseState, CallableEntityClass, ChildEntityState, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, PassThroughCallableEntityClass, UserManagedEntityStateFunctionality } from '../base';
|
|
4
4
|
import { ActionDescriptorState } from '../action-descriptor/action-descriptor';
|
|
@@ -28,6 +28,8 @@ export declare class OperationState extends VersionedState implements IOperation
|
|
|
28
28
|
parent: EntityWithLogicScopeState | ProjectState;
|
|
29
29
|
errors: EntityError[];
|
|
30
30
|
project: ProjectState;
|
|
31
|
+
knownVersions: Map<string, EntityState> | null;
|
|
32
|
+
activeVersion: boolean;
|
|
31
33
|
initialized: boolean;
|
|
32
34
|
constructor(initialData: IOperation | IOperationTransfer, parentProjectState: ProjectState);
|
|
33
35
|
static repository: IEditableEntityPersistanceRepository;
|
|
@@ -56,6 +58,9 @@ export declare class OperationState extends VersionedState implements IOperation
|
|
|
56
58
|
errors: EntityGenerationError[];
|
|
57
59
|
modifiedData: Partial<IOperationGenerationTarget>;
|
|
58
60
|
};
|
|
61
|
+
captureVersion(): OperationState;
|
|
62
|
+
recursiveCaptureUpstreamVersions(): IChangeSet<OperationState>;
|
|
63
|
+
restoreVersion(versionId: EntityVersion): Promise<IChangeSet<OperationState>>;
|
|
59
64
|
hydrateAncestors(): IChangeSet<OperationState>;
|
|
60
65
|
afterAllChildrenInitialized(): IChangeSet<OperationState>;
|
|
61
66
|
addSelfToProject(): IChangeSet<OperationState>;
|
|
@@ -78,11 +83,13 @@ export declare class OperationState extends VersionedState implements IOperation
|
|
|
78
83
|
initChildren(): OperationState;
|
|
79
84
|
subscribe(): OperationState;
|
|
80
85
|
unsubscribe(): OperationState;
|
|
81
|
-
sync(data: Partial<IOperation>): OperationState;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
+
sync(data: Partial<IOperation | IOperationTransfer | IOperationShallowTransfer>): OperationState;
|
|
87
|
+
APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<OperationState>;
|
|
88
|
+
APICreate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<OperationState>;
|
|
89
|
+
APIUpdate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<OperationState>;
|
|
90
|
+
APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<OperationState>;
|
|
91
|
+
APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<OperationState>;
|
|
92
|
+
APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<IOperationShallowTransfer | null>;
|
|
86
93
|
remove({ ignoreUpstream, seenEntities, }?: {
|
|
87
94
|
ignoreUpstream: boolean;
|
|
88
95
|
seenEntities: Set<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, IActionOutputMap, IActionOutputMapTransfer, IOutputMap, IOutputMapGenerationTarget, IOutputMapReference, IOutputMapShallowTransfer, IOutputMapTransfer, IVariableOutputMap, IVariableOutputMapTransfer, OutputMapParentChildRelation, OutputMapTypesUnion } from '../../../definitions';
|
|
1
|
+
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, IActionOutputMap, IActionOutputMapTransfer, IOutputMap, IOutputMapGenerationTarget, IOutputMapReference, IOutputMapShallowTransfer, IOutputMapTransfer, IVariableOutputMap, IVariableOutputMapTransfer, OutputMapParentChildRelation, OutputMapTypesUnion } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
3
|
import { BaseState, ChildEntityState, EntityWithValueClass, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, UserManagedEntityStateFunctionality, ValueWritingEntityClass } from '../base';
|
|
4
4
|
import { ReturnDeclarationState } from '../return-declaration';
|
|
@@ -26,6 +26,8 @@ export declare class OutputMapState extends VersionedState implements IOutputMap
|
|
|
26
26
|
project: ProjectState;
|
|
27
27
|
errors: EntityError[];
|
|
28
28
|
parent: PassThroughCallableEntityWithOutputsState;
|
|
29
|
+
knownVersions: Map<string, EntityState> | null;
|
|
30
|
+
activeVersion: boolean;
|
|
29
31
|
initialized: boolean;
|
|
30
32
|
suggestion: boolean;
|
|
31
33
|
constructor(initialData: IOutputMap | IOutputMapTransfer, parentProjectState: ProjectState);
|
|
@@ -55,6 +57,9 @@ export declare class OutputMapState extends VersionedState implements IOutputMap
|
|
|
55
57
|
errors: EntityGenerationError[];
|
|
56
58
|
modifiedData: Partial<IOutputMapGenerationTarget>;
|
|
57
59
|
};
|
|
60
|
+
captureVersion(): OutputMapState;
|
|
61
|
+
recursiveCaptureUpstreamVersions(): IChangeSet<OutputMapState>;
|
|
62
|
+
restoreVersion(versionId: EntityVersion): Promise<IChangeSet<OutputMapState>>;
|
|
58
63
|
hydrateAncestors(): IChangeSet<OutputMapState>;
|
|
59
64
|
afterAllChildrenInitialized(): IChangeSet<OutputMapState>;
|
|
60
65
|
addSelfToProject(): IChangeSet<OutputMapState>;
|
|
@@ -67,11 +72,13 @@ export declare class OutputMapState extends VersionedState implements IOutputMap
|
|
|
67
72
|
initChildren(): OutputMapState;
|
|
68
73
|
subscribe(): OutputMapState;
|
|
69
74
|
unsubscribe(): OutputMapState;
|
|
70
|
-
sync(data: Partial<IOutputMap>): OutputMapState;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
+
sync(data: Partial<IOutputMap | IOutputMapTransfer | IOutputMapShallowTransfer>): OutputMapState;
|
|
76
|
+
APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<OutputMapState>;
|
|
77
|
+
APICreate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<OutputMapState>;
|
|
78
|
+
APIUpdate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<OutputMapState>;
|
|
79
|
+
APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<OutputMapState>;
|
|
80
|
+
APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<OutputMapState>;
|
|
81
|
+
APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<IOutputMapShallowTransfer | null>;
|
|
75
82
|
remove({ ignoreUpstream, seenEntities, }?: {
|
|
76
83
|
ignoreUpstream: boolean;
|
|
77
84
|
seenEntities: Set<string>;
|
|
@@ -33,7 +33,7 @@ export declare class PrimitiveEntityState extends VersionedState implements Base
|
|
|
33
33
|
get ownDeclaredProperties(): PropertyState[];
|
|
34
34
|
subscribe(): PrimitiveEntityState;
|
|
35
35
|
unsubscribe(): PrimitiveEntityState;
|
|
36
|
-
|
|
36
|
+
APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<PrimitiveEntityState>;
|
|
37
37
|
remove({ ignoreUpstream: _, seenEntities: _1, }?: {
|
|
38
38
|
ignoreUpstream: boolean;
|
|
39
39
|
seenEntities: Set<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EntityId, EntityType, IProject, IDefinitionEntity, IFunctionDeclaration, IGlobalEvent, Element, IProjectTransfer, IGenericReference, ElementTransfer, Reference, IProjectReference, IFunctionCallTransfer, IDefinitionEntityTransfer, IFunctionDeclarationTransfer, IInstalledProjectTransfer, IVariableDeclarationTransfer, IProjectShallowTransfer, ElementShallowTransfer, ElementGenerationTarget, IProjectGenerationTarget, IConditionTransfer, IOperationTransfer, ProjectTypesUnion } from '../../../definitions';
|
|
1
|
+
import { EntityId, EntityType, IProject, IDefinitionEntity, IFunctionDeclaration, IGlobalEvent, Element, IProjectTransfer, IGenericReference, ElementTransfer, Reference, IProjectReference, IFunctionCallTransfer, IDefinitionEntityTransfer, IFunctionDeclarationTransfer, IInstalledProjectTransfer, IVariableDeclarationTransfer, IProjectShallowTransfer, ElementShallowTransfer, ElementGenerationTarget, IProjectGenerationTarget, IConditionTransfer, IOperationTransfer, ProjectTypesUnion, EntityVersion } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
3
|
import { BaseState, IEntityPersistanceOptions, IEditableEntityPersistanceRepository, UserManagedEntityStateFunctionality, IEntityJSONCloneOptions, IEntityRecursionOptions } from '../base';
|
|
4
4
|
import { FunctionDeclarationState } from '../function-declaration';
|
|
@@ -62,6 +62,9 @@ export declare class ProjectState extends VersionedState implements IProject, Us
|
|
|
62
62
|
};
|
|
63
63
|
errors: EntityError[];
|
|
64
64
|
references: IGenericReference[];
|
|
65
|
+
history: Record<EntityId, EntityVersion>;
|
|
66
|
+
knownVersions: Map<string, EntityState> | null;
|
|
67
|
+
activeVersion: boolean;
|
|
65
68
|
initialized: boolean;
|
|
66
69
|
constructor(initialData: IProject | IProjectTransfer);
|
|
67
70
|
static UUID: UUIDModule;
|
|
@@ -87,11 +90,16 @@ export declare class ProjectState extends VersionedState implements IProject, Us
|
|
|
87
90
|
errors: EntityGenerationError[];
|
|
88
91
|
modifiedData: IProjectGenerationTarget;
|
|
89
92
|
};
|
|
93
|
+
undo(): IChangeSet<ProjectState>;
|
|
94
|
+
redo(): IChangeSet<ProjectState>;
|
|
90
95
|
inject(...injectedModules: IModuleInjection[]): Promise<ProjectState>;
|
|
91
96
|
validateGeneratedUpdate(data: Partial<IProjectGenerationTarget>): {
|
|
92
97
|
errors: EntityGenerationError[];
|
|
93
98
|
modifiedData: Partial<IProjectGenerationTarget>;
|
|
94
99
|
};
|
|
100
|
+
captureVersion(): ProjectState;
|
|
101
|
+
recursiveCaptureUpstreamVersions(): IChangeSet<ProjectState>;
|
|
102
|
+
restoreVersion(versionId: EntityVersion): Promise<IChangeSet<ProjectState>>;
|
|
95
103
|
hydrateAncestors(): IChangeSet<ProjectState>;
|
|
96
104
|
afterAllChildrenInitialized(): IChangeSet<ProjectState>;
|
|
97
105
|
addSelfToProject(): IChangeSet<ProjectState>;
|
|
@@ -113,14 +121,22 @@ export declare class ProjectState extends VersionedState implements IProject, Us
|
|
|
113
121
|
getBuiltIn(entityId: EntityId): EntityState | null;
|
|
114
122
|
findSubscribedInstanceFromReference(entity: Reference): EntityState | null;
|
|
115
123
|
findSubscribedBuiltInInstanceFromReference(entity: Reference): EntityState | null;
|
|
116
|
-
sync(data: Partial<IProject & {
|
|
124
|
+
sync(data: Partial<(IProject & {
|
|
117
125
|
x: number;
|
|
118
126
|
y: number;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
127
|
+
}) | (IProjectTransfer & {
|
|
128
|
+
x: number;
|
|
129
|
+
y: number;
|
|
130
|
+
}) | (IProjectShallowTransfer & {
|
|
131
|
+
x: number;
|
|
132
|
+
y: number;
|
|
133
|
+
})>): ProjectState;
|
|
134
|
+
APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ProjectState>;
|
|
135
|
+
APICreate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ProjectState>;
|
|
136
|
+
APIUpdate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ProjectState>;
|
|
137
|
+
APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ProjectState>;
|
|
138
|
+
APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ProjectState>;
|
|
139
|
+
APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<IProjectShallowTransfer | null>;
|
|
124
140
|
remove({ ignoreUpstream: _ }?: {
|
|
125
141
|
ignoreUpstream: boolean;
|
|
126
142
|
}): {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, IProperty, IPropertyGenerationTarget, IPropertyReference, IPropertyShallowTransfer, IPropertyTransfer, PropertyTypesUnion } from '../../../definitions';
|
|
1
|
+
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, IProperty, IPropertyGenerationTarget, IPropertyReference, IPropertyShallowTransfer, IPropertyTransfer, PropertyTypesUnion } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
3
|
import { BaseState, ChildEntityState, EntityWithValueClass, IEntityPersistanceOptions, IEditableEntityPersistanceRepository, UserManagedEntityStateFunctionality, IEntityJSONCloneOptions, IEntityRecursionOptions } from '../base';
|
|
4
4
|
import { DataTypeState } from '../data-type';
|
|
@@ -30,6 +30,8 @@ export declare class PropertyState extends VersionedState implements IProperty,
|
|
|
30
30
|
project: ProjectState;
|
|
31
31
|
errors: EntityError[];
|
|
32
32
|
parent: DefinitionEntityState | PrimitiveEntityState | BuiltInBaseEntityState;
|
|
33
|
+
knownVersions: Map<string, EntityState> | null;
|
|
34
|
+
activeVersion: boolean;
|
|
33
35
|
initialized: boolean;
|
|
34
36
|
suggestion: boolean;
|
|
35
37
|
constructor(initialData: IProperty | IPropertyTransfer, parentProjectState: ProjectState);
|
|
@@ -60,6 +62,9 @@ export declare class PropertyState extends VersionedState implements IProperty,
|
|
|
60
62
|
errors: EntityGenerationError[];
|
|
61
63
|
modifiedData: Partial<IPropertyGenerationTarget>;
|
|
62
64
|
};
|
|
65
|
+
captureVersion(): PropertyState;
|
|
66
|
+
recursiveCaptureUpstreamVersions(): IChangeSet<PropertyState>;
|
|
67
|
+
restoreVersion(versionId: EntityVersion): Promise<IChangeSet<PropertyState>>;
|
|
63
68
|
hydrateAncestors(): IChangeSet<PropertyState>;
|
|
64
69
|
afterAllChildrenInitialized(): IChangeSet<PropertyState>;
|
|
65
70
|
addSelfToProject(): IChangeSet<PropertyState>;
|
|
@@ -68,11 +73,13 @@ export declare class PropertyState extends VersionedState implements IProperty,
|
|
|
68
73
|
initChildren(): PropertyState;
|
|
69
74
|
subscribe(): PropertyState;
|
|
70
75
|
unsubscribe(): PropertyState;
|
|
71
|
-
sync(data: Partial<IProperty>): PropertyState;
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
+
sync(data: Partial<IProperty | IPropertyTransfer | IPropertyShallowTransfer>): PropertyState;
|
|
77
|
+
APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<PropertyState>;
|
|
78
|
+
APICreate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<PropertyState>;
|
|
79
|
+
APIUpdate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<PropertyState>;
|
|
80
|
+
APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<PropertyState>;
|
|
81
|
+
APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<PropertyState>;
|
|
82
|
+
APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<IPropertyShallowTransfer | null>;
|
|
76
83
|
remove({ ignoreUpstream, seenEntities, }?: {
|
|
77
84
|
ignoreUpstream: boolean;
|
|
78
85
|
seenEntities: Set<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, IReturnDeclaration, IReturnDeclarationGenerationTarget, IReturnDeclarationReference, IReturnDeclarationShallowTransfer, IReturnDeclarationTransfer, ReturnDeclarationTypesUnion } from '../../../definitions';
|
|
1
|
+
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, IReturnDeclaration, IReturnDeclarationGenerationTarget, IReturnDeclarationReference, IReturnDeclarationShallowTransfer, IReturnDeclarationTransfer, ReturnDeclarationTypesUnion } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
3
|
import { BaseState, ChildEntityState, EntityWithValueClass, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, UserManagedEntityStateFunctionality, ValueReadingEntityClass } from '../base';
|
|
4
4
|
import { DataTypeState } from '../data-type';
|
|
@@ -29,6 +29,8 @@ export declare class ReturnDeclarationState extends VersionedState implements IR
|
|
|
29
29
|
project: ProjectState;
|
|
30
30
|
errors: EntityError[];
|
|
31
31
|
parent: ReturnStatementState | BreakStatementState | ContinueStatementState;
|
|
32
|
+
knownVersions: Map<string, EntityState> | null;
|
|
33
|
+
activeVersion: boolean;
|
|
32
34
|
initialized: boolean;
|
|
33
35
|
suggestion: boolean;
|
|
34
36
|
constructor(initialData: IReturnDeclaration | IReturnDeclarationTransfer, parentProjectState: ProjectState);
|
|
@@ -58,6 +60,9 @@ export declare class ReturnDeclarationState extends VersionedState implements IR
|
|
|
58
60
|
errors: EntityGenerationError[];
|
|
59
61
|
modifiedData: Partial<IReturnDeclarationGenerationTarget>;
|
|
60
62
|
};
|
|
63
|
+
captureVersion(): ReturnDeclarationState;
|
|
64
|
+
recursiveCaptureUpstreamVersions(): IChangeSet<ReturnDeclarationState>;
|
|
65
|
+
restoreVersion(versionId: EntityVersion): Promise<IChangeSet<ReturnDeclarationState>>;
|
|
61
66
|
hydrateAncestors(): IChangeSet<ReturnDeclarationState>;
|
|
62
67
|
afterAllChildrenInitialized(): IChangeSet<ReturnDeclarationState>;
|
|
63
68
|
addSelfToProject(): IChangeSet<ReturnDeclarationState>;
|
|
@@ -69,11 +74,13 @@ export declare class ReturnDeclarationState extends VersionedState implements IR
|
|
|
69
74
|
removeValueWriter(): ReturnDeclarationState;
|
|
70
75
|
subscribe(): ReturnDeclarationState;
|
|
71
76
|
unsubscribe(): ReturnDeclarationState;
|
|
72
|
-
sync(data: Partial<IReturnDeclaration>): ReturnDeclarationState;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
+
sync(data: Partial<IReturnDeclaration | IReturnDeclarationTransfer | IReturnDeclarationShallowTransfer>): ReturnDeclarationState;
|
|
78
|
+
APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ReturnDeclarationState>;
|
|
79
|
+
APICreate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ReturnDeclarationState>;
|
|
80
|
+
APIUpdate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ReturnDeclarationState>;
|
|
81
|
+
APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ReturnDeclarationState>;
|
|
82
|
+
APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ReturnDeclarationState>;
|
|
83
|
+
APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<IReturnDeclarationShallowTransfer | null>;
|
|
77
84
|
remove({ ignoreUpstream: _, seenEntities, }?: {
|
|
78
85
|
ignoreUpstream: boolean;
|
|
79
86
|
seenEntities: Set<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, IReturnStatement, IReturnStatementGenerationTarget, IReturnStatementReference, IReturnStatementShallowTransfer, IReturnStatementTransfer, ReturnStatementTypesUnion } from '../../../definitions';
|
|
1
|
+
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, IReturnStatement, IReturnStatementGenerationTarget, IReturnStatementReference, IReturnStatementShallowTransfer, IReturnStatementTransfer, ReturnStatementTypesUnion } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
3
|
import { BaseCanvasDraggableState, BaseState, CallableEntityClass, ChildEntityState, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, UserManagedEntityStateFunctionality } from '../base';
|
|
4
4
|
import { ReturnDeclarationState } from '../return-declaration';
|
|
@@ -21,6 +21,8 @@ export declare class ReturnStatementState extends VersionedState implements IRet
|
|
|
21
21
|
project: ProjectState;
|
|
22
22
|
errors: EntityError[];
|
|
23
23
|
parent: EntityWithLogicScopeState;
|
|
24
|
+
knownVersions: Map<string, EntityState> | null;
|
|
25
|
+
activeVersion: boolean;
|
|
24
26
|
initialized: boolean;
|
|
25
27
|
suggestion: boolean;
|
|
26
28
|
constructor(initialData: IReturnStatement | IReturnStatementTransfer, parentProjectState: ProjectState);
|
|
@@ -50,6 +52,9 @@ export declare class ReturnStatementState extends VersionedState implements IRet
|
|
|
50
52
|
errors: EntityGenerationError[];
|
|
51
53
|
modifiedData: Partial<IReturnStatementGenerationTarget>;
|
|
52
54
|
};
|
|
55
|
+
captureVersion(): ReturnStatementState;
|
|
56
|
+
recursiveCaptureUpstreamVersions(): IChangeSet<ReturnStatementState>;
|
|
57
|
+
restoreVersion(versionId: EntityVersion): Promise<IChangeSet<ReturnStatementState>>;
|
|
53
58
|
hydrateAncestors(): IChangeSet<ReturnStatementState>;
|
|
54
59
|
afterAllChildrenInitialized(): IChangeSet<ReturnStatementState>;
|
|
55
60
|
addSelfToProject(): IChangeSet<ReturnStatementState>;
|
|
@@ -64,11 +69,13 @@ export declare class ReturnStatementState extends VersionedState implements IRet
|
|
|
64
69
|
initChildren(): ReturnStatementState;
|
|
65
70
|
subscribe(): ReturnStatementState;
|
|
66
71
|
unsubscribe(): ReturnStatementState;
|
|
67
|
-
sync(data: Partial<IReturnStatement>): ReturnStatementState;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
+
sync(data: Partial<IReturnStatement | IReturnStatementTransfer | IReturnStatementShallowTransfer>): ReturnStatementState;
|
|
73
|
+
APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ReturnStatementState>;
|
|
74
|
+
APICreate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ReturnStatementState>;
|
|
75
|
+
APIUpdate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ReturnStatementState>;
|
|
76
|
+
APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ReturnStatementState>;
|
|
77
|
+
APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ReturnStatementState>;
|
|
78
|
+
APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<IReturnStatementShallowTransfer | null>;
|
|
72
79
|
remove({ ignoreUpstream, seenEntities, }?: {
|
|
73
80
|
ignoreUpstream: boolean;
|
|
74
81
|
seenEntities: Set<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, ISearch, ISearchGenerationTarget, ISearchReference, ISearchShallowTransfer, ISearchTransfer, SearchTypesUnion } from '../../../definitions';
|
|
1
|
+
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, ISearch, ISearchGenerationTarget, ISearchReference, ISearchShallowTransfer, ISearchTransfer, SearchTypesUnion } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
3
|
import { BaseCanvasDraggableState, BaseState, CallableEntityClass, ChildEntityState, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, PassThroughCallableEntityClass, UserManagedEntityStateFunctionality } from '../base';
|
|
4
4
|
import { CallableEntityState, CallerEntityState, EntityState, EntityWithLogicScopeState, EntryPointEntityState, IChangeSet, PassThroughCallableEntityState } from '../types';
|
|
@@ -31,6 +31,8 @@ export declare class SearchState extends VersionedState implements ISearch, Base
|
|
|
31
31
|
parent: EntityWithLogicScopeState | ProjectState;
|
|
32
32
|
errors: EntityError[];
|
|
33
33
|
project: ProjectState;
|
|
34
|
+
knownVersions: Map<string, EntityState> | null;
|
|
35
|
+
activeVersion: boolean;
|
|
34
36
|
initialized: boolean;
|
|
35
37
|
constructor(initialData: ISearch | ISearchTransfer, parentProjectState: ProjectState);
|
|
36
38
|
static repository: IEditableEntityPersistanceRepository;
|
|
@@ -60,6 +62,9 @@ export declare class SearchState extends VersionedState implements ISearch, Base
|
|
|
60
62
|
errors: EntityGenerationError[];
|
|
61
63
|
modifiedData: Partial<ISearchGenerationTarget>;
|
|
62
64
|
};
|
|
65
|
+
captureVersion(): SearchState;
|
|
66
|
+
recursiveCaptureUpstreamVersions(): IChangeSet<SearchState>;
|
|
67
|
+
restoreVersion(versionId: EntityVersion): Promise<IChangeSet<SearchState>>;
|
|
63
68
|
hydrateAncestors(): IChangeSet<SearchState>;
|
|
64
69
|
afterAllChildrenInitialized(): IChangeSet<SearchState>;
|
|
65
70
|
addSelfToProject(): IChangeSet<SearchState>;
|
|
@@ -83,11 +88,13 @@ export declare class SearchState extends VersionedState implements ISearch, Base
|
|
|
83
88
|
initChildren(): SearchState;
|
|
84
89
|
subscribe(): SearchState;
|
|
85
90
|
unsubscribe(): SearchState;
|
|
86
|
-
sync(data: Partial<ISearch>): SearchState;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
+
sync(data: Partial<ISearch | ISearchTransfer | ISearchShallowTransfer>): SearchState;
|
|
92
|
+
APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<SearchState>;
|
|
93
|
+
APICreate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<SearchState>;
|
|
94
|
+
APIUpdate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<SearchState>;
|
|
95
|
+
APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<SearchState>;
|
|
96
|
+
APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<SearchState>;
|
|
97
|
+
APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<ISearchShallowTransfer | null>;
|
|
91
98
|
remove({ ignoreUpstream, seenEntities, }?: {
|
|
92
99
|
ignoreUpstream: boolean;
|
|
93
100
|
seenEntities: Set<string>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EntityId } from '../../../definitions';
|
|
1
2
|
import { ProjectState } from '../project';
|
|
2
3
|
import { EntityState } from './state';
|
|
3
4
|
|
|
@@ -7,9 +8,23 @@ export interface IModuleInjection {
|
|
|
7
8
|
id: string;
|
|
8
9
|
init(project: ProjectState): Promise<void> | void;
|
|
9
10
|
}
|
|
10
|
-
export interface IChangeSet<
|
|
11
|
-
added:
|
|
12
|
-
updated:
|
|
13
|
-
removed:
|
|
14
|
-
self:
|
|
11
|
+
export interface IChangeSet<TSelf = EntityState, TGeneric = EntityState> {
|
|
12
|
+
added: TGeneric[];
|
|
13
|
+
updated: TGeneric[];
|
|
14
|
+
removed: TGeneric[];
|
|
15
|
+
self: TSelf;
|
|
16
|
+
}
|
|
17
|
+
export interface IRecordChangeSet<TSelf = EntityState, TGeneric = EntityState> {
|
|
18
|
+
added: Record<EntityId, TGeneric>;
|
|
19
|
+
updated: Record<EntityId, TGeneric>;
|
|
20
|
+
removed: Set<EntityId>;
|
|
21
|
+
self: TSelf;
|
|
22
|
+
}
|
|
23
|
+
export declare enum EntityAction {
|
|
24
|
+
Create = "create",
|
|
25
|
+
Update = "update",
|
|
26
|
+
Clone = "clone",
|
|
27
|
+
Delete = "delete",
|
|
28
|
+
Load = "load",
|
|
29
|
+
LoadVersion = "load-version"
|
|
15
30
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, ValueDescriptorParentChildRelation, IValueDescriptor, IValueDescriptorGenerationTarget, IValueDescriptorReference, IValueDescriptorShallowTransfer, IValueDescriptorTransfer, ValueDescriptorTypesUnion } from '../../../definitions';
|
|
1
|
+
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, ValueDescriptorParentChildRelation, IValueDescriptor, IValueDescriptorGenerationTarget, IValueDescriptorReference, IValueDescriptorShallowTransfer, IValueDescriptorTransfer, ValueDescriptorTypesUnion, EntityVersion } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
3
|
import { BaseState, ChildEntityState, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, UserManagedEntityStateFunctionality } from '../base';
|
|
4
4
|
import { DataTypeState } from '../data-type';
|
|
@@ -25,6 +25,8 @@ export declare class ValueDescriptorState extends VersionedState implements IVal
|
|
|
25
25
|
project: ProjectState;
|
|
26
26
|
errors: EntityError[];
|
|
27
27
|
parent: ActionDescriptorState | LoopState | SearchState | null;
|
|
28
|
+
knownVersions: Map<string, EntityState> | null;
|
|
29
|
+
activeVersion: boolean;
|
|
28
30
|
initialized: boolean;
|
|
29
31
|
constructor(initialData: IValueDescriptor | IValueDescriptorTransfer, parentProjectState: ProjectState);
|
|
30
32
|
static repository: IEditableEntityPersistanceRepository;
|
|
@@ -53,6 +55,9 @@ export declare class ValueDescriptorState extends VersionedState implements IVal
|
|
|
53
55
|
errors: EntityGenerationError[];
|
|
54
56
|
modifiedData: Partial<IValueDescriptorGenerationTarget>;
|
|
55
57
|
};
|
|
58
|
+
captureVersion(): ValueDescriptorState;
|
|
59
|
+
recursiveCaptureUpstreamVersions(): IChangeSet<ValueDescriptorState>;
|
|
60
|
+
restoreVersion(versionId: EntityVersion): Promise<IChangeSet<ValueDescriptorState>>;
|
|
56
61
|
hydrateAncestors(): IChangeSet<ValueDescriptorState>;
|
|
57
62
|
afterAllChildrenInitialized(): IChangeSet<ValueDescriptorState>;
|
|
58
63
|
addSelfToProject(): IChangeSet<ValueDescriptorState>;
|
|
@@ -60,11 +65,13 @@ export declare class ValueDescriptorState extends VersionedState implements IVal
|
|
|
60
65
|
initChildren(): ValueDescriptorState;
|
|
61
66
|
subscribe(): ValueDescriptorState;
|
|
62
67
|
unsubscribe(): ValueDescriptorState;
|
|
63
|
-
sync(data: Partial<IValueDescriptor>): ValueDescriptorState;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
sync(data: Partial<IValueDescriptor | IValueDescriptorTransfer | IValueDescriptorShallowTransfer>): ValueDescriptorState;
|
|
69
|
+
APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ValueDescriptorState>;
|
|
70
|
+
APICreate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ValueDescriptorState>;
|
|
71
|
+
APIUpdate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ValueDescriptorState>;
|
|
72
|
+
APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ValueDescriptorState>;
|
|
73
|
+
APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ValueDescriptorState>;
|
|
74
|
+
APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<IValueDescriptorShallowTransfer | null>;
|
|
68
75
|
remove({ ignoreUpstream, seenEntities, }?: {
|
|
69
76
|
ignoreUpstream: boolean;
|
|
70
77
|
seenEntities: Set<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, IVariableDeclaration, IVariableDeclarationGenerationTarget, IVariableDeclarationReference, IVariableDeclarationShallowTransfer, IVariableDeclarationTransfer, IVariableInstanceTransfer, VariableDeclarationTypesUnion } from '../../../definitions';
|
|
1
|
+
import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, IVariableDeclaration, IVariableDeclarationGenerationTarget, IVariableDeclarationReference, IVariableDeclarationShallowTransfer, IVariableDeclarationTransfer, IVariableInstanceTransfer, VariableDeclarationTypesUnion } from '../../../definitions';
|
|
2
2
|
import { ZodError } from 'zod';
|
|
3
3
|
import { BaseCanvasDraggableState, BaseState, CallableEntityClass, ChildEntityState, EntityWithValueClass, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, PassThroughCallableEntityClass, UserManagedEntityStateFunctionality, ValueReadingEntityClass, ValueWritingEntityClass } from '../base';
|
|
4
4
|
import { DataTypeState } from '../data-type';
|
|
@@ -38,6 +38,8 @@ export declare class VariableDeclarationState extends VersionedState implements
|
|
|
38
38
|
variableInstances: VariableInstanceState[];
|
|
39
39
|
errors: EntityError[];
|
|
40
40
|
project: ProjectState;
|
|
41
|
+
knownVersions: Map<string, EntityState> | null;
|
|
42
|
+
activeVersion: boolean;
|
|
41
43
|
initialized: boolean;
|
|
42
44
|
suggestion: boolean;
|
|
43
45
|
constructor(initialData: IVariableDeclaration | IVariableDeclarationTransfer, parentProjectState: ProjectState);
|
|
@@ -67,6 +69,9 @@ export declare class VariableDeclarationState extends VersionedState implements
|
|
|
67
69
|
errors: EntityGenerationError[];
|
|
68
70
|
modifiedData: Partial<IVariableDeclarationGenerationTarget>;
|
|
69
71
|
};
|
|
72
|
+
captureVersion(): VariableDeclarationState;
|
|
73
|
+
recursiveCaptureUpstreamVersions(): IChangeSet<VariableDeclarationState>;
|
|
74
|
+
restoreVersion(versionId: EntityVersion): Promise<IChangeSet<VariableDeclarationState>>;
|
|
70
75
|
hydrateAncestors(): IChangeSet<VariableDeclarationState>;
|
|
71
76
|
afterAllChildrenInitialized(): IChangeSet<VariableDeclarationState>;
|
|
72
77
|
addSelfToProject(): IChangeSet<VariableDeclarationState>;
|
|
@@ -100,11 +105,13 @@ export declare class VariableDeclarationState extends VersionedState implements
|
|
|
100
105
|
removeInstance(instance: VariableInstanceState): VariableDeclarationState;
|
|
101
106
|
getMasterInputWithValueWritterFromAllInstances(input: VariableInputMapState): VariableInputMapState;
|
|
102
107
|
inferDataTypeAndSyncInstancesInputsAndOutputs(): VariableDeclarationState;
|
|
103
|
-
sync(data: Partial<IVariableDeclaration>): VariableDeclarationState;
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
+
sync(data: Partial<IVariableDeclaration | IVariableDeclarationTransfer | IVariableDeclarationShallowTransfer>): VariableDeclarationState;
|
|
109
|
+
APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<VariableDeclarationState>;
|
|
110
|
+
APICreate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<VariableDeclarationState>;
|
|
111
|
+
APIUpdate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<VariableDeclarationState>;
|
|
112
|
+
APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<VariableDeclarationState>;
|
|
113
|
+
APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<VariableDeclarationState>;
|
|
114
|
+
APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<IVariableDeclarationShallowTransfer | null>;
|
|
108
115
|
remove({ ignoreUpstream, seenEntities, }?: {
|
|
109
116
|
ignoreUpstream: boolean;
|
|
110
117
|
seenEntities: Set<string>;
|