@elyx-code/project-logic-tree 0.0.6701 → 0.0.6703
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.cjs +231 -231
- package/dist/index.d.ts +96 -22
- package/dist/index.js +47800 -47718
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -299,7 +299,7 @@ export declare function afterLiteralValueDeleteSideEffects(entity: EntityWithVal
|
|
|
299
299
|
|
|
300
300
|
export declare function aggregateVariableInputsNextValues(objectData: UntypedObjectValue, entity: VariableDeclarationState, context: IValueResolutionContext, onlyDefault?: boolean): UntypedObjectValue;
|
|
301
301
|
|
|
302
|
-
export declare function aggregateVariableInputsValues(objectData: UntypedObjectValue, entity: VariableDeclarationState, context: IValueResolutionContext, onlyDefault?: boolean): UntypedObjectValue;
|
|
302
|
+
export declare function aggregateVariableInputsValues(objectData: UntypedObjectValue, entity: VariableDeclarationState | TerminationEntityState, context: IValueResolutionContext, onlyDefault?: boolean): UntypedObjectValue;
|
|
303
303
|
|
|
304
304
|
declare class AggregationStatement implements ISearchNode {
|
|
305
305
|
owner: SearchStatementState;
|
|
@@ -11430,12 +11430,17 @@ export declare class DefaultEditorContext extends ExtensionContextBase<Extension
|
|
|
11430
11430
|
removeValue(dynamicValue: IDynamicValue): void;
|
|
11431
11431
|
undo(): Promise<void>;
|
|
11432
11432
|
redo(): Promise<void>;
|
|
11433
|
-
initTest(entryPoint: TestableEntityState,
|
|
11434
|
-
|
|
11433
|
+
initTest(entryPoint: TestableEntityState, options: YieldOptions & {
|
|
11434
|
+
autoExecute?: boolean;
|
|
11435
|
+
}): Promise<ITest>;
|
|
11436
|
+
removeTest(options: YieldOptions & {
|
|
11437
|
+
skipValidate?: boolean;
|
|
11438
|
+
}): Promise<ITest>;
|
|
11435
11439
|
copyEntities(entities: CanvasEntityState[]): Promise<ChangeSet>;
|
|
11436
11440
|
resolveInitialChildrenPositions(parent: CanvasEntityState | null, children: CanvasEntityState[], changeSet: ChangeSet | null): CanvasEntityState[];
|
|
11437
11441
|
publish(): Promise<void>;
|
|
11438
11442
|
loadGivenPublication(publicationId: string): Promise<IPublication>;
|
|
11443
|
+
validateProjectState(options?: YieldOptions): Promise<void>;
|
|
11439
11444
|
requestActiveDynamicValue(valueOwner: EntityWithValueState, onlyDefault?: boolean): IDynamicValue | null;
|
|
11440
11445
|
getValueTypePreference(valueOwnerId: EntityId): DynamicValueTypes.DefaultValue | DynamicValueTypes.Testing | null;
|
|
11441
11446
|
setValueTypePreference(valueOwnerId: EntityId, valueTypePreference: DynamicValueTypes.DefaultValue | DynamicValueTypes.Testing | null): void;
|
|
@@ -12572,11 +12577,31 @@ export declare class Execution extends Events {
|
|
|
12572
12577
|
resolvedValues: EfimeralValueStore;
|
|
12573
12578
|
persistedExecutionResults: EfimeralValueStore;
|
|
12574
12579
|
lastExecutionResults: EfimeralValueStore;
|
|
12575
|
-
onAddToSkippedListCallback: null | ((entity: TestableEntityState
|
|
12576
|
-
|
|
12577
|
-
|
|
12578
|
-
|
|
12579
|
-
|
|
12580
|
+
onAddToSkippedListCallback: null | ((entity: TestableEntityState, options?: YieldOptions & {
|
|
12581
|
+
skipValidate?: boolean;
|
|
12582
|
+
skipRender?: boolean;
|
|
12583
|
+
skipNotify?: boolean;
|
|
12584
|
+
}) => Promise<void> | void);
|
|
12585
|
+
onRemoveFromSkippedListCallback: null | ((entity: TestableEntityState, options?: YieldOptions & {
|
|
12586
|
+
skipValidate?: boolean;
|
|
12587
|
+
skipRender?: boolean;
|
|
12588
|
+
skipNotify?: boolean;
|
|
12589
|
+
}) => Promise<void> | void);
|
|
12590
|
+
onAddEntityCallback: null | ((entity: TestableEntityState, options?: YieldOptions & {
|
|
12591
|
+
skipValidate?: boolean;
|
|
12592
|
+
skipRender?: boolean;
|
|
12593
|
+
skipNotify?: boolean;
|
|
12594
|
+
}) => Promise<void> | void);
|
|
12595
|
+
onRemoveEntityCallback: null | ((entity: TestableEntityState, options?: YieldOptions & {
|
|
12596
|
+
skipValidate?: boolean;
|
|
12597
|
+
skipRender?: boolean;
|
|
12598
|
+
skipNotify?: boolean;
|
|
12599
|
+
}) => Promise<void> | void);
|
|
12600
|
+
onAbortExecutionCallback: null | ((entity: TestableEntityState, options?: YieldOptions & {
|
|
12601
|
+
skipValidate?: boolean;
|
|
12602
|
+
skipRender?: boolean;
|
|
12603
|
+
skipNotify?: boolean;
|
|
12604
|
+
}) => Promise<void> | void);
|
|
12580
12605
|
constructor(project: ProjectState, entities: TestableEntityState[], entryPoint: TestableEntityState, parentExecution?: Execution | null, parentContext?: IExecutionInstanceParentContext);
|
|
12581
12606
|
get valueResolutionContext(): IValueResolutionContext;
|
|
12582
12607
|
skip(entity: TestableEntityState): void;
|
|
@@ -12602,7 +12627,17 @@ export declare class Execution extends Events {
|
|
|
12602
12627
|
executeBranch(localEntryPoint: TestableEntityState, client?: IExecutionClient, values?: IDynamicValue[]): Promise<IExecutionResult | null>;
|
|
12603
12628
|
execute(client?: IExecutionClient, values?: IDynamicValue[]): Promise<IExecutionResult>;
|
|
12604
12629
|
addEntity(entity: TestableEntityState): void;
|
|
12630
|
+
addEntityAsync(entity: TestableEntityState, options?: YieldOptions & {
|
|
12631
|
+
skipValidate?: boolean;
|
|
12632
|
+
skipRender?: boolean;
|
|
12633
|
+
skipNotify?: boolean;
|
|
12634
|
+
}): Promise<void>;
|
|
12605
12635
|
addEntities(entities: TestableEntityState[]): void;
|
|
12636
|
+
addEntitiesAsync(entities: TestableEntityState[], options?: YieldOptions & {
|
|
12637
|
+
skipValidate?: boolean;
|
|
12638
|
+
skipRender?: boolean;
|
|
12639
|
+
skipNotify?: boolean;
|
|
12640
|
+
}): Promise<void>;
|
|
12606
12641
|
removeEntity(entity: TestableEntityState): void;
|
|
12607
12642
|
hasEntity(entity: EntityState): boolean;
|
|
12608
12643
|
removeScheduled(entity: TestableEntityState): void;
|
|
@@ -12610,11 +12645,31 @@ export declare class Execution extends Events {
|
|
|
12610
12645
|
hasSkipped(entity: TestableEntityState): boolean;
|
|
12611
12646
|
hasExecuted(entity: TestableEntityState): boolean;
|
|
12612
12647
|
hasEntityWithId(id: string): boolean;
|
|
12613
|
-
onAddToSkippedList(callback: (entity: TestableEntityState
|
|
12614
|
-
|
|
12615
|
-
|
|
12616
|
-
|
|
12617
|
-
|
|
12648
|
+
onAddToSkippedList(callback: (entity: TestableEntityState, options?: YieldOptions & {
|
|
12649
|
+
skipValidate?: boolean;
|
|
12650
|
+
skipRender?: boolean;
|
|
12651
|
+
skipNotify?: boolean;
|
|
12652
|
+
}) => Promise<void> | void): void;
|
|
12653
|
+
onAbortExecution(callback: (entity: TestableEntityState, options?: YieldOptions & {
|
|
12654
|
+
skipValidate?: boolean;
|
|
12655
|
+
skipRender?: boolean;
|
|
12656
|
+
skipNotify?: boolean;
|
|
12657
|
+
}) => Promise<void> | void): void;
|
|
12658
|
+
onAddEntity(callback: (entity: TestableEntityState, options?: YieldOptions & {
|
|
12659
|
+
skipValidate?: boolean;
|
|
12660
|
+
skipRender?: boolean;
|
|
12661
|
+
skipNotify?: boolean;
|
|
12662
|
+
}) => Promise<void> | void): void;
|
|
12663
|
+
onRemoveFromSkippedList(callback: (entity: TestableEntityState, options?: YieldOptions & {
|
|
12664
|
+
skipValidate?: boolean;
|
|
12665
|
+
skipRender?: boolean;
|
|
12666
|
+
skipNotify?: boolean;
|
|
12667
|
+
}) => Promise<void> | void): void;
|
|
12668
|
+
onRemoveEntity(callback: (entity: TestableEntityState, options?: YieldOptions & {
|
|
12669
|
+
skipValidate?: boolean;
|
|
12670
|
+
skipRender?: boolean;
|
|
12671
|
+
skipNotify?: boolean;
|
|
12672
|
+
}) => Promise<void> | void): void;
|
|
12618
12673
|
addToExecutingList(entity: TestableEntityState): void;
|
|
12619
12674
|
addToScheduledList(entity: TestableEntityState): void;
|
|
12620
12675
|
removeFromScheduledList(entity: TestableEntityState): void;
|
|
@@ -13920,6 +13975,8 @@ export declare function flattenCallers(entity: CallableEntityState): CallerEntit
|
|
|
13920
13975
|
|
|
13921
13976
|
export declare function flattenCalls(entities: CallableEntityState[]): CallableEntityState[];
|
|
13922
13977
|
|
|
13978
|
+
export declare function flattenCallsAsync(entities: CallableEntityState[], options?: YieldOptions): Promise<CallableEntityState[]>;
|
|
13979
|
+
|
|
13923
13980
|
export declare function flattenCanvasAncestorsUntil(entity: CanvasEntityState, until: CanvasEntityState): {
|
|
13924
13981
|
list: CanvasEntityState[];
|
|
13925
13982
|
last: CanvasEntityState | null;
|
|
@@ -13993,6 +14050,8 @@ export declare function flattenDetachedBranch(entity: CanvasEntityState): Canvas
|
|
|
13993
14050
|
|
|
13994
14051
|
export declare function flattenElementCalls(element: CallerEntityState): CallableEntityState[];
|
|
13995
14052
|
|
|
14053
|
+
export declare function flattenElementCallsAsync(element: CallerEntityState, options?: YieldOptions): Promise<CallableEntityState[]>;
|
|
14054
|
+
|
|
13996
14055
|
export declare function flattenElementCallsOnTheSameScope(element: CallerEntityState): CallableEntityState[];
|
|
13997
14056
|
|
|
13998
14057
|
export declare function flattenElementCallsWithCallType(element: CallerEntityState): {
|
|
@@ -20943,6 +21002,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
|
|
|
20943
21002
|
onProjectSetupError(callback: (error: any) => void): void;
|
|
20944
21003
|
removeValueByOwnerId(entityId: EntityId): void;
|
|
20945
21004
|
removeValue(dynamicValue: IDynamicValue): void;
|
|
21005
|
+
validateProjectState(options?: YieldOptions): Promise<void>;
|
|
20946
21006
|
handleIncommingWebsocketMessage(message: ILiveMessageDTO): Promise<void>;
|
|
20947
21007
|
handleNotificationChannelsMessage(message: ILiveMessageDTO<DTOAction.SubscribeChannelsV1, string, {
|
|
20948
21008
|
channels: IChannelConnections[];
|
|
@@ -20958,13 +21018,18 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
|
|
|
20958
21018
|
on: Events['on'];
|
|
20959
21019
|
emit: Events['emit'];
|
|
20960
21020
|
off: Events['off'];
|
|
21021
|
+
emitAsync: Events['emitAsync'];
|
|
20961
21022
|
registerNonDefaultLocalImplementationsOfModules(): Promise<void>;
|
|
20962
21023
|
setup(options: {
|
|
20963
21024
|
mockLogic?: ProjectState;
|
|
20964
21025
|
}): Promise<void>;
|
|
20965
21026
|
destroy(): Promise<void>;
|
|
20966
|
-
initTest(entryPoint: TestableEntityState,
|
|
20967
|
-
|
|
21027
|
+
initTest(entryPoint: TestableEntityState, options: YieldOptions & {
|
|
21028
|
+
autoExecute?: boolean;
|
|
21029
|
+
}): Promise<ITest>;
|
|
21030
|
+
removeTest(options: YieldOptions & {
|
|
21031
|
+
skipValidate?: boolean;
|
|
21032
|
+
}): Promise<ITest>;
|
|
20968
21033
|
copyEntities(entities: CanvasEntityState[]): Promise<ChangeSet>;
|
|
20969
21034
|
resolveInitialChildrenPositions(parent: CanvasEntityState | null, children: CanvasEntityState[], changeSet: ChangeSet | null): CanvasEntityState[];
|
|
20970
21035
|
publish(): Promise<void>;
|
|
@@ -22820,16 +22885,20 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
|
|
|
22820
22885
|
validation: EntityError[];
|
|
22821
22886
|
persistExecutionValues: boolean;
|
|
22822
22887
|
initExecutionValueStores(): void;
|
|
22823
|
-
pause(): Promise<void>;
|
|
22824
|
-
stop(): Promise<void>;
|
|
22825
|
-
resume(): Promise<void>;
|
|
22826
|
-
restart(): Promise<void>;
|
|
22888
|
+
pause(options?: YieldOptions): Promise<void>;
|
|
22889
|
+
stop(options?: YieldOptions): Promise<void>;
|
|
22890
|
+
resume(options?: YieldOptions): Promise<void>;
|
|
22891
|
+
restart(options?: YieldOptions): Promise<void>;
|
|
22892
|
+
start(options?: YieldOptions): Promise<void>;
|
|
22827
22893
|
onValueWritten(owner: EntityWithValueState, value: IDynamicValue): void;
|
|
22828
22894
|
onValueRemoved(owner: EntityWithValueState): void;
|
|
22829
|
-
init(
|
|
22895
|
+
init(options: YieldOptions & {
|
|
22896
|
+
autoExecute?: boolean;
|
|
22897
|
+
}): Promise<void>;
|
|
22830
22898
|
clear(): Promise<void>;
|
|
22831
22899
|
resolveIsContinuationOfSelectedLogic(entity: TestableEntityState): boolean;
|
|
22832
22900
|
recalculateEntitiesRelatedToTest(): void;
|
|
22901
|
+
recalculateEntitiesRelatedToTestAsync(options?: YieldOptions): Promise<void>;
|
|
22833
22902
|
removeIfUnconnected(entity: TestableEntityState): boolean;
|
|
22834
22903
|
removeEntity(entity: TestableEntityState): void;
|
|
22835
22904
|
addEntity(entity: TestableEntityState): void;
|
|
@@ -22838,11 +22907,16 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
|
|
|
22838
22907
|
addToCanBeAddedToTest(entity: TestableEntityState): void;
|
|
22839
22908
|
getCanBeRemovedFromTest(entity: TestableEntityState): boolean;
|
|
22840
22909
|
validateLogic(): EntityError[];
|
|
22910
|
+
validateLogicAsync(options?: YieldOptions): Promise<EntityError[]>;
|
|
22841
22911
|
validate(): void;
|
|
22912
|
+
validateAsync(options?: YieldOptions): Promise<void>;
|
|
22842
22913
|
onBeforeEntityExecution(entity: TestableEntityState, values: IDynamicValue[], context: IExecutionCallbackContext): Promise<void>;
|
|
22843
22914
|
onEntityExecuted(entity: TestableEntityState, result: IExecutionResult, context: IExecutionCallbackContext): Promise<void>;
|
|
22844
|
-
start(): Promise<void>;
|
|
22845
22915
|
handleInvalidLogic(): Promise<void>;
|
|
22916
|
+
notifyEntity(entity: TestableEntityState): void;
|
|
22917
|
+
notifyEntityAsync(entity: TestableEntityState, options: YieldOptions): Promise<void>;
|
|
22918
|
+
notifyAllEntities(): void;
|
|
22919
|
+
notifyAllEntitiesAsync(options: YieldOptions): Promise<void>;
|
|
22846
22920
|
}
|
|
22847
22921
|
|
|
22848
22922
|
export declare interface IUndoableInterface {
|
|
@@ -30305,7 +30379,7 @@ export declare function getReferencedEntityStateOrErrors(data: ElementGeneration
|
|
|
30305
30379
|
|
|
30306
30380
|
export declare function resolveValueDescriptorValue(entity: ValueDescriptorState, context: IValueResolutionContext, onlyDefault?: boolean): IDynamicValue | null;
|
|
30307
30381
|
|
|
30308
|
-
export declare function resolveVarDeclarationAggregateObjectValue(entity: VariableDeclarationState, context: IValueResolutionContext, onlyDefault?: boolean): IDynamicValue | null;
|
|
30382
|
+
export declare function resolveVarDeclarationAggregateObjectValue(entity: VariableDeclarationState | TerminationEntityState, context: IValueResolutionContext, onlyDefault?: boolean): IDynamicValue | null;
|
|
30309
30383
|
|
|
30310
30384
|
export declare function resolveVarDeclarationNextAggregateObjectValue(entity: VariableDeclarationState, context: IValueResolutionContext, onlyDefault?: boolean): IDynamicValue | null;
|
|
30311
30385
|
|