@elyx-code/project-logic-tree 0.0.56 → 0.0.57

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 (22) hide show
  1. package/dist/index.js +13746 -13755
  2. package/dist/index.umd.cjs +134 -134
  3. package/dist/tree/state/argument-declaration/validation/validation-schema.d.ts +8 -8
  4. package/dist/tree/state/break-statement/validation/validation-schema.d.ts +32 -32
  5. package/dist/tree/state/condition/validation/validation-schema.d.ts +48 -48
  6. package/dist/tree/state/continue-statement/validation/validation-schema.d.ts +32 -32
  7. package/dist/tree/state/function-call/validation/validation-schema.d.ts +56 -56
  8. package/dist/tree/state/global-event/validation/validation-schema.d.ts +8 -8
  9. package/dist/tree/state/input-map/validation/validation-schema.d.ts +64 -64
  10. package/dist/tree/state/internal-call/validation/validation-schema.d.ts +56 -56
  11. package/dist/tree/state/loop/validation/validation-schema.d.ts +48 -48
  12. package/dist/tree/state/operation/validation/validation-schema.d.ts +56 -56
  13. package/dist/tree/state/output-map/validation/validation-schema.d.ts +72 -72
  14. package/dist/tree/state/project/project.d.ts +6 -0
  15. package/dist/tree/state/return-declaration/validation/validation-schema.d.ts +16 -16
  16. package/dist/tree/state/return-statement/validation/validation-schema.d.ts +32 -32
  17. package/dist/tree/state/search/validation/validation-schema.d.ts +48 -48
  18. package/dist/tree/state/variable-declaration/validation/validation-schema.d.ts +64 -64
  19. package/dist/tree/state/variable-instance/validation/validation-schema.d.ts +64 -64
  20. package/dist/tree/utils/index.d.ts +1 -1
  21. package/dist/tree/utils/uuid.d.ts +1 -7
  22. package/package.json +1 -1
@@ -839,6 +839,11 @@ export declare function getVariableInstanceNestedEntitiesSchema(): z.ZodObject<{
839
839
  type: EntityType.VariableDeclaration;
840
840
  };
