@elyx-code/project-logic-tree 0.0.6110 → 0.0.6112

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.
Files changed (74) hide show
  1. package/dist/definitions/built-in-base-entities/entities/endpoint.d.ts +8 -8
  2. package/dist/definitions/built-in-base-entities/entities/persisted/properties.d.ts +1 -0
  3. package/dist/definitions/built-in-base-entities/entities/relational-database/entity.d.ts +13 -7
  4. package/dist/definitions/built-in-base-entities/loops/counted/loop.d.ts +3 -3
  5. package/dist/definitions/built-in-base-entities/operations/http-request/http-request.d.ts +7 -7
  6. package/dist/definitions/built-in-base-entities/operations/string/join-strings.d.ts +3 -3
  7. package/dist/definitions/built-in-base-entities/primitive-entities.d.ts +2 -2
  8. package/dist/definitions/logic/value-autogeneration/value-autogeneration.d.ts +2 -2
  9. package/dist/definitions/mock/default-mock/entities/alt-relational-database/properties.d.ts +6 -5
  10. package/dist/definitions/mock/default-mock/entities/animal.d.ts +2 -2
  11. package/dist/definitions/mock/default-mock/entities/base-table/properties.d.ts +7 -6
  12. package/dist/definitions/mock/default-mock/entities/company/properties.d.ts +2 -2
  13. package/dist/definitions/mock/default-mock/entities/default-relational-database/properties.d.ts +13 -9
  14. package/dist/definitions/mock/default-mock/entities/get-company-by-id-endpoint/endpoint-reached-event.d.ts +5 -5
  15. package/dist/definitions/mock/default-mock/entities/get-company-by-id-endpoint/properties.d.ts +3 -3
  16. package/dist/definitions/mock/default-mock/entities/plant.d.ts +3 -2
  17. package/dist/definitions/mock/default-mock/entities/product.d.ts +5 -3
  18. package/dist/definitions/mock/default-mock/entities/user.d.ts +4 -3
  19. package/dist/definitions/mock/default-mock/functions/abort-execution/long-wait-return-statement.d.ts +2 -2
  20. package/dist/definitions/mock/default-mock/functions/abort-execution/small-wait-return-statement.d.ts +2 -2
  21. package/dist/definitions/mock/default-mock/functions/concurrency-and-waits/function-list-variable.d.ts +2 -2
  22. package/dist/definitions/mock/default-mock/functions/current-time.d.ts +2 -2
  23. package/dist/definitions/mock/default-mock/functions/do-math/index.d.ts +3 -3
  24. package/dist/definitions/mock/default-mock/functions/replace-back-account-in-company/person-not-found-return-error.d.ts +2 -2
  25. package/dist/definitions/mock/default-mock/loops/global-test-iterate-over-string/loop.d.ts +2 -2
  26. package/dist/definitions/mock/default-mock/variables/global-data-mapping/employee-dto/company-employee-mapped-DTO.d.ts +2 -2
  27. package/dist/definitions/mock/default-mock/variables/isTestEnv.d.ts +2 -2
  28. package/dist/definitions/mock/default-mock/variables/lastTimestamp.d.ts +2 -2
  29. package/dist/definitions/types/action-descriptor.d.ts +4 -1
  30. package/dist/definitions/types/base.d.ts +5 -2
  31. package/dist/definitions/types/data-type.d.ts +4 -7
  32. package/dist/definitions/types/generic-reference.d.ts +2 -2
  33. package/dist/definitions/types/index.d.ts +13 -13
  34. package/dist/definitions/types/input-output-map.d.ts +7 -4
  35. package/dist/definitions/types/primitives.d.ts +39 -43
  36. package/dist/definitions/types/property.d.ts +3 -1
  37. package/dist/definitions/types/variable.d.ts +4 -1
  38. package/dist/index.js +13038 -12781
  39. package/dist/index.umd.cjs +194 -182
  40. package/dist/tree/state/argument-declaration/argument-declaration.d.ts +4 -2
  41. package/dist/tree/state/argument-declaration/validation/validation-schema.d.ts +12 -12
  42. package/dist/tree/state/base.d.ts +2 -2
  43. package/dist/tree/state/built-in-base-entity/validation-schema.d.ts +10 -10
  44. package/dist/tree/state/custom-entity/validation/validation-schema.d.ts +12 -12
  45. package/dist/tree/state/data-type/data-type.d.ts +5 -8
  46. package/dist/tree/state/data-type/validation/validation-schema.d.ts +110 -110
  47. package/dist/tree/state/index.d.ts +1 -1
  48. package/dist/tree/state/input-map/input-map.d.ts +4 -4
  49. package/dist/tree/state/input-map/validation/validation-schema.d.ts +330 -330
  50. package/dist/tree/state/literal-value/index.d.ts +1 -0
  51. package/dist/tree/state/literal-value/literal-value.d.ts +103 -0
  52. package/dist/tree/state/literal-value/validation/logic-validation.d.ts +4 -0
  53. package/dist/tree/state/literal-value/validation/references.d.ts +5 -0
  54. package/dist/tree/state/{primitive-value → literal-value}/validation/validation-schema.d.ts +94 -94
  55. package/dist/tree/state/output-map/output-map.d.ts +4 -2
  56. package/dist/tree/state/primitive-entity/validation/validation-schema.d.ts +10 -10
  57. package/dist/tree/state/property/property.d.ts +4 -2
  58. package/dist/tree/state/property/validation/validation-schema.d.ts +12 -12
  59. package/dist/tree/state/return-declaration/return-declaration.d.ts +4 -2
  60. package/dist/tree/state/return-declaration/validation/validation-schema.d.ts +12 -12
  61. package/dist/tree/state/types/state.d.ts +4 -4
  62. package/dist/tree/state/value-descriptor/validation/validation-schema.d.ts +2 -2
  63. package/dist/tree/state/value-descriptor/value-descriptor.d.ts +4 -2
  64. package/dist/tree/state/variable-declaration/validation/validation-schema.d.ts +64 -64
  65. package/dist/tree/state/variable-declaration/variable-declaration.d.ts +5 -3
  66. package/dist/tree/state/variable-instance/validation/validation-schema.d.ts +64 -64
  67. package/dist/tree/state/variable-instance/variable-instance.d.ts +4 -2
  68. package/package.json +1 -1
  69. package/dist/definitions/mock/default-mock/functions/company-dto/variable-mapping.d.ts +0 -0
  70. package/dist/definitions/mock/default-mock/functions/concurrency-and-waits/return-variables-chain.d.ts +0 -0
  71. package/dist/tree/state/primitive-value/index.d.ts +0 -1
  72. package/dist/tree/state/primitive-value/primitive-value.d.ts +0 -97
  73. package/dist/tree/state/primitive-value/validation/logic-validation.d.ts +0 -4
  74. package/dist/tree/state/primitive-value/validation/references.d.ts +0 -5
