@elyx-code/project-logic-tree 0.0.6084 → 0.0.6086

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.
@@ -17,6 +17,7 @@ import { EntityError, EntityGenerationError } from '../error';
17
17
  import { InputMapState, VariableInputMapState } from '../input-map';
18
18
  import { OutputMapState } from '../output-map';
19
19
 
20
+ export type DataTypeStateEntityOption = CustomEntityState | PrimitiveEntityState | ActionDescriptorState | BuiltInBaseEntityState | PrimitiveValueState;
20
21
  export declare class DataTypeState implements IDataType, UserManagedEntityStateFunctionality, BaseState, ChildEntityState {
21
22
  initialData: IDataType | IDataTypeTransfer;
22
23
  readonly id: EntityId;
@@ -30,7 +31,7 @@ export declare class DataTypeState implements IDataType, UserManagedEntityStateF
30
31
  parentRelationType?: DataTypeParentChildRelation;
31
32
  like: boolean;
32
33
  defaultValue: PrimitiveValueState | null;
33
- entity: CustomEntityState | PrimitiveEntityState | ActionDescriptorState | BuiltInBaseEntityState | null;
34
+ entity: CustomEntityState | PrimitiveEntityState | ActionDescriptorState | BuiltInBaseEntityState | PrimitiveValueState | null;
34
35
  andChildrenGroup: DataTypeState[] | null;
35
36
  orChildrenGroup: DataTypeState[] | null;
36
37
  project: ProjectState;
@@ -107,7 +108,7 @@ export declare class DataTypeState implements IDataType, UserManagedEntityStateF
107
108
  addToOrGroup(child: DataTypeState): DataTypeState;
108
109
  getDefaultValue(): PrimitiveValueState | null;
109
110
  setDefaultValue(value: PrimitiveValueState): DataTypeState;
110
- setEntity(entity: CustomEntityState | PrimitiveEntityState | ActionDescriptorState | BuiltInBaseEntityState | null): DataTypeState;
111
+ setEntity(entity: CustomEntityState | PrimitiveEntityState | ActionDescriptorState | BuiltInBaseEntityState | PrimitiveValueState | null): DataTypeState;
111
112
  isResolved(): boolean;
112
113
  isObject(): boolean;
113
114
  hasStrictObjectStructure(): boolean;
@@ -1,4 +1,4 @@
1
- import { IPrimitiveValue, IPrimitiveValueTransfer, EntityId, EntityType, EntityVersion, PrimitiveTypes, IPrimitiveValueReference, ValueAutogenerationOptions, PrimitiveValueType, IPrimitiveValueShallowTransfer, ElementShallowTransfer, IPrimitiveValueGenerationTarget, ElementGenerationTarget, PrimitiveValueTypesUnion } from '../../../definitions';
1
+ import { IPrimitiveValue, IPrimitiveValueTransfer, EntityId, EntityType, EntityVersion, PrimitiveTypes, IPrimitiveValueReference, ValueAutogenerationOptions, PrimitiveValueType, IPrimitiveValueShallowTransfer, ElementShallowTransfer, IPrimitiveValueGenerationTarget, ElementGenerationTarget, PrimitiveValueTypesUnion, PrimitiveValueParentChildRelation } from '../../../definitions';
2
2
  import { ProjectState } from '../project';
3
3
  import { CustomEntityState } from '../custom-entity';
4
4
  import { DataTypeState } from '../data-type';
@@ -17,6 +17,7 @@ export declare class PrimitiveValueState implements BaseState, UserManagedEntity
17
17
  id: EntityId;
18
18
  version: EntityVersion;
19
19
  name: PrimitiveTypes;
20
+ parentRelationType: PrimitiveValueParentChildRelation | null;
20
21
  autogeneration: ValueAutogenerationOptions | null;
21
22
  value: PrimitiveValueType;
22
23
  valueAsType: ValueAsTypeState | ValueAsTypeState[] | null;
@@ -169,3 +169,4 @@ export declare function getPeristedEntities(project: ProjectState): CustomEntity
169
169
  export declare function getDatabaseEntities(project: ProjectState): CustomEntityState[];
170
170
  export declare function resolvePrimaryKeyProperty(entity: CustomEntityState): PropertyState | null;
171
171
  export declare function getColumnProperties(entity: CustomEntityState): PropertyState[];
172
+ export declare function getDatabaseEntity(entity: CustomEntityState): CustomEntityState | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elyx-code/project-logic-tree",
3
- "version": "0.0.6084",
3
+ "version": "0.0.6086",
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",