@elyx-code/project-logic-tree 0.0.6076 → 0.0.6077
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 +81 -81
- package/dist/index.umd.cjs +59 -59
- package/package.json +1 -1
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 || {}),
|
|
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
|
-
],
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
2365
|
+
name: Ve.Sequential,
|
|
2366
2366
|
inputs: [Kd],
|
|
2367
2367
|
outputs: [Xd],
|
|
2368
2368
|
error: yv,
|
|
2369
2369
|
parent: null
|
|
2370
2370
|
}, hv = {
|
|
2371
|
-
[
|
|
2372
|
-
[
|
|
2373
|
-
[
|
|
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
|
|
23641
|
+
case Ve.Wait:
|
|
23642
23642
|
return "Wait";
|
|
23643
|
-
case
|
|
23643
|
+
case Ve.Parallel:
|
|
23644
23644
|
return "Run in parallel";
|
|
23645
|
-
case
|
|
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
|
-
...
|
|
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
|
-
...
|
|
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
|
-
...
|
|
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
|
-
...
|
|
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
|
-
...
|
|
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
|
-
...
|
|
27556
|
+
...xe(i)
|
|
27557
27557
|
), e.declaration ? t.get(
|
|
27558
27558
|
e.declaration
|
|
27559
27559
|
) ? t.conditionDeclarations.find(
|
|
@@ -29336,7 +29336,7 @@ const Te = class Te {
|
|
|
29336
29336
|
);
|
|
29337
29337
|
return i = s.modifiedData, a.push(
|
|
29338
29338
|
...s.errors,
|
|
29339
|
-
...
|
|
29339
|
+
...xe(i)
|
|
29340
29340
|
), e.declaration ? t.get(
|
|
29341
29341
|
e.declaration
|
|
29342
29342
|
) ? t.conditionDeclarations.find(
|
|
@@ -30031,7 +30031,7 @@ const de = class de {
|
|
|
30031
30031
|
return a.push(
|
|
30032
30032
|
...s.errors,
|
|
30033
30033
|
...o,
|
|
30034
|
-
...
|
|
30034
|
+
...xe(i)
|
|
30035
30035
|
), {
|
|
30036
30036
|
errors: a,
|
|
30037
30037
|
modifiedData: i
|
|
@@ -30953,7 +30953,7 @@ const ue = class ue {
|
|
|
30953
30953
|
);
|
|
30954
30954
|
return i = s.modifiedData, a.push(
|
|
30955
30955
|
...s.errors,
|
|
30956
|
-
...
|
|
30956
|
+
...xe(i)
|
|
30957
30957
|
), {
|
|
30958
30958
|
errors: a,
|
|
30959
30959
|
modifiedData: i
|
|
@@ -31856,7 +31856,7 @@ ${L}`,
|
|
|
31856
31856
|
return a.push(
|
|
31857
31857
|
...s.errors,
|
|
31858
31858
|
...o,
|
|
31859
|
-
...
|
|
31859
|
+
...xe(i)
|
|
31860
31860
|
), {
|
|
31861
31861
|
errors: a,
|
|
31862
31862
|
modifiedData: i
|
|
@@ -32369,7 +32369,7 @@ const _e = class _e {
|
|
|
32369
32369
|
);
|
|
32370
32370
|
return i = s.modifiedData, a.push(
|
|
32371
32371
|
...s.errors,
|
|
32372
|
-
...
|
|
32372
|
+
...xe(i)
|
|
32373
32373
|
), {
|
|
32374
32374
|
errors: a,
|
|
32375
32375
|
modifiedData: i
|
|
@@ -32949,7 +32949,7 @@ const Ee = class Ee {
|
|
|
32949
32949
|
JSON.stringify(e)
|
|
32950
32950
|
);
|
|
32951
32951
|
const a = [];
|
|
32952
|
-
return a.push(...
|
|
32952
|
+
return a.push(...xe(i)), { errors: a, modifiedData: i };
|
|
32953
32953
|
}
|
|
32954
32954
|
validateGeneratedUpdate(e) {
|
|
32955
32955
|
const t = [];
|
|
@@ -33495,7 +33495,7 @@ The you can attach the new internal-call to it.`,
|
|
|
33495
33495
|
}
|
|
33496
33496
|
return a.push(
|
|
33497
33497
|
...s.errors,
|
|
33498
|
-
...
|
|
33498
|
+
...xe(i)
|
|
33499
33499
|
), {
|
|
33500
33500
|
errors: a,
|
|
33501
33501
|
modifiedData: i
|
|
@@ -34220,7 +34220,7 @@ ${R}`,
|
|
|
34220
34220
|
}
|
|
34221
34221
|
return a.push(
|
|
34222
34222
|
...s.errors,
|
|
34223
|
-
...
|
|
34223
|
+
...xe(i)
|
|
34224
34224
|
), {
|
|
34225
34225
|
errors: a,
|
|
34226
34226
|
modifiedData: i
|
|
@@ -34722,7 +34722,7 @@ You can't edit output-map entities as they need to match their return declaratio
|
|
|
34722
34722
|
}
|
|
34723
34723
|
return a.push(
|
|
34724
34724
|
...s.errors,
|
|
34725
|
-
...
|
|
34725
|
+
...xe(i)
|
|
34726
34726
|
), {
|
|
34727
34727
|
errors: a,
|
|
34728
34728
|
modifiedData: i
|
|
@@ -35159,7 +35159,7 @@ ${I}`,
|
|
|
35159
35159
|
return a.push(
|
|
35160
35160
|
...s.errors,
|
|
35161
35161
|
...o,
|
|
35162
|
-
...
|
|
35162
|
+
...xe(i)
|
|
35163
35163
|
), { errors: a, modifiedData: i };
|
|
35164
35164
|
}
|
|
35165
35165
|
validateGeneratedUpdate(e) {
|
|
@@ -35625,7 +35625,7 @@ const ge = class ge {
|
|
|
35625
35625
|
const a = [], s = W5(i, t);
|
|
35626
35626
|
return a.push(
|
|
35627
35627
|
...s,
|
|
35628
|
-
...
|
|
35628
|
+
...xe(i)
|
|
35629
35629
|
), {
|
|
35630
35630
|
errors: a,
|
|
35631
35631
|
modifiedData: i
|
|
@@ -35988,7 +35988,7 @@ const Ie = class Ie {
|
|
|
35988
35988
|
);
|
|
35989
35989
|
return i = s.modifiedData, a.push(
|
|
35990
35990
|
...s.errors,
|
|
35991
|
-
...
|
|
35991
|
+
...xe(i)
|
|
35992
35992
|
), {
|
|
35993
35993
|
errors: a,
|
|
35994
35994
|
modifiedData: i
|
|
@@ -36392,7 +36392,7 @@ const st = class st {
|
|
|
36392
36392
|
);
|
|
36393
36393
|
return i = s.modifiedData, a.push(
|
|
36394
36394
|
...s.errors,
|
|
36395
|
-
...
|
|
36395
|
+
...xe(i)
|
|
36396
36396
|
// ...callerReferencesValidation.errors
|
|
36397
36397
|
), {
|
|
36398
36398
|
errors: a,
|
|
@@ -36798,7 +36798,7 @@ const De = class De {
|
|
|
36798
36798
|
);
|
|
36799
36799
|
return i = s.modifiedData, a.push(
|
|
36800
36800
|
...s.errors,
|
|
36801
|
-
...
|
|
36801
|
+
...xe(i)
|
|
36802
36802
|
), {
|
|
36803
36803
|
errors: a,
|
|
36804
36804
|
modifiedData: i
|
|
@@ -37235,7 +37235,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
37235
37235
|
}
|
|
37236
37236
|
return a.push(
|
|
37237
37237
|
...s.errors,
|
|
37238
|
-
...
|
|
37238
|
+
...xe(i)
|
|
37239
37239
|
), {
|
|
37240
37240
|
errors: a,
|
|
37241
37241
|
modifiedData: i
|
|
@@ -37979,7 +37979,7 @@ const Ae = class Ae {
|
|
|
37979
37979
|
);
|
|
37980
37980
|
i = s.modifiedData, a.push(
|
|
37981
37981
|
...s.errors,
|
|
37982
|
-
...
|
|
37982
|
+
...xe(i)
|
|
37983
37983
|
);
|
|
37984
37984
|
const o = i.parent && t.get(i.parent), l = o && Xn(o);
|
|
37985
37985
|
return l && l.type === n.ActionDescriptor && a.push(
|
|
@@ -38925,7 +38925,7 @@ function Gm(r, e) {
|
|
|
38925
38925
|
})
|
|
38926
38926
|
);
|
|
38927
38927
|
}
|
|
38928
|
-
function
|
|
38928
|
+
function xe(r, e) {
|
|
38929
38929
|
const t = [], i = ek(r);
|
|
38930
38930
|
if (i) {
|
|
38931
38931
|
const s = i.safeParse(r);
|
|
@@ -39253,7 +39253,7 @@ We have moved the reference to 'calledByEntry' for you.`,
|
|
|
39253
39253
|
), t.calledByEntry.push(e.id), t.calledBySuccess = t.calledBySuccess.filter(
|
|
39254
39254
|
(a) => a !== e.id
|
|
39255
39255
|
);
|
|
39256
|
-
else if (
|
|
39256
|
+
else if (Ne.includes(e.type)) {
|
|
39257
39257
|
const a = e.calledBy || [], s = a.length ? `
|
|
39258
39258
|
|
|
39259
39259
|
This ${e.type} is called by ${G(
|
|
@@ -39271,7 +39271,7 @@ This ${e.type} is called by ${G(
|
|
|
39271
39271
|
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
39272
|
${e.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
|
|
39273
39273
|
Termination entities are ${G(
|
|
39274
|
-
|
|
39274
|
+
Ne,
|
|
39275
39275
|
", ",
|
|
39276
39276
|
" and "
|
|
39277
39277
|
)}.${s}`,
|
|
@@ -39322,7 +39322,7 @@ ${Js}`,
|
|
|
39322
39322
|
issue: null
|
|
39323
39323
|
})
|
|
39324
39324
|
);
|
|
39325
|
-
else if (
|
|
39325
|
+
else if (Ne.includes(e.type)) {
|
|
39326
39326
|
const i = e.calledBy || [], a = i.length ? `
|
|
39327
39327
|
|
|
39328
39328
|
This ${e.type} is called by ${G(
|
|
@@ -39340,7 +39340,7 @@ This ${e.type} is called by ${G(
|
|
|
39340
39340
|
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
39341
|
${e.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
|
|
39342
39342
|
Termination entities are ${G(
|
|
39343
|
-
|
|
39343
|
+
Ne,
|
|
39344
39344
|
", ",
|
|
39345
39345
|
" and "
|
|
39346
39346
|
)}.${a}`,
|
|
@@ -39379,7 +39379,7 @@ ${zn}`,
|
|
|
39379
39379
|
}
|
|
39380
39380
|
function ak(r, e) {
|
|
39381
39381
|
const t = [];
|
|
39382
|
-
if (
|
|
39382
|
+
if (Ne.includes(e.type)) {
|
|
39383
39383
|
const i = e.calledBy || [], a = i.length ? `
|
|
39384
39384
|
|
|
39385
39385
|
This ${e.type} is called by ${G(
|
|
@@ -39397,7 +39397,7 @@ This ${e.type} is called by ${G(
|
|
|
39397
39397
|
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
39398
|
${e.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
|
|
39399
39399
|
Termination entities are ${G(
|
|
39400
|
-
|
|
39400
|
+
Ne,
|
|
39401
39401
|
", ",
|
|
39402
39402
|
" and "
|
|
39403
39403
|
)}.${a}`,
|
|
@@ -39565,10 +39565,10 @@ function sk(r, e) {
|
|
|
39565
39565
|
o,
|
|
39566
39566
|
E,
|
|
39567
39567
|
e
|
|
39568
|
-
) ? (
|
|
39568
|
+
) ? (Ne.includes(i.type) && ((i.calledBySuccess || []).find(
|
|
39569
39569
|
(I) => I === f.id
|
|
39570
39570
|
) ? (f.successCalls || []).find(
|
|
39571
|
-
(g) =>
|
|
39571
|
+
(g) => Ne.includes(g.type)
|
|
39572
39572
|
) && t.push(
|
|
39573
39573
|
new T({
|
|
39574
39574
|
id: `${i.id}--${f.id}--${S.UnreachableEntity}`,
|
|
@@ -39581,7 +39581,7 @@ The new termination statement is redundant because both entities would be called
|
|
|
39581
39581
|
) : (i.calledByError || []).find(
|
|
39582
39582
|
(I) => I === f.id
|
|
39583
39583
|
) ? (f.errorCalls || []).find(
|
|
39584
|
-
(g) =>
|
|
39584
|
+
(g) => Ne.includes(g.type)
|
|
39585
39585
|
) && t.push(
|
|
39586
39586
|
new T({
|
|
39587
39587
|
id: `${i.id}--${f.id}--${S.UnreachableEntity}`,
|
|
@@ -39594,7 +39594,7 @@ The new termination statement is redundant because both entities would be called
|
|
|
39594
39594
|
) : (i.calledByEntry || []).find(
|
|
39595
39595
|
(I) => I === f.id
|
|
39596
39596
|
) && (f.calls || []).find(
|
|
39597
|
-
(g) =>
|
|
39597
|
+
(g) => Ne.includes(g.type)
|
|
39598
39598
|
) && t.push(
|
|
39599
39599
|
new T({
|
|
39600
39600
|
id: `${i.id}--${f.id}--${S.UnreachableEntity}`,
|
|
@@ -39628,10 +39628,10 @@ The new termination statement is redundant because both entities would be called
|
|
|
39628
39628
|
E,
|
|
39629
39629
|
e
|
|
39630
39630
|
);
|
|
39631
|
-
R ? (
|
|
39631
|
+
R ? (Ne.includes(i.type) && ((i.calledBySuccess || []).find(
|
|
39632
39632
|
(I) => I === f.id
|
|
39633
39633
|
) ? (f.successCalls || []).find(
|
|
39634
|
-
(g) =>
|
|
39634
|
+
(g) => Ne.includes(g.type)
|
|
39635
39635
|
) && t.push(
|
|
39636
39636
|
new T({
|
|
39637
39637
|
id: `${i.id}--${f.id}--${S.UnreachableEntity}`,
|
|
@@ -39644,7 +39644,7 @@ The new termination statement is redundant because both entities would be called
|
|
|
39644
39644
|
) : (i.calledByError || []).find(
|
|
39645
39645
|
(I) => I === f.id
|
|
39646
39646
|
) ? (f.errorCalls || []).find(
|
|
39647
|
-
(g) =>
|
|
39647
|
+
(g) => Ne.includes(g.type)
|
|
39648
39648
|
) && t.push(
|
|
39649
39649
|
new T({
|
|
39650
39650
|
id: `${i.id}--${f.id}--${S.UnreachableEntity}`,
|
|
@@ -39657,7 +39657,7 @@ The new termination statement is redundant because both entities would be called
|
|
|
39657
39657
|
) : (i.calledByEntry || []).find(
|
|
39658
39658
|
(I) => I === f.id
|
|
39659
39659
|
) && (f.calls || []).find(
|
|
39660
|
-
(g) =>
|
|
39660
|
+
(g) => Ne.includes(g.type)
|
|
39661
39661
|
) && t.push(
|
|
39662
39662
|
new T({
|
|
39663
39663
|
id: `${i.id}--${f.id}--${S.UnreachableEntity}`,
|
|
@@ -39707,13 +39707,13 @@ To add a caller, use the 'add_caller' action with the properties: 'callerEntityI
|
|
|
39707
39707
|
Return statements need to have a caller when created, since their purpose is to terminate a call chain.` : i.type === n.ContinueStatement ? s += `
|
|
39708
39708
|
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
39709
|
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}`,
|
|
39710
|
+
${tk}`, Ne.includes(i.type) || (s += `
|
|
39711
39711
|
It is recommended to have a caller reference already at the moment of creation in the payload of the generation action.`), t.push(
|
|
39712
39712
|
new T({
|
|
39713
39713
|
id: `${i.id}--${S.MissingCaller}`,
|
|
39714
39714
|
code: S.MissingCaller,
|
|
39715
39715
|
// If it is a termination statement, make it an error, otherwise a warning
|
|
39716
|
-
severity:
|
|
39716
|
+
severity: Ne.includes(i.type) ? m.Error : m.Warning,
|
|
39717
39717
|
message: s,
|
|
39718
39718
|
issue: null
|
|
39719
39719
|
})
|
|
@@ -40027,7 +40027,7 @@ function A7(r, e, t = "calledBy") {
|
|
|
40027
40027
|
), i;
|
|
40028
40028
|
if ([...qe, ...Ge].includes(a.type))
|
|
40029
40029
|
return [];
|
|
40030
|
-
if (
|
|
40030
|
+
if (Ne.includes(a.type)) {
|
|
40031
40031
|
const s = a.calledBy || [], o = s.length ? `
|
|
40032
40032
|
|
|
40033
40033
|
This ${a.type} is called by ${G(
|
|
@@ -40045,7 +40045,7 @@ This ${a.type} is called by ${G(
|
|
|
40045
40045
|
message: `Entity with id '${a.id}' referenced in '${t}' property is of type '${a.type}'.
|
|
40046
40046
|
${a.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
|
|
40047
40047
|
Termination entities are ${G(
|
|
40048
|
-
|
|
40048
|
+
Ne,
|
|
40049
40049
|
", ",
|
|
40050
40050
|
" and "
|
|
40051
40051
|
)}.${o}`,
|
|
@@ -40086,7 +40086,7 @@ function S7(r, e, t = "calledByError") {
|
|
|
40086
40086
|
), i;
|
|
40087
40087
|
if (qe.includes(a.type))
|
|
40088
40088
|
return [];
|
|
40089
|
-
if (
|
|
40089
|
+
if (Ne.includes(a.type)) {
|
|
40090
40090
|
const s = a.calledBy || [], o = s.length ? `
|
|
40091
40091
|
|
|
40092
40092
|
This ${a.type} is called by ${G(
|
|
@@ -40104,7 +40104,7 @@ This ${a.type} is called by ${G(
|
|
|
40104
40104
|
message: `Entity with id '${a.id}' referenced in '${t}' property is of type '${a.type}'.
|
|
40105
40105
|
${a.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
|
|
40106
40106
|
Termination entities are ${G(
|
|
40107
|
-
|
|
40107
|
+
Ne,
|
|
40108
40108
|
", ",
|
|
40109
40109
|
" and "
|
|
40110
40110
|
)}.${o}`,
|
|
@@ -40837,7 +40837,7 @@ const Se = class Se {
|
|
|
40837
40837
|
);
|
|
40838
40838
|
i = s.modifiedData, a.push(
|
|
40839
40839
|
...s.errors,
|
|
40840
|
-
...
|
|
40840
|
+
...xe(i)
|
|
40841
40841
|
);
|
|
40842
40842
|
const o = _(
|
|
40843
40843
|
i.declaration
|
|
@@ -42095,7 +42095,7 @@ function N7(r) {
|
|
|
42095
42095
|
return r.type === n.VariableDeclaration ? [r] : qe.includes(r.type) ? [
|
|
42096
42096
|
...r.inputs,
|
|
42097
42097
|
...r.outputs || []
|
|
42098
|
-
] : r.type
|
|
42098
|
+
] : Ne.includes(r.type) ? r.outputs : Hi.includes(r.type) || r.type === n.FunctionDeclaration ? r.inputs : [];
|
|
42099
42099
|
}
|
|
42100
42100
|
function V7(r) {
|
|
42101
42101
|
const e = Kn(r), t = [], i = [];
|
|
@@ -42436,7 +42436,7 @@ function Ok(r) {
|
|
|
42436
42436
|
var e;
|
|
42437
42437
|
return r.type === n.FunctionCall ? ((e = r.declaration.returnStatements[0]) == null ? void 0 : e.outputs) || [] : [n.Operation, n.Condition, n.Loop].includes(
|
|
42438
42438
|
r.type
|
|
42439
|
-
) ? r.declaration.outputs : r.type === n.Search ? r.outputsDeclarations :
|
|
42439
|
+
) ? r.declaration.outputs : r.type === n.Search ? r.outputsDeclarations : Ne.includes(r.type) ? r.outputs : [];
|
|
42440
42440
|
}
|
|
42441
42441
|
function k7(r, e) {
|
|
42442
42442
|
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 +42518,7 @@ function Kn(r, e = !1) {
|
|
|
42518
42518
|
...a
|
|
42519
42519
|
);
|
|
42520
42520
|
}
|
|
42521
|
-
if (qe.includes(r.type) && r.type !== n.Condition) {
|
|
42521
|
+
if (qe.includes(r.type) && r.type !== n.Condition && r.type !== n.Loop) {
|
|
42522
42522
|
const i = r == null ? void 0 : r.outputs.map((o) => vi(o)).flat(), a = r.successCalls.map(
|
|
42523
42523
|
(o) => et(o)
|
|
42524
42524
|
), s = r.errorCalls.map(
|
|
@@ -42994,7 +42994,7 @@ function Na(r) {
|
|
|
42994
42994
|
[
|
|
42995
42995
|
...s.successCalls || []
|
|
42996
42996
|
].forEach((u) => {
|
|
42997
|
-
|
|
42997
|
+
Ne.includes(u.type) && u !== r && (Me(
|
|
42998
42998
|
r
|
|
42999
42999
|
).find((f) => f === u) || i(s, u));
|
|
43000
43000
|
});
|
|
@@ -43011,7 +43011,7 @@ function Na(r) {
|
|
|
43011
43011
|
[
|
|
43012
43012
|
...s.errorCalls || []
|
|
43013
43013
|
].forEach((u) => {
|
|
43014
|
-
|
|
43014
|
+
Ne.includes(u.type) && u !== r && (Me(
|
|
43015
43015
|
r
|
|
43016
43016
|
).find((f) => f === u) || i(s, u));
|
|
43017
43017
|
});
|
|
@@ -43026,7 +43026,7 @@ function Na(r) {
|
|
|
43026
43026
|
}
|
|
43027
43027
|
}), r.calledByEntry.forEach((s) => {
|
|
43028
43028
|
if ([...s.calls || []].forEach((u) => {
|
|
43029
|
-
|
|
43029
|
+
Ne.includes(u.type) && u !== r && (Me(
|
|
43030
43030
|
r
|
|
43031
43031
|
).find((f) => f === u) || i(s, u));
|
|
43032
43032
|
}), s === a)
|
|
@@ -43274,7 +43274,7 @@ const Oe = class Oe {
|
|
|
43274
43274
|
a.push(
|
|
43275
43275
|
...s,
|
|
43276
43276
|
...o,
|
|
43277
|
-
...
|
|
43277
|
+
...xe(i)
|
|
43278
43278
|
);
|
|
43279
43279
|
const l = i.parent ? t.get(i.parent) : null;
|
|
43280
43280
|
if (l && l.type === n.DataType) {
|
|
@@ -44565,7 +44565,7 @@ const Q = class Q {
|
|
|
44565
44565
|
JSON.stringify(e)
|
|
44566
44566
|
);
|
|
44567
44567
|
const a = [];
|
|
44568
|
-
return a.push(...
|
|
44568
|
+
return a.push(...xe(i)), {
|
|
44569
44569
|
errors: a,
|
|
44570
44570
|
modifiedData: i
|
|
44571
44571
|
};
|
|
@@ -45512,8 +45512,8 @@ let B = Q;
|
|
|
45512
45512
|
class qk extends ee {
|
|
45513
45513
|
constructor(t) {
|
|
45514
45514
|
super(Zt, t);
|
|
45515
|
-
c(this, "id",
|
|
45516
|
-
c(this, "name",
|
|
45515
|
+
c(this, "id", Ve.Parallel);
|
|
45516
|
+
c(this, "name", Ve.Parallel);
|
|
45517
45517
|
c(this, "description", "Execute a list of actions one after the other");
|
|
45518
45518
|
c(this, "version", 1);
|
|
45519
45519
|
c(this, "autoexecutable", !0);
|
|
@@ -45609,8 +45609,8 @@ class Jk extends ee {
|
|
|
45609
45609
|
class Wk extends ee {
|
|
45610
45610
|
constructor(t) {
|
|
45611
45611
|
super(vn, t);
|
|
45612
|
-
c(this, "id",
|
|
45613
|
-
c(this, "name",
|
|
45612
|
+
c(this, "id", Ve.Sequential);
|
|
45613
|
+
c(this, "name", Ve.Sequential);
|
|
45614
45614
|
c(this, "description", "Execute a list of actions one after the other");
|
|
45615
45615
|
c(this, "version", 1);
|
|
45616
45616
|
c(this, "autoexecutable", !0);
|
|
@@ -46134,7 +46134,7 @@ export {
|
|
|
46134
46134
|
f7 as EntityWithLogicScopeClass,
|
|
46135
46135
|
h7 as EntityWithValueClass,
|
|
46136
46136
|
p7 as EntryPointEntityClass,
|
|
46137
|
-
|
|
46137
|
+
Ve as ExecutionOperations,
|
|
46138
46138
|
K5 as ExecutionTerminationType,
|
|
46139
46139
|
Wr as FunctionCallState,
|
|
46140
46140
|
Vr as FunctionDeclarationState,
|
|
@@ -46192,7 +46192,7 @@ export {
|
|
|
46192
46192
|
Jb as SplitListOperationOutputIds,
|
|
46193
46193
|
kt as StandaloneOperatorTypes,
|
|
46194
46194
|
Z as StringOperations,
|
|
46195
|
-
|
|
46195
|
+
Ne as TERMINATION_TYPES,
|
|
46196
46196
|
m2 as USER_MANAGED_ENTITY_TYPES,
|
|
46197
46197
|
o7 as UserManagedEntityStateFunctionality,
|
|
46198
46198
|
Um as VALUE_READING_ENTITIES_EXPLANATION,
|
|
@@ -46929,7 +46929,7 @@ export {
|
|
|
46929
46929
|
Mm as validateFunctionDeclarationName,
|
|
46930
46930
|
g7 as validateGeneratedEntityParentIsNotBuiltInEntity,
|
|
46931
46931
|
v7 as validateGeneration,
|
|
46932
|
-
|
|
46932
|
+
xe as validateGenerationTarget,
|
|
46933
46933
|
R7 as validateGenerationUpdate,
|
|
46934
46934
|
B7 as validateLoopEntityDeclaration,
|
|
46935
46935
|
s7 as validateName,
|