@elyx-code/project-logic-tree 0.0.6198 → 0.0.6200
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 +21 -30
- package/dist/index.umd.cjs +2 -2
- package/dist/tree/state/built-in-base-entity/built-in-base-entity.d.ts +2 -18
- package/dist/tree/state/definition-entity/definition-entity.d.ts +1 -17
- package/dist/tree/utils/shared-data-structure-entity.d.ts +1 -18
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import { ProjectState } from '../project/project';
|
|
|
6
6
|
import { PrimitiveEntityState } from '../primitive-entity';
|
|
7
7
|
import { FunctionDeclarationState } from '../function-declaration';
|
|
8
8
|
import { ActionDescriptorState } from '../action-descriptor';
|
|
9
|
-
import { EntityError
|
|
9
|
+
import { EntityError } from '../../state/error';
|
|
10
10
|
import { EntityState } from '../types';
|
|
11
11
|
import { DefinitionEntityState } from '../definition-entity';
|
|
12
12
|
import { VersionedState } from '../version';
|
|
@@ -55,23 +55,7 @@ export declare class BuiltInBaseEntityState extends VersionedState implements Ba
|
|
|
55
55
|
};
|
|
56
56
|
getErrors(): EntityError[];
|
|
57
57
|
getShallowErrors(): EntityError[];
|
|
58
|
-
implement(newEntityName: string, changeSet?: ChangeSet | null, newId?: string):
|
|
59
|
-
errors: [];
|
|
60
|
-
implemented: DefinitionEntityState;
|
|
61
|
-
entitiesChanges: {
|
|
62
|
-
new: EntityState[];
|
|
63
|
-
updated: EntityState[];
|
|
64
|
-
deleted: EntityState[];
|
|
65
|
-
};
|
|
66
|
-
} | {
|
|
67
|
-
errors: [EntityGenerationError, ...EntityGenerationError[]];
|
|
68
|
-
implemented: null;
|
|
69
|
-
entitiesChanges: {
|
|
70
|
-
new: [];
|
|
71
|
-
updated: [];
|
|
72
|
-
deleted: [];
|
|
73
|
-
};
|
|
74
|
-
};
|
|
58
|
+
implement(newEntityName: string, changeSet?: ChangeSet | null, newId?: string): DefinitionEntityState;
|
|
75
59
|
getAllInteractiveMethods(): FunctionDeclarationState[];
|
|
76
60
|
}
|
|
77
61
|
export type BuiltInBaseEntityPayloadUnion = BuiltInBaseEntityState | BuiltInBaseEntityTypesUnion;
|
|
@@ -144,23 +144,7 @@ export declare class DefinitionEntityState extends VersionedState implements Bas
|
|
|
144
144
|
getShallowErrors(): EntityError[];
|
|
145
145
|
clone(changeSet?: ChangeSet | null, parent?: ProjectState | DataTypeState | null, newId?: string | null, subscribe?: boolean): DefinitionEntityState;
|
|
146
146
|
getFunctionDeclaration(id: EntityId): FunctionDeclarationState | undefined;
|
|
147
|
-
implement(newEntityName: string, changeSet?: ChangeSet | null, newId?: string):
|
|
148
|
-
errors: [];
|
|
149
|
-
implemented: DefinitionEntityState;
|
|
150
|
-
entitiesChanges: {
|
|
151
|
-
new: EntityState[];
|
|
152
|
-
updated: EntityState[];
|
|
153
|
-
deleted: EntityState[];
|
|
154
|
-
};
|
|
155
|
-
} | {
|
|
156
|
-
errors: [EntityGenerationError, ...EntityGenerationError[]];
|
|
157
|
-
implemented: null;
|
|
158
|
-
entitiesChanges: {
|
|
159
|
-
new: [];
|
|
160
|
-
updated: [];
|
|
161
|
-
deleted: [];
|
|
162
|
-
};
|
|
163
|
-
};
|
|
147
|
+
implement(newEntityName: string, changeSet?: ChangeSet | null, newId?: string): DefinitionEntityState;
|
|
164
148
|
getAllInteractiveMethods(): FunctionDeclarationState[];
|
|
165
149
|
inferFromInputs(inputs: VariableInputMapState[], changeSet?: ChangeSet | null): IChangeSet<DefinitionEntityState>;
|
|
166
150
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DataTypeParentChildRelation, EntityId } from '../../definitions';
|
|
2
2
|
import { BuiltInBaseEntityState, DefinitionEntityState, DataTypeState, EntityState, IChangeSet, ProjectState, ChangeSet } from '../state';
|
|
3
|
-
import { EntityGenerationError } from '../state/error';
|
|
4
3
|
|
|
5
4
|
export declare function handleBeforeEntityImplementationSideEffects(self: DefinitionEntityState | BuiltInBaseEntityState, changeSet: ChangeSet | null): {
|
|
6
5
|
newEntities: EntityState[];
|
|
@@ -8,23 +7,7 @@ export declare function handleBeforeEntityImplementationSideEffects(self: Defini
|
|
|
8
7
|
export declare function handleAfterEntityImplementationSideEffects(implemented: DefinitionEntityState, changeSet: ChangeSet | null): {
|
|
9
8
|
newEntities: EntityState[];
|
|
10
9
|
};
|
|
11
|
-
export declare function implement(self: DefinitionEntityState | BuiltInBaseEntityState, newEntityName: string, changeSet: ChangeSet | null, newId?: string):
|
|
12
|
-
errors: [];
|
|
13
|
-
implemented: DefinitionEntityState;
|
|
14
|
-
entitiesChanges: {
|
|
15
|
-
new: EntityState[];
|
|
16
|
-
updated: EntityState[];
|
|
17
|
-
deleted: EntityState[];
|
|
18
|
-
};
|
|
19
|
-
} | {
|
|
20
|
-
errors: [EntityGenerationError, ...EntityGenerationError[]];
|
|
21
|
-
implemented: null;
|
|
22
|
-
entitiesChanges: {
|
|
23
|
-
new: [];
|
|
24
|
-
updated: [];
|
|
25
|
-
deleted: [];
|
|
26
|
-
};
|
|
27
|
-
};
|
|
10
|
+
export declare function implement(self: DefinitionEntityState | BuiltInBaseEntityState, newEntityName: string, changeSet: ChangeSet | null, newId?: string): DefinitionEntityState;
|
|
28
11
|
export declare function findEntityFromKeys(keys: string[], project: ProjectState): DefinitionEntityState | null;
|
|
29
12
|
export declare function createNestedDataTypeForEntity(entity: DefinitionEntityState, parentDataType: DataTypeState, changeSet: ChangeSet | null, parentRelationType?: DataTypeParentChildRelation): IChangeSet<DataTypeState>;
|
|
30
13
|
export declare function resolveDataTypeEntityOrNestedChildrenFromLiteralValue(value: any, parentDataType: DataTypeState, newDefinitionEntityMetadata: {
|
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.6200",
|
|
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",
|