@elyx-code/project-logic-tree 0.0.6414 → 0.0.6416

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
@@ -1798,6 +1798,8 @@ export declare function checkIsCallableEntityReachable(entity: CallableEntitySta
1798
1798
  }[];
1799
1799
  };
1800
1800
 
1801
+ export declare function checkIsCallerBranchDependentOnBranch(descendant: CallableEntityState, ancestor: CallerEntityState): boolean;
1802
+
1801
1803
  export declare function checkIsCanvasEntity(entity: EntityState): boolean;
1802
1804
 
1803
1805
  export declare function checkIsDefEntityInlineDeclaredForSearchOutputType(entity: DefinitionEntityState | null): boolean;
@@ -3883,6 +3885,11 @@ export declare function filterOutDuplicateErrors(errors: (EntityGenerationError
3883
3885
 
3884
3886
  export declare function findEntityFromKeys(keys: string[], project: ProjectState): DefinitionEntityState | null;
3885
3887
 
3888
+ export declare function findNextIndividualCommonCallerAncestorFromGiven(entityA: ExecutableEntityState, entityB: ExecutableEntityState, from: CallerEntityState, ignoreCommonAncestorsFromDifferentCallTypes?: boolean): {
3889
+ ancestor: CallerEntityState | null;
3890
+ callType: 'success' | 'error' | 'entry' | 'loop-body' | null;
3891
+ };
3892
+
3886
3893
  export declare function findReferencesToSelfInProject(element: EntityState): EntityState[];
3887
3894
 
3888
3895
  export declare function findReferenceToSelfInList(element: EntityState, elements: EntityState[]): EntityState[];
@@ -3911,7 +3918,7 @@ export declare function flattenBuiltInBaseEntity(entity: IBuiltInBaseEntity | IB
3911
3918
  export declare function flattenCallerAncestorsUntil(entity: CallableEntityState, until: CallerEntityState): {
3912
3919
  list: CallerEntityState[];
3913
3920
  last: CallerEntityState | null;
3914
- callType: 'success' | 'error' | 'entry' | null;
3921
+ callType: 'success' | 'error' | 'entry' | 'loop-body' | null;
3915
3922
  };
3916
3923
 
3917
3924
  export declare function flattenCalls(entities: CallableEntityState[]): CallableEntityState[];
@@ -3955,6 +3962,11 @@ export declare function flattenElementCalls(element: CallerEntityState): Callabl
3955
3962
 
3956
3963
  export declare function flattenElementCallsOnTheSameScope(element: CallerEntityState): CallableEntityState[];
3957
3964
 
3965
+ export declare function flattenElementCallsWithCallType(element: CallerEntityState): {
3966
+ callee: CallableEntityState;
3967
+ callType: 'success' | 'error' | 'entry' | 'loop-body';
3968
+ }[];
3969
+
3958
3970
  export declare function flattenEntity(entity: Element_2 | ElementTransfer | ElementShallowTransfer | Reference, seenEntities?: Set<EntityId>, options?: {
3959
3971
  ignoreBuiltInBaseEntities?: boolean;
3960
3972
  }): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
@@ -5460,14 +5472,6 @@ export declare function getColumnProperties(entity: DefinitionEntityState): Prop
5460
5472
 
5461
5473
  export declare function getCommonAncestor(entityA: EntityState, entityB: EntityState): EntityState | null;
5462
5474
 
5463
- export declare function getCommonAncestorOfAllCallers(entity: CallableEntityState): {
5464
- ancestor: CallerEntityState;
5465
- callType: 'success' | 'error' | 'entry';
5466
- } | {
5467
- ancestor: null;
5468
- callType: null;
5469
- };
5470
-
5471
5475
  export declare function getCommonChildren(entityA: CanvasEntityState, entityB: CanvasEntityState, seenEntities?: Set<EntityId>): CanvasEntityState[];
5472
5476
 
5473
5477
  export declare function getDatabaseEntities(project: ProjectState): DefinitionEntityState[];
@@ -6489,6 +6493,24 @@ export declare function getDraggablePlayableEntityTypeSchema(): z_2.ZodUnion<[z_
6489
6493
  type: import("../../..").EntityType.GlobalEvent;
6490
6494
  }>, z_2.ZodRecord<z_2.ZodString, z_2.ZodAny>]>]>]>;
6491
6495
 
6496
+ export declare function getEarliestCommonAncestorOfAllCallers(entity: CallableEntityState): {
6497
+ ancestor: CallerEntityState;
6498
+ callType: 'success' | 'error' | 'entry' | 'loop-body';
6499
+ } | {
6500
+ ancestor: null;
6501
+ callType: null;
6502
+ };
6503
+
6504
+ export declare function getEarliestCommonCallerAncestor(entityA: ExecutableEntityState, entityB: ExecutableEntityState, ignoreCommonAncestorsFromDifferentCallTypes?: boolean): {
6505
+ ancestor: CallerEntityState | null;
6506
+ callType: 'success' | 'error' | 'entry' | 'loop-body' | 'same-entity' | null;
6507
+ };
6508
+
6509
+ export declare function getEarliestIndividualCommonCallerAncestor(entityA: ExecutableEntityState, entityB: ExecutableEntityState, ignoreCommonAncestorsFromDifferentCallTypes?: boolean): {
6510
+ ancestor: CallerEntityState | null;
6511
+ callType: 'success' | 'error' | 'entry' | 'loop-body' | 'same-entity' | null;
6512
+ };
6513
+
6492
6514
  export declare function getEntitiesCreatedSinceInitialization(projectState: ProjectState, preInitDate: string): UserManagedEntityState[];
6493
6515
 
6494
6516
  export declare function getEntitiesToPropagateValuesTo(entity: EntityWithValueState, project: ProjectState, seenInRecursion?: Set<EntityId>): EntityWithValueState[];
@@ -15335,6 +15357,8 @@ export declare function toPascalCase(str: string): string;
15335
15357
 
15336
15358
  export declare function toProjectLogicContext(extensionsRegistry: ExtensionsRegistry, project: ProjectState): DefaultProjectLogicContext;
15337
15359
 
15360
+ export declare function toSnakeCase(str: string): string;
15361
+
15338
15362
  export declare function transitionProjectVersion(from: ChangeSet | 'initial', to: ChangeSet | 'initial', project: ProjectState): IProjectVersionTransitionConfig;
15339
15363
 
15340
15364
  export declare function translateLogicErrorCode(error: EntityError): string;