@elyx-code/project-logic-tree 0.0.6465 → 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 +70 -18
- package/dist/index.js +5659 -5872
- package/dist/index.umd.cjs +107 -107
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1870,6 +1870,15 @@ 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
|
+
|
|
1873
1882
|
export declare function checkEveryCallerReachesOrIsAncestor(entity: CallableEntityState, ancestor: CallerEntityState): boolean;
|
|
1874
1883
|
|
|
1875
1884
|
export declare function checkExtendsBaseEntity(entity: DefinitionEntityState | BuiltInBaseEntityState, baseEntityName: BaseEntityNames): boolean;
|
|
@@ -1931,6 +1940,8 @@ export declare function checkIsRequiredValue(entity: EntityWithValueState | Prop
|
|
|
1931
1940
|
|
|
1932
1941
|
export declare function checkParentEntryPointRequiresTermination(self: PassThroughCallableEntityState): boolean;
|
|
1933
1942
|
|
|
1943
|
+
export declare function checkReachesOrIsTarget(entity: ExecutableEntityState, target: CallableEntityState): 'success' | 'error' | 'entry' | 'loop-body' | 'same-entity' | null;
|
|
1944
|
+
|
|
1934
1945
|
export declare function checkScopeCompatibility(entityA: EntityState | Element_2 | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, entityB: EntityState | Element_2 | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, project: ProjectState): ScopeCompatibility;
|
|
1935
1946
|
|
|
1936
1947
|
export declare function checkShouldInputOrOutputBePartOfFinalVariableObjectValue(entity: InputMapState | OutputMapState): boolean;
|
|
@@ -3988,17 +3999,19 @@ export declare enum ExtentionPriority {
|
|
|
3988
3999
|
Low = 10
|
|
3989
4000
|
}
|
|
3990
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
|
+
|
|
3991
4009
|
export declare function filterOutDuplicateEntities(entities: (EntityState | Element_2 | ElementTransfer | ElementShallowTransfer | ElementGenerationTarget)[]): (Element_2 | ElementTransfer | ElementShallowTransfer | ElementGenerationTarget | EntityState)[];
|
|
3992
4010
|
|
|
3993
4011
|
export declare function filterOutDuplicateErrors(errors: (EntityGenerationError | EntityError)[]): EntityGenerationError[] | EntityError[];
|
|
3994
4012
|
|
|
3995
4013
|
export declare function findEntityFromKeys(keys: string[], project: ProjectState): DefinitionEntityState | null;
|
|
3996
4014
|
|
|
3997
|
-
export declare function findNextIndividualCommonCallerAncestorFromGiven(entityA: ExecutableEntityState, entityB: ExecutableEntityState, from: CallerEntityState, ignoreCommonAncestorsFromDifferentCallTypes?: boolean): {
|
|
3998
|
-
ancestor: CallerEntityState | null;
|
|
3999
|
-
callType: 'success' | 'error' | 'entry' | 'loop-body' | null;
|
|
4000
|
-
};
|
|
4001
|
-
|
|
4002
4015
|
export declare function findNextSingleCallerAncestor(target: CallableEntityState, from?: CallerEntityState): {
|
|
4003
4016
|
ancestor: CallerEntityState | null;
|
|
4004
4017
|
callType: 'success' | 'error' | 'entry' | 'loop-body' | null;
|
|
@@ -4029,6 +4042,14 @@ export declare function flattenBuiltInBaseEntity(entity: IBuiltInBaseEntity | IB
|
|
|
4029
4042
|
ignoreBuiltInBaseEntities?: boolean;
|
|
4030
4043
|
}): (Element_2 | ElementTransfer | ElementShallowTransfer)[];
|
|
4031
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
|
+
**/
|
|
4032
4053
|
export declare function flattenCallerAncestorsUntil(entity: CallableEntityState, until: CallerEntityState): {
|
|
4033
4054
|
list: CallerEntityState[];
|
|
4034
4055
|
last: CallerEntityState | null;
|
|
@@ -5056,6 +5077,20 @@ export declare function getCallableEntityTypeSchema(): z_2.ZodUnion<[z_2.ZodUnio
|
|
|
5056
5077
|
|
|
5057
5078
|
export declare function getCalledBy(entity: CallableEntityState | CallableEntity | CallableEntityTransfer | CallableEntityShallowTransfer): (CallerEntityState | CallerEntity | CallerEntityTransfer)[];
|
|
5058
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
|
+
|
|
5059
5094
|
export declare function getCallerEntityReferenceSchema(): z_2.ZodUnion<[z_2.ZodUnion<[z_2.ZodObject<{
|
|
5060
5095
|
id: z_2.ZodString;
|
|
5061
5096
|
type: z_2.ZodLiteral<import("../../..").EntityType.GenericReference>;
|
|
@@ -6605,24 +6640,11 @@ export declare function getDraggablePlayableEntityTypeSchema(): z_2.ZodUnion<[z_
|
|
|
6605
6640
|
type: import("../../..").EntityType.GlobalEvent;
|
|
6606
6641
|
}>, z_2.ZodRecord<z_2.ZodString, z_2.ZodAny>]>]>]>;
|
|
6607
6642
|
|
|
6608
|
-
export declare function getEarliestCommonAncestorOfAllCallers(entity: CallableEntityState, ignoreEarlierChainedCallers?: boolean): {
|
|
6609
|
-
ancestor: CallerEntityState;
|
|
6610
|
-
callType: 'success' | 'error' | 'entry' | 'loop-body';
|
|
6611
|
-
} | {
|
|
6612
|
-
ancestor: null;
|
|
6613
|
-
callType: null;
|
|
6614
|
-
};
|
|
6615
|
-
|
|
6616
6643
|
export declare function getEarliestCommonCallerAncestor(entityA: ExecutableEntityState, entityB: ExecutableEntityState, ignoreCommonAncestorsFromDifferentCallTypes?: boolean): {
|
|
6617
6644
|
ancestor: CallerEntityState | null;
|
|
6618
6645
|
callType: 'success' | 'error' | 'entry' | 'loop-body' | 'same-entity' | null;
|
|
6619
6646
|
};
|
|
6620
6647
|
|
|
6621
|
-
export declare function getEarliestIndividualCommonCallerAncestor(entityA: ExecutableEntityState, entityB: ExecutableEntityState, ignoreCommonAncestorsFromDifferentCallTypes?: boolean): {
|
|
6622
|
-
ancestor: CallerEntityState | null;
|
|
6623
|
-
callType: 'success' | 'error' | 'entry' | 'loop-body' | 'same-entity' | null;
|
|
6624
|
-
};
|
|
6625
|
-
|
|
6626
6648
|
export declare function getEarliestSingleCallerAncestorOfValueWriterAndItsValueReaders(entity: VariableDeclarationState | OutputMapState): {
|
|
6627
6649
|
ancestor: CallerEntityState | null;
|
|
6628
6650
|
callType: 'success' | 'error' | 'entry' | 'loop-body' | null;
|
|
@@ -7880,6 +7902,15 @@ export declare function getOnlyRelevantErrorsForPublication(project: ProjectStat
|
|
|
7880
7902
|
|
|
7881
7903
|
declare function getOrderByClauseFromSelectStatement(selectStatement: SelectStmt): OrderByClause | null;
|
|
7882
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
|
+
**/
|
|
7883
7914
|
export declare function getParentCallableEntity(entity: EntityState): CallableEntityState | null;
|
|
7884
7915
|
|
|
7885
7916
|
export declare function getParentCallerEntity(entity: EntityState): CallerEntityState | null;
|
|
@@ -7898,6 +7929,13 @@ export declare function getParentCanvasEntityFromTransfer(entity: Element_2 | El
|
|
|
7898
7929
|
*/
|
|
7899
7930
|
export declare function getParentEntryPoint(entity: EntityState): EntryPointEntityState | null;
|
|
7900
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
|
+
*/
|
|
7901
7939
|
export declare function getParentExecutableEntity(entity: EntityState): ExecutableEntityState | null;
|
|
7902
7940
|
|
|
7903
7941
|
export declare function getParentPassthroughCallableEntity(entity: EntityState): PassThroughCallableEntityState | null;
|
|
@@ -14412,6 +14450,20 @@ export declare function removeDisabledReasons(existingDisbledResons: CanvasEntit
|
|
|
14412
14450
|
|
|
14413
14451
|
export declare function resolveActionDescriptorName(actionDescriptor: ActionDescriptorState): string;
|
|
14414
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
|
+
|
|
14415
14467
|
declare function resolveAreThereConflictingColumnsInSelectAll(allColumnsSelector: AllColumnsSelector | null): boolean;
|
|
14416
14468
|
|
|
14417
14469
|
export declare function resolveArgumentDeclarationValue(entity: ArgumentDeclarationState, context: IValueResolutionContext): IDynamicValue | null;
|