@elyx-code/project-logic-tree 0.0.6723 → 0.0.6725

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -9768,16 +9768,46 @@ export declare function clampToRange(input: ISODateString, minISO: ISODateString
9768
9768
 
9769
9769
  export declare const clampToRangeOperation: IActionDescriptorTransfer;
9770
9770
 
9771
- export declare function cloneProject(project: ProjectState, { enrich, shallowErrors, }?: {
9771
+ export declare function cloneProject(project: ProjectState, { enrich, shallowErrors, ...other }?: {
9772
9772
  enrich: boolean;
9773
9773
  shallowErrors: boolean;
9774
- }, parentContext?: IProjectInstanceParentContext): ProjectState;
9774
+ resetVersionOptions?: {
9775
+ commonTimestamp?: string;
9776
+ author?: string;
9777
+ };
9778
+ onVisit?: (entity: UserManagedElementShallowTransfer) => void;
9779
+ }, parentContext?: IProjectInstanceParentContext): {
9780
+ project: ProjectState;
9781
+ maps: Map<EntityId, EntityId>;
9782
+ };
9783
+
9784
+ export declare function cloneProjectAsync(project: ProjectState, { enrich, shallowErrors, ...other }?: YieldOptions & {
9785
+ enrich: boolean;
9786
+ shallowErrors: boolean;
9787
+ resetVersionOptions?: {
9788
+ commonTimestamp?: string;
9789
+ author?: string;
9790
+ };
9791
+ onVisit?: (entity: UserManagedElementShallowTransfer) => Promise<void>;
9792
+ }, parentContext?: IProjectInstanceParentContext): Promise<{
9793
+ project: ProjectState;
9794
+ maps: Map<EntityId, EntityId>;
9795
+ }>;
9775
9796
 
9776
- export declare function cloneProjectAsync(project: ProjectState, { enrich, shallowErrors, ...other }?: {
9797
+ export declare function cloneToShallowRecordAsync(project: ProjectState, { enrich, shallowErrors, ...other }?: YieldOptions & {
9777
9798
  enrich: boolean;
9778
9799
  shallowErrors: boolean;
9779
- yieldEvery?: number;
9780
- }, parentContext?: IProjectInstanceParentContext): Promise<ProjectState>;
9800
+ resetVersionOptions?: {
9801
+ commonTimestamp?: string;
9802
+ author?: string;
9803
+ };
9804
+ onVisit?: (entity: UserManagedElementShallowTransfer) => Promise<void>;
9805
+ }): Promise<{
9806
+ project: IProjectShallowTransfer;
9807
+ record: Record<EntityId, UserManagedElementShallowTransfer>;
9808
+ order: EntityId[];
9809
+ maps: Map<EntityId, EntityId>;
9810
+ }>;
9781
9811
 
9782
9812
  export declare class CloudHostedCodebaseInfrastructureResource extends InfrastructureResource implements ICloudHostedCodebaseInfrastructureResource {
9783
9813
  resourceType: InfrastructureResourceType.CloudHostedCodebase;
@@ -13943,6 +13973,7 @@ export declare function flattenActionDescriptor(entity: IActionDescriptor | IAct
13943
13973
 
13944
13974
  export declare function flattenActionDescriptorAsync(entity: IActionDescriptor | IActionDescriptorTransfer | IActionDescriptorShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13945
13975
  ignoreBuiltInBaseEntities?: boolean;
13976
+ allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
13946
13977
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
13947
13978
 
13948
13979
  export declare function flattenArgumentDeclaration(entity: IArgumentDeclaration | IArgumentDeclarationTransfer | IArgumentDeclarationShallowTransfer, seenEntities?: Set<EntityId>, options?: {
@@ -13951,6 +13982,7 @@ export declare function flattenArgumentDeclaration(entity: IArgumentDeclaration
13951
13982
 
13952
13983
  export declare function flattenArgumentDeclarationAsync(entity: IArgumentDeclaration | IArgumentDeclarationTransfer | IArgumentDeclarationShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13953
13984
  ignoreBuiltInBaseEntities?: boolean;
13985
+ allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
13954
13986
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
13955
13987
 
13956
13988
  declare function flattenBinaryExprComparisonsToWhereStatements(whereExpr: BinaryExpr, parent: WhereStatement, scopeColumns: ColumnRef[], state: SearchStatementState, project: ProjectState, debug?: boolean): {
@@ -13964,6 +13996,7 @@ export declare function flattenBreakStatement(entity: IBreakStatement | IBreakSt
13964
13996
 
13965
13997
  export declare function flattenBreakStatementAsync(entity: IBreakStatement | IBreakStatementTransfer | IBreakStatementShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13966
13998
  ignoreBuiltInBaseEntities?: boolean;
13999
+ allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
13967
14000
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
13968
14001
 
13969
14002
  export declare function flattenBuiltInBaseEntity(entity: IBuiltInBaseEntity | IBuiltInBaseEntityTransfer | IBuiltInBaseEntityShallowTransfer, seenEntities?: Set<EntityId>, options?: {
@@ -13972,6 +14005,7 @@ export declare function flattenBuiltInBaseEntity(entity: IBuiltInBaseEntity | IB
13972
14005
 
13973
14006
  export declare function flattenBuiltInBaseEntityAsync(entity: IBuiltInBaseEntity | IBuiltInBaseEntityTransfer | IBuiltInBaseEntityShallowTransfer, seenEntities?: Set<EntityId>, options?: {
13974
14007
  ignoreBuiltInBaseEntities?: boolean;
14008
+ allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
13975
14009
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
13976
14010
 
13977
14011
  /**
@@ -14005,6 +14039,7 @@ export declare function flattenCondition(entity: ICondition | IConditionTransfer
14005
14039
 
14006
14040
  export declare function flattenConditionAsync(entity: ICondition | IConditionTransfer | IConditionShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14007
14041
  ignoreBuiltInBaseEntities?: boolean;
14042
+ allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
14008
14043
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14009
14044
 
14010
14045
  export declare function flattenContinueStatement(entity: IContinueStatement | IContinueStatementTransfer | IContinueStatementShallowTransfer, seenEntities?: Set<EntityId>, options?: {
@@ -14013,6 +14048,7 @@ export declare function flattenContinueStatement(entity: IContinueStatement | IC
14013
14048
 
14014
14049
  export declare function flattenContinueStatementAsync(entity: IContinueStatement | IContinueStatementTransfer | IContinueStatementShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14015
14050
  ignoreBuiltInBaseEntities?: boolean;
14051
+ allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
14016
14052
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14017
14053
 
14018
14054
  export declare function flattenDataType(entity: IDataType | IDataTypeTransfer | IDataTypeShallowTransfer, seenEntities?: Set<EntityId>, options?: {
@@ -14021,6 +14057,7 @@ export declare function flattenDataType(entity: IDataType | IDataTypeTransfer |
14021
14057
 
14022
14058
  export declare function flattenDataTypeAsync(entity: IDataType | IDataTypeTransfer | IDataTypeShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14023
14059
  ignoreBuiltInBaseEntities?: boolean;
14060
+ allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
14024
14061
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14025
14062
 
14026
14063
  export declare function flattenDefinitionEntity(entity: IDefinitionEntity | IDefinitionEntityTransfer | IDefinitionEntityShallowTransfer, seenEntities?: Set<EntityId>, options?: {
@@ -14029,6 +14066,7 @@ export declare function flattenDefinitionEntity(entity: IDefinitionEntity | IDef
14029
14066
 
14030
14067
  export declare function flattenDefinitionEntityAsync(entity: IDefinitionEntity | IDefinitionEntityTransfer | IDefinitionEntityShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14031
14068
  ignoreBuiltInBaseEntities?: boolean;
14069
+ allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
14032
14070
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14033
14071
 
14034
14072
  export declare function flattenDefinitionEntityExtensionAndImplementationTypes(entity: DefinitionEntityState): (BaseEntityNames | EntityType.DefinitionEntity)[];
@@ -14052,6 +14090,15 @@ export declare function flattenDefinitionEntityImplementionTypes(entity: Definit
14052
14090
  */
14053
14091
  export declare function flattenDerivedCanvasEntities(entity: CanvasEntityState, seenEntities?: Set<EntityId>): CanvasEntityState[];
14054
14092
 
14093
+ /**
14094
+ * Given an entity from the canvas, it returns a flat list of entities
14095
+ * representing the chain of entities on the right of the given one, that are related to it
14096
+ * Including relations of its relations, recursively
14097
+ *
14098
+ * @param entity The entity to flatten
14099
+ * @param seenEntities A set of already seen entities to avoid infinite loops
14100
+ * @returns {CanvasEntityState[]} A flat list of derived canvas entities
14101
+ */
14055
14102
  /**
14056
14103
  * Given an entity from the canvas, it returns a flat list of entities
14057
14104
  * representing the chain of entities on the right of the given one, that are related to it
@@ -14084,6 +14131,7 @@ export declare function flattenEntity(entity: Element_2 | ElementTransfer | Elem
14084
14131
  export declare function flattenEntityAsync(entity: Element_2 | ElementTransfer | ElementShallowTransfer | Reference, seenEntities?: Set<EntityId>, options?: {
14085
14132
  ignoreBuiltInBaseEntities?: boolean;
14086
14133
  diggestedBuiltInBaseEntitiesIds?: Set<EntityId>;
14134
+ allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
14087
14135
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14088
14136
 
14089
14137
  export declare function flattenFunctionCall(entity: IFunctionCall | IFunctionCallTransfer | IFunctionCallShallowTransfer, seenEntities?: Set<EntityId>, options?: {
@@ -14092,6 +14140,7 @@ export declare function flattenFunctionCall(entity: IFunctionCall | IFunctionCal
14092
14140
 
14093
14141
  export declare function flattenFunctionCallAsync(entity: IFunctionCall | IFunctionCallTransfer | IFunctionCallShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14094
14142
  ignoreBuiltInBaseEntities?: boolean;
14143
+ allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
14095
14144
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14096
14145
 
14097
14146
  export declare function flattenFunctionDeclaration(entity: IFunctionDeclaration | IFunctionDeclarationTransfer | IFunctionDeclarationShallowTransfer, seenEntities?: Set<EntityId>, options?: {
@@ -14100,6 +14149,7 @@ export declare function flattenFunctionDeclaration(entity: IFunctionDeclaration
14100
14149
 
14101
14150
  export declare function flattenFunctionDeclarationAsync(entity: IFunctionDeclaration | IFunctionDeclarationTransfer | IFunctionDeclarationShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14102
14151
  ignoreBuiltInBaseEntities?: boolean;
14152
+ allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
14103
14153
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14104
14154
 
14105
14155
  export declare function flattenGlobalEvent(entity: IGlobalEvent | IGlobalEventTransfer | IGlobalEventShallowTransfer, seenEntities?: Set<EntityId>, options?: {
@@ -14108,6 +14158,7 @@ export declare function flattenGlobalEvent(entity: IGlobalEvent | IGlobalEventTr
14108
14158
 
14109
14159
  export declare function flattenGlobalEventAsync(entity: IGlobalEvent | IGlobalEventTransfer | IGlobalEventShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14110
14160
  ignoreBuiltInBaseEntities?: boolean;
14161
+ allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
14111
14162
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14112
14163
 
14113
14164
  export declare function flattenInputMap(entity: IInputMap | IInputMapTransfer | IInputMapShallowTransfer, seenEntities?: Set<EntityId>, options?: {
@@ -14116,6 +14167,7 @@ export declare function flattenInputMap(entity: IInputMap | IInputMapTransfer |
14116
14167
 
14117
14168
  export declare function flattenInputMapAsync(entity: IInputMap | IInputMapTransfer | IInputMapShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14118
14169
  ignoreBuiltInBaseEntities?: boolean;
14170
+ allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
14119
14171
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14120
14172
 
14121
14173
  export declare function flattenInstalledProject(entity: IInstalledProject | IInstalledProjectTransfer | IInstalledProjectShallowTransfer, seenEntities?: Set<EntityId>, options?: {
@@ -14124,6 +14176,7 @@ export declare function flattenInstalledProject(entity: IInstalledProject | IIns
14124
14176
 
14125
14177
  export declare function flattenInstalledProjectAsync(entity: IInstalledProject | IInstalledProjectTransfer | IInstalledProjectShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14126
14178
  ignoreBuiltInBaseEntities?: boolean;
14179
+ allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
14127
14180
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14128
14181
 
14129
14182
  export declare function flattenInternalCall(entity: IInternalCall | IInternalCallTransfer | IInternalCallShallowTransfer, seenEntities?: Set<EntityId>, options?: {
@@ -14132,6 +14185,7 @@ export declare function flattenInternalCall(entity: IInternalCall | IInternalCal
14132
14185
 
14133
14186
  export declare function flattenInternalCallAsync(entity: IInternalCall | IInternalCallTransfer | IInternalCallShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14134
14187
  ignoreBuiltInBaseEntities?: boolean;
14188
+ allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
14135
14189
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14136
14190
 
14137
14191
  declare function flattenJoinExprIntoAggregationStatementsSync(joinExpr: JoinExpr, parentQuery: SelectStmt, scopeColumns: ColumnRef[], state: SearchStatementState, project: ProjectState, helpers?: {
@@ -14152,6 +14206,7 @@ export declare function flattenLiteralValue(entity: ILiteralValue | ILiteralValu
14152
14206
 
14153
14207
  export declare function flattenLiteralValueAsync(entity: ILiteralValue | ILiteralValueTransfer | ILiteralValueShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14154
14208
  ignoreBuiltInBaseEntities?: boolean;
14209
+ allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
14155
14210
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14156
14211
 
14157
14212
  export declare function flattenLoop(entity: ILoop | ILoopTransfer | ILoopShallowTransfer, seenEntities?: Set<EntityId>, options?: {
@@ -14160,6 +14215,7 @@ export declare function flattenLoop(entity: ILoop | ILoopTransfer | ILoopShallow
14160
14215
 
14161
14216
  export declare function flattenLoopAsync(entity: ILoop | ILoopTransfer | ILoopShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14162
14217
  ignoreBuiltInBaseEntities?: boolean;
14218
+ allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
14163
14219
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14164
14220
 
14165
14221
  export declare function flattenOneLevel(list: unknown): any[];
@@ -14170,6 +14226,7 @@ export declare function flattenOperation(entity: IOperation | IOperationTransfer
14170
14226
 
14171
14227
  export declare function flattenOperationAsync(entity: IOperation | IOperationTransfer | IOperationShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14172
14228
  ignoreBuiltInBaseEntities?: boolean;
14229
+ allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
14173
14230
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14174
14231
 
14175
14232
  export declare function flattenOutputMap(entity: IOutputMap | IOutputMapTransfer | IOutputMapShallowTransfer, seenEntities?: Set<EntityId>, options?: {
@@ -14178,6 +14235,7 @@ export declare function flattenOutputMap(entity: IOutputMap | IOutputMapTransfer
14178
14235
 
14179
14236
  export declare function flattenOutputMapAsync(entity: IOutputMap | IOutputMapTransfer | IOutputMapShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14180
14237
  ignoreBuiltInBaseEntities?: boolean;
14238
+ allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
14181
14239
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14182
14240
 
14183
14241
  export declare function flattenPrimitiveEntity(entity: IPrimitiveEntity | IPrimitiveEntityTransfer | IPrimitiveEntityShallowTransfer, seenEntities?: Set<EntityId>, options?: {
@@ -14186,6 +14244,7 @@ export declare function flattenPrimitiveEntity(entity: IPrimitiveEntity | IPrimi
14186
14244
 
14187
14245
  export declare function flattenPrimitiveEntityAsync(entity: IPrimitiveEntity | IPrimitiveEntityTransfer | IPrimitiveEntityShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14188
14246
  ignoreBuiltInBaseEntities?: boolean;
14247
+ allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
14189
14248
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14190
14249
 
14191
14250
  export declare function flattenProject(entity: IProject | IProjectTransfer | IProjectShallowTransfer, seenEntities?: Set<EntityId>, options?: {
@@ -14194,6 +14253,7 @@ export declare function flattenProject(entity: IProject | IProjectTransfer | IPr
14194
14253
 
14195
14254
  export declare function flattenProjectAsync(entity: IProject | IProjectTransfer | IProjectShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14196
14255
  ignoreBuiltInBaseEntities?: boolean;
14256
+ allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
14197
14257
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14198
14258
 
14199
14259
  export declare function flattenProjectElements(project: ProjectState): EntityState[];
@@ -14204,6 +14264,7 @@ export declare function flattenProperty(entity: IProperty | IPropertyTransfer |
14204
14264
 
14205
14265
  export declare function flattenPropertyAsync(entity: IProperty | IPropertyTransfer | IPropertyShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14206
14266
  ignoreBuiltInBaseEntities?: boolean;
14267
+ allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
14207
14268
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14208
14269
 
14209
14270
  export declare function flattenRelatedCallableElementsOnTheRight(entity: CanvasEntityState | ProjectState | InternalCallState, respectCollapse?: boolean): CallableEntityState[];
@@ -14224,6 +14285,7 @@ export declare function flattenReturnStatement(entity: IReturnStatement | IRetur
14224
14285
 
14225
14286
  export declare function flattenReturnStatementAsync(entity: IReturnStatement | IReturnStatementTransfer | IReturnStatementShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14226
14287
  ignoreBuiltInBaseEntities?: boolean;
14288
+ allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
14227
14289
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14228
14290
 
14229
14291
  export declare function flattenSearch(entity: ISearch | ISearchTransfer | ISearchShallowTransfer, seenEntities?: Set<EntityId>, options?: {
@@ -14232,6 +14294,7 @@ export declare function flattenSearch(entity: ISearch | ISearchTransfer | ISearc
14232
14294
 
14233
14295
  export declare function flattenSearchAsync(entity: ISearch | ISearchTransfer | ISearchShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14234
14296
  ignoreBuiltInBaseEntities?: boolean;
14297
+ allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
14235
14298
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14236
14299
 
14237
14300
  export declare function flattenValueDescriptor(entity: IValueDescriptor | IValueDescriptorTransfer | IValueDescriptorShallowTransfer, seenEntities?: Set<EntityId>, options?: {
@@ -14240,6 +14303,7 @@ export declare function flattenValueDescriptor(entity: IValueDescriptor | IValue
14240
14303
 
14241
14304
  export declare function flattenValueDescriptorAsync(entity: IValueDescriptor | IValueDescriptorTransfer | IValueDescriptorShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14242
14305
  ignoreBuiltInBaseEntities?: boolean;
14306
+ allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
14243
14307
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14244
14308
 
14245
14309
  export declare function flattenVariableDeclaration(entity: IVariableDeclaration | IVariableDeclarationTransfer | IVariableDeclarationShallowTransfer, seenEntities?: Set<EntityId>, options?: {
@@ -14248,6 +14312,7 @@ export declare function flattenVariableDeclaration(entity: IVariableDeclaration
14248
14312
 
14249
14313
  export declare function flattenVariableDeclarationAsync(entity: IVariableDeclaration | IVariableDeclarationTransfer | IVariableDeclarationShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14250
14314
  ignoreBuiltInBaseEntities?: boolean;
14315
+ allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
14251
14316
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14252
14317
 
14253
14318
  export declare function flattenVariableInstance(entity: IVariableInstance | IVariableInstanceTransfer | IVariableInstanceShallowTransfer, seenEntities?: Set<EntityId>, options?: {
@@ -14256,6 +14321,7 @@ export declare function flattenVariableInstance(entity: IVariableInstance | IVar
14256
14321
 
14257
14322
  export declare function flattenVariableInstanceAsync(entity: IVariableInstance | IVariableInstanceTransfer | IVariableInstanceShallowTransfer, seenEntities?: Set<EntityId>, options?: {
14258
14323
  ignoreBuiltInBaseEntities?: boolean;
14324
+ allKnownEntities?: Record<EntityId, Element_2 | ElementTransfer | ElementShallowTransfer>;
14259
14325
  } & YieldOptions): Promise<(Element_2 | ElementTransfer | ElementShallowTransfer)[]>;
14260
14326
 
14261
14327
  export declare function flattenVariableReads(variable: VariableState, seenVariables?: Set<string>): VariableState[];
@@ -18713,6 +18779,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
18713
18779
  ignoreBuiltInBaseEntities?: boolean;
18714
18780
  allBuiltInEntityIds?: Set<EntityId>;
18715
18781
  entityMaps?: Map<string, string>;
18782
+ debug?: boolean;
18716
18783
  }): {
18717
18784
  upstream: Record<EntityId, EntityVersion>;
18718
18785
  downstream: Record<EntityId, EntityVersion>;
@@ -21622,9 +21689,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
21622
21689
  allBuiltInIds?: Set<EntityId>;
21623
21690
  }, parentContext?: IProjectInstanceParentContext): ProjectState;
21624
21691
 
21625
- export declare function initBaseProjectEntityAsync(data: IProjectTransfer, options?: {
21692
+ export declare function initBaseProjectEntityAsync(data: IProjectTransfer, options?: YieldOptions & {
21626
21693
  shallowErrors?: boolean;
21627
- yieldEvery?: number;
21628
21694
  allBuiltInIds?: Set<EntityId>;
21629
21695
  }, parentContext?: IProjectInstanceParentContext): Promise<ProjectState>;
21630
21696
 
@@ -29522,6 +29588,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
29522
29588
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<ProjectState>;
29523
29589
  addSelfToProject(_changeSet: ChangeSet | null): IChangeSet<ProjectState>;
29524
29590
  get instancesList(): EntityState[];
29591
+ get builtInInstancesList(): EntityState[];
29525
29592
  isOperationDeclaration(entity: ActionDescriptorState): boolean;
29526
29593
  isGlobalEventActionDescriptor(entity: ActionDescriptorState): boolean;
29527
29594
  isLoopDeclaration(entity: ActionDescriptorState): boolean;
@@ -29638,6 +29705,18 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
29638
29705
  size: number;
29639
29706
  record: Record<EntityId, UserManagedElementShallowTransfer>;
29640
29707
  };
29708
+ toFullProjectTransferAsync(options?: YieldOptions & {
29709
+ seenEntityMaps?: Map<EntityId, EntityId>;
29710
+ resetVersionOptions?: {
29711
+ commonTimestamp?: string;
29712
+ author?: string;
29713
+ };
29714
+ onVisit?: (entity: UserManagedElementShallowTransfer) => Promise<void>;
29715
+ }): Promise<{
29716
+ order: EntityId[];
29717
+ size: number;
29718
+ record: Record<EntityId, UserManagedElementShallowTransfer>;
29719
+ }>;
29641
29720
  }
29642
29721
 
29643
29722
  export declare enum ProjectStateEvents {