@@ -8,7 +8,7 @@ import { VariableDeclarationState } from '../variable-declaration';
8
8
  import { VariableInstanceState } from '../variable-instance';
9
9
  import { PropertyState } from '../property';
10
10
  import { EntityError, EntityGenerationError } from '../../state/error';
11
- import { PrimitiveValueState } from '../primitive-value';
11
+ import { LiteralValueState } from '../literal-value';
12
12
  import { DataTypeState } from '../data-type';
13
13
  import { ValueDescriptorState } from '../value-descriptor';
14
14
 
@@ -19,6 +19,7 @@ export declare class OutputMapState implements IOutputMap, UserManagedEntityStat
19
19
  index: number;
20
20
  readonly type: EntityType.OutputMap;
21
21
  parentRelationType?: OutputMapParentChildRelation;
22
+ defaultValue: LiteralValueState | null;
22
23
  declaration: ReturnDeclarationState | PropertyState | ValueDescriptorState;
23
24
  writesValues: ValueReadingEntityState[];
24
25
  dataType: DataTypeState | null;
@@ -94,7 +95,8 @@ export declare class OutputMapState implements IOutputMap, UserManagedEntityStat
94
95
  };
95
96
  getErrors(): EntityError[];
96
97
  getShallowErrors(): EntityError[];
97
- getDefaultValue(): PrimitiveValueState | null;
98
+ getDefaultValue(): LiteralValueState | null;
99
+ setDefaultValue(defaultValue: LiteralValueState): OutputMapState;
98
100
  clone(_?: PassThroughCallableEntityState): OutputMapState;
99
101
  getDataType(): DataTypeState | null;
100
102
  }
@@ -36,15 +36,15 @@ export declare function getPrimitiveEntityBaseSchema(): z.ZodObject<{
36
36
  type: EntityType.PrimitiveEntity;
37
37
  name: string;
38
38
  description: string | null;
39
- static: boolean;
40
39
  abstract: boolean;
40
+ static: boolean;
41
41
  }, {
42
42
  id: string;
43
43
  type: EntityType.PrimitiveEntity;
44
44
  name: string;
45
45
  description: string | null;
46
- static: boolean;
47
46
  abstract: boolean;
47
+ static: boolean;
48
48
  }>;
49
49
  export declare function getPrimitiveEntityMetaSchema(): z.ZodObject<z.objectUtil.extendShape<{
50
50
  id: z.ZodString;
@@ -61,16 +61,16 @@ export declare function getPrimitiveEntityMetaSchema(): z.ZodObject<z.objectUtil
61
61
  name: string;
62
62
  description: string | null;
63
63
  version: number;
64
- static: boolean;
65
64
  abstract: boolean;
65
+ static: boolean;
66
66
  }, {
67
67
  id: string;
68
68
  type: EntityType.PrimitiveEntity;
69
69
  name: string;
70
70
  description: string | null;
71
71
  version: number;
72
- static: boolean;
73
72
  abstract: boolean;
73
+ static: boolean;
74
74
  }>;
75
75
  export declare function getPrimitiveEntityGenericGenerationTargetSchema(): z.ZodObject<z.objectUtil.extendShape<{
76
76
  id: z.ZodString;
@@ -84,15 +84,15 @@ export declare function getPrimitiveEntityGenericGenerationTargetSchema(): z.Zod
84
84
  type: EntityType.PrimitiveEntity;
85
85
  name: string;
86
86
  description: string | null;
87
- static: boolean;
88
87
  abstract: boolean;
88
+ static: boolean;
89
89
  }, {
90
90
  id: string;
91
91
  type: EntityType.PrimitiveEntity;
92
92
  name: string;
93
93
  description: string | null;
94
- static: boolean;
95
94
  abstract: boolean;
95
+ static: boolean;
96
96
  }>;
