@elyx-code/project-logic-tree 0.0.6784 → 0.0.6786

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 +241 -211
  2. package/dist/index.d.ts +96 -35
  3. package/dist/index.js +51591 -49689
  4. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -139,6 +139,7 @@ export declare class ActionDescriptorState extends UserManagedVersionedState imp
139
139
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<ActionDescriptorState>;
140
140
  restoreVersion(versionId: EntityVersion): Promise<IChangeSet<ActionDescriptorState>>;
141
141
  updateWithShallowTransfer(transfer: IActionDescriptorShallowTransfer, changeSet?: ChangeSet | null): ActionDescriptorState;
142
+ updateWithGenerationTarget(transfer: Partial<IActionDescriptorGenerationTarget>, changeSet?: ChangeSet | null): ActionDescriptorState;
142
143
  hydrateAncestors(): IChangeSet<ActionDescriptorState>;
143
144
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<ActionDescriptorState>;
144
145
  addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<ActionDescriptorState>;
@@ -585,6 +586,7 @@ export declare class ArgumentDeclarationState extends UserManagedVersionedState
585
586
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<ArgumentDeclarationState>;
586
587
  restoreVersion(versionId: EntityVersion): Promise<IChangeSet<ArgumentDeclarationState>>;
587
588
  updateWithShallowTransfer(transfer: IArgumentDeclarationShallowTransfer, changeSet?: ChangeSet | null): ArgumentDeclarationState;
589
+ updateWithGenerationTarget(transfer: Partial<IArgumentDeclarationGenerationTarget>, changeSet?: ChangeSet | null): ArgumentDeclarationState;
588
590
  hydrateAncestors(): IChangeSet<ArgumentDeclarationState>;
589
591
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<ArgumentDeclarationState>;
590
592
  addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<ArgumentDeclarationState>;
@@ -868,6 +870,7 @@ export declare class BreakStatementState extends UserManagedVersionedState imple
868
870
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<BreakStatementState>;
869
871
  restoreVersion(versionId: EntityVersion): Promise<IChangeSet<BreakStatementState>>;
870
872
  updateWithShallowTransfer(transfer: IBreakStatementShallowTransfer, changeSet?: ChangeSet | null): BreakStatementState;
873
+ updateWithGenerationTarget(transfer: Partial<IBreakStatementGenerationTarget>, changeSet?: ChangeSet | null): BreakStatementState;
871
874
  hydrateAncestors(): IChangeSet<BreakStatementState>;
872
875
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<BreakStatementState>;
873
876
  addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<BreakStatementState>;
@@ -10123,6 +10126,7 @@ export declare class ConditionState extends UserManagedVersionedState implements
10123
10126
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<ConditionState>;
10124
10127
  restoreVersion(versionId: EntityVersion): Promise<IChangeSet<ConditionState>>;
10125
10128
  updateWithShallowTransfer(transfer: IConditionShallowTransfer, changeSet?: ChangeSet | null): ConditionState;
10129
+ updateWithGenerationTarget(transfer: IConditionGenerationTarget, changeSet?: ChangeSet | null): ConditionState;
10126
10130
  hydrateAncestors(): IChangeSet<ConditionState>;
10127
10131
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<ConditionState>;
10128
10132
  addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<ConditionState>;
@@ -10302,6 +10306,7 @@ export declare class ContinueStatementState extends UserManagedVersionedState im
10302
10306
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<ContinueStatementState>;
10303
10307
  restoreVersion(versionId: EntityVersion): Promise<IChangeSet<ContinueStatementState>>;
10304
10308
  updateWithShallowTransfer(transfer: IContinueStatementShallowTransfer, changeSet?: ChangeSet | null): ContinueStatementState;
10309
+ updateWithGenerationTarget(transfer: Partial<IContinueStatementGenerationTarget>, changeSet?: ChangeSet | null): ContinueStatementState;
10305
10310
  hydrateAncestors(): IChangeSet<ContinueStatementState>;
10306
10311
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<ContinueStatementState>;
10307
10312
  addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<ContinueStatementState>;
@@ -10930,6 +10935,7 @@ export declare class DataTypeState extends UserManagedVersionedState implements
10930
10935
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<DataTypeState>;
10931
10936
  restoreVersion(versionId: EntityVersion): Promise<IChangeSet<DataTypeState>>;
