@elyx-code/project-logic-tree 0.0.6271 → 0.0.6273

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 Fv = Object.defineProperty;
2
2
  var gv = (r, a, e) => a in r ? Fv(r, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[a] = e;
3
3
  var h = (r, a, e) => (gv(r, typeof a != "symbol" ? a + "" : a, e), e);
4
- var n = /* @__PURE__ */ ((r) => (r.DefinitionEntity = "definition-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.LiteralValue = "literal-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 || {}), z = /* @__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))(z || {}), Tt = /* @__PURE__ */ ((r) => (r.CurrentDateAndTime = "current-date-and-time", r.Unique = "unique", r.Random = "random", r))(Tt || {}), M = /* @__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.KeyValue = "key-value", r.Date = "date", r.UUID = "uuid", r.File = "file", r.Untyped = "untyped", r))(M || {}), it = /* @__PURE__ */ ((r) => (r.Addition = "addition", r.Subtraction = "subtraction", r.Multiplication = "multiplication", r.Division = "division", r.Remainder = "remainder", r.Exponentiation = "exponentiation", r))(it || {}), Ze = /* @__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))(Ze || {}), ye = /* @__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))(ye || {}), et = /* @__PURE__ */ ((r) => (r.Parallel = "parallel", r.Sequential = "sequential", r.Wait = "wait", r))(et || {}), Qe = /* @__PURE__ */ ((r) => (r.CreateNewInstance = "create-new-instance", r.Validate = "validate", r))(Qe || {}), Jt = /* @__PURE__ */ ((r) => (r.HttpRequest = "base-http-request", r))(Jt || {}), ct = /* @__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))(ct || {}), Bi = /* @__PURE__ */ ((r) => (r.Empty = "empty", r.NotEmpty = "not-empty", r))(Bi || {}), ee = /* @__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))(ee || {}), N = /* @__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))(N || {}), Pt = /* @__PURE__ */ ((r) => (r.OrDataTypeGroup = "or-data-type-group", r.AndDataTypeGroup = "and-data-type-group", r))(Pt || {}), Tr = /* @__PURE__ */ ((r) => (r.PROJECT_PUBLICATION_COMPLETED = "GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED", r))(Tr || {}), Ai = /* @__PURE__ */ ((r) => (r.DeletePersistedEntity = "base-delete-persisted-entity", r.SoftDeletePersistedEntity = "base-soft-delete-persisted-entity", r.AbortExecution = "base-abort-execution", r))(Ai || {}), Os = /* @__PURE__ */ ((r) => (r.Error = "error", r.Task = "task", r.Return = "return", r))(Os || {});
4
+ var n = /* @__PURE__ */ ((r) => (r.DefinitionEntity = "definition-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.LiteralValue = "literal-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 || {}), z = /* @__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))(z || {}), Tt = /* @__PURE__ */ ((r) => (r.CurrentDateAndTime = "current-date-and-time", r.Unique = "unique", r.Random = "random", r))(Tt || {}), M = /* @__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.KeyValue = "key-value", r.Date = "date", r.UUID = "uuid", r.File = "file", r.Untyped = "untyped", r))(M || {}), it = /* @__PURE__ */ ((r) => (r.Addition = "addition", r.Subtraction = "subtraction", r.Multiplication = "multiplication", r.Division = "division", r.Remainder = "remainder", r.Exponentiation = "exponentiation", r))(it || {}), Ze = /* @__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))(Ze || {}), ye = /* @__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))(ye || {}), et = /* @__PURE__ */ ((r) => (r.Parallel = "parallel", r.Sequential = "sequential", r.Wait = "wait", r))(et || {}), Qe = /* @__PURE__ */ ((r) => (r.CreateNewInstance = "create-new-instance", r.Validate = "validate", r))(Qe || {}), Jt = /* @__PURE__ */ ((r) => (r.HttpRequest = "base-http-request", r))(Jt || {}), ct = /* @__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))(ct || {}), Bi = /* @__PURE__ */ ((r) => (r.Empty = "empty", r.NotEmpty = "not-empty", r))(Bi || {}), ee = /* @__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))(ee || {}), N = /* @__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))(N || {}), Vt = /* @__PURE__ */ ((r) => (r.OrDataTypeGroup = "or-data-type-group", r.AndDataTypeGroup = "and-data-type-group", r))(Vt || {}), Tr = /* @__PURE__ */ ((r) => (r.PROJECT_PUBLICATION_COMPLETED = "GLOBAL_EVENT_PROJECT_PUBLICATION_COMPLETED", r))(Tr || {}), Ai = /* @__PURE__ */ ((r) => (r.DeletePersistedEntity = "base-delete-persisted-entity", r.SoftDeletePersistedEntity = "base-soft-delete-persisted-entity", r.AbortExecution = "base-abort-execution", r))(Ai || {}), Os = /* @__PURE__ */ ((r) => (r.Error = "error", r.Task = "task", r.Return = "return", r))(Os || {});
5
5
  const Fr = [
6
6
  n.VariableDeclaration,
7
7
  n.VariableInstance,
@@ -6636,7 +6636,7 @@ const sA = {
6636
6636
  dataType: e1,
6637
6637
  description: "If true, this database will automatically scale up or down in memory size, based on the usage.",
6638
6638
  parent: t1
6639
- }, Rt = {
6639
+ }, Dt = {
6640
6640
  id: z.RELATIONAL_DATABASE,
6641
6641
  version: "1",
6642
6642
  createdAt: "2024-01-01T00:00:00.000Z",
@@ -6717,7 +6717,7 @@ const sA = {
6717
6717
  andChildrenGroup: null,
6718
6718
  orChildrenGroup: null,
6719
6719
  isList: !1,
6720
- entity: Rt,
6720
+ entity: Dt,
6721
6721
  asType: !0,
6722
6722
  parent: r1
6723
6723
  }, s1 = {
@@ -6774,7 +6774,7 @@ const sA = {
6774
6774
  isList: !1,
6775
6775
  entity: Ee,
6776
6776
  asType: !1,
6777
- parentRelationType: Pt.OrDataTypeGroup,
6777
+ parentRelationType: Vt.OrDataTypeGroup,
6778
6778
  parent: a1
6779
6779
  }, l1 = {
6780
6780
  id: "persisted-built-in-base-entity-primary-key-property-string-data-type-option-parent-ref-id",
@@ -6802,7 +6802,7 @@ const sA = {
6802
6802
  isList: !1,
6803
6803
  entity: se,
6804
6804
  asType: !1,
6805
- parentRelationType: Pt.OrDataTypeGroup,
6805
+ parentRelationType: Vt.OrDataTypeGroup,
6806
6806
  parent: l1
6807
6807
  }, u1 = {
6808
6808
  id: "persisted-built-in-base-entity-primary-key-property-uuid-data-type-option-parent-ref-id",
@@ -6830,7 +6830,7 @@ const sA = {
6830
6830
  isList: !1,
6831
6831
  entity: Vr,
6832
6832
  asType: !1,
6833
- parentRelationType: Pt.OrDataTypeGroup,
6833
+ parentRelationType: Vt.OrDataTypeGroup,
6834
6834
  parent: u1
6835
6835
  }, c1 = {
6836
6836
  id: "persisted-built-in-base-entity-primary-key-property-ref-id",
@@ -7086,7 +7086,7 @@ const sA = {
7086
7086
  abstractMethods: []
7087
7087
  }, R1 = [
7088
7088
  ui,
7089
- Rt,
7089
+ Dt,
7090
7090
  jt,
7091
7091
  pd,
7092
7092
  cd
@@ -11258,7 +11258,7 @@ const OP = {
11258
11258
  abstractMethods: [],
11259
11259
  extends: [],
11260
11260
  implements: [
11261
- Rt
11261
+ Dt
11262
11262
  ],
11263
11263
  x: 0,
11264
11264
  y: 0,
@@ -11294,7 +11294,7 @@ const OP = {
11294
11294
  andChildrenGroup: null,
11295
11295
  orChildrenGroup: null,
11296
11296
  isList: !1,
11297
- entity: Rt,
11297
+ entity: Dt,
11298
11298
  asType: !1,
11299
11299
  parent: NP
11300
11300
  }, jP = {
@@ -12153,7 +12153,7 @@ const vV = {
12153
12153
  methods: [],
12154
12154
  abstractMethods: [],
12155
12155
  extends: [],
12156
- implements: [Rt],
12156
+ implements: [Dt],
12157
12157
  x: 0,
12158
12158
  y: 0,
12159
12159
  parent: NV
@@ -12188,7 +12188,7 @@ const vV = {
12188
12188
  andChildrenGroup: null,
12189
12189
  orChildrenGroup: null,
12190
12190
  isList: !1,
12191
- entity: Rt,
12191
+ entity: Dt,
12192
12192
  asType: !1,
12193
12193
  parent: UV
12194
12194
  }, LV = {
@@ -16635,7 +16635,7 @@ const px = {
16635
16635
  andChildrenGroup: null,
16636
16636
  orChildrenGroup: null,
16637
16637
  isList: !1,
16638
- entity: Rt,
16638
+ entity: Dt,
16639
16639
  asType: !1,
16640
16640
  parent: Ox
16641
16641
  }, Vx = {
@@ -16793,7 +16793,7 @@ const px = {
16793
16793
  andChildrenGroup: null,
16794
16794
  orChildrenGroup: null,
16795
16795
  isList: !1,
16796
- entity: Rt,
16796
+ entity: Dt,
16797
16797
  asType: !1,
16798
16798
  parent: jx
16799
16799
  }, Gx = {
@@ -25121,14 +25121,14 @@ var Tm = { exports: {} };
25121
25121
  return Ie ? hr : hr.endOf(u);
25122
25122
  }, At = function($r, ti) {
25123
25123
  return ae.w(Q.toDate()[$r].apply(Q.toDate("s"), (Ie ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ti)), Q);
25124
- }, Ot = this.$W, Lt = this.$M, Ei = this.$D, xn = "set" + (this.$u ? "UTC" : "");
25124
+ }, wt = this.$W, Lt = this.$M, Ei = this.$D, xn = "set" + (this.$u ? "UTC" : "");
25125
25125
  switch (Ae) {
25126
25126
  case E:
25127
25127
  return Ie ? ot(1, 0) : ot(31, 11);
25128
25128
  case c:
25129
25129
  return Ie ? ot(1, Lt) : ot(0, Lt + 1);
25130
25130
  case f:
25131
- var Lr = this.$locale().weekStart || 0, Is = (Ot < Lr ? Ot + 7 : Ot) - Lr;
25131
+ var Lr = this.$locale().weekStart || 0, Is = (wt < Lr ? wt + 7 : wt) - Lr;
25132
25132
  return ot(Ie ? Ei - Is : Ei + (6 - Is), Lt);
25133
25133
  case u:
25134
25134
  case R:
@@ -25147,8 +25147,8 @@ var Tm = { exports: {} };
25147
25147
  }, te.$set = function(H, de) {
25148
25148
  var Q, Ie = ae.p(H), Ae = "set" + (this.$u ? "UTC" : ""), ot = (Q = {}, Q[u] = Ae + "Date", Q[R] = Ae + "Date", Q[c] = Ae + "Month", Q[E] = Ae + "FullYear", Q[d] = Ae + "Hours", Q[o] = Ae + "Minutes", Q[l] = Ae + "Seconds", Q[s] = Ae + "Milliseconds", Q)[Ie], At = Ie === u ? this.$D + (de - this.$W) : de;
25149
25149
  if (Ie === c || Ie === E) {
25150
- var Ot = this.clone().set(R, 1);
25151
- Ot.$d[ot](At), Ot.init(), this.$d = Ot.set(R, Math.min(this.$D, Ot.daysInMonth())).$d;
25150
+ var wt = this.clone().set(R, 1);
25151
+ wt.$d[ot](At), wt.init(), this.$d = wt.set(R, Math.min(this.$D, wt.daysInMonth())).$d;
25152
25152
  } else
25153
25153
  ot && this.$d[ot](At);
25154
25154
  return this.init(), this;
@@ -25171,15 +25171,15 @@ var Tm = { exports: {} };
25171
25171
  return ot(1);
25172
25172
  if (Ae === f)
25173
25173
  return ot(7);
25174
- var At = (Q = {}, Q[o] = t, Q[d] = i, Q[l] = e, Q)[Ae] || 1, Ot = this.$d.getTime() + H * At;
25175
- return ae.w(Ot, this);
25174
+ var At = (Q = {}, Q[o] = t, Q[d] = i, Q[l] = e, Q)[Ae] || 1, wt = this.$d.getTime() + H * At;
25175
+ return ae.w(wt, this);
25176
25176
  }, te.subtract = function(H, de) {
25177
25177
  return this.add(-1 * H, de);
25178
25178
  }, te.format = function(H) {
25179
25179
  var de = this, Q = this.$locale();
25180
25180
  if (!this.isValid())
25181
25181
  return Q.invalidDate || O;
25182
- var Ie = H || "YYYY-MM-DDTHH:mm:ssZ", Ae = ae.z(this), ot = this.$H, At = this.$m, Ot = this.$M, Lt = Q.weekdays, Ei = Q.months, xn = Q.meridiem, Lr = function(ti, hr, As, wa) {
25182
+ var Ie = H || "YYYY-MM-DDTHH:mm:ssZ", Ae = ae.z(this), ot = this.$H, At = this.$m, wt = this.$M, Lt = Q.weekdays, Ei = Q.months, xn = Q.meridiem, Lr = function(ti, hr, As, wa) {
25183
25183
  return ti && (ti[hr] || ti(de, Ie)) || As[hr].slice(0, wa);
25184
25184
  }, Is = function(ti) {
25185
25185
  return ae.s(ot % 12 || 12, ti, "0");
@@ -25195,13 +25195,13 @@ var Tm = { exports: {} };
25195
25195
  case "YYYY":
25196
25196
  return ae.s(de.$y, 4, "0");
25197
25197
  case "M":
25198
- return Ot + 1;
25198
+ return wt + 1;
25199
25199
  case "MM":
25200
- return ae.s(Ot + 1, 2, "0");
25200
+ return ae.s(wt + 1, 2, "0");
25201
25201
  case "MMM":
25202
- return Lr(Q.monthsShort, Ot, Ei, 3);
25202
+ return Lr(Q.monthsShort, wt, Ei, 3);
25203
25203
  case "MMMM":
25204
- return Lr(Ei, Ot);
25204
+ return Lr(Ei, wt);
25205
25205
  case "D":
25206
25206
  return de.$D;
25207
25207
  case "DD":
@@ -25245,7 +25245,7 @@ var Tm = { exports: {} };
25245
25245
  }, te.utcOffset = function() {
25246
25246
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
25247
25247
  }, te.diff = function(H, de, Q) {
25248
- var Ie, Ae = this, ot = ae.p(de), At = W(H), Ot = (At.utcOffset() - this.utcOffset()) * t, Lt = this - At, Ei = function() {
25248
+ var Ie, Ae = this, ot = ae.p(de), At = W(H), wt = (At.utcOffset() - this.utcOffset()) * t, Lt = this - At, Ei = function() {
25249
25249
  return ae.m(Ae, At);
25250
25250
  };
25251
25251
  switch (ot) {
@@ -25259,10 +25259,10 @@ var Tm = { exports: {} };
25259
25259
  Ie = Ei() / 3;
25260
25260
  break;
25261
25261
  case f:
25262
- Ie = (Lt - Ot) / 6048e5;
25262
+ Ie = (Lt - wt) / 6048e5;
25263
25263
  break;
25264
25264
  case u:
25265
- Ie = (Lt - Ot) / 864e5;
25265
+ Ie = (Lt - wt) / 864e5;
25266
25266
  break;
25267
25267
  case d:
25268
25268
  Ie = Lt / i;
@@ -25838,7 +25838,7 @@ function S8() {
25838
25838
  return m.object({
25839
25839
  calledBySuccess: m.array(st()),
25840
25840
  calledByError: m.array(st()),
25841
- calledByEntry: m.array(Dt()),
25841
+ calledByEntry: m.array(Ot()),
25842
25842
  declaration: Gi(),
25843
25843
  inputs: m.array(Ni()),
25844
25844
  outputs: m.array(Kt()),
@@ -25911,7 +25911,7 @@ function t6() {
25911
25911
  return m.object({
25912
25912
  calledBySuccess: m.array(st()),
25913
25913
  calledByError: m.array(st()),
25914
- calledByEntry: m.array(Dt()),
25914
+ calledByEntry: m.array(Ot()),
25915
25915
  outputs: m.array(rr()),
25916
25916
  throws: m.optional(rr()),
25917
25917
  parent: Ki()
@@ -25976,7 +25976,7 @@ function s6() {
25976
25976
  return m.object({
25977
25977
  calledBySuccess: m.array(st()),
25978
25978
  calledByError: m.array(st()),
25979
- calledByEntry: m.array(Dt()),
25979
+ calledByEntry: m.array(Ot()),
25980
25980
  outputs: m.array(rr()),
25981
25981
  throws: m.optional(rr()),
25982
25982
  parent: Nr()
@@ -26105,7 +26105,7 @@ function f6() {
26105
26105
  return m.object({
26106
26106
  calledBySuccess: m.array(st()),
26107
26107
  calledByError: m.array(st()),
26108
- calledByEntry: m.array(Dt()),
26108
+ calledByEntry: m.array(Ot()),
26109
26109
  outputs: m.array(rr()),
26110
26110
  throws: m.optional(rr()),
26111
26111
  parent: Ki()
@@ -26233,7 +26233,7 @@ function A6() {
26233
26233
  errorCalls: m.array(Bt()),
26234
26234
  calledBySuccess: m.array(st()),
26235
26235
  calledByError: m.array(st()),
26236
- calledByEntry: m.array(Dt()),
26236
+ calledByEntry: m.array(Ot()),
26237
26237
  writesValues: m.array(Mr()),
26238
26238
  declaration: vi(),
26239
26239
  inputs: m.array(Ni()),
@@ -26319,7 +26319,7 @@ function w6() {
26319
26319
  errorCalls: m.array(Bt()),
26320
26320
  calledBySuccess: m.array(st()),
26321
26321
  calledByError: m.array(st()),
26322
- calledByEntry: m.array(Dt()),
26322
+ calledByEntry: m.array(Ot()),
26323
26323
  leftValue: Ni(),
26324
26324
  rightValue: Ni().nullable(),
26325
26325
  operator: R6(),
@@ -26395,7 +26395,7 @@ function _6() {
26395
26395
  errorCalls: m.array(Bt()),
26396
26396
  calledBySuccess: m.array(st()),
26397
26397
  calledByError: m.array(st()),
26398
- calledByEntry: m.array(Dt()),
26398
+ calledByEntry: m.array(Ot()),
26399
26399
  inputsDeclarations: m.array(_n()),
26400
26400
  inputs: m.array(Ni()),
26401
26401
  outputsDeclarations: m.array(gs()),
@@ -26469,7 +26469,7 @@ function x6() {
26469
26469
  errorCalls: m.array(Bt()),
26470
26470
  calledBySuccess: m.array(st()),
26471
26471
  calledByError: m.array(st()),
26472
- calledByEntry: m.array(Dt()),
26472
+ calledByEntry: m.array(Ot()),
26473
26473
  writesValues: m.array(Mr()),
26474
26474
  declaration: vi(),
26475
26475
  inputs: m.array(Ni()),
@@ -26614,7 +26614,7 @@ function k6() {
26614
26614
  errorCalls: m.array(Bt()),
26615
26615
  calledBySuccess: m.array(st()),
26616
26616
  calledByError: m.array(st()),
26617
- calledByEntry: m.array(Dt()),
26617
+ calledByEntry: m.array(Ot()),
26618
26618
  writesValues: m.array(Mr()),
26619
26619
  declaration: Gi(),
26620
26620
  inputs: m.array(Ni()),
@@ -26942,7 +26942,7 @@ function p3() {
26942
26942
  internalCalls: m.array(Ia()),
26943
26943
  calledBySuccess: m.array(st()),
26944
26944
  calledByError: m.array(st()),
26945
- calledByEntry: m.array(Dt()),
26945
+ calledByEntry: m.array(Ot()),
26946
26946
  parent: m.union([
26947
26947
  Nr(),
26948
26948
  ai()
@@ -27020,7 +27020,7 @@ function m3() {
27020
27020
  internalCalls: m.array(Ia()),
27021
27021
  calledBySuccess: m.array(st()),
27022
27022
  calledByError: m.array(st()),
27023
- calledByEntry: m.array(Dt()),
27023
+ calledByEntry: m.array(Ot()),
27024
27024
  parent: m.union([
27025
27025
  Nr(),
27026
27026
  ai()
@@ -27287,7 +27287,7 @@ function Cn() {
27287
27287
  $u()
27288
27288
  ]);
27289
27289
  }
27290
- function Dt() {
27290
+ function Ot() {
27291
27291
  return m.union([
27292
27292
  Aa(),
27293
27293
  Gu()
@@ -27302,7 +27302,7 @@ function nW() {
27302
27302
  function sW() {
27303
27303
  return m.union([
27304
27304
  st(),
27305
- Dt()
27305
+ Ot()
27306
27306
  ]);
27307
27307
  }
27308
27308
  function aW() {
@@ -27314,7 +27314,7 @@ function aW() {
27314
27314
  function oW() {
27315
27315
  return m.union([
27316
27316
  ku(),
27317
- Dt()
27317
+ Ot()
27318
27318
  ]);
27319
27319
  }
27320
27320
  function lW() {
@@ -27326,7 +27326,7 @@ function lW() {
27326
27326
  function dW() {
27327
27327
  return m.union([
27328
27328
  Bt(),
27329
- Dt()
27329
+ Ot()
27330
27330
  ]);
27331
27331
  }
27332
27332
  function uW() {
@@ -27338,7 +27338,7 @@ function uW() {
27338
27338
  function pW() {
27339
27339
  return m.union([
27340
27340
  M3(),
27341
- Dt()
27341
+ Ot()
27342
27342
  ]);
27343
27343
  }
27344
27344
  function cW() {
@@ -27346,7 +27346,7 @@ function cW() {
27346
27346
  }
27347
27347
  function Nr() {
27348
27348
  return m.union([
27349
- Dt(),
27349
+ Ot(),
27350
27350
  Ki()
27351
27351
  ]);
27352
27352
  }
@@ -27359,7 +27359,7 @@ function fW() {
27359
27359
  function hW() {
27360
27360
  return m.union([
27361
27361
  st(),
27362
- Dt()
27362
+ Ot()
27363
27363
  ]);
27364
27364
  }
27365
27365
  function yW() {
@@ -27371,7 +27371,7 @@ function yW() {
27371
27371
  function mW() {
27372
27372
  return m.union([
27373
27373
  ku(),
27374
- Dt()
27374
+ Ot()
27375
27375
  ]);
27376
27376
  }
27377
27377
  function vW() {
@@ -27534,7 +27534,7 @@ function U3() {
27534
27534
  dataType: Pn().nullable(),
27535
27535
  writesValues: m.array(Mr()),
27536
27536
  parent: m.union([
27537
- Dt(),
27537
+ Ot(),
27538
27538
  kr(),
27539
27539
  kr(),
27540
27540
  Ea(),
@@ -30190,7 +30190,7 @@ ${un}`, e.push(
30190
30190
  }
30191
30191
  }
30192
30192
  }
30193
- const t = bt(r, {}, a);
30193
+ const t = Rt(r, {}, a);
30194
30194
  return e.push(...t.errors), e;
30195
30195
  }
30196
30196
  class at {
@@ -30214,15 +30214,15 @@ function n7(r) {
30214
30214
  a.id
30215
30215
  );
30216
30216
  (e == null ? void 0 : e.type) === n.DefinitionEntity && (r.project.emit(
30217
- wt.DEFINITION_ENTITY_ADDED,
30217
+ Pt.DEFINITION_ENTITY_ADDED,
30218
30218
  e,
30219
30219
  r
30220
30220
  ), Li(e, z.PERSISTED_ENTITY) ? r.project.emit(
30221
- wt.PERSISTED_DEFINITION_ENTITY_ADDED,
30221
+ Pt.PERSISTED_DEFINITION_ENTITY_ADDED,
30222
30222
  e,
30223
30223
  r
30224
30224
  ) : Li(e, z.RELATIONAL_DATABASE) && r.project.emit(
30225
- wt.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED,
30225
+ Pt.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED,
30226
30226
  e,
30227
30227
  r
30228
30228
  ));
@@ -30231,15 +30231,15 @@ function n7(r) {
30231
30231
  a.id
30232
30232
  );
30233
30233
  (e == null ? void 0 : e.type) === n.DefinitionEntity && (r.project.emit(
30234
- wt.DEFINITION_ENTITY_UPDATED,
30234
+ Pt.DEFINITION_ENTITY_UPDATED,
30235
30235
  e,
30236
30236
  r
30237
30237
  ), Li(e, z.PERSISTED_ENTITY) ? r.project.emit(
30238
- wt.PERSISTED_DEFINITION_ENTITY_UPDATED,
30238
+ Pt.PERSISTED_DEFINITION_ENTITY_UPDATED,
30239
30239
  e,
30240
30240
  r
30241
30241
  ) : Li(e, z.RELATIONAL_DATABASE) && r.project.emit(
30242
- wt.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED,
30242
+ Pt.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED,
30243
30243
  e,
30244
30244
  r
30245
30245
  ));
@@ -30248,15 +30248,15 @@ function n7(r) {
30248
30248
  a.id
30249
30249
  );
30250
30250
  (e == null ? void 0 : e.type) === n.DefinitionEntity && (r.project.emit(
30251
- wt.DEFINITION_ENTITY_REMOVED,
30251
+ Pt.DEFINITION_ENTITY_REMOVED,
30252
30252
  e,
30253
30253
  r
30254
30254
  ), Li(e, z.PERSISTED_ENTITY) ? r.project.emit(
30255
- wt.PERSISTED_DEFINITION_ENTITY_REMOVED,
30255
+ Pt.PERSISTED_DEFINITION_ENTITY_REMOVED,
30256
30256
  e,
30257
30257
  r
30258
30258
  ) : Li(e, z.RELATIONAL_DATABASE) && r.project.emit(
30259
- wt.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED,
30259
+ Pt.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED,
30260
30260
  e,
30261
30261
  r
30262
30262
  ));
@@ -30305,6 +30305,11 @@ class A {
30305
30305
  "Auto-close change-set must have an auto-close action name."
30306
30306
  );
30307
30307
  }
30308
+ // Resolves its own index in the project's history list of change-sets if it is present
30309
+ get index() {
30310
+ const a = this.project.history.indexOf(this);
30311
+ return a === -1 ? null : a;
30312
+ }
30308
30313
  get isEmpty() {
30309
30314
  return Object.keys(this.added).length === 0 && Object.keys(this.updated).length === 0 && Object.keys(this.removed).length === 0;
30310
30315
  }
@@ -31888,7 +31893,7 @@ const Re = class Re extends at {
31888
31893
  let i = JSON.parse(
31889
31894
  JSON.stringify(e)
31890
31895
  );
31891
- const s = [], l = bt(
31896
+ const s = [], l = Rt(
31892
31897
  i,
31893
31898
  {
31894
31899
  parent: {
@@ -33372,7 +33377,7 @@ Alternatively you can update the entity with 'update' action. Or replace it by f
33372
33377
  })
33373
33378
  );
33374
33379
  }
33375
- f === n.DataType && (!i.parentRelationType || !(i.parentRelationType === Pt.AndDataTypeGroup || i.parentRelationType === Pt.OrDataTypeGroup)) && s.push(
33380
+ f === n.DataType && (!i.parentRelationType || !(i.parentRelationType === Vt.AndDataTypeGroup || i.parentRelationType === Vt.OrDataTypeGroup)) && s.push(
33376
33381
  new w({
33377
33382
  id: `${e.id}--${b.InvalidParentRelationType}`,
33378
33383
  code: b.InvalidParentRelationType,
@@ -33662,7 +33667,7 @@ Alternatively you can update the entity with 'update' action. Or replace it by f
33662
33667
  )
33663
33668
  )) {
33664
33669
  const t = [this], i = [], s = [], l = [];
33665
- return this.parent.type === n.DataType ? this.parentRelationType === Pt.AndDataTypeGroup ? this.parent.addToAndGroup(this) : this.parentRelationType === Pt.OrDataTypeGroup && this.parent.addToOrGroup(this) : this.parent.setDataType(this), t.push(this.parent), this.subscribe(), this.subscribeToDependencies(), e == null || e.attemptAutoclose("add-self-to-project", this.id), {
33670
+ return this.parent.type === n.DataType ? this.parentRelationType === Vt.AndDataTypeGroup ? this.parent.addToAndGroup(this) : this.parentRelationType === Vt.OrDataTypeGroup && this.parent.addToOrGroup(this) : this.parent.setDataType(this), t.push(this.parent), this.subscribe(), this.subscribeToDependencies(), e == null || e.attemptAutoclose("add-self-to-project", this.id), {
33666
33671
  updated: p(t),
33667
33672
  added: p(i),
33668
33673
  removed: p(s),
@@ -33839,14 +33844,14 @@ Alternatively you can update the entity with 'update' action. Or replace it by f
33839
33844
  ((d = this.parent) == null ? void 0 : d.type) === n.DataType && this.parent.removeChildGroup(this);
33840
33845
  const u = this.parent;
33841
33846
  if ((u == null ? void 0 : u.type) === n.DataType) {
33842
- if (this.parentRelationType === Pt.AndDataTypeGroup) {
33847
+ if (this.parentRelationType === Vt.AndDataTypeGroup) {
33843
33848
  if (Array.isArray(u.andChildrenGroup)) {
33844
33849
  const f = u.andChildrenGroup.findIndex(
33845
33850
  (c) => c.id === this.id
33846
33851
  );
33847
33852
  f !== -1 && u.andChildrenGroup.splice(f, 1);
33848
33853
  }
33849
- } else if (this.parentRelationType === Pt.OrDataTypeGroup && Array.isArray(u.orChildrenGroup)) {
33854
+ } else if (this.parentRelationType === Vt.OrDataTypeGroup && Array.isArray(u.orChildrenGroup)) {
33850
33855
  const f = u.orChildrenGroup.findIndex(
33851
33856
  (c) => c.id === this.id
33852
33857
  );
@@ -33905,7 +33910,7 @@ Alternatively you can update the entity with 'update' action. Or replace it by f
33905
33910
  }
33906
33911
  if (this.parent.type === n.DataType) {
33907
33912
  const o = this.parent;
33908
- this.parentRelationType === Pt.AndDataTypeGroup ? Array.isArray(o.andChildrenGroup) && o.andChildrenGroup.push(this) : this.parentRelationType === Pt.OrDataTypeGroup && Array.isArray(o.orChildrenGroup) && o.orChildrenGroup.push(this);
33913
+ this.parentRelationType === Vt.AndDataTypeGroup ? Array.isArray(o.andChildrenGroup) && o.andChildrenGroup.push(this) : this.parentRelationType === Vt.OrDataTypeGroup && Array.isArray(o.orChildrenGroup) && o.orChildrenGroup.push(this);
33909
33914
  } else {
33910
33915
  const o = this.parent;
33911
33916
  o.setDataType(this), i.push(o);
@@ -34592,7 +34597,7 @@ const Oe = class Oe extends at {
34592
34597
  let i = JSON.parse(
34593
34598
  JSON.stringify(e)
34594
34599
  );
34595
- const s = [], l = bt(
34600
+ const s = [], l = Rt(
34596
34601
  i,
34597
34602
  {
34598
34603
  parent: {
@@ -36119,7 +36124,7 @@ const we = class we extends at {
36119
36124
  let i = JSON.parse(
36120
36125
  JSON.stringify(e)
36121
36126
  );
36122
- const s = [], l = bt(
36127
+ const s = [], l = Rt(
36123
36128
  i,
36124
36129
  {
36125
36130
  parent: {
@@ -37350,7 +37355,7 @@ const $e = class $e extends at {
37350
37355
  let i = JSON.parse(
37351
37356
  JSON.stringify(e)
37352
37357
  );
37353
- const s = [], l = bt(
37358
+ const s = [], l = Rt(
37354
37359
  i,
37355
37360
  {
37356
37361
  parent: {
@@ -38324,7 +38329,7 @@ const Xe = class Xe extends at {
38324
38329
  let i = JSON.parse(
38325
38330
  JSON.stringify(e)
38326
38331
  );
38327
- const s = [], l = bt(
38332
+ const s = [], l = Rt(
38328
38333
  i,
38329
38334
  {
38330
38335
  parent: {
@@ -39409,7 +39414,7 @@ const $W = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
39409
39414
  let i = JSON.parse(
39410
39415
  JSON.stringify(e)
39411
39416
  );
39412
- const s = [], l = bt(
39417
+ const s = [], l = Rt(
39413
39418
  i,
39414
39419
  {
39415
39420
  // implements: {
@@ -40436,7 +40441,7 @@ const Ve = class Ve extends at {
40436
40441
  let i = JSON.parse(
40437
40442
  JSON.stringify(e)
40438
40443
  );
40439
- const s = [], l = bt(
40444
+ const s = [], l = Rt(
40440
40445
  i,
40441
40446
  {
40442
40447
  parent: {
@@ -41945,7 +41950,7 @@ const le = class le extends at {
41945
41950
  // Validates the entity payload after generation and returns any errors
41946
41951
  static validateGenerationTarget(e, t) {
41947
41952
  let i = JSON.parse(JSON.stringify(e));
41948
- const s = [], l = bt(
41953
+ const s = [], l = Rt(
41949
41954
  i,
41950
41955
  {
41951
41956
  parent: {
@@ -44014,7 +44019,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
44014
44019
  inferred: !1,
44015
44020
  andChildrenGroup: [],
44016
44021
  orChildrenGroup: [],
44017
- parentRelationType: Pt.OrDataTypeGroup,
44022
+ parentRelationType: Vt.OrDataTypeGroup,
44018
44023
  parent: L.toReference()
44019
44024
  }, W = V(
44020
44025
  he,
@@ -44083,7 +44088,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
44083
44088
  inferred: !1,
44084
44089
  andChildrenGroup: [],
44085
44090
  orChildrenGroup: [],
44086
- parentRelationType: Pt.OrDataTypeGroup,
44091
+ parentRelationType: Vt.OrDataTypeGroup,
44087
44092
  parent: J.toReference()
44088
44093
  }, xt = V(
44089
44094
  ae,
@@ -44832,7 +44837,7 @@ const Ge = class Ge extends at {
44832
44837
  let i = JSON.parse(
44833
44838
  JSON.stringify(e)
44834
44839
  );
44835
- const s = [], l = bt(
44840
+ const s = [], l = Rt(
44836
44841
  i,
44837
44842
  {
44838
44843
  parent: {
@@ -46147,7 +46152,7 @@ const Ce = class Ce extends at {
46147
46152
  let i = JSON.parse(
46148
46153
  JSON.stringify(e)
46149
46154
  );
46150
- const s = [], l = bt(
46155
+ const s = [], l = Rt(
46151
46156
  i,
46152
46157
  {
46153
46158
  parent: {
@@ -47947,7 +47952,7 @@ const _e = class _e extends at {
47947
47952
  let i = JSON.parse(
47948
47953
  JSON.stringify(e)
47949
47954
  );
47950
- const s = [], l = bt(
47955
+ const s = [], l = Rt(
47951
47956
  i,
47952
47957
  {
47953
47958
  parent: {
@@ -49943,7 +49948,7 @@ const qe = class qe extends at {
49943
49948
  let i = JSON.parse(
49944
49949
  JSON.stringify(e)
49945
49950
  );
49946
- const s = [], l = bt(
49951
+ const s = [], l = Rt(
49947
49952
  i,
49948
49953
  {
49949
49954
  parent: {
@@ -50122,16 +50127,16 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
50122
50127
  /* Parent */
50123
50128
  }
50124
50129
  ]), this.project.off(
50125
- wt.PERSISTED_DEFINITION_ENTITY_ADDED,
50130
+ Pt.PERSISTED_DEFINITION_ENTITY_ADDED,
50126
50131
  this.onPersistedEntityAdded
50127
50132
  ), this.project.off(
50128
- wt.PERSISTED_DEFINITION_ENTITY_REMOVED,
50133
+ Pt.PERSISTED_DEFINITION_ENTITY_REMOVED,
50129
50134
  this.onPersistedEntityRemoved
50130
50135
  ), this.project.off(
50131
- wt.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED,
50136
+ Pt.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED,
50132
50137
  this.onRelationalDatabaseEntityAdded
50133
50138
  ), this.project.off(
50134
- wt.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED,
50139
+ Pt.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED,
50135
50140
  this.onRelationalDatabaseEntityRemoved
50136
50141
  ), this;
50137
50142
  }
@@ -50146,16 +50151,16 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
50146
50151
  /* Parent */
50147
50152
  }
50148
50153
  ]), this.project.on(
50149
- wt.PERSISTED_DEFINITION_ENTITY_ADDED,
50154
+ Pt.PERSISTED_DEFINITION_ENTITY_ADDED,
50150
50155
  this.onPersistedEntityAdded
50151
50156
  ), this.project.on(
50152
- wt.PERSISTED_DEFINITION_ENTITY_REMOVED,
50157
+ Pt.PERSISTED_DEFINITION_ENTITY_REMOVED,
50153
50158
  this.onPersistedEntityRemoved
50154
50159
  ), this.project.on(
50155
- wt.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED,
50160
+ Pt.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED,
50156
50161
  this.onRelationalDatabaseEntityAdded
50157
50162
  ), this.project.on(
50158
- wt.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED,
50163
+ Pt.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED,
50159
50164
  this.onRelationalDatabaseEntityRemoved
50160
50165
  ), this;
50161
50166
  }
@@ -52327,7 +52332,7 @@ const Be = class Be extends at {
52327
52332
  let i = JSON.parse(
52328
52333
  JSON.stringify(e)
52329
52334
  );
52330
- const s = [], l = bt(
52335
+ const s = [], l = Rt(
52331
52336
  i,
52332
52337
  {
52333
52338
  parent: {
@@ -53930,7 +53935,7 @@ const Me = class Me extends at {
53930
53935
  let i = JSON.parse(
53931
53936
  JSON.stringify(e)
53932
53937
  );
53933
- const s = [], l = bt(
53938
+ const s = [], l = Rt(
53934
53939
  i,
53935
53940
  {
53936
53941
  parent: {
@@ -55078,7 +55083,7 @@ const Ne = class Ne extends at {
55078
55083
  let i = JSON.parse(
55079
55084
  JSON.stringify(e)
55080
55085
  );
55081
- const s = [], l = bt(
55086
+ const s = [], l = Rt(
55082
55087
  i,
55083
55088
  {
55084
55089
  parent: {
@@ -56161,7 +56166,7 @@ const xe = class xe extends at {
56161
56166
  let i = JSON.parse(
56162
56167
  JSON.stringify(e)
56163
56168
  );
56164
- const s = [], l = bt(
56169
+ const s = [], l = Rt(
56165
56170
  i,
56166
56171
  {
56167
56172
  parent: {
@@ -58296,7 +58301,7 @@ const ge = class ge extends at {
58296
58301
  let i = JSON.parse(
58297
58302
  JSON.stringify(e)
58298
58303
  );
58299
- const s = [], l = bt(
58304
+ const s = [], l = Rt(
58300
58305
  i,
58301
58306
  {
58302
58307
  parent: {
@@ -59268,7 +59273,7 @@ const je = class je extends at {
59268
59273
  let i = JSON.parse(
59269
59274
  JSON.stringify(e)
59270
59275
  );
59271
- const s = [], l = bt(
59276
+ const s = [], l = Rt(
59272
59277
  i,
59273
59278
  {
59274
59279
  parent: {
@@ -59563,7 +59568,7 @@ ${Qi(
59563
59568
  )) {
59564
59569
  var o, d, u, f, c, T, E, R;
59565
59570
  const t = [this], i = [], s = [], l = [];
59566
- return this.parentRelationType === N.FixedArguments || this.parentRelationType === N.DynamicArgument ? ((o = this.parent) == null ? void 0 : o.type) === n.Search || ((d = this.parent) == null ? void 0 : d.type) === n.Loop ? (this.parent.addInputDeclaration(this, e), t.push(this.parent)) : ((f = (u = this.parent) == null ? void 0 : u.addInput) == null || f.call(u, this), t.push(this.parent)) : this.parentRelationType === N.FixedReturns || this.parentRelationType === N.DynamicReturn ? ((c = this.parent) == null ? void 0 : c.type) === n.Search || ((T = this.parent) == null ? void 0 : T.type) === n.Loop ? (this.parent.addOutputDeclaration(this, e), t.push(this.parent)) : ((R = (E = this.parent) == null ? void 0 : E.addOutput) == null || R.call(E, this), t.push(this.parent)) : this.parentRelationType === N.ReturnedError && this.parent && (this.parent.error = this, t.push(this.parent)), this.subscribe(), this.subscribeToDependencies(), e == null || e.attemptAutoclose("add-self-to-project", this.id), {
59571
+ return this.parentRelationType === N.FixedArguments || this.parentRelationType === N.DynamicArgument ? ((o = this.parent) == null ? void 0 : o.type) === n.Search || ((d = this.parent) == null ? void 0 : d.type) === n.Loop ? (this.parent.addInputDeclaration(this, e), t.push(this.parent)) : ((f = (u = this.parent) == null ? void 0 : u.addInput) == null || f.call(u, this, e), t.push(this.parent)) : this.parentRelationType === N.FixedReturns || this.parentRelationType === N.DynamicReturn ? ((c = this.parent) == null ? void 0 : c.type) === n.Search || ((T = this.parent) == null ? void 0 : T.type) === n.Loop ? (this.parent.addOutputDeclaration(this, e), t.push(this.parent)) : ((R = (E = this.parent) == null ? void 0 : E.addOutput) == null || R.call(E, this, e), t.push(this.parent)) : this.parentRelationType === N.ReturnedError && this.parent && (this.parent.error = this, t.push(this.parent)), this.subscribe(), this.subscribeToDependencies(), e == null || e.attemptAutoclose("add-self-to-project", this.id), {
59567
59572
  updated: p(t),
59568
59573
  added: p(i),
59569
59574
  removed: p(s),
@@ -60020,7 +60025,10 @@ ${Qi(
60020
60025
  this.project
60021
60026
  );
60022
60027
  if (l.hydrateAncestors(), l.addSelfToProject(e), e == null || e.add(l, I.Added), l.initChildren(e), this.dataType) {
60023
- const o = this.dataType.clone(e, l);
60028
+ const o = this.dataType.clone(
60029
+ e,
60030
+ l
60031
+ );
60024
60032
  l.setDataType(o);
60025
60033
  }
60026
60034
  if (this.defaultValue) {
@@ -61703,7 +61711,7 @@ ${o}`,
61703
61711
  }
61704
61712
  return e;
61705
61713
  }
61706
- function bt(r, a, e, t = !1) {
61714
+ function Rt(r, a, e, t = !1) {
61707
61715
  const i = [], s = { ...a };
61708
61716
  let l = JSON.parse(JSON.stringify(r));
61709
61717
  if (!t) {
@@ -62687,7 +62695,7 @@ const ke = class ke extends at {
62687
62695
  let i = JSON.parse(
62688
62696
  JSON.stringify(e)
62689
62697
  );
62690
- const s = [], l = bt(
62698
+ const s = [], l = Rt(
62691
62699
  i,
62692
62700
  {
62693
62701
  parent: {
@@ -64428,7 +64436,7 @@ function bv(r, a) {
64428
64436
  return o && u;
64429
64437
  }) || null;
64430
64438
  }
64431
- function Z7(r, a, e, t = Pt.OrDataTypeGroup) {
64439
+ function Z7(r, a, e, t = Vt.OrDataTypeGroup) {
64432
64440
  const i = [], s = [], l = [], o = [], u = {
64433
64441
  id: y.UUID.uuid(),
64434
64442
  version: y.UUID.uuid(),
@@ -64588,7 +64596,7 @@ function Rv(r, a, e, t, i) {
64588
64596
  actionEntities: !1,
64589
64597
  like: !0,
64590
64598
  inferred: !1,
64591
- parentRelationType: Pt.OrDataTypeGroup,
64599
+ parentRelationType: Vt.OrDataTypeGroup,
64592
64600
  parent: a.toReference()
64593
64601
  }, W = V(
64594
64602
  he,
@@ -64641,7 +64649,7 @@ function Rv(r, a, e, t, i) {
64641
64649
  he || K[0],
64642
64650
  a,
64643
64651
  t,
64644
- Pt.OrDataTypeGroup
64652
+ Vt.OrDataTypeGroup
64645
64653
  );
64646
64654
  s.push(...W.updated), l.push(...W.added), o.push(...W.removed);
64647
64655
  }
@@ -64666,7 +64674,7 @@ function Rv(r, a, e, t, i) {
64666
64674
  actionEntities: !1,
64667
64675
  like: !0,
64668
64676
  inferred: !1,
64669
- parentRelationType: Pt.OrDataTypeGroup,
64677
+ parentRelationType: Vt.OrDataTypeGroup,
64670
64678
  parent: a.toReference()
64671
64679
  }, W = V(
64672
64680
  he,
@@ -65159,19 +65167,24 @@ function Dv(r, a) {
65159
65167
  return null;
65160
65168
  return Dv(e, t);
65161
65169
  }
65162
- function Vt(r) {
65170
+ function bt(r) {
65163
65171
  if (Zl.includes(r.type)) {
65164
65172
  if (r.type === n.FunctionDeclaration) {
65165
65173
  const a = r.parent;
65166
65174
  if (a.type === n.DefinitionEntity)
65167
- return a;
65175
+ return bt(a);
65168
65176
  if (a.type === n.Loop)
65169
65177
  return a;
65170
65178
  }
65171
- return r;
65179
+ return (
65180
+ // Some definition-entities are implicitly created by the system
65181
+ // To represent dynamically inferred data-types, in which case,
65182
+ // they are not canvas entities, but we can still find their parent canvas entity as usual
65183
+ r.type === n.DefinitionEntity && r.parent.type === n.DataType ? bt(r.parent) : r
65184
+ );
65172
65185
  } else {
65173
65186
  const a = r.parent;
65174
- return a ? Vt(a) : null;
65187
+ return a ? bt(a) : null;
65175
65188
  }
65176
65189
  }
65177
65190
  function yp(r, a) {
@@ -65253,7 +65266,7 @@ function Dz(r) {
65253
65266
  }
65254
65267
  function Zt(r) {
65255
65268
  const a = r.map(
65256
- (e) => Vt(e)
65269
+ (e) => bt(e)
65257
65270
  );
65258
65271
  return p(a);
65259
65272
  }
@@ -65377,7 +65390,7 @@ function He(r, a = /* @__PURE__ */ new Set()) {
65377
65390
  return [
65378
65391
  ...ve(r).reduce(
65379
65392
  (s, l) => {
65380
- const o = Vt(l);
65393
+ const o = bt(l);
65381
65394
  return [
65382
65395
  ...s,
65383
65396
  ...He(
@@ -65396,7 +65409,7 @@ function He(r, a = /* @__PURE__ */ new Set()) {
65396
65409
  r.inputs
65397
65410
  ), i = ve(r).reduce(
65398
65411
  (s, l) => {
65399
- const o = Vt(l);
65412
+ const o = bt(l);
65400
65413
  return [
65401
65414
  ...s,
65402
65415
  ...He(
@@ -65418,7 +65431,7 @@ function He(r, a = /* @__PURE__ */ new Set()) {
65418
65431
  r
65419
65432
  ).reduce(
65420
65433
  (s, l) => {
65421
- const o = Vt(l);
65434
+ const o = bt(l);
65422
65435
  return [
65423
65436
  ...s,
65424
65437
  ...He(
@@ -65435,7 +65448,7 @@ function He(r, a = /* @__PURE__ */ new Set()) {
65435
65448
  a.add(r.id);
65436
65449
  const t = ve(r).reduce(
65437
65450
  (i, s) => {
65438
- const l = Vt(s);
65451
+ const l = bt(s);
65439
65452
  return [
65440
65453
  ...i,
65441
65454
  ...He(
@@ -65668,7 +65681,7 @@ function Es(r) {
65668
65681
  const a = [];
65669
65682
  if (lr.includes(r.type)) {
65670
65683
  r.calledBy.forEach((i) => {
65671
- const s = Vt(i);
65684
+ const s = bt(i);
65672
65685
  s && a.push(s);
65673
65686
  });
65674
65687
  const t = [
@@ -66268,7 +66281,7 @@ function Nz(r) {
66268
66281
  }
66269
66282
  function $l(r) {
66270
66283
  const a = r.readsValue;
66271
- return a ? Vt(a) : null;
66284
+ return a ? bt(a) : null;
66272
66285
  }
66273
66286
  function LJ(r, a) {
66274
66287
  const e = r.readsValue;
@@ -66325,7 +66338,7 @@ function cn(r, a = !1) {
66325
66338
  e.push(...t);
66326
66339
  }
66327
66340
  if (r.type === n.Condition) {
66328
- const t = r.successCalls.map((s) => Vt(s)), i = r.errorCalls.map((s) => Vt(s));
66341
+ const t = r.successCalls.map((s) => bt(s)), i = r.errorCalls.map((s) => bt(s));
66329
66342
  e.push(
66330
66343
  ...t,
66331
66344
  ...i
@@ -66335,7 +66348,7 @@ function cn(r, a = !1) {
66335
66348
  if (r.collapsed && a)
66336
66349
  return [];
66337
66350
  const t = r.inputs.map((s) => bs(s)).flat(), i = r.calls.map(
66338
- (s) => Vt(s)
66351
+ (s) => bt(s)
66339
66352
  );
66340
66353
  e.push(
66341
66354
  ...p(
@@ -66346,9 +66359,9 @@ function cn(r, a = !1) {
66346
66359
  }
66347
66360
  if (dt.includes(r.type) && r.type !== n.Condition && r.type !== n.Loop) {
66348
66361
  const t = r == null ? void 0 : r.outputs.map((l) => bs(l)).flat(), i = r.successCalls.map(
66349
- (l) => Vt(l)
66362
+ (l) => bt(l)
66350
66363
  ), s = r.errorCalls.map(
66351
- (l) => Vt(l)
66364
+ (l) => bt(l)
66352
66365
  );
66353
66366
  e.push(
66354
66367
  ...p(
@@ -66377,8 +66390,8 @@ function cn(r, a = !1) {
66377
66390
  e.push(...l);
66378
66391
  }
66379
66392
  const i = r.errorCalls.map(
66380
- (l) => Vt(l)
66381
- ), s = r.successCalls.map((l) => Vt(l));
66393
+ (l) => bt(l)
66394
+ ), s = r.successCalls.map((l) => bt(l));
66382
66395
  e.push(
66383
66396
  ...p(
66384
66397
  t
@@ -66390,7 +66403,7 @@ function cn(r, a = !1) {
66390
66403
  if (r.type === n.FunctionDeclaration) {
66391
66404
  if (r.collapsed && a)
66392
66405
  return [];
66393
- const t = r.inputs.map((s) => bs(s)).flat(), i = r.calls.map((s) => Vt(s));
66406
+ const t = r.inputs.map((s) => bs(s)).flat(), i = r.calls.map((s) => bt(s));
66394
66407
  e.push(
66395
66408
  ...p(
66396
66409
  t
@@ -66900,7 +66913,7 @@ function ja(r) {
66900
66913
  return;
66901
66914
  let o;
66902
66915
  if (s.type === n.FunctionDeclaration) {
66903
- const d = Vt(s);
66916
+ const d = bt(s);
66904
66917
  if (d.type === n.DefinitionEntity)
66905
66918
  return;
66906
66919
  d.type === n.Loop && (o = d);
@@ -67115,7 +67128,7 @@ function Yz(r) {
67115
67128
  ...r.listUpdated,
67116
67129
  ...r.listAffected
67117
67130
  ].forEach((t) => {
67118
- const i = Vt(t);
67131
+ const i = bt(t);
67119
67132
  !i || e.has(i.id) || (e.add(i.id), a.push(i));
67120
67133
  }), p(a);
67121
67134
  }
@@ -70714,7 +70727,7 @@ class $v {
70714
70727
  }), this.subscribedEvents = {};
70715
70728
  }
70716
70729
  }
70717
- var wt = /* @__PURE__ */ ((r) => (r.DEFINITION_ENTITY_ADDED = "definition-entity-added", r.DEFINITION_ENTITY_REMOVED = "definition-entity-removed", r.DEFINITION_ENTITY_UPDATED = "definition-entity-updated", r.PERSISTED_DEFINITION_ENTITY_ADDED = "persisted-definition-entity-added", r.PERSISTED_DEFINITION_ENTITY_REMOVED = "persisted-definition-entity-removed", r.PERSISTED_DEFINITION_ENTITY_UPDATED = "persisted-definition-entity-updated", r.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED = "relational-database-definition-entity-added", r.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED = "relational-database-definition-entity-removed", r.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED = "relational-database-definition-entity-updated", r))(wt || {});
70730
+ var Pt = /* @__PURE__ */ ((r) => (r.DEFINITION_ENTITY_ADDED = "definition-entity-added", r.DEFINITION_ENTITY_REMOVED = "definition-entity-removed", r.DEFINITION_ENTITY_UPDATED = "definition-entity-updated", r.PERSISTED_DEFINITION_ENTITY_ADDED = "persisted-definition-entity-added", r.PERSISTED_DEFINITION_ENTITY_REMOVED = "persisted-definition-entity-removed", r.PERSISTED_DEFINITION_ENTITY_UPDATED = "persisted-definition-entity-updated", r.RELATIONAL_DATABASE_DEFINITION_ENTITY_ADDED = "relational-database-definition-entity-added", r.RELATIONAL_DATABASE_DEFINITION_ENTITY_REMOVED = "relational-database-definition-entity-removed", r.RELATIONAL_DATABASE_DEFINITION_ENTITY_UPDATED = "relational-database-definition-entity-updated", r))(Pt || {});
70718
70731
  function pq(r, a) {
70719
70732
  a.forEach((e) => {
70720
70733
  Object.getOwnPropertyNames(e.prototype).forEach((t) => {
@@ -71761,13 +71774,6 @@ const ie = class ie extends Gv {
71761
71774
  addDefinitionEntity(e) {
71762
71775
  return this.entities.includes(e) || this.entities.push(e), e;
71763
71776
  }
71764
- addFunctionDeclarationFromTransfer(e) {
71765
- const t = V(
71766
- e,
71767
- this
71768
- );
71769
- return this.addFunctionDeclaration(t), t;
71770
- }
71771
71777
  addFunctionDeclaration(e) {
71772
71778
  return this.functions.includes(e) || this.functions.push(e), e;
71773
71779
  }
@@ -73197,15 +73203,15 @@ class Cq extends Ji {
73197
73203
  const lY = "test_primitive_entities_export";
73198
73204
  class _q extends Ji {
73199
73205
  constructor(e) {
73200
- super(Rt, e);
73206
+ super(Dt, e);
73201
73207
  h(this, "initialData");
73202
73208
  h(this, "id", z.PERSISTED_ENTITY);
73203
73209
  h(this, "version", "1");
73204
73210
  h(this, "name", z.PERSISTED_ENTITY);
73205
- h(this, "description", Rt.description);
73211
+ h(this, "description", Dt.description);
73206
73212
  h(this, "type", n.BuiltInBaseEntity);
73207
- h(this, "abstract", Rt.abstract);
73208
- h(this, "static", Rt.static);
73213
+ h(this, "abstract", Dt.abstract);
73214
+ h(this, "static", Dt.static);
73209
73215
  // Nested entities
73210
73216
  h(this, "properties", []);
73211
73217
  h(this, "methods", []);
@@ -73214,7 +73220,7 @@ class _q extends Ji {
73214
73220
  h(this, "errors", []);
73215
73221
  // Parent project full state
73216
73222
  h(this, "project");
73217
- this.initialData = Rt, this.project = e, this.id = Rt.id, this.version = Rt.version, this.name = Rt.name, this.static = Rt.static, this.abstract = Rt.abstract, this.properties = this.initialData.properties.map((i) => {
73223
+ this.initialData = Dt, this.project = e, this.id = Dt.id, this.version = Dt.version, this.name = Dt.name, this.static = Dt.static, this.abstract = Dt.abstract, this.properties = this.initialData.properties.map((i) => {
73218
73224
  const s = V(
73219
73225
  i,
73220
73226
  this.project
@@ -73246,7 +73252,7 @@ function Bq(r) {
73246
73252
  new wq(r),
73247
73253
  new Cq(r),
73248
73254
  new _q(r),
73249
- new Ji(Rt, r),
73255
+ new Ji(Dt, r),
73250
73256
  new Ji(pd, r)
73251
73257
  // new BuiltInBaseEntityState(keyValueParamBuiltInBaseEntity, project),
73252
73258
  ];
@@ -73509,7 +73515,7 @@ function dY(r, {
73509
73515
  const f = u.toShallowJSON({
73510
73516
  seenEntityMaps: e
73511
73517
  });
73512
- u.type === n.ValueDescriptor && u.name === "Iteration result" && (console.log("Og entity shallow copy: ", f), console.log("Og entity full: ", u)), f.previousVersion = null, f.createdAt = i, f.version = y.UUID.uuid();
73518
+ f.previousVersion = null, f.createdAt = i, f.version = y.UUID.uuid();
73513
73519
  const c = V(
73514
73520
  f,
73515
73521
  l
@@ -73646,7 +73652,7 @@ export {
73646
73652
  Hp as DRAGGABLE_PASS_THROUGH_CALLABLE_TYPES_WITH_OUTPUTS,
73647
73653
  wi as DataTypeCompatibilityTypes,
73648
73654
  z0 as DataTypeDependencyField,
73649
- Pt as DataTypeParentChildRelation,
73655
+ Vt as DataTypeParentChildRelation,
73650
73656
  Hr as DataTypeState,
73651
73657
  gl as DefinitionEntityDependencyField,
73652
73658
  hn as DefinitionEntityState,
@@ -73730,7 +73736,7 @@ export {
73730
73736
  ri as PrimitiveEntityState,
73731
73737
  M as PrimitiveTypes,
73732
73738
  y as ProjectState,
73733
- wt as ProjectStateEvents,
73739
+ Pt as ProjectStateEvents,
73734
73740
  s7 as PropertyDependencyField,
73735
73741
  zr as PropertyState,
73736
73742
  dq as READ_ONLY_ENTITY_PERSISTANCE_REPOSITORY,
@@ -74067,7 +74073,7 @@ export {
74067
74073
  cW as getEntityWithLogicScopeTypeSchema,
74068
74074
  C3 as getEntityWithValueReferenceSchema,
74069
74075
  rW as getEntityWithValueTypeSchema,
74070
- Dt as getEntryPointEntityReferenceSchema,
74076
+ Ot as getEntryPointEntityReferenceSchema,
74071
74077
  Cn as getEntryPointEntityTypeSchema,
74072
74078
  Gu as getEventEntityReferenceSchema,
74073
74079
  $u as getEventEntityTypeSchema,
@@ -74097,7 +74103,7 @@ export {
74097
74103
  Y7 as getParentCallableEntity,
74098
74104
  K7 as getParentCallerEntity,
74099
74105
  Zt as getParentCanvasEntities,
74100
- Vt as getParentCanvasEntity,
74106
+ bt as getParentCanvasEntity,
74101
74107
  yp as getParentCanvasEntityFromTransfer,
74102
74108
  Az as getParentEntryPoint,
74103
74109
  H7 as getParentPassthroughCallableEntity,
@@ -74438,7 +74444,7 @@ export {
74438
74444
  fd as projectPublicationCompletedGlobalEvent,
74439
74445
  HO as propertyToZodSchema,
74440
74446
  _W as propertyValidation,
74441
- Rt as relationalDatabaseBuiltInBaseEntity,
74447
+ Dt as relationalDatabaseBuiltInBaseEntity,
74442
74448
  Fc as relationalDatabaseBuiltInBaseEntityAutoscalingProperty,
74443
74449
  e1 as relationalDatabaseBuiltInBaseEntityAutoscalingPropertyDataType,
74444
74450
  QD as relationalDatabaseBuiltInBaseEntityAutoscalingPropertyDataTypeRef,
@@ -74592,7 +74598,7 @@ export {
74592
74598
  pz as validateReadsValueInActionPayload,
74593
74599
  cp as validateReferenceObject,
74594
74600
  Zp as validateReferenceToOne,
74595
- bt as validateReferences,
74601
+ Rt as validateReferences,
74596
74602
  g0 as validateReturnDeclarationName,
74597
74603
  M7 as validateSuccessCaller,
74598
74604
  So as validateValueReaderGenerationUpdate,