@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.
Files changed (32) hide show
  1. package/dist/index.js +10674 -8379
  2. package/dist/index.umd.cjs +238 -238
  3. package/dist/tree/state/action-descriptor/action-descriptor.d.ts +13 -6
  4. package/dist/tree/state/argument-declaration/argument-declaration.d.ts +13 -6
  5. package/dist/tree/state/base.d.ts +18 -9
  6. package/dist/tree/state/break-statement/break-statement.d.ts +13 -6
  7. package/dist/tree/state/built-in-base-entity/built-in-base-entity.d.ts +1 -1
  8. package/dist/tree/state/condition/condition.d.ts +13 -6
  9. package/dist/tree/state/continue-statement/continue-statement.d.ts +13 -6
  10. package/dist/tree/state/data-type/data-type.d.ts +13 -6
  11. package/dist/tree/state/definition-entity/definition-entity.d.ts +13 -6
  12. package/dist/tree/state/function-call/function-call.d.ts +13 -6
  13. package/dist/tree/state/function-declaration/function-declaration.d.ts +13 -6
  14. package/dist/tree/state/global-event/global-event.d.ts +13 -6
  15. package/dist/tree/state/input-map/input-map.d.ts +13 -6
  16. package/dist/tree/state/installed-project/installed-project.d.ts +13 -6
  17. package/dist/tree/state/internal-call/internal-call.d.ts +13 -6
  18. package/dist/tree/state/literal-value/literal-value.d.ts +13 -6
  19. package/dist/tree/state/loop/loop.d.ts +13 -6
  20. package/dist/tree/state/operation/operation.d.ts +13 -6
  21. package/dist/tree/state/output-map/output-map.d.ts +13 -6
  22. package/dist/tree/state/primitive-entity/primitive-entity.d.ts +1 -1
  23. package/dist/tree/state/project/project.d.ts +23 -7
  24. package/dist/tree/state/property/property.d.ts +13 -6
  25. package/dist/tree/state/return-declaration/return-declaration.d.ts +13 -6
  26. package/dist/tree/state/return-statement/return-statement.d.ts +13 -6
  27. package/dist/tree/state/search/search.d.ts +13 -6
  28. package/dist/tree/state/types/index.d.ts +20 -5
  29. package/dist/tree/state/value-descriptor/value-descriptor.d.ts +13 -6
  30. package/dist/tree/state/variable-declaration/variable-declaration.d.ts +13 -6
  31. package/dist/tree/state/variable-instance/variable-instance.d.ts +13 -6
  32. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, IActionDescriptor, IActionDescriptorGenerationTarget, IActionDescriptorReference, IActionDescriptorShallowTransfer, IActionDescriptorTransfer, IFunctionDeclarationTransfer, ActionDescriptorTypesUnion } from '../../../definitions';
1
+ import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, IActionDescriptor, IActionDescriptorGenerationTarget, IActionDescriptorReference, IActionDescriptorShallowTransfer, IActionDescriptorTransfer, IFunctionDeclarationTransfer, ActionDescriptorTypesUnion, EntityVersion } from '../../../definitions';
2
2
  import { ZodError } from 'zod';
3
3
  import { BaseState, ChildEntityState, IEntityPersistanceOptions, IEditableEntityPersistanceRepository, UserManagedEntityStateFunctionality, IEntityJSONCloneOptions, IEntityRecursionOptions } from '../base';
4
4
  import { ProjectState } from '../project/project';
@@ -41,6 +41,8 @@ export declare class ActionDescriptorState extends VersionedState implements IAc
41
41
  parent: DefinitionEntityState | PrimitiveEntityState | BuiltInBaseEntityState | DataTypeState | null;
42
42
  errors: EntityError[];
43
43
  project: ProjectState;
44
+ knownVersions: Map<string, ActionDescriptorState> | null;
45
+ activeVersion: boolean;
44
46
  initialized: boolean;
45
47
  autoexecutable: boolean;
46
48
  constructor(initialData: IActionDescriptor | IActionDescriptorTransfer, parentProjectState: ProjectState);
@@ -73,6 +75,9 @@ export declare class ActionDescriptorState extends VersionedState implements IAc
73
75
  errors: EntityGenerationError[];
74
76
  modifiedData: Partial<IActionDescriptorGenerationTarget>;
75
77
  };
78
+ captureVersion(): ActionDescriptorState;
79
+ recursiveCaptureUpstreamVersions(): IChangeSet<ActionDescriptorState>;
80
+ restoreVersion(versionId: EntityVersion): Promise<IChangeSet<ActionDescriptorState>>;
76
81
  hydrateAncestors(): IChangeSet<ActionDescriptorState>;
77
82
  afterAllChildrenInitialized(): IChangeSet<ActionDescriptorState>;
78
83
  addSelfToProject(): IChangeSet<ActionDescriptorState>;
@@ -80,11 +85,13 @@ export declare class ActionDescriptorState extends VersionedState implements IAc
80
85
  initChildren(): ActionDescriptorState;
81
86
  subscribe(): ActionDescriptorState;
82
87
  unsubscribe(): ActionDescriptorState;