10932
10937
  updateWithShallowTransfer(transfer: IDataTypeShallowTransfer, changeSet?: ChangeSet | null): DataTypeState;
10938
+ updateWithGenerationTarget(transfer: Partial<IDataTypeGenerationTarget>, changeSet?: ChangeSet | null): DataTypeState;
10933
10939
  hydrateAncestors(): IChangeSet<DataTypeState>;
10934
10940
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<DataTypeState>;
10935
10941
  addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<DataTypeState>;
@@ -11898,6 +11904,7 @@ export declare class DefinitionEntityState extends UserManagedVersionedState imp
11898
11904
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<DefinitionEntityState>;
11899
11905
  restoreVersion(versionId: EntityVersion): Promise<IChangeSet<DefinitionEntityState>>;
11900
11906
  updateWithShallowTransfer(transfer: IDefinitionEntityShallowTransfer, changeSet?: ChangeSet | null): DefinitionEntityState;
11907
+ updateWithGenerationTarget(transfer: Partial<IDefinitionEntityGenerationTarget>, changeSet?: ChangeSet | null): DefinitionEntityState;
11901
11908
  hydrateAncestors(): IChangeSet<DefinitionEntityState>;
11902
11909
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<DefinitionEntityState>;
11903
11910
  addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<DefinitionEntityState>;
@@ -12063,6 +12070,8 @@ export declare const downSqlRowTransformerEntityMethodVoidDataType: IDataTypeTra
12063
12070
 
12064
12071
  export declare const downSqlRowTransformerEntityMethodVoidDataTypeParentRef: IDataTypeReference;
12065
12072
 
12073
+ export declare const DOWNSTREAM_PROPERTIES_EXPLANATION = "Some fields on an entity point to a downstream/nested entity, which means it is a child of the current entity in the tree. Downstream properties are owned and managed by the downstream entity itself, and cannot be modified directly on the upstream entity.\nFor example, a 'function-declaration' entity has a list of downstream references to its 'argument-declaration' in the property called 'inputs'. To edit the relationship, or modify any of the inputs, the input itself must be targeted directly.";
12074
+
12066
12075
  export declare const DRAGGABLE_CALLABLE_TYPES: EntityType[];
12067
12076
 
12068
12077
  export declare const DRAGGABLE_CALLER_TYPES: EntityType[];
