@elyx-code/project-logic-tree 0.0.6217 → 0.0.6219
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/definitions/built-in-base-entities/ids.d.ts +5 -0
- package/dist/index.js +7583 -7285
- package/dist/index.umd.cjs +152 -152
- package/dist/tree/state/definition-entity/definition-entity.d.ts +8 -0
- package/dist/tree/state/definition-entity/validation/validation-schema.d.ts +1 -1
- package/dist/tree/state/function-declaration/function-declaration.d.ts +2 -1
- package/dist/tree/state/literal-value/literal-value.d.ts +4 -2
- package/dist/tree/state/project/project.d.ts +1 -0
- package/dist/tree/utils/index.d.ts +3 -1
- package/dist/tree/utils/shared-data-structure-entity.d.ts +1 -3
- package/package.json +1 -1
|
@@ -71,10 +71,15 @@ export declare class DefinitionEntityState extends VersionedState implements Bas
|
|
|
71
71
|
};
|
|
72
72
|
get interactive(): boolean;
|
|
73
73
|
get allBasePropertiesFromExtendedAndImplementedEntities(): PropertyState[];
|
|
74
|
+
get allBaseMethodsFromExtendedAndImplementedEntities(): (FunctionDeclarationState | ActionDescriptorState)[];
|
|
74
75
|
get extendedPropertiesFromOriginalParents(): PropertyState[];
|
|
75
76
|
get implementedPropertiesFromOriginalParents(): PropertyState[];
|
|
77
|
+
get extendedMethodsFromOriginalParents(): (FunctionDeclarationState | ActionDescriptorState)[];
|
|
78
|
+
get implementedMethodsFromOriginalParents(): (FunctionDeclarationState | ActionDescriptorState)[];
|
|
76
79
|
get extendedProperties(): PropertyState[];
|
|
77
80
|
get ownDeclaredProperties(): PropertyState[];
|
|
81
|
+
get extendedMethods(): FunctionDeclarationState[];
|
|
82
|
+
get ownDeclaredMethods(): FunctionDeclarationState[];
|
|
78
83
|
validateGeneratedUpdate(data: Partial<IDefinitionEntityGenerationTarget>): {
|
|
79
84
|
errors: EntityGenerationError[];
|
|
80
85
|
modifiedData: Partial<IDefinitionEntityGenerationTarget>;
|
|
@@ -110,6 +115,9 @@ export declare class DefinitionEntityState extends VersionedState implements Bas
|
|
|
110
115
|
addAbstractMethod(method: ActionDescriptorState): DefinitionEntityState;
|
|
111
116
|
removeAbstractMethod(method: ActionDescriptorState): DefinitionEntityState;
|
|
112
117
|
initChildren(changeSet?: ChangeSet | null): DefinitionEntityState;
|
|
118
|
+
removeUnrecognizedProperties(changeSet?: ChangeSet | null): IChangeSet<DefinitionEntityState>;
|
|
119
|
+
removeUnrecognizedMethods(changeSet?: ChangeSet | null): IChangeSet<DefinitionEntityState>;
|
|
120
|
+
syncImplementationMethods(changeSet?: ChangeSet | null): IChangeSet<DefinitionEntityState>;
|
|
113
121
|
syncImplementationProperties(changeSet?: ChangeSet | null): IChangeSet<DefinitionEntityState>;
|
|
114
122
|
addExtendedProperties(changeSet?: ChangeSet | null): IChangeSet<DefinitionEntityState>;
|
|
115
123
|
addSuggestions(): DefinitionEntityState;
|
|
@@ -131,7 +131,7 @@ export declare function getDefinitionEntityParentReferenceSchema(): z.ZodUnion<[
|
|
|
131
131
|
entityType: EntityType.DataType;
|
|
132
132
|
entityId: string;
|
|
133
133
|
}>]>;
|
|
134
|
-
export declare function
|
|
134
|
+
export declare function checkExtendsBaseEntityReferencesSchema(): z.ZodArray<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
135
135
|
type: z.ZodLiteral<EntityType.DefinitionEntity>;
|
|
136
136
|
}, "strip", z.ZodTypeAny, {
|
|
137
137
|
type: EntityType.DefinitionEntity;
|
|
@@ -73,6 +73,7 @@ export declare class FunctionDeclarationState extends VersionedState implements
|
|
|
73
73
|
errors: EntityGenerationError[];
|
|
74
74
|
modifiedData: IFunctionDeclarationGenerationTarget;
|
|
75
75
|
};
|
|
76
|
+
get isExtendedMethod(): boolean;
|
|
76
77
|
get returnStatements(): ReturnStatementState[];
|
|
77
78
|
validateGeneratedUpdate(data: Partial<IFunctionDeclarationGenerationTarget>): {
|
|
78
79
|
errors: EntityGenerationError[];
|
|
@@ -111,7 +112,7 @@ export declare class FunctionDeclarationState extends VersionedState implements
|
|
|
111
112
|
APIDelete(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionDeclarationState>;
|
|
112
113
|
APIClone(_?: IEntityPersistanceOptions, ...otherArgs: any[]): Promise<FunctionDeclarationState>;
|
|
113
114
|
APILoadVersion(_: IEntityPersistanceOptions | undefined, versionIdOrBeforeEqualDate: EntityVersion | Date, ...otherArgs: any[]): Promise<IFunctionDeclarationShallowTransfer | null>;
|
|
114
|
-
remove({ ignoreUpstream
|
|
115
|
+
remove({ ignoreUpstream }?: {
|
|
115
116
|
ignoreUpstream: boolean;
|
|
116
117
|
}, changeSet?: ChangeSet | null): IChangeSet;
|
|
117
118
|
restore({}?: {}, changeSet?: ChangeSet | null): IChangeSet<FunctionDeclarationState>;
|
|
@@ -93,7 +93,9 @@ export declare class LiteralValueState extends VersionedState implements BaseSta
|
|
|
93
93
|
addSelfToProject(changeSet?: ChangeSet | null): IChangeSet<LiteralValueState>;
|
|
94
94
|
setParent(parent: DataTypeState | InputMapState | PropertyState | ArgumentDeclarationState | ReturnDeclarationState | VariableDeclarationState | VariableInstanceState | ValueDescriptorState | OutputMapState, changeSet?: ChangeSet | null): LiteralValueState;
|
|
95
95
|
setStandaloneParent(parent: EntityWithValueState): LiteralValueState;
|
|
96
|
-
|
|
96
|
+
setValueAsTypeSingle(valueAsTypeSingle: ValueAsTypeState | null, changeSet?: ChangeSet | null): LiteralValueState;
|
|
97
|
+
setValueAsTypeList(valueAsTypeList: ValueAsTypeState[] | null, changeSet?: ChangeSet | null): LiteralValueState;
|
|
98
|
+
setValueAsType(valueAsTypeSingle: ValueAsTypeState | ValueAsTypeState[] | null, changeSet?: ChangeSet | null): LiteralValueState;
|
|
97
99
|
initChildren(changeSet?: ChangeSet | null): LiteralValueState;
|
|
98
100
|
subscribe(): LiteralValueState;
|
|
99
101
|
unsubscribe(): LiteralValueState;
|
|
@@ -127,6 +129,6 @@ export declare class LiteralValueState extends VersionedState implements BaseSta
|
|
|
127
129
|
getErrors(): EntityError[];
|
|
128
130
|
getShallowErrors(): EntityError[];
|
|
129
131
|
clone(changeSet?: ChangeSet | null, parent?: DataTypeState | InputMapState | PropertyState | ArgumentDeclarationState | ReturnDeclarationState | VariableDeclarationState | VariableInstanceState | ValueDescriptorState | OutputMapState | null, newId?: string | null, subscribe?: boolean): LiteralValueState;
|
|
130
|
-
merge(sourceEntity: LiteralValueState): IChangeSet<LiteralValueState>;
|
|
132
|
+
merge(sourceEntity: LiteralValueState, changeSet?: ChangeSet | null): IChangeSet<LiteralValueState>;
|
|
131
133
|
}
|
|
132
134
|
export type LiteralValuePayloadUnion = LiteralValueState | LiteralValueTypesUnion;
|
|
@@ -98,6 +98,7 @@ export declare class ProjectState extends VersionedState implements IProject, Us
|
|
|
98
98
|
static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
99
99
|
static DOWNSTREAM_PROPERTIES: string[];
|
|
100
100
|
static PROPERTIES: string[];
|
|
101
|
+
static new(): IProjectTransfer;
|
|
101
102
|
static validateGenerationTarget(data: IProjectGenerationTarget, project: ProjectState): {
|
|
102
103
|
errors: EntityGenerationError[];
|
|
103
104
|
modifiedData: IProjectGenerationTarget;
|
|
@@ -265,7 +265,9 @@ export declare function checkIsCallableEntityReachable(entity: CallableEntitySta
|
|
|
265
265
|
};
|
|
266
266
|
export declare function checkIsCanvasEntity(entity: EntityState): boolean;
|
|
267
267
|
export declare function mapActionDescriptorToTypeItRepresents(entity: EntityState): EntityType;
|
|
268
|
-
export declare function
|
|
268
|
+
export declare function checkExtendsBaseEntity(entity: DefinitionEntityState | BuiltInBaseEntityState, baseEntityName: BaseEntityNames): boolean;
|
|
269
|
+
export declare function checkImplementsBaseEntity(entity: DefinitionEntityState | BuiltInBaseEntityState, baseEntityName: BaseEntityNames): boolean;
|
|
270
|
+
export declare function checkHasBaseEntity(entity: DefinitionEntityState | BuiltInBaseEntityState, baseEntityName: BaseEntityNames): boolean;
|
|
269
271
|
export declare function getPeristedEntities(project: ProjectState): DefinitionEntityState[];
|
|
270
272
|
export declare function getDatabaseEntities(project: ProjectState): DefinitionEntityState[];
|
|
271
273
|
export declare function resolvePrimaryKeyProperty(entity: DefinitionEntityState): PropertyState | null;
|
|
@@ -4,9 +4,7 @@ import { BuiltInBaseEntityState, DefinitionEntityState, DataTypeState, EntitySta
|
|
|
4
4
|
export declare function handleBeforeEntityImplementationSideEffects(self: DefinitionEntityState | BuiltInBaseEntityState, changeSet: ChangeSet | null): {
|
|
5
5
|
newEntities: EntityState[];
|
|
6
6
|
};
|
|
7
|
-
export declare function handleAfterEntityImplementationSideEffects(implemented: DefinitionEntityState, changeSet: ChangeSet | null):
|
|
8
|
-
newEntities: EntityState[];
|
|
9
|
-
};
|
|
7
|
+
export declare function handleAfterEntityImplementationSideEffects(implemented: DefinitionEntityState, changeSet: ChangeSet | null): IChangeSet<DefinitionEntityState>;
|
|
10
8
|
export declare function implement(self: DefinitionEntityState | BuiltInBaseEntityState, newEntityName: string, changeSet: ChangeSet | null, newId?: string): DefinitionEntityState;
|
|
11
9
|
export declare function findEntityFromKeys(keys: string[], project: ProjectState): DefinitionEntityState | null;
|
|
12
10
|
export declare function createNestedDataTypeForEntity(entity: DefinitionEntityState, parentDataType: DataTypeState, changeSet: ChangeSet | null, parentRelationType?: DataTypeParentChildRelation): IChangeSet<DataTypeState>;
|
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.6219",
|
|
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",
|