@elyx-code/project-logic-tree 0.0.6014 → 0.0.6016

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.
@@ -9,6 +9,7 @@ import { ActionDescriptorState } from '../action-descriptor';
9
9
  import { EntityError, EntityGenerationError } from '../error';
10
10
  import { EntityState } from '../types';
11
11
  import { DataTypeState } from '../data-type';
12
+ import { VariableInputMapState } from '../input-map';
12
13
 
13
14
  export declare class CustomEntityState implements BaseState, UserManagedEntityStateFunctionality, BaseCanvasDraggableState, ICustomEntity, ChildEntityState {
14
15
  initialData: ICustomEntity | ICustomEntityTransfer;
@@ -72,7 +73,7 @@ export declare class CustomEntityState implements BaseState, UserManagedEntitySt
72
73
  addSuggestions(): CustomEntityState;
73
74
  subscribe(): CustomEntityState;
74
75
  unsubscribe(): CustomEntityState;
75
- sync(data: Partial<ICustomEntity>): CustomEntityState;
76
+ sync(data: Partial<ICustomEntity | ICustomEntityTransfer>): CustomEntityState;
76
77
  load(): Promise<CustomEntityState>;
77
78
  create(): Promise<CustomEntityState>;
78
79
  update(_: Partial<CustomEntityTypesUnion>): Promise<CustomEntityState>;
@@ -126,5 +127,6 @@ export declare class CustomEntityState implements BaseState, UserManagedEntitySt
126
127
  };
127
128
  };
128
129
  getAllInteractiveMethods(): FunctionDeclarationState[];
130
+ inferFromInputs(inputs: VariableInputMapState[]): CustomEntityState;
129
131
  }
130
132
  export type CustomEntityPayloadUnion = CustomEntityState | CustomEntityTypesUnion;
@@ -14,6 +14,7 @@ import { ValueDescriptorState } from '../value-descriptor';
14
14
  import { BuiltInBaseEntityState } from '../built-in-base-entity';
15
15
  import { PrimitiveValueState } from '../primitive-value/primitive-value';
16
16
  import { EntityError, EntityGenerationError } from '../error';
17
+ import { VariableInputMapState } from '../input-map';
17
18
 
18
19
  export declare class DataTypeState implements IDataType, UserManagedEntityStateFunctionality, BaseState, ChildEntityState {
19
20
  initialData: IDataType | IDataTypeTransfer;
@@ -104,5 +105,6 @@ export declare class DataTypeState implements IDataType, UserManagedEntityStateF
104
105
  getDefaultValue(): PrimitiveValueState | null;
105
106
  setDefaultValue(value: PrimitiveValueState): DataTypeState;
106
107
  setEntity(entity: CustomEntityState | PrimitiveEntityState | ActionDescriptorState | BuiltInBaseEntityState): DataTypeState;
108
+ inferFromInputs(inputs: VariableInputMapState[]): DataTypeState;
107
109
  }
108
110
  export type DataTypePayloadUnion = DataTypeState | DataTypeTypesUnion;
@@ -60,6 +60,7 @@ export declare class InputMapState implements IInputMap, ValueReadingEntityClass
60
60
  };
61
61
  addSelfToProject(): InputMapState;
62
62
  setParent(parent: PassThroughCallableEntityState | InputMapState): InputMapState;
63
+ setDeclaration(declaration: ArgumentDeclarationState | PropertyState | null): InputMapState;
63
64
  removeInput(input: InputMapState): InputMapState;
64
65
  addInput(input: InputMapState): InputMapState;
65
66
  initChildren(): InputMapState;
@@ -6,6 +6,7 @@ import { ProjectState } from '../project/project';
6
6
  import { ActionDescriptorState } from '../action-descriptor';
7
7
  import { EntityError, EntityGenerationError } from '../error';
8
8
  import { EntityState } from '../types';
9
+ import { PrimitiveValueState } from '../primitive-value';
9
10
 
10
11
  export declare class ValueDescriptorState implements IValueDescriptor, UserManagedEntityStateFunctionality, BaseState, ChildEntityState {
11
12
  initialData: IValueDescriptor | IValueDescriptorTransfer;
@@ -87,5 +88,6 @@ export declare class ValueDescriptorState implements IValueDescriptor, UserManag
87
88
  clone(): ValueDescriptorState;
88
89
  getDataType(): DataTypeState | null;
89
90
  setDataType(dataType: DataTypeState): ValueDescriptorState;
91
+ getDefaultValue(): PrimitiveValueState | null;
90
92
  }
