@elyx-code/project-logic-tree 0.0.6464 → 0.0.6466
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 +73 -14
- package/dist/index.js +16125 -16229
- package/dist/index.umd.cjs +171 -171
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1870,6 +1870,17 @@ export declare function checkAreDefinitionEntitiesCompatibleAsDataType(sourceDef
|
|
|
1870
1870
|
|
|
1871
1871
|
export declare function checkArePropertiesCompatibleAsDataType(sourceProperty: PropertyState, targetProperty: PropertyState): boolean;
|
|
1872
1872
|
|
|
1873
|
+
/**
|
|
1874
|
+
* Recursively checks if all branches of a target entity come from the same caller
|
|
1875
|
+
* This is useful to determine if the caller entity can be considered a single caller ancestor of the given target entity.
|
|
1876
|
+
* @param {CallableEntityState} target The target entity to check
|
|
1877
|
+
* @param {CallerEntityState} caller The caller entity to check against
|
|
1878
|
+
* @returns {boolean} True if all branches of the target entity come from the same caller
|
|
1879
|
+
**/
|
|
1880
|
+
export declare function checkEveryCallerComesFromCaller(target: CallableEntityState, caller: CallerEntityState): boolean;
|
|
1881
|
+
|
|
1882
|
+
export declare function checkEveryCallerReachesOrIsAncestor(entity: CallableEntityState, ancestor: CallerEntityState): boolean;
|
|
1883
|
+
|
|
1873
1884
|
export declare function checkExtendsBaseEntity(entity: DefinitionEntityState | BuiltInBaseEntityState, baseEntityName: BaseEntityNames): boolean;
|
|
1874
1885
|
|
|
1875
1886
|
export declare function checkHasBaseEntity(entity: DefinitionEntityState | BuiltInBaseEntityState, baseEntityName: BaseEntityNames): boolean;
|
|
@@ -1929,6 +1940,8 @@ export declare function checkIsRequiredValue(entity: EntityWithValueState | Prop
|
|
|
1929
1940
|
|
|
1930
1941
|
export declare function checkParentEntryPointRequiresTermination(self: PassThroughCallableEntityState): boolean;
|
|
1931
1942
|
|
|
1943
|
+
export declare function checkReachesOrIsTarget(entity: ExecutableEntityState, target: CallableEntityState): 'success' | 'error' | 'entry' | 'loop-body' | 'same-entity' | null;
|
|
1944
|
+
|
|
1932
1945
|
export declare function checkScopeCompatibility(entityA: EntityState | Element_2 | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, entityB: EntityState | Element_2 | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, project: ProjectState): ScopeCompatibility;
|
|
1933
1946
|
|
|
1934
1947
|
export declare function checkShouldInputOrOutputBePartOfFinalVariableObjectValue(entity: InputMapState | OutputMapState): boolean;
|
|
@@ -3986,13 +3999,20 @@ export declare enum ExtentionPriority {
|
|
|
3986
3999
|
Low = 10
|
|
3987
4000
|
}
|
|
3988
4001
|
|
|
4002
|
+
/**
|
|
4003
|
+
* Remove any callers that are callers of other callers
|
|
4004
|
+
* @param {CallerEntityState[]} callers
|
|
4005
|
+
* @returns {CallerEntityState[]}
|
|
4006
|
+
*/
|
|
4007
|
+
export declare function filterOutDependentCallers(callers: CallerEntityState[]): CallerEntityState[];
|
|
4008
|
+
|
|
3989
4009
|
export declare function filterOutDuplicateEntities(entities: (EntityState | Element_2 | ElementTransfer | ElementShallowTransfer | ElementGenerationTarget)[]): (Element_2 | ElementTransfer | ElementShallowTransfer | ElementGenerationTarget | EntityState)[];
|
|
3990
4010
|
|
|
3991
4011
|
export declare function filterOutDuplicateErrors(errors: (EntityGenerationError | EntityError)[]): EntityGenerationError[] | EntityError[];
|
|
3992
4012
|
|
|
3993
4013
|
export declare function findEntityFromKeys(keys: string[], project: ProjectState): DefinitionEntityState | null;
|
|
3994
4014
|
|
|
3995
|
-
export declare function
|
|
4015
|
+
export declare function findNextSingleCallerAncestor(target: CallableEntityState, from?: CallerEntityState): {
|
|
3996
4016
|
ancestor: CallerEntityState | null;
|
|
3997
4017
|
callType: 'success' | 'error' | 'entry' | 'loop-body' | null;
|
|
3998
4018
|
};
|
|
@@ -4022,6 +4042,14 @@ export declare function flattenBuiltInBaseEntity(entity: IBuiltInBaseEntity | IB
|
|
|
4022
4042
|
ignoreBuiltInBaseEntities?: boolean;
|
|
4023
4043
|
}): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
|
|
4024
4044
|
|
|
4045
|
+
/**
|
|
4046
|
+
* Returns a flat list of caller entities that are ancestors in the call chain of the given entity
|
|
4047
|
+
* Recursively checks until we have found the 'until' entity, as an ancestor or reached the root project entity
|
|
4048
|
+
*
|
|
4049
|
+
* @param {CallableEntityState} entity The entity to flatten the caller ancestors for
|
|
4050
|
+
* @param {CallerEntityState} until The entity to stop flattening at
|
|
4051
|
+
* @return {{ list: CallerEntityState[], last: CallerEntityState | null, callType: 'success' | 'error' | 'entry' | 'loop-body' | null }} An object containing the list of caller ancestors, the last found ancestor, and the call type
|
|
4052
|
+
**/
|
|
4025
4053
|
export declare function flattenCallerAncestorsUntil(entity: CallableEntityState, until: CallerEntityState): {
|
|
4026
4054
|
list: CallerEntityState[];
|
|
4027
4055
|
last: CallerEntityState | null;
|
|
@@ -5049,6 +5077,20 @@ export declare function getCallableEntityTypeSchema(): z_2.ZodUnion<[z_2.ZodUnio
|
|
|
5049
5077
|
|
|
5050
5078
|
export declare function getCalledBy(entity: CallableEntityState | CallableEntity | CallableEntityTransfer | CallableEntityShallowTransfer): (CallerEntityState | CallerEntity | CallerEntityTransfer)[];
|
|
5051
5079
|
|
|
5080
|
+
/**
|
|
5081
|
+
* In order to compile the call-chain of entities,
|
|
5082
|
+
* often we need to check if the entity is called by parallel callers
|
|
5083
|
+
* Meaning that it either has to be compiled after all of them,
|
|
5084
|
+
* Or in the case of a condition caller, it cannot be compiled inside the block of either caller conditions
|
|
5085
|
+
|
|
5086
|
+
* @param {CallableEntityState} entity The entity to check for parallel callers
|
|
5087
|
+
* @returns {{ ancestor: PassThroughCallableEntityState, callType: ('success'|'error') }[]} An array of independent parallel conditions direct calls
|
|
5088
|
+
*/
|
|
5089
|
+
export declare function getCalledByParallelCallers(entity: CallableEntityState): {
|
|
5090
|
+
ancestor: PassThroughCallableEntityState;
|
|
5091
|
+
callType: 'success' | 'error';
|
|
5092
|
+
}[];
|
|
5093
|
+
|
|
5052
5094
|
export declare function getCallerEntityReferenceSchema(): z_2.ZodUnion<[z_2.ZodUnion<[z_2.ZodObject<{
|
|
5053
5095
|
id: z_2.ZodString;
|
|
5054
5096
|
type: z_2.ZodLiteral<import("../../..").EntityType.GenericReference>;
|
|
@@ -6598,24 +6640,11 @@ export declare function getDraggablePlayableEntityTypeSchema(): z_2.ZodUnion<[z_
|
|
|
6598
6640
|
type: import("../../..").EntityType.GlobalEvent;
|
|
6599
6641
|
}>, z_2.ZodRecord<z_2.ZodString, z_2.ZodAny>]>]>]>;
|
|
6600
6642
|
|
|
6601
|
-
export declare function getEarliestCommonAncestorOfAllCallers(entity: CallableEntityState, ignoreEarlierChainedCallers?: boolean): {
|
|
6602
|
-
ancestor: CallerEntityState;
|
|
6603
|
-
callType: 'success' | 'error' | 'entry' | 'loop-body';
|
|
6604
|
-
} | {
|
|
6605
|
-
ancestor: null;
|
|
6606
|
-
callType: null;
|
|
6607
|
-
};
|
|
6608
|
-
|
|
6609
6643
|
export declare function getEarliestCommonCallerAncestor(entityA: ExecutableEntityState, entityB: ExecutableEntityState, ignoreCommonAncestorsFromDifferentCallTypes?: boolean): {
|
|
6610
6644
|
ancestor: CallerEntityState | null;
|
|
6611
6645
|
callType: 'success' | 'error' | 'entry' | 'loop-body' | 'same-entity' | null;
|
|
6612
6646
|
};
|
|
6613
6647
|
|
|
6614
|
-
export declare function getEarliestIndividualCommonCallerAncestor(entityA: ExecutableEntityState, entityB: ExecutableEntityState, ignoreCommonAncestorsFromDifferentCallTypes?: boolean): {
|
|
6615
|
-
ancestor: CallerEntityState | null;
|
|
6616
|
-
callType: 'success' | 'error' | 'entry' | 'loop-body' | 'same-entity' | null;
|
|
6617
|
-
};
|
|
6618
|
-
|
|
6619
6648
|
export declare function getEarliestSingleCallerAncestorOfValueWriterAndItsValueReaders(entity: VariableDeclarationState | OutputMapState): {
|
|
6620
6649
|
ancestor: CallerEntityState | null;
|
|
6621
6650
|
callType: 'success' | 'error' | 'entry' | 'loop-body' | null;
|
|
@@ -7873,6 +7902,15 @@ export declare function getOnlyRelevantErrorsForPublication(project: ProjectStat
|
|
|
7873
7902
|
|
|
7874
7903
|
declare function getOrderByClauseFromSelectStatement(selectStatement: SelectStmt): OrderByClause | null;
|
|
7875
7904
|
|
|
7905
|
+
/**
|
|
7906
|
+
* Recursively finds the parent callable entity of the given entity.
|
|
7907
|
+
* If the entity is a condition, it will traverse up to find the first callable entity.
|
|
7908
|
+
* If the entity is already a callable entity, it will return itself.
|
|
7909
|
+
* If no callable entity is found, it returns null.
|
|
7910
|
+
|
|
7911
|
+
* @param {EntityState} entity The entity to start searching from.
|
|
7912
|
+
* @returns {CallableEntityState | null} The parent callable entity or null if not found.
|
|
7913
|
+
**/
|
|
7876
7914
|
export declare function getParentCallableEntity(entity: EntityState): CallableEntityState | null;
|
|
7877
7915
|
|
|
7878
7916
|
export declare function getParentCallerEntity(entity: EntityState): CallerEntityState | null;
|
|
@@ -7891,6 +7929,13 @@ export declare function getParentCanvasEntityFromTransfer(entity: Element_2 | El
|
|
|
7891
7929
|
*/
|
|
7892
7930
|
export declare function getParentEntryPoint(entity: EntityState): EntryPointEntityState | null;
|
|
7893
7931
|
|
|
7932
|
+
/**
|
|
7933
|
+
* Finds the parent executable entity for a given entity.
|
|
7934
|
+
* It traverses up the entity hierarchy until it finds an entity of type ExecutableEntityState
|
|
7935
|
+
* or returns null if no such entity is found.
|
|
7936
|
+
* @param {EntityState} entity EntityState to find the parent executable entity for
|
|
7937
|
+
* @returns {ExecutableEntityState | null}
|
|
7938
|
+
*/
|
|
7894
7939
|
export declare function getParentExecutableEntity(entity: EntityState): ExecutableEntityState | null;
|
|
7895
7940
|
|
|
7896
7941
|
export declare function getParentPassthroughCallableEntity(entity: EntityState): PassThroughCallableEntityState | null;
|
|
@@ -14405,6 +14450,20 @@ export declare function removeDisabledReasons(existingDisbledResons: CanvasEntit
|
|
|
14405
14450
|
|
|
14406
14451
|
export declare function resolveActionDescriptorName(actionDescriptor: ActionDescriptorState): string;
|
|
14407
14452
|
|
|
14453
|
+
/**
|
|
14454
|
+
* Recursively resolves all condition entities which need to be passed
|
|
14455
|
+
* to get from the entry point to the given entity.
|
|
14456
|
+
* It aggregates all conditions of ancestors into a final array
|
|
14457
|
+
|
|
14458
|
+
* @param {CallableEntityState} entity The entity to resolve conditions for
|
|
14459
|
+
* @returns {{ ancestor: ConditionState, call: CallableEntityState, callType: ('success'|'error') }[]} An array of independent parallel conditions direct calls
|
|
14460
|
+
*/
|
|
14461
|
+
export declare function resolveAllParallelAncestorConditionCallersForEntity(entity: CallableEntityState): {
|
|
14462
|
+
condition: ConditionState;
|
|
14463
|
+
call: CallableEntityState;
|
|
14464
|
+
callType: 'success' | 'error';
|
|
14465
|
+
}[];
|
|
14466
|
+
|
|
14408
14467
|
declare function resolveAreThereConflictingColumnsInSelectAll(allColumnsSelector: AllColumnsSelector | null): boolean;
|
|
14409
14468
|
|
|
14410
14469
|
export declare function resolveArgumentDeclarationValue(entity: ArgumentDeclarationState, context: IValueResolutionContext): IDynamicValue | null;
|