@elyx-code/project-logic-tree 0.0.6863 → 0.0.6865

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 (4) hide show
  1. package/dist/index.cjs +317 -321
  2. package/dist/index.d.ts +322 -54
  3. package/dist/index.js +46775 -45432
  4. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -136,8 +136,19 @@ export declare class ActionDescriptorState extends UserManagedVersionedState imp
136
136
  subscribeToDependencies(): UserManagedEntityState;
137
137
  increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
138
138
  captureVersion(): ActionDescriptorState;
139
+ snapshot(): ActionDescriptorState;
140
+ /**
141
+ * Given an instance of the same entity class type,
142
+ * it applies the current entity state to it by copying all of its data and entity references
143
+ *
144
+ * @param {ActionDescriptorState} snapshotInstance
145
+ * @returns {ActionDescriptorState} The snapshot instance with the current entity state applied to it
146
+ */
147
+ apply(snapshotInstance: ActionDescriptorState): ActionDescriptorState;
139
148
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<ActionDescriptorState>;
140
- restoreVersion(versionId: EntityVersion): Promise<IChangeSet<ActionDescriptorState>>;
149
+ restoreVersion(versionId: EntityVersion, options?: {
150
+ skipIfSameVersion?: boolean;
151
+ }): Promise<IChangeSet<ActionDescriptorState>>;
141
152
  updateWithShallowTransfer(transfer: IActionDescriptorShallowTransfer, changeSet?: ChangeSet | null): ActionDescriptorState;
142
153
  updateWithGenerationTarget(transfer: Partial<IActionDescriptorGenerationTarget>, changeSet?: ChangeSet | null): ActionDescriptorState;
143
154
  hydrateAncestors(): IChangeSet<ActionDescriptorState>;
@@ -598,8 +609,19 @@ export declare class ArgumentDeclarationState extends UserManagedVersionedState
598
609
  subscribeToDependencies(): UserManagedEntityState;
599
610
  increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
600
611
  captureVersion(): ArgumentDeclarationState;
612
+ snapshot(): ArgumentDeclarationState;
613
+ /**
614
+ * Given an instance of the same entity class type,
615
+ * it applies the current entity state to it by copying all of its data and entity references
616
+ *
617
+ * @param {ArgumentDeclarationState} snapshotInstance
618
+ * @returns {ArgumentDeclarationState} The snapshot instance with the current entity state applied to it
619
+ */
620
+ apply(snapshotInstance: ArgumentDeclarationState): ArgumentDeclarationState;
601
621
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<ArgumentDeclarationState>;
602
- restoreVersion(versionId: EntityVersion): Promise<IChangeSet<ArgumentDeclarationState>>;
622
+ restoreVersion(versionId: EntityVersion, options?: {
623
+ skipIfSameVersion?: boolean;
624
+ }): Promise<IChangeSet<ArgumentDeclarationState>>;
603
625
  updateWithShallowTransfer(transfer: IArgumentDeclarationShallowTransfer, changeSet?: ChangeSet | null): ArgumentDeclarationState;
604
626
  updateWithGenerationTarget(transfer: Partial<IArgumentDeclarationGenerationTarget>, changeSet?: ChangeSet | null): ArgumentDeclarationState;
605
627
  hydrateAncestors(): IChangeSet<ArgumentDeclarationState>;
@@ -842,7 +864,7 @@ export declare enum BaseValueDescriptorIds {
842
864
  entity: UserManagedEntityState;
843
865
  field: string;
844
866
  }>;
845
- knownVersions: Map<string, EntityState> | null;
867
+ knownVersions: Map<string, UserManagedEntityState> | null;
846
868
  activeVersion: boolean;
847
869
  initialized: boolean;
848
870
  startedInitialization: boolean;
