@elyx-code/project-logic-tree 0.0.6110 → 0.0.6111
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/entities/endpoint.d.ts +8 -8
- package/dist/definitions/built-in-base-entities/entities/persisted/properties.d.ts +1 -0
- package/dist/definitions/built-in-base-entities/entities/relational-database/entity.d.ts +13 -7
- package/dist/definitions/built-in-base-entities/loops/counted/loop.d.ts +3 -3
- package/dist/definitions/built-in-base-entities/operations/http-request/http-request.d.ts +7 -7
- package/dist/definitions/built-in-base-entities/operations/string/join-strings.d.ts +3 -3
- package/dist/definitions/built-in-base-entities/primitive-entities.d.ts +2 -2
- package/dist/definitions/logic/value-autogeneration/value-autogeneration.d.ts +2 -2
- package/dist/definitions/mock/default-mock/entities/alt-relational-database/properties.d.ts +6 -5
- package/dist/definitions/mock/default-mock/entities/animal.d.ts +2 -2
- package/dist/definitions/mock/default-mock/entities/base-table/properties.d.ts +7 -6
- package/dist/definitions/mock/default-mock/entities/company/properties.d.ts +2 -2
- package/dist/definitions/mock/default-mock/entities/default-relational-database/properties.d.ts +13 -9
- package/dist/definitions/mock/default-mock/entities/get-company-by-id-endpoint/endpoint-reached-event.d.ts +5 -5
- package/dist/definitions/mock/default-mock/entities/get-company-by-id-endpoint/properties.d.ts +3 -3
- package/dist/definitions/mock/default-mock/entities/plant.d.ts +3 -2
- package/dist/definitions/mock/default-mock/entities/product.d.ts +5 -3
- package/dist/definitions/mock/default-mock/entities/user.d.ts +4 -3
- package/dist/definitions/mock/default-mock/functions/abort-execution/long-wait-return-statement.d.ts +2 -2
- package/dist/definitions/mock/default-mock/functions/abort-execution/small-wait-return-statement.d.ts +2 -2
- package/dist/definitions/mock/default-mock/functions/concurrency-and-waits/function-list-variable.d.ts +2 -2
- package/dist/definitions/mock/default-mock/functions/current-time.d.ts +2 -2
- package/dist/definitions/mock/default-mock/functions/do-math/index.d.ts +3 -3
- package/dist/definitions/mock/default-mock/functions/replace-back-account-in-company/person-not-found-return-error.d.ts +2 -2
- package/dist/definitions/mock/default-mock/loops/global-test-iterate-over-string/loop.d.ts +2 -2
- package/dist/definitions/mock/default-mock/variables/global-data-mapping/employee-dto/company-employee-mapped-DTO.d.ts +2 -2
- package/dist/definitions/mock/default-mock/variables/isTestEnv.d.ts +2 -2
- package/dist/definitions/mock/default-mock/variables/lastTimestamp.d.ts +2 -2
- package/dist/definitions/types/action-descriptor.d.ts +4 -1
- package/dist/definitions/types/base.d.ts +5 -2
- package/dist/definitions/types/data-type.d.ts +4 -7
- package/dist/definitions/types/generic-reference.d.ts +2 -2
- package/dist/definitions/types/index.d.ts +13 -13
- package/dist/definitions/types/input-output-map.d.ts +7 -4
- package/dist/definitions/types/primitives.d.ts +39 -43
- package/dist/definitions/types/property.d.ts +3 -1
- package/dist/definitions/types/variable.d.ts +4 -1
- package/dist/index.js +13036 -12779
- package/dist/index.umd.cjs +194 -182
- package/dist/tree/state/argument-declaration/argument-declaration.d.ts +4 -2
- package/dist/tree/state/argument-declaration/validation/validation-schema.d.ts +12 -12
- package/dist/tree/state/base.d.ts +2 -2
- package/dist/tree/state/built-in-base-entity/validation-schema.d.ts +10 -10
- package/dist/tree/state/custom-entity/validation/validation-schema.d.ts +12 -12
- package/dist/tree/state/data-type/data-type.d.ts +5 -8
- package/dist/tree/state/data-type/validation/validation-schema.d.ts +110 -110
- package/dist/tree/state/index.d.ts +1 -1
- package/dist/tree/state/input-map/input-map.d.ts +4 -4
- package/dist/tree/state/input-map/validation/validation-schema.d.ts +330 -330
- package/dist/tree/state/literal-value/index.d.ts +1 -0
- package/dist/tree/state/literal-value/literal-value.d.ts +103 -0
- package/dist/tree/state/literal-value/validation/logic-validation.d.ts +4 -0
- package/dist/tree/state/literal-value/validation/references.d.ts +5 -0
- package/dist/tree/state/{primitive-value → literal-value}/validation/validation-schema.d.ts +94 -94
- package/dist/tree/state/output-map/output-map.d.ts +4 -2
- package/dist/tree/state/primitive-entity/validation/validation-schema.d.ts +10 -10
- package/dist/tree/state/property/property.d.ts +4 -2
- package/dist/tree/state/property/validation/validation-schema.d.ts +12 -12
- package/dist/tree/state/return-declaration/return-declaration.d.ts +4 -2
- package/dist/tree/state/return-declaration/validation/validation-schema.d.ts +12 -12
- package/dist/tree/state/types/state.d.ts +4 -4
- package/dist/tree/state/value-descriptor/validation/validation-schema.d.ts +2 -2
- package/dist/tree/state/value-descriptor/value-descriptor.d.ts +4 -2
- package/dist/tree/state/variable-declaration/validation/validation-schema.d.ts +64 -64
- package/dist/tree/state/variable-declaration/variable-declaration.d.ts +5 -3
- package/dist/tree/state/variable-instance/validation/validation-schema.d.ts +64 -64
- package/dist/tree/state/variable-instance/variable-instance.d.ts +4 -2
- package/package.json +1 -1
- package/dist/definitions/mock/default-mock/functions/company-dto/variable-mapping.d.ts +0 -0
- package/dist/definitions/mock/default-mock/functions/concurrency-and-waits/return-variables-chain.d.ts +0 -0
- package/dist/tree/state/primitive-value/index.d.ts +0 -1
- package/dist/tree/state/primitive-value/primitive-value.d.ts +0 -97
- package/dist/tree/state/primitive-value/validation/logic-validation.d.ts +0 -4
- package/dist/tree/state/primitive-value/validation/references.d.ts +0 -5
|
@@ -952,20 +952,8 @@ export declare function getVariableInstanceNestedEntitiesSchema(): z.ZodObject<{
|
|
|
952
952
|
entityType: EntityType.GlobalEvent;
|
|
953
953
|
entityId: string;
|
|
954
954
|
};
|
|
955
|
-
|
|
956
|
-
type: EntityType.
|
|
957
|
-
} | {
|
|
958
|
-
type: EntityType.VariableDeclaration;
|
|
959
|
-
} | {
|
|
960
|
-
type: EntityType.VariableInstance;
|
|
961
|
-
} | {
|
|
962
|
-
type: EntityType.ArgumentDeclaration;
|
|
963
|
-
} | {
|
|
964
|
-
type: EntityType.Operation;
|
|
965
|
-
} | {
|
|
966
|
-
type: EntityType.InternalCall;
|
|
967
|
-
} | {
|
|
968
|
-
type: EntityType.FunctionCall;
|
|
955
|
+
dataType: Record<string, any> | {
|
|
956
|
+
type: EntityType.DataType;
|
|
969
957
|
} | null;
|
|
970
958
|
inputs: (Record<string, any> | {
|
|
971
959
|
type: EntityType.InputMap;
|
|
@@ -1094,8 +1082,20 @@ export declare function getVariableInstanceNestedEntitiesSchema(): z.ZodObject<{
|
|
|
1094
1082
|
} | {
|
|
1095
1083
|
type: EntityType.VariableInstance;
|
|
1096
1084
|
})[];
|
|
1097
|
-
|
|
1098
|
-
type: EntityType.
|
|
1085
|
+
readsValue: Record<string, any> | {
|
|
1086
|
+
type: EntityType.OutputMap;
|
|
1087
|
+
} | {
|
|
1088
|
+
type: EntityType.VariableDeclaration;
|
|
1089
|
+
} | {
|
|
1090
|
+
type: EntityType.VariableInstance;
|
|
1091
|
+
} | {
|
|
1092
|
+
type: EntityType.ArgumentDeclaration;
|
|
1093
|
+
} | {
|
|
1094
|
+
type: EntityType.Operation;
|
|
1095
|
+
} | {
|
|
1096
|
+
type: EntityType.InternalCall;
|
|
1097
|
+
} | {
|
|
1098
|
+
type: EntityType.FunctionCall;
|
|
1099
1099
|
} | null;
|
|
1100
1100
|
internalCalls: (Record<string, any> | {
|
|
1101
1101
|
type: EntityType.InternalCall;
|
|
@@ -1218,20 +1218,8 @@ export declare function getVariableInstanceNestedEntitiesSchema(): z.ZodObject<{
|
|
|
1218
1218
|
entityType: EntityType.GlobalEvent;
|
|
1219
1219
|
entityId: string;
|
|
1220
1220
|
};
|
|
1221
|
-
|
|
1222
|
-
type: EntityType.
|
|
1223
|
-
} | {
|
|
1224
|
-
type: EntityType.VariableDeclaration;
|
|
1225
|
-
} | {
|
|
1226
|
-
type: EntityType.VariableInstance;
|
|
1227
|
-
} | {
|
|
1228
|
-
type: EntityType.ArgumentDeclaration;
|
|
1229
|
-
} | {
|
|
1230
|
-
type: EntityType.Operation;
|
|
1231
|
-
} | {
|
|
1232
|
-
type: EntityType.InternalCall;
|
|
1233
|
-
} | {
|
|
1234
|
-
type: EntityType.FunctionCall;
|
|
1221
|
+
dataType: Record<string, any> | {
|
|
1222
|
+
type: EntityType.DataType;
|
|
1235
1223
|
} | null;
|
|
1236
1224
|
inputs: (Record<string, any> | {
|
|
1237
1225
|
type: EntityType.InputMap;
|
|
@@ -1360,8 +1348,20 @@ export declare function getVariableInstanceNestedEntitiesSchema(): z.ZodObject<{
|
|
|
1360
1348
|
} | {
|
|
1361
1349
|
type: EntityType.VariableInstance;
|
|
1362
1350
|
})[];
|
|
1363
|
-
|
|
1364
|
-
type: EntityType.
|
|
1351
|
+
readsValue: Record<string, any> | {
|
|
1352
|
+
type: EntityType.OutputMap;
|
|
1353
|
+
} | {
|
|
1354
|
+
type: EntityType.VariableDeclaration;
|
|
1355
|
+
} | {
|
|
1356
|
+
type: EntityType.VariableInstance;
|
|
1357
|
+
} | {
|
|
1358
|
+
type: EntityType.ArgumentDeclaration;
|
|
1359
|
+
} | {
|
|
1360
|
+
type: EntityType.Operation;
|
|
1361
|
+
} | {
|
|
1362
|
+
type: EntityType.InternalCall;
|
|
1363
|
+
} | {
|
|
1364
|
+
type: EntityType.FunctionCall;
|
|
1365
1365
|
} | null;
|
|
1366
1366
|
internalCalls: (Record<string, any> | {
|
|
1367
1367
|
type: EntityType.InternalCall;
|
|
@@ -2265,20 +2265,8 @@ export declare function getVariableInstanceSchema(): z.ZodObject<z.objectUtil.ex
|
|
|
2265
2265
|
entityId: string;
|
|
2266
2266
|
};
|
|
2267
2267
|
version: number;
|
|
2268
|
-
|
|
2269
|
-
type: EntityType.
|
|
2270
|
-
} | {
|
|
2271
|
-
type: EntityType.VariableDeclaration;
|
|
2272
|
-
} | {
|
|
2273
|
-
type: EntityType.VariableInstance;
|
|
2274
|
-
} | {
|
|
2275
|
-
type: EntityType.ArgumentDeclaration;
|
|
2276
|
-
} | {
|
|
2277
|
-
type: EntityType.Operation;
|
|
2278
|
-
} | {
|
|
2279
|
-
type: EntityType.InternalCall;
|
|
2280
|
-
} | {
|
|
2281
|
-
type: EntityType.FunctionCall;
|
|
2268
|
+
dataType: Record<string, any> | {
|
|
2269
|
+
type: EntityType.DataType;
|
|
2282
2270
|
} | null;
|
|
2283
2271
|
x: number;
|
|
2284
2272
|
y: number;
|
|
@@ -2409,8 +2397,20 @@ export declare function getVariableInstanceSchema(): z.ZodObject<z.objectUtil.ex
|
|
|
2409
2397
|
} | {
|
|
2410
2398
|
type: EntityType.VariableInstance;
|
|
2411
2399
|
})[];
|
|
2412
|
-
|
|
2413
|
-
type: EntityType.
|
|
2400
|
+
readsValue: Record<string, any> | {
|
|
2401
|
+
type: EntityType.OutputMap;
|
|
2402
|
+
} | {
|
|
2403
|
+
type: EntityType.VariableDeclaration;
|
|
2404
|
+
} | {
|
|
2405
|
+
type: EntityType.VariableInstance;
|
|
2406
|
+
} | {
|
|
2407
|
+
type: EntityType.ArgumentDeclaration;
|
|
2408
|
+
} | {
|
|
2409
|
+
type: EntityType.Operation;
|
|
2410
|
+
} | {
|
|
2411
|
+
type: EntityType.InternalCall;
|
|
2412
|
+
} | {
|
|
2413
|
+
type: EntityType.FunctionCall;
|
|
2414
2414
|
} | null;
|
|
2415
2415
|
internalCalls: (Record<string, any> | {
|
|
2416
2416
|
type: EntityType.InternalCall;
|
|
@@ -2536,20 +2536,8 @@ export declare function getVariableInstanceSchema(): z.ZodObject<z.objectUtil.ex
|
|
|
2536
2536
|
entityId: string;
|
|
2537
2537
|
};
|
|
2538
2538
|
version: number;
|
|
2539
|
-
|
|
2540
|
-
type: EntityType.
|
|
2541
|
-
} | {
|
|
2542
|
-
type: EntityType.VariableDeclaration;
|
|
2543
|
-
} | {
|
|
2544
|
-
type: EntityType.VariableInstance;
|
|
2545
|
-
} | {
|
|
2546
|
-
type: EntityType.ArgumentDeclaration;
|
|
2547
|
-
} | {
|
|
2548
|
-
type: EntityType.Operation;
|
|
2549
|
-
} | {
|
|
2550
|
-
type: EntityType.InternalCall;
|
|
2551
|
-
} | {
|
|
2552
|
-
type: EntityType.FunctionCall;
|
|
2539
|
+
dataType: Record<string, any> | {
|
|
2540
|
+
type: EntityType.DataType;
|
|
2553
2541
|
} | null;
|
|
2554
2542
|
x: number;
|
|
2555
2543
|
y: number;
|
|
@@ -2680,8 +2668,20 @@ export declare function getVariableInstanceSchema(): z.ZodObject<z.objectUtil.ex
|
|
|
2680
2668
|
} | {
|
|
2681
2669
|
type: EntityType.VariableInstance;
|
|
2682
2670
|
})[];
|
|
2683
|
-
|
|
2684
|
-
type: EntityType.
|
|
2671
|
+
readsValue: Record<string, any> | {
|
|
2672
|
+
type: EntityType.OutputMap;
|
|
2673
|
+
} | {
|
|
2674
|
+
type: EntityType.VariableDeclaration;
|
|
2675
|
+
} | {
|
|
2676
|
+
type: EntityType.VariableInstance;
|
|
2677
|
+
} | {
|
|
2678
|
+
type: EntityType.ArgumentDeclaration;
|
|
2679
|
+
} | {
|
|
2680
|
+
type: EntityType.Operation;
|
|
2681
|
+
} | {
|
|
2682
|
+
type: EntityType.InternalCall;
|
|
2683
|
+
} | {
|
|
2684
|
+
type: EntityType.FunctionCall;
|
|
2685
2685
|
} | null;
|
|
2686
2686
|
internalCalls: (Record<string, any> | {
|
|
2687
2687
|
type: EntityType.InternalCall;
|
|
@@ -8,7 +8,7 @@ import { VariableOutputMapState } from '../output-map';
|
|
|
8
8
|
import { InternalCallState } from '../internal-call';
|
|
9
9
|
import { VariableDeclarationState } from '../variable-declaration';
|
|
10
10
|
import { EntityError, EntityGenerationError } from '../error';
|
|
11
|
-
import {
|
|
11
|
+
import { LiteralValueState } from '../literal-value';
|
|
12
12
|
import { DataTypeState } from '../data-type';
|
|
13
13
|
|
|
14
14
|
export declare class VariableInstanceState implements IVariableInstance, BaseState, UserManagedEntityStateFunctionality, ValueWritingEntityClass, ValueReadingEntityClass, BaseCanvasDraggableState, ChildEntityState, EntityWithValueClass, PassThroughCallableEntityClass, CallableEntityClass {
|
|
@@ -18,6 +18,7 @@ export declare class VariableInstanceState implements IVariableInstance, BaseSta
|
|
|
18
18
|
x: number;
|
|
19
19
|
y: number;
|
|
20
20
|
readonly type: EntityType.VariableInstance;
|
|
21
|
+
defaultValue: LiteralValueState | null;
|
|
21
22
|
writesValues: ValueReadingEntityState[];
|
|
22
23
|
readsValue: ValueWritingEntityState | null;
|
|
23
24
|
declaration: VariableDeclarationState;
|
|
@@ -118,7 +119,8 @@ export declare class VariableInstanceState implements IVariableInstance, BaseSta
|
|
|
118
119
|
};
|
|
119
120
|
getErrors(): EntityError[];
|
|
120
121
|
getShallowErrors(): EntityError[];
|
|
121
|
-
getDefaultValue():
|
|
122
|
+
getDefaultValue(): LiteralValueState | null;
|
|
123
|
+
setDefaultValue(value: LiteralValueState): VariableInstanceState;
|
|
122
124
|
clone(_?: EntryPointEntityState): VariableInstanceState;
|
|
123
125
|
addInternalCall(internalCall: InternalCallState): VariableInstanceState;
|
|
124
126
|
setDeclaration(declaration: VariableDeclarationState): VariableInstanceState;
|
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.6111",
|
|
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",
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './primitive-value';
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { IPrimitiveValue, IPrimitiveValueTransfer, EntityId, EntityType, EntityVersion, PrimitiveTypes, IPrimitiveValueReference, ValueAutogenerationOptions, PrimitiveValueType, IPrimitiveValueShallowTransfer, ElementShallowTransfer, IPrimitiveValueGenerationTarget, ElementGenerationTarget, PrimitiveValueTypesUnion, PrimitiveValueParentChildRelation } from '../../../definitions';
|
|
2
|
-
import { ProjectState } from '../project';
|
|
3
|
-
import { CustomEntityState } from '../custom-entity';
|
|
4
|
-
import { DataTypeState } from '../data-type';
|
|
5
|
-
import { InputMapState } from '../input-map';
|
|
6
|
-
import { ZodError } from 'zod';
|
|
7
|
-
import { BaseState, ChildEntityState, UserManagedEntityStateFunctionality } from '../base';
|
|
8
|
-
import { FunctionDeclarationState } from '../function-declaration';
|
|
9
|
-
import { EntityError, EntityGenerationError } from '../../state/error';
|
|
10
|
-
import { OperationState } from '../operation';
|
|
11
|
-
import { EntityState, EntityWithValueState, IChangeSet } from '../types';
|
|
12
|
-
|
|
13
|
-
export type ValueAsTypeState = CustomEntityState | FunctionDeclarationState | OperationState;
|
|
14
|
-
export declare class PrimitiveValueState implements BaseState, UserManagedEntityStateFunctionality, ChildEntityState, IPrimitiveValue {
|
|
15
|
-
initialData: IPrimitiveValue | IPrimitiveValueTransfer;
|
|
16
|
-
readonly type: EntityType.PrimitiveValue;
|
|
17
|
-
id: EntityId;
|
|
18
|
-
version: EntityVersion;
|
|
19
|
-
name: PrimitiveTypes;
|
|
20
|
-
parentRelationType: PrimitiveValueParentChildRelation | null;
|
|
21
|
-
autogeneration: ValueAutogenerationOptions | null;
|
|
22
|
-
value: PrimitiveValueType;
|
|
23
|
-
valueAsType: ValueAsTypeState | ValueAsTypeState[] | null;
|
|
24
|
-
errors: EntityError[];
|
|
25
|
-
parent: DataTypeState | InputMapState;
|
|
26
|
-
standaloneParent: EntityWithValueState;
|
|
27
|
-
project: ProjectState;
|
|
28
|
-
initialized: boolean;
|
|
29
|
-
standalone: boolean;
|
|
30
|
-
constructor(initialEntityData: IPrimitiveValue | IPrimitiveValueTransfer, parentProjectState: ProjectState);
|
|
31
|
-
static MUTABLE_BASE_PROPERTIES: string[];
|
|
32
|
-
static INMUTABLE_BASE_PROPERTIES: string[];
|
|
33
|
-
static BASE_PROPERTIES: string[];
|
|
34
|
-
static MUTABLE_META_PROPERTIES: string[];
|
|
35
|
-
static INMUTABLE_META_PROPERTIES: string[];
|
|
36
|
-
static META_PROPERTIES: string[];
|
|
37
|
-
static MUTABLE_UPSTREAM_PROPERTIES: string[];
|
|
38
|
-
static INMUTABLE_UPSTREAM_PROPERTIES: string[];
|
|
39
|
-
static UPSTREAM_PROPERTIES: string[];
|
|
40
|
-
static MUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
41
|
-
static INMUTABLE_DOWNSTREAM_PROPERTIES: string[];
|
|
42
|
-
static DOWNSTREAM_PROPERTIES: string[];
|
|
43
|
-
static PROPERTIES: string[];
|
|
44
|
-
static fromGenerationTarget(data: IPrimitiveValueGenerationTarget, parentProjectState: ProjectState): PrimitiveValueState;
|
|
45
|
-
static validateGenerationTarget(data: IPrimitiveValueGenerationTarget, project: ProjectState): {
|
|
46
|
-
errors: EntityGenerationError[];
|
|
47
|
-
modifiedData: IPrimitiveValueGenerationTarget;
|
|
48
|
-
};
|
|
49
|
-
validateGeneratedUpdate(data: Partial<IPrimitiveValueGenerationTarget>): {
|
|
50
|
-
errors: EntityGenerationError[];
|
|
51
|
-
modifiedData: Partial<IPrimitiveValueGenerationTarget>;
|
|
52
|
-
};
|
|
53
|
-
addSelfToProject(): IChangeSet<PrimitiveValueState>;
|
|
54
|
-
setParent(parent: DataTypeState | InputMapState): PrimitiveValueState;
|
|
55
|
-
setStandaloneParent(parent: EntityWithValueState): PrimitiveValueState;
|
|
56
|
-
setValueAsType(valueAsType: ValueAsTypeState | ValueAsTypeState[] | null): PrimitiveValueState;
|
|
57
|
-
initChildren(): PrimitiveValueState;
|
|
58
|
-
subscribe(): PrimitiveValueState;
|
|
59
|
-
unsubscribe(): PrimitiveValueState;
|
|
60
|
-
sync(data: Partial<IPrimitiveValue>): PrimitiveValueState;
|
|
61
|
-
load(): Promise<PrimitiveValueState>;
|
|
62
|
-
create(): Promise<PrimitiveValueState>;
|
|
63
|
-
update(_: Partial<PrimitiveValueTypesUnion>): Promise<PrimitiveValueState>;
|
|
64
|
-
delete(): Promise<PrimitiveValueState>;
|
|
65
|
-
remove({ ignoreUpstream: _, seenEntities, }?: {
|
|
66
|
-
ignoreUpstream: boolean;
|
|
67
|
-
seenEntities: Set<string>;
|
|
68
|
-
}): {
|
|
69
|
-
affected: EntityState[];
|
|
70
|
-
removed: EntityState[];
|
|
71
|
-
};
|
|
72
|
-
restore({ seenEntities }?: {
|
|
73
|
-
seenEntities: Set<string>;
|
|
74
|
-
}): {
|
|
75
|
-
affected: EntityState[];
|
|
76
|
-
self: PrimitiveValueState;
|
|
77
|
-
};
|
|
78
|
-
toFlat(seenEntities?: Set<string>): EntityState[];
|
|
79
|
-
toFlatIds(seenEntities?: Set<string>): EntityId[];
|
|
80
|
-
toJSON(): IPrimitiveValueTransfer;
|
|
81
|
-
toReference(): IPrimitiveValueReference;
|
|
82
|
-
toShallowJSON(): IPrimitiveValueShallowTransfer;
|
|
83
|
-
toFlatJSON(seenEntities?: Set<string>): ElementShallowTransfer[];
|
|
84
|
-
toGenerationTarget(): IPrimitiveValueGenerationTarget;
|
|
85
|
-
toFlatGenerationTarget(seenEntities?: Set<string>): ElementGenerationTarget[];
|
|
86
|
-
clearErrors(): PrimitiveValueState;
|
|
87
|
-
validate(): {
|
|
88
|
-
success: boolean;
|
|
89
|
-
error: ZodError | null;
|
|
90
|
-
data: IPrimitiveValueTransfer | null;
|
|
91
|
-
};
|
|
92
|
-
getErrors(): EntityError[];
|
|
93
|
-
getShallowErrors(): EntityError[];
|
|
94
|
-
clone(parent?: DataTypeState | InputMapState | null, newId?: string | null, subscribe?: boolean): PrimitiveValueState;
|
|
95
|
-
merge(sourceEntity: PrimitiveValueState): IChangeSet<PrimitiveValueState>;
|
|
96
|
-
}
|
|
97
|
-
export type PrimitiveValuePayloadUnion = PrimitiveValueState | PrimitiveValueTypesUnion;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { IPrimitiveValueGenerationTarget } from '../../../../definitions';
|
|
2
|
-
import { EntityGenerationError } from '../../error';
|
|
3
|
-
import { ProjectState } from '../../project';
|
|
4
|
-
|
|
5
|
-
export declare function validateReferenceTypes(data: IPrimitiveValueGenerationTarget, project: ProjectState): EntityGenerationError[];
|