@elyx-code/project-logic-tree 0.0.6160 → 0.0.6162

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 (63) hide show
  1. package/dist/definitions/mock/default-mock/installed-projects/mock-third-party-project.d.ts +0 -1
  2. package/dist/definitions/types/event.d.ts +1 -4
  3. package/dist/definitions/types/function.d.ts +1 -4
  4. package/dist/definitions/types/loop.d.ts +1 -7
  5. package/dist/definitions/types/primitives.d.ts +8 -4
  6. package/dist/index.js +38870 -32143
  7. package/dist/index.umd.cjs +262 -260
  8. package/dist/tree/built-in/operations/definition-entity/validate-data.d.ts +7 -7
  9. package/dist/tree/state/action-descriptor/action-descriptor.d.ts +30 -24
  10. package/dist/tree/state/argument-declaration/argument-declaration.d.ts +32 -22
  11. package/dist/tree/state/argument-declaration/validation/validation-schema.d.ts +4 -4
  12. package/dist/tree/state/base.d.ts +26 -15
  13. package/dist/tree/state/break-statement/break-statement.d.ts +34 -25
  14. package/dist/tree/state/break-statement/validation/validation-schema.d.ts +4 -4
  15. package/dist/tree/state/built-in-base-entity/built-in-base-entity.d.ts +2 -14
  16. package/dist/tree/state/change-set.d.ts +71 -0
  17. package/dist/tree/state/change-set.test.d.ts +1 -0
  18. package/dist/tree/state/condition/condition.d.ts +36 -27
  19. package/dist/tree/state/condition/validation/validation-schema.d.ts +4 -4
  20. package/dist/tree/state/continue-statement/continue-statement.d.ts +34 -25
  21. package/dist/tree/state/continue-statement/validation/validation-schema.d.ts +4 -4
  22. package/dist/tree/state/data-type/data-type.d.ts +31 -22
  23. package/dist/tree/state/data-type/validation/validation-schema.d.ts +2657 -237
  24. package/dist/tree/state/definition-entity/definition-entity.d.ts +35 -25
  25. package/dist/tree/state/definition-entity/validation/validation-schema.d.ts +8 -8
  26. package/dist/tree/state/function-call/function-call.d.ts +39 -29
  27. package/dist/tree/state/function-call/validation/validation-schema.d.ts +4 -4
  28. package/dist/tree/state/function-declaration/function-declaration.d.ts +33 -24
  29. package/dist/tree/state/function-declaration/validation/validation-schema.d.ts +6 -6
  30. package/dist/tree/state/global-event/global-event.d.ts +30 -24
  31. package/dist/tree/state/global-event/validation/validation-schema.d.ts +4 -4
  32. package/dist/tree/state/index.d.ts +1 -0
  33. package/dist/tree/state/input-map/input-map.d.ts +31 -21
  34. package/dist/tree/state/input-map/validation/validation-schema.d.ts +8825 -1565
  35. package/dist/tree/state/installed-project/installed-project.d.ts +27 -21
  36. package/dist/tree/state/installed-project/validation/validation-schema.d.ts +4 -4
  37. package/dist/tree/state/internal-call/internal-call.d.ts +38 -29
  38. package/dist/tree/state/literal-value/literal-value.d.ts +35 -23
  39. package/dist/tree/state/literal-value/validation/validation-schema.d.ts +1976 -182
  40. package/dist/tree/state/loop/loop.d.ts +48 -39
  41. package/dist/tree/state/loop/validation/validation-schema.d.ts +4 -4
  42. package/dist/tree/state/operation/operation.d.ts +38 -29
  43. package/dist/tree/state/operation/validation/validation-schema.d.ts +4 -4
  44. package/dist/tree/state/output-map/output-map.d.ts +31 -21
  45. package/dist/tree/state/primitive-entity/primitive-entity.d.ts +0 -13
  46. package/dist/tree/state/project/project.d.ts +39 -24
  47. package/dist/tree/state/property/property.d.ts +32 -22
  48. package/dist/tree/state/return-declaration/return-declaration.d.ts +32 -22
  49. package/dist/tree/state/return-statement/return-statement.d.ts +34 -25
  50. package/dist/tree/state/return-statement/validation/validation-schema.d.ts +4 -4
  51. package/dist/tree/state/search/search.d.ts +36 -27
  52. package/dist/tree/state/search/validation/validation-schema.d.ts +4 -4
  53. package/dist/tree/state/types/index.d.ts +0 -26
  54. package/dist/tree/state/value-descriptor/value-descriptor.d.ts +30 -21
  55. package/dist/tree/state/variable-declaration/validation/validation-schema.d.ts +4 -4
  56. package/dist/tree/state/variable-declaration/variable-declaration.d.ts +40 -32
  57. package/dist/tree/state/variable-instance/validation/validation-schema.d.ts +4 -4
  58. package/dist/tree/state/variable-instance/variable-instance.d.ts +39 -28
  59. package/dist/tree/state/version.d.ts +1 -1
  60. package/dist/tree/utils/data-type.d.ts +2 -2
  61. package/dist/tree/utils/index.d.ts +3 -2
  62. package/dist/tree/utils/shared-data-structure-entity.d.ts +7 -7
  63. package/package.json +1 -1
@@ -1,18 +1,23 @@
1
1
  import { DefinitionEntityTypesUnion, ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, IDefinitionEntity, IDefinitionEntityGenerationTarget, IDefinitionEntityReference, IDefinitionEntityShallowTransfer, IDefinitionEntityTransfer } from '../../../definitions';
2
2
  import { ZodError } from 'zod';
3
- import { BaseCanvasDraggableState, BaseState, ChildEntityState, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, UserManagedEntityStateFunctionality } from '../base';
3
+ import { BaseCanvasDraggableState, BaseState, ChildEntityState, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, UserManagedEntityStateTemplate } from '../base';
4
4
  import { PropertyState } from '../property';
5
5
  import { FunctionDeclarationState } from '../function-declaration';