@@ -12199,6 +12208,8 @@ export declare enum DynamicValueTypes {
12199
12208
 
12200
12209
  export declare const EDITABLE_PERSISTANCE_REPOSITORY_DEFAULTS: IEditableEntityPersistanceRepository;
12201
12210
 
12211
+ export declare const EDITING_PROPERTIES_EXPLANATION = "Entities of any type have two types of fields: primitive meta-data fields, and relational fields that point to other entities.\nRelational fields can be upstream or downstream.\nOnly upstream fields are owned and can be edited by the entity itself.\nDownstream fields are owned and edited by the downstream entity that points to this entity.\nFor example, many entities have a 'parent' field that points to their parent entity. Once the parent is set, they show up in one of the downstream fields of the parent entity, like 'inputs' or 'body'.";
12212
+
12202
12213
  export declare class EfimeralValueStore implements IValueStoreClient {
12203
12214
  initialized: boolean;
12204
12215
  id: string;
@@ -12443,6 +12454,22 @@ export declare enum EntityErrorSeverity {
12443
12454
  Warning = "warning"
12444
12455
  }
12445
12456
 
12457
+ export declare enum EntityFieldType {
12458
+ MUTABLE_BASE_PROPERTIES = "MUTABLE_BASE_PROPERTIES",
12459
+ INMUTABLE_BASE_PROPERTIES = "INMUTABLE_BASE_PROPERTIES",
12460
+ BASE_PROPERTIES = "BASE_PROPERTIES",
12461
+ MUTABLE_META_PROPERTIES = "MUTABLE_META_PROPERTIES",
12462
+ INMUTABLE_META_PROPERTIES = "INMUTABLE_META_PROPERTIES",
12463
+ META_PROPERTIES = "META_PROPERTIES",
12464
+ MUTABLE_UPSTREAM_PROPERTIES = "MUTABLE_UPSTREAM_PROPERTIES",
12465
+ INMUTABLE_UPSTREAM_PROPERTIES = "INMUTABLE_UPSTREAM_PROPERTIES",
12466
+ UPSTREAM_PROPERTIES = "UPSTREAM_PROPERTIES",
12467
+ MUTABLE_DOWNSTREAM_PROPERTIES = "MUTABLE_DOWNSTREAM_PROPERTIES",
12468
+ INMUTABLE_DOWNSTREAM_PROPERTIES = "INMUTABLE_DOWNSTREAM_PROPERTIES",
12469
+ DOWNSTREAM_PROPERTIES = "DOWNSTREAM_PROPERTIES",
12470
+ PROPERTIES = "PROPERTIES"
12471
+ }
12472
+
12446
12473
  export declare class EntityGenerationError implements IEntityGenerationError {
12447
12474
  id: string;
12448
12475
  message: string;
@@ -14090,6 +14117,8 @@ export declare enum ExternalIntegrationRootProviders {
14090
14117
  'zuora' = "zuora"
14091
14118
  }
14092
14119
 
14120
+ export declare function fieldTypeToReadableString(fieldType: EntityFieldType): string;
14121
+
14093
14122
  export declare const filesIntegrationBuiltInActionDescriptorTransfer: IActionDescriptorTransfer;
14094
14123
 
14095
14124
  /**
@@ -14109,6 +14138,8 @@ export declare function filterOutDuplicateErrorsAsync(errors: (EntityGenerationE
14109
14138
 
14110
14139
  export declare function findEntityFromKeys(keys: string[], project: ProjectState): DefinitionEntityState | null;
14111
14140
 
14141
+ export declare function findEntityTypeWithFieldName(fieldName: string): Map<EntityType, EntityFieldType>;
14142
+
14112
14143
  export declare function findNextAvailableName(baseName: string, allEntitiesOfType: EntityWithNames[]): string;
14113
14144
 
14114
14145
  export declare function findNextCombinedSingleCallerAncestor(targetA: CallableEntityState | CallerEntityState, targetB: CallableEntityState | CallerEntityState, from?: CallerEntityState): {
@@ -14613,6 +14644,8 @@ export declare function fromZodParseToEntityGenerationErrors(data: Partial<Eleme
14613
14644
  type: EntityType;
14614
14645
  }, result: SafeParseReturnType<any, any>): EntityGenerationError[];
14615
14646
 
14647
+ export declare const FULL_EDITING_PROPERTIES_EXPLANATION = "Entities of any type have two types of fields: primitive meta-data fields, and relational fields that point to other entities.\nRelational fields can be upstream or downstream.\nOnly upstream fields are owned and can be edited by the entity itself.\nDownstream fields are owned and edited by the downstream entity that points to this entity.\nFor example, many entities have a 'parent' field that points to their parent entity. Once the parent is set, they show up in one of the downstream fields of the parent entity, like 'inputs' or 'body'.\n\nSome meta-data properties of entities can be changed after the initial creation, like 'name', 'description', etc...\nThese are called mutable meta-properties.\n\nSome meta-data properties of entities cannot be changed after the initial creation, like 'type', 'id', etc...\nThese are called inmutable meta-properties.\n\nSome upstream relational properties of entities cannot be changed after the initial creation, like 'parent' for some entities, etc...\nThese are called inmutable upstream properties.\n\nSome fields on an entity point to a downstream/nested entity, which means it is a child of the current entity in the tree. Downstream properties are owned and managed by the downstream entity itself, and cannot be modified directly on the upstream entity.\nFor example, a 'function-declaration' entity has a list of downstream references to its 'argument-declaration' in the property called 'inputs'. To edit the relationship, or modify any of the inputs, the input itself must be targeted directly.";
14648
+
14616
14649
  export declare enum FunctionCallDependencyField {
14617
14650
  FunctionCallParentField = "function-call-parent-field",
14618
14651
  FunctionCallDeclarationField = "function-call-declaration-field"
@@ -14702,6 +14735,7 @@ export declare class FunctionCallState extends UserManagedVersionedState impleme
14702
14735
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<FunctionCallState>;
14703
14736
  restoreVersion(versionId: EntityVersion): Promise<IChangeSet<FunctionCallState>>;
14704
14737
  updateWithShallowTransfer(transfer: IFunctionCallShallowTransfer, changeSet?: ChangeSet | null): FunctionCallState;
14738
+ updateWithGenerationTarget(transfer: Partial<IFunctionCallGenerationTarget>, changeSet?: ChangeSet | null): FunctionCallState;
14705
14739
  hydrateAncestors(): IChangeSet<FunctionCallState>;
14706
14740
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<FunctionCallState>;
14707
14741
  addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<FunctionCallState>;
@@ -14874,6 +14908,7 @@ export declare class FunctionDeclarationState extends UserManagedVersionedState
14874
14908
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<FunctionDeclarationState>;
14875
14909
  restoreVersion(versionId: EntityVersion): Promise<IChangeSet<FunctionDeclarationState>>;
14876
14910
  updateWithShallowTransfer(transfer: IFunctionDeclarationShallowTransfer, changeSet?: ChangeSet | null): FunctionDeclarationState;
14911
+ updateWithGenerationTarget(transfer: Partial<IFunctionDeclarationGenerationTarget>, changeSet?: ChangeSet | null): FunctionDeclarationState;
14877
14912
  hydrateAncestors(): IChangeSet<FunctionDeclarationState>;
14878
14913
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<FunctionDeclarationState>;
14879
14914
  addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<FunctionDeclarationState>;
@@ -15181,7 +15216,14 @@ export declare enum GenerationExplanationIds {
15181
15216
  AllLoopActionDescriptors = "all-loop-action-descriptors-explanation",
15182
15217
  AllGlobalEventsActionDescriptors = "all-global-events-action-descriptors-explanation",
15183
15218
  DefinitionEntities = "definition-entities-explanation",
15184
- PropertyImplementationAndExtensionAutoEnrichment = "property-implementation-and-extension-auto-enrichment-explanation"
15219
+ PropertyImplementationAndExtensionAutoEnrichment = "property-implementation-and-extension-auto-enrichment-explanation",
15220
+ ActualOwnersOfMisplacedProperties = "actual-owners-of-misplaced-properties-explanation",
15221
+ EditingProperties = "editing-properties-explanation",
15222
+ MutableMetaProperties = "mutable-meta-properties-explanation",
15223
+ InmutableMetaProperties = "inmutable-meta-properties-explanation",
15224
+ InmutableUpstreamProperties = "inmutable-upstream-properties-explanation",
15225
+ DownstreamProperties = "downstream-properties-explanation",
15226
+ FullEditingProperties = "full-editing-properties-explanation"
15185
15227
  }
15186
15228
 
15187
15229
  /** lodash-like get(obj, path, defaultValue) with precise "missing" detection */
@@ -19707,6 +19749,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
19707
19749
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<GlobalEventState>;
19708
19750
  restoreVersion(versionId: EntityVersion): Promise<IChangeSet<GlobalEventState>>;
19709
19751
  updateWithShallowTransfer(transfer: IGlobalEventShallowTransfer, changeSet?: ChangeSet | null): GlobalEventState;
19752
+ updateWithGenerationTarget(transfer: Partial<IGlobalEventGenerationTarget>, changeSet?: ChangeSet | null): GlobalEventState;
19710
19753
  hydrateAncestors(): IChangeSet<GlobalEventState>;
19711
19754
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<GlobalEventState>;
19712
19755
  addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<GlobalEventState>;
@@ -21099,8 +21142,6 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
21099
21142
  id: EntityId;
21100
21143
  type: EntityType.Condition;
21101
21144
  declaration: EntityId;
21102
- andChildrenGroup?: EntityId[];
21103
- orChildrenGroup?: EntityId[];
21104
21145
  calledBySuccess: EntityId[];
21105
21146
  calledByError: EntityId[];
21106
21147
  calledByEntry: EntityId[];
@@ -21459,6 +21500,12 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
21459
21500
  cascade?: boolean;
21460
21501
  }
21461
21502
 
21503
+ export declare interface IEntityPrintoutOptions {
21504
+ singleLine?: boolean;
21505
+ indentSize?: number;
21506
+ singleLineSpacer?: string;
21507
+ }
21508
+
21462
21509
  export declare interface IEntityRecursionOptions {
21463
21510
  seenEntityMaps?: Map<EntityId, EntityId>;
21464
21511
  seenEntities?: Set<EntityId>;
@@ -21532,7 +21579,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
21532
21579
  catchesError: boolean;
21533
21580
  }
21534
21581
 
21535
- export declare interface IFunctionCallGenerationTarget extends IBaseActionCallGenerationTarget, IUserManagedGenericBase {
21582
+ export declare interface IFunctionCallGenerationTarget extends IBaseActionCallGenerationTarget, IChildEntityGenerationTarget, ICalledEntityGenerationTarget {
21536
21583
  type: EntityType.FunctionCall;
21537
21584
  declaration: EntityId;
21538
21585
  catchesError?: boolean;
@@ -22010,6 +22057,10 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
22010
22057
  yieldEvery?: number;
22011
22058
  }, parentContext?: IProjectInstanceParentContext): Promise<ProjectState>;
22012
22059
 
22060
+ export declare const INMUTABLE_META_PROPERTIES_EXPLANATION = "Some meta-data properties of entities cannot be changed after the initial creation, like 'type', 'id', etc...\nThese are called inmutable meta-properties.";
22061
+
22062
+ export declare const INMUTABLE_UPSTREAM_PROPERTIES_EXPLANATION = "Some upstream relational properties of entities cannot be changed after the initial creation, like 'parent' for some entities, etc...\nThese are called inmutable upstream properties.";
22063
+
22013
22064
  export declare enum InputMapDependencyField {
22014
22065
  Declaration = "declaration",
22015
22066
  DataTypeEntity = "data-type-entity"
@@ -22102,6 +22153,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
22102
22153
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<InputMapState>;
22103
22154
  restoreVersion(versionId: EntityVersion): Promise<IChangeSet<InputMapState>>;
22104
22155
  updateWithShallowTransfer(transfer: IInputMapShallowTransfer, changeSet?: ChangeSet | null): InputMapState;
22156
+ updateWithGenerationTarget(transfer: Partial<IInputMapGenerationTarget>, changeSet?: ChangeSet | null): InputMapState;
22105
22157
  hydrateAncestors(): IChangeSet<InputMapState>;
22106
22158
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<InputMapState>;
22107
22159
  addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<InputMapState>;
@@ -22245,6 +22297,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
22245
22297
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<InstalledProjectState>;
22246
22298
  restoreVersion(versionId: EntityVersion): Promise<IChangeSet<InstalledProjectState>>;
22247
22299
  updateWithShallowTransfer(transfer: IInstalledProjectShallowTransfer, changeSet?: ChangeSet | null): InstalledProjectState;
22300
+ updateWithGenerationTarget(transfer: Partial<IInstalledProjectGenerationTarget>, changeSet?: ChangeSet | null): InstalledProjectState;
22248
22301
  hydrateAncestors(): IChangeSet<InstalledProjectState>;
22249
22302
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<InstalledProjectState>;
22250
22303
  addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<InstalledProjectState>;
@@ -22389,6 +22442,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
22389
22442
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<InternalCallState>;
22390
22443
  restoreVersion(versionId: EntityVersion): Promise<IChangeSet<InternalCallState>>;
22391
22444
  updateWithShallowTransfer(transfer: IInternalCallShallowTransfer, changeSet?: ChangeSet | null): InternalCallState;
22445
+ updateWithGenerationTarget(transfer: Partial<IInternalCallGenerationTarget>, changeSet?: ChangeSet | null): InternalCallState;
22392
22446
  hydrateAncestors(): IChangeSet<InternalCallState>;
22393
22447
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<InternalCallState>;
22394
22448
  addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<InternalCallState>;
@@ -22706,6 +22760,19 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
22706
22760
  autogeneration: UUIDAutogenerationOptions | null;
22707
22761
  }
22708
22762
 
22763
+ export declare interface IPrintEntityOptions {
22764
+ nested?: boolean;
22765
+ omitTopLevelType?: boolean;
22766
+ firstLabel?: 'name' | 'id';
22767
+ omitIdsFor?: EntityType[];
22768
+ omitTypesFor?: EntityType[];
22769
+ metadataIndent?: number;
22770
+ ownMetadataIndent?: number;
22771
+ omitFields?: EntityPrintingFields[];
22772
+ onlyFields?: EntityPrintingFields[];
22773
+ onPrefix?: (entity: EntityState) => string;
22774
+ }
22775
+
22709
22776
  export declare interface IProject extends IProjectTransfer {
22710
22777
  projects: IInstalledProject[];
22711
22778
  entities: IDefinitionEntity[];
@@ -24731,6 +24798,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
24731
24798
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<LiteralValueState>;
24732
24799
  restoreVersion(versionId: EntityVersion): Promise<IChangeSet<LiteralValueState>>;
24733
24800
  updateWithShallowTransfer(transfer: ILiteralValueShallowTransfer, changeSet?: ChangeSet | null): LiteralValueState;
24801
+ updateWithGenerationTarget(transfer: Partial<ILiteralValueGenerationTarget>, changeSet?: ChangeSet | null): LiteralValueState;
24734
24802
  hydrateAncestors(): IChangeSet<LiteralValueState>;
24735
24803
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<LiteralValueState>;
24736
24804
  addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<LiteralValueState>;
@@ -24895,6 +24963,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
24895
24963
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<LoopState>;
24896
24964
  restoreVersion(versionId: EntityVersion): Promise<IChangeSet<LoopState>>;
24897
24965
  updateWithShallowTransfer(transfer: ILoopShallowTransfer, changeSet?: ChangeSet | null): LoopState;
24966
+ updateWithGenerationTarget(transfer: Partial<ILoopGenerationTarget>, changeSet?: ChangeSet | null): LoopState;
24898
24967
  hydrateAncestors(): IChangeSet<LoopState>;
24899
24968
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<LoopState>;
24900
24969
  addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<LoopState>;
@@ -25248,6 +25317,8 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
25248
25317
 
25249
25318
  export declare function modifyEditableAndDeletableDownstreamEntitiesFromGiven(entity: UserManagedEntityState, changeSet: ChangeSet, newValue: boolean, seenEntities?: Set<string>): void;
25250
25319
 
25320
+ export declare const MUTABLE_META_PROPERTIES_EXPLANATION = "Some meta-data properties of entities can be changed after the initial creation, like 'name', 'description', etc...\nThese are called mutable meta-properties.";
25321
+
25251
25322
  export declare const NESTED_PROPERTY_HEIGHT = 26;
25252
25323
 
25253
25324
  export declare function nestedObjectKeyValueEquals(obj: unknown, path: unknown, expected: unknown): boolean;
@@ -29162,6 +29233,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
29162
29233
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<OperationState>;
29163
29234
  restoreVersion(versionId: EntityVersion): Promise<IChangeSet<OperationState>>;
29164
29235
  updateWithShallowTransfer(transfer: IOperationShallowTransfer, changeSet?: ChangeSet | null): OperationState;
29236
+ updateWithGenerationTarget(transfer: Partial<IOperationGenerationTarget>, changeSet?: ChangeSet | null): OperationState;
29165
29237
  hydrateAncestors(): IChangeSet<OperationState>;
29166
29238
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<OperationState>;
29167
29239
  addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<OperationState>;
@@ -29352,6 +29424,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
29352
29424
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<OutputMapState>;
29353
29425
  restoreVersion(versionId: EntityVersion): Promise<IChangeSet<OutputMapState>>;
29354
29426
  updateWithShallowTransfer(transfer: IOutputMapShallowTransfer, changeSet?: ChangeSet | null): OutputMapState;
29427
+ updateWithGenerationTarget(transfer: Partial<IOutputMapGenerationTarget>, changeSet?: ChangeSet | null): OutputMapState;
29355
29428
  hydrateAncestors(): IChangeSet<OutputMapState>;
29356
29429
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<OutputMapState>;
29357
29430
  addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<OutputMapState>;
@@ -29790,49 +29863,22 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
29790
29863
  Untyped = "untyped"
29791
29864
  }
29792
29865
 
29793
- export declare function printDataType(dataType: DataTypeState | null, options?: {
29794
- nested?: boolean;
29795
- omitTopLevelType?: boolean;
29796
- firstLabel?: 'name' | 'id';
29797
- omitIdsFor?: EntityType[];
29798
- omitTypesFor?: EntityType[];
29799
- metadataIndent?: number;
29800
- ownMetadataIndent?: number;
29801
- omitFields?: EntityPrintingFields[];
29802
- onlyFields?: EntityPrintingFields[];
29803
- }): {
29866
+ export declare function printDataType(dataType: DataTypeState | null, options?: IPrintEntityOptions): {
29804
29867
  lines: {
29805
29868
  text: string;
29806
29869
  indentLevel: number;
29807
29870
  }[];
29808
29871
  };
29809
29872
 
29810
- export declare function printEntity(entity: EntityState, options?: {
29811
- nested?: boolean;
29812
- omitTopLevelType?: boolean;
29813
- firstLabel?: 'name' | 'id';
29814
- omitIdsFor?: EntityType[];
29815
- omitTypesFor?: EntityType[];
29816
- metadataIndent?: number;
29817
- ownMetadataIndent?: number;
29818
- omitFields?: EntityPrintingFields[];
29819
- onlyFields?: EntityPrintingFields[];
29820
- }): {
29873
+ export declare function printEntity(entity: EntityState, options?: IPrintEntityOptions): {
29821
29874
  lines: {
29822
29875
  text: string;
29823
29876
  indentLevel: number;
29824
29877
  }[];
29825
29878
  };
29826
29879
 
29827
- export declare function printEntityList(entities: EntityState[], options?: {
29828
- nested?: boolean;
29829
- omitTopLevelType?: boolean;
29830
- firstLabel?: 'name' | 'id';
29831
- omitIdsFor?: EntityType[];
29832
- omitTypesFor?: EntityType[];
29880
+ export declare function printEntityList(entities: EntityState[], options?: IPrintEntityOptions, printoutOptions?: IEntityPrintoutOptions & {
29833
29881
  newLinesBetweenItems?: number;
29834
- omitFields?: EntityPrintingFields[];
29835
- onlyFields?: EntityPrintingFields[];
29836
29882
  }): string;
29837
29883
 
29838
29884
  export declare function printGenerationTarget(entity: ElementGenerationTarget, project: ProjectState): string;
@@ -29995,6 +30041,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
29995
30041
  recursiveCaptureUpstreamVersions(_sharedTimestamp: null | string): IChangeSet<ProjectState>;
29996
30042
  restoreVersion(versionId: EntityVersion): Promise<IChangeSet<ProjectState>>;
29997
30043
  updateWithShallowTransfer(transfer: IProjectShallowTransfer, changeSet?: ChangeSet | null): ProjectState;
30044
+ updateWithGenerationTarget(transfer: Partial<IProjectGenerationTarget>, changeSet?: ChangeSet | null): ProjectState;
29998
30045
  hydrateAncestors(): IChangeSet<ProjectState>;
29999
30046
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<ProjectState>;
30000
30047
  addSelfToProject(_changeSet: ChangeSet | null): IChangeSet<ProjectState>;
@@ -30283,6 +30330,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
30283
30330
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<PropertyState>;
30284
30331
  restoreVersion(versionId: EntityVersion): Promise<IChangeSet<PropertyState>>;
30285
30332
  updateWithShallowTransfer(transfer: IPropertyShallowTransfer, changeSet?: ChangeSet | null): PropertyState;
30333
+ updateWithGenerationTarget(transfer: Partial<IPropertyGenerationTarget>, changeSet?: ChangeSet | null): PropertyState;
30286
30334
  hydrateAncestors(): IChangeSet<PropertyState>;
30287
30335
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<PropertyState>;
30288
30336
  addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<PropertyState>;
@@ -31034,6 +31082,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
31034
31082
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<ReturnStatementState>;
31035
31083
  restoreVersion(versionId: EntityVersion): Promise<IChangeSet<ReturnStatementState>>;
31036
31084
  updateWithShallowTransfer(transfer: IReturnStatementShallowTransfer, changeSet?: ChangeSet | null): ReturnStatementState;
31085
+ updateWithGenerationTarget(transfer: Partial<IReturnStatementGenerationTarget>, changeSet?: ChangeSet | null): ReturnStatementState;
31037
31086
  hydrateAncestors(): IChangeSet<ReturnStatementState>;
31038
31087
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<ReturnStatementState>;
31039
31088
  addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<ReturnStatementState>;
@@ -31279,6 +31328,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
31279
31328
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<SearchState>;
31280
31329
  restoreVersion(versionId: EntityVersion): Promise<IChangeSet<SearchState>>;
31281
31330
  updateWithShallowTransfer(transfer: ISearchShallowTransfer, changeSet?: ChangeSet | null): SearchState;
31331
+ updateWithGenerationTarget(transfer: Partial<ISearchGenerationTarget>, changeSet?: ChangeSet | null): SearchState;
31282
31332
  hydrateAncestors(): IChangeSet<SearchState>;
31283
31333
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<SearchState>;
31284
31334
  addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<SearchState>;
@@ -32284,6 +32334,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
32284
32334
  SetStandaloneParent = "set-standalone-parent",
32285
32335
  AfterAllChildrenInitialized = "after-all-children-initialized",
32286
32336
  UpdateWithShallowTransfer = "update-with-shallow-transfer",
32337
+ UpdateWithGenerationTarget = "update-with-generation-target",
32287
32338
  RemoveFromParent = "remove-from-parent",
32288
32339
  RemoveEntity = "remove-entity",
32289
32340
  RestoreEntity = "restore-entity",
@@ -33573,6 +33624,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
33573
33624
  abstract recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<UserManagedEntityState>;
33574
33625
  abstract restoreVersion(version: EntityVersion): Promise<IChangeSet<UserManagedEntityState>>;
33575
33626
  abstract updateWithShallowTransfer(transfer: UserManagedElementShallowTransfer, changeSet: ChangeSet | null): UserManagedEntityState;
33627
+ abstract updateWithGenerationTarget(target: Partial<ElementGenerationTarget>, changeSet: ChangeSet | null): UserManagedEntityState;
33576
33628
  abstract hydrateAncestors(): IChangeSet<UserManagedEntityState>;
33577
33629
  abstract addSelfToProject(changeSet: ChangeSet | null): IChangeSet<UserManagedEntityState>;
33578
33630
  abstract afterAllChildrenInitialized(changeSet: ChangeSet | null): IChangeSet<UserManagedEntityState>;
@@ -33860,7 +33912,13 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
33860
33912
  modifiedData: ElementGenerationTarget | null;
33861
33913
  };
33862
33914
 
33863
- export declare function validateGenerationTarget(data: ElementGenerationTarget, _: ProjectState): EntityGenerationError[];
33915
+ export declare function validateGenerationTarget(data: ElementGenerationTarget, _: ProjectState): {
33916
+ errors: EntityGenerationError[];
33917
+ explanations: {
33918
+ id: GenerationExplanationIds;
33919
+ message: string;
33920
+ }[];
33921
+ };
33864
33922
 
33865
33923
  export declare function validateGenerationUpdate(generatedPayload: Partial<UserManagedElementGenerationTarget>, entityToUpdate: UserManagedEntityState): {
33866
33924
  errors: EntityGenerationError[];
@@ -34486,6 +34544,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
34486
34544
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<ValueDescriptorState>;
34487
34545
  restoreVersion(versionId: EntityVersion): Promise<IChangeSet<ValueDescriptorState>>;
34488
34546
  updateWithShallowTransfer(transfer: IValueDescriptorShallowTransfer, changeSet?: ChangeSet | null): ValueDescriptorState;
34547
+ updateWithGenerationTarget(transfer: Partial<IValueDescriptorGenerationTarget>, changeSet?: ChangeSet | null): ValueDescriptorState;
34489
34548
  hydrateAncestors(): IChangeSet<ValueDescriptorState>;
34490
34549
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<ValueDescriptorState>;
34491
34550
  addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<ValueDescriptorState>;
@@ -34710,6 +34769,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
34710
34769
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<VariableDeclarationState>;
34711
34770
  restoreVersion(versionId: EntityVersion): Promise<IChangeSet<VariableDeclarationState>>;
34712
34771
  updateWithShallowTransfer(transfer: IVariableDeclarationShallowTransfer, changeSet?: ChangeSet | null): VariableDeclarationState;
34772
+ updateWithGenerationTarget(transfer: Partial<IVariableDeclarationGenerationTarget>, changeSet?: ChangeSet | null): VariableDeclarationState;
34713
34773
  hydrateAncestors(): IChangeSet<VariableDeclarationState>;
34714
34774
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<VariableDeclarationState>;
34715
34775
  addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<VariableDeclarationState>;
@@ -34927,6 +34987,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
34927
34987
  recursiveCaptureUpstreamVersions(sharedTimestamp: null | string): IChangeSet<VariableInstanceState>;
34928
34988
  restoreVersion(versionId: EntityVersion): Promise<IChangeSet<VariableInstanceState>>;
34929
34989
  updateWithShallowTransfer(transfer: IVariableInstanceShallowTransfer, changeSet?: ChangeSet | null): VariableInstanceState;
34990
+ updateWithGenerationTarget(transfer: Partial<IVariableInstanceGenerationTarget>, changeSet?: ChangeSet | null): VariableInstanceState;
34930
34991
  hydrateAncestors(): IChangeSet<VariableInstanceState>;
34931
34992
  afterAllChildrenInitialized(changeSet?: ChangeSet | null): IChangeSet<VariableInstanceState>;
34932
34993
  addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<VariableInstanceState>;