@@ -900,8 +922,19 @@ export declare enum BaseValueDescriptorIds {
900
922
  subscribeToDependencies(): UserManagedEntityState;
901
923
  increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
902
924
  captureVersion(): BreakStatementState;
925
+ snapshot(): BreakStatementState;
926
+ /**
927
+ * Given an instance of the same entity class type,
928
+ * it applies the current entity state to it by copying all of its data and entity references
929
+ *
930
+ * @param {BreakStatementState} snapshotInstance
931
+ * @returns {BreakStatementState} The snapshot instance with the current entity state applied to it
932
+ */
933
+ apply(snapshotInstance: BreakStatementState): BreakStatementState;
903
934
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<BreakStatementState>;
904
- restoreVersion(versionId: EntityVersion): Promise<IChangeSet<BreakStatementState>>;
935
+ restoreVersion(versionId: EntityVersion, options?: {
936
+ skipIfSameVersion?: boolean;
937
+ }): Promise<IChangeSet<BreakStatementState>>;
905
938
  updateWithShallowTransfer(transfer: IBreakStatementShallowTransfer, changeSet?: ChangeSet | null): BreakStatementState;
906
939
  updateWithGenerationTarget(transfer: Partial<IBreakStatementGenerationTarget>, changeSet?: ChangeSet | null): BreakStatementState;
907
940
  hydrateAncestors(): IChangeSet<BreakStatementState>;
@@ -9529,7 +9562,7 @@ export declare enum BaseValueDescriptorIds {
9529
9562
  CannotReSetValueOfConstantVariable = "cannot-reset-value-of-constant-variable",
9530
9563
  CannotConnectToOwnNode = "cannot-connect-to-own-node",
9531
9564
  VariableDeclarationCannotBeMovedToLowerScopeBecauseInstancesUsage = "variable-declaration-cannot-be-moved-to-lower-scope-because-instances-usage",
9532
- CannotChangeScopeBecauseItIsCalledByOtherEntities = "cannot-change-scope-because-it-is-called-by-other-entities",
9565
+ CannotChangeScopeBecauseItIsAlreadyCalledByOtherEntitiesInDifferentScope = "cannot-change-scope-because-it-is-already-called-by-other-entities-in-different-scope",
9533
9566
  CannotChangeScopeBecauseItCallsOtherEntities = "cannot-change-scope-because-it-calls-other-entities",
9534
9567
  CalledByErrorMustBePassThroughCallable = "called-by-error-must-be-pass-through-callable",
9535
9568
  CalledByErrorCannotBeConnectedToEntitiesCalledByOwnSuccessBranch = "called-by-error-cannot-be-connected-to-entities-called-by-own-success-branch",
@@ -10093,7 +10126,7 @@ export declare enum BaseValueDescriptorIds {
10093
10126
  entity: UserManagedEntityState;
10094
10127
  field: string;
10095
10128
  }>;
10096
- knownVersions: Map<string, EntityState> | null;
10129
+ knownVersions: Map<string, UserManagedEntityState> | null;
10097
10130
  activeVersion: boolean;
10098
10131
  initialized: boolean;
10099
10132
  startedInitialization: boolean;
@@ -10148,8 +10181,19 @@ export declare enum BaseValueDescriptorIds {
10148
10181
  subscribeToDependencies(): UserManagedEntityState;
10149
10182
  increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
10150
10183
  captureVersion(): ConditionState;
10184
+ snapshot(): ConditionState;
10185
+ /**
10186
+ * Given an instance of the same entity class type,
10187
+ * it applies the current entity state to it by copying all of its data and entity references
10188
+ *
10189
+ * @param {ConditionState} snapshotInstance
10190
+ * @returns {ConditionState} The snapshot instance with the current entity state applied to it
10191
+ */
10192
+ apply(snapshotInstance: ConditionState): ConditionState;
10151
10193
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<ConditionState>;
10152
- restoreVersion(versionId: EntityVersion): Promise<IChangeSet<ConditionState>>;
10194
+ restoreVersion(versionId: EntityVersion, options?: {
10195
+ skipIfSameVersion?: boolean;
10196
+ }): Promise<IChangeSet<ConditionState>>;
10153
10197
  updateWithShallowTransfer(transfer: IConditionShallowTransfer, changeSet?: ChangeSet | null): ConditionState;
10154
10198
  updateWithGenerationTarget(transfer: IConditionGenerationTarget, changeSet?: ChangeSet | null): ConditionState;
10155
10199
  hydrateAncestors(): IChangeSet<ConditionState>;
@@ -10227,7 +10271,9 @@ export declare enum BaseValueDescriptorIds {
10227
10271
  }
10228
10272
  export { conditionValidation }
10229
10273
 
10230
- export declare const CONNECTABLE_TYPES: EntityType[][];
10274
+ export declare const CONNECTABLE_TYPES: EntityType[];
10275
+
10276
+ export declare function connectEntitiesBasedOnConenctionType(sourceEntity: UserManagedEntityState, targetEntity: UserManagedEntityState, connectionType: ConnectionNodeType, changeSet: ChangeSet): void;
10231
10277
 
10232
10278
  export declare enum ConnectionNodeType {
10233
10279
  PropertyOut = "property-out",
@@ -10273,7 +10319,7 @@ export declare enum BaseValueDescriptorIds {
10273
10319
  entity: UserManagedEntityState;
10274
10320
  field: string;
10275
10321
  }>;
10276
- knownVersions: Map<string, EntityState> | null;
10322
+ knownVersions: Map<string, UserManagedEntityState> | null;
10277
10323
  activeVersion: boolean;
10278
10324
  initialized: boolean;
10279
10325
  startedInitialization: boolean;
@@ -10331,8 +10377,19 @@ export declare enum BaseValueDescriptorIds {
10331
10377
  subscribeToDependencies(): UserManagedEntityState;
10332
10378
  increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
10333
10379
  captureVersion(): ContinueStatementState;
10380
+ snapshot(): ContinueStatementState;
10381
+ /**
10382
+ * Given an instance of the same entity class type,
10383
+ * it applies the current entity state to it by copying all of its data and entity references
10384
+ *
10385
+ * @param {ContinueStatementState} snapshotInstance
10386
+ * @returns {ContinueStatementState} The snapshot instance with the current entity state applied to it
10387
+ */
10388
+ apply(snapshotInstance: ContinueStatementState): ContinueStatementState;
10334
10389
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<ContinueStatementState>;
10335
- restoreVersion(versionId: EntityVersion): Promise<IChangeSet<ContinueStatementState>>;
10390
+ restoreVersion(versionId: EntityVersion, options?: {
10391
+ skipIfSameVersion?: boolean;
10392
+ }): Promise<IChangeSet<ContinueStatementState>>;
10336
10393
  updateWithShallowTransfer(transfer: IContinueStatementShallowTransfer, changeSet?: ChangeSet | null): ContinueStatementState;
10337
10394
  updateWithGenerationTarget(transfer: Partial<IContinueStatementGenerationTarget>, changeSet?: ChangeSet | null): ContinueStatementState;
10338
10395
  hydrateAncestors(): IChangeSet<ContinueStatementState>;
@@ -10913,7 +10970,7 @@ export declare enum BaseValueDescriptorIds {
10913
10970
  entity: UserManagedEntityState;
10914
10971
  field: string;
10915
10972
  }>;
10916
- knownVersions: Map<string, EntityState> | null;
10973
+ knownVersions: Map<string, UserManagedEntityState> | null;
10917
10974
  activeVersion: boolean;
10918
10975
  initialized: boolean;
10919
10976
  startedInitialization: boolean;
@@ -10970,8 +11027,19 @@ export declare enum BaseValueDescriptorIds {
10970
11027
  subscribeToDependencies(): UserManagedEntityState;
10971
11028
  increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
10972
11029
  captureVersion(): DataTypeState;
11030
+ snapshot(): DataTypeState;
11031
+ /**
11032
+ * Given an instance of the same entity class type,
11033
+ * it applies the current entity state to it by copying all of its data and entity references
11034
+ *
11035
+ * @param {DataTypeState} snapshotInstance
11036
+ * @returns {DataTypeState} The snapshot instance with the current entity state applied to it
11037
+ */
11038
+ apply(snapshotInstance: DataTypeState): DataTypeState;
10973
11039
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<DataTypeState>;
10974
- restoreVersion(versionId: EntityVersion): Promise<IChangeSet<DataTypeState>>;
11040
+ restoreVersion(versionId: EntityVersion, options?: {
11041
+ skipIfSameVersion?: boolean;
11042
+ }): Promise<IChangeSet<DataTypeState>>;
10975
11043
  updateWithShallowTransfer(transfer: IDataTypeShallowTransfer, changeSet?: ChangeSet | null): DataTypeState;
10976
11044
  updateWithGenerationTarget(transfer: Partial<IDataTypeGenerationTarget>, changeSet?: ChangeSet | null): DataTypeState;
10977
11045
  hydrateAncestors(): IChangeSet<DataTypeState>;
@@ -11866,7 +11934,7 @@ export declare enum BaseValueDescriptorIds {
11866
11934
  entity: UserManagedEntityState;
11867
11935
  field: string;
11868
11936
  }>;
11869
- knownVersions: Map<string, EntityState> | null;
11937
+ knownVersions: Map<string, UserManagedEntityState> | null;
11870
11938
  activeVersion: boolean;
11871
11939
  initialized: boolean;
11872
11940
  startedInitialization: boolean;
@@ -11938,8 +12006,19 @@ export declare enum BaseValueDescriptorIds {
11938
12006
  subscribeToDependencies(): UserManagedEntityState;
11939
12007
  increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
11940
12008
  captureVersion(): DefinitionEntityState;
12009
+ snapshot(): DefinitionEntityState;
12010
+ /**
12011
+ * Given an instance of the same entity class type,
12012
+ * it applies the current entity state to it by copying all of its data and entity references
12013
+ *
12014
+ * @param {DefinitionEntityState} snapshotInstance
12015
+ * @returns {DefinitionEntityState} The snapshot instance with the current entity state applied to it
12016
+ */
12017
+ apply(snapshotInstance: DefinitionEntityState): DefinitionEntityState;
11941
12018
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<DefinitionEntityState>;
11942
- restoreVersion(versionId: EntityVersion): Promise<IChangeSet<DefinitionEntityState>>;
12019
+ restoreVersion(versionId: EntityVersion, options?: {
12020
+ skipIfSameVersion?: boolean;
12021
+ }): Promise<IChangeSet<DefinitionEntityState>>;
11943
12022
  updateWithShallowTransfer(transfer: IDefinitionEntityShallowTransfer, changeSet?: ChangeSet | null): DefinitionEntityState;
11944
12023
  updateWithGenerationTarget(transfer: Partial<IDefinitionEntityGenerationTarget>, changeSet?: ChangeSet | null): DefinitionEntityState;
11945
12024
  hydrateAncestors(): IChangeSet<DefinitionEntityState>;
@@ -14757,7 +14836,7 @@ export declare enum BaseValueDescriptorIds {
14757
14836
  entity: UserManagedEntityState;
14758
14837
  field: string;
14759
14838
  }>;
14760
- knownVersions: Map<string, EntityState> | null;
14839
+ knownVersions: Map<string, UserManagedEntityState> | null;
14761
14840
  activeVersion: boolean;
14762
14841
  initialized: boolean;
14763
14842
  startedInitialization: boolean;
@@ -14812,8 +14891,19 @@ export declare enum BaseValueDescriptorIds {
14812
14891
  subscribeToDependencies(): UserManagedEntityState;
14813
14892
  increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
14814
14893
  captureVersion(): FunctionCallState;
14894
+ snapshot(): FunctionCallState;
14895
+ /**
14896
+ * Given an instance of the same entity class type,
14897
+ * it applies the current entity state to it by copying all of its data and entity references
14898
+ *
14899
+ * @param {FunctionCallState} snapshotInstance
14900
+ * @returns {FunctionCallState} The snapshot instance with the current entity state applied to it
14901
+ */
14902
+ apply(snapshotInstance: FunctionCallState): FunctionCallState;
14815
14903
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<FunctionCallState>;
14816
- restoreVersion(versionId: EntityVersion): Promise<IChangeSet<FunctionCallState>>;
14904
+ restoreVersion(versionId: EntityVersion, options?: {
14905
+ skipIfSameVersion?: boolean;
14906
+ }): Promise<IChangeSet<FunctionCallState>>;
14817
14907
  updateWithShallowTransfer(transfer: IFunctionCallShallowTransfer, changeSet?: ChangeSet | null): FunctionCallState;
14818
14908
  updateWithGenerationTarget(transfer: Partial<IFunctionCallGenerationTarget>, changeSet?: ChangeSet | null): FunctionCallState;
14819
14909
  hydrateAncestors(): IChangeSet<FunctionCallState>;
@@ -14927,7 +15017,7 @@ export declare enum BaseValueDescriptorIds {
14927
15017
  entity: UserManagedEntityState;
14928
15018
  field: string;
14929
15019
  }>;
14930
- knownVersions: Map<string, EntityState> | null;
15020
+ knownVersions: Map<string, UserManagedEntityState> | null;
14931
15021
  activeVersion: boolean;
14932
15022
  initialized: boolean;
14933
15023
  startedInitialization: boolean;
@@ -14985,8 +15075,19 @@ export declare enum BaseValueDescriptorIds {
14985
15075
  subscribeToDependencies(): UserManagedEntityState;
14986
15076
  increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
14987
15077
  captureVersion(): FunctionDeclarationState;
15078
+ snapshot(): FunctionDeclarationState;
15079
+ /**
15080
+ * Given an instance of the same entity class type,
15081
+ * it applies the current entity state to it by copying all of its data and entity references
15082
+ *
15083
+ * @param {FunctionDeclarationState} snapshotInstance
15084
+ * @returns {FunctionDeclarationState} The snapshot instance with the current entity state applied to it
15085
+ */
15086
+ apply(snapshotInstance: FunctionDeclarationState): FunctionDeclarationState;
14988
15087
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<FunctionDeclarationState>;
14989
- restoreVersion(versionId: EntityVersion): Promise<IChangeSet<FunctionDeclarationState>>;
15088
+ restoreVersion(versionId: EntityVersion, options?: {
15089
+ skipIfSameVersion?: boolean;
15090
+ }): Promise<IChangeSet<FunctionDeclarationState>>;
14990
15091
  updateWithShallowTransfer(transfer: IFunctionDeclarationShallowTransfer, changeSet?: ChangeSet | null): FunctionDeclarationState;
14991
15092
  updateWithGenerationTarget(transfer: Partial<IFunctionDeclarationGenerationTarget>, changeSet?: ChangeSet | null): FunctionDeclarationState;
14992
15093
  hydrateAncestors(): IChangeSet<FunctionDeclarationState>;
@@ -20014,7 +20115,7 @@ export declare enum BaseValueDescriptorIds {
20014
20115
  entity: UserManagedEntityState;
20015
20116
  field: string;
20016
20117
  }>;
20017
- knownVersions: Map<string, EntityState> | null;
20118
+ knownVersions: Map<string, UserManagedEntityState> | null;
20018
20119
  activeVersion: boolean;
20019
20120
  initialized: boolean;
20020
20121
  startedInitialization: boolean;
@@ -20070,8 +20171,19 @@ export declare enum BaseValueDescriptorIds {
20070
20171
  subscribeToDependencies(): UserManagedEntityState;
20071
20172
  increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
20072
20173
  captureVersion(): GlobalEventState;
20174
+ snapshot(): GlobalEventState;
20175
+ /**
20176
+ * Given an instance of the same entity class type,
20177
+ * it applies the current entity state to it by copying all of its data and entity references
20178
+ *
20179
+ * @param {GlobalEventState} snapshotInstance
20180
+ * @returns {GlobalEventState} The snapshot instance with the current entity state applied to it
20181
+ */
20182
+ apply(snapshotInstance: GlobalEventState): GlobalEventState;
20073
20183
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<GlobalEventState>;
20074
- restoreVersion(versionId: EntityVersion): Promise<IChangeSet<GlobalEventState>>;
20184
+ restoreVersion(versionId: EntityVersion, options?: {
20185
+ skipIfSameVersion?: boolean;
20186
+ }): Promise<IChangeSet<GlobalEventState>>;
20075
20187
  updateWithShallowTransfer(transfer: IGlobalEventShallowTransfer, changeSet?: ChangeSet | null): GlobalEventState;
20076
20188
  updateWithGenerationTarget(transfer: Partial<IGlobalEventGenerationTarget>, changeSet?: ChangeSet | null): GlobalEventState;
20077
20189
  hydrateAncestors(): IChangeSet<GlobalEventState>;
@@ -22085,7 +22197,7 @@ export declare enum BaseValueDescriptorIds {
22085
22197
  fixable: boolean;
22086
22198
  requiresCallConnectionTo: CallableEntityState | null;
22087
22199
  requiresCallConnectionToFrom: CallerEntityState | null;
22088
- nonAutofixableReasons: (CanvasEntityConnectionDisabledReason.VariableDeclarationCannotBeMovedToLowerScopeBecauseInstancesUsage | CanvasEntityConnectionDisabledReason.CannotChangeScopeBecauseItCallsOtherEntities | CanvasEntityConnectionDisabledReason.CannotChangeScopeBecauseItIsCalledByOtherEntities)[];
22200
+ nonAutofixableReasons: (CanvasEntityConnectionDisabledReason.VariableDeclarationCannotBeMovedToLowerScopeBecauseInstancesUsage | CanvasEntityConnectionDisabledReason.CannotChangeScopeBecauseItCallsOtherEntities | CanvasEntityConnectionDisabledReason.CannotChangeScopeBecauseItIsAlreadyCalledByOtherEntitiesInDifferentScope)[];
22089
22201
  }
22090
22202
 
22091
22203
  export declare interface IIncompatibleParallelInCommonParentScope extends IScopeCompatibility {
@@ -22461,7 +22573,7 @@ export declare enum BaseValueDescriptorIds {
22461
22573
  entity: UserManagedEntityState;
22462
22574
  field: string;
22463
22575
  }>;
22464
- knownVersions: Map<string, EntityState> | null;
22576
+ knownVersions: Map<string, UserManagedEntityState> | null;
22465
22577
  activeVersion: boolean;
22466
22578
  initialized: boolean;
22467
22579
  startedInitialization: boolean;
@@ -22519,8 +22631,19 @@ export declare enum BaseValueDescriptorIds {
22519
22631
  subscribeToDependencies(): UserManagedEntityState;
22520
22632
  increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
22521
22633
  captureVersion(): InputMapState;
22634
+ snapshot(): InputMapState;
22635
+ /**
22636
+ * Given an instance of the same entity class type,
22637
+ * it applies the current entity state to it by copying all of its data and entity references
22638
+ *
22639
+ * @param {InputMapState} snapshotInstance
22640
+ * @returns {InputMapState} The snapshot instance with the current entity state applied to it
22641
+ */
22642
+ apply(snapshotInstance: InputMapState): InputMapState;
22522
22643
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<InputMapState>;
22523
- restoreVersion(versionId: EntityVersion): Promise<IChangeSet<InputMapState>>;
22644
+ restoreVersion(versionId: EntityVersion, options?: {
22645
+ skipIfSameVersion?: boolean;
22646
+ }): Promise<IChangeSet<InputMapState>>;
22524
22647
  updateWithShallowTransfer(transfer: IInputMapShallowTransfer, changeSet?: ChangeSet | null): InputMapState;
22525
22648
  updateWithGenerationTarget(transfer: Partial<IInputMapGenerationTarget>, changeSet?: ChangeSet | null): InputMapState;
22526
22649
  hydrateAncestors(): IChangeSet<InputMapState>;
@@ -22608,7 +22731,7 @@ export declare enum BaseValueDescriptorIds {
22608
22731
  entity: UserManagedEntityState;
22609
22732
  field: string;
22610
22733
  }>;
22611
- knownVersions: Map<string, EntityState> | null;
22734
+ knownVersions: Map<string, UserManagedEntityState> | null;
22612
22735
  activeVersion: boolean;
22613
22736
  initialized: boolean;
22614
22737
  startedInitialization: boolean;
@@ -22663,8 +22786,19 @@ export declare enum BaseValueDescriptorIds {
22663
22786
  subscribeToDependencies(): UserManagedEntityState;
22664
22787
  increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
22665
22788
  captureVersion(): InstalledProjectState;
22789
+ snapshot(): InstalledProjectState;
22790
+ /**
22791
+ * Given an instance of the same entity class type,
22792
+ * it applies the current entity state to it by copying all of its data and entity references
22793
+ *
22794
+ * @param {InstalledProjectState} snapshotInstance
22795
+ * @returns {InstalledProjectState} The snapshot instance with the current entity state applied to it
22796
+ */
22797
+ apply(snapshotInstance: InstalledProjectState): InstalledProjectState;
22666
22798
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<InstalledProjectState>;
22667
- restoreVersion(versionId: EntityVersion): Promise<IChangeSet<InstalledProjectState>>;
22799
+ restoreVersion(versionId: EntityVersion, options?: {
22800
+ skipIfSameVersion?: boolean;
22801
+ }): Promise<IChangeSet<InstalledProjectState>>;
22668
22802
  updateWithShallowTransfer(transfer: IInstalledProjectShallowTransfer, changeSet?: ChangeSet | null): InstalledProjectState;
22669
22803
  updateWithGenerationTarget(transfer: Partial<IInstalledProjectGenerationTarget>, changeSet?: ChangeSet | null): InstalledProjectState;
22670
22804
  hydrateAncestors(): IChangeSet<InstalledProjectState>;
@@ -22756,7 +22890,7 @@ export declare enum BaseValueDescriptorIds {
22756
22890
  entity: UserManagedEntityState;
22757
22891
  field: string;
22758
22892
  }>;
22759
- knownVersions: Map<string, EntityState> | null;
22893
+ knownVersions: Map<string, UserManagedEntityState> | null;
22760
22894
  activeVersion: boolean;
22761
22895
  initialized: boolean;
22762
22896
  startedInitialization: boolean;
@@ -22812,8 +22946,19 @@ export declare enum BaseValueDescriptorIds {
22812
22946
  subscribeToDependencies(): UserManagedEntityState;
22813
22947
  increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
22814
22948
  captureVersion(): InternalCallState;
22949
+ snapshot(): InternalCallState;
22950
+ /**
22951
+ * Given an instance of the same entity class type,
22952
+ * it applies the current entity state to it by copying all of its data and entity references
22953
+ *
22954
+ * @param {InternalCallState} snapshotInstance
22955
+ * @returns {InternalCallState} The snapshot instance with the current entity state applied to it
22956
+ */
22957
+ apply(snapshotInstance: InternalCallState): InternalCallState;
22815
22958
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<InternalCallState>;
22816
- restoreVersion(versionId: EntityVersion): Promise<IChangeSet<InternalCallState>>;
22959
+ restoreVersion(versionId: EntityVersion, options?: {
22960
+ skipIfSameVersion?: boolean;
22961
+ }): Promise<IChangeSet<InternalCallState>>;
22817
22962
  updateWithShallowTransfer(transfer: IInternalCallShallowTransfer, changeSet?: ChangeSet | null): InternalCallState;
22818
22963
  updateWithGenerationTarget(transfer: Partial<IInternalCallGenerationTarget>, changeSet?: ChangeSet | null): InternalCallState;
22819
22964
  hydrateAncestors(): IChangeSet<InternalCallState>;
@@ -24394,6 +24539,12 @@ export declare enum BaseValueDescriptorIds {
24394
24539
 
24395
24540
  export declare const keyValuePrototype: IPrimitiveEntity;
24396
24541
 
24542
+ export declare function layoutFromCallsFromGivenCaller(caller: CallerEntityState, changeSet: ChangeSet, options?: YieldOptions): Promise<void>;
24543
+
24544
+ export declare function layoutFullProjectCanvas(project: ProjectState, changeSet: ChangeSet, options?: YieldOptions): Promise<void>;
24545
+
24546
+ export declare function layoutOnlyModifiedEntryPointCanvas(project: ProjectState, changeSet: ChangeSet, options?: YieldOptions): Promise<void>;
24547
+
24397
24548
  export declare const lengthDefault: ILiteralValueTransfer;
24398
24549
 
24399
24550
  export declare const LIST_OPERATIONS: {
@@ -25114,7 +25265,7 @@ export declare enum BaseValueDescriptorIds {
25114
25265
  entity: UserManagedEntityState;
25115
25266
  field: string;
25116
25267
  }>;
25117
- knownVersions: Map<string, EntityState> | null;
25268
+ knownVersions: Map<string, UserManagedEntityState> | null;
25118
25269
  activeVersion: boolean;
25119
25270
  initialized: boolean;
25120
25271
  startedInitialization: boolean;
@@ -25173,8 +25324,19 @@ export declare enum BaseValueDescriptorIds {
25173
25324
  subscribeToDependencies(): UserManagedEntityState;
25174
25325
  increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
25175
25326
  captureVersion(): LiteralValueState;
25327
+ snapshot(): LiteralValueState;
25328
+ /**
25329
+ * Given an instance of the same entity class type,
25330
+ * it applies the current entity state to it by copying all of its data and entity references
25331
+ *
25332
+ * @param {LiteralValueState} snapshotInstance
25333
+ * @returns {LiteralValueState} The snapshot instance with the current entity state applied to it
25334
+ */
25335
+ apply(snapshotInstance: LiteralValueState): LiteralValueState;
25176
25336
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<LiteralValueState>;
25177
- restoreVersion(versionId: EntityVersion): Promise<IChangeSet<LiteralValueState>>;
25337
+ restoreVersion(versionId: EntityVersion, options?: {
25338
+ skipIfSameVersion?: boolean;
25339
+ }): Promise<IChangeSet<LiteralValueState>>;
25178
25340
  updateWithShallowTransfer(transfer: ILiteralValueShallowTransfer, changeSet?: ChangeSet | null): LiteralValueState;
25179
25341
  updateWithGenerationTarget(transfer: Partial<ILiteralValueGenerationTarget>, changeSet?: ChangeSet | null): LiteralValueState;
25180
25342
  hydrateAncestors(): IChangeSet<LiteralValueState>;
@@ -25277,7 +25439,7 @@ export declare enum BaseValueDescriptorIds {
25277
25439
  entity: UserManagedEntityState;
25278
25440
  field: string;
25279
25441
  }>;
25280
- knownVersions: Map<string, EntityState> | null;
25442
+ knownVersions: Map<string, UserManagedEntityState> | null;
25281
25443
  activeVersion: boolean;
25282
25444
  initialized: boolean;
25283
25445
  startedInitialization: boolean;
@@ -25338,8 +25500,19 @@ export declare enum BaseValueDescriptorIds {
25338
25500
  subscribeToDependencies(): UserManagedEntityState;
25339
25501
  increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
25340
25502
  captureVersion(): LoopState;
25503
+ snapshot(): LoopState;
25504
+ /**
25505
+ * Given an instance of the same entity class type,
25506
+ * it applies the current entity state to it by copying all of its data and entity references
25507
+ *
25508
+ * @param {LoopState} snapshotInstance
25509
+ * @returns {LoopState} The snapshot instance with the current entity state applied to it
25510
+ */
25511
+ apply(snapshotInstance: LoopState): LoopState;
25341
25512
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<LoopState>;
25342
- restoreVersion(versionId: EntityVersion): Promise<IChangeSet<LoopState>>;
25513
+ restoreVersion(versionId: EntityVersion, options?: {
25514
+ skipIfSameVersion?: boolean;
25515
+ }): Promise<IChangeSet<LoopState>>;
25343
25516
  updateWithShallowTransfer(transfer: ILoopShallowTransfer, changeSet?: ChangeSet | null): LoopState;
25344
25517
  updateWithGenerationTarget(transfer: Partial<ILoopGenerationTarget>, changeSet?: ChangeSet | null): LoopState;
25345
25518
  hydrateAncestors(): IChangeSet<LoopState>;
@@ -29551,7 +29724,7 @@ export declare enum BaseValueDescriptorIds {
29551
29724
  entity: UserManagedEntityState;
29552
29725
  field: string;
29553
29726
  }>;
29554
- knownVersions: Map<string, EntityState> | null;
29727
+ knownVersions: Map<string, UserManagedEntityState> | null;
29555
29728
  activeVersion: boolean;
29556
29729
  initialized: boolean;
29557
29730
  startedInitialization: boolean;
@@ -29606,8 +29779,19 @@ export declare enum BaseValueDescriptorIds {
29606
29779
  subscribeToDependencies(): UserManagedEntityState;
29607
29780
  increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
29608
29781
  captureVersion(): OperationState;
29782
+ snapshot(): OperationState;
29783
+ /**
29784
+ * Given an instance of the same entity class type,
29785
+ * it applies the current entity state to it by copying all of its data and entity references
29786
+ *
29787
+ * @param {OperationState} snapshotInstance
29788
+ * @returns {OperationState} The snapshot instance with the current entity state applied to it
29789
+ */
29790
+ apply(snapshotInstance: OperationState): OperationState;
29609
29791
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<OperationState>;
29610
- restoreVersion(versionId: EntityVersion): Promise<IChangeSet<OperationState>>;
29792
+ restoreVersion(versionId: EntityVersion, options?: {
29793
+ skipIfSameVersion?: boolean;
29794
+ }): Promise<IChangeSet<OperationState>>;
29611
29795
  updateWithShallowTransfer(transfer: IOperationShallowTransfer, changeSet?: ChangeSet | null): OperationState;
29612
29796
  updateWithGenerationTarget(transfer: Partial<IOperationGenerationTarget>, changeSet?: ChangeSet | null): OperationState;
29613
29797
  hydrateAncestors(): IChangeSet<OperationState>;
@@ -29740,7 +29924,7 @@ export declare enum BaseValueDescriptorIds {
29740
29924
  entity: UserManagedEntityState;
29741
29925
  field: string;
29742
29926
  }>;
29743
- knownVersions: Map<string, EntityState> | null;
29927
+ knownVersions: Map<string, UserManagedEntityState> | null;
29744
29928
  activeVersion: boolean;
29745
29929
  initialized: boolean;
29746
29930
  startedInitialization: boolean;
@@ -29799,8 +29983,19 @@ export declare enum BaseValueDescriptorIds {
29799
29983
  subscribeToDependencies(): UserManagedEntityState;
29800
29984
  increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
29801
29985
  captureVersion(): OutputMapState;
29986
+ snapshot(): OutputMapState;
29987
+ /**
29988
+ * Given an instance of the same entity class type,
29989
+ * it applies the current entity state to it by copying all of its data and entity references
29990
+ *
29991
+ * @param {OutputMapState} snapshotInstance
29992
+ * @returns {OutputMapState} The snapshot instance with the current entity state applied to it
29993
+ */
29994
+ apply(snapshotInstance: OutputMapState): OutputMapState;
29802
29995
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<OutputMapState>;
29803
- restoreVersion(versionId: EntityVersion): Promise<IChangeSet<OutputMapState>>;
29996
+ restoreVersion(versionId: EntityVersion, options?: {
29997
+ skipIfSameVersion?: boolean;
29998
+ }): Promise<IChangeSet<OutputMapState>>;
29804
29999
  updateWithShallowTransfer(transfer: IOutputMapShallowTransfer, changeSet?: ChangeSet | null): OutputMapState;
29805
30000
  updateWithGenerationTarget(transfer: Partial<IOutputMapGenerationTarget>, changeSet?: ChangeSet | null): OutputMapState;
29806
30001
  hydrateAncestors(): IChangeSet<OutputMapState>;
@@ -30298,7 +30493,7 @@ export declare enum BaseValueDescriptorIds {
30298
30493
  entity: UserManagedEntityState;
30299
30494
  field: string;
30300
30495
  }>;
30301
- knownVersions: Map<string, EntityState> | null;
30496
+ knownVersions: Map<string, UserManagedEntityState> | null;
30302
30497
  activeVersion: boolean;
30303
30498
  initialized: boolean;
30304
30499
  startedInitialization: boolean;
@@ -30393,8 +30588,19 @@ export declare enum BaseValueDescriptorIds {
30393
30588
  subscribeToDependencies(): UserManagedEntityState;
30394
30589
  increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
30395
30590
  captureVersion(): ProjectState;
30591
+ snapshot(): ProjectState;
30592
+ /**
30593
+ * Given an instance of the same entity class type,
30594
+ * it applies the current entity state to it by copying all of its data and entity references
30595
+ *
30596
+ * @param {ProjectState} snapshotInstance
30597
+ * @returns {ProjectState} The snapshot instance with the current entity state applied to it
30598
+ */
30599
+ apply(snapshotInstance: ProjectState): ProjectState;
30396
30600
  recursiveCaptureUpstreamVersions(_sharedTimestamp: null | string): IChangeSet<ProjectState>;
30397
- restoreVersion(versionId: EntityVersion): Promise<IChangeSet<ProjectState>>;
30601
+ restoreVersion(versionId: EntityVersion, options?: {
30602
+ skipIfSameVersion?: boolean;
30603
+ }): Promise<IChangeSet<ProjectState>>;
30398
30604
  updateWithShallowTransfer(transfer: IProjectShallowTransfer, changeSet?: ChangeSet | null): ProjectState;
30399
30605
  updateWithGenerationTarget(transfer: Partial<IProjectGenerationTarget>, changeSet?: ChangeSet | null): ProjectState;
30400
30606
  hydrateAncestors(): IChangeSet<ProjectState>;
@@ -30622,7 +30828,7 @@ export declare enum BaseValueDescriptorIds {
30622
30828
  entity: UserManagedEntityState;
30623
30829
  field: string;
30624
30830
  }>;
30625
- knownVersions: Map<string, EntityState> | null;
30831
+ knownVersions: Map<string, UserManagedEntityState> | null;
30626
30832
  activeVersion: boolean;
30627
30833
  initialized: boolean;
30628
30834
  startedInitialization: boolean;
@@ -30682,8 +30888,19 @@ export declare enum BaseValueDescriptorIds {
30682
30888
  subscribeToDependencies(): UserManagedEntityState;
30683
30889
  increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
30684
30890
  captureVersion(): PropertyState;
30891
+ snapshot(): PropertyState;
30892
+ /**
30893
+ * Given an instance of the same entity class type,
30894
+ * it applies the current entity state to it by copying all of its data and entity references
30895
+ *
30896
+ * @param {PropertyState} snapshotInstance
30897
+ * @returns {PropertyState} The snapshot instance with the current entity state applied to it
30898
+ */
30899
+ apply(snapshotInstance: PropertyState): PropertyState;
30685
30900
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<PropertyState>;
30686
- restoreVersion(versionId: EntityVersion): Promise<IChangeSet<PropertyState>>;
30901
+ restoreVersion(versionId: EntityVersion, options?: {
30902
+ skipIfSameVersion?: boolean;
30903
+ }): Promise<IChangeSet<PropertyState>>;
30687
30904
  updateWithShallowTransfer(transfer: IPropertyShallowTransfer, changeSet?: ChangeSet | null): PropertyState;
30688
30905
  updateWithGenerationTarget(transfer: Partial<IPropertyGenerationTarget>, changeSet?: ChangeSet | null): PropertyState;
30689
30906
  hydrateAncestors(): IChangeSet<PropertyState>;
@@ -31384,7 +31601,7 @@ export declare enum BaseValueDescriptorIds {
31384
31601
  entity: UserManagedEntityState;
31385
31602
  field: string;
31386
31603
  }>;
31387
- knownVersions: Map<string, EntityState> | null;
31604
+ knownVersions: Map<string, UserManagedEntityState> | null;
31388
31605
  activeVersion: boolean;
31389
31606
  initialized: boolean;
31390
31607
  startedInitialization: boolean;
@@ -31442,8 +31659,19 @@ export declare enum BaseValueDescriptorIds {
31442
31659
  subscribeToDependencies(): UserManagedEntityState;
31443
31660
  increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
31444
31661
  captureVersion(): ReturnStatementState;
31662
+ snapshot(): ReturnStatementState;
31663
+ /**
31664
+ * Given an instance of the same entity class type,
31665
+ * it applies the current entity state to it by copying all of its data and entity references
31666
+ *
31667
+ * @param {ReturnStatementState} snapshotInstance
31668
+ * @returns {ReturnStatementState} The snapshot instance with the current entity state applied to it
31669
+ */
31670
+ apply(snapshotInstance: ReturnStatementState): ReturnStatementState;
31445
31671
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<ReturnStatementState>;
31446
- restoreVersion(versionId: EntityVersion): Promise<IChangeSet<ReturnStatementState>>;
31672
+ restoreVersion(versionId: EntityVersion, options?: {
31673
+ skipIfSameVersion?: boolean;
31674
+ }): Promise<IChangeSet<ReturnStatementState>>;
31447
31675
  updateWithShallowTransfer(transfer: IReturnStatementShallowTransfer, changeSet?: ChangeSet | null): ReturnStatementState;
31448
31676
  updateWithGenerationTarget(transfer: Partial<IReturnStatementGenerationTarget>, changeSet?: ChangeSet | null): ReturnStatementState;
31449
31677
  hydrateAncestors(): IChangeSet<ReturnStatementState>;
@@ -31625,7 +31853,7 @@ export declare enum BaseValueDescriptorIds {
31625
31853
  entity: UserManagedEntityState;
31626
31854
  field: string;
31627
31855
  }>;
31628
- knownVersions: Map<string, EntityState> | null;
31856
+ knownVersions: Map<string, UserManagedEntityState> | null;
31629
31857
  activeVersion: boolean;
31630
31858
  initialized: boolean;
31631
31859
  startedInitialization: boolean;
@@ -31691,8 +31919,19 @@ export declare enum BaseValueDescriptorIds {
31691
31919
  subscribeToDependencies(): UserManagedEntityState;
31692
31920
  increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
31693
31921
  captureVersion(): SearchState;
31922
+ snapshot(): SearchState;
31923
+ /**
31924
+ * Given an instance of the same entity class type,
31925
+ * it applies the current entity state to it by copying all of its data and entity references
31926
+ *
31927
+ * @param {SearchState} snapshotInstance
31928
+ * @returns {SearchState} The snapshot instance with the current entity state applied to it
31929
+ */
31930
+ apply(snapshotInstance: SearchState): SearchState;
31694
31931
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<SearchState>;
31695
- restoreVersion(versionId: EntityVersion): Promise<IChangeSet<SearchState>>;
31932
+ restoreVersion(versionId: EntityVersion, options?: {
31933
+ skipIfSameVersion?: boolean;
31934
+ }): Promise<IChangeSet<SearchState>>;
31696
31935
  updateWithShallowTransfer(transfer: ISearchShallowTransfer, changeSet?: ChangeSet | null): SearchState;
31697
31936
  updateWithGenerationTarget(transfer: Partial<ISearchGenerationTarget>, changeSet?: ChangeSet | null): SearchState;
31698
31937
  hydrateAncestors(): IChangeSet<SearchState>;
@@ -33605,10 +33844,6 @@ export declare enum BaseValueDescriptorIds {
33605
33844
  */
33606
33845
  export declare function toCamelCase(str: string): string;
33607
33846
 
33608
- export declare function toCanvasFlatArray(project: ProjectState, changeSet: ChangeSet, options?: YieldOptions & {
33609
- forceAll?: boolean;
33610
- }): Promise<CanvasEntityState[]>;
33611
-
33612
33847
  export declare function toEditorContext(extensionsRegistry: ExtensionsRegistry, editor: IEditor): DefaultEditorContext;
33613
33848
 
33614
33849
  export declare function toEntityState(entity: string | EntityState | IGenericReference | Element_2 | ElementTransfer | ElementShallowTransfer | ElementGenerationTarget, project: ProjectState): EntityState | null;
@@ -33753,7 +33988,7 @@ export declare enum BaseValueDescriptorIds {
33753
33988
 
33754
33989
  export declare function translateLogicErrorCodeWithEntityName(error: EntityError<SharedEntityErrorCode | EntityInstanceErrorCode | HTTPStatucCodeValidationErrorCodes | UUIDV4ValidationErrorCodes | CommonStringValidationErrorCodes>): string;
33755
33990
 
33756
- export declare function traverseChangeSet(changeSet: ChangeSet, onAdded: (entity: UserManagedEntityState) => void, onUpdated: (entity: UserManagedEntityState) => void, onRemoved: (entity: UserManagedEntityState) => void): void;
33991
+ export declare function traverseChangeSet(changeSet: ChangeSet, onAdded: (entity: UserManagedEntityState) => void, onUpdated: (entity: UserManagedEntityState) => void, onRemoved: (entity: UserManagedEntityState) => void, onAffected: (entity: UserManagedEntityState) => void): void;
33757
33992
 
33758
33993
  export declare class Traverser {
33759
33994
  order: EntityId[];
@@ -34848,7 +35083,7 @@ export declare enum BaseValueDescriptorIds {
34848
35083
  entity: UserManagedEntityState;
34849
35084
  field: string;
34850
35085
  }>;
34851
- knownVersions: Map<string, EntityState> | null;
35086
+ knownVersions: Map<string, UserManagedEntityState> | null;
34852
35087
  activeVersion: boolean;
34853
35088
  initialized: boolean;
34854
35089
  startedInitialization: boolean;
@@ -34904,8 +35139,19 @@ export declare enum BaseValueDescriptorIds {
34904
35139
  subscribeToDependencies(): UserManagedEntityState;
34905
35140
  increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
34906
35141
  captureVersion(): ValueDescriptorState;
35142
+ snapshot(): ValueDescriptorState;
35143
+ /**
35144
+ * Given an instance of the same entity class type,
35145
+ * it applies the current entity state to it by copying all of its data and entity references
35146
+ *
35147
+ * @param {ValueDescriptorState} snapshotInstance
35148
+ * @returns {ValueDescriptorState} The snapshot instance with the current entity state applied to it
35149
+ */
35150
+ apply(snapshotInstance: ValueDescriptorState): ValueDescriptorState;
34907
35151
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<ValueDescriptorState>;
34908
- restoreVersion(versionId: EntityVersion): Promise<IChangeSet<ValueDescriptorState>>;
35152
+ restoreVersion(versionId: EntityVersion, options?: {
35153
+ skipIfSameVersion?: boolean;
35154
+ }): Promise<IChangeSet<ValueDescriptorState>>;
34909
35155
  updateWithShallowTransfer(transfer: IValueDescriptorShallowTransfer, changeSet?: ChangeSet | null): ValueDescriptorState;
34910
35156
  updateWithGenerationTarget(transfer: Partial<IValueDescriptorGenerationTarget>, changeSet?: ChangeSet | null): ValueDescriptorState;
34911
35157
  hydrateAncestors(): IChangeSet<ValueDescriptorState>;
@@ -35071,7 +35317,7 @@ export declare enum BaseValueDescriptorIds {
35071
35317
  entity: UserManagedEntityState;
35072
35318
  field: string;
35073
35319
  }>;
35074
- knownVersions: Map<string, EntityState> | null;
35320
+ knownVersions: Map<string, UserManagedEntityState> | null;
35075
35321
  activeVersion: boolean;
35076
35322
  initialized: boolean;
35077
35323
  startedInitialization: boolean;
@@ -35129,8 +35375,19 @@ export declare enum BaseValueDescriptorIds {
35129
35375
  subscribeToDependencies(): UserManagedEntityState;
35130
35376
  increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
35131
35377
  captureVersion(): VariableDeclarationState;
35378
+ snapshot(): VariableDeclarationState;
35379
+ /**
35380
+ * Given an instance of the same entity class type,
35381
+ * it applies the current entity state to it by copying all of its data and entity references
35382
+ *
35383
+ * @param {VariableDeclarationState} snapshotInstance
35384
+ * @returns {VariableDeclarationState} The snapshot instance with the current entity state applied to it
35385
+ */
35386
+ apply(snapshotInstance: VariableDeclarationState): VariableDeclarationState;
35132
35387
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<VariableDeclarationState>;
35133
- restoreVersion(versionId: EntityVersion): Promise<IChangeSet<VariableDeclarationState>>;
35388
+ restoreVersion(versionId: EntityVersion, options?: {
35389
+ skipIfSameVersion?: boolean;
35390
+ }): Promise<IChangeSet<VariableDeclarationState>>;
35134
35391
  updateWithShallowTransfer(transfer: IVariableDeclarationShallowTransfer, changeSet?: ChangeSet | null): VariableDeclarationState;
35135
35392
  updateWithGenerationTarget(transfer: Partial<IVariableDeclarationGenerationTarget>, changeSet?: ChangeSet | null): VariableDeclarationState;
35136
35393
  hydrateAncestors(): IChangeSet<VariableDeclarationState>;
@@ -35288,7 +35545,7 @@ export declare enum BaseValueDescriptorIds {
35288
35545
  entity: UserManagedEntityState;
35289
35546
  field: string;
35290
35547
  }>;
35291
- knownVersions: Map<string, EntityState> | null;
35548
+ knownVersions: Map<string, UserManagedEntityState> | null;
35292
35549
  activeVersion: boolean;
35293
35550
  initialized: boolean;
35294
35551
  startedInitialization: boolean;
@@ -35347,8 +35604,19 @@ export declare enum BaseValueDescriptorIds {
35347
35604
  subscribeToDependencies(): UserManagedEntityState;
35348
35605
  increaseVersion(sharedTimestamp: null | string): UserManagedEntityState;
35349
35606
  captureVersion(): VariableInstanceState;
35607
+ snapshot(): VariableInstanceState;
35608
+ /**
35609
+ * Given an instance of the same entity class type,
35610
+ * it applies the current entity state to it by copying all of its data and entity references
35611
+ *
35612
+ * @param {VariableInstanceState} snapshotInstance
35613
+ * @returns {VariableInstanceState} The snapshot instance with the current entity state applied to it
35614
+ */
35615
+ apply(snapshotInstance: VariableInstanceState): VariableInstanceState;
35350
35616
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<VariableInstanceState>;
35351
- restoreVersion(versionId: EntityVersion): Promise<IChangeSet<VariableInstanceState>>;
35617
+ restoreVersion(versionId: EntityVersion, options?: {
35618
+ skipIfSameVersion?: boolean;
35619
+ }): Promise<IChangeSet<VariableInstanceState>>;
35352
35620
  updateWithShallowTransfer(transfer: IVariableInstanceShallowTransfer, changeSet?: ChangeSet | null): VariableInstanceState;
35353
35621
  updateWithGenerationTarget(transfer: Partial<IVariableInstanceGenerationTarget>, changeSet?: ChangeSet | null): VariableInstanceState;
35354
35622
  hydrateAncestors(): IChangeSet<VariableInstanceState>;