6
6
  import { ProjectState } from '../project/project';
7
7
  import { BuiltInBaseEntityState } from '../built-in-base-entity';
8
8
  import { ActionDescriptorState } from '../action-descriptor';
9
9
  import { EntityError, EntityGenerationError } from '../error';
10
- import { EntityState, IChangeSet } from '../types';
10
+ import { EntityState, UserManagedEntityState } from '../types';
11
11
  import { DataTypeState } from '../data-type';
12
12
  import { VariableInputMapState } from '../input-map';
13
13
  import { VersionedState } from '../version';
14
+ import { ChangeSet, IChangeSet } from '../change-set';
14
15
 
15
- export declare class DefinitionEntityState extends VersionedState implements BaseState, UserManagedEntityStateFunctionality, BaseCanvasDraggableState, IDefinitionEntity, ChildEntityState {
16
+ export declare enum DefinitionEntityDependencyField {
17
+ Extends = "extends",
18
+ Implements = "implements"
19
+ }
20
+ export declare class DefinitionEntityState extends VersionedState implements BaseState, UserManagedEntityStateTemplate, BaseCanvasDraggableState, IDefinitionEntity, ChildEntityState {
16
21
  initialData: IDefinitionEntity | IDefinitionEntityTransfer;
17
22
  readonly id: EntityId;
18
23
  name: string;
@@ -30,9 +35,14 @@ export declare class DefinitionEntityState extends VersionedState implements Bas
30
35
  project: ProjectState;
31
36
  errors: EntityError[];
32
37
  parent: ProjectState | DataTypeState;
38
+ detachedDependents: Record<EntityId, {
39
+ entity: UserManagedEntityState;
40
+ field: string;
41
+ }>;
33
42
  knownVersions: Map<string, EntityState> | null;
34
43
  activeVersion: boolean;
35
44
  initialized: boolean;
45
+ startedInitialization: boolean;
36
46
  suggestedProperties: PropertyState[];
37
47
  suggestedMethods: FunctionDeclarationState[];
38
48
  constructor(initialData: IDefinitionEntity | IDefinitionEntityTransfer, parentProjectState: ProjectState);
@@ -67,13 +77,22 @@ export declare class DefinitionEntityState extends VersionedState implements Bas
67
77
  errors: EntityGenerationError[];
68
78
  modifiedData: Partial<IDefinitionEntityGenerationTarget>;
69
79
  };
80
+ subscribeDependents(dependencies: {
81
+ entity: UserManagedEntityState;
82
+ field: string;
83
+ }[]): UserManagedEntityState;
84
+ syncDependents(): IChangeSet<UserManagedEntityState>;
85
+ onDetachedDependencyRemoved(dependency: UserManagedEntityState, field: string, _changeSet: ChangeSet | null): IChangeSet<UserManagedEntityState>;
86
+ onDetachedDependencyRestored(dependency: UserManagedEntityState, field: string, _changeSet: ChangeSet | null): IChangeSet<UserManagedEntityState>;
87
+ subscribeToDependencies(): UserManagedEntityState;
88
+ increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
70
89
  captureVersion(): DefinitionEntityState;
71
- recursiveCaptureUpstreamVersions(): IChangeSet<DefinitionEntityState>;
90
+ recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<DefinitionEntityState>;
72
91
  restoreVersion(versionId: EntityVersion): Promise<IChangeSet<DefinitionEntityState>>;
73
92
  hydrateAncestors(): IChangeSet<DefinitionEntityState>;
74
- afterAllChildrenInitialized(): IChangeSet<DefinitionEntityState>;
75
- addSelfToProject(): IChangeSet<DefinitionEntityState>;
76
- setParent(parent: ProjectState | DataTypeState): DefinitionEntityState;
93
+ afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<DefinitionEntityState>;
94
+ addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<DefinitionEntityState>;
95
+ setParent(parent: ProjectState | DataTypeState, changeSet?: ChangeSet | null): DefinitionEntityState;
77
96
  addExtension(entity: DefinitionEntityState | BuiltInBaseEntityState): DefinitionEntityState;
78
97
  removeExtension(entity: DefinitionEntityState | BuiltInBaseEntityState): DefinitionEntityState;
79
98
  addImplementation(entity: DefinitionEntityState | BuiltInBaseEntityState): DefinitionEntityState;
@@ -88,32 +107,23 @@ export declare class DefinitionEntityState extends VersionedState implements Bas
88
107
  removeSuggestedMethod(method: FunctionDeclarationState): DefinitionEntityState;
89
108
  addAbstractMethod(method: ActionDescriptorState): DefinitionEntityState;
90
109
  removeAbstractMethod(method: ActionDescriptorState): DefinitionEntityState;
91
- initChildren(): DefinitionEntityState;
92
- syncImplementationProperties(): DefinitionEntityState;
93
- addExtendedProperties(): DefinitionEntityState;
110
+ initChildren(changeSet?: ChangeSet | null): DefinitionEntityState;
111
+ syncImplementationProperties(changeSet?: ChangeSet | null): IChangeSet<DefinitionEntityState>;
112
+ addExtendedProperties(changeSet?: ChangeSet | null): IChangeSet<DefinitionEntityState>;
94
113
  addSuggestions(): DefinitionEntityState;
95
114
  subscribe(): DefinitionEntityState;
96
115
  unsubscribe(): DefinitionEntityState;
97
- sync(data: Partial<IDefinitionEntity | IDefinitionEntityTransfer | IDefinitionEntityShallowTransfer>): DefinitionEntityState;
116
+ metaSync(data: Partial<IDefinitionEntity | IDefinitionEntityTransfer | IDefinitionEntityShallowTransfer>, changeSet?: ChangeSet | null): DefinitionEntityState;
98
117
  APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<DefinitionEntityState>;
99
118
  APICreate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<DefinitionEntityState>;
100
119
  APIUpdate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<DefinitionEntityState>;
101
120
  APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<DefinitionEntityState>;
102
121
  APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<DefinitionEntityState>;
103
122
  APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<IDefinitionEntityShallowTransfer | null>;
104
- remove({ ignoreUpstream: _, seenEntities, }?: {
123
+ remove({ ignoreUpstream }?: {
105
124
  ignoreUpstream: boolean;
106
- seenEntities: Set<string>;
107
- }): {
108
- affected: EntityState[];
109
- removed: EntityState[];
110
- };
111
- restore({ seenEntities }?: {
112
- seenEntities: Set<string>;
113
- }): {
114
- affected: EntityState[];
115
- self: DefinitionEntityState;
116
- };
125
+ }, changeSet?: ChangeSet | null): IChangeSet;
126
+ restore({}?: {}, changeSet?: ChangeSet | null): IChangeSet<DefinitionEntityState>;
117
127
  toFlat(seenEntities?: Set<EntityId>): EntityState[];
118
128
  toFlatIds(seenEntities?: Set<EntityId>): EntityId[];
119
129
  toJSON(seenEntities?: Set<EntityId>): IDefinitionEntityTransfer | IDefinitionEntityReference;
@@ -133,7 +143,7 @@ export declare class DefinitionEntityState extends VersionedState implements Bas
133
143
  getShallowErrors(): EntityError[];
134
144
  clone(parent?: ProjectState | DataTypeState | null, newId?: string | null, subscribe?: boolean): DefinitionEntityState;
135
145
  getFunctionDeclaration(id: EntityId): FunctionDeclarationState | undefined;
136
- implement(newEntityName: string, newId?: string): {
146
+ implement(newEntityName: string, changeSet?: ChangeSet | null, newId?: string): {
137
147
  errors: [];
138
148
  implemented: DefinitionEntityState;
139
149
  entitiesChanges: {
@@ -151,6 +161,6 @@ export declare class DefinitionEntityState extends VersionedState implements Bas
151
161
  };
152
162
  };
153
163
  getAllInteractiveMethods(): FunctionDeclarationState[];
154
- inferFromInputs(inputs: VariableInputMapState[]): DefinitionEntityState;
164
+ inferFromInputs(inputs: VariableInputMapState[], changeSet?: ChangeSet | null): IChangeSet<DefinitionEntityState>;
155
165
  }
156
166
  export type DefinitionEntityPayloadUnion = DefinitionEntityState | DefinitionEntityTypesUnion;
@@ -63,20 +63,20 @@ export declare function getDefinitionEntityMetaSchema(): z.ZodObject<z.objectUti
63
63
  name: string;
64
64
  description: string | null;
65
65
  version: number;
66
- x: number;
67
- y: number;
68
66
  static: boolean;
69
67
  abstract: boolean;
68
+ x: number;
69
+ y: number;
70
70
  }, {
71
71
  id: string;
72
72
  type: EntityType.DefinitionEntity;
73
73
  name: string;
74
74
  description: string | null;
75
75
  version: number;
76
- x: number;
77
- y: number;
78
76
  static: boolean;
79
77
  abstract: boolean;
78
+ x: number;
79
+ y: number;
80
80
  }>;