97
97
  export declare function getPrimitiveEntityNestedEntitiesSchema(): z.ZodObject<{
98
98
  properties: z.ZodArray<z.ZodUnion<[z.ZodObject<{
@@ -215,6 +215,8 @@ export declare function getPrimitiveEntitySchema(): z.ZodObject<z.objectUtil.ext
215
215
  type: EntityType.BuiltInBaseEntity;
216
216
  })[];
217
217
  version: number;
218
+ abstract: boolean;
219
+ static: boolean;
218
220
  methods: (Record<string, any> | {
219
221
  type: EntityType.FunctionDeclaration;
220
222
  })[];
@@ -224,8 +226,6 @@ export declare function getPrimitiveEntitySchema(): z.ZodObject<z.objectUtil.ext
224
226
  abstractMethods: (Record<string, any> | {
225
227
  type: EntityType.ActionDescriptor;
226
228
  })[];
227
- static: boolean;
228
- abstract: boolean;
229
229
  }, {
230
230
  id: string;
231
231
  type: EntityType.PrimitiveEntity;
@@ -237,6 +237,8 @@ export declare function getPrimitiveEntitySchema(): z.ZodObject<z.objectUtil.ext
237
237
  type: EntityType.BuiltInBaseEntity;
238
238
  })[];
239
239
  version: number;
240
+ abstract: boolean;
241
+ static: boolean;
240
242
  methods: (Record<string, any> | {
241
243
  type: EntityType.FunctionDeclaration;
242
244
  })[];
@@ -246,6 +248,4 @@ export declare function getPrimitiveEntitySchema(): z.ZodObject<z.objectUtil.ext
246
248
  abstractMethods: (Record<string, any> | {
247
249
  type: EntityType.ActionDescriptor;
248
250
  })[];
249
- static: boolean;
250
- abstract: boolean;
251
251
  }>;
@@ -7,7 +7,7 @@ import { PrimitiveEntityState } from '../primitive-entity';
7
7
  import { CustomEntityState } from '../custom-entity';
8
8
  import { BuiltInBaseEntityState } from '../built-in-base-entity';
9
9
  import { EntityError, EntityGenerationError } from '../error';
10
- import { PrimitiveValueState } from '../primitive-value';
10
+ import { LiteralValueState } from '../literal-value';
11
11
  import { EntityState, IChangeSet } from '../types';
12
12
 
13
13
  export declare class PropertyState implements IProperty, UserManagedEntityStateFunctionality, BaseState, ChildEntityState, EntityWithValueClass {
@@ -23,6 +23,7 @@ export declare class PropertyState implements IProperty, UserManagedEntityStateF
23
23
  required: boolean;
24
24
  readonly type: EntityType.Property;
25
25
  hidden: boolean;
26
+ defaultValue: LiteralValueState | null;
26
27
  dataType: DataTypeState | null;
27
28
  implements: PropertyState | null;
28
29
  project: ProjectState;
@@ -93,10 +94,11 @@ export declare class PropertyState implements IProperty, UserManagedEntityStateF
93
94
  };
94
95
  getErrors(): EntityError[];
95
96
  getShallowErrors(): EntityError[];
96
- getDefaultValue(): PrimitiveValueState | null;
97
97
  clone(parent?: CustomEntityState | null, newId?: string | null, subscribe?: boolean): PropertyState;
98
98
  setDataType(dataType: DataTypeState): PropertyState;
99
99
  removeDataType(): PropertyState;
100
100
  getDataType(): DataTypeState | null;
101
+ getDefaultValue(): LiteralValueState | null;
102
+ setDefaultValue(value: LiteralValueState): PropertyState;
101
103
  }
102
104
  export type PropertyPayloadUnion = PropertyState | PropertyTypesUnion;