841
841
  calledBySuccess: ({
842
+ id: string;
843
+ type: EntityType.GenericReference;
844
+ entityType: EntityType.Loop;
845
+ entityId: string;
846
+ } | {
842
847
  id: string;
843
848
  type: EntityType.GenericReference;
844
849
  entityType: EntityType.Operation;
@@ -873,13 +878,13 @@ export declare function getVariableInstanceNestedEntitiesSchema(): z.ZodObject<{
873
878
  type: EntityType.GenericReference;
874
879
  entityType: EntityType.InternalCall;
875
880
  entityId: string;
876
- } | {
881
+ })[];
882
+ calledByError: ({
877
883
  id: string;
878
884
  type: EntityType.GenericReference;
879
885
  entityType: EntityType.Loop;
880
886
  entityId: string;
881
- })[];
882
- calledByError: ({
887
+ } | {
883
888
  id: string;
884
889
  type: EntityType.GenericReference;
885
890
  entityType: EntityType.Operation;
@@ -914,11 +919,6 @@ export declare function getVariableInstanceNestedEntitiesSchema(): z.ZodObject<{
914
919
  type: EntityType.GenericReference;
915
920
  entityType: EntityType.InternalCall;
916
921
  entityId: string;
917
- } | {
918
- id: string;
919
- type: EntityType.GenericReference;
920
- entityType: EntityType.Loop;
921
- entityId: string;
922
922
  })[];
923
923
  calledByEntry: ({
924
924
  id: string;
@@ -953,13 +953,13 @@ export declare function getVariableInstanceNestedEntitiesSchema(): z.ZodObject<{
953
953
  entityId: string;
954
954
  };
955
955
  readsValue: Record<string, any> | {
956
+ type: EntityType.OutputMap;
957
+ } | {
956
958
  type: EntityType.VariableDeclaration;
957
959
  } | {
958
960
  type: EntityType.VariableInstance;
959
961
  } | {
960
962
  type: EntityType.ArgumentDeclaration;
961
- } | {
962
- type: EntityType.OutputMap;
963
963
  } | {
964
964
  type: EntityType.Operation;
965
965
  } | {
@@ -976,7 +976,7 @@ export declare function getVariableInstanceNestedEntitiesSchema(): z.ZodObject<{
976
976
  successCalls: ({
977
977
  id: string;
978
978
  type: EntityType.GenericReference;
979
- entityType: EntityType.ReturnStatement;
979
+ entityType: EntityType.Loop;
980
980
  entityId: string;
981
981
  } | {
982
982
  id: string;
@@ -1016,7 +1016,7 @@ export declare function getVariableInstanceNestedEntitiesSchema(): z.ZodObject<{
1016
1016
  } | {
1017
1017
  id: string;
1018
1018
  type: EntityType.GenericReference;
1019
- entityType: EntityType.Loop;
1019
+ entityType: EntityType.ReturnStatement;
1020
1020
  entityId: string;
1021
1021
  } | {
1022
1022
  id: string;
@@ -1032,7 +1032,7 @@ export declare function getVariableInstanceNestedEntitiesSchema(): z.ZodObject<{
1032
1032
  errorCalls: ({
1033
1033
  id: string;
1034
1034
  type: EntityType.GenericReference;
1035
- entityType: EntityType.ReturnStatement;
1035
+ entityType: EntityType.Loop;
1036
1036
  entityId: string;
1037
1037
  } | {
1038
1038
  id: string;
@@ -1072,7 +1072,7 @@ export declare function getVariableInstanceNestedEntitiesSchema(): z.ZodObject<{
1072
1072
  } | {
1073
1073
  id: string;
1074
1074
  type: EntityType.GenericReference;
1075
- entityType: EntityType.Loop;
1075
+ entityType: EntityType.ReturnStatement;
1076
1076
  entityId: string;
1077
1077
  } | {
1078
1078
  id: string;
@@ -1089,13 +1089,13 @@ export declare function getVariableInstanceNestedEntitiesSchema(): z.ZodObject<{
1089
1089
  type: EntityType.DataType;
1090
1090
  } | null;
1091
1091
  writesValues: (Record<string, any> | {
1092
+ type: EntityType.InputMap;
1093
+ } | {
1092
1094
  type: EntityType.ReturnDeclaration;
1093
1095
  } | {
1094
1096
  type: EntityType.VariableDeclaration;
1095
1097
  } | {
1096
1098
  type: EntityType.VariableInstance;
1097
- } | {
1098
- type: EntityType.InputMap;
1099
1099
  })[];
1100
1100
  internalCalls: (Record<string, any> | {
1101
1101
  type: EntityType.InternalCall;
@@ -1105,6 +1105,11 @@ export declare function getVariableInstanceNestedEntitiesSchema(): z.ZodObject<{
1105
1105
  type: EntityType.VariableDeclaration;
1106
1106
  };
1107
1107
  calledBySuccess: ({
1108
+ id: string;
1109
+ type: EntityType.GenericReference;
1110
+ entityType: EntityType.Loop;
1111
+ entityId: string;
1112
+ } | {
1108
1113
  id: string;
1109
1114
  type: EntityType.GenericReference;
1110
1115
  entityType: EntityType.Operation;
@@ -1139,13 +1144,13 @@ export declare function getVariableInstanceNestedEntitiesSchema(): z.ZodObject<{
1139
1144
  type: EntityType.GenericReference;
1140
1145
  entityType: EntityType.InternalCall;
1141
1146
  entityId: string;
1142
- } | {
1147
+ })[];
1148
+ calledByError: ({
1143
1149
  id: string;
1144
1150
  type: EntityType.GenericReference;
1145
1151
  entityType: EntityType.Loop;
1146
1152
  entityId: string;
1147
- })[];
1148
- calledByError: ({
1153
+ } | {
1149
1154
  id: string;
1150
1155
  type: EntityType.GenericReference;
1151
1156
  entityType: EntityType.Operation;
@@ -1180,11 +1185,6 @@ export declare function getVariableInstanceNestedEntitiesSchema(): z.ZodObject<{
1180
1185
  type: EntityType.GenericReference;
1181
1186
  entityType: EntityType.InternalCall;
1182
1187
  entityId: string;
1183
- } | {
1184
- id: string;
1185
- type: EntityType.GenericReference;
1186
- entityType: EntityType.Loop;
1187
- entityId: string;
1188
1188
  })[];
1189
1189
  calledByEntry: ({
1190
1190
  id: string;
@@ -1219,13 +1219,13 @@ export declare function getVariableInstanceNestedEntitiesSchema(): z.ZodObject<{
1219
1219
  entityId: string;
1220
1220
  };
1221
1221
  readsValue: Record<string, any> | {
1222
+ type: EntityType.OutputMap;
1223
+ } | {
1222
1224
  type: EntityType.VariableDeclaration;
1223
1225
  } | {
1224
1226
  type: EntityType.VariableInstance;
1225
1227
  } | {
1226
1228
  type: EntityType.ArgumentDeclaration;
1227
- } | {
1228
- type: EntityType.OutputMap;
1229
1229
  } | {
1230
1230
  type: EntityType.Operation;
1231
1231
  } | {
@@ -1242,7 +1242,7 @@ export declare function getVariableInstanceNestedEntitiesSchema(): z.ZodObject<{
1242
1242
  successCalls: ({
1243
1243
  id: string;
1244
1244
  type: EntityType.GenericReference;
1245
- entityType: EntityType.ReturnStatement;
1245
+ entityType: EntityType.Loop;
1246
1246
  entityId: string;
1247
1247
  } | {
1248
1248
  id: string;
@@ -1282,7 +1282,7 @@ export declare function getVariableInstanceNestedEntitiesSchema(): z.ZodObject<{
1282
1282
  } | {
1283
1283
  id: string;
1284
1284
  type: EntityType.GenericReference;
1285
- entityType: EntityType.Loop;
1285
+ entityType: EntityType.ReturnStatement;
1286
1286
  entityId: string;
1287
1287
  } | {
1288
1288
  id: string;
@@ -1298,7 +1298,7 @@ export declare function getVariableInstanceNestedEntitiesSchema(): z.ZodObject<{
1298
1298
  errorCalls: ({
1299
1299
  id: string;
1300
1300
  type: EntityType.GenericReference;
1301
- entityType: EntityType.ReturnStatement;
1301
+ entityType: EntityType.Loop;
1302
1302
  entityId: string;
1303
1303
  } | {
1304
1304
  id: string;
@@ -1338,7 +1338,7 @@ export declare function getVariableInstanceNestedEntitiesSchema(): z.ZodObject<{
1338
1338
  } | {
1339
1339
  id: string;
1340
1340
  type: EntityType.GenericReference;
1341
- entityType: EntityType.Loop;
1341
+ entityType: EntityType.ReturnStatement;
1342
1342
  entityId: string;
1343
1343
  } | {
1344
1344
  id: string;
@@ -1355,13 +1355,13 @@ export declare function getVariableInstanceNestedEntitiesSchema(): z.ZodObject<{
1355
1355
  type: EntityType.DataType;
1356
1356
  } | null;
1357
1357
  writesValues: (Record<string, any> | {
1358
+ type: EntityType.InputMap;
1359
+ } | {
1358
1360
  type: EntityType.ReturnDeclaration;
1359
1361
  } | {
1360
1362
  type: EntityType.VariableDeclaration;
1361
1363
  } | {
1362
1364
  type: EntityType.VariableInstance;
1363
- } | {
1364
- type: EntityType.InputMap;
1365
1365
  })[];
1366
1366
  internalCalls: (Record<string, any> | {
1367
1367
  type: EntityType.InternalCall;
@@ -2151,6 +2151,11 @@ export declare function getVariableInstanceSchema(): z.ZodObject<z.objectUtil.ex
2151
2151
  type: EntityType.VariableDeclaration;
2152
2152
  };
2153
2153
  calledBySuccess: ({
2154
+ id: string;
2155
+ type: EntityType.GenericReference;
2156
+ entityType: EntityType.Loop;
2157
+ entityId: string;
2158
+ } | {
2154
2159
  id: string;
2155
2160
  type: EntityType.GenericReference;
2156
2161
  entityType: EntityType.Operation;
@@ -2185,13 +2190,13 @@ export declare function getVariableInstanceSchema(): z.ZodObject<z.objectUtil.ex
2185
2190
  type: EntityType.GenericReference;
2186
2191
  entityType: EntityType.InternalCall;
2187
2192
  entityId: string;
2188
- } | {
2193
+ })[];
2194
+ calledByError: ({
2189
2195
  id: string;
2190
2196
  type: EntityType.GenericReference;
2191
2197
  entityType: EntityType.Loop;
2192
2198
  entityId: string;
2193
- })[];
2194
- calledByError: ({
2199
+ } | {
2195
2200
  id: string;
2196
2201
  type: EntityType.GenericReference;
2197
2202
  entityType: EntityType.Operation;
@@ -2226,11 +2231,6 @@ export declare function getVariableInstanceSchema(): z.ZodObject<z.objectUtil.ex
2226
2231
  type: EntityType.GenericReference;
2227
2232
  entityType: EntityType.InternalCall;
2228
2233
  entityId: string;
2229
- } | {
2230
- id: string;
2231
- type: EntityType.GenericReference;
2232
- entityType: EntityType.Loop;
2233
- entityId: string;
2234
2234
  })[];
2235
2235
  calledByEntry: ({
2236
2236
  id: string;
@@ -2266,13 +2266,13 @@ export declare function getVariableInstanceSchema(): z.ZodObject<z.objectUtil.ex
2266
2266
  };
2267
2267
  version: number;
2268
2268
  readsValue: Record<string, any> | {
2269
+ type: EntityType.OutputMap;
2270
+ } | {
2269
2271
  type: EntityType.VariableDeclaration;
2270
2272
  } | {
2271
2273
  type: EntityType.VariableInstance;
2272
2274
  } | {
2273
2275
  type: EntityType.ArgumentDeclaration;
2274
- } | {
2275
- type: EntityType.OutputMap;
2276
2276
  } | {
2277
2277
  type: EntityType.Operation;
2278
2278
  } | {
@@ -2291,7 +2291,7 @@ export declare function getVariableInstanceSchema(): z.ZodObject<z.objectUtil.ex
2291
2291
  successCalls: ({
2292
2292
  id: string;
2293
2293
  type: EntityType.GenericReference;
2294
- entityType: EntityType.ReturnStatement;
2294
+ entityType: EntityType.Loop;
2295
2295
  entityId: string;
2296
2296
  } | {
2297
2297
  id: string;
@@ -2331,7 +2331,7 @@ export declare function getVariableInstanceSchema(): z.ZodObject<z.objectUtil.ex
2331
2331
  } | {
2332
2332
  id: string;
2333
2333
  type: EntityType.GenericReference;
2334
- entityType: EntityType.Loop;
2334
+ entityType: EntityType.ReturnStatement;
2335
2335
  entityId: string;
2336
2336
  } | {
2337
2337
  id: string;
@@ -2347,7 +2347,7 @@ export declare function getVariableInstanceSchema(): z.ZodObject<z.objectUtil.ex
2347
2347
  errorCalls: ({
2348
2348
  id: string;
2349
2349
  type: EntityType.GenericReference;
2350
- entityType: EntityType.ReturnStatement;
2350
+ entityType: EntityType.Loop;
2351
2351
  entityId: string;
2352
2352
  } | {
2353
2353
  id: string;
@@ -2387,7 +2387,7 @@ export declare function getVariableInstanceSchema(): z.ZodObject<z.objectUtil.ex
2387
2387
  } | {
2388
2388
  id: string;
2389
2389
  type: EntityType.GenericReference;
2390
- entityType: EntityType.Loop;
2390
+ entityType: EntityType.ReturnStatement;
2391
2391
  entityId: string;
2392
2392
  } | {
2393
2393
  id: string;
@@ -2404,13 +2404,13 @@ export declare function getVariableInstanceSchema(): z.ZodObject<z.objectUtil.ex
2404
2404
  type: EntityType.DataType;
2405
2405
  } | null;
2406
2406
  writesValues: (Record<string, any> | {
2407
+ type: EntityType.InputMap;
2408
+ } | {
2407
2409
  type: EntityType.ReturnDeclaration;
2408
2410
  } | {
2409
2411
  type: EntityType.VariableDeclaration;
2410
2412
  } | {
2411
2413
  type: EntityType.VariableInstance;
2412
- } | {
2413
- type: EntityType.InputMap;
2414
2414
  })[];
2415
2415
  internalCalls: (Record<string, any> | {
2416
2416
  type: EntityType.InternalCall;
@@ -2422,6 +2422,11 @@ export declare function getVariableInstanceSchema(): z.ZodObject<z.objectUtil.ex
2422
2422
  type: EntityType.VariableDeclaration;
2423
2423
  };
2424
2424
  calledBySuccess: ({
2425
+ id: string;
2426
+ type: EntityType.GenericReference;
2427
+ entityType: EntityType.Loop;
2428
+ entityId: string;
2429
+ } | {
2425
2430
  id: string;
2426
2431
  type: EntityType.GenericReference;
2427
2432
  entityType: EntityType.Operation;
@@ -2456,13 +2461,13 @@ export declare function getVariableInstanceSchema(): z.ZodObject<z.objectUtil.ex
2456
2461
  type: EntityType.GenericReference;
2457
2462
  entityType: EntityType.InternalCall;
2458
2463
  entityId: string;
2459
- } | {
2464
+ })[];
2465
+ calledByError: ({
2460
2466
  id: string;
2461
2467
  type: EntityType.GenericReference;
2462
2468
  entityType: EntityType.Loop;
2463
2469
  entityId: string;
2464
- })[];
2465
- calledByError: ({
2470
+ } | {
2466
2471
  id: string;
2467
2472
  type: EntityType.GenericReference;
2468
2473
  entityType: EntityType.Operation;
@@ -2497,11 +2502,6 @@ export declare function getVariableInstanceSchema(): z.ZodObject<z.objectUtil.ex
2497
2502
  type: EntityType.GenericReference;
2498
2503
  entityType: EntityType.InternalCall;
2499
2504
  entityId: string;
2500
- } | {
2501
- id: string;
2502
- type: EntityType.GenericReference;
2503
- entityType: EntityType.Loop;
2504
- entityId: string;
2505
2505
  })[];
2506
2506
  calledByEntry: ({
2507
2507
  id: string;
@@ -2537,13 +2537,13 @@ export declare function getVariableInstanceSchema(): z.ZodObject<z.objectUtil.ex
2537
2537
  };
2538
2538
  version: number;
2539
2539
  readsValue: Record<string, any> | {
2540
+ type: EntityType.OutputMap;
2541
+ } | {
2540
2542
  type: EntityType.VariableDeclaration;
2541
2543
  } | {
2542
2544
  type: EntityType.VariableInstance;
2543
2545
  } | {
2544
2546
  type: EntityType.ArgumentDeclaration;
2545
- } | {
2546
- type: EntityType.OutputMap;
2547
2547
  } | {
2548
2548
  type: EntityType.Operation;
2549
2549
  } | {
@@ -2562,7 +2562,7 @@ export declare function getVariableInstanceSchema(): z.ZodObject<z.objectUtil.ex
2562
2562
  successCalls: ({
2563
2563
  id: string;
2564
2564
  type: EntityType.GenericReference;
2565
- entityType: EntityType.ReturnStatement;
2565
+ entityType: EntityType.Loop;
2566
2566
  entityId: string;
2567
2567
  } | {
2568
2568
  id: string;
@@ -2602,7 +2602,7 @@ export declare function getVariableInstanceSchema(): z.ZodObject<z.objectUtil.ex
2602
2602
  } | {
2603
2603
  id: string;
2604
2604
  type: EntityType.GenericReference;
2605
- entityType: EntityType.Loop;
2605
+ entityType: EntityType.ReturnStatement;
2606
2606
  entityId: string;
2607
2607
  } | {
2608
2608
  id: string;
@@ -2618,7 +2618,7 @@ export declare function getVariableInstanceSchema(): z.ZodObject<z.objectUtil.ex
2618
2618
  errorCalls: ({
2619
2619
  id: string;
2620
2620
  type: EntityType.GenericReference;
2621
- entityType: EntityType.ReturnStatement;
2621
+ entityType: EntityType.Loop;
2622
2622
  entityId: string;
2623
2623
  } | {
2624
2624
  id: string;
@@ -2658,7 +2658,7 @@ export declare function getVariableInstanceSchema(): z.ZodObject<z.objectUtil.ex
2658
2658
  } | {
2659
2659
  id: string;
2660
2660
  type: EntityType.GenericReference;
2661
- entityType: EntityType.Loop;
2661
+ entityType: EntityType.ReturnStatement;
2662
2662
  entityId: string;
2663
2663
  } | {
2664
2664
  id: string;
@@ -2675,13 +2675,13 @@ export declare function getVariableInstanceSchema(): z.ZodObject<z.objectUtil.ex
2675
2675
  type: EntityType.DataType;
2676
2676
  } | null;
2677
2677
  writesValues: (Record<string, any> | {
2678
+ type: EntityType.InputMap;
2679
+ } | {
2678
2680
  type: EntityType.ReturnDeclaration;
2679
2681
  } | {
2680
2682
  type: EntityType.VariableDeclaration;
2681
2683
  } | {
2682
2684
  type: EntityType.VariableInstance;
2683
- } | {
2684
- type: EntityType.InputMap;
2685
2685
  })[];
2686
2686
  internalCalls: (Record<string, any> | {
2687
2687
  type: EntityType.InternalCall;
@@ -93,7 +93,7 @@ export declare function getHeadIfPartOfDetachedBranch(entity: CanvasEntityState,
93
93
  export declare function flattenDetachedBranch(entity: CanvasEntityState): CanvasEntityState[];
94
94
  export declare function checkIsMethod(entity: EntityState): boolean;
95
95
  export declare function mergeListOfEntities(oldErrors: EntityState[], newErrors: EntityState[]): EntityState[];
96
- export declare function getPrototypeByType(type: EntityType): typeof OutputMapState | typeof InputMapState | typeof ConditionState | typeof OperationState | typeof InstalledProjectState | typeof SearchState | typeof ReturnDeclarationState | typeof ProjectState | typeof CustomEntityState | typeof PropertyState | typeof FunctionDeclarationState | typeof FunctionCallState | typeof VariableDeclarationState | typeof VariableInstanceState | typeof ArgumentDeclarationState | typeof LoopState | typeof ReturnStatementState | typeof BuiltInBaseEntityState | null;
96
+ export declare function getPrototypeByType(type: EntityType): typeof OutputMapState | typeof ProjectState | typeof InputMapState | typeof ConditionState | typeof OperationState | typeof InstalledProjectState | typeof SearchState | typeof ReturnDeclarationState | typeof CustomEntityState | typeof PropertyState | typeof FunctionDeclarationState | typeof FunctionCallState | typeof VariableDeclarationState | typeof VariableInstanceState | typeof ArgumentDeclarationState | typeof LoopState | typeof ReturnStatementState | typeof BuiltInBaseEntityState | null;
97
97
  export declare function getScopeOwner(entity: EntityState | Element | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, project: ProjectState): EntityWithLogicScopeState | ProjectState | null;
98
98
  export declare function getRootEntryPointScopeOwner(entity: EntityState | Element | ElementTransfer | ElementGenerationTarget | ElementShallowTransfer, project: ProjectState): EntityWithLogicScopeState | null;
99
99
  export declare function checkIsNestedScope(parent: EntityWithLogicScopeState | ProjectState, child: EntityWithLogicScopeState | ProjectState, project: ProjectState): boolean;
@@ -1,11 +1,5 @@
1
1
  import { ElementGenerationTarget, EntityType } from '../../definitions';
2
2
  import { ProjectState } from '../state';
3
3
 
4
- export declare class UUIDInstance {
5
- static instance: any | null;
6
- uuid(): any;
7
- fromUUID(uuid: string): any;
8
- }
9
- export declare const UUID: UUIDInstance;
10
- export declare function createSemanticId(entityName: string, entityType: EntityType, project: ProjectState): any;
4
+ export declare function createSemanticId(entityName: string, entityType: EntityType, project: ProjectState): string;
11
5
  export declare function suggestNewIdForEntity(generatedEntity: ElementGenerationTarget, projectState: ProjectState): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elyx-code/project-logic-tree",
3
- "version": "0.0.56",
3
+ "version": "0.0.57",
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",