81
81
  export declare function getDefinitionEntityGenerationTargetSchema(): z.ZodObject<z.objectUtil.extendShape<{
82
82
  id: z.ZodString;
@@ -419,8 +419,6 @@ export declare function getDefinitionEntitySchema(): z.ZodObject<z.objectUtil.ex
419
419
  methods: (Record<string, any> | {
420
420
  type: EntityType.FunctionDeclaration;
421
421
  })[];
422
- x: number;
423
- y: number;
424
422
  properties: (Record<string, any> | {
425
423
  type: EntityType.Property;
426
424
  })[];
@@ -429,6 +427,8 @@ export declare function getDefinitionEntitySchema(): z.ZodObject<z.objectUtil.ex
429
427
  })[];
430
428
  static: boolean;
431
429
  abstract: boolean;
430
+ x: number;
431
+ y: number;
432
432
  }, {
433
433
  id: string;
434
434
  type: EntityType.DefinitionEntity;
@@ -459,8 +459,6 @@ export declare function getDefinitionEntitySchema(): z.ZodObject<z.objectUtil.ex
459
459
  methods: (Record<string, any> | {
460
460
  type: EntityType.FunctionDeclaration;
461
461
  })[];
462
- x: number;
463
- y: number;
464
462
  properties: (Record<string, any> | {
465
463
  type: EntityType.Property;
466
464
  })[];
@@ -469,4 +467,6 @@ export declare function getDefinitionEntitySchema(): z.ZodObject<z.objectUtil.ex
469
467
  })[];
470
468
  static: boolean;
471
469
  abstract: boolean;
470
+ x: number;
471
+ y: number;
472
472
  }>;
@@ -1,15 +1,20 @@
1
1
  import { EntityId, EntityType, IFunctionCall, IFunctionCallTransfer, IFunctionCallReference, IFunctionCallShallowTransfer, ElementShallowTransfer, IFunctionCallGenerationTarget, ElementGenerationTarget, FunctionCallTypesUnion, EntityVersion } from '../../../definitions';
2
2
  import { ZodError } from 'zod';
3
- import { BaseCanvasDraggableState, BaseState, CallableEntityClass, ChildEntityState, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, PassThroughCallableEntityClass, UserManagedEntityStateFunctionality } from '../base';
4
- import { CallableEntityState, CallerEntityState, EntityState, EntityWithLogicScopeState, EntryPointEntityState, IChangeSet, PassThroughCallableEntityState, ValueReadingEntityState } from '../types';
3
+ import { BaseCanvasDraggableState, BaseState, CallableEntityClass, ChildEntityState, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, PassThroughCallableEntityClass, UserManagedEntityStateTemplate } from '../base';
4
+ import { CallableEntityState, CallerEntityState, EntityState, EntityWithLogicScopeState, EntryPointEntityState, PassThroughCallableEntityState, UserManagedEntityState, ValueReadingEntityState } from '../types';
5
5
  import { FunctionDeclarationState } from '../function-declaration';