@@ -40,8 +40,8 @@ export declare function getPropertyBaseSchema(): z.ZodObject<{
40
40
  description: string | null;
41
41
  required: boolean;
42
42
  private: boolean;
43
- static: boolean;
44
43
  abstract: boolean;
44
+ static: boolean;
45
45
  }, {
46
46
  id: string;
47
47
  type: EntityType.Property;
@@ -49,8 +49,8 @@ export declare function getPropertyBaseSchema(): z.ZodObject<{
49
49
  description: string | null;
50
50
  required: boolean;
51
51
  private: boolean;
52
- static: boolean;
53
52
  abstract: boolean;
53
+ static: boolean;
54
54
  }>;
55
55
  export declare function getPropertyMetaSchema(): z.ZodObject<z.objectUtil.extendShape<{
56
56
  id: z.ZodString;
@@ -73,8 +73,8 @@ export declare function getPropertyMetaSchema(): z.ZodObject<z.objectUtil.extend
73
73
  private: boolean;
74
74
  version: number;
75
75
  index: number;
76
- static: boolean;
77
76
  abstract: boolean;
77
+ static: boolean;
78
78
  }, {
79
79
  id: string;
80
80
  type: EntityType.Property;
@@ -84,8 +84,8 @@ export declare function getPropertyMetaSchema(): z.ZodObject<z.objectUtil.extend
84
84
  private: boolean;
85
85
  version: number;
86
86
  index: number;
87
- static: boolean;
88
87
  abstract: boolean;
88
+ static: boolean;
89
89
  }>;
90
90
  export declare function getPropertyGenerationTargetSchema(): z.ZodObject<z.objectUtil.extendShape<{
91
91
  id: z.ZodString;
@@ -103,8 +103,8 @@ export declare function getPropertyGenerationTargetSchema(): z.ZodObject<z.objec
103
103
  description: string | null;
104
104
  required: boolean;
105
105
  private: boolean;
106
- static: boolean;
107
106
  abstract: boolean;
107
+ static: boolean;
108
108
  }, {
109
109
  id: string;
110
110
  type: EntityType.Property;
@@ -112,8 +112,8 @@ export declare function getPropertyGenerationTargetSchema(): z.ZodObject<z.objec
112
112
  description: string | null;
113
113
  required: boolean;
114
114
  private: boolean;
115
- static: boolean;
116
115
  abstract: boolean;
116
+ static: boolean;
117
117
  }>;
118
118
  export declare function getPropertyNestedEntitiesSchema(): z.ZodObject<{
119
119
  dataType: z.ZodUnion<[z.ZodObject<{
@@ -323,12 +323,12 @@ export declare function getPropertySchema(): z.ZodObject<z.objectUtil.extendShap
323
323
  entityId: string;
324
324
  };
325
325
  version: number;
326
- index: number;
327
- static: boolean;
328
- abstract: boolean;
329
326
  dataType: Record<string, any> | {
330
327
  type: EntityType.DataType;
331
328
  };
329
+ index: number;
330
+ abstract: boolean;
331
+ static: boolean;
332
332
  }, {
333
333
  id: string;
334
334
  type: EntityType.Property;
@@ -356,10 +356,10 @@ export declare function getPropertySchema(): z.ZodObject<z.objectUtil.extendShap
356
356
  entityId: string;
357
357
  };
358
358
  version: number;
359
- index: number;
360
- static: boolean;
361
- abstract: boolean;
362
359
  dataType: Record<string, any> | {
363
360
  type: EntityType.DataType;
364
361
  };
362
+ index: number;
363
+ abstract: boolean;
364
+ static: boolean;
365
365
  }>;
@@ -8,7 +8,7 @@ import { ReturnStatementState } from '../return-statement';
8
8
  import { BreakStatementState } from '../break-statement';
9
9
  import { ContinueStatementState } from '../continue-statement';
10
10
  import { EntityError, EntityGenerationError } from '../../state/error';
11
- import { PrimitiveValueState } from '../primitive-value';
11
+ import { LiteralValueState } from '../literal-value';
12
12
  import { ValueDescriptorState } from '../value-descriptor';
13
13
 
14
14
  export declare class ReturnDeclarationState implements IReturnDeclaration, UserManagedEntityStateFunctionality, ValueReadingEntityClass, BaseState, ChildEntityState, EntityWithValueClass {
@@ -21,6 +21,7 @@ export declare class ReturnDeclarationState implements IReturnDeclaration, UserM
21
21
  required: boolean;
22
22
  isError: boolean;
23
23
  readonly type: EntityType.ReturnDeclaration;
24
+ defaultValue: LiteralValueState | null;
24
25
  dataType: DataTypeState | null;
25
26
  readsValue: ValueWritingEntityState | null;
26
27
  implements: ValueDescriptorState | null;
@@ -94,7 +95,8 @@ export declare class ReturnDeclarationState implements IReturnDeclaration, UserM
94
95
  };
95
96
  getErrors(): EntityError[];
96
97
  getShallowErrors(): EntityError[];
97
- getDefaultValue(): PrimitiveValueState | null;
98
+ getDefaultValue(): LiteralValueState | null;
99
+ setDefaultValue(defaultValue: LiteralValueState): ReturnDeclarationState;
98
100
  clone(parent?: ReturnStatementState | BreakStatementState | ContinueStatementState | null, newId?: string | null, subscribe?: boolean): ReturnDeclarationState;
99
101
  setDataType(dataType: DataTypeState | null): ReturnDeclarationState;
100
102
  removeDataType(): ReturnDeclarationState;
@@ -222,6 +222,9 @@ export declare function getReturnDeclarationNestedEntitiesSchema(): z.ZodObject<
222
222
  entityType: EntityType.ContinueStatement;
223
223
  entityId: string;
224
224
  };
225
+ dataType: Record<string, any> | {
226
+ type: EntityType.DataType;
227
+ } | null;
225
228
  readsValue: Record<string, any> | {
226
229
  type: EntityType.OutputMap;
227
230
  } | {
@@ -237,9 +240,6 @@ export declare function getReturnDeclarationNestedEntitiesSchema(): z.ZodObject<
237
240
  } | {
238
241
  type: EntityType.FunctionCall;
239
242
  } | null;
