@elyx-code/project-logic-tree 0.0.6015 → 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;
@@ -88,8 +88,8 @@ export declare class VariableDeclarationState implements IVariableDeclaration, B
88
88
  subscribe(): VariableDeclarationState;
89
89
  unsubscribe(): VariableDeclarationState;
90
90
  subscribeInstance(instance: VariableInstanceState): VariableDeclarationState;
91
- syncInputsAndOutputs(): VariableDeclarationState;
92
91
  removeInstance(instance: VariableInstanceState): VariableDeclarationState;
92
+ inferDataTypeAndSyncInstancesInputsAndOutputs(): VariableDeclarationState;
93
93
  sync(data: Partial<IVariableDeclaration>): VariableDeclarationState;
94
94
  load(): Promise<VariableDeclarationState>;
95
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elyx-code/project-logic-tree",
3
- "version": "0.0.6015",
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",