6
6
  import { ActionInputMapState } from '../input-map';
7
7
  import { ActionOutputMapState } from '../output-map';
8
8
  import { ProjectState } from '../project/project';
9
9
  import { EntityError, EntityGenerationError } from '../../state/error';
10
10
  import { VersionedState } from '../version';
11
+ import { ChangeSet, IChangeSet } from '../change-set';
11
12
 
12
- export declare class FunctionCallState extends VersionedState implements IFunctionCall, BaseState, UserManagedEntityStateFunctionality, BaseCanvasDraggableState, CallableEntityClass, ChildEntityState, PassThroughCallableEntityClass {
13
+ export declare enum FunctionCallDependencyField {
14
+ Parent = "parent",
15
+ Declaration = "declaration"
16
+ }
17
+ export declare class FunctionCallState extends VersionedState implements IFunctionCall, BaseState, UserManagedEntityStateTemplate, BaseCanvasDraggableState, CallableEntityClass, ChildEntityState, PassThroughCallableEntityClass {
13
18
  initialData: IFunctionCall | IFunctionCallTransfer;
14
19
  readonly id: EntityId;
15
20
  x: number;
@@ -28,9 +33,14 @@ export declare class FunctionCallState extends VersionedState implements IFuncti
28
33
  parent: EntityWithLogicScopeState | ProjectState;
29
34
  errors: EntityError[];
30
35
  project: ProjectState;
36
+ detachedDependents: Record<EntityId, {
37
+ entity: UserManagedEntityState;
38
+ field: string;
39
+ }>;
31
40
  knownVersions: Map<string, EntityState> | null;
32
41
  activeVersion: boolean;
33
42
  initialized: boolean;
43
+ startedInitialization: boolean;
34
44
  constructor(initialData: IFunctionCall | IFunctionCallTransfer, parentProjectState: ProjectState);
35
45
  static repository: IEditableEntityPersistanceRepository;
36
46
  static type: EntityType.FunctionCall;
@@ -58,12 +68,21 @@ export declare class FunctionCallState extends VersionedState implements IFuncti
58
68
  errors: EntityGenerationError[];
59
69
  modifiedData: Partial<IFunctionCallGenerationTarget>;
60
70
  };
71
+ subscribeDependents(dependencies: {
72
+ entity: UserManagedEntityState;
73
+ field: string;
74
+ }[]): UserManagedEntityState;
75
+ syncDependents(): IChangeSet<UserManagedEntityState>;
76
+ onDetachedDependencyRemoved(_dependency: UserManagedEntityState, field: string, changeSet: ChangeSet | null): IChangeSet<UserManagedEntityState>;
77
+ onDetachedDependencyRestored(_dependency: UserManagedEntityState, field: string, changeSet: ChangeSet | null): IChangeSet<UserManagedEntityState>;
78
+ subscribeToDependencies(): UserManagedEntityState;
79
+ increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
61
80
  captureVersion(): FunctionCallState;
62
- recursiveCaptureUpstreamVersions(): IChangeSet<FunctionCallState>;
81
+ recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<FunctionCallState>;
63
82
  restoreVersion(versionId: EntityVersion): Promise<IChangeSet<FunctionCallState>>;
64
83
  hydrateAncestors(): IChangeSet<FunctionCallState>;
65
- afterAllChildrenInitialized(): IChangeSet<FunctionCallState>;
66
- addSelfToProject(): IChangeSet<FunctionCallState>;
84
+ afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<FunctionCallState>;
85
+ addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<FunctionCallState>;
67
86
  get calledBy(): CallerEntityState[];
68
87
  removeInput(input: ActionInputMapState): FunctionCallState;
69
88
  addInput(input: ActionInputMapState): FunctionCallState;
@@ -71,38 +90,29 @@ export declare class FunctionCallState extends VersionedState implements IFuncti
71
90
  removeOutput(output: ActionOutputMapState): FunctionCallState;
72
91
  addValueReader(entity: ValueReadingEntityState): FunctionCallState;
73
92
  removeValueReader(valueReader: ValueReadingEntityState): FunctionCallState;
74
- addSuccessCaller(caller: PassThroughCallableEntityState): FunctionCallState;
75
- addErrorCaller(caller: PassThroughCallableEntityState): FunctionCallState;
76
- addEntryCaller(caller: EntryPointEntityState): FunctionCallState;
93
+ addSuccessCaller(caller: PassThroughCallableEntityState, changeSet?: ChangeSet | null): FunctionCallState;
94
+ addErrorCaller(caller: PassThroughCallableEntityState, changeSet?: ChangeSet | null): FunctionCallState;
95
+ addEntryCaller(caller: EntryPointEntityState, changeSet?: ChangeSet | null): FunctionCallState;
77
96
  addErrorCall(call: CallableEntityState): FunctionCallState;
78
97
  addSuccessCall(call: CallableEntityState): FunctionCallState;
79
98
  removeCall(call: CallableEntityState): FunctionCallState;
80
- removeCaller(caller: CallerEntityState): FunctionCallState;
81
- setParent(parent: EntityWithLogicScopeState | ProjectState): FunctionCallState;
99
+ removeCaller(caller: CallerEntityState, changeSet?: ChangeSet | null): FunctionCallState;
100
+ setParent(parent: EntityWithLogicScopeState | ProjectState, changeSet?: ChangeSet | null): FunctionCallState;
82
101
  setDeclaration(declaration: FunctionDeclarationState): FunctionCallState;
83
- initChildren(): FunctionCallState;
102
+ initChildren(changeSet?: ChangeSet | null): FunctionCallState;
84
103
  subscribe(): FunctionCallState;
85
104
  unsubscribe(): FunctionCallState;
86
- sync(data: Partial<IFunctionCall | IFunctionCallTransfer | IFunctionCallShallowTransfer>): FunctionCallState;
105
+ metaSync(data: Partial<IFunctionCall | IFunctionCallTransfer | IFunctionCallShallowTransfer>, changeSet?: ChangeSet | null): FunctionCallState;
87
106
  APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionCallState>;
88
107
  APICreate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionCallState>;
89
108
  APIUpdate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionCallState>;
90
109
  APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionCallState>;
91
110
  APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionCallState>;
92
111
  APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<IFunctionCallShallowTransfer | null>;
93
- remove({ ignoreUpstream, seenEntities, }?: {
112
+ remove({ ignoreUpstream }?: {
94
113
  ignoreUpstream: boolean;
95
- seenEntities: Set<string>;
96
- }): {
97
- affected: EntityState[];
98
- removed: EntityState[];
99
- };
100
- restore({ seenEntities }?: {
101
- seenEntities: Set<string>;
102
- }): {
103
- affected: EntityState[];
104
- self: FunctionCallState;
105
- };
114
+ }, changeSet?: ChangeSet | null): IChangeSet;
115
+ restore({}?: {}, changeSet?: ChangeSet | null): IChangeSet<FunctionCallState>;
106
116
  toFlat(seenEntities?: Set<EntityId>): EntityState[];
107
117
  toFlatIds(seenEntities?: Set<EntityId>): EntityId[];
108
118
  toJSON(seenEntities?: Set<EntityId>): IFunctionCallTransfer | IFunctionCallReference;
@@ -121,9 +131,9 @@ export declare class FunctionCallState extends VersionedState implements IFuncti
121
131
  getErrors(): EntityError[];
122
132
  getShallowErrors(): EntityError[];
123
133
  clone(parent?: EntryPointEntityState | ProjectState | null, newId?: string | null, subscribe?: boolean): FunctionCallState;
124
- removeUnrecognizedInputs(): IChangeSet<FunctionCallState>;
125
- removeUnrecognizedOutputs(): IChangeSet<FunctionCallState>;
126
- syncMissingFixedInputs(): IChangeSet<FunctionCallState>;
127
- syncMissingFixedOutputs(): IChangeSet<FunctionCallState>;
134
+ removeUnrecognizedInputs(changeSet?: ChangeSet | null): IChangeSet<FunctionCallState>;
135
+ removeUnrecognizedOutputs(changeSet?: ChangeSet | null): IChangeSet<FunctionCallState>;
136
+ syncMissingFixedInputs(changeSet?: ChangeSet | null): IChangeSet<FunctionCallState>;
137
+ syncMissingFixedOutputs(changeSet?: ChangeSet | null): IChangeSet<FunctionCallState>;
128
138
  }