240
- dataType: Record<string, any> | {
241
- type: EntityType.DataType;
242
- } | null;
243
243
  }, {
244
244
  parent: {
245
245
  id: string;
@@ -262,6 +262,9 @@ export declare function getReturnDeclarationNestedEntitiesSchema(): z.ZodObject<
262
262
  entityType: EntityType.ContinueStatement;
263
263
  entityId: string;
264
264
  };
265
+ dataType: Record<string, any> | {
266
+ type: EntityType.DataType;
267
+ } | null;
265
268
  readsValue: Record<string, any> | {
266
269
  type: EntityType.OutputMap;
267
270
  } | {
@@ -277,9 +280,6 @@ export declare function getReturnDeclarationNestedEntitiesSchema(): z.ZodObject<
277
280
  } | {
278
281
  type: EntityType.FunctionCall;
279
282
  } | null;
280
- dataType: Record<string, any> | {
281
- type: EntityType.DataType;
282
- } | null;
283
283
  }>;
284
284
  export declare function getReturnDeclarationSchema(): z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
285
285
  id: z.ZodString;
@@ -430,6 +430,9 @@ export declare function getReturnDeclarationSchema(): z.ZodObject<z.objectUtil.e
430
430
  };
431
431
  isError: boolean;
432
432
  version: number;
433
+ dataType: Record<string, any> | {
434
+ type: EntityType.DataType;
435
+ } | null;
433
436
  index: number;
434
437
  readsValue: Record<string, any> | {
435
438
  type: EntityType.OutputMap;
@@ -446,9 +449,6 @@ export declare function getReturnDeclarationSchema(): z.ZodObject<z.objectUtil.e
446
449
  } | {
447
450
  type: EntityType.FunctionCall;
448
451
  } | null;
449
- dataType: Record<string, any> | {
450
- type: EntityType.DataType;
451
- } | null;
452
452
  }, {
453
453
  id: string;
454
454
  type: EntityType.ReturnDeclaration;
@@ -477,6 +477,9 @@ export declare function getReturnDeclarationSchema(): z.ZodObject<z.objectUtil.e
477
477
  };
478
478
  isError: boolean;
479
479
  version: number;
480
+ dataType: Record<string, any> | {
481
+ type: EntityType.DataType;
482
+ } | null;
480
483
  index: number;
481
484
  readsValue: Record<string, any> | {
482
485
  type: EntityType.OutputMap;
@@ -493,7 +496,4 @@ export declare function getReturnDeclarationSchema(): z.ZodObject<z.objectUtil.e
493
496
  } | {
494
497
  type: EntityType.FunctionCall;
495
498
  } | null;
496
- dataType: Record<string, any> | {
497
- type: EntityType.DataType;
498
- } | null;
499
499
  }>;
@@ -24,7 +24,7 @@ import { BuiltInBaseEntityPayloadUnion, BuiltInBaseEntityState } from '../built-
24
24
  import { InternalCallPayloadUnion, InternalCallState } from '../internal-call';
25
25
  import { BreakStatementPayloadUnion, BreakStatementState } from '../break-statement';
26
26
  import { ContinueStatementPayloadUnion, ContinueStatementState } from '../continue-statement';
27
- import { PrimitiveValuePayloadUnion, PrimitiveValueState } from '../primitive-value';
27
+ import { LiteralValuePayloadUnion, LiteralValueState } from '../literal-value';
28
28
 
29
29
  export type VariableState = VariableDeclarationState | VariableInstanceState;
30
30
  export type ValueReadingEntityState = VariableState | InputMapState | ReturnDeclarationState;
@@ -45,8 +45,8 @@ export type EntityWithLogicScopeState = EntryPointEntityState | LoopState;
45
45
  export type PlayableEntityState = PassThroughCallableEntityState | EntryPointEntityState;
46
46
  export type DraggablePlayableEntityState = DraggablePassThroughCallableEntityState | EntryPointEntityState;
47
47
  export type TerminationState = ReturnStatementState | BreakStatementState | ContinueStatementState;
48
- export type EntityState = BuiltInBaseEntityState | ProjectState | InstalledProjectState | CustomEntityState | FunctionDeclarationState | GlobalEventState | VariableState | InputMapState | OutputMapState | ConditionState | OperationState | FunctionCallState | ReturnDeclarationState | ArgumentDeclarationState | PrimitiveEntityState | DataTypeState | PropertyState | ActionDescriptorState | ReturnStatementState | ContinueStatementState | BreakStatementState | LoopState | SearchState | ValueDescriptorState | InternalCallState | PrimitiveValueState;
48
+ export type EntityState = BuiltInBaseEntityState | ProjectState | InstalledProjectState | CustomEntityState | FunctionDeclarationState | GlobalEventState | VariableState | InputMapState | OutputMapState | ConditionState | OperationState | FunctionCallState | ReturnDeclarationState | ArgumentDeclarationState | PrimitiveEntityState | DataTypeState | PropertyState | ActionDescriptorState | ReturnStatementState | ContinueStatementState | BreakStatementState | LoopState | SearchState | ValueDescriptorState | InternalCallState | LiteralValueState;
49
49
  export type CanvasEntityState = InstalledProjectState | CustomEntityState | FunctionDeclarationState | GlobalEventState | VariableState | ConditionState | OperationState | FunctionCallState | ReturnStatementState | ContinueStatementState | BreakStatementState | LoopState | SearchState;