83
- sync(data: Partial<IActionDescriptor>): ActionDescriptorState;
84
- load(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ActionDescriptorState>;
85
- create(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ActionDescriptorState>;
86
- update(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ActionDescriptorState>;
87
- delete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ActionDescriptorState>;
88
+ sync(data: Partial<IActionDescriptor | IActionDescriptorTransfer | IActionDescriptorShallowTransfer>): ActionDescriptorState;
89
+ APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ActionDescriptorState>;
90
+ APICreate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ActionDescriptorState>;
91
+ APIUpdate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ActionDescriptorState>;
92
+ APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ActionDescriptorState>;
93
+ APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ActionDescriptorState>;
94
+ APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<IActionDescriptorShallowTransfer | null>;
88
95
  remove({ ignoreUpstream: _, seenEntities, }?: {
89
96
  ignoreUpstream: boolean;
90
97
  seenEntities: Set<string>;
@@ -1,4 +1,4 @@
1
- import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, IArgumentDeclaration, IArgumentDeclarationGenerationTarget, IArgumentDeclarationReference, IArgumentDeclarationShallowTransfer, IArgumentDeclarationTransfer, ArgumentDeclarationTypesUnion } from '../../../definitions';
1
+ import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, IArgumentDeclaration, IArgumentDeclarationGenerationTarget, IArgumentDeclarationReference, IArgumentDeclarationShallowTransfer, IArgumentDeclarationTransfer, ArgumentDeclarationTypesUnion, EntityVersion } from '../../../definitions';
2
2
  import { ZodError } from 'zod';
3
3
  import { BaseState, ChildEntityState, EntityWithValueClass, IEntityPersistanceOptions, IEditableEntityPersistanceRepository, UserManagedEntityStateFunctionality, ValueWritingEntityClass, IEntityJSONCloneOptions, IEntityRecursionOptions } from '../base';
4
4
  import { EntityState, EntryPointEntityState, IChangeSet, ValueReadingEntityState } from '../types';
@@ -25,6 +25,8 @@ export declare class ArgumentDeclarationState extends VersionedState implements
25
25
  project: ProjectState;
26
26
  errors: EntityError[];
27
27
  parent: EntryPointEntityState;
28
+ knownVersions: Map<string, ArgumentDeclarationState> | null;
29
+ activeVersion: boolean;
28
30
  initialized: boolean;
29
31
  suggestion: boolean;
30
32
  constructor(initialData: IArgumentDeclaration | IArgumentDeclarationTransfer, parentProjectState: ProjectState);
@@ -54,6 +56,9 @@ export declare class ArgumentDeclarationState extends VersionedState implements
54
56
  errors: EntityGenerationError[];
55
57
  modifiedData: Partial<IArgumentDeclarationGenerationTarget>;
56
58
  };
59
+ captureVersion(): ArgumentDeclarationState;
60
+ recursiveCaptureUpstreamVersions(): IChangeSet<ArgumentDeclarationState>;
61
+ restoreVersion(versionId: EntityVersion): Promise<IChangeSet<ArgumentDeclarationState>>;
57
62
  hydrateAncestors(): IChangeSet<ArgumentDeclarationState>;
58
63
  afterAllChildrenInitialized(): IChangeSet<ArgumentDeclarationState>;
59
64
  addSelfToProject(): IChangeSet<ArgumentDeclarationState>;
@@ -64,11 +69,13 @@ export declare class ArgumentDeclarationState extends VersionedState implements
64
69
  initChildren(): ArgumentDeclarationState;
65
70
  subscribe(): ArgumentDeclarationState;
66
71
  unsubscribe(): ArgumentDeclarationState;
67
- sync(data: Partial<IArgumentDeclaration>): ArgumentDeclarationState;
68
- load(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ArgumentDeclarationState>;
69
- create(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ArgumentDeclarationState>;
70
- update(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ArgumentDeclarationState>;
71
- delete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ArgumentDeclarationState>;
72
+ sync(data: Partial<IArgumentDeclaration | IArgumentDeclarationTransfer | IArgumentDeclarationShallowTransfer>): ArgumentDeclarationState;
73
+ APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ArgumentDeclarationState>;
74
+ APICreate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ArgumentDeclarationState>;
75
+ APIUpdate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ArgumentDeclarationState>;
76
+ APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ArgumentDeclarationState>;
77
+ APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ArgumentDeclarationState>;
78
+ APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<IArgumentDeclarationShallowTransfer | null>;
72
79
  remove({ ignoreUpstream, seenEntities, }?: {
73
80
  ignoreUpstream: boolean;
74
81
  seenEntities: Set<string>;
@@ -20,7 +20,7 @@ export declare abstract class SharedStateFunctionality {
20
20
  abstract project: ProjectState;
21
21
  abstract subscribe(): SharedStateFunctionality;
22
22
  abstract unsubscribe(): SharedStateFunctionality;
23
- abstract load(): Promise<SharedStateFunctionality>;
23
+ abstract APILoad(): Promise<SharedStateFunctionality>;
24
24
  abstract toJSON(seenEntities?: Set<string>): ElementTransfer | Reference;
25
25
  abstract toReference(options?: IEntityRecursionOptions): IGenericReference;
26
26
  abstract toFlat(seenEntities?: Set<string>): EntityState[];
@@ -43,23 +43,32 @@ export interface IEntityPersistanceOptions {
43
43
  }
44
44
  export declare const ENTITY_PERSISTANCE_OPTIONS_DEFAULTS: IEntityPersistanceOptions;
45
45
  export interface IReadOnlyEntityPersistanceRepository {
46
- load<T extends Array<any> = any[]>(entityId: EntityId, ...otherArgs: T): Promise<ElementShallowTransfer | null>;
46
+ APILoad<T extends Array<any> = any[]>(entityId: EntityId, ...otherArgs: T): Promise<ElementShallowTransfer | null>;
47
47
  }
48
48
  export interface IEditableEntityPersistanceRepository extends IReadOnlyEntityPersistanceRepository {
49
- create<T extends Array<any> = any[]>(entity: ElementShallowTransfer, ...otherArgs: T): Promise<ElementShallowTransfer>;
50
- update<T extends Array<any> = any[]>(entity: ElementShallowTransfer, ...otherArgs: T): Promise<ElementShallowTransfer>;
51
- delete<T extends Array<any> = any[]>(entityId: EntityId, ...otherArgs: T): Promise<void>;
49
+ APICreate<T extends Array<any> = any[]>(entity: ElementShallowTransfer, ...otherArgs: T): Promise<ElementShallowTransfer>;
50
+ APIUpdate<T extends Array<any> = any[]>(entity: ElementShallowTransfer, ...otherArgs: T): Promise<ElementShallowTransfer>;
51
+ APIDelete<T extends Array<any> = any[]>(entityId: EntityId, ...otherArgs: T): Promise<void>;
52
+ APIClone<T extends Array<any> = any[]>(entityId: EntityId, ...otherArgs: T): Promise<void>;
53
+ APILoadVersion<T extends Array<any> = any[]>(entityId: EntityId, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: T): Promise<ElementShallowTransfer | null>;
52
54
  }
53
55
  export declare const READ_ONLY_ENTITY_PERSISTANCE_REPOSITORY: IReadOnlyEntityPersistanceRepository;
54
56
  export declare const EDITABLE_PERSISTANCE_REPOSITORY_DEFAULTS: IEditableEntityPersistanceRepository;
55
57
  export declare abstract class UserManagedEntityStateFunctionality {
58
+ abstract knownVersions: Map<EntityVersion, EntityState> | null;
59
+ abstract activeVersion: boolean;
60
+ abstract captureVersion(): UserManagedEntityStateFunctionality;
61
+ abstract recursiveCaptureUpstreamVersions(): IChangeSet<UserManagedEntityStateFunctionality>;
62
+ abstract restoreVersion(version: EntityVersion): Promise<IChangeSet<UserManagedEntityStateFunctionality>>;
56
63
  abstract hydrateAncestors(): IChangeSet<UserManagedEntityStateFunctionality>;
57
64
  abstract addSelfToProject(): IChangeSet<UserManagedEntityStateFunctionality>;
58
65
  abstract afterAllChildrenInitialized(): IChangeSet<UserManagedEntityStateFunctionality>;
59
- abstract sync(data: Partial<IGenericBase>): SharedStateFunctionality;
60
- abstract create(options: IEntityPersistanceOptions): Promise<SharedStateFunctionality>;
61
- abstract update(options: IEntityPersistanceOptions): Promise<SharedStateFunctionality>;
62
- abstract delete(options: IEntityPersistanceOptions): Promise<SharedStateFunctionality>;
66
+ abstract sync(data: Partial<Element | ElementTransfer | ElementShallowTransfer>): SharedStateFunctionality;
67
+ abstract APICreate(options: IEntityPersistanceOptions): Promise<SharedStateFunctionality>;
68
+ abstract APIUpdate(options: IEntityPersistanceOptions): Promise<SharedStateFunctionality>;
69
+ abstract APIDelete(options: IEntityPersistanceOptions): Promise<SharedStateFunctionality>;
70
+ abstract APIClone(options: IEntityPersistanceOptions): Promise<SharedStateFunctionality>;
71
+ abstract APILoadVersion(options: IEntityPersistanceOptions, versionIdOrBeforeEqualDate: EntityVersion | Date): Promise<ElementShallowTransfer | null>;
63
72
  abstract remove(options: {
64
73
  ignoreUpstream: boolean;
65
74
  seenEntities: Set<string>;
@@ -1,4 +1,4 @@
1
- import { BreakStatementTypesUnion, ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, IBreakStatement, IBreakStatementGenerationTarget, IBreakStatementReference, IBreakStatementShallowTransfer, IBreakStatementTransfer } from '../../../definitions';
1
+ import { BreakStatementTypesUnion, ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, IBreakStatement, IBreakStatementGenerationTarget, IBreakStatementReference, IBreakStatementShallowTransfer, IBreakStatementTransfer } from '../../../definitions';
2
2
  import { ZodError } from 'zod';
3
3
  import { BaseCanvasDraggableState, BaseState, CallableEntityClass, ChildEntityState, IEntityPersistanceOptions, IEditableEntityPersistanceRepository, UserManagedEntityStateFunctionality, IEntityJSONCloneOptions, IEntityRecursionOptions } from '../base';
4
4
  import { ReturnDeclarationState } from '../return-declaration';
@@ -22,6 +22,8 @@ export declare class BreakStatementState extends VersionedState implements IBrea
22
22
  project: ProjectState;
23
23
  errors: EntityError[];
24
24
  parent: LoopState;
25
+ knownVersions: Map<string, EntityState> | null;
26
+ activeVersion: boolean;
25
27
  initialized: boolean;
26
28
  suggestion: boolean;
27
29
  constructor(initialData: IBreakStatement | IBreakStatementTransfer, parentProjectState: ProjectState);
@@ -51,6 +53,9 @@ export declare class BreakStatementState extends VersionedState implements IBrea
51
53
  errors: EntityGenerationError[];
52
54
  modifiedData: Partial<IBreakStatementGenerationTarget>;
53
55
  };
56
+ captureVersion(): BreakStatementState;
57
+ recursiveCaptureUpstreamVersions(): IChangeSet<BreakStatementState>;
58
+ restoreVersion(versionId: EntityVersion): Promise<IChangeSet<BreakStatementState>>;
54
59
  hydrateAncestors(): IChangeSet<BreakStatementState>;
55
60
  afterAllChildrenInitialized(): IChangeSet<BreakStatementState>;
56
61
  addSelfToProject(): IChangeSet<BreakStatementState>;
@@ -65,11 +70,13 @@ export declare class BreakStatementState extends VersionedState implements IBrea
65
70
  initChildren(): BreakStatementState;
66
71
  subscribe(): BreakStatementState;
67
72
  unsubscribe(): BreakStatementState;
68
- sync(data: Partial<IBreakStatement>): BreakStatementState;
69
- load(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<BreakStatementState>;
70
- create(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<BreakStatementState>;
71
- update(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<BreakStatementState>;
72
- delete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<BreakStatementState>;
73
+ sync(data: Partial<IBreakStatement | IBreakStatementTransfer | IBreakStatementShallowTransfer>): BreakStatementState;
74
+ APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<BreakStatementState>;
75
+ APICreate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<BreakStatementState>;
76
+ APIUpdate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<BreakStatementState>;
77
+ APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<BreakStatementState>;
78
+ APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<BreakStatementState>;
79
+ APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<IBreakStatementShallowTransfer | null>;
73
80
  remove({ ignoreUpstream, seenEntities, }?: {
74
81
  ignoreUpstream: boolean;
75
82
  seenEntities: Set<string>;
@@ -36,7 +36,7 @@ export declare class BuiltInBaseEntityState extends VersionedState implements Ba
36
36
  get ownDeclaredProperties(): PropertyState[];
37
37
  subscribe(): BuiltInBaseEntityState;
38
38
  unsubscribe(): BuiltInBaseEntityState;
39
- load(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<BuiltInBaseEntityState>;
39
+ APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<BuiltInBaseEntityState>;
40
40
  remove(_?: {
41
41
  ignoreUpstream: boolean;
42
42
  seenEntities: Set<string>;
@@ -1,4 +1,4 @@
1
- import { EntityId, EntityType, ICondition, IConditionTransfer, IConditionReference, IConditionShallowTransfer, ElementShallowTransfer, IConditionGenerationTarget, ElementGenerationTarget, ConditionTypesUnion } from '../../../definitions';
1
+ import { EntityId, EntityType, ICondition, IConditionTransfer, IConditionReference, IConditionShallowTransfer, ElementShallowTransfer, IConditionGenerationTarget, ElementGenerationTarget, ConditionTypesUnion, 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 { CallableEntityState, CallerEntityState, EntityState, EntityWithLogicScopeState, EntryPointEntityState, IChangeSet, PassThroughCallableEntityState } from '../types';
@@ -25,6 +25,8 @@ export declare class ConditionState extends VersionedState implements ICondition
25
25
  project: ProjectState;
26
26
  errors: EntityError[];
27
27
  parent: EntityWithLogicScopeState | ProjectState;
28
+ knownVersions: Map<string, EntityState> | null;
29
+ activeVersion: boolean;
28
30
  initialized: boolean;
29
31
  constructor(initialData: ICondition | IConditionTransfer, parentProjectState: ProjectState);
30
32
  static repository: IEditableEntityPersistanceRepository;
@@ -53,6 +55,9 @@ export declare class ConditionState extends VersionedState implements ICondition
53
55
  errors: EntityGenerationError[];
54
56
  modifiedData: Partial<IConditionGenerationTarget>;
55
57
  };
58
+ captureVersion(): ConditionState;
59
+ recursiveCaptureUpstreamVersions(): IChangeSet<ConditionState>;
60
+ restoreVersion(versionId: EntityVersion): Promise<IChangeSet<ConditionState>>;
56
61
  hydrateAncestors(): IChangeSet<ConditionState>;
57
62
  afterAllChildrenInitialized(): IChangeSet<ConditionState>;
58
63
  addSelfToProject(): IChangeSet<ConditionState>;
@@ -73,11 +78,13 @@ export declare class ConditionState extends VersionedState implements ICondition
73
78
  initChildren(): ConditionState;
74
79
  subscribe(): ConditionState;
75
80
  unsubscribe(): ConditionState;
76
- sync(data: Partial<ICondition>): ConditionState;
77
- load(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ConditionState>;
78
- create(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ConditionState>;
79
- update(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ConditionState>;
80
- delete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ConditionState>;
81
+ sync(data: Partial<ICondition | IConditionTransfer | IConditionShallowTransfer>): ConditionState;
82
+ APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ConditionState>;
83
+ APICreate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ConditionState>;
84
+ APIUpdate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ConditionState>;
85
+ APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ConditionState>;
86
+ APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ConditionState>;
87
+ APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<IConditionShallowTransfer | null>;
81
88
  remove({ ignoreUpstream, seenEntities, }?: {
82
89
  ignoreUpstream: boolean;
83
90
  seenEntities: Set<string>;
@@ -1,4 +1,4 @@
1
- import { ContinueStatementTypesUnion, ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, IContinueStatement, IContinueStatementGenerationTarget, IContinueStatementReference, IContinueStatementShallowTransfer, IContinueStatementTransfer } from '../../../definitions';
1
+ import { ContinueStatementTypesUnion, ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, IContinueStatement, IContinueStatementGenerationTarget, IContinueStatementReference, IContinueStatementShallowTransfer, IContinueStatementTransfer } 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';
@@ -22,6 +22,8 @@ export declare class ContinueStatementState extends VersionedState implements IC
22
22
  project: ProjectState;
23
23
  errors: EntityError[];
24
24
  parent: LoopState;
25
+ knownVersions: Map<string, EntityState> | null;
26
+ activeVersion: boolean;
25
27
  initialized: boolean;
26
28
  suggestion: boolean;
27
29
  constructor(initialData: IContinueStatement | IContinueStatementTransfer, parentProjectState: ProjectState);
@@ -51,6 +53,9 @@ export declare class ContinueStatementState extends VersionedState implements IC
51
53
  errors: EntityGenerationError[];
52
54
  modifiedData: Partial<IContinueStatementGenerationTarget>;
53
55
  };
56
+ captureVersion(): ContinueStatementState;
57
+ recursiveCaptureUpstreamVersions(): IChangeSet<ContinueStatementState>;
58
+ restoreVersion(versionId: EntityVersion): Promise<IChangeSet<ContinueStatementState>>;
54
59
  hydrateAncestors(): IChangeSet<ContinueStatementState>;
55
60
  afterAllChildrenInitialized(): IChangeSet<ContinueStatementState>;
56
61
  addSelfToProject(): IChangeSet<ContinueStatementState>;
@@ -65,11 +70,13 @@ export declare class ContinueStatementState extends VersionedState implements IC
65
70
  initChildren(): ContinueStatementState;
66
71
  subscribe(): ContinueStatementState;
67
72
  unsubscribe(): ContinueStatementState;
68
- sync(data: Partial<IContinueStatement>): ContinueStatementState;
69
- load(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ContinueStatementState>;
70
- create(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ContinueStatementState>;
71
- update(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ContinueStatementState>;
72
- delete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ContinueStatementState>;
73
+ sync(data: Partial<IContinueStatement | IContinueStatementTransfer | IContinueStatementShallowTransfer>): ContinueStatementState;
74
+ APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ContinueStatementState>;
75
+ APICreate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ContinueStatementState>;
76
+ APIUpdate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ContinueStatementState>;
77
+ APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ContinueStatementState>;
78
+ APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<ContinueStatementState>;
79
+ APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<IContinueStatementShallowTransfer | null>;
73
80
  remove({ ignoreUpstream, seenEntities, }?: {
74
81
  ignoreUpstream: boolean;
75
82
  seenEntities: Set<string>;
@@ -1,4 +1,4 @@
1
- import { EntityId, EntityType, IDataType, IDataTypeTransfer, IDataTypeReference, IDataTypeShallowTransfer, ElementShallowTransfer, IDataTypeGenerationTarget, ElementGenerationTarget, DataTypeParentChildRelation, DataTypeTypesUnion } from '../../../definitions';
1
+ import { EntityId, EntityType, IDataType, IDataTypeTransfer, IDataTypeReference, IDataTypeShallowTransfer, ElementShallowTransfer, IDataTypeGenerationTarget, ElementGenerationTarget, DataTypeParentChildRelation, DataTypeTypesUnion, EntityVersion } from '../../../definitions';
2
2
  import { ZodError } from 'zod';
3
3
  import { BaseState, ChildEntityState, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, UserManagedEntityStateFunctionality } from '../base';
4
4
  import { DefinitionEntityState } from '../definition-entity';
@@ -36,6 +36,8 @@ export declare class DataTypeState extends VersionedState implements IDataType,
36
36
  project: ProjectState;
37
37
  errors: EntityError[];
38
38
  parent: PropertyState | ArgumentDeclarationState | ReturnDeclarationState | VariableDeclarationState | ValueDescriptorState | InputMapState | OutputMapState | DataTypeState;
39
+ knownVersions: Map<string, EntityState> | null;
40
+ activeVersion: boolean;
39
41
  initialized: boolean;
40
42
  constructor(initialData: IDataType | IDataTypeTransfer, parentProjectState: ProjectState);
41
43
  static repository: IEditableEntityPersistanceRepository;
@@ -66,6 +68,9 @@ export declare class DataTypeState extends VersionedState implements IDataType,
66
68
  errors: EntityGenerationError[];
67
69
  modifiedData: Partial<IDataTypeGenerationTarget>;
68
70
  };
71
+ captureVersion(): DataTypeState;
72
+ recursiveCaptureUpstreamVersions(): IChangeSet<DataTypeState>;
73
+ restoreVersion(versionId: EntityVersion): Promise<IChangeSet<DataTypeState>>;
69
74
  hydrateAncestors(): IChangeSet<DataTypeState>;
70
75
  afterAllChildrenInitialized(): IChangeSet<DataTypeState>;
71
76
  addSelfToProject(): IChangeSet<DataTypeState>;
@@ -74,11 +79,13 @@ export declare class DataTypeState extends VersionedState implements IDataType,
74
79
  initChildren(): DataTypeState;
75
80
  subscribe(): DataTypeState;
76
81
  unsubscribe(): DataTypeState;
77
- sync(data: Partial<IDataType>): DataTypeState;
78
- load(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<DataTypeState>;
79
- create(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<DataTypeState>;
80
- update(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<DataTypeState>;
81
- delete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<DataTypeState>;
82
+ sync(data: Partial<IDataType | IDataTypeTransfer | IDataTypeShallowTransfer>): DataTypeState;
83
+ APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<DataTypeState>;
84
+ APICreate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<DataTypeState>;
85
+ APIUpdate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<DataTypeState>;
86
+ APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<DataTypeState>;
87
+ APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<DataTypeState>;
88
+ APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<IDataTypeShallowTransfer | null>;
82
89
  remove({ ignoreUpstream, seenEntities, }?: {
83
90
  ignoreUpstream: boolean;
84
91
  seenEntities: Set<string>;
@@ -1,4 +1,4 @@
1
- import { DefinitionEntityTypesUnion, ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, IDefinitionEntity, IDefinitionEntityGenerationTarget, IDefinitionEntityReference, IDefinitionEntityShallowTransfer, IDefinitionEntityTransfer } from '../../../definitions';
1
+ import { DefinitionEntityTypesUnion, ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, IDefinitionEntity, IDefinitionEntityGenerationTarget, IDefinitionEntityReference, IDefinitionEntityShallowTransfer, IDefinitionEntityTransfer } from '../../../definitions';
2
2
  import { ZodError } from 'zod';
3
3
  import { BaseCanvasDraggableState, BaseState, ChildEntityState, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, UserManagedEntityStateFunctionality } from '../base';
4
4
  import { PropertyState } from '../property';
@@ -30,6 +30,8 @@ export declare class DefinitionEntityState extends VersionedState implements Bas
30
30
  project: ProjectState;
31
31
  errors: EntityError[];
32
32
  parent: ProjectState | DataTypeState;
33
+ knownVersions: Map<string, EntityState> | null;
34
+ activeVersion: boolean;
33
35
  initialized: boolean;
34
36
  suggestedProperties: PropertyState[];
35
37
  suggestedMethods: FunctionDeclarationState[];
@@ -65,6 +67,9 @@ export declare class DefinitionEntityState extends VersionedState implements Bas
65
67
  errors: EntityGenerationError[];
66
68
  modifiedData: Partial<IDefinitionEntityGenerationTarget>;
67
69
  };
70
+ captureVersion(): DefinitionEntityState;
71
+ recursiveCaptureUpstreamVersions(): IChangeSet<DefinitionEntityState>;
72
+ restoreVersion(versionId: EntityVersion): Promise<IChangeSet<DefinitionEntityState>>;
68
73
  hydrateAncestors(): IChangeSet<DefinitionEntityState>;
69
74
  afterAllChildrenInitialized(): IChangeSet<DefinitionEntityState>;
70
75
  addSelfToProject(): IChangeSet<DefinitionEntityState>;
@@ -89,11 +94,13 @@ export declare class DefinitionEntityState extends VersionedState implements Bas
89
94
  addSuggestions(): DefinitionEntityState;
90
95
  subscribe(): DefinitionEntityState;
91
96
  unsubscribe(): DefinitionEntityState;
92
- sync(data: Partial<IDefinitionEntity | IDefinitionEntityTransfer>): DefinitionEntityState;
93
- load(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<DefinitionEntityState>;
94
- create(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<DefinitionEntityState>;
95
- update(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<DefinitionEntityState>;
96
- delete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<DefinitionEntityState>;
97
+ sync(data: Partial<IDefinitionEntity | IDefinitionEntityTransfer | IDefinitionEntityShallowTransfer>): DefinitionEntityState;
98
+ APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<DefinitionEntityState>;
99
+ APICreate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<DefinitionEntityState>;
100
+ APIUpdate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<DefinitionEntityState>;
101
+ APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<DefinitionEntityState>;
102
+ APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<DefinitionEntityState>;
103
+ APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<IDefinitionEntityShallowTransfer | null>;
97
104
  remove({ ignoreUpstream: _, seenEntities, }?: {
98
105
  ignoreUpstream: boolean;
99
106
  seenEntities: Set<string>;
@@ -1,4 +1,4 @@
1
- import { EntityId, EntityType, IFunctionCall, IFunctionCallTransfer, IFunctionCallReference, IFunctionCallShallowTransfer, ElementShallowTransfer, IFunctionCallGenerationTarget, ElementGenerationTarget, FunctionCallTypesUnion } from '../../../definitions';
1
+ import { EntityId, EntityType, IFunctionCall, IFunctionCallTransfer, IFunctionCallReference, IFunctionCallShallowTransfer, ElementShallowTransfer, IFunctionCallGenerationTarget, ElementGenerationTarget, FunctionCallTypesUnion, 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 { CallableEntityState, CallerEntityState, EntityState, EntityWithLogicScopeState, EntryPointEntityState, IChangeSet, PassThroughCallableEntityState, ValueReadingEntityState } from '../types';
@@ -28,6 +28,8 @@ export declare class FunctionCallState extends VersionedState implements IFuncti
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: IFunctionCall | IFunctionCallTransfer, parentProjectState: ProjectState);
33
35
  static repository: IEditableEntityPersistanceRepository;
@@ -56,6 +58,9 @@ export declare class FunctionCallState extends VersionedState implements IFuncti
56
58
  errors: EntityGenerationError[];
57
59
  modifiedData: Partial<IFunctionCallGenerationTarget>;
58
60
  };
61
+ captureVersion(): FunctionCallState;
62
+ recursiveCaptureUpstreamVersions(): IChangeSet<FunctionCallState>;
63
+ restoreVersion(versionId: EntityVersion): Promise<IChangeSet<FunctionCallState>>;
59
64
  hydrateAncestors(): IChangeSet<FunctionCallState>;
60
65
  afterAllChildrenInitialized(): IChangeSet<FunctionCallState>;
61
66
  addSelfToProject(): IChangeSet<FunctionCallState>;
@@ -78,11 +83,13 @@ export declare class FunctionCallState extends VersionedState implements IFuncti
78
83
  initChildren(): FunctionCallState;
79
84
  subscribe(): FunctionCallState;
80
85
  unsubscribe(): FunctionCallState;
81
- sync(data: Partial<IFunctionCall>): FunctionCallState;
82
- load(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionCallState>;
83
- create(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionCallState>;
84
- update(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionCallState>;
85
- delete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionCallState>;
86
+ sync(data: Partial<IFunctionCall | IFunctionCallTransfer | IFunctionCallShallowTransfer>): FunctionCallState;
87
+ APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionCallState>;
88
+ APICreate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionCallState>;
89
+ APIUpdate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionCallState>;
90
+ APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionCallState>;
91
+ APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionCallState>;
92
+ APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<IFunctionCallShallowTransfer | 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, FunctionDeclarationTypesUnion, IFunctionCallTransfer, IFunctionDeclaration, IFunctionDeclarationGenerationTarget, IFunctionDeclarationReference, IFunctionDeclarationShallowTransfer, IFunctionDeclarationTransfer, IInternalCallTransfer } from '../../../definitions';
1
+ import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, FunctionDeclarationTypesUnion, IFunctionCallTransfer, IFunctionDeclaration, IFunctionDeclarationGenerationTarget, IFunctionDeclarationReference, IFunctionDeclarationShallowTransfer, IFunctionDeclarationTransfer, IInternalCallTransfer } from '../../../definitions';
2
2
  import { ZodError } from 'zod';
3
3
  import { BaseCanvasDraggableState, BaseState, ChildEntityState, EntityWithLogicScopeClass, EntryPointEntityClass, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, UserManagedEntityStateFunctionality } from '../base';
4
4
  import { ArgumentDeclarationState } from '../argument-declaration';
@@ -37,6 +37,8 @@ export declare class FunctionDeclarationState extends VersionedState implements
37
37
  detachedChildren: CanvasEntityState[];
38
38
  errors: EntityError[];
39
39
  project: ProjectState;
40
+ knownVersions: Map<string, EntityState> | null;
41
+ activeVersion: boolean;
40
42
  initialized: boolean;
41
43
  suggestion: boolean;
42
44
  constructor(initialData: IFunctionDeclaration | IFunctionDeclarationTransfer, parentProjectState: ProjectState);
@@ -66,6 +68,9 @@ export declare class FunctionDeclarationState extends VersionedState implements
66
68
  errors: EntityGenerationError[];
67
69
  modifiedData: Partial<IFunctionDeclarationGenerationTarget>;
68
70
  };
71
+ captureVersion(): FunctionDeclarationState;
72
+ recursiveCaptureUpstreamVersions(): IChangeSet<FunctionDeclarationState>;
73
+ restoreVersion(versionId: EntityVersion): Promise<IChangeSet<FunctionDeclarationState>>;
69
74
  hydrateAncestors(): IChangeSet<FunctionDeclarationState>;
70
75
  afterAllChildrenInitialized(): IChangeSet<FunctionDeclarationState>;
71
76
  addSelfToProject(): IChangeSet<FunctionDeclarationState>;
@@ -80,11 +85,13 @@ export declare class FunctionDeclarationState extends VersionedState implements
80
85
  initChildren(): FunctionDeclarationState;
81
86
  subscribe(): FunctionDeclarationState;
82
87
  unsubscribe(): FunctionDeclarationState;
83
- sync(data: Partial<IFunctionDeclaration>): FunctionDeclarationState;
84
- load(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionDeclarationState>;
85
- create(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionDeclarationState>;
86
- update(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionDeclarationState>;
87
- delete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionDeclarationState>;
88
+ sync(data: Partial<IFunctionDeclaration | IFunctionDeclarationTransfer | IFunctionDeclarationShallowTransfer>): FunctionDeclarationState;
89
+ APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionDeclarationState>;
90
+ APICreate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionDeclarationState>;
91
+ APIUpdate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionDeclarationState>;
92
+ APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionDeclarationState>;
93
+ APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionDeclarationState>;
94
+ APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<IFunctionDeclarationShallowTransfer | null>;
88
95
  remove({ ignoreUpstream: _, seenEntities, }?: {
89
96
  ignoreUpstream: boolean;
90
97
  seenEntities: Set<string>;
@@ -1,4 +1,4 @@
1
- import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, GlobalEventNames, GlobalEventTypesUnion, IGlobalEvent, IGlobalEventGenerationTarget, IGlobalEventReference, IGlobalEventShallowTransfer, IGlobalEventTransfer } from '../../../definitions';
1
+ import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, GlobalEventNames, GlobalEventTypesUnion, IGlobalEvent, IGlobalEventGenerationTarget, IGlobalEventReference, IGlobalEventShallowTransfer, IGlobalEventTransfer } from '../../../definitions';
2
2
  import { ZodError } from 'zod';
3
3
  import { BaseCanvasDraggableState, BaseState, ChildEntityState, EntityWithLogicScopeClass, EntryPointEntityClass, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, UserManagedEntityStateFunctionality } from '../base';
4
4
  import { ArgumentDeclarationState } from '../argument-declaration';
@@ -28,6 +28,8 @@ export declare class GlobalEventState extends VersionedState implements IGlobalE
28
28
  detachedChildren: CanvasEntityState[];
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: IGlobalEvent | IGlobalEventTransfer, parentProjectState: ProjectState);
33
35
  static repository: IEditableEntityPersistanceRepository;
@@ -56,6 +58,9 @@ export declare class GlobalEventState extends VersionedState implements IGlobalE
56
58
  errors: EntityGenerationError[];
57
59
  modifiedData: Partial<IGlobalEventGenerationTarget>;
58
60
  };
61
+ captureVersion(): GlobalEventState;
62
+ recursiveCaptureUpstreamVersions(): IChangeSet<GlobalEventState>;
63
+ restoreVersion(versionId: EntityVersion): Promise<IChangeSet<GlobalEventState>>;
59
64
  hydrateAncestors(): IChangeSet<GlobalEventState>;
60
65
  afterAllChildrenInitialized(): IChangeSet<GlobalEventState>;
61
66
  addSelfToProject(): IChangeSet<GlobalEventState>;
@@ -70,11 +75,13 @@ export declare class GlobalEventState extends VersionedState implements IGlobalE
70
75
  initChildren(): GlobalEventState;
71
76
  subscribe(): GlobalEventState;
72
77
  unsubscribe(): GlobalEventState;
73
- sync(data: Partial<IGlobalEvent>): GlobalEventState;
74
- load(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<GlobalEventState>;
75
- create(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<GlobalEventState>;
76
- update(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<GlobalEventState>;
77
- delete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<GlobalEventState>;
78
+ sync(data: Partial<IGlobalEvent | IGlobalEventTransfer | IGlobalEventShallowTransfer>): GlobalEventState;
79
+ APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<GlobalEventState>;
80
+ APICreate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<GlobalEventState>;
81
+ APIUpdate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<GlobalEventState>;
82
+ APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<GlobalEventState>;
83
+ APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<GlobalEventState>;
84
+ APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<IGlobalEventShallowTransfer | null>;
78
85
  remove({ ignoreUpstream: _, seenEntities, }?: {
79
86
  ignoreUpstream: boolean;
80
87
  seenEntities: Set<string>;
@@ -1,4 +1,4 @@
1
- import { EntityId, EntityType, IInputMap, IInputMapTransfer, IActionInputMap, IActionInputMapTransfer, IInputMapReference, IVariableInputMap, IVariableInputMapTransfer, IInputMapShallowTransfer, ElementShallowTransfer, IInputMapGenerationTarget, ElementGenerationTarget, InputMapTypesUnion } from '../../../definitions';
1
+ import { EntityId, EntityType, IInputMap, IInputMapTransfer, IActionInputMap, IActionInputMapTransfer, IInputMapReference, IVariableInputMap, IVariableInputMapTransfer, IInputMapShallowTransfer, ElementShallowTransfer, IInputMapGenerationTarget, ElementGenerationTarget, InputMapTypesUnion, EntityVersion } from '../../../definitions';
2
2
  import { ZodError } from 'zod';
3
3
  import { BaseState, ChildEntityState, EntityWithValueClass, IEntityPersistanceOptions, IEditableEntityPersistanceRepository, UserManagedEntityStateFunctionality, ValueReadingEntityClass, IEntityJSONCloneOptions, IEntityRecursionOptions } from '../base';
4
4
  import { ArgumentDeclarationState } from '../argument-declaration';
@@ -33,6 +33,8 @@ export declare class InputMapState extends VersionedState implements IInputMap,
33
33
  project: ProjectState;
34
34
  errors: EntityError[];
35
35
  parent: PassThroughCallableEntityState;
36
+ knownVersions: Map<string, EntityState> | null;
37
+ activeVersion: boolean;
36
38
  initialized: boolean;
37
39
  suggestion: boolean;
38
40
  constructor(initialData: IInputMap | IInputMapTransfer, parentProjectState: ProjectState);
@@ -62,6 +64,9 @@ export declare class InputMapState extends VersionedState implements IInputMap,
62
64
  errors: EntityGenerationError[];
63
65
  modifiedData: Partial<IInputMapGenerationTarget>;
64
66
  };
67
+ captureVersion(): InputMapState;
68
+ recursiveCaptureUpstreamVersions(): IChangeSet<InputMapState>;
69
+ restoreVersion(versionId: EntityVersion): Promise<IChangeSet<InputMapState>>;
65
70
  hydrateAncestors(): IChangeSet<InputMapState>;
66
71
  afterAllChildrenInitialized(): IChangeSet<InputMapState>;
67
72
  addSelfToProject(): IChangeSet<InputMapState>;
@@ -74,11 +79,13 @@ export declare class InputMapState extends VersionedState implements IInputMap,
74
79
  removeValueWriter(): InputMapState;
75
80
  subscribe(): InputMapState;
76
81
  unsubscribe(): InputMapState;
77
- sync(data: Partial<IInputMap>): InputMapState;
78
- load(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<InputMapState>;
79
- create(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<InputMapState>;
80
- update(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<InputMapState>;
81
- delete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<InputMapState>;
82
+ sync(data: Partial<IInputMap | IInputMapTransfer | IInputMapShallowTransfer>): InputMapState;
83
+ APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<InputMapState>;
84
+ APICreate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<InputMapState>;
85
+ APIUpdate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<InputMapState>;
86
+ APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<InputMapState>;
87
+ APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<InputMapState>;
88
+ APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<IInputMapShallowTransfer | null>;
82
89
  remove({ ignoreUpstream, seenEntities, }?: {
83
90
  ignoreUpstream: boolean;
84
91
  seenEntities: Set<string>;
@@ -1,4 +1,4 @@
1
- import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, IInstalledProject, IInstalledProjectGenerationTarget, IInstalledProjectReference, IInstalledProjectShallowTransfer, IInstalledProjectTransfer, IProjectReference, InstalledProjectTypesUnion } from '../../../definitions';
1
+ import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, IInstalledProject, IInstalledProjectGenerationTarget, IInstalledProjectReference, IInstalledProjectShallowTransfer, IInstalledProjectTransfer, IProjectReference, InstalledProjectTypesUnion } from '../../../definitions';
2
2
  import { ZodError } from 'zod';
3
3
  import { BaseCanvasDraggableState, BaseState, ChildEntityState, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, UserManagedEntityStateFunctionality } from '../base';
4
4
  import { FunctionDeclarationState } from '../function-declaration';
@@ -22,6 +22,8 @@ export declare class InstalledProjectState extends VersionedState implements IIn
22
22
  parent: ProjectState;
23
23
  errors: EntityError[];
24
24
  project: ProjectState;
25
+ knownVersions: Map<string, EntityState> | null;
26
+ activeVersion: boolean;
25
27
  initialized: boolean;
26
28
  constructor(initialData: IInstalledProject | IInstalledProjectTransfer, parentProjectState: ProjectState);
27
29
  static repository: IEditableEntityPersistanceRepository;
@@ -50,6 +52,9 @@ export declare class InstalledProjectState extends VersionedState implements IIn
50
52
  errors: EntityGenerationError[];
51
53
  modifiedData: Partial<IInstalledProjectGenerationTarget>;
52
54
  };
55
+ captureVersion(): InstalledProjectState;
56
+ recursiveCaptureUpstreamVersions(): IChangeSet<InstalledProjectState>;
57
+ restoreVersion(versionId: EntityVersion): Promise<IChangeSet<InstalledProjectState>>;
53
58
  hydrateAncestors(): IChangeSet<InstalledProjectState>;
54
59
  afterAllChildrenInitialized(): IChangeSet<InstalledProjectState>;
55
60
  addSelfToProject(): IChangeSet<InstalledProjectState>;
@@ -57,11 +62,13 @@ export declare class InstalledProjectState extends VersionedState implements IIn
57
62
  initChildren(): InstalledProjectState;
58
63
  subscribe(): InstalledProjectState;
59
64
  unsubscribe(): InstalledProjectState;
60
- sync(data: Partial<IInstalledProject>): InstalledProjectState;
61
- load(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<InstalledProjectState>;
62
- create(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<InstalledProjectState>;
63
- update(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<InstalledProjectState>;
64
- delete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<InstalledProjectState>;
65
+ sync(data: Partial<IInstalledProject | IInstalledProjectTransfer | IInstalledProjectShallowTransfer>): InstalledProjectState;
66
+ APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<InstalledProjectState>;
67
+ APICreate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<InstalledProjectState>;
68
+ APIUpdate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<InstalledProjectState>;
69
+ APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<InstalledProjectState>;
70
+ APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<InstalledProjectState>;
71
+ APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<IInstalledProjectShallowTransfer | null>;
65
72
  remove({ ignoreUpstream: _, seenEntities, }?: {
66
73
  ignoreUpstream: boolean;
67
74
  seenEntities: Set<string>;