129
139
  export type FunctionCallPayloadUnion = FunctionCallState | FunctionCallTypesUnion;
@@ -2129,8 +2129,6 @@ export declare function getFunctionCallSchema(): z.ZodObject<z.objectUtil.extend
2129
2129
  entityId: string;
2130
2130
  };
2131
2131
  version: number;
2132
- x: number;
2133
- y: number;
2134
2132
  inputs: (Record<string, any> | {
2135
2133
  type: EntityType.InputMap;
2136
2134
  })[];
@@ -2258,6 +2256,8 @@ export declare function getFunctionCallSchema(): z.ZodObject<z.objectUtil.extend
2258
2256
  } | {
2259
2257
  type: EntityType.VariableInstance;
2260
2258
  })[];
2259
+ x: number;
2260
+ y: number;
2261
2261
  error?: Record<string, any> | {
2262
2262
  type: EntityType.OutputMap;
2263
2263
  } | undefined;
@@ -2382,8 +2382,6 @@ export declare function getFunctionCallSchema(): z.ZodObject<z.objectUtil.extend
2382
2382
  entityId: string;
2383
2383
  };
2384
2384
  version: number;
2385
- x: number;
2386
- y: number;
2387
2385
  inputs: (Record<string, any> | {
2388
2386
  type: EntityType.InputMap;
2389
2387
  })[];
@@ -2511,6 +2509,8 @@ export declare function getFunctionCallSchema(): z.ZodObject<z.objectUtil.extend
2511
2509
  } | {
2512
2510
  type: EntityType.VariableInstance;
2513
2511
  })[];
2512
+ x: number;
2513
+ y: number;
2514
2514
  error?: Record<string, any> | {
2515
2515
  type: EntityType.OutputMap;
2516
2516
  } | undefined;
@@ -1,9 +1,9 @@
1
1
  import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, FunctionDeclarationTypesUnion, IFunctionCallTransfer, IFunctionDeclaration, IFunctionDeclarationGenerationTarget, IFunctionDeclarationReference, IFunctionDeclarationShallowTransfer, IFunctionDeclarationTransfer, IInternalCallTransfer } from '../../../definitions';
2
2
  import { ZodError } from 'zod';
3
- import { BaseCanvasDraggableState, BaseState, ChildEntityState, EntityWithLogicScopeClass, EntryPointEntityClass, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, UserManagedEntityStateFunctionality } from '../base';
3
+ import { BaseCanvasDraggableState, BaseState, ChildEntityState, EntityWithLogicScopeClass, EntryPointEntityClass, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, UserManagedEntityStateTemplate } from '../base';
4
4
  import { ArgumentDeclarationState } from '../argument-declaration';
5
5
  import { ReturnStatementState } from '../return-statement';
6
- import { CallableEntityState, CanvasEntityState, EntityState, EntityWithLogicScopeState, IChangeSet, VariableState } from '../types';
6
+ import { CallableEntityState, CanvasEntityState, EntityState, EntityWithLogicScopeState, UserManagedEntityState, VariableState } from '../types';
7
7
  import { ProjectState } from '../project/project';
8
8
  import { InstalledProjectState } from '../installed-project';
9
9
  import { DefinitionEntityState } from '../definition-entity';
@@ -17,8 +17,12 @@ import { FunctionCallState } from '../function-call';
17
17
  import { InternalCallState } from '../internal-call';
