@elyx-code/project-logic-tree 0.0.6174 → 0.0.6176
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.js +6155 -6083
- package/dist/index.umd.cjs +182 -182
- package/dist/tree/state/action-descriptor/action-descriptor.d.ts +4 -4
- package/dist/tree/state/base.d.ts +1 -0
- package/dist/tree/state/function-declaration/function-declaration.d.ts +1 -1
- package/dist/tree/state/store.d.ts +2 -0
- package/dist/tree/state/validate.d.ts +2 -2
- package/dist/tree/state/variable-declaration/variable-declaration.d.ts +1 -1
- package/package.json +1 -1
|
@@ -120,10 +120,10 @@ export declare class ActionDescriptorState extends VersionedState implements IAc
|
|
|
120
120
|
toFlatJSON(seenEntities?: Set<EntityId>): ElementShallowTransfer[];
|
|
121
121
|
toGenerationTarget(): IActionDescriptorGenerationTarget;
|
|
122
122
|
toFlatGenerationTarget(seenEntities?: Set<EntityId>): ElementGenerationTarget[];
|
|
123
|
-
|
|
124
|
-
implementAsLoop(parent?: EntityWithLogicScopeState): LoopState;
|
|
125
|
-
implementAsOperation(parent?: EntityWithLogicScopeState, newId?: string): OperationState;
|
|
126
|
-
implementAsCondition(parent?: EntityWithLogicScopeState): ConditionState;
|
|
123
|
+
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;
|
|
127
127
|
clearErrors(): ActionDescriptorState;
|
|
128
128
|
validate(): {
|
|
129
129
|
success: boolean;
|
|
@@ -8,6 +8,7 @@ import { LiteralValueState } from './literal-value';
|
|
|
8
8
|
export interface IEntityRecursionOptions {
|
|
9
9
|
seenEntityMaps?: Map<EntityId, EntityId>;
|
|
10
10
|
seenEntities?: Set<EntityId>;
|
|
11
|
+
timestamp?: string;
|
|
11
12
|
}
|
|
12
13
|
export declare const ENTITY_RECUSION_OPTIONS_DEFAULTS: IEntityRecursionOptions;
|
|
13
14
|
export interface IEntityJSONCloneOptions extends IEntityRecursionOptions {
|
|
@@ -61,7 +61,7 @@ export declare class FunctionDeclarationState extends VersionedState implements
|
|
|
61
61
|
static INMUTABLE_META_PROPERTIES: string[];
|
|
62
62
|
static META_PROPERTIES: string[];
|
|
63
63
|
static MUTABLE_UPSTREAM_PROPERTIES: string[];
|
|
64
|
-
static
|
|
64
|
+
static INMUTABLE_UPSTREAM_PROPERTIES: string[];
|
|
65
65
|
static UPSTREAM_PROPERTIES: string[];
|
|
66
66
|
static MUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
67
67
|
static INMUATABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IProjectTransfer } from '../../definitions';
|
|
2
2
|
import { ProjectState } from './project/project';
|
|
3
|
+
import { UserManagedEntityState } from './types';
|
|
3
4
|
|
|
4
5
|
export declare const CACHED_PROJECTS_BY_ID: {
|
|
5
6
|
[id: string]: ProjectState;
|
|
@@ -8,6 +9,7 @@ export interface IGetProjectOptions {
|
|
|
8
9
|
empty?: boolean;
|
|
9
10
|
}
|
|
10
11
|
export declare function initBaseProjectEntity(data: IProjectTransfer): ProjectState;
|
|
12
|
+
export declare function getEntitiesCreatedSinceInitialization(projectState: ProjectState, preInitDate: string): UserManagedEntityState[];
|
|
11
13
|
export declare function cloneProject(project: ProjectState, { enrich, }?: {
|
|
12
14
|
enrich: boolean;
|
|
13
15
|
}): ProjectState;
|
|
@@ -2,7 +2,7 @@ import { CallableEntityGenerationTarget, ElementGenerationTarget, EntityId, Enti
|
|
|
2
2
|
import { SafeParseReturnType } from 'zod';
|
|
3
3
|
import { EntityError, EntityGenerationError } from './error';
|
|
4
4
|
import { ProjectState } from './project';
|
|
5
|
-
import { CallerEntityState, EntityState, EntityWithValueState, PassThroughCallableEntityState, ValueReadingEntityState, ValueWritingEntityState, VariableState } from '.';
|
|
5
|
+
import { CallerEntityState, EntityState, EntityWithValueState, PassThroughCallableEntityState, UserManagedEntityState, ValueReadingEntityState, ValueWritingEntityState, VariableState } from '.';
|
|
6
6
|
import { IDataTypeCompatible, IDataTypeIncompatibile } from '../utils/data-type';
|
|
7
7
|
|
|
8
8
|
type UnkownEntity = {
|
|
@@ -22,7 +22,7 @@ export declare function validateGeneration(generatedPayload: GeneratedPayload, p
|
|
|
22
22
|
modifiedData: ElementGenerationTarget | null;
|
|
23
23
|
};
|
|
24
24
|
export declare function generateMutablePropertiesExplanation(entityToUpdate: EntityState): string;
|
|
25
|
-
export declare function validateGenerationUpdate(generatedPayload: Partial<UserManagedElementGenerationTarget>, entityToUpdate:
|
|
25
|
+
export declare function validateGenerationUpdate(generatedPayload: Partial<UserManagedElementGenerationTarget>, entityToUpdate: UserManagedEntityState): {
|
|
26
26
|
errors: EntityGenerationError[];
|
|
27
27
|
modifiedData: Partial<UserManagedElementGenerationTarget> | null;
|
|
28
28
|
messageAddition: string;
|
|
@@ -154,7 +154,7 @@ export declare class VariableDeclarationState extends VersionedState implements
|
|
|
154
154
|
setDefaultValue(defaultValue: LiteralValueState): VariableDeclarationState;
|
|
155
155
|
clone(changeSet?: ChangeSet | null, parent?: EntryPointEntityState | ProjectState | null, newId?: string | null, subscribe?: boolean): VariableDeclarationState;
|
|
156
156
|
addInternalCall(internalCall: InternalCallState): VariableDeclarationState;
|
|
157
|
-
createInstance(parent?: EntityWithLogicScopeState | ProjectState, overrides?: Partial<IVariableInstanceTransfer>): VariableInstanceState;
|
|
157
|
+
createInstance(parent?: EntityWithLogicScopeState | ProjectState, changeSet?: ChangeSet | null, overrides?: Partial<IVariableInstanceTransfer>): VariableInstanceState;
|
|
158
158
|
generateUnusedInputs(changeSet?: ChangeSet | null): IChangeSet<VariableDeclarationState>;
|
|
159
159
|
generateUnusedOutputs(changeSet?: ChangeSet | null): IChangeSet<VariableDeclarationState>;
|
|
160
160
|
generateUnusedInternalCalls(changeSet?: ChangeSet | null): IChangeSet<VariableDeclarationState>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elyx-code/project-logic-tree",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6176",
|
|
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",
|