@elyx-code/project-logic-tree 0.0.6339 → 0.0.6341

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
@@ -1,4 +1,5 @@
1
1
  import { BinaryExpr } from 'sql-parser-cst';
2
+ import { Events } from '@elyx-code/common-ts-utils';
2
3
  import { Expr } from 'sql-parser-cst';
3
4
  import { ForSystemTimeAsOfExpr } from 'sql-parser-cst';
4
5
  import { FromClause } from 'sql-parser-cst';
@@ -171,6 +172,18 @@ export declare class ActionOutputMapState extends OutputMapState implements IAct
171
172
  toJSON(seenEntities?: Set<EntityId>): IActionOutputMap | IOutputMapReference;
172
173
  }
173
174
 
175
+ export declare function afterLiteralValueAsTypeChangeSideEffects(newValue: ValueAsTypeState | ValueAsTypeState[] | null, entity: EntityWithValueState, project: ProjectState, storage: ChangeSet | IValueStoreClient): ChangeSet | null;
176
+
177
+ export declare function afterLiteralValueAsTypeDeleteSideEffects(entity: EntityWithValueState, project: ProjectState, storage: ChangeSet | IValueStoreClient): ChangeSet | null;
178
+
179
+ export declare function afterLiteralValueChangeSideEffects(newValue: LiteralValueType, entity: EntityWithValueState, project: ProjectState, storage: ChangeSet | IValueStoreClient): ChangeSet | null;
180
+
181
+ export declare function afterLiteralValueDeleteSideEffects(entity: EntityWithValueState, project: ProjectState, storage: ChangeSet | IValueStoreClient): ChangeSet | null;
182
+
183
+ export declare function aggregateVariableInputsNextValues(objectData: UntypedObjectValue, entity: VariableDeclarationState, context: IValueResolutionContext): UntypedObjectValue;
184
+
185
+ export declare function aggregateVariableInputsValues(objectData: UntypedObjectValue, entity: VariableDeclarationState, context: IValueResolutionContext): UntypedObjectValue;
186
+
174
187
  declare class AggregationStatement implements ISearchNode {
175
188
  owner: SearchStatementState;
176
189
  dataSource: DataSource | null;
@@ -413,6 +426,10 @@ export { argumentDeclarationValidation }
413
426
 
414
427
  export declare function asGenerationActionExample(payload: Record<string, any> | string): string;
415
428
 
429
+ export declare function assembleAndAddLiteralValueFromDataType(dataType: DataTypeState | null, valueOwner: EntityWithValueState | ValueDescriptorState | PropertyState, project: ProjectState, changeSet: ChangeSet | null): LiteralValueState;
430
+
431
+ export declare function assembleStandaloneLiteralValueFromDataType(dataType: DataTypeState | null, valueOwner: EntityWithValueState | ValueDescriptorState | PropertyState, project: ProjectState): LiteralValueState | null;
432
+
416
433
  export declare type BaseActionImplementation = (...args: any[]) => any[] | Promise<any[]>;
417
434
 
418
435
  export declare abstract class BaseCanvasDraggableState {
@@ -1182,8 +1199,6 @@ export declare type CallableEntityTransfer = PassThroughCallableEntityTransfer |
1182
1199
 
1183
1200
  export declare type CallableEntityTypesUnion = CallableEntity | CallableEntityTransfer | CallableEntityShallowTransfer | CallableEntityGenerationTarget;
1184
1201
 
1185
- declare type CallbackArguments<Arguments extends any[] = any[]> = [...args: Arguments];
1186
-
1187
1202
  export declare const CALLER_ENTITIES_EXPLANATION: string;
1188
1203
 
1189
1204
  export declare const CALLER_TYPES: EntityType[];
@@ -1331,14 +1346,20 @@ export declare function checkIsDetachedBranch(entity: CanvasEntityState): boolea
1331
1346
 
1332
1347
  export declare function checkIsDetachedBranchShallow(entity: CanvasEntityState): boolean;
1333
1348
 
1349
+ export declare function checkIsEmptyValue(value: LiteralValueType): boolean;
1350
+
1334
1351
  export declare function checkIsGloballyDeclared(entity: ConditionState | FunctionCallState | OperationState | VariableDeclarationState | VariableInstanceState | FunctionCallState | LoopState | SearchState): boolean;
1335
1352
 
1336
1353
  export declare function checkIsGlobalVariable(entity: VariableDeclarationState): boolean;
1337
1354
 
1355
+ export declare function checkIsLiteralValueEmpty(value: LiteralValueState): boolean;
1356
+
1338
1357
  export declare function checkIsMethod(entity: EntityState): boolean;
1339
1358
 
1340
1359
  export declare function checkIsNestedScope(parent: EntityWithLogicScopeState | ProjectState, child: EntityWithLogicScopeState | ProjectState, project: ProjectState): boolean;
1341
1360
 
1361
+ export declare function checkIsRequiredValue(entity: EntityWithValueState | PropertyState | ValueDescriptorState): boolean;
1362
+
1342
1363
  export declare function checkScopeCompatibility(entityA: EntityState | Element_2 | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, entityB: EntityState | Element_2 | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, project: ProjectState): ScopeCompatibility;
1343
1364
 
1344
1365
  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;
@@ -1392,10 +1413,6 @@ declare class ColumnRef implements ISearchNode {
1392
1413
  get isValid(): boolean;
1393
1414
  }
1394
1415
 
1395
- declare class CombinedVersionedEvents extends VersionedState {
1396
- constructor(...args: ConstructorParameters<typeof VersionedState>);
1397
- }
1398
-
1399
1416
  export declare enum CommonStringValidationErrorCodes {
1400
1417
  StringValueMustNotHaveSpaces = "string-value-must-not-have-spaces",
1401
1418
  StringValueMustNotHaveDashes = "string-value-must-not-have-dashes"
@@ -2436,8 +2453,40 @@ export declare type DraggablePlayableEntityTransfer = DraggablePassThroughCallab
2436
2453
 
2437
2454
  export declare type DraggablePlayableEntityTypesUnion = DraggablePlayableEntity | DraggablePlayableEntityTransfer | DraggablePlayableEntityShallowTransfer | DraggablePlayableEntityGenerationTarget;
2438
2455
 
2456
+ export declare enum DynamicValueTypes {
2457
+ Inherited = "inherited",
2458
+ DefaultValue = "default-value",
2459
+ Missing = "missing",
2460
+ Empty = "empty",
2461
+ AutoCalculated = "auto-calculated",
2462
+ QueuedAutocalculation = "queued-autocalculation",
2463
+ External = "external",
2464
+ Testing = "testing",
2465
+ ExecutionResult = "execution-result"
2466
+ }
2467
+
2439
2468
  export declare const EDITABLE_PERSISTANCE_REPOSITORY_DEFAULTS: IEditableEntityPersistanceRepository;
2440
2469
 
2470
+ export declare class EfimeralValueStore implements IValueStoreClient {
2471
+ initialized: boolean;
2472
+ id: string;
2473
+ project: ProjectState;
2474
+ values: IValueStoreRecord;
2475
+ onWriteCallback: (owner: EntityWithValueState, value: ILiteralValue) => void;
2476
+ onRemoveCallback: (owner: EntityWithValueState) => void;
2477
+ constructor(id: string, project: ProjectState);
2478
+ onWrite(callback: (owner: EntityWithValueState, value: ILiteralValue) => void): void;
2479
+ onRemove(callback: (owner: EntityWithValueState) => void): void;
2480
+ init(): void;
2481
+ toJSON(): {
2482
+ [key: string]: ILiteralValueTransfer;
2483
+ };
2484
+ writeValue(owner: EntityWithValueState, value: LiteralValueState): void;
2485
+ readValue(ownerId: string): LiteralValueState | null;
2486
+ removeValue(ownerId: string): void;
2487
+ clear(): void;
2488
+ }
2489
+
2441
2490
  declare type Element_2 = IProject | IInstalledProject | IDefinitionEntity | IGlobalEvent | IFunctionDeclaration | IFunctionCall | IPrimitiveEntity | IProperty | IVariableDeclaration | IVariableInstance | IOperation | ICondition | IArgumentDeclaration | IInputMap | IReturnDeclaration | IOutputMap | IDataType | IReturnStatement | IBreakStatement | IContinueStatement | ILoop | IActionDescriptor | ISearch | ILiteralValue | IBuiltInBaseEntity | IValueDescriptor | IInternalCall;
2442
2491
  export { Element_2 as Element }
2443
2492
 
@@ -2873,8 +2922,6 @@ export declare const enumPrototypeRef: IPrimitiveEntityReference;
2873
2922
 
2874
2923
  export declare const EVENT_TYPES: EntityType[];
2875
2924
 
2876
- declare type EventCallback<Arguments extends any[]> = (...args: CallbackArguments<Arguments>) => any;
2877
-
2878
2925
  export declare type EventEntity = IGlobalEvent;
2879
2926
 
2880
2927
  export declare type EventEntity_meta = IGlobalEvent_meta;
@@ -2891,19 +2938,6 @@ export declare type EventEntityTransfer = IGlobalEventTransfer;
2891
2938
 
2892
2939
  export declare type EventEntityTypesUnion = EventEntity | EventEntityTransfer | EventEntityShallowTransfer | EventEntityGenerationTarget;
2893
2940
 
2894
- export declare class Events {
2895
- private subscribedEvents;
2896
- private getEvent;
2897
- _on<Arguments extends any[]>(eventName: string, callback: EventCallback<Arguments>): void;
2898
- on: <Arguments extends any[]>(eventName: string, callback: EventCallback<Arguments>) => void;
2899
- _emit<Arguments extends any[]>(eventName: string, ...args: Arguments): void;
2900
- emit: <Arguments extends any[]>(eventName: string, ...args: Arguments) => void;
2901
- _off<Arguments extends any[]>(eventName: string, callback?: EventCallback<Arguments>): void;
2902
- off: <Arguments extends any[]>(eventName: string, callback?: EventCallback<Arguments>) => void;
2903
- _destroy(): void;
2904
- destroy: () => void;
2905
- }
2906
-
2907
2941
  export declare const EXECUTABLE_TYPES: EntityType[];
2908
2942
 
2909
2943
  export declare type ExecutableEntity = CallableEntity | EntryPointEntity;
@@ -2922,6 +2956,78 @@ export declare type ExecutableEntityTransfer = CallableEntityTransfer | EntryPoi
2922
2956
 
2923
2957
  export declare type ExecutableEntityTypesUnion = ExecutableEntity | ExecutableEntityTransfer | ExecutableEntityShallowTransfer | ExecutableEntityGenerationTarget;
2924
2958
 
2959
+ export declare class Execution extends Events {
2960
+ project: ProjectState;
2961
+ entryPoint: DraggablePlayableEntityState;
2962
+ state: ExecutionState;
2963
+ events: Events;
2964
+ entities: TestableEntityState[];
2965
+ parentExecution: Execution | null;
2966
+ executing: TestableEntityState[];
2967
+ executed: TestableEntityState[];
2968
+ skipped: TestableEntityState[];
2969
+ localTestValues: EfimeralValueStore;
2970
+ resolvedValues: EfimeralValueStore;
2971
+ persistedExecutionResults: EfimeralValueStore;
2972
+ lastExecutionResults: EfimeralValueStore;
2973
+ onAddToSkippedListCallback: null | ((entity: TestableEntityState) => void);
2974
+ onRemoveFromSkippedListCallback: null | ((entity: TestableEntityState) => void);
2975
+ onAddEntityCallback: null | ((entity: TestableEntityState) => void);
2976
+ onRemoveEntityCallback: null | ((entity: TestableEntityState) => void);
2977
+ static searchImplementation: (entity: SearchState, inputs: IDynamicValue[]) => Promise<{
2978
+ data: {
2979
+ [columnName: string]: any;
2980
+ } | null | {
2981
+ [columnName: string]: any;
2982
+ }[];
2983
+ error: string | null;
2984
+ }>;
2985
+ constructor(project: ProjectState, entities: TestableEntityState[], entryPoint: DraggablePlayableEntityState, parentExecution?: Execution | null);
2986
+ get valueResolutionContext(): IValueResolutionContext;
2987
+ static injectSearchImplementation(implementation: (entity: SearchState, inputs: IDynamicValue[]) => Promise<{
2988
+ data: {
2989
+ [columnName: string]: any;
2990
+ } | null | {
2991
+ [columnName: string]: any;
2992
+ }[];
2993
+ error: string | null;
2994
+ }>): void;
2995
+ mergeExernalValuesWithInternalInputs(externalValues: IDynamicValue[], entity: EntityState): IDynamicValue[];
2996
+ inheritValuesFromContext(context: IValueResolutionContext): void;
2997
+ static executeOperation(operation: OperationState, inputs: IDynamicValue[], project: ProjectState): Promise<IExecutionResult>;
2998
+ executeSearch(entity: SearchState, inputs: IDynamicValue[], project: ProjectState): Promise<IExecutionResult>;
2999
+ executeLoop(loop: LoopState, inputs: IDynamicValue[], project: ProjectState, client?: IExecutionClient): Promise<IExecutionResult>;
3000
+ executeFunctionCall(functionCall: FunctionCallState, inputs: IDynamicValue[], project: ProjectState, client?: IExecutionClient): Promise<IExecutionResult>;
3001
+ static executeCondition(condition: ConditionState, inputs: IDynamicValue[]): Promise<IExecutionResult>;
3002
+ executeDetachedFullFunctionDeclarationLogic(functionDeclaration: FunctionDeclarationState, inputs: IDynamicValue[], project: ProjectState, client?: IExecutionClient): Promise<IExecutionResult>;
3003
+ executeFullFunctionDeclarationLogic(functionDeclaration: FunctionDeclarationState, inputs: IDynamicValue[], client?: IExecutionClient): Promise<IExecutionResult>;
3004
+ static executeEntryPointEntity(entryPointEntity: EntryPointEntityState, inputs: IDynamicValue[]): Promise<IExecutionResult>;
3005
+ static executeVariable(varDeclaration: VariableState, input: IDynamicValue): Promise<IExecutionResult>;
3006
+ static executeReturnStatement(returnStatement: ReturnStatementState, inputs: IDynamicValue[]): Promise<IExecutionResult>;
3007
+ static executeContinueStatement(continueStatement: ContinueStatementState, inputs: IDynamicValue[]): Promise<IExecutionResult>;
3008
+ static executeBreakStatement(breakStatement: BreakStatementState, inputs: IDynamicValue[]): Promise<IExecutionResult>;
3009
+ mergeValues(inputs: IDynamicValue[], defaultValues: IDynamicValue[]): IDynamicValue[];
3010
+ executeEntity(entity: DraggableExecutableEntityState | DraggableCallerEntityState | VariableDeclarationState, inputs?: IDynamicValue[], client?: IExecutionClient): Promise<IExecutionResult>;
3011
+ storeLastExecutionValues(result: IExecutionResult): void;
3012
+ executeBranch(localEntryPoint: DraggableExecutableEntityState | DraggableCallerEntityState | VariableDeclarationState, client?: IExecutionClient, values?: IDynamicValue[]): Promise<IExecutionResult | null>;
3013
+ execute(client?: IExecutionClient, values?: IDynamicValue[]): Promise<IExecutionResult>;
3014
+ addEntity(entity: TestableEntityState): void;
3015
+ addEntities(entities: TestableEntityState[]): void;
3016
+ removeEntity(entity: TestableEntityState): void;
3017
+ hasEntity(entity: EntityState): boolean;
3018
+ hasEntityWithId(id: string): boolean;
3019
+ onAddToSkippedList(callback: (entity: TestableEntityState) => void): void;
3020
+ onAddEntity(callback: (entity: TestableEntityState) => void): void;
3021
+ onRemoveFromSkippedList(callback: (entity: TestableEntityState) => void): void;
3022
+ onRemoveEntity(callback: (entity: TestableEntityState) => void): void;
3023
+ addToExecutingList(entity: TestableEntityState): void;
3024
+ removeFromExecutingList(entity: TestableEntityState): void;
3025
+ removeFromAlreadyExecutedList(entity: TestableEntityState): void;
3026
+ removeFromSkippedList(entity: TestableEntityState): void;
3027
+ addToAlreadyExecutedList(entity: TestableEntityState): void;
3028
+ addToSkippedList(entity: TestableEntityState): void;
3029
+ }
3030
+
2925
3031
  export declare const EXECUTION_OPERATIONS: {
2926
3032
  [key: string]: IActionDescriptorTransfer;
2927
3033
  };
@@ -2938,6 +3044,15 @@ export declare enum ExecutionOperations {
2938
3044
  Wait = "wait"
2939
3045
  }
2940
3046
 
3047
+ export declare enum ExecutionState {
3048
+ FinishedSuccess = "finished-success",
3049
+ FinishedError = "finished-error",
3050
+ Running = "running",
3051
+ Paused = "paused",
3052
+ Stopped = "stopped",
3053
+ NotStarted = "not-started"
3054
+ }
3055
+
2941
3056
  export declare enum ExecutionTerminationType {
2942
3057
  Success = "success",
2943
3058
  Error = "error",
@@ -3495,6 +3610,8 @@ export declare function generateRandomTextBefore(options: IAutogenerationRandomT
3495
3610
 
3496
3611
  export declare function generateRandomTextBetweenRange(options: IAutogenerationRandomTextBetween): string;
3497
3612
 
3613
+ export declare function generateStandaloneIfDefault(dynamicValue: IDynamicValue): IDynamicValue;
3614
+
3498
3615
  export declare function generateUniqueUUID(): string;
3499
3616
 
3500
3617
  export declare const GET_PROJECT_OPTIONS_DEFAULTS: IGetProjectOptions;
@@ -5324,6 +5441,8 @@ export declare function getDraggablePlayableEntityTypeSchema(): z_2.ZodUnion<[z_
5324
5441
 
5325
5442
  export declare function getEntitiesCreatedSinceInitialization(projectState: ProjectState, preInitDate: string): UserManagedEntityState[];
5326
5443
 
5444
+ export declare function getEntitiesToPropagateValuesTo(entity: EntityWithValueState, project: ProjectState, seenInRecursion?: Set<EntityId>): EntityWithValueState[];
5445
+
5327
5446
  export declare function getEntityArgumentDeclarations(entity: ExecutableEntityState): (ArgumentDeclarationState | ValueDescriptorState)[];
5328
5447
 
5329
5448
  export declare function getEntityInputMaps(entity: DraggablePassThroughCallableEntityState): InputMapState[];
@@ -6531,6 +6650,8 @@ declare function getLimitClauseFromSelectStatement(selectStatement: SelectStmt):
6531
6650
 
6532
6651
  export declare function getLinkedEntitiesFromArgumentDeclaration(argumentDeclaration: ArgumentDeclarationState): ValueReadingEntityState[];
6533
6652
 
6653
+ export declare function getLiteralValueNameFromDataType(dataType: DataTypeState | null): PrimitiveTypes;
6654
+
6534
6655
  export declare function getLowestPersistedEntityImplementation(entity: DefinitionEntityState): DefinitionEntityState | null;
6535
6656
 
6536
6657
  declare function getMainSourceFromSelectStatement(selectStatement: SelectStmt): {
@@ -7560,6 +7681,14 @@ export declare function handleBeforeEntityImplementationSideEffects(self: Defini
7560
7681
  newEntities: EntityState[];
7561
7682
  };
7562
7683
 
7684
+ export declare function handleLiteralValueChange(newValue: LiteralValueType, entity: EntityWithValueState, project: ProjectState, storage: ChangeSet | IValueStoreClient): ChangeSet | null;
7685
+
7686
+ export declare function handleLiteralValueDelete(entity: EntityWithValueState, project: ProjectState, storage: ChangeSet | IValueStoreClient): ChangeSet | null;
7687
+
7688
+ export declare function handleValueAsTypeChange(newValue: ValueAsTypeState | ValueAsTypeState[] | null, entity: EntityWithValueState, project: ProjectState, storage: ChangeSet | IValueStoreClient): ChangeSet | null;
7689
+
7690
+ export declare function handleValueAsTypeDelete(entity: EntityWithValueState, project: ProjectState, storage: ChangeSet | IValueStoreClient): ChangeSet | null;
7691
+
7563
7692
  export declare const HTTP_OPERATIONS: {
7564
7693
  [key: string]: IActionDescriptorTransfer;
7565
7694
  };
@@ -7657,6 +7786,8 @@ export declare enum HTTPStatucCodeValidationErrorCodes {
7657
7786
 
7658
7787
  export declare function httpStatusCodeValueValidation(self: ActionDescriptorState, value: LiteralValueType): IValueValidationResult<LiteralValueType, HTTPStatucCodeValidationErrorCodes>;
7659
7788
 
7789
+ export declare function hydrateOrDiscardLiteralValue(value: LiteralValueState, _valueOwner: EntityWithValueState, _project: ProjectState): LiteralValueState | null;
7790
+
7660
7791
  declare function hydrateSearchStatementState(ast: Program | SelectStmt, project: ProjectState, entity?: SearchState | null, debug?: boolean): {
7661
7792
  state: SearchStatementState | null;
7662
7793
  errors: {
@@ -7754,6 +7885,18 @@ export declare interface IActionOutputMapTransfer extends IOutputMapTransfer {
7754
7885
  parent: PassThroughCallableEntity | PassThroughCallableEntityReference;
7755
7886
  }
7756
7887
 
7888
+ export declare interface IActiveBranchHeadResult {
7889
+ id: string;
7890
+ headVersion: string;
7891
+ userAuthor: string;
7892
+ timestamp: string;
7893
+ fromVersionId: string;
7894
+ name: string;
7895
+ identifier: string;
7896
+ createdAt: string;
7897
+ project: string;
7898
+ }
7899
+
7757
7900
  export declare interface IArgumentDeclaration extends IArgumentDeclaration_meta, IBaseVariable, IChildEntity, IValueWritingEntity {
7758
7901
  type: EntityType.ArgumentDeclaration;
7759
7902
  constant: true;
@@ -8068,6 +8211,34 @@ export declare interface IBoolean extends IPrimitiveEntity {
8068
8211
  name: PrimitiveTypes.Boolean;
8069
8212
  }
8070
8213
 
8214
+ export declare interface IBranch {
8215
+ id: string;
8216
+ userAuthor: string;
8217
+ project: string;
8218
+ fromVersionId: string;
8219
+ name: string;
8220
+ identifier: string;
8221
+ createdAt: string;
8222
+ }
8223
+
8224
+ export declare interface IBranchHead {
8225
+ id: string;
8226
+ branch: string;
8227
+ userAuthor: string;
8228
+ versionId: string;
8229
+ timestamp: string;
8230
+ }
8231
+
8232
+ export declare interface IBranchMerge {
8233
+ id: string;
8234
+ branch: string;
8235
+ userAuthor: string;
8236
+ mergedIntoBranch: string | null;
8237
+ mergedAsNewVersion: string | null;
8238
+ mergedIntoVersion: string | null;
8239
+ timestamp: string;
8240
+ }
8241
+
8071
8242
  export declare interface IBreakStatement extends ITerminationStatement, IBreakStatement_meta {
8072
8243
  type: EntityType.BreakStatement;
8073
8244
  parent: ILoop;
@@ -8180,6 +8351,14 @@ export declare interface IChangeSet<TSelf extends {
8180
8351
  self: TSelf;
8181
8352
  }
8182
8353
 
8354
+ export declare interface IChannelConnections {
8355
+ channel: string;
8356
+ connections: {
8357
+ connectionId: string;
8358
+ userId: string;
8359
+ }[];
8360
+ }
8361
+
8183
8362
  export declare interface IChildEntity extends IChildEntityTransfer {
8184
8363
  parent: Element_2;
8185
8364
  }
@@ -8433,6 +8612,13 @@ export declare interface IDefinitionEntityTransfer extends IBaseCanvasDraggable,
8433
8612
  methods: (IFunctionDeclaration | IFunctionDeclarationTransfer)[];
8434
8613
  }
8435
8614
 
8615
+ export declare interface IDynamicValue {
8616
+ value: LiteralValueState | null;
8617
+ valueOwner: EntityWithValueState;
8618
+ type: DynamicValueTypes;
8619
+ inheritanceLink: IValueInheritanceLink | null;
8620
+ }
8621
+
8436
8622
  export declare interface IEditableEntityPersistanceRepository extends IReadOnlyEntityPersistanceRepository {
8437
8623
  APICreate<T extends Array<any> = any[]>(entity: ElementShallowTransfer, ...otherArgs: T): Promise<ElementShallowTransfer>;
8438
8624
  APIUpdate<T extends Array<any> = any[]>(entity: ElementShallowTransfer, ...otherArgs: T): Promise<ElementShallowTransfer>;
@@ -8441,6 +8627,62 @@ export declare interface IEditableEntityPersistanceRepository extends IReadOnlyE
8441
8627
  APILoadVersion<T extends Array<any> = any[]>(entityId: EntityId, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: T): Promise<ElementShallowTransfer | null>;
8442
8628
  }
8443
8629
 
8630
+ export declare interface IEditor extends IUndoableInterface, IValueResolutionContext {
8631
+ ready: boolean;
8632
+ hasLoadedLogic: boolean;
8633
+ destroyed: boolean;
8634
+ logicLoadingPromise: Promise<void> | null;
8635
+ logic: ProjectState | null;
8636
+ branch: IActiveBranchHeadResult | null;
8637
+ projectId: EntityId;
8638
+ sessionId: string | null;
8639
+ peerConnections: Record<string, IChannelConnections>;
8640
+ test: ITest | null;
8641
+ localTestValues: IValueStoreClient;
8642
+ resolvedValues: IValueStoreClient;
8643
+ persistedExecutionResults: IValueStoreClient;
8644
+ socket: IWebsocketsClient;
8645
+ events: Events;
8646
+ onProjectHeadLoadedCallback: null | ((projectState: ProjectState) => void);
8647
+ onLogicLoadingCompleteCallback: null | ((chunk: any) => void);
8648
+ onRenderedCallback: null | (() => void);
8649
+ onProjectSetupErrorCallback: null | ((error: any) => void);
8650
+ constructor(projectId: EntityId, socket?: IWebsocketsClient | null, events?: Events): IEditor;
8651
+ get execution(): Execution | null;
8652
+ get project(): ProjectState;
8653
+ get lastExecutionResults(): EfimeralValueStore;
8654
+ get undoableStackValueIndex(): number;
8655
+ set undoableStackValueIndex(value: number);
8656
+ get PROJECT_NOTIFICATIONS_CHANNEL(): string;
8657
+ onProjectHeadLoaded(callback: (projectState: ProjectState) => void): void;
8658
+ onLogicLoadingComplete(callback: (chunk: any) => void): void;
8659
+ onRendered(callback: () => void): void;
8660
+ onProjectSetupError(callback: (error: any) => void): void;
8661
+ removeValueByOwnerId(entityId: EntityId): void;
8662
+ removeValue(dynamicValue: IDynamicValue): void;
8663
+ handleNotificationChannelsMessage(message: IOutgoingWSMessage<string, {
8664
+ data: {
8665
+ channels: IChannelConnections[];
8666
+ sessionId: string;
8667
+ };
8668
+ }>): void;
8669
+ handlePersistChangeSetMessage(message: IOutgoingWSMessage<string, PersistChangeSetEntityActionRequestPayload>): void;
8670
+ getLogic(options?: {
8671
+ mockLogic?: ProjectState;
8672
+ }): Promise<void>;
8673
+ undo(): Promise<void>;
8674
+ redo(): Promise<void>;
8675
+ injectLocalImplementationOfSearchExecution(): void;
8676
+ setup(options: {
8677
+ mockLogic?: ProjectState;
8678
+ }): Promise<void>;
8679
+ destroy(): Promise<void>;
8680
+ initTest(entryPoint: DraggablePlayableEntityState, autoExecute: boolean): Promise<ITest>;
8681
+ removeTest(): Promise<void>;
8682
+ copyEntities(entities: CanvasEntityState[]): Promise<ChangeSet>;
8683
+ resolveInitialChildrenPositions(parent: CanvasEntityState | null, children: CanvasEntityState[], changeSet: ChangeSet | null): CanvasEntityState[];
8684
+ }
8685
+
8444
8686
  export declare interface IEntityActionRequestPayload<P = EntityActionPayload> {
8445
8687
  action: EntityAction;
8446
8688
  author: string;
@@ -8455,6 +8697,12 @@ export declare interface IEntityActionResponsePayload {
8455
8697
  data: IRecordChangeSet<UserManagedElementShallowTransfer | null, UserManagedElementShallowTransfer>;
8456
8698
  }
8457
8699
 
8700
+ export declare interface IEntityComponentProps {
8701
+ entity: DraggablePlayableEntityState | ReturnStatementState | ContinueStatementState | BreakStatementState;
8702
+ project: IEditor;
8703
+ disabled?: boolean;
8704
+ }
8705
+
8458
8706
  export declare interface IEntityError<TCode = SharedEntityErrorCode | EntityInstanceErrorCode> {
8459
8707
  id: string;
8460
8708
  message: string;
@@ -8494,6 +8742,22 @@ export declare interface IEnum extends IPrimitiveEntity {
8494
8742
  options: string[];
8495
8743
  }
8496
8744
 
8745
+ export declare interface IExecutionCallbackContext {
8746
+ detached: boolean;
8747
+ }
8748
+
8749
+ export declare interface IExecutionClient {
8750
+ onBeforeEntityExecution?: (entity: EntityState, inputs: IDynamicValue[], context: IExecutionCallbackContext) => Promise<any>;
8751
+ onEntityExecuted?: (entity: EntityState, result: IExecutionResult, context: IExecutionCallbackContext) => Promise<any>;
8752
+ }
8753
+
8754
+ export declare interface IExecutionResult {
8755
+ value: ExecutionTerminationType;
8756
+ entity: DraggableExecutableEntityState | DraggableCallerEntityState | ActionDescriptorState | VariableState;
8757
+ error: IDynamicValue | null;
8758
+ results: IDynamicValue[];
8759
+ }
8760
+
8497
8761
  export declare interface IFile extends IPrimitiveEntity {
8498
8762
  name: PrimitiveTypes.File;
8499
8763
  }
@@ -8791,11 +9055,11 @@ export declare interface IJSON extends IPrimitiveEntity {
8791
9055
  name: PrimitiveTypes.KeyValue;
8792
9056
  }
8793
9057
 
8794
- export declare interface ILiteralValue extends ILiteralValueTransfer, IChildEntity {
9058
+ export declare interface ILiteralValue extends ILiteralValueTransfer {
8795
9059
  valueAsTypeSingle: LiteralValueAsType | null;
8796
9060
  valueAsTypeList: LiteralValueAsType[] | null;
8797
- parent: IDataType | IInputMap | IVariableDeclaration | IVariableInstance | IArgumentDeclaration | IReturnDeclaration | IProperty | IValueDescriptor | IOutputMap;
8798
- standaloneParent?: EntityWithValue;
9061
+ parent: null | IDataType | IInputMap | IVariableDeclaration | IVariableInstance | IArgumentDeclaration | IReturnDeclaration | IProperty | IValueDescriptor | IOutputMap;
9062
+ standaloneParent: null | EntityWithValue;
8799
9063
  }
8800
9064
 
8801
9065
  export declare interface ILiteralValue_base {
@@ -8828,11 +9092,11 @@ export declare interface ILiteralValueShallowTransfer extends ILiteralValue_meta
8828
9092
  standaloneParent?: EntityWithValueReference;
8829
9093
  }
8830
9094
 
8831
- export declare interface ILiteralValueTransfer extends ILiteralValue_meta, IChildEntityTransfer {
9095
+ export declare interface ILiteralValueTransfer extends ILiteralValue_meta {
8832
9096
  valueAsTypeSingle: LiteralValueAsTypeTransfer | null;
8833
9097
  valueAsTypeList: LiteralValueAsTypeTransfer[] | null;
8834
- parent: IDataType | IDataTypeReference | IInputMap | IInputMapReference | IVariableDeclaration | IVariableDeclarationReference | IVariableInstance | IVariableInstanceReference | IArgumentDeclaration | IArgumentDeclarationReference | IReturnDeclaration | IReturnDeclarationReference | IProperty | IPropertyReference | IValueDescriptor | IValueDescriptorReference | IOutputMap | IOutputMapReference;
8835
- standaloneParent?: EntityWithValue | EntityWithValueReference;
9098
+ parent: null | IDataType | IDataTypeReference | IInputMap | IInputMapReference | IVariableDeclaration | IVariableDeclarationReference | IVariableInstance | IVariableInstanceReference | IArgumentDeclaration | IArgumentDeclarationReference | IReturnDeclaration | IReturnDeclarationReference | IProperty | IPropertyReference | IValueDescriptor | IValueDescriptorReference | IOutputMap | IOutputMapReference;
9099
+ standaloneParent: null | EntityWithValue | EntityWithValueReference;
8836
9100
  }
8837
9101
 
8838
9102
  export declare interface ILoop extends ILoop_meta, IChildEntity, ICalledEntity, IBaseActionCall {
@@ -9363,6 +9627,12 @@ export declare interface IOperationTransfer extends IBaseActionCallTransfer, IOp
9363
9627
  parent: EntityWithLogicScope | EntityWithLogicScopeReference | IProject | IProjectReference;
9364
9628
  }
9365
9629
 
9630
+ export declare interface IOutgoingWSMessage<Type extends string = string, Payload = any> {
9631
+ payload: Payload;
9632
+ type: Type;
9633
+ to?: string;
9634
+ }
9635
+
9366
9636
  export declare interface IOutputMap extends IOutputMap_meta, IChildEntity, IValueWritingEntity {
9367
9637
  defaultValue: ILiteralValue | null;
9368
9638
  declaration: IReturnDeclaration | IValueDescriptor | IProperty;
@@ -10062,6 +10332,44 @@ export declare interface ITerminationStatementTransfer extends ITerminationState
10062
10332
  throws: IReturnDeclaration | IReturnDeclarationTransfer | null;
10063
10333
  }
10064
10334
 
10335
+ export declare interface ITest extends Execution {
10336
+ editor: IEditor;
10337
+ entitiesRelatedToExecution: TestableEntityState[];
10338
+ validation: IDynamicValue[];
10339
+ persistExecutionValues: boolean;
10340
+ constructor(project: IEditor, entryPoint: DraggablePlayableEntityState): ITest;
10341
+ initExecutionValueStores(): void;
10342
+ pause(): Promise<void>;
10343
+ stop(): Promise<void>;
10344
+ resume(): Promise<void>;
10345
+ restart(): Promise<void>;
10346
+ onValueWritten(owner: EntityWithValueState, value: IDynamicValue): void;
10347
+ onValueRemoved(owner: EntityWithValueState): void;
10348
+ init(autoExecute: boolean): Promise<void>;
10349
+ clear(): Promise<void>;
10350
+ resolveIsContinuationOfSelectedLogic(entity: TestableEntityState): boolean;
10351
+ recalculateEntitiesRelatedToTest(): void;
10352
+ removeIfUnconnected(entity: TestableEntityState): boolean;
10353
+ removeEntity(entity: TestableEntityState): void;
10354
+ addEntity(entity: TestableEntityState): void;
10355
+ getCanBeAddedToTest(entity: TestableEntityState): boolean;
10356
+ removeFromCanBeAddedToTest(entity: TestableEntityState): void;
10357
+ addToCanBeAddedToTest(entity: TestableEntityState): void;
10358
+ getCanBeRemovedFromTest(entity: TestableEntityState): boolean;
10359
+ validateLogic(): IDynamicValue[];
10360
+ validate(): void;
10361
+ onBeforeEntityExecution(entity: TestableEntityState, values: IDynamicValue[], context: IExecutionCallbackContext): Promise<void>;
10362
+ onEntityExecuted(entity: TestableEntityState, result: IExecutionResult, context: IExecutionCallbackContext): Promise<void>;
10363
+ start(): Promise<void>;
10364
+ handleInvalidLogic(): Promise<void>;
10365
+ }
10366
+
10367
+ export declare interface IUndoableInterface {
10368
+ undo: () => void;
10369
+ redo: () => void;
10370
+ undoableStackValueIndex: number;
10371
+ }
10372
+
10065
10373
  export declare interface IUUID extends IPrimitiveEntity {
10066
10374
  name: PrimitiveTypes.UUID;
10067
10375
  }
@@ -10112,6 +10420,11 @@ export declare interface IValueDescriptorTransfer extends IValueDescriptor_meta
10112
10420
  parent: IActionDescriptor | IActionDescriptorReference | ILoop | ILoopReference | ISearch | ISearchReference | null;
10113
10421
  }
10114
10422
 
10423
+ export declare interface IValueInheritanceLink {
10424
+ sources: IDynamicValue[];
10425
+ target: EntityWithValueState;
10426
+ }
10427
+
10115
10428
  export declare interface IValueReadingEntity extends IValueReadingEntityTransfer {
10116
10429
  readsValue: ValueWritingEntity | null;
10117
10430
  }
@@ -10128,6 +10441,38 @@ export declare interface IValueReadingEntityTransfer {
10128
10441
  readsValue: ValueWritingEntity | ValueWritingEntityTransfer | ValueWritingEntityReference | null;
10129
10442
  }
10130
10443
 
10444
+ export declare interface IValueResolutionContext {
10445
+ execution?: Execution | null;
10446
+ project: ProjectState;
10447
+ localTestValues: IValueStoreClient;
10448
+ resolvedValues: IValueStoreClient;
10449
+ persistedExecutionResults: IValueStoreClient;
10450
+ lastExecutionResults: IValueStoreClient;
10451
+ }
10452
+
10453
+ export declare interface IValueStoreClient {
10454
+ initialized: boolean;
10455
+ id: string;
10456
+ project: ProjectState;
10457
+ values: IValueStoreRecord;
10458
+ onWriteCallback: (owner: EntityWithValueState, value: ILiteralValue) => void;
10459
+ onRemoveCallback: (owner: EntityWithValueState) => void;
10460
+ onWrite(callback: (owner: EntityWithValueState, value: ILiteralValue) => void): void;
10461
+ onRemove(callback: (owner: EntityWithValueState) => void): void;
10462
+ init(): void;
10463
+ toJSON(): {
10464
+ [key: string]: ILiteralValueTransfer;
10465
+ };
10466
+ writeValue(owner: EntityWithValueState, value: LiteralValueState): void;
10467
+ readValue(ownerId: string): LiteralValueState | null;
10468
+ removeValue(ownerId: string): void;
10469
+ clear(): void;
10470
+ }
10471
+
10472
+ export declare interface IValueStoreRecord {
10473
+ [key: EntityId]: LiteralValueState;
10474
+ }
10475
+
10131
10476
  export declare interface IValueValidationResult<T = LiteralValueType, TCode = SharedEntityErrorCode | EntityInstanceErrorCode> {
10132
10477
  errors: EntityError<TCode>[];
10133
10478
  override: T;
@@ -10315,6 +10660,47 @@ export declare interface IVersionMetadata {
10315
10660
  deleted: boolean;
10316
10661
  }
10317
10662
 
10663
+ /**
10664
+ * The minimal subset of the Node‑ws and the browser WebSocket API
10665
+ * that you actually use in your editor.
10666
+ */
10667
+ export declare interface IWebSocketCommon {
10668
+ /** readyState codes (both ws and browser expose these as static *and* instance props) */
10669
+ readonly CONNECTING: number;
10670
+ readonly OPEN: number;
10671
+ readonly CLOSING: number;
10672
+ readonly CLOSED: number;
10673
+ /** The current state of the connection */
10674
+ readonly readyState: number;
10675
+ /** The URL used to establish the connection */
10676
+ readonly url: string;
10677
+ /** Subprotocol negotiated with the server, if any */
10678
+ readonly protocol: string;
10679
+ /** Bytes queued but not yet sent */
10680
+ readonly bufferedAmount: number;
10681
+ /** Send a message (string, binary, etc.) */
10682
+ send(data: any): void;
10683
+ /** Close the connection (code + reason both optional in both APIs) */
10684
+ close(code?: number, reason?: string): void;
10685
+ /**
10686
+ * We only tap the four basic events in both environments.
10687
+ * Node‑ws also implements addEventListener/removeEventListener,
10688
+ * and the browser socket does too, so this matches both.
10689
+ */
10690
+ addEventListener(event: 'open' | 'message' | 'error' | 'close', listener: (ev: any) => void): void;
10691
+ removeEventListener(event: 'open' | 'message' | 'error' | 'close', listener: (ev: any) => void): void;
10692
+ /** Optional onX handlers on the instance */
10693
+ onopen?: (ev: any) => void;
10694
+ onmessage?: (ev: any) => void;
10695
+ onerror?: (ev: any) => void;
10696
+ onclose?: (ev: any) => void;
10697
+ }
10698
+
10699
+ export declare interface IWebsocketsClient extends Events {
10700
+ connection: IWebSocketCommon;
10701
+ send(message: any): void;
10702
+ }
10703
+
10318
10704
  export declare const joinListOperation: IActionDescriptorTransfer;
10319
10705
 
10320
10706
  export declare const joinListOperationError: IValueDescriptorTransfer;
@@ -11468,6 +11854,8 @@ export declare enum PersistedEntityMethods {
11468
11854
  AbortExecution = "base-abort-execution"
11469
11855
  }
11470
11856
 
11857
+ export declare const PLACEHOLDER_VALUE_STORE_CLIENT: IValueStoreClient;
11858
+
11471
11859
  export declare type PlayableEntity = PassThroughCallableEntity | EntryPointEntity;
11472
11860
 
11473
11861
  export declare type PlayableEntity_meta = PassThroughCallableEntity_meta | EntryPointEntity_meta;
@@ -11568,10 +11956,7 @@ export declare type ProjectPayloadUnion = ProjectState | ProjectTypesUnion;
11568
11956
 
11569
11957
  export declare const projectPublicationCompletedGlobalEvent: IActionDescriptorTransfer;
11570
11958
 
11571
- export declare interface ProjectState extends Events {
11572
- }
11573
-
11574
- export declare class ProjectState extends CombinedVersionedEvents implements IProject, UserManagedEntityStateTemplate, BaseState {
11959
+ export declare class ProjectState extends VersionedState implements IProject, UserManagedEntityStateTemplate, BaseState {
11575
11960
  initialData: IProject | IProjectTransfer;
11576
11961
  readonly id: EntityId;
11577
11962
  type: EntityType.Project;
@@ -11621,6 +12006,7 @@ export declare class ProjectState extends CombinedVersionedEvents implements IPr
11621
12006
  activeVersion: boolean;
11622
12007
  initialized: boolean;
11623
12008
  startedInitialization: boolean;
12009
+ _eventsHub: Events;
11624
12010
  onCloseChangeSetCallback: ((changeSet: ChangeSet) => Promise<{
11625
12011
  success: boolean;
11626
12012
  }>) | null;
@@ -11653,6 +12039,9 @@ export declare class ProjectState extends CombinedVersionedEvents implements IPr
11653
12039
  errors: EntityGenerationError[];
11654
12040
  modifiedData: IProjectGenerationTarget;
11655
12041
  };
12042
+ get off(): Events['off'];
12043
+ get on(): Events['on'];
12044
+ get emit(): Events['emit'];
11656
12045
  closePendingChangeSets(): Promise<void>;
11657
12046
  onRequestActiveValue(callback: (valueOwner: EntityWithValueState) => LiteralValueState | null): void;
11658
12047
  onCloseChangeSet(callback: (changeSet: ChangeSet) => Promise<{
@@ -11820,6 +12209,14 @@ export declare enum ProjectStateEvents {
11820
12209
 
11821
12210
  export declare type ProjectTypesUnion = IProject | IProjectTransfer | IProjectShallowTransfer | IProjectGenerationTarget;
11822
12211
 
12212
+ export declare function propagateNewInputOrOutputMapValueAsTypeToParentVariable(entity: InputMapState | OutputMapState, project: ProjectState, newValue: ValueAsTypeState | ValueAsTypeState[] | null, storage: ChangeSet | IValueStoreClient): ChangeSet | null;
12213
+
12214
+ export declare function propagateNewInputOrOutputMapValueToParentVariable(entity: InputMapState | OutputMapState, project: ProjectState, newValue: LiteralValueType, storage: ChangeSet | IValueStoreClient): ChangeSet | null;
12215
+
12216
+ export declare function propagateNewStaticPropertyValueAsTypeToVariables(entity: PropertyState, project: ProjectState, newValue: ValueAsTypeState | ValueAsTypeState[] | null, storage: ChangeSet | IValueStoreClient): ChangeSet | null;
12217
+
12218
+ export declare function propagateNewStaticPropertyValueToVariables(entity: PropertyState, project: ProjectState, newValue: LiteralValueType, storage: ChangeSet | IValueStoreClient): ChangeSet | null;
12219
+
11823
12220
  export declare const PROPERTY_NOT_VALUE_READER_WRITTER_EXPLANATION = "A property entity, is neither a value reading, or a value writting entity, but they are often confused with one.\nA 'property' can have a default value through its nested 'data-type' entity.\nThe 'property' entity only represents the data field in the declaration, and it can't write or read values.\nWhen a 'definition-entity' is instantiated as a variable, any writes or reads to its properties are done through 'input-map's and 'output-map's.";
11824
12221
 
11825
12222
  export declare enum PropertyDependencyField {
@@ -11972,6 +12369,8 @@ export { propertyValidation }
11972
12369
 
11973
12370
  export declare const READ_ONLY_ENTITY_PERSISTANCE_REPOSITORY: IReadOnlyEntityPersistanceRepository;
11974
12371
 
12372
+ export declare function readValueFromWritter(entity: ValueReadingEntityState, context: IValueResolutionContext): IDynamicValue | null;
12373
+
11975
12374
  export declare type Reference = IGenericReference | IFunctionDeclarationReference | IInstalledProjectReference | IDataTypeReference | IVariableDeclarationReference | IVariableInstanceReference | IOperationReference | IDefinitionEntityReference | IPrimitiveEntityReference | IProjectReference | IGlobalEventReference | IFunctionDeclarationReference | IFunctionDeclarationReference | IPropertyReference | IFunctionCallReference | IArgumentDeclarationReference | IInputMapReference | IOutputMapReference | IReturnDeclarationReference | IConditionReference | IReturnStatementReference | IBreakStatementReference | IContinueStatementReference | ILoopReference | IActionDescriptorReference | ISearchReference | ILiteralValueReference | IBuiltInBaseEntityReference | IValueDescriptorReference | IInternalCallReference;
11976
12375
 
11977
12376
  export declare const relationalDatabaseBuiltInBaseEntity: IBuiltInBaseEntityTransfer;
@@ -12034,6 +12433,8 @@ export declare function resolveActionDescriptorName(actionDescriptor: ActionDesc
12034
12433
 
12035
12434
  declare function resolveAreThereConflictingColumnsInSelectAll(allColumnsSelector: AllColumnsSelector | null): boolean;
12036
12435
 
12436
+ export declare function resolveArgumentDeclarationValue(entity: ArgumentDeclarationState, context: IValueResolutionContext): IDynamicValue | null;
12437
+
12037
12438
  export declare function resolveBaseEntityName(baseEntities: BaseEntityNames[]): string;
12038
12439
 
12039
12440
  export declare function resolveBuiltInBaseEntityDataTypeLabel(entity: BuiltInBaseEntityState): string;
@@ -12064,6 +12465,22 @@ export declare function resolveFirstCallsSecond(first: DraggableExecutableEntity
12064
12465
 
12065
12466
  export declare function resolveFirstWritesSecond(first: ValueWritingEntityState, second: ValueReadingEntityState): boolean;
12066
12467
 
12468
+ export declare function resolveInputMapNextStandaloneValue(entity: InputMapState, context: IValueResolutionContext): IDynamicValue | null;
12469
+
12470
+ export declare function resolveInputMapNextValue(entity: InputMapState, context: IValueResolutionContext): IDynamicValue | null;
12471
+
12472
+ export declare function resolveInputMapNextValueAsPropertyOfAnObject(entity: InputMapState, context: IValueResolutionContext): IDynamicValue | null;
12473
+
12474
+ export declare function resolveInputMapStandaloneValue(entity: InputMapState, context: IValueResolutionContext): IDynamicValue | null;
12475
+
12476
+ export declare function resolveInputMapValue(entity: InputMapState, context: IValueResolutionContext): IDynamicValue | null;
12477
+
12478
+ export declare function resolveInputMapValueAsPropertyOfAnObject(entity: InputMapState, context: IValueResolutionContext): IDynamicValue | null;
12479
+
12480
+ export declare function resolveNextValue(entity: ValueReadingEntityState, context: IValueResolutionContext): IDynamicValue | null;
12481
+
12482
+ export declare function resolveOutputMapValue(entity: OutputMapState, context: IValueResolutionContext): IDynamicValue | null;
12483
+
12067
12484
  export declare function resolvePersistedDefinitionEntityDatabaseEntity(entity: DefinitionEntityState): DefinitionEntityState | null;
12068
12485
 
12069
12486
  export declare function resolvePrimaryKeyProperty(entity: DefinitionEntityState): PropertyState | null;
@@ -12075,10 +12492,30 @@ export declare function resolvePrimitiveEntityName(primitiveEntity: {
12075
12492
  [key: string]: any;
12076
12493
  }): string;
12077
12494
 
12495
+ export declare function resolvePropertyValue(entity: PropertyState, context: IValueResolutionContext): IDynamicValue | null;
12496
+
12497
+ export declare function resolveReturnDeclarationValue(entity: ReturnDeclarationState, context: IValueResolutionContext): IDynamicValue | null;
12498
+
12078
12499
  export declare function resolveSearchName(search: SearchState): string;
12079
12500
 
12501
+ export declare function resolveValue(entity: EntityWithValueState | PropertyState | ValueDescriptorState, context: IValueResolutionContext): IDynamicValue | null;
12502
+
12503
+ export declare function resolveValueDescriptorValue(entity: ValueDescriptorState, context: IValueResolutionContext): IDynamicValue | null;
12504
+
12505
+ export declare function resolveVarDeclarationAggregateObjectValue(entity: VariableDeclarationState, context: IValueResolutionContext): IDynamicValue | null;
12506
+
12507
+ export declare function resolveVarDeclarationNextAggregateObjectValue(entity: VariableDeclarationState, context: IValueResolutionContext): IDynamicValue | null;
12508
+
12509
+ export declare function resolveVarDeclarationNextValue(entity: VariableDeclarationState, context: IValueResolutionContext): IDynamicValue | null;
12510
+
12511
+ export declare function resolveVarDeclarationValue(entity: VariableDeclarationState, context: IValueResolutionContext): IDynamicValue | null;
12512
+
12080
12513
  export declare function resolveVariableScope(variable: VariableState): 'global-declaration' | 'global-instance' | 'local-declaration' | 'local-instance';
12081
12514
 
12515
+ export declare function resolveVarInstanceNextValue(entity: VariableInstanceState, context: IValueResolutionContext): IDynamicValue | null;
12516
+
12517
+ export declare function resolveVarInstanceValue(entity: VariableInstanceState, context: IValueResolutionContext): IDynamicValue | null;
12518
+
12082
12519
  export declare const RETURN_STATEMENT_RETURN_DECLARATIONS_EXPLANATION = "Return statements need to be identical inside the same scope. For example if a 'return-statement' belongs to a function, with multiple branches of logic, leading to multiple 'return-statement' entities, all of them need to have the exact same amount of 'return-declaration' entities, sharing the same name and an equivalent 'data-type' entity.\nFurthermore, some 'function-declarations' and all 'global-events' might be implementing a base 'action-descriptor' entity, which defines exactly the shape and number of the return declarations.";
12083
12520
 
12084
12521
  export declare enum ReturnDeclarationDependencyField {
@@ -13039,6 +13476,8 @@ export declare type TerminationState = ReturnStatementState | BreakStatementStat
13039
13476
 
13040
13477
  export declare const test_primitive_entities_export = "test_primitive_entities_export";
13041
13478
 
13479
+ export declare type TestableEntityState = DraggableExecutableEntityState | DraggableCallerEntityState | VariableState | CallableEntityState;
13480
+
13042
13481
  export declare function toCamelCase(str: string): string;
13043
13482
 
13044
13483
  export declare function toEntityState(entity: string | EntityState | IGenericReference | Element_2 | ElementTransfer | ElementShallowTransfer | ElementGenerationTarget, project: ProjectState): EntityState | null;
@@ -13276,6 +13715,8 @@ export declare const validateDataOperationOutputEntityDeclarationParentRef: IAct
13276
13715
 
13277
13716
  export declare function validateDefinitionEntityName(entity: DefinitionEntityState | IDefinitionEntityGenerationTarget | IDefinitionEntityShallowTransfer | IDefinitionEntityTransfer, project: ProjectState): EntityGenerationError[];
13278
13717
 
13718
+ export declare function validateEntityValues(entity: CanvasEntityState | CallableEntityState, context: IValueResolutionContext): IDynamicValue[];
13719
+
13279
13720
  export declare function validateEntryCaller(data: ElementGenerationTarget, callerEntity: CallerEntityState): EntityGenerationError[];
13280
13721
 
13281
13722
  export declare function validateErrorCaller(data: ElementGenerationTarget, callerEntity: CallerEntityState): EntityGenerationError[];
@@ -13303,6 +13744,8 @@ declare function validateImplementation(self: PropertyState): EntityError[];
13303
13744
 
13304
13745
  declare function validateListLoop(self: LoopState): EntityError[];
13305
13746
 
13747
+ export declare function validateLogic(logic: (CanvasEntityState | CallableEntityState)[], context: IValueResolutionContext): IDynamicValue[];
13748
+
13306
13749
  export declare function validateLoopEntityDeclaration(loopDeclarationId: EntityId, project: ProjectState): EntityGenerationError[];
13307
13750
 
13308
13751
  export declare function validateName(entity: ElementGenerationTarget | ElementShallowTransfer | ElementTransfer, project: ProjectState): EntityGenerationError[];