18
18
  import { ReturnDeclarationState } from '../return-declaration';
19
19
  import { VersionedState } from '../version';
20
+ import { ChangeSet, IChangeSet } from '../change-set';
20
21
 
21
- export declare class FunctionDeclarationState extends VersionedState implements IFunctionDeclaration, BaseState, UserManagedEntityStateFunctionality, BaseCanvasDraggableState, ChildEntityState, EntityWithLogicScopeClass, EntryPointEntityClass {
22
+ export declare enum FunctionDeclarationDependencyField {
23
+ Implements = "implements"
24
+ }
25
+ export declare class FunctionDeclarationState extends VersionedState implements IFunctionDeclaration, BaseState, UserManagedEntityStateTemplate, BaseCanvasDraggableState, ChildEntityState, EntityWithLogicScopeClass, EntryPointEntityClass {
22
26
  initialData: IFunctionDeclarationTransfer | IFunctionDeclaration;
23
27
  readonly id: EntityId;
24
28
  name: string;
@@ -31,15 +35,19 @@ export declare class FunctionDeclarationState extends VersionedState implements
31
35
  readonly type: EntityType.FunctionDeclaration;
32
36
  implements: ActionDescriptorState | null;
33
37
  inputs: ArgumentDeclarationState[];
34
- returnStatements: ReturnStatementState[];
35
38
  calls: CallableEntityState[];
36
39
  parent: ProjectState | InstalledProjectState | DefinitionEntityState | LoopState | BuiltInBaseEntityState | PrimitiveEntityState;
37
40
  detachedChildren: CanvasEntityState[];
38
41
  errors: EntityError[];
39
42
  project: ProjectState;
43
+ detachedDependents: Record<EntityId, {
44
+ entity: UserManagedEntityState;
45
+ field: string;
46
+ }>;
40
47
  knownVersions: Map<string, EntityState> | null;
41
48
  activeVersion: boolean;
42
49
  initialized: boolean;
50
+ startedInitialization: boolean;
43
51
  suggestion: boolean;
44
52
  constructor(initialData: IFunctionDeclaration | IFunctionDeclarationTransfer, parentProjectState: ProjectState);
45
53
  static repository: IEditableEntityPersistanceRepository;
@@ -64,47 +72,48 @@ export declare class FunctionDeclarationState extends VersionedState implements
64
72
  errors: EntityGenerationError[];
65
73
  modifiedData: IFunctionDeclarationGenerationTarget;
66
74
  };
75
+ get returnStatements(): ReturnStatementState[];
67
76
  validateGeneratedUpdate(data: Partial<IFunctionDeclarationGenerationTarget>): {
68
77
  errors: EntityGenerationError[];
69
78
  modifiedData: Partial<IFunctionDeclarationGenerationTarget>;
70
79
  };
80
+ subscribeDependents(dependencies: {
81
+ entity: UserManagedEntityState;
82
+ field: string;
83
+ }[]): UserManagedEntityState;
84
+ syncDependents(): IChangeSet<UserManagedEntityState>;
85
+ onDetachedDependencyRemoved(_dependency: UserManagedEntityState, field: string, changeSet: ChangeSet | null): IChangeSet<UserManagedEntityState>;
86
+ onDetachedDependencyRestored(dependency: UserManagedEntityState, field: string, changeSet: ChangeSet | null): IChangeSet<UserManagedEntityState>;
87
+ subscribeToDependencies(): UserManagedEntityState;
88
+ increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
71
89
  captureVersion(): FunctionDeclarationState;
72
- recursiveCaptureUpstreamVersions(): IChangeSet<FunctionDeclarationState>;
90
+ recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<FunctionDeclarationState>;
73
91
  restoreVersion(versionId: EntityVersion): Promise<IChangeSet<FunctionDeclarationState>>;
74
92
  hydrateAncestors(): IChangeSet<FunctionDeclarationState>;
75
- afterAllChildrenInitialized(): IChangeSet<FunctionDeclarationState>;
76
- addSelfToProject(): IChangeSet<FunctionDeclarationState>;
93
+ afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<FunctionDeclarationState>;
94
+ addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<FunctionDeclarationState>;
77
95
  replaceDetachedChild(existingChild: CanvasEntityState, newChild: CanvasEntityState): FunctionDeclarationState;
78
96
  subscribeDetachedChild(child: CanvasEntityState): FunctionDeclarationState;
79
- addInputDeclaration(input: ArgumentDeclarationState): FunctionDeclarationState;
97
+ addInputDeclaration(input: ArgumentDeclarationState, changeSet?: ChangeSet | null): FunctionDeclarationState;
80
98
  removeInputDeclaration(input: ArgumentDeclarationState): FunctionDeclarationState;
81
- setParent(parent: ProjectState | InstalledProjectState | DefinitionEntityState | LoopState | BuiltInBaseEntityState | PrimitiveEntityState): FunctionDeclarationState;
82
- setImplements(implementsEntity: ActionDescriptorState): FunctionDeclarationState;
99
+ setParent(parent: ProjectState | InstalledProjectState | DefinitionEntityState | LoopState | BuiltInBaseEntityState | PrimitiveEntityState, changeSet?: ChangeSet | null): FunctionDeclarationState;
100
+ setImplements(implementsEntity: ActionDescriptorState | null, changeSet?: ChangeSet | null): FunctionDeclarationState;
83
101
  addCall(entity: CallableEntityState): FunctionDeclarationState;
84
102
  removeCall(entity: CallableEntityState): FunctionDeclarationState;
85
- initChildren(): FunctionDeclarationState;
103
+ initChildren(changeSet?: ChangeSet | null): FunctionDeclarationState;
86
104
  subscribe(): FunctionDeclarationState;
87
105
  unsubscribe(): FunctionDeclarationState;
88
- sync(data: Partial<IFunctionDeclaration | IFunctionDeclarationTransfer | IFunctionDeclarationShallowTransfer>): FunctionDeclarationState;
106
+ metaSync(data: Partial<IFunctionDeclaration | IFunctionDeclarationTransfer | IFunctionDeclarationShallowTransfer>, changeSet?: ChangeSet | null): FunctionDeclarationState;
89
107
  APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionDeclarationState>;
90
108
  APICreate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionDeclarationState>;
91
109
  APIUpdate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionDeclarationState>;
92
110
  APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionDeclarationState>;
93
111
  APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionDeclarationState>;
94
112
  APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<IFunctionDeclarationShallowTransfer | null>;
95
- remove({ ignoreUpstream: _, seenEntities, }?: {
113
+ remove({ ignoreUpstream: _ }?: {
96
114
  ignoreUpstream: boolean;
97
- seenEntities: Set<string>;
98
- }): {
99
- affected: EntityState[];
100
- removed: EntityState[];
101
- };
102
- restore({ seenEntities }?: {
103
- seenEntities: Set<string>;
104
- }): {
105
- affected: EntityState[];
106
- self: FunctionDeclarationState;
107
- };
115
+ }, changeSet?: ChangeSet | null): IChangeSet;
116
+ restore({}?: {}, changeSet?: ChangeSet | null): IChangeSet<FunctionDeclarationState>;
108
117
  toFlat(seenEntities?: Set<EntityId>): EntityState[];
109
118
  toFlatIds(seenEntities?: Set<EntityId>): EntityId[];
110
119
  toJSON(seenEntities?: Set<EntityId>): IFunctionDeclarationTransfer | IFunctionDeclarationReference;
@@ -56,18 +56,18 @@ export declare function getFunctionDeclarationMetaSchema(): z.ZodObject<z.object
56
56
  name: string;
57
57
  description: string | null;
58
58
  version: number;
59
+ index: number | null;
59
60
  x: number;
60
61
  y: number;
61
- index: number | null;
62
62
  }, {
63
63
  id: string;
64
64
  type: EntityType.FunctionDeclaration;
65
65
  name: string;
66
66
  description: string | null;
67
67
  version: number;
68
+ index: number | null;
68
69
  x: number;
69
70
  y: number;
70
- index: number | null;
71
71
  }>;
