@elyx-code/project-logic-tree 0.0.6368 → 0.0.6370
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 +36 -13
- package/dist/index.js +24127 -23655
- package/dist/index.umd.cjs +228 -228
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1582,7 +1582,9 @@ export declare type CanvasEntityDisabledReason = CanvasEntityConnectionDisabledR
|
|
|
1582
1582
|
|
|
1583
1583
|
export declare enum CanvasEntityOtherDisabledReason {
|
|
1584
1584
|
Suggestion = "suggestion",
|
|
1585
|
-
CanvasGloballyDisabled = "canvas-globally-disabled"
|
|
1585
|
+
CanvasGloballyDisabled = "canvas-globally-disabled",
|
|
1586
|
+
CannotInteractWithInputInVariableWithInternalCalls = "cannot-interact-with-input-in-variable-with-internal-calls",
|
|
1587
|
+
CannotInteractWithOutputInVariableWithInternalCalls = "cannot-interact-with-output-in-variable-with-internal-calls"
|
|
1586
1588
|
}
|
|
1587
1589
|
|
|
1588
1590
|
export declare type CanvasEntityState = InstalledProjectState | DefinitionEntityState | FunctionDeclarationState | GlobalEventState | VariableState | ConditionState | OperationState | FunctionCallState | ReturnStatementState | ContinueStatementState | BreakStatementState | LoopState | SearchState;
|
|
@@ -1733,6 +1735,10 @@ export declare function checkIsRequiredValue(entity: EntityWithValueState | Prop
|
|
|
1733
1735
|
|
|
1734
1736
|
export declare function checkScopeCompatibility(entityA: EntityState | Element_2 | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, entityB: EntityState | Element_2 | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, project: ProjectState): ScopeCompatibility;
|
|
1735
1737
|
|
|
1738
|
+
export declare function checkShouldInputOrOutputBePartOfFinalVariableObjectValue(entity: InputMapState | OutputMapState): boolean;
|
|
1739
|
+
|
|
1740
|
+
export declare function checkShouldPropertyBePartOfFinalVariableObjectValue(entity: PropertyState): boolean;
|
|
1741
|
+
|
|
1736
1742
|
export declare type ChildElement = IInstalledProject | IDefinitionEntity | IGlobalEvent | IFunctionDeclaration | IFunctionCall | IProperty | IVariableDeclaration | IVariableInstance | IOperation | ICondition | IArgumentDeclaration | IInputMap | IReturnDeclaration | IOutputMap | IDataType | IReturnStatement | IBreakStatement | IContinueStatement | ILoop | IActionDescriptor | ISearch | ILiteralValue | IValueDescriptor | IInternalCall;
|
|
1737
1743
|
|
|
1738
1744
|
export declare type ChildElement_meta = IInstalledProject_meta | IDefinitionEntity_meta | IGlobalEvent_meta | IFunctionDeclaration_meta | IFunctionCall_meta | IProperty_meta | IVariableDeclaration_meta | IVariableInstance_meta | IOperation_meta | ICondition_meta | IArgumentDeclaration_meta | IInputMap_meta | IReturnDeclaration_meta | IOutputMap_meta | IDataType_meta | IReturnStatement_meta | IBreakStatement_meta | IContinueStatement_meta | ILoop_meta | IActionDescriptor_meta | ISearch_meta | ILiteralValue_meta | IValueDescriptor_meta | IInternalCall_meta;
|
|
@@ -2686,7 +2692,8 @@ declare namespace definitionEntityValidation {
|
|
|
2686
2692
|
validateCanBecomeStatic,
|
|
2687
2693
|
validateCanBecomeAbstract,
|
|
2688
2694
|
validateCanBecomeNonStatic,
|
|
2689
|
-
validateCanBecomeNonAbstract
|
|
2695
|
+
validateCanBecomeNonAbstract,
|
|
2696
|
+
validateDefinitionEntityName_2 as validateDefinitionEntityName
|
|
2690
2697
|
}
|
|
2691
2698
|
}
|
|
2692
2699
|
export { definitionEntityValidation }
|
|
@@ -3347,6 +3354,7 @@ export declare class Execution extends Events {
|
|
|
3347
3354
|
executing: TestableEntityState[];
|
|
3348
3355
|
executed: TestableEntityState[];
|
|
3349
3356
|
skipped: TestableEntityState[];
|
|
3357
|
+
scheduled: TestableEntityState[];
|
|
3350
3358
|
localTestValues: EfimeralValueStore;
|
|
3351
3359
|
resolvedValues: EfimeralValueStore;
|
|
3352
3360
|
persistedExecutionResults: EfimeralValueStore;
|
|
@@ -3363,6 +3371,7 @@ export declare class Execution extends Events {
|
|
|
3363
3371
|
}[];
|
|
3364
3372
|
error: string | null;
|
|
3365
3373
|
}>;
|
|
3374
|
+
static builtInFunctionImplementations: Record<BuiltInFunctionIds, (entity: InternalCallState, inputs: IDynamicValue[]) => Promise<IExecutionResult>>;
|
|
3366
3375
|
constructor(project: ProjectState, entities: TestableEntityState[], entryPoint: DraggablePlayableEntityState, parentExecution?: Execution | null);
|
|
3367
3376
|
get valueResolutionContext(): IValueResolutionContext;
|
|
3368
3377
|
static injectSearchImplementation(implementation: (entity: SearchState, inputs: IDynamicValue[]) => Promise<{
|
|
@@ -3373,8 +3382,11 @@ export declare class Execution extends Events {
|
|
|
3373
3382
|
}[];
|
|
3374
3383
|
error: string | null;
|
|
3375
3384
|
}>): void;
|
|
3385
|
+
skip(entity: TestableEntityState): void;
|
|
3386
|
+
schedule(entity: TestableEntityState, inputs?: IDynamicValue[], client?: IExecutionClient): Promise<IExecutionResult | null>;
|
|
3376
3387
|
mergeExernalValuesWithInternalInputs(externalValues: IDynamicValue[], entity: EntityState): IDynamicValue[];
|
|
3377
3388
|
inheritValuesFromContext(context: IValueResolutionContext): void;
|
|
3389
|
+
executeInternalCall(entity: InternalCallState, inputs: IDynamicValue[], project: ProjectState, client?: IExecutionClient): Promise<IExecutionResult>;
|
|
3378
3390
|
static executeOperation(operation: OperationState, inputs: IDynamicValue[], project: ProjectState): Promise<IExecutionResult>;
|
|
3379
3391
|
executeSearch(entity: SearchState, inputs: IDynamicValue[], project: ProjectState): Promise<IExecutionResult>;
|
|
3380
3392
|
executeLoop(loop: LoopState, inputs: IDynamicValue[], project: ProjectState, client?: IExecutionClient): Promise<IExecutionResult>;
|
|
@@ -3388,14 +3400,18 @@ export declare class Execution extends Events {
|
|
|
3388
3400
|
static executeContinueStatement(continueStatement: ContinueStatementState, inputs: IDynamicValue[]): Promise<IExecutionResult>;
|
|
3389
3401
|
static executeBreakStatement(breakStatement: BreakStatementState, inputs: IDynamicValue[]): Promise<IExecutionResult>;
|
|
3390
3402
|
mergeValues(inputs: IDynamicValue[], defaultValues: IDynamicValue[]): IDynamicValue[];
|
|
3391
|
-
executeEntity(entity:
|
|
3403
|
+
executeEntity(entity: ExecutableEntityState, inputs?: IDynamicValue[], client?: IExecutionClient): Promise<IExecutionResult>;
|
|
3392
3404
|
storeLastExecutionValues(result: IExecutionResult): void;
|
|
3393
|
-
executeBranch(localEntryPoint:
|
|
3405
|
+
executeBranch(localEntryPoint: TestableEntityState, client?: IExecutionClient, values?: IDynamicValue[]): Promise<IExecutionResult | null>;
|
|
3394
3406
|
execute(client?: IExecutionClient, values?: IDynamicValue[]): Promise<IExecutionResult>;
|
|
3395
3407
|
addEntity(entity: TestableEntityState): void;
|
|
3396
3408
|
addEntities(entities: TestableEntityState[]): void;
|
|
3397
3409
|
removeEntity(entity: TestableEntityState): void;
|
|
3398
3410
|
hasEntity(entity: EntityState): boolean;
|
|
3411
|
+
removeScheduled(entity: TestableEntityState): void;
|
|
3412
|
+
hasScheduled(entity: TestableEntityState): boolean;
|
|
3413
|
+
hasSkipped(entity: TestableEntityState): boolean;
|
|
3414
|
+
hasExecuted(entity: TestableEntityState): boolean;
|
|
3399
3415
|
hasEntityWithId(id: string): boolean;
|
|
3400
3416
|
onAddToSkippedList(callback: (entity: TestableEntityState) => void): void;
|
|
3401
3417
|
onAddEntity(callback: (entity: TestableEntityState) => void): void;
|
|
@@ -3958,7 +3974,8 @@ export declare type FunctionDeclarationTypesUnion = IFunctionDeclaration | IFunc
|
|
|
3958
3974
|
|
|
3959
3975
|
declare namespace functionDeclarationValidation {
|
|
3960
3976
|
export {
|
|
3961
|
-
validate_10 as validate
|
|
3977
|
+
validate_10 as validate,
|
|
3978
|
+
validateFunctionDeclarationName_2 as validateFunctionDeclarationName
|
|
3962
3979
|
}
|
|
3963
3980
|
}
|
|
3964
3981
|
export { functionDeclarationValidation }
|
|
@@ -9369,13 +9386,13 @@ export declare interface IExecutionCallbackContext {
|
|
|
9369
9386
|
}
|
|
9370
9387
|
|
|
9371
9388
|
export declare interface IExecutionClient {
|
|
9372
|
-
onBeforeEntityExecution?: (entity:
|
|
9373
|
-
onEntityExecuted?: (entity:
|
|
9389
|
+
onBeforeEntityExecution?: (entity: EntityState, inputs: IDynamicValue[], context: IExecutionCallbackContext) => Promise<any>;
|
|
9390
|
+
onEntityExecuted?: (entity: EntityState, result: IExecutionResult, context: IExecutionCallbackContext) => Promise<any>;
|
|
9374
9391
|
}
|
|
9375
9392
|
|
|
9376
9393
|
export declare interface IExecutionResult {
|
|
9377
9394
|
value: ExecutionTerminationType;
|
|
9378
|
-
entity:
|
|
9395
|
+
entity: ExecutableEntityState | VariableState;
|
|
9379
9396
|
error: IDynamicValue | null;
|
|
9380
9397
|
results: IDynamicValue[];
|
|
9381
9398
|
}
|
|
@@ -14124,6 +14141,9 @@ export declare enum SequentialExecutionOperationOutputIds {
|
|
|
14124
14141
|
export declare enum SharedEntityErrorCode {
|
|
14125
14142
|
InvalidObjectStructure = "invalid-object-structure",
|
|
14126
14143
|
NameNotUniqueInScope = "name-not-unique-in-scope",
|
|
14144
|
+
NameAsResolvedCodeNameNotUniqueInScope = "name-as-resolved-code-name-not-unique-in-scope",
|
|
14145
|
+
NameMustStartWithLetterOrUnderscore = "name-must-start-with-letter-or-underscore",
|
|
14146
|
+
NameCanOnlyContainLettersNumbersUnderscoreAndSpaces = "name-can-only-contain-letters-numbers-underscore-and-spaces",
|
|
14127
14147
|
EmptyName = "empty-name",
|
|
14128
14148
|
MissingCaller = "missing-caller",
|
|
14129
14149
|
PropertyOverwritesOtherSiblingWithSameName = "property-overwrites-other-sibling-with-same-name",
|
|
@@ -14417,7 +14437,7 @@ export declare type TerminationState = ReturnStatementState | BreakStatementStat
|
|
|
14417
14437
|
|
|
14418
14438
|
export declare const test_primitive_entities_export = "test_primitive_entities_export";
|
|
14419
14439
|
|
|
14420
|
-
export declare type TestableEntityState =
|
|
14440
|
+
export declare type TestableEntityState = ExecutableEntityState;
|
|
14421
14441
|
|
|
14422
14442
|
export declare function toCamelCase(str: string): string;
|
|
14423
14443
|
|
|
@@ -14664,7 +14684,7 @@ export declare const validateDataOperationOutputEntityDeclarationParentRef: IAct
|
|
|
14664
14684
|
|
|
14665
14685
|
export declare function validateDefinitionEntityName(entity: DefinitionEntityState | IDefinitionEntityGenerationTarget | IDefinitionEntityShallowTransfer | IDefinitionEntityTransfer, project: ProjectState): EntityGenerationError[];
|
|
14666
14686
|
|
|
14667
|
-
|
|
14687
|
+
declare function validateDefinitionEntityName_2(self: DefinitionEntityState): EntityError[];
|
|
14668
14688
|
|
|
14669
14689
|
export declare function validateEntryCaller(data: ElementGenerationTarget, callerEntity: CallerEntityState): EntityGenerationError[];
|
|
14670
14690
|
|
|
@@ -14674,6 +14694,8 @@ export declare function validateFunctionCallDeclaration(functionDeclarationId: E
|
|
|
14674
14694
|
|
|
14675
14695
|
export declare function validateFunctionDeclarationName(entity: FunctionDeclarationState | IFunctionDeclarationGenerationTarget | IFunctionDeclarationShallowTransfer | IFunctionDeclarationTransfer, project: ProjectState): EntityGenerationError[];
|
|
14676
14696
|
|
|
14697
|
+
declare function validateFunctionDeclarationName_2(self: FunctionDeclarationState): EntityError[];
|
|
14698
|
+
|
|
14677
14699
|
export declare function validateGeneratedEntityParentIsNotBuiltInEntity(data: ElementGenerationTarget, project: ProjectState): EntityGenerationError[];
|
|
14678
14700
|
|
|
14679
14701
|
export declare function validateGeneration(generatedPayload: GeneratedPayload, projectState: ProjectState): {
|
|
@@ -14693,8 +14715,6 @@ declare function validateImplementation(self: PropertyState): EntityError[];
|
|
|
14693
14715
|
|
|
14694
14716
|
declare function validateListLoop(self: LoopState): EntityError[];
|
|
14695
14717
|
|
|
14696
|
-
export declare function validateLogic(logic: (CanvasEntityState | CallableEntityState)[], context: IValueResolutionContext): IDynamicValue[];
|
|
14697
|
-
|
|
14698
14718
|
export declare function validateLoopEntityDeclaration(loopDeclarationId: EntityId, project: ProjectState): EntityGenerationError[];
|
|
14699
14719
|
|
|
14700
14720
|
export declare function validateMissingValue(self: EntityWithValueState): EntityError[];
|
|
@@ -14746,6 +14766,8 @@ export declare function validateValueWritter(data: ElementGenerationTarget, valu
|
|
|
14746
14766
|
|
|
14747
14767
|
export declare function validateVariableDeclarationName(entity: VariableDeclarationState | IVariableDeclarationGenerationTarget | IVariableDeclarationShallowTransfer | IVariableDeclarationTransfer, project: ProjectState): EntityGenerationError[];
|
|
14748
14768
|
|
|
14769
|
+
declare function validateVariableDeclarationName_2(self: VariableDeclarationState): EntityError[];
|
|
14770
|
+
|
|
14749
14771
|
export declare function validateVariableInternalCallUse(self: VariableState): EntityError[];
|
|
14750
14772
|
|
|
14751
14773
|
export declare const VALUE_READING_ENTITIES_EXPLANATION: string;
|
|
@@ -15759,7 +15781,8 @@ export declare type VariableDeclarationTypesUnion = IVariableDeclaration | IVari
|
|
|
15759
15781
|
|
|
15760
15782
|
declare namespace variableDeclarationValidation {
|
|
15761
15783
|
export {
|
|
15762
|
-
validate_5 as validate
|
|
15784
|
+
validate_5 as validate,
|
|
15785
|
+
validateVariableDeclarationName_2 as validateVariableDeclarationName
|
|
15763
15786
|
}
|
|
15764
15787
|
}
|
|
15765
15788
|
export { variableDeclarationValidation }
|