@elyx-code/project-logic-tree 0.0.6076 → 0.0.6078

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/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var rT = Object.defineProperty;
2
2
  var iT = (r, e, t) => e in r ? rT(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
3
  var c = (r, e, t) => (iT(r, typeof e != "symbol" ? e + "" : e, t), t);
4
- var n = /* @__PURE__ */ ((r) => (r.CustomEntity = "custom-entity", r.BuiltInBaseEntity = "built-in-base-entity", r.Project = "project", r.InstalledProject = "installed-project", r.GlobalEvent = "global-event", r.DataType = "data-type", r.FunctionCall = "function-call", r.FunctionDeclaration = "function-declaration", r.ActionDescriptor = "action-descriptor", r.ValueDescriptor = "value-descriptor", r.ArgumentDeclaration = "argument-declaration", r.InputMap = "input-map", r.ReturnStatement = "return-statement", r.BreakStatement = "break-statement", r.ContinueStatement = "continue-statement", r.ReturnDeclaration = "return-declaration", r.OutputMap = "output-map", r.PrimitiveEntity = "primitive-entity", r.PrimitiveValue = "primitive-value", r.Property = "property", r.Operation = "operation", r.Condition = "condition", r.VariableDeclaration = "variable-declaration", r.VariableInstance = "variable-instance", r.Search = "search", r.Loop = "loop", r.InternalCall = "internal-call", r.GenericReference = "generic-reference", r))(n || {}), $ = /* @__PURE__ */ ((r) => (r.HTTP_ENDPOINT = "BUILT_IN_HTTP_ENDPOINT_ENTITY", r.RELATIONAL_DATABASE = "BUILT_IN_RELATIONAL_DATABASE_ENTITY", r.PERSISTED_ENTITY = "BUILT_IN_PERSISTED_ENTITY_ENTITY", r.CRON_JOB = "BUILT_IN_CRON_JOB_ENTITY", r.EXECUTION = "BUILT_IN_EXECUTION_ENTITY", r.KEY_VALUE_PARAM = "BUILT_IN_KEY_VALUE_PARAM_ENTITY", r))($ || {}), Je = /* @__PURE__ */ ((r) => (r.CurrentDateAndTime = "current-date-and-time", r.Unique = "unique", r.Random = "random", r))(Je || {}), D = /* @__PURE__ */ ((r) => (r.EntityTemplate = "entity-template", r.ActionDescriptor = "action-descriptor", r.String = "string", r.Number = "number", r.Boolean = "boolean", r.Null = "null", r.Enum = "enum", r.JSON = "json", r.Date = "date", r.UUID = "uuid", r.File = "file", r))(D || {}), we = /* @__PURE__ */ ((r) => (r.Addition = "addition", r.Subtraction = "subtraction", r.Multiplication = "multiplication", r.Division = "division", r.Remainder = "remainder", r.Exponentiation = "exponentiation", r))(we || {}), Z = /* @__PURE__ */ ((r) => (r.Join = "string-join", r.Split = "string-split", r.DeleteLast = "string-delete-last", r.DeleteFirst = "string-delete-first", r.DeleteIndex = "string-delete-index", r.AddIndex = "string-add-index", r.ReplaceFirst = "string-replace-first", r.ReplaceLast = "string-replace-last", r.ReplaceIndex = "string-replace-index", r.ReplaceSingleMatch = "string-replace-single-match", r.ReplaceAllMatches = "string-replace-all-matches", r.GetIndex = "string-get-index", r.GetFirst = "string-get-first", r.GetLast = "string-get-last", r.Append = "string-append", r.Prepend = "string-prepend", r))(Z || {}), W = /* @__PURE__ */ ((r) => (r.Join = "list-join", r.Split = "list-split", r.DeleteLast = "list-delete-last", r.DeleteFirst = "list-delete-first", r.DeleteIndex = "list-delete-index", r.AddIndex = "list-add-index", r.ReplaceFirst = "list-replace-first", r.ReplaceLast = "list-replace-last", r.ReplaceIndex = "list-replace-index", r.ReplaceSingleMatch = "list-replace-single-match", r.ReplaceAllMatches = "list-replace-all-matches", r.GetIndex = "list-get-index", r.GetFirst = "list-get-first", r.GetLast = "list-get-last", r.Append = "list-append", r.Prepend = "list-prepend", r))(W || {}), Ne = /* @__PURE__ */ ((r) => (r.Parallel = "parallel", r.Sequential = "sequential", r.Wait = "wait", r))(Ne || {}), Ce = /* @__PURE__ */ ((r) => (r.CreateNewInstance = "create-new-instance", r.Validate = "validate", r))(Ce || {}), ot = /* @__PURE__ */ ((r) => (r.HttpRequest = "base-http-request", r))(ot || {}), $e = /* @__PURE__ */ ((r) => (r.Equal = "equal", r.NotEqual = "not-equal", r.And = "and", r.Or = "or", r.LessThan = "less-than", r.MoreThan = "more-than", r.LessThanOrEqual = "less-than-or-equal", r.MoreThanOrEqual = "more-than-or-equal", r))($e || {}), kt = /* @__PURE__ */ ((r) => (r.Empty = "empty", r.NotEmpty = "not-empty", r))(kt || {}), x = /* @__PURE__ */ ((r) => (r.ManualFlow = "manual-flow-loop", r.Counted = "counted-loop", r.List = "list-loop", r.ObjectKeys = "object-keys-loop", r.ObjectValues = "object-values-loop", r.String = "string-loop", r))(x || {}), A = /* @__PURE__ */ ((r) => (r.FixedArguments = "fixed-arguments", r.FixedReturns = "fixed-returns", r.ReturnedError = "returned-error", r.OngoingProcessExecution = "ongoing-process-execution", r.DynamicArgument = "dynamic-argument-types", r.DynamicReturn = "dynamic-return-types", r))(A || {}), Qe = /* @__PURE__ */ ((r) => (r.OrDataTypeGroup = "or-data-type-group", r.AndDataTypeGroup = "and-data-type-group", r))(Qe || {}), In = /* @__PURE__ */ ((r) => (r.PROJECT_PUBLICATION_COMPLETED = "GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED", r))(In || {}), Bt = /* @__PURE__ */ ((r) => (r.DeletePersistedEntity = "base-delete-persisted-entity", r.SoftDeletePersistedEntity = "base-soft-delete-persisted-entity", r.AbortExecution = "base-abort-execution", r))(Bt || {}), Ii = /* @__PURE__ */ ((r) => (r.Error = "error", r.Task = "task", r.Return = "return", r))(Ii || {});
4
+ var n = /* @__PURE__ */ ((r) => (r.CustomEntity = "custom-entity", r.BuiltInBaseEntity = "built-in-base-entity", r.Project = "project", r.InstalledProject = "installed-project", r.GlobalEvent = "global-event", r.DataType = "data-type", r.FunctionCall = "function-call", r.FunctionDeclaration = "function-declaration", r.ActionDescriptor = "action-descriptor", r.ValueDescriptor = "value-descriptor", r.ArgumentDeclaration = "argument-declaration", r.InputMap = "input-map", r.ReturnStatement = "return-statement", r.BreakStatement = "break-statement", r.ContinueStatement = "continue-statement", r.ReturnDeclaration = "return-declaration", r.OutputMap = "output-map", r.PrimitiveEntity = "primitive-entity", r.PrimitiveValue = "primitive-value", r.Property = "property", r.Operation = "operation", r.Condition = "condition", r.VariableDeclaration = "variable-declaration", r.VariableInstance = "variable-instance", r.Search = "search", r.Loop = "loop", r.InternalCall = "internal-call", r.GenericReference = "generic-reference", r))(n || {}), $ = /* @__PURE__ */ ((r) => (r.HTTP_ENDPOINT = "BUILT_IN_HTTP_ENDPOINT_ENTITY", r.RELATIONAL_DATABASE = "BUILT_IN_RELATIONAL_DATABASE_ENTITY", r.PERSISTED_ENTITY = "BUILT_IN_PERSISTED_ENTITY_ENTITY", r.CRON_JOB = "BUILT_IN_CRON_JOB_ENTITY", r.EXECUTION = "BUILT_IN_EXECUTION_ENTITY", r.KEY_VALUE_PARAM = "BUILT_IN_KEY_VALUE_PARAM_ENTITY", r))($ || {}), Je = /* @__PURE__ */ ((r) => (r.CurrentDateAndTime = "current-date-and-time", r.Unique = "unique", r.Random = "random", r))(Je || {}), D = /* @__PURE__ */ ((r) => (r.EntityTemplate = "entity-template", r.ActionDescriptor = "action-descriptor", r.String = "string", r.Number = "number", r.Boolean = "boolean", r.Null = "null", r.Enum = "enum", r.JSON = "json", r.Date = "date", r.UUID = "uuid", r.File = "file", r))(D || {}), we = /* @__PURE__ */ ((r) => (r.Addition = "addition", r.Subtraction = "subtraction", r.Multiplication = "multiplication", r.Division = "division", r.Remainder = "remainder", r.Exponentiation = "exponentiation", r))(we || {}), Z = /* @__PURE__ */ ((r) => (r.Join = "string-join", r.Split = "string-split", r.DeleteLast = "string-delete-last", r.DeleteFirst = "string-delete-first", r.DeleteIndex = "string-delete-index", r.AddIndex = "string-add-index", r.ReplaceFirst = "string-replace-first", r.ReplaceLast = "string-replace-last", r.ReplaceIndex = "string-replace-index", r.ReplaceSingleMatch = "string-replace-single-match", r.ReplaceAllMatches = "string-replace-all-matches", r.GetIndex = "string-get-index", r.GetFirst = "string-get-first", r.GetLast = "string-get-last", r.Append = "string-append", r.Prepend = "string-prepend", r))(Z || {}), W = /* @__PURE__ */ ((r) => (r.Join = "list-join", r.Split = "list-split", r.DeleteLast = "list-delete-last", r.DeleteFirst = "list-delete-first", r.DeleteIndex = "list-delete-index", r.AddIndex = "list-add-index", r.ReplaceFirst = "list-replace-first", r.ReplaceLast = "list-replace-last", r.ReplaceIndex = "list-replace-index", r.ReplaceSingleMatch = "list-replace-single-match", r.ReplaceAllMatches = "list-replace-all-matches", r.GetIndex = "list-get-index", r.GetFirst = "list-get-first", r.GetLast = "list-get-last", r.Append = "list-append", r.Prepend = "list-prepend", r))(W || {}), Ve = /* @__PURE__ */ ((r) => (r.Parallel = "parallel", r.Sequential = "sequential", r.Wait = "wait", r))(Ve || {}), Ce = /* @__PURE__ */ ((r) => (r.CreateNewInstance = "create-new-instance", r.Validate = "validate", r))(Ce || {}), ot = /* @__PURE__ */ ((r) => (r.HttpRequest = "base-http-request", r))(ot || {}), $e = /* @__PURE__ */ ((r) => (r.Equal = "equal", r.NotEqual = "not-equal", r.And = "and", r.Or = "or", r.LessThan = "less-than", r.MoreThan = "more-than", r.LessThanOrEqual = "less-than-or-equal", r.MoreThanOrEqual = "more-than-or-equal", r))($e || {}), kt = /* @__PURE__ */ ((r) => (r.Empty = "empty", r.NotEmpty = "not-empty", r))(kt || {}), x = /* @__PURE__ */ ((r) => (r.ManualFlow = "manual-flow-loop", r.Counted = "counted-loop", r.List = "list-loop", r.ObjectKeys = "object-keys-loop", r.ObjectValues = "object-values-loop", r.String = "string-loop", r))(x || {}), A = /* @__PURE__ */ ((r) => (r.FixedArguments = "fixed-arguments", r.FixedReturns = "fixed-returns", r.ReturnedError = "returned-error", r.OngoingProcessExecution = "ongoing-process-execution", r.DynamicArgument = "dynamic-argument-types", r.DynamicReturn = "dynamic-return-types", r))(A || {}), Qe = /* @__PURE__ */ ((r) => (r.OrDataTypeGroup = "or-data-type-group", r.AndDataTypeGroup = "and-data-type-group", r))(Qe || {}), In = /* @__PURE__ */ ((r) => (r.PROJECT_PUBLICATION_COMPLETED = "GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED", r))(In || {}), Bt = /* @__PURE__ */ ((r) => (r.DeletePersistedEntity = "base-delete-persisted-entity", r.SoftDeletePersistedEntity = "base-soft-delete-persisted-entity", r.AbortExecution = "base-abort-execution", r))(Bt || {}), Ii = /* @__PURE__ */ ((r) => (r.Error = "error", r.Task = "task", r.Return = "return", r))(Ii || {});
5
5
  const kn = [
6
6
  n.VariableDeclaration,
7
7
  n.VariableInstance,
@@ -60,7 +60,7 @@ const kn = [
60
60
  ], Pt = [
61
61
  ...Ge,
62
62
  n.Loop
63
- ], xe = [
63
+ ], Ne = [
64
64
  n.ReturnStatement,
65
65
  n.BreakStatement,
66
66
  n.ContinueStatement
@@ -2113,7 +2113,7 @@ const $E = {
2113
2113
  }, qE = {
2114
2114
  type: n.GenericReference,
2115
2115
  id: "a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",
2116
- entityId: Ne.Parallel,
2116
+ entityId: Ve.Parallel,
2117
2117
  entityType: n.ActionDescriptor
2118
2118
  }, zd = {
2119
2119
  id: "parallel-execution-list-of-functions-argument-declaration",
@@ -2129,7 +2129,7 @@ const $E = {
2129
2129
  }, JE = {
2130
2130
  type: n.GenericReference,
2131
2131
  id: "caac2bc7-c23c-4f01-9581-a515c2e4637f",
2132
- entityId: Ne.Parallel,
2132
+ entityId: Ve.Parallel,
2133
2133
  entityType: n.ActionDescriptor
2134
2134
  }, Zd = {
2135
2135
  id: "parallel-execution-result-return-delaration",
@@ -2145,7 +2145,7 @@ const $E = {
2145
2145
  }, WE = {
2146
2146
  type: n.GenericReference,
2147
2147
  id: "parallel-execution-operation-error-parent-ref",
2148
- entityId: Ne.Parallel,
2148
+ entityId: Ve.Parallel,
2149
2149
  entityType: n.ActionDescriptor
2150
2150
  }, YE = {
2151
2151
  id: "parallel-execution-error-return-delaration",
@@ -2159,11 +2159,11 @@ const $E = {
2159
2159
  parent: WE,
2160
2160
  parentRelationType: A.ReturnedError
2161
2161
  }, Zt = {
2162
- id: Ne.Parallel,
2162
+ id: Ve.Parallel,
2163
2163
  type: n.ActionDescriptor,
2164
2164
  description: "Execute a list of actions in parallel",
2165
2165
  version: 1,
2166
- name: Ne.Parallel,
2166
+ name: Ve.Parallel,
2167
2167
  inputs: [zd],
2168
2168
  outputs: [Zd],
2169
2169
  error: YE,
@@ -2195,7 +2195,7 @@ const ZE = {
2195
2195
  type: n.GenericReference,
2196
2196
  id: "a6c14305-d4f7-43ae-9d5e-b7dbacdc830a",
2197
2197
  entityType: n.ActionDescriptor,
2198
- entityId: Ne.Wait
2198
+ entityId: Ve.Wait
2199
2199
  }, Hr = {
2200
2200
  id: "wait-milliseconds-number-argument-declaration",
2201
2201
  type: n.ValueDescriptor,
@@ -2210,7 +2210,7 @@ const ZE = {
2210
2210
  }, QE = {
2211
2211
  type: n.GenericReference,
2212
2212
  id: "wait-operation-error-parent-ref",
2213
- entityId: Ne.Wait,
2213
+ entityId: Ve.Wait,
2214
2214
  entityType: n.ActionDescriptor
2215
2215
  }, ev = {
2216
2216
  id: "wait-operation-error-return-delaration",
@@ -2224,11 +2224,11 @@ const ZE = {
2224
2224
  parent: QE,
2225
2225
  parentRelationType: A.ReturnedError
2226
2226
  }, Tt = {
2227
- id: Ne.Wait,
2227
+ id: Ve.Wait,
2228
2228
  type: n.ActionDescriptor,
2229
2229
  description: "Wait for the given amount of milliseconds before calling the next entity",
2230
2230
  version: 1,
2231
- name: Ne.Wait,
2231
+ name: Ve.Wait,
2232
2232
  inputs: [Hr],
2233
2233
  outputs: [],
2234
2234
  error: ev,
@@ -2312,7 +2312,7 @@ const rv = {
2312
2312
  }, dv = {
2313
2313
  type: n.GenericReference,
2314
2314
  id: "parallel-execution-operation-list-of-functions-argument-parent-ref",
2315
- entityId: Ne.Sequential,
2315
+ entityId: Ve.Sequential,
2316
2316
  entityType: n.ActionDescriptor
2317
2317
  }, Kd = {
2318
2318
  id: "sequential-execution-list-of-functions-argument-declaration",
@@ -2328,7 +2328,7 @@ const rv = {
2328
2328
  }, uv = {
2329
2329
  type: n.GenericReference,
2330
2330
  id: "parallel-execution-operation-list-of-execution-results-return-parent-ref",
2331
- entityId: Ne.Sequential,
2331
+ entityId: Ve.Sequential,
2332
2332
  entityType: n.ActionDescriptor
2333
2333
  }, Xd = {
2334
2334
  id: "sequential-execution-result-return-delaration",
@@ -2344,7 +2344,7 @@ const rv = {
2344
2344
  }, pv = {
2345
2345
  type: n.GenericReference,
2346
2346
  id: "sequential-execution-operation-error-parent-ref",
2347
- entityId: Ne.Sequential,
2347
+ entityId: Ve.Sequential,
2348
2348
  entityType: n.ActionDescriptor
2349
2349
  }, yv = {
2350
2350
  id: "sequential-execution-error-return-delaration",
@@ -2358,19 +2358,19 @@ const rv = {
2358
2358
  parent: pv,
2359
2359
  parentRelationType: A.ReturnedError
2360
2360
  }, vn = {
2361
- id: Ne.Sequential,
2361
+ id: Ve.Sequential,
2362
2362
  type: n.ActionDescriptor,
2363
2363
  description: "Execute a list of actions one after the other",
2364
2364
  version: 1,
2365
- name: Ne.Sequential,
2365
+ name: Ve.Sequential,
2366
2366
  inputs: [Kd],
2367
2367
  outputs: [Xd],
2368
2368
  error: yv,
2369
2369
  parent: null
2370
2370
  }, hv = {
2371
- [Ne.Parallel]: Zt,
2372
- [Ne.Wait]: Tt,
2373
- [Ne.Sequential]: vn
2371
+ [Ve.Parallel]: Zt,
2372
+ [Ve.Wait]: Tt,
2373
+ [Ve.Sequential]: vn
2374
2374
  };
2375
2375
  var fv = /* @__PURE__ */ ((r) => (r.EntityToInstanciate = "entity-to-instanciate-argument-declaration", r.NewEntityData = "new-entity-data-argument-declaration", r))(fv || {}), mv = /* @__PURE__ */ ((r) => (r.Error = "create-new-instance-error-return-delaration", r))(mv || {});
2376
2376
  const Tv = {
@@ -23638,11 +23638,11 @@ function v5(r) {
23638
23638
  return "Add at the end";
23639
23639
  case Z.Prepend:
23640
23640
  return "Add at the start";
23641
- case Ne.Wait:
23641
+ case Ve.Wait:
23642
23642
  return "Wait";
23643
- case Ne.Parallel:
23643
+ case Ve.Parallel:
23644
23644
  return "Run in parallel";
23645
- case Ne.Sequential:
23645
+ case Ve.Sequential:
23646
23646
  return "Run in sequence";
23647
23647
  case ot.HttpRequest:
23648
23648
  return "HTTP request";
@@ -24392,7 +24392,7 @@ const he = class he {
24392
24392
  return a.push(
24393
24393
  ...s,
24394
24394
  ...o,
24395
- ...Ve(i)
24395
+ ...xe(i)
24396
24396
  ), {
24397
24397
  errors: a,
24398
24398
  modifiedData: i
@@ -24942,7 +24942,7 @@ If you want to modify the existing implementation, you can update the existing m
24942
24942
  ), a.push(
24943
24943
  ...s.errors,
24944
24944
  ...o,
24945
- ...Ve(i)
24945
+ ...xe(i)
24946
24946
  ), {
24947
24947
  errors: a,
24948
24948
  modifiedData: i
@@ -25580,7 +25580,7 @@ const me = class me {
25580
25580
  const a = [], s = O5(i, t);
25581
25581
  if (a.push(
25582
25582
  ...s,
25583
- ...Ve(i)
25583
+ ...xe(i)
25584
25584
  ), i.entity) {
25585
25585
  const p = t.get(i.entity);
25586
25586
  if (p.type === n.CustomEntity) {
@@ -26358,7 +26358,7 @@ const le = class le {
26358
26358
  );
26359
26359
  i = s.modifiedData, a.push(
26360
26360
  ...s.errors,
26361
- ...Ve(i)
26361
+ ...xe(i)
26362
26362
  );
26363
26363
  const o = _(
26364
26364
  i.declaration
@@ -27041,7 +27041,7 @@ const ce = class ce {
27041
27041
  );
27042
27042
  if (i = s.modifiedData, a.push(
27043
27043
  ...s.errors,
27044
- ...Ve(i)
27044
+ ...xe(i)
27045
27045
  ), !e.implements)
27046
27046
  a.push(
27047
27047
  new T({
@@ -27553,7 +27553,7 @@ const H = class H {
27553
27553
  );
27554
27554
  return i = s.modifiedData, a.push(
27555
27555
  ...s.errors,
27556
- ...Ve(i)
27556
+ ...xe(i)
27557
27557
  ), e.declaration ? t.get(
27558
27558
  e.declaration
27559
27559
  ) ? t.conditionDeclarations.find(
@@ -27616,6 +27616,18 @@ ${uo(t)}`,
27616
27616
  );
27617
27617
  return t.slice(0, t.length - 1);
27618
27618
  }
27619
+ static fromLoopOutputDeclarationToBodyArgumentDeclarationName(e) {
27620
+ return e.name.replace(
27621
+ "Result list of '",
27622
+ "Previous iteration results of '"
27623
+ );
27624
+ }
27625
+ static fromBodyArgumentDeclarationToLoopOutputDeclarationName(e) {
27626
+ return e.name.replace(
27627
+ "Previous iteration results of '",
27628
+ "Result list of '"
27629
+ );
27630
+ }
27619
27631
  validateGeneratedUpdate(e) {
27620
27632
  const t = [];
27621
27633
  return e.parent && t.push(
@@ -29336,7 +29348,7 @@ const Te = class Te {
29336
29348
  );
29337
29349
  return i = s.modifiedData, a.push(
29338
29350
  ...s.errors,
29339
- ...Ve(i)
29351
+ ...xe(i)
29340
29352
  ), e.declaration ? t.get(
29341
29353
  e.declaration
29342
29354
  ) ? t.conditionDeclarations.find(
@@ -30031,7 +30043,7 @@ const de = class de {
30031
30043
  return a.push(
30032
30044
  ...s.errors,
30033
30045
  ...o,
30034
- ...Ve(i)
30046
+ ...xe(i)
30035
30047
  ), {
30036
30048
  errors: a,
30037
30049
  modifiedData: i
@@ -30953,7 +30965,7 @@ const ue = class ue {
30953
30965
  );
30954
30966
  return i = s.modifiedData, a.push(
30955
30967
  ...s.errors,
30956
- ...Ve(i)
30968
+ ...xe(i)
30957
30969
  ), {
30958
30970
  errors: a,
30959
30971
  modifiedData: i
@@ -31856,7 +31868,7 @@ ${L}`,
31856
31868
  return a.push(
31857
31869
  ...s.errors,
31858
31870
  ...o,
31859
- ...Ve(i)
31871
+ ...xe(i)
31860
31872
  ), {
31861
31873
  errors: a,
31862
31874
  modifiedData: i
@@ -32369,7 +32381,7 @@ const _e = class _e {
32369
32381
  );
32370
32382
  return i = s.modifiedData, a.push(
32371
32383
  ...s.errors,
32372
- ...Ve(i)
32384
+ ...xe(i)
32373
32385
  ), {
32374
32386
  errors: a,
32375
32387
  modifiedData: i
@@ -32949,7 +32961,7 @@ const Ee = class Ee {
32949
32961
  JSON.stringify(e)
32950
32962
  );
32951
32963
  const a = [];
32952
- return a.push(...Ve(i)), { errors: a, modifiedData: i };
32964
+ return a.push(...xe(i)), { errors: a, modifiedData: i };
32953
32965
  }
32954
32966
  validateGeneratedUpdate(e) {
32955
32967
  const t = [];
@@ -33495,7 +33507,7 @@ The you can attach the new internal-call to it.`,
33495
33507
  }
33496
33508
  return a.push(
33497
33509
  ...s.errors,
33498
- ...Ve(i)
33510
+ ...xe(i)
33499
33511
  ), {
33500
33512
  errors: a,
33501
33513
  modifiedData: i
@@ -34220,7 +34232,7 @@ ${R}`,
34220
34232
  }
34221
34233
  return a.push(
34222
34234
  ...s.errors,
34223
- ...Ve(i)
34235
+ ...xe(i)
34224
34236
  ), {
34225
34237
  errors: a,
34226
34238
  modifiedData: i
@@ -34722,7 +34734,7 @@ You can't edit output-map entities as they need to match their return declaratio
34722
34734
  }
34723
34735
  return a.push(
34724
34736
  ...s.errors,
34725
- ...Ve(i)
34737
+ ...xe(i)
34726
34738
  ), {
34727
34739
  errors: a,
34728
34740
  modifiedData: i
@@ -35159,7 +35171,7 @@ ${I}`,
35159
35171
  return a.push(
35160
35172
  ...s.errors,
35161
35173
  ...o,
35162
- ...Ve(i)
35174
+ ...xe(i)
35163
35175
  ), { errors: a, modifiedData: i };
35164
35176
  }
35165
35177
  validateGeneratedUpdate(e) {
@@ -35625,7 +35637,7 @@ const ge = class ge {
35625
35637
  const a = [], s = W5(i, t);
35626
35638
  return a.push(
35627
35639
  ...s,
35628
- ...Ve(i)
35640
+ ...xe(i)
35629
35641
  ), {
35630
35642
  errors: a,
35631
35643
  modifiedData: i
@@ -35988,7 +36000,7 @@ const Ie = class Ie {
35988
36000
  );
35989
36001
  return i = s.modifiedData, a.push(
35990
36002
  ...s.errors,
35991
- ...Ve(i)
36003
+ ...xe(i)
35992
36004
  ), {
35993
36005
  errors: a,
35994
36006
  modifiedData: i
@@ -36392,7 +36404,7 @@ const st = class st {
36392
36404
  );
36393
36405
  return i = s.modifiedData, a.push(
36394
36406
  ...s.errors,
36395
- ...Ve(i)
36407
+ ...xe(i)
36396
36408
  // ...callerReferencesValidation.errors
36397
36409
  ), {
36398
36410
  errors: a,
@@ -36798,7 +36810,7 @@ const De = class De {
36798
36810
  );
36799
36811
  return i = s.modifiedData, a.push(
36800
36812
  ...s.errors,
36801
- ...Ve(i)
36813
+ ...xe(i)
36802
36814
  ), {
36803
36815
  errors: a,
36804
36816
  modifiedData: i
@@ -37235,7 +37247,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
37235
37247
  }
37236
37248
  return a.push(
37237
37249
  ...s.errors,
37238
- ...Ve(i)
37250
+ ...xe(i)
37239
37251
  ), {
37240
37252
  errors: a,
37241
37253
  modifiedData: i
@@ -37979,7 +37991,7 @@ const Ae = class Ae {
37979
37991
  );
37980
37992
  i = s.modifiedData, a.push(
37981
37993
  ...s.errors,
37982
- ...Ve(i)
37994
+ ...xe(i)
37983
37995
  );
37984
37996
  const o = i.parent && t.get(i.parent), l = o && Xn(o);
37985
37997
  return l && l.type === n.ActionDescriptor && a.push(
@@ -38925,7 +38937,7 @@ function Gm(r, e) {
38925
38937
  })
38926
38938
  );
38927
38939
  }
38928
- function Ve(r, e) {
38940
+ function xe(r, e) {
38929
38941
  const t = [], i = ek(r);
38930
38942
  if (i) {
38931
38943
  const s = i.safeParse(r);
@@ -39253,7 +39265,7 @@ We have moved the reference to 'calledByEntry' for you.`,
39253
39265
  ), t.calledByEntry.push(e.id), t.calledBySuccess = t.calledBySuccess.filter(
39254
39266
  (a) => a !== e.id
39255
39267
  );
39256
- else if (xe.includes(e.type)) {
39268
+ else if (Ne.includes(e.type)) {
39257
39269
  const a = e.calledBy || [], s = a.length ? `
39258
39270
 
39259
39271
  This ${e.type} is called by ${G(
@@ -39271,7 +39283,7 @@ This ${e.type} is called by ${G(
39271
39283
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a '${e.type}' entity at 'calledBySuccess' with id "${e.id}".
39272
39284
  ${e.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
39273
39285
  Termination entities are ${G(
39274
- xe,
39286
+ Ne,
39275
39287
  ", ",
39276
39288
  " and "
39277
39289
  )}.${s}`,
@@ -39322,7 +39334,7 @@ ${Js}`,
39322
39334
  issue: null
39323
39335
  })
39324
39336
  );
39325
- else if (xe.includes(e.type)) {
39337
+ else if (Ne.includes(e.type)) {
39326
39338
  const i = e.calledBy || [], a = i.length ? `
39327
39339
 
39328
39340
  This ${e.type} is called by ${G(
@@ -39340,7 +39352,7 @@ This ${e.type} is called by ${G(
39340
39352
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a '${e.type}' entity at 'calledByError' with id "${e.id}".
39341
39353
  ${e.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
39342
39354
  Termination entities are ${G(
39343
- xe,
39355
+ Ne,
39344
39356
  ", ",
39345
39357
  " and "
39346
39358
  )}.${a}`,
@@ -39379,7 +39391,7 @@ ${zn}`,
39379
39391
  }
39380
39392
  function ak(r, e) {
39381
39393
  const t = [];
39382
- if (xe.includes(e.type)) {
39394
+ if (Ne.includes(e.type)) {
39383
39395
  const i = e.calledBy || [], a = i.length ? `
39384
39396
 
39385
39397
  This ${e.type} is called by ${G(
@@ -39397,7 +39409,7 @@ This ${e.type} is called by ${G(
39397
39409
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a '${e.type}' entity at 'calledByEntry' with id "${e.id}".
39398
39410
  ${e.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
39399
39411
  Termination entities are ${G(
39400
- xe,
39412
+ Ne,
39401
39413
  ", ",
39402
39414
  " and "
39403
39415
  )}.${a}`,
@@ -39565,10 +39577,10 @@ function sk(r, e) {
39565
39577
  o,
39566
39578
  E,
39567
39579
  e
39568
- ) ? (xe.includes(i.type) && ((i.calledBySuccess || []).find(
39580
+ ) ? (Ne.includes(i.type) && ((i.calledBySuccess || []).find(
39569
39581
  (I) => I === f.id
39570
39582
  ) ? (f.successCalls || []).find(
39571
- (g) => xe.includes(g.type)
39583
+ (g) => Ne.includes(g.type)
39572
39584
  ) && t.push(
39573
39585
  new T({
39574
39586
  id: `${i.id}--${f.id}--${S.UnreachableEntity}`,
@@ -39581,7 +39593,7 @@ The new termination statement is redundant because both entities would be called
39581
39593
  ) : (i.calledByError || []).find(
39582
39594
  (I) => I === f.id
39583
39595
  ) ? (f.errorCalls || []).find(
39584
- (g) => xe.includes(g.type)
39596
+ (g) => Ne.includes(g.type)
39585
39597
  ) && t.push(
39586
39598
  new T({
39587
39599
  id: `${i.id}--${f.id}--${S.UnreachableEntity}`,
@@ -39594,7 +39606,7 @@ The new termination statement is redundant because both entities would be called
39594
39606
  ) : (i.calledByEntry || []).find(
39595
39607
  (I) => I === f.id
39596
39608
  ) && (f.calls || []).find(
39597
- (g) => xe.includes(g.type)
39609
+ (g) => Ne.includes(g.type)
39598
39610
  ) && t.push(
39599
39611
  new T({
39600
39612
  id: `${i.id}--${f.id}--${S.UnreachableEntity}`,
@@ -39628,10 +39640,10 @@ The new termination statement is redundant because both entities would be called
39628
39640
  E,
39629
39641
  e
39630
39642
  );
39631
- R ? (xe.includes(i.type) && ((i.calledBySuccess || []).find(
39643
+ R ? (Ne.includes(i.type) && ((i.calledBySuccess || []).find(
39632
39644
  (I) => I === f.id
39633
39645
  ) ? (f.successCalls || []).find(
39634
- (g) => xe.includes(g.type)
39646
+ (g) => Ne.includes(g.type)
39635
39647
  ) && t.push(
39636
39648
  new T({
39637
39649
  id: `${i.id}--${f.id}--${S.UnreachableEntity}`,
@@ -39644,7 +39656,7 @@ The new termination statement is redundant because both entities would be called
39644
39656
  ) : (i.calledByError || []).find(
39645
39657
  (I) => I === f.id
39646
39658
  ) ? (f.errorCalls || []).find(
39647
- (g) => xe.includes(g.type)
39659
+ (g) => Ne.includes(g.type)
39648
39660
  ) && t.push(
39649
39661
  new T({
39650
39662
  id: `${i.id}--${f.id}--${S.UnreachableEntity}`,
@@ -39657,7 +39669,7 @@ The new termination statement is redundant because both entities would be called
39657
39669
  ) : (i.calledByEntry || []).find(
39658
39670
  (I) => I === f.id
39659
39671
  ) && (f.calls || []).find(
39660
- (g) => xe.includes(g.type)
39672
+ (g) => Ne.includes(g.type)
39661
39673
  ) && t.push(
39662
39674
  new T({
39663
39675
  id: `${i.id}--${f.id}--${S.UnreachableEntity}`,
@@ -39707,13 +39719,13 @@ To add a caller, use the 'add_caller' action with the properties: 'callerEntityI
39707
39719
  Return statements need to have a caller when created, since their purpose is to terminate a call chain.` : i.type === n.ContinueStatement ? s += `
39708
39720
  Continue statements need to have a caller when created, since they are used to skip the rest of the current iteration of a loop and can't be detached from a call chain.` : i.type === n.BreakStatement && (s += `
39709
39721
  Break statements need to have a caller when created, since they are used to exit a loop and can't be detached from a call chain.`), s += `
39710
- ${tk}`, xe.includes(i.type) || (s += `
39722
+ ${tk}`, Ne.includes(i.type) || (s += `
39711
39723
  It is recommended to have a caller reference already at the moment of creation in the payload of the generation action.`), t.push(
39712
39724
  new T({
39713
39725
  id: `${i.id}--${S.MissingCaller}`,
39714
39726
  code: S.MissingCaller,
39715
39727
  // If it is a termination statement, make it an error, otherwise a warning
39716
- severity: xe.includes(i.type) ? m.Error : m.Warning,
39728
+ severity: Ne.includes(i.type) ? m.Error : m.Warning,
39717
39729
  message: s,
39718
39730
  issue: null
39719
39731
  })
@@ -40027,7 +40039,7 @@ function A7(r, e, t = "calledBy") {
40027
40039
  ), i;
40028
40040
  if ([...qe, ...Ge].includes(a.type))
40029
40041
  return [];
40030
- if (xe.includes(a.type)) {
40042
+ if (Ne.includes(a.type)) {
40031
40043
  const s = a.calledBy || [], o = s.length ? `
40032
40044
 
40033
40045
  This ${a.type} is called by ${G(
@@ -40045,7 +40057,7 @@ This ${a.type} is called by ${G(
40045
40057
  message: `Entity with id '${a.id}' referenced in '${t}' property is of type '${a.type}'.
40046
40058
  ${a.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
40047
40059
  Termination entities are ${G(
40048
- xe,
40060
+ Ne,
40049
40061
  ", ",
40050
40062
  " and "
40051
40063
  )}.${o}`,
@@ -40086,7 +40098,7 @@ function S7(r, e, t = "calledByError") {
40086
40098
  ), i;
40087
40099
  if (qe.includes(a.type))
40088
40100
  return [];
40089
- if (xe.includes(a.type)) {
40101
+ if (Ne.includes(a.type)) {
40090
40102
  const s = a.calledBy || [], o = s.length ? `
40091
40103
 
40092
40104
  This ${a.type} is called by ${G(
@@ -40104,7 +40116,7 @@ This ${a.type} is called by ${G(
40104
40116
  message: `Entity with id '${a.id}' referenced in '${t}' property is of type '${a.type}'.
40105
40117
  ${a.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
40106
40118
  Termination entities are ${G(
40107
- xe,
40119
+ Ne,
40108
40120
  ", ",
40109
40121
  " and "
40110
40122
  )}.${o}`,
@@ -40837,7 +40849,7 @@ const Se = class Se {
40837
40849
  );
40838
40850
  i = s.modifiedData, a.push(
40839
40851
  ...s.errors,
40840
- ...Ve(i)
40852
+ ...xe(i)
40841
40853
  );
40842
40854
  const o = _(
40843
40855
  i.declaration
@@ -42095,7 +42107,7 @@ function N7(r) {
42095
42107
  return r.type === n.VariableDeclaration ? [r] : qe.includes(r.type) ? [
42096
42108
  ...r.inputs,
42097
42109
  ...r.outputs || []
42098
- ] : r.type === n.ReturnStatement ? r.outputs : Hi.includes(r.type) || r.type === n.FunctionDeclaration ? r.inputs : [];
42110
+ ] : Ne.includes(r.type) ? r.outputs : Hi.includes(r.type) || r.type === n.FunctionDeclaration ? r.inputs : [];
42099
42111
  }
42100
42112
  function V7(r) {
42101
42113
  const e = Kn(r), t = [], i = [];
@@ -42436,7 +42448,7 @@ function Ok(r) {
42436
42448
  var e;
42437
42449
  return r.type === n.FunctionCall ? ((e = r.declaration.returnStatements[0]) == null ? void 0 : e.outputs) || [] : [n.Operation, n.Condition, n.Loop].includes(
42438
42450
  r.type
42439
- ) ? r.declaration.outputs : r.type === n.Search ? r.outputsDeclarations : xe.includes(r.type) ? r.outputs : [];
42451
+ ) ? r.declaration.outputs : r.type === n.Search ? r.outputsDeclarations : Ne.includes(r.type) ? r.outputs : [];
42440
42452
  }
42441
42453
  function k7(r, e) {
42442
42454
  return e.type === n.Condition ? null : e.type === n.FunctionCall || e.type === n.Operation ? e.outputs.find((t) => t.declaration.id === r.id) : null;
@@ -42518,7 +42530,7 @@ function Kn(r, e = !1) {
42518
42530
  ...a
42519
42531
  );
42520
42532
  }
42521
- if (qe.includes(r.type) && r.type !== n.Condition) {
42533
+ if (qe.includes(r.type) && r.type !== n.Condition && r.type !== n.Loop) {
42522
42534
  const i = r == null ? void 0 : r.outputs.map((o) => vi(o)).flat(), a = r.successCalls.map(
42523
42535
  (o) => et(o)
42524
42536
  ), s = r.errorCalls.map(
@@ -42994,7 +43006,7 @@ function Na(r) {
42994
43006
  [
42995
43007
  ...s.successCalls || []
42996
43008
  ].forEach((u) => {
42997
- xe.includes(u.type) && u !== r && (Me(
43009
+ Ne.includes(u.type) && u !== r && (Me(
42998
43010
  r
42999
43011
  ).find((f) => f === u) || i(s, u));
43000
43012
  });
@@ -43011,7 +43023,7 @@ function Na(r) {
43011
43023
  [
43012
43024
  ...s.errorCalls || []
43013
43025
  ].forEach((u) => {
43014
- xe.includes(u.type) && u !== r && (Me(
43026
+ Ne.includes(u.type) && u !== r && (Me(
43015
43027
  r
43016
43028
  ).find((f) => f === u) || i(s, u));
43017
43029
  });
@@ -43026,7 +43038,7 @@ function Na(r) {
43026
43038
  }
43027
43039
  }), r.calledByEntry.forEach((s) => {
43028
43040
  if ([...s.calls || []].forEach((u) => {
43029
- xe.includes(u.type) && u !== r && (Me(
43041
+ Ne.includes(u.type) && u !== r && (Me(
43030
43042
  r
43031
43043
  ).find((f) => f === u) || i(s, u));
43032
43044
  }), s === a)
@@ -43274,7 +43286,7 @@ const Oe = class Oe {
43274
43286
  a.push(
43275
43287
  ...s,
43276
43288
  ...o,
43277
- ...Ve(i)
43289
+ ...xe(i)
43278
43290
  );
43279
43291
  const l = i.parent ? t.get(i.parent) : null;
43280
43292
  if (l && l.type === n.DataType) {
@@ -44565,7 +44577,7 @@ const Q = class Q {
44565
44577
  JSON.stringify(e)
44566
44578
  );
44567
44579
  const a = [];
44568
- return a.push(...Ve(i)), {
44580
+ return a.push(...xe(i)), {
44569
44581
  errors: a,
44570
44582
  modifiedData: i
44571
44583
  };
@@ -45512,8 +45524,8 @@ let B = Q;
45512
45524
  class qk extends ee {
45513
45525
  constructor(t) {
45514
45526
  super(Zt, t);
45515
- c(this, "id", Ne.Parallel);
45516
- c(this, "name", Ne.Parallel);
45527
+ c(this, "id", Ve.Parallel);
45528
+ c(this, "name", Ve.Parallel);
45517
45529
  c(this, "description", "Execute a list of actions one after the other");
45518
45530
  c(this, "version", 1);
45519
45531
  c(this, "autoexecutable", !0);
@@ -45609,8 +45621,8 @@ class Jk extends ee {
45609
45621
  class Wk extends ee {
45610
45622
  constructor(t) {
45611
45623
  super(vn, t);
45612
- c(this, "id", Ne.Sequential);
45613
- c(this, "name", Ne.Sequential);
45624
+ c(this, "id", Ve.Sequential);
45625
+ c(this, "name", Ve.Sequential);
45614
45626
  c(this, "description", "Execute a list of actions one after the other");
45615
45627
  c(this, "version", 1);
45616
45628
  c(this, "autoexecutable", !0);
@@ -46134,7 +46146,7 @@ export {
46134
46146
  f7 as EntityWithLogicScopeClass,
46135
46147
  h7 as EntityWithValueClass,
46136
46148
  p7 as EntryPointEntityClass,
46137
- Ne as ExecutionOperations,
46149
+ Ve as ExecutionOperations,
46138
46150
  K5 as ExecutionTerminationType,
46139
46151
  Wr as FunctionCallState,
46140
46152
  Vr as FunctionDeclarationState,
@@ -46192,7 +46204,7 @@ export {
46192
46204
  Jb as SplitListOperationOutputIds,
46193
46205
  kt as StandaloneOperatorTypes,
46194
46206
  Z as StringOperations,
46195
- xe as TERMINATION_TYPES,
46207
+ Ne as TERMINATION_TYPES,
46196
46208
  m2 as USER_MANAGED_ENTITY_TYPES,
46197
46209
  o7 as UserManagedEntityStateFunctionality,
46198
46210
  Um as VALUE_READING_ENTITIES_EXPLANATION,
@@ -46929,7 +46941,7 @@ export {
46929
46941
  Mm as validateFunctionDeclarationName,
46930
46942
  g7 as validateGeneratedEntityParentIsNotBuiltInEntity,
46931
46943
  v7 as validateGeneration,
46932
- Ve as validateGenerationTarget,
46944
+ xe as validateGenerationTarget,
46933
46945
  R7 as validateGenerationUpdate,
46934
46946
  B7 as validateLoopEntityDeclaration,
46935
46947
  s7 as validateName,