72
72
  export declare function getFunctionDeclarationGenerationTargetSchema(): z.ZodObject<{
73
73
  id: z.ZodString;
@@ -444,12 +444,12 @@ export declare function getFunctionDeclarationSchema(): z.ZodObject<z.objectUtil
444
444
  entityId: string;
445
445
  };
446
446
  version: number;
447
- x: number;
448
- y: number;
449
447
  index: number | null;
450
448
  inputs: (Record<string, any> | {
451
449
  type: EntityType.ArgumentDeclaration;
452
450
  })[];
451
+ x: number;
452
+ y: number;
453
453
  returnStatements: (Record<string, any> | {
454
454
  type: EntityType.ReturnStatement;
455
455
  })[];
@@ -493,12 +493,12 @@ export declare function getFunctionDeclarationSchema(): z.ZodObject<z.objectUtil
493
493
  entityId: string;
494
494
  };
495
495
  version: number;
496
- x: number;
497
- y: number;
498
496
  index: number | null;
499
497
  inputs: (Record<string, any> | {
500
498
  type: EntityType.ArgumentDeclaration;
501
499
  })[];
500
+ x: number;
501
+ y: number;
502
502
  returnStatements: (Record<string, any> | {
503
503
  type: EntityType.ReturnStatement;
504
504
  })[];
@@ -1,8 +1,8 @@
1
1
  import { ElementGenerationTarget, ElementShallowTransfer, EntityId, EntityType, EntityVersion, GlobalEventNames, GlobalEventTypesUnion, IGlobalEvent, IGlobalEventGenerationTarget, IGlobalEventReference, IGlobalEventShallowTransfer, IGlobalEventTransfer } from '../../../definitions';
2
2
  import { ZodError } from 'zod';
3
- import { BaseCanvasDraggableState, BaseState, ChildEntityState, EntityWithLogicScopeClass, EntryPointEntityClass, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, UserManagedEntityStateFunctionality } from '../base';
3
+ import { BaseCanvasDraggableState, BaseState, ChildEntityState, EntityWithLogicScopeClass, EntryPointEntityClass, IEditableEntityPersistanceRepository, IEntityJSONCloneOptions, IEntityPersistanceOptions, IEntityRecursionOptions, UserManagedEntityStateTemplate } from '../base';
4
4
  import { ArgumentDeclarationState } from '../argument-declaration';
5
- import { CallableEntityState, CanvasEntityState, EntityState, IChangeSet } from '../types';
5
+ import { CallableEntityState, CanvasEntityState, EntityState, UserManagedEntityState } from '../types';
6
6
  import { ReturnStatementState } from '../return-statement';
7
7
  import { ProjectState } from '../project/project';
8
8
  import { InstalledProjectState } from '../installed-project';
@@ -10,8 +10,9 @@ import { VariableInstanceState } from '../variable-instance';
10
10
  import { EntityError, EntityGenerationError } from '../../state/error';
11
11
  import { ActionDescriptorState } from '../action-descriptor';
12
12
  import { VersionedState } from '../version';
13
+ import { ChangeSet, IChangeSet } from '../change-set';
13
14
 
