@elyx-code/project-logic-tree 0.0.6182 → 0.0.6183

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.
@@ -16,6 +16,8 @@ import { InputMapState } from '../input-map';
16
16
  import { OutputMapState } from '../output-map';
17
17
  import { VersionedState } from '../version';
18
18
  import { ChangeSet, IChangeSet } from '../change-set';
19
+ import { InstalledProjectState } from '../installed-project';
20
+ import { FunctionDeclarationState } from '../function-declaration';
19
21
 
20
22
  export declare enum ExecutionTerminationType {
21
23
  Success = "success",
@@ -121,9 +123,10 @@ export declare class ActionDescriptorState extends VersionedState implements IAc
121
123
  toGenerationTarget(): IActionDescriptorGenerationTarget;
122
124
  toFlatGenerationTarget(seenEntities?: Set<EntityId>): ElementGenerationTarget[];
123
125
  asFunctionDeclarationTransfer(newEntityId: string, changeSet?: ChangeSet | null): IFunctionDeclarationTransfer;
124
- implementAsLoop(parent?: EntityWithLogicScopeState, changeSet?: ChangeSet | null): LoopState;
125
- implementAsOperation(parent?: EntityWithLogicScopeState, newId?: string, changeSet?: ChangeSet | null): OperationState;
126
- implementAsCondition(parent?: EntityWithLogicScopeState, changeSet?: ChangeSet | null): ConditionState;
126
+ implementAsFunctionDeclaration(parent: InstalledProjectState | DefinitionEntityState | LoopState | BuiltInBaseEntityState | PrimitiveEntityState, changeSet?: ChangeSet | null, newEntityId?: EntityId): FunctionDeclarationState;
127
+ implementAsLoop(parent?: EntityWithLogicScopeState, changeSet?: ChangeSet | null, newEntityId?: EntityId): LoopState;
128
+ implementAsOperation(parent?: EntityWithLogicScopeState, changeSet?: ChangeSet | null, newEntityId?: string): OperationState;
129
+ implementAsCondition(parent?: EntityWithLogicScopeState, changeSet?: ChangeSet | null, newEntityId?: EntityId): ConditionState;
127
130
  clearErrors(): ActionDescriptorState;
128
131
  validate(): {
129
132
  success: boolean;
@@ -78,7 +78,7 @@ export declare class ProjectState extends VersionedState implements IProject, Us
78
78
  success: boolean;
79
79
  }>) | null;
80
80
  constructor(initialData: IProject | IProjectTransfer);
81
- static sessionAuthor: string | null;
81
+ static sessionAuthor: string;
82
82
  static UUID: UUIDModule;
83
83
  static injectUUIDModule(module: UUIDModule): void;
84
84
  static repository: IEditableEntityPersistanceRepository;
@@ -196,7 +196,7 @@ export declare function getHeadIfPartOfDetachedBranch(entity: CanvasEntityState,
196
196
  export declare function flattenDetachedBranch(entity: CanvasEntityState): CanvasEntityState[];
197
197
  export declare function checkIsMethod(entity: EntityState): boolean;
198
198
  export declare function mergeListOfEntities(oldErrors: EntityState[], newErrors: EntityState[]): EntityState[];
199
- export declare function getPrototypeByType(type: EntityType): typeof ProjectState | typeof InputMapState | typeof OutputMapState | typeof SearchState | typeof ReturnDeclarationState | typeof ConditionState | typeof OperationState | typeof InstalledProjectState | typeof DefinitionEntityState | typeof PropertyState | typeof FunctionDeclarationState | typeof FunctionCallState | typeof VariableDeclarationState | typeof VariableInstanceState | typeof ArgumentDeclarationState | typeof LoopState | typeof ReturnStatementState | typeof BuiltInBaseEntityState | null;
199
+ export declare function getPrototypeByType(type: EntityType): typeof ProjectState | typeof InputMapState | typeof OutputMapState | typeof SearchState | typeof ReturnDeclarationState | typeof ConditionState | typeof InstalledProjectState | typeof OperationState | typeof DefinitionEntityState | typeof PropertyState | typeof FunctionDeclarationState | typeof FunctionCallState | typeof VariableDeclarationState | typeof VariableInstanceState | typeof ArgumentDeclarationState | typeof LoopState | typeof ReturnStatementState | typeof BuiltInBaseEntityState | null;
200
200
  export declare function getScopeOwner(entity: EntityState | Element | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, project: ProjectState): EntityWithLogicScopeState | ProjectState | null;
201
201
  export declare function getRootEntryPointScopeOwner(entity: EntityState | Element | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, project: ProjectState): EntityWithLogicScopeState | null;
202
202
  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.6182",
3
+ "version": "0.0.6183",
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",