91
93
  export type ValueDescriptorPayloadUnion = ValueDescriptorState | ValueDescriptorTypesUnion;
@@ -89,6 +89,7 @@ export declare class VariableDeclarationState implements IVariableDeclaration, B
89
89
  unsubscribe(): VariableDeclarationState;
90
90
  subscribeInstance(instance: VariableInstanceState): VariableDeclarationState;
91
91
  removeInstance(instance: VariableInstanceState): VariableDeclarationState;
92
+ inferDataTypeAndSyncInstancesInputsAndOutputs(): VariableDeclarationState;
92
93
  sync(data: Partial<IVariableDeclaration>): VariableDeclarationState;
93
94
  load(): Promise<VariableDeclarationState>;
94
95
  create(): Promise<VariableDeclarationState>;
@@ -47,5 +47,5 @@ export declare function inferInputMapDataType(entity: InputMapState): DataTypeSt
47
47
  export declare function inferVariableInstanceDataType(entity: VariableInstanceState): DataTypeState | null;
48
48
  export declare function inferVariableDeclarationDataType(entity: VariableDeclarationState): DataTypeState | null;
49
49
  export declare function inferOutputMapDataType(entity: OutputMapState): DataTypeState | null;
50
- export declare function inferDataType(entity: EntityWithValueState): DataTypeState | null;
51
- export declare function resolveDataType(entity: EntityWithValueState): DataTypeState | null;
50
+ export declare function inferDataType(entity: EntityWithValueState | PropertyState | ValueDescriptorState): DataTypeState | null;
51
+ export declare function resolveDataType(entity: EntityWithValueState | PropertyState | ValueDescriptorState): DataTypeState | null;
@@ -94,7 +94,7 @@ export declare function getHeadIfPartOfDetachedBranch(entity: CanvasEntityState,
94
94
  export declare function flattenDetachedBranch(entity: CanvasEntityState): CanvasEntityState[];
95
95
  export declare function checkIsMethod(entity: EntityState): boolean;
96
96
  export declare function mergeListOfEntities(oldErrors: EntityState[], newErrors: EntityState[]): EntityState[];
97
- export declare function getPrototypeByType(type: EntityType): typeof OutputMapState | typeof ProjectState | typeof InputMapState | typeof ConditionState | typeof OperationState | typeof InstalledProjectState | typeof SearchState | typeof ReturnDeclarationState | typeof CustomEntityState | typeof PropertyState | typeof FunctionDeclarationState | typeof FunctionCallState | typeof VariableDeclarationState | typeof VariableInstanceState | typeof ArgumentDeclarationState | typeof LoopState | typeof ReturnStatementState | typeof BuiltInBaseEntityState | null;
97
+ export declare function getPrototypeByType(type: EntityType): typeof InputMapState | typeof OutputMapState | typeof ProjectState | typeof ConditionState | typeof OperationState | typeof InstalledProjectState | typeof SearchState | typeof ReturnDeclarationState | typeof CustomEntityState | typeof PropertyState | typeof FunctionDeclarationState | typeof FunctionCallState | typeof VariableDeclarationState | typeof VariableInstanceState | typeof ArgumentDeclarationState | typeof LoopState | typeof ReturnStatementState | typeof BuiltInBaseEntityState | null;
98
98
  export declare function getScopeOwner(entity: EntityState | Element | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, project: ProjectState): EntityWithLogicScopeState | ProjectState | null;
99
99
  export declare function getRootEntryPointScopeOwner(entity: EntityState | Element | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, project: ProjectState): EntityWithLogicScopeState | null;
100
100
  export declare function checkIsNestedScope(parent: EntityWithLogicScopeState | ProjectState, child: EntityWithLogicScopeState | ProjectState, project: ProjectState): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elyx-code/project-logic-tree",
3
- "version": "0.0.6014",
3
+ "version": "0.0.6016",
4
4
  "author": "Sergio Herrero",
5
5
  "license": "UNLICENSED",
6
6
  "description": "An installable module which contains the type definitions and ephemeral state management for a projects' logic tree data structure",