50
50
  export type BuiltInSystemEntityState = PrimitiveEntityState | BuiltInBaseEntityState;
51
- export type UserManagedEntityState = ProjectState | InstalledProjectState | CustomEntityState | FunctionDeclarationState | GlobalEventState | VariableState | InputMapState | OutputMapState | ConditionState | OperationState | FunctionCallState | ReturnDeclarationState | ArgumentDeclarationState | DataTypeState | PropertyState | ReturnStatementState | ContinueStatementState | BreakStatementState | LoopState | SearchState | ActionDescriptorState | ValueDescriptorState | InternalCallState | PrimitiveValueState;
52
- export type EntityPayloadUnion = BuiltInBaseEntityPayloadUnion | ProjectPayloadUnion | InstalledProjectPayloadUnion | CustomEntityPayloadUnion | FunctionDeclarationPayloadUnion | GlobalEventPayloadUnion | VariableDeclarationPayloadUnion | VariableInstancePayloadUnion | InputMapPayloadUnion | OutputMapPayloadUnion | ConditionPayloadUnion | OperationPayloadUnion | FunctionCallPayloadUnion | ReturnDeclarationPayloadUnion | ArgumentDeclarationPayloadUnion | PrimitiveEntityPayloadUnion | DataTypePayloadUnion | PropertyPayloadUnion | ActionDescriptorPayloadUnion | ReturnStatementPayloadUnion | ContinueStatementPayloadUnion | BreakStatementPayloadUnion | LoopPayloadUnion | SearchPayloadUnion | ValueDescriptorPayloadUnion | InternalCallPayloadUnion | PrimitiveValuePayloadUnion;
51
+ export type UserManagedEntityState = ProjectState | InstalledProjectState | CustomEntityState | FunctionDeclarationState | GlobalEventState | VariableState | InputMapState | OutputMapState | ConditionState | OperationState | FunctionCallState | ReturnDeclarationState | ArgumentDeclarationState | DataTypeState | PropertyState | ReturnStatementState | ContinueStatementState | BreakStatementState | LoopState | SearchState | ActionDescriptorState | ValueDescriptorState | InternalCallState | LiteralValueState;
52
+ export type EntityPayloadUnion = BuiltInBaseEntityPayloadUnion | ProjectPayloadUnion | InstalledProjectPayloadUnion | CustomEntityPayloadUnion | FunctionDeclarationPayloadUnion | GlobalEventPayloadUnion | VariableDeclarationPayloadUnion | VariableInstancePayloadUnion | InputMapPayloadUnion | OutputMapPayloadUnion | ConditionPayloadUnion | OperationPayloadUnion | FunctionCallPayloadUnion | ReturnDeclarationPayloadUnion | ArgumentDeclarationPayloadUnion | PrimitiveEntityPayloadUnion | DataTypePayloadUnion | PropertyPayloadUnion | ActionDescriptorPayloadUnion | ReturnStatementPayloadUnion | ContinueStatementPayloadUnion | BreakStatementPayloadUnion | LoopPayloadUnion | SearchPayloadUnion | ValueDescriptorPayloadUnion | InternalCallPayloadUnion | LiteralValuePayloadUnion;
@@ -168,10 +168,10 @@ export declare function getValueDescriptorSchema(): z.ZodObject<z.objectUtil.ext
168
168
  entityId: string;
169
169
  };
170
170
  version: number;
171
- index: number;
172
171
  dataType: Record<string, any> | {
173
172
  type: EntityType.DataType;
174
173
  };
174
+ index: number;
175
175
  }, {
176
176
  id: string;
177
177
  type: EntityType.ValueDescriptor;
@@ -184,8 +184,8 @@ export declare function getValueDescriptorSchema(): z.ZodObject<z.objectUtil.ext
184
184
  entityId: string;
185
185
  };
186
186
  version: number;
187
- index: number;
188
187
  dataType: Record<string, any> | {
189
188
  type: EntityType.DataType;
190
189
  };
190
+ index: number;
191
191
  }>;
@@ -6,7 +6,7 @@ import { ProjectState } from '../project/project';
6
6
  import { ActionDescriptorState } from '../action-descriptor';
7
7
  import { EntityError, EntityGenerationError } from '../error';
8
8
  import { EntityState, IChangeSet } from '../types';
9
- import { PrimitiveValueState } from '../primitive-value';
9
+ import { LiteralValueState } from '../literal-value';
10
10
  import { LoopState } from '../loop';
11
11
  import { SearchState } from '../search';
12
12
 
@@ -20,6 +20,7 @@ export declare class ValueDescriptorState implements IValueDescriptor, UserManag
20
20
  required: boolean;
21
21
  parentRelationType?: ValueDescriptorParentChildRelation;
22
22
  readonly type: EntityType.ValueDescriptor;
23
+ defaultValue: LiteralValueState | null;
23
24
  dataType: DataTypeState | null;
24
25
  project: ProjectState;
25
26
  errors: EntityError[];
@@ -90,7 +91,8 @@ export declare class ValueDescriptorState implements IValueDescriptor, UserManag
90
91
  clone(parent?: ActionDescriptorState | LoopState | SearchState | null, newId?: string | null, subscribe?: boolean): ValueDescriptorState;
91
92
  getDataType(): DataTypeState | null;