14
- export declare class GlobalEventState extends VersionedState implements IGlobalEvent, UserManagedEntityStateFunctionality, BaseState, BaseCanvasDraggableState, ChildEntityState, EntityWithLogicScopeClass, EntryPointEntityClass {
15
+ export declare class GlobalEventState extends VersionedState implements IGlobalEvent, UserManagedEntityStateTemplate, BaseState, BaseCanvasDraggableState, ChildEntityState, EntityWithLogicScopeClass, EntryPointEntityClass {
15
16
  initialData: IGlobalEvent | IGlobalEventTransfer;
16
17
  readonly id: EntityId;
17
18
  name: GlobalEventNames;
@@ -22,15 +23,19 @@ export declare class GlobalEventState extends VersionedState implements IGlobalE
22
23
  readonly type: EntityType.GlobalEvent;
23
24
  inputs: ArgumentDeclarationState[];
24
25
  calls: CallableEntityState[];
25
- returnStatements: ReturnStatementState[];
26
26
  parent: ProjectState | InstalledProjectState;
27
27
  implements: ActionDescriptorState;
28
28
  detachedChildren: CanvasEntityState[];
29
29
  errors: EntityError[];
30
30
  project: ProjectState;
31
+ detachedDependents: Record<EntityId, {
32
+ entity: UserManagedEntityState;
33
+ field: string;
34
+ }>;
31
35
  knownVersions: Map<string, EntityState> | null;
32
36
  activeVersion: boolean;
33
37
  initialized: boolean;
38
+ startedInitialization: boolean;
34
39
  constructor(initialData: IGlobalEvent | IGlobalEventTransfer, parentProjectState: ProjectState);
35
40
  static repository: IEditableEntityPersistanceRepository;
36
41
  static type: EntityType.GlobalEvent;
@@ -54,47 +59,48 @@ export declare class GlobalEventState extends VersionedState implements IGlobalE
54
59
  errors: EntityGenerationError[];
55
60
  modifiedData: IGlobalEventGenerationTarget;
56
61
  };
62
+ get returnStatements(): ReturnStatementState[];
57
63
  validateGeneratedUpdate(data: Partial<IGlobalEventGenerationTarget>): {
58
64
  errors: EntityGenerationError[];
59
65
  modifiedData: Partial<IGlobalEventGenerationTarget>;
60
66
  };
67
+ subscribeDependents(dependencies: {
68
+ entity: UserManagedEntityState;
69
+ field: string;
70
+ }[]): UserManagedEntityState;
71
+ syncDependents(): IChangeSet<UserManagedEntityState>;
72
+ onDetachedDependencyRemoved(_dependency: UserManagedEntityState, _field: string, _changeSet: ChangeSet | null): IChangeSet<UserManagedEntityState>;
73
+ onDetachedDependencyRestored(_dependency: UserManagedEntityState, _field: string, _changeSet: ChangeSet | null): IChangeSet<UserManagedEntityState>;
74
+ subscribeToDependencies(): UserManagedEntityState;
75
+ increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
61
76
  captureVersion(): GlobalEventState;
62
- recursiveCaptureUpstreamVersions(): IChangeSet<GlobalEventState>;
77
+ recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<GlobalEventState>;
63
78
  restoreVersion(versionId: EntityVersion): Promise<IChangeSet<GlobalEventState>>;
64
79
  hydrateAncestors(): IChangeSet<GlobalEventState>;
65
- afterAllChildrenInitialized(): IChangeSet<GlobalEventState>;
66
- addSelfToProject(): IChangeSet<GlobalEventState>;
80
+ afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<GlobalEventState>;
81
+ addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<GlobalEventState>;
67
82
  replaceDetachedChild(existingChild: CanvasEntityState, newChild: CanvasEntityState): GlobalEventState;
68
83
  subscribeDetachedChild(child: CanvasEntityState): GlobalEventState;
69
- setParent(parent: ProjectState | InstalledProjectState): GlobalEventState;
70
- setImplements(implementsEntity: ActionDescriptorState): GlobalEventState;
84
+ setParent(parent: ProjectState | InstalledProjectState, changeSet?: ChangeSet | null): GlobalEventState;
85
+ setImplements(implementsEntity: ActionDescriptorState, changeSet?: ChangeSet | null): GlobalEventState;
71
86
  addCall(entity: CallableEntityState): GlobalEventState;
72
87
  removeCall(entity: CallableEntityState): GlobalEventState;
73
- addInputDeclaration(entity: ArgumentDeclarationState): GlobalEventState;
88
+ addInputDeclaration(input: ArgumentDeclarationState, changeSet?: ChangeSet | null): GlobalEventState;
74
89
  removeInputDeclaration(input: ArgumentDeclarationState): GlobalEventState;
75
- initChildren(): GlobalEventState;
90
+ initChildren(changeSet?: ChangeSet | null): GlobalEventState;
76
91
  subscribe(): GlobalEventState;
77
92
  unsubscribe(): GlobalEventState;
78
- sync(data: Partial<IGlobalEvent | IGlobalEventTransfer | IGlobalEventShallowTransfer>): GlobalEventState;
93
+ metaSync(data: Partial<IGlobalEvent | IGlobalEventTransfer | IGlobalEventShallowTransfer>, changeSet?: ChangeSet | null): GlobalEventState;
79
94
  APILoad(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<GlobalEventState>;
80
95
  APICreate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<GlobalEventState>;
81
96
  APIUpdate(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<GlobalEventState>;
82
97
  APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<GlobalEventState>;
83
98
  APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<GlobalEventState>;
84
99
  APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<IGlobalEventShallowTransfer | null>;
85
- remove({ ignoreUpstream: _, seenEntities, }?: {
100
+ remove({ ignoreUpstream: _ }?: {
86
101
  ignoreUpstream: boolean;
87
- seenEntities: Set<string>;
88
- }): {
89
- affected: EntityState[];
90
- removed: EntityState[];
91
- };
92
- restore({ seenEntities }?: {
93
- seenEntities: Set<string>;
94
- }): {
95
- affected: EntityState[];
96
- self: GlobalEventState;
97
- };
102
+ }, changeSet?: ChangeSet | null): IChangeSet;
103
+ restore({}?: {}, changeSet?: ChangeSet | null): IChangeSet<GlobalEventState>;
98
104
  toFlat(seenEntities?: Set<EntityId>): EntityState[];
99
105
  toFlatIds(seenEntities?: Set<EntityId>): EntityId[];
100
106
  toJSON(seenEntities?: Set<EntityId>): IGlobalEventTransfer | IGlobalEventReference;