92
93
  setDataType(dataType: DataTypeState): ValueDescriptorState;
93
- getDefaultValue(): PrimitiveValueState | null;
94
+ getDefaultValue(): LiteralValueState | null;
95
+ setDefaultValue(defaultValue: LiteralValueState): ValueDescriptorState;
94
96
  removeDataType(): ValueDescriptorState;
95
97
  }
96
98
  export type ValueDescriptorPayloadUnion = ValueDescriptorState | ValueDescriptorTypesUnion;
@@ -960,20 +960,8 @@ export declare function getVariableDeclarationNestedEntitiesSchema(): z.ZodObjec
960
960
  entityType: EntityType.GlobalEvent;
961
961
  entityId: string;
962
962
  };
963
- readsValue: Record<string, any> | {
964
- type: EntityType.OutputMap;
965
- } | {
966
- type: EntityType.VariableDeclaration;
967
- } | {
968
- type: EntityType.VariableInstance;
969
- } | {
970
- type: EntityType.ArgumentDeclaration;
971
- } | {
972
- type: EntityType.Operation;
973
- } | {
974
- type: EntityType.InternalCall;
975
- } | {
976
- type: EntityType.FunctionCall;
963
+ dataType: Record<string, any> | {
964
+ type: EntityType.DataType;
977
965
  } | null;
978
966
  inputs: (Record<string, any> | {
979
967
  type: EntityType.InputMap;
@@ -1102,8 +1090,20 @@ export declare function getVariableDeclarationNestedEntitiesSchema(): z.ZodObjec
1102
1090
  } | {
1103
1091
  type: EntityType.VariableInstance;
1104
1092
  })[];
1105
- dataType: Record<string, any> | {
1106
- type: EntityType.DataType;
1093
+ readsValue: Record<string, any> | {
1094
+ type: EntityType.OutputMap;
1095
+ } | {
1096
+ type: EntityType.VariableDeclaration;
1097
+ } | {
1098
+ type: EntityType.VariableInstance;
1099
+ } | {
1100
+ type: EntityType.ArgumentDeclaration;
1101
+ } | {
1102
+ type: EntityType.Operation;
1103
+ } | {
1104
+ type: EntityType.InternalCall;
1105
+ } | {
1106
+ type: EntityType.FunctionCall;
1107
1107
  } | null;
1108
1108
  internalCalls: (Record<string, any> | {
1109
1109
  type: EntityType.InternalCall;
@@ -1223,20 +1223,8 @@ export declare function getVariableDeclarationNestedEntitiesSchema(): z.ZodObjec
1223
1223
  entityType: EntityType.GlobalEvent;
1224
1224
  entityId: string;
1225
1225
  };
1226
- readsValue: Record<string, any> | {
1227
- type: EntityType.OutputMap;
1228
- } | {
1229
- type: EntityType.VariableDeclaration;
1230
- } | {
1231
- type: EntityType.VariableInstance;
1232
- } | {
1233
- type: EntityType.ArgumentDeclaration;
1234
- } | {
1235
- type: EntityType.Operation;
1236
- } | {
1237
- type: EntityType.InternalCall;
1238
- } | {
1239
- type: EntityType.FunctionCall;
1226
+ dataType: Record<string, any> | {
1227
+ type: EntityType.DataType;
1240
1228
  } | null;
1241
1229
  inputs: (Record<string, any> | {
1242
1230
  type: EntityType.InputMap;
@@ -1365,8 +1353,20 @@ export declare function getVariableDeclarationNestedEntitiesSchema(): z.ZodObjec
1365
1353
  } | {
1366
1354
  type: EntityType.VariableInstance;
1367
1355
  })[];
1368
- dataType: Record<string, any> | {
1369
- type: EntityType.DataType;
1356
+ readsValue: Record<string, any> | {
1357
+ type: EntityType.OutputMap;
1358
+ } | {
1359
+ type: EntityType.VariableDeclaration;
1360
+ } | {
1361
+ type: EntityType.VariableInstance;
1362
+ } | {
1363
+ type: EntityType.ArgumentDeclaration;
1364
+ } | {
1365
+ type: EntityType.Operation;
1366
+ } | {
1367
+ type: EntityType.InternalCall;
1368
+ } | {
1369
+ type: EntityType.FunctionCall;
1370
1370
  } | null;
1371
1371
  internalCalls: (Record<string, any> | {
1372
1372
  type: EntityType.InternalCall;
@@ -2264,20 +2264,8 @@ export declare function getVariableDeclarationSchema(): z.ZodObject<z.objectUtil
2264
2264
  entityId: string;
2265
2265
  };
2266
2266
  version: number;
2267
- readsValue: Record<string, any> | {
2268
- type: EntityType.OutputMap;
2269
- } | {
2270
- type: EntityType.VariableDeclaration;
2271
- } | {
2272
- type: EntityType.VariableInstance;
2273
- } | {
2274
- type: EntityType.ArgumentDeclaration;
2275
- } | {
2276
- type: EntityType.Operation;
2277
- } | {
2278
- type: EntityType.InternalCall;
2279
- } | {
2280
- type: EntityType.FunctionCall;
2267
+ dataType: Record<string, any> | {
2268
+ type: EntityType.DataType;
2281
2269
  } | null;
2282
2270
  x: number;
2283
2271
  y: number;
@@ -2408,8 +2396,20 @@ export declare function getVariableDeclarationSchema(): z.ZodObject<z.objectUtil
2408
2396
  } | {
2409
2397
  type: EntityType.VariableInstance;
2410
2398
  })[];
2411
- dataType: Record<string, any> | {
2412
- type: EntityType.DataType;
2399
+ readsValue: Record<string, any> | {
2400
+ type: EntityType.OutputMap;
2401
+ } | {
2402
+ type: EntityType.VariableDeclaration;
2403
+ } | {
2404
+ type: EntityType.VariableInstance;
2405
+ } | {
2406
+ type: EntityType.ArgumentDeclaration;
2407
+ } | {
2408
+ type: EntityType.Operation;
2409
+ } | {
2410
+ type: EntityType.InternalCall;
2411
+ } | {
2412
+ type: EntityType.FunctionCall;
2413
2413
  } | null;
2414
2414
  internalCalls: (Record<string, any> | {
2415
2415
  type: EntityType.InternalCall;
@@ -2534,20 +2534,8 @@ export declare function getVariableDeclarationSchema(): z.ZodObject<z.objectUtil
2534
2534
  entityId: string;
2535
2535
  };
2536
2536
  version: number;
2537
- readsValue: Record<string, any> | {
2538
- type: EntityType.OutputMap;
2539
- } | {
2540
- type: EntityType.VariableDeclaration;
2541
- } | {
2542
- type: EntityType.VariableInstance;
2543
- } | {
2544
- type: EntityType.ArgumentDeclaration;
2545
- } | {
2546
- type: EntityType.Operation;
2547
- } | {
2548
- type: EntityType.InternalCall;
2549
- } | {
2550
- type: EntityType.FunctionCall;
2537
+ dataType: Record<string, any> | {
2538
+ type: EntityType.DataType;
2551
2539
  } | null;
2552
2540
  x: number;
2553
2541
  y: number;
@@ -2678,8 +2666,20 @@ export declare function getVariableDeclarationSchema(): z.ZodObject<z.objectUtil
2678
2666
  } | {
2679
2667
  type: EntityType.VariableInstance;
2680
2668
  })[];
2681
- dataType: Record<string, any> | {
2682
- type: EntityType.DataType;
2669
+ readsValue: Record<string, any> | {
2670
+ type: EntityType.OutputMap;
2671
+ } | {
2672
+ type: EntityType.VariableDeclaration;
2673
+ } | {
2674
+ type: EntityType.VariableInstance;
2675
+ } | {
2676
+ type: EntityType.ArgumentDeclaration;
2677
+ } | {
2678
+ type: EntityType.Operation;
2679
+ } | {
2680
+ type: EntityType.InternalCall;
2681
+ } | {
2682
+ type: EntityType.FunctionCall;
2683
2683
  } | null;
2684
2684
  internalCalls: (Record<string, any> | {
2685
2685
  type: EntityType.InternalCall;
@@ -8,7 +8,7 @@ import { VariableOutputMapState } from '../output-map';
8
8
  import { InternalCallState } from '../internal-call';
9
9
  import { VariableInputMapState } from '../input-map';
10
10
  import { EntityError, EntityGenerationError } from '../error';
11
- import { PrimitiveValueState } from '../primitive-value';
11
+ import { LiteralValueState } from '../literal-value';
12
12
  import { VariableInstanceState } from '../variable-instance';
13
13
 
14
14
  export declare class VariableDeclarationState implements IVariableDeclaration, BaseState, UserManagedEntityStateFunctionality, ValueWritingEntityClass, ValueReadingEntityClass, BaseCanvasDraggableState, ChildEntityState, EntityWithValueClass, PassThroughCallableEntityClass, CallableEntityClass {
@@ -17,10 +17,11 @@ export declare class VariableDeclarationState implements IVariableDeclaration, B
17
17
  version: EntityVersion;
18
18
  name: string;
19
19
  description: string | null;
20
- dataType: DataTypeState | null;
21
20
  x: number;
22
21
  y: number;
23
22
  readonly type: EntityType.VariableDeclaration;
23
+ defaultValue: LiteralValueState | null;
24
+ dataType: DataTypeState | null;
24
25
  writesValues: ValueReadingEntityState[];
25
26
  readsValue: ValueWritingEntityState | null;
26
27
  inputs: VariableInputMapState[];
@@ -125,7 +126,8 @@ export declare class VariableDeclarationState implements IVariableDeclaration, B
125
126
  };
126
127
  getErrors(): EntityError[];
127
128
  getShallowErrors(): EntityError[];
128
- getDefaultValue(): PrimitiveValueState | null;
129
+ getDefaultValue(): LiteralValueState | null;
130
+ setDefaultValue(defaultValue: LiteralValueState): VariableDeclarationState;
129
131
  clone(_?: EntryPointEntityState): VariableDeclarationState;
130
132
  addInternalCall(internalCall: InternalCallState): VariableDeclarationState;
131
133
  createInstance(parent?: EntityWithLogicScopeState | ProjectState, overrides?: Partial<IVariableInstanceTransfer>): VariableInstanceState;