@elyx-code/project-logic-tree 0.0.6247 → 0.0.6248

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.js +643 -594
  2. package/dist/index.umd.cjs +153 -153
  3. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -10646,7 +10646,7 @@ function Gw(r) {
10646
10646
  o[E] = sl(o[E - 3] ^ o[E - 8] ^ o[E - 14] ^ o[E - 16], 1);
10647
10647
  let d = e[0], u = e[1], h = e[2], c = e[3], T = e[4];
10648
10648
  for (let E = 0; E < 80; ++E) {
10649
- const D = Math.floor(E / 20), O = sl(d, 5) + $w(D, u, h, c) + T + a[D] + o[E] >>> 0;
10649
+ const R = Math.floor(E / 20), O = sl(d, 5) + $w(R, u, h, c) + T + a[R] + o[E] >>> 0;
10650
10650
  T = c, c = h, h = sl(u, 30) >>> 0, u = d, d = O;
10651
10651
  }
10652
10652
  e[0] = e[0] + d >>> 0, e[1] = e[1] + u >>> 0, e[2] = e[2] + h >>> 0, e[3] = e[3] + c >>> 0, e[4] = e[4] + T >>> 0;
@@ -10819,8 +10819,8 @@ var iP = (() => {
10819
10819
  validate: (T, E = !1) => {
10820
10820
  if (!T || typeof T != "string")
10821
10821
  return !1;
10822
- const D = i.consistentLength ? T.length === s : T.length <= s, O = T.split("").every((V) => t.includes(V));
10823
- return E === !1 ? D && O : D && O && Qw(Dp(T, d));
10822
+ const R = i.consistentLength ? T.length === s : T.length <= s, O = T.split("").every((V) => t.includes(V));
10823
+ return E === !1 ? R && O : R && O && Qw(Dp(T, d));
10824
10824
  }
10825
10825
  };
10826
10826
  return Object.freeze(c), c;
@@ -24883,7 +24883,7 @@ var mm = { exports: {} };
24883
24883
  (function(e, t) {
24884
24884
  r.exports = t();
24885
24885
  })(KO, function() {
24886
- var e = 1e3, t = 6e4, i = 36e5, s = "millisecond", l = "second", o = "minute", d = "hour", u = "day", h = "week", c = "month", T = "quarter", E = "year", D = "date", O = "Invalid Date", V = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, M = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, x = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(ye) {
24886
+ var e = 1e3, t = 6e4, i = 36e5, s = "millisecond", l = "second", o = "minute", d = "hour", u = "day", h = "week", c = "month", T = "quarter", E = "year", R = "date", O = "Invalid Date", V = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, M = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, x = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(ye) {
24887
24887
  var te = ["th", "st", "nd", "rd"], z = ye % 100;
24888
24888
  return "[" + ye + (te[(z - 20) % 10] || te[z] || te[0]) + "]";
24889
24889
  } }, C = function(ye, te, z) {
@@ -24900,7 +24900,7 @@ var mm = { exports: {} };
24900
24900
  }, a: function(ye) {
24901
24901
  return ye < 0 ? Math.ceil(ye) || 0 : Math.floor(ye);
24902
24902
  }, p: function(ye) {
24903
- return { M: c, y: E, w: h, d: u, D, h: d, m: o, s: l, ms: s, Q: T }[ye] || String(ye || "").toLowerCase().replace(/s$/, "");
24903
+ return { M: c, y: E, w: h, d: u, D: R, h: d, m: o, s: l, ms: s, Q: T }[ye] || String(ye || "").toLowerCase().replace(/s$/, "");
24904
24904
  }, u: function(ye) {
24905
24905
  return ye === void 0;
24906
24906
  } }, Z = "en", q = {};
@@ -24990,7 +24990,7 @@ var mm = { exports: {} };
24990
24990
  var jr = this.$locale().weekStart || 0, Ts = (Ot < jr ? Ot + 7 : Ot) - jr;
24991
24991
  return at(Ee ? Ti - Ts : Ti + (6 - Ts), Ut);
24992
24992
  case u:
24993
- case D:
24993
+ case R:
24994
24994
  return At(Bn + "Hours", 0);
24995
24995
  case d:
24996
24996
  return At(Bn + "Minutes", 1);
@@ -25004,10 +25004,10 @@ var mm = { exports: {} };
25004
25004
  }, te.endOf = function(z) {
25005
25005
  return this.startOf(z, !1);
25006
25006
  }, te.$set = function(z, le) {
25007
- var Q, Ee = ae.p(z), Ie = "set" + (this.$u ? "UTC" : ""), at = (Q = {}, Q[u] = Ie + "Date", Q[D] = Ie + "Date", Q[c] = Ie + "Month", Q[E] = Ie + "FullYear", Q[d] = Ie + "Hours", Q[o] = Ie + "Minutes", Q[l] = Ie + "Seconds", Q[s] = Ie + "Milliseconds", Q)[Ee], At = Ee === u ? this.$D + (le - this.$W) : le;
25007
+ var Q, Ee = ae.p(z), Ie = "set" + (this.$u ? "UTC" : ""), at = (Q = {}, Q[u] = Ie + "Date", Q[R] = Ie + "Date", Q[c] = Ie + "Month", Q[E] = Ie + "FullYear", Q[d] = Ie + "Hours", Q[o] = Ie + "Minutes", Q[l] = Ie + "Seconds", Q[s] = Ie + "Milliseconds", Q)[Ee], At = Ee === u ? this.$D + (le - this.$W) : le;
25008
25008
  if (Ee === c || Ee === E) {
25009
- var Ot = this.clone().set(D, 1);
25010
- Ot.$d[at](At), Ot.init(), this.$d = Ot.set(D, Math.min(this.$D, Ot.daysInMonth())).$d;
25009
+ var Ot = this.clone().set(R, 1);
25010
+ Ot.$d[at](At), Ot.init(), this.$d = Ot.set(R, Math.min(this.$D, Ot.daysInMonth())).$d;
25011
25011
  } else
25012
25012
  at && this.$d[at](At);
25013
25013
  return this.init(), this;
@@ -25157,7 +25157,7 @@ var mm = { exports: {} };
25157
25157
  return this.$d.toUTCString();
25158
25158
  }, ye;
25159
25159
  }(), Ni = Zt.prototype;
25160
- return X.prototype = Ni, [["$ms", s], ["$s", l], ["$m", o], ["$H", d], ["$W", u], ["$M", c], ["$y", E], ["$D", D]].forEach(function(ye) {
25160
+ return X.prototype = Ni, [["$ms", s], ["$s", l], ["$m", o], ["$H", d], ["$W", u], ["$M", c], ["$y", E], ["$D", R]].forEach(function(ye) {
25161
25161
  Ni[ye[1]] = function(te) {
25162
25162
  return this.$g(te, ye[0], ye[1]);
25163
25163
  };
@@ -25170,7 +25170,7 @@ var mm = { exports: {} };
25170
25170
  })(mm);
25171
25171
  var c8 = mm.exports;
25172
25172
  const v = /* @__PURE__ */ nf(c8);
25173
- var R = /* @__PURE__ */ ((r) => (r.Error = "error", r.Warning = "warning", r))(R || {}), L = /* @__PURE__ */ ((r) => (r.InvalidObjectStructure = "invalid-object-structure", r.NameNotUniqueInScope = "name-not-unique-in-scope", r.EmptyName = "empty-name", r.MissingCaller = "missing-caller", r.PropertyOverwritesOtherSiblingWithSameName = "property-overwrites-other-sibling-with-same-name", r.PropertyOverwritesOtherSiblingWithSameImplementation = "property-overwrites-other-sibling-with-same-name", r.PropertyOverwritesOtherImplementedEntitysPropertyWithSameName = "property-overwrites-other-implemented-entitys-property-with-same-name", r.PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation = "property-overwrites-other-implemented-entitys-property-with-same-name", r.PropertyOverwritesOtherExtendedEntitysPropertyWithSameImplementation = "property-overwrites-other-extended-entitys-property-with-same-name", r.PropertyOverwritesOtherExtendedEntitysPropertyWithSameName = "property-overwrites-other-extended-entitys-property-with-same-name", r.PropertyOverwritesBasePropertyWithSameName = "property-overwrites-base-property-with-same-name", r.PropertyOverwritesBasePropertyWithSameImplementation = "property-overwrites-base-property-with-same-name", r.MethodOverwritesOtherSiblingWithSameName = "method-overwrites-other-sibling-with-same-name", r.MethodOverwritesOtherSiblingWithSameImplementation = "method-overwrites-other-sibling-with-same-name", r.MethodOverwritesOtherImplementedEntitysMethodWithSameName = "method-overwrites-other-implemented-entitys-method-with-same-name", r.MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation = "method-overwrites-other-implemented-entitys-method-with-same-name", r.MethodOverwritesOtherExtendedEntitysMethodWithSameImplementation = "method-overwrites-other-extended-entitys-method-with-same-name", r.MethodOverwritesOtherExtendedEntitysMethodWithSameName = "method-overwrites-other-extended-entitys-method-with-same-name", r.MethodOverwritesBaseMethodWithSameName = "method-overwrites-base-method-with-same-name", r.MethodOverwritesBaseMethodWithSameImplementation = "method-overwrites-base-method-with-same-name", r.LoopBodyFunctionOverwrite = "loop-body-function-overwrite", r.NoOverlapWithImplementedSignature = "no-overlap-with-implemented-signature", r.ReaderWriterIncompatibleDataType = "reader-writer-incompatible-data-type", r.UnreachableEntity = "unreachable-entity", r.InternalCallParentMissingDataType = "internal-call-parent-missing-data-type", r.InternalCallParentDeclarationEntityInvalidType = "internal-call-parent-declaration-entity-invalid-type", r.InternalCallDeclarationNotFoundInParentDatatypeEntity = "internal-call-declaration-not-found-in-parent-datatype-entity", r.InternalCallDeclarationIsNotFunctionDeclaration = "internal-call-declaration-is-not-function-declaration", r.InternalCallDeclarationNotInParentDatatypeEntity = "internal-call-declaration-not-in-parent-datatype-entity", r))(L || {}), b = /* @__PURE__ */ ((r) => (r.RootReference = "root-reference", r.ReferencedEntityNotFound = "referenced-entity-not-found", r.EntityIdNotUnique = "entity-id-not-unique", r.BuiltInEntityGenerated = "built-in-entity-generated", r.BuiltInEntityUpdated = "built-in-entity-updated", r.BuiltInEntityDeleted = "built-in-entity-deleted", r.UnknownEntityType = "unknown-entity-type", r.MissingTypeProperty = "missing-type-property", r.MissingIdProperty = "missing-id-property", r.BuiltInEntityParent = "built-in-entity-parent", r.InvalidBuiltInEntityReference = "invalid-built-in-entity-reference", r.RecommendedImplementAbstractEntityAction = "recommended-implement-abstract-entity-action", r.RecommendedImplementOperationAction = "recommended-implement-operation-action", r.RecommendedImplementFunctionCallAction = "recommended-implement-function-call-action", r.RecommendedImplementVariableDeclarationAction = "recommended-implement-variable-declaration-action", r.RecommendedImplementVariableInstanceAction = "recommended-implement-variable-instance-action", r.RecommendedImplementConditionAction = "recommended-implement-condition-action", r.InvalidReferenceObjectStructure = "invalid-reference-object-structure", r.ContainsSingleButShouldBeReferenceList = "contains-single-but-should-be-reference-list", r.ContainsListButShouldReferenceSingle = "contains-list-but-should-reference-single", r.InvalidParentReference = "invalid-parent-reference", r.InvalidImplementsReference = "invalid-implements-reference", r.InvalidExtendsReference = "invalid-extends-reference", r.InvalidGenerationActionPayload = "invalid-generation-action-payload", r.InvalidReference = "invalid-reference", r.InvalidInternalCallParentRelation = "invalid-internal-call-parent-relation", r.InvalidUpdateEntityOperation = "invalid-update-entity-operation", r.NewEntityWouldOverriteExisting = "new-entity-would-overrite-existing", r.InvalidDownstreamPropertyOverride = "invalid-downstream-property-override", r.UnrecognizedProperty = "unrecognized-property", r.SelfReference = "self-reference", r.DuplicateReference = "duplicate-reference", r.CallerWithIncompatibleScope = "caller-with-incompatible-scope", r.InvalidFunctionDeclarationForFunctionCall = "invalid-function-declaration-for-function-call", r.InvalidInputMapDeclaration = "invalid-input-map-declaration", r.InvalidActionDescriptorForOperation = "invalid-action-descriptor-for-operation", r.InvalidActionDescriptorForCondition = "invalid-action-descriptor-for-condition", r.InvalidActionDescriptorForLoop = "invalid-action-descriptor-for-loop", r.InvalidInmutablePropertyOverride = "invalid-inmutable-property-override", r.OutputOverwrite = "output-overwrite", r.InputOverwrite = "input-overwrite", r.IncompatibleScope = "incompatible-scope", r.InvalidParentUpdate = "invalid-parent-update", r.NonInteractiveEntityReferenced = "non-interactive-entity-referenced", r.InvalidParentRelationType = "invalid-parent-relation-type", r))(b || {}), G = /* @__PURE__ */ ((r) => (r.NoPrimaryKeyProperty = "no-primary-key-property", r.ScopeWithoutLogic = "scope-without-logic", r.AbstractEntityImplements = "abstract-entity-implements", r.ImplementsIncompatibleEntities = "implements-incompatible-entities", r.ExtendsIncompatibleEntities = "extends-incompatible-entities", r.NonAbstractExtendingAbstractEntity = "non-abstract-extending-abstract-entity", r.AbstractExtendingNonAbstractEntity = "abstract-extending-non-abstract-entity", r.NonStaticExtendingStaticEntity = "non-static-extending-static-entity", r.StaticExtendingNonStaticEntity = "static-extending-non-static-entity", r.StaticImplementingNonStaticEntity = "static-implementing-non-static-entity", r.NonStaticImplementingStaticEntity = "non-static-implementing-static-entity", r.ImplementingNonAbstractEntity = "implementing-non-abstract-entity", r.ExtendingNonInteractiveEntity = "extending-non-interactive-entity", r.AbstractEntityWithNonAbstractMethods = "abstract-entity-with-non-abstract-methods", r.AbstractEntityWithNonAbstractProperties = "abstract-entity-with-non-abstract-properties", r.StaticEntityWithNonStaticProperties = "static-entity-with-non-static-properties", r.NonStaticPropertyInStaticEntity = "non-static-property-in-static-entity", r.AbstractPropertyInNonAbstractEntity = "abstract-property-in-non-abstract-entity", r.AbstractMethodInNonAbstractEntity = "abstract-method-in-non-abstract-entity", r.IncorrectEntityImplementation = "incorrect-entity-implementation", r.IncorrectMethodImplementation = "incorrect-method-implementation", r.IncorrectPropertyImplementation = "incorrect-property-implementation", r.PropertyImplementsNonAbstact = "property-implements-non-abstract", r.NonStaticPropertyImplementsStatic = "non-static-property-implements-static", r.StaticPropertyImplementsNonStatic = "static-property-implements-non-static", r.PropertyImplementsIncompatibleType = "property-implements-incompatible-type", r.MissingPropertyImplementation = "missing-property-implementation", r.MissingMethodImplementation = "missing-method-implementation", r.NoProperties = "no-properties", r.ReadingFromIncompatibleType = "reading-from-incompatible-type", r.WritingToIncompatibleType = "writing-to-incompatible-type", r.InvalidPropertiesCombination = "invalid-properties-combination", r.DisconnectedCallableEntity = "disconnected-callable-entity", r.VariableReadsValueAndInternalCall = "variable-reads-value-and-internal-call", r.VariableWritesValuesAndInternalCall = "variable-writes-values-and-internal-call", r.VariableHasInputsAndInternalCall = "variable-has-inputs-and-internal-calls", r.VariableHasOutputsAndInternalCall = "variable-has-outputs-and-internal-call", r.VariableIsCalledAndHasInternalCall = "variable-is-called-and-has-internal-call", r.VariableCallsOthersAndHasInternalCall = "variable-calls-others-and-has-internal-call", r))(G || {});
25173
+ var D = /* @__PURE__ */ ((r) => (r.Error = "error", r.Warning = "warning", r))(D || {}), L = /* @__PURE__ */ ((r) => (r.InvalidObjectStructure = "invalid-object-structure", r.NameNotUniqueInScope = "name-not-unique-in-scope", r.EmptyName = "empty-name", r.MissingCaller = "missing-caller", r.PropertyOverwritesOtherSiblingWithSameName = "property-overwrites-other-sibling-with-same-name", r.PropertyOverwritesOtherSiblingWithSameImplementation = "property-overwrites-other-sibling-with-same-name", r.PropertyOverwritesOtherImplementedEntitysPropertyWithSameName = "property-overwrites-other-implemented-entitys-property-with-same-name", r.PropertyOverwritesOtherImplementedEntitysPropertyWithSameImplementation = "property-overwrites-other-implemented-entitys-property-with-same-name", r.PropertyOverwritesOtherExtendedEntitysPropertyWithSameImplementation = "property-overwrites-other-extended-entitys-property-with-same-name", r.PropertyOverwritesOtherExtendedEntitysPropertyWithSameName = "property-overwrites-other-extended-entitys-property-with-same-name", r.PropertyOverwritesBasePropertyWithSameName = "property-overwrites-base-property-with-same-name", r.PropertyOverwritesBasePropertyWithSameImplementation = "property-overwrites-base-property-with-same-name", r.MethodOverwritesOtherSiblingWithSameName = "method-overwrites-other-sibling-with-same-name", r.MethodOverwritesOtherSiblingWithSameImplementation = "method-overwrites-other-sibling-with-same-name", r.MethodOverwritesOtherImplementedEntitysMethodWithSameName = "method-overwrites-other-implemented-entitys-method-with-same-name", r.MethodOverwritesOtherImplementedEntitysMethodWithSameImplementation = "method-overwrites-other-implemented-entitys-method-with-same-name", r.MethodOverwritesOtherExtendedEntitysMethodWithSameImplementation = "method-overwrites-other-extended-entitys-method-with-same-name", r.MethodOverwritesOtherExtendedEntitysMethodWithSameName = "method-overwrites-other-extended-entitys-method-with-same-name", r.MethodOverwritesBaseMethodWithSameName = "method-overwrites-base-method-with-same-name", r.MethodOverwritesBaseMethodWithSameImplementation = "method-overwrites-base-method-with-same-name", r.LoopBodyFunctionOverwrite = "loop-body-function-overwrite", r.NoOverlapWithImplementedSignature = "no-overlap-with-implemented-signature", r.ReaderWriterIncompatibleDataType = "reader-writer-incompatible-data-type", r.UnreachableEntity = "unreachable-entity", r.InternalCallParentMissingDataType = "internal-call-parent-missing-data-type", r.InternalCallParentDeclarationEntityInvalidType = "internal-call-parent-declaration-entity-invalid-type", r.InternalCallDeclarationNotFoundInParentDatatypeEntity = "internal-call-declaration-not-found-in-parent-datatype-entity", r.InternalCallDeclarationIsNotFunctionDeclaration = "internal-call-declaration-is-not-function-declaration", r.InternalCallDeclarationNotInParentDatatypeEntity = "internal-call-declaration-not-in-parent-datatype-entity", r))(L || {}), b = /* @__PURE__ */ ((r) => (r.RootReference = "root-reference", r.ReferencedEntityNotFound = "referenced-entity-not-found", r.EntityIdNotUnique = "entity-id-not-unique", r.BuiltInEntityGenerated = "built-in-entity-generated", r.BuiltInEntityUpdated = "built-in-entity-updated", r.BuiltInEntityDeleted = "built-in-entity-deleted", r.UnknownEntityType = "unknown-entity-type", r.MissingTypeProperty = "missing-type-property", r.MissingIdProperty = "missing-id-property", r.BuiltInEntityParent = "built-in-entity-parent", r.InvalidBuiltInEntityReference = "invalid-built-in-entity-reference", r.RecommendedImplementAbstractEntityAction = "recommended-implement-abstract-entity-action", r.RecommendedImplementOperationAction = "recommended-implement-operation-action", r.RecommendedImplementFunctionCallAction = "recommended-implement-function-call-action", r.RecommendedImplementVariableDeclarationAction = "recommended-implement-variable-declaration-action", r.RecommendedImplementVariableInstanceAction = "recommended-implement-variable-instance-action", r.RecommendedImplementConditionAction = "recommended-implement-condition-action", r.InvalidReferenceObjectStructure = "invalid-reference-object-structure", r.ContainsSingleButShouldBeReferenceList = "contains-single-but-should-be-reference-list", r.ContainsListButShouldReferenceSingle = "contains-list-but-should-reference-single", r.InvalidParentReference = "invalid-parent-reference", r.InvalidImplementsReference = "invalid-implements-reference", r.InvalidExtendsReference = "invalid-extends-reference", r.InvalidGenerationActionPayload = "invalid-generation-action-payload", r.InvalidReference = "invalid-reference", r.InvalidInternalCallParentRelation = "invalid-internal-call-parent-relation", r.InvalidUpdateEntityOperation = "invalid-update-entity-operation", r.NewEntityWouldOverriteExisting = "new-entity-would-overrite-existing", r.InvalidDownstreamPropertyOverride = "invalid-downstream-property-override", r.UnrecognizedProperty = "unrecognized-property", r.SelfReference = "self-reference", r.DuplicateReference = "duplicate-reference", r.CallerWithIncompatibleScope = "caller-with-incompatible-scope", r.InvalidFunctionDeclarationForFunctionCall = "invalid-function-declaration-for-function-call", r.InvalidInputMapDeclaration = "invalid-input-map-declaration", r.InvalidActionDescriptorForOperation = "invalid-action-descriptor-for-operation", r.InvalidActionDescriptorForCondition = "invalid-action-descriptor-for-condition", r.InvalidActionDescriptorForLoop = "invalid-action-descriptor-for-loop", r.InvalidInmutablePropertyOverride = "invalid-inmutable-property-override", r.OutputOverwrite = "output-overwrite", r.InputOverwrite = "input-overwrite", r.IncompatibleScope = "incompatible-scope", r.InvalidParentUpdate = "invalid-parent-update", r.NonInteractiveEntityReferenced = "non-interactive-entity-referenced", r.InvalidParentRelationType = "invalid-parent-relation-type", r))(b || {}), G = /* @__PURE__ */ ((r) => (r.NoPrimaryKeyProperty = "no-primary-key-property", r.ScopeWithoutLogic = "scope-without-logic", r.AbstractEntityImplements = "abstract-entity-implements", r.ImplementsIncompatibleEntities = "implements-incompatible-entities", r.ExtendsIncompatibleEntities = "extends-incompatible-entities", r.NonAbstractExtendingAbstractEntity = "non-abstract-extending-abstract-entity", r.AbstractExtendingNonAbstractEntity = "abstract-extending-non-abstract-entity", r.NonStaticExtendingStaticEntity = "non-static-extending-static-entity", r.StaticExtendingNonStaticEntity = "static-extending-non-static-entity", r.StaticImplementingNonStaticEntity = "static-implementing-non-static-entity", r.NonStaticImplementingStaticEntity = "non-static-implementing-static-entity", r.ImplementingNonAbstractEntity = "implementing-non-abstract-entity", r.ExtendingNonInteractiveEntity = "extending-non-interactive-entity", r.AbstractEntityWithNonAbstractMethods = "abstract-entity-with-non-abstract-methods", r.AbstractEntityWithNonAbstractProperties = "abstract-entity-with-non-abstract-properties", r.StaticEntityWithNonStaticProperties = "static-entity-with-non-static-properties", r.NonStaticPropertyInStaticEntity = "non-static-property-in-static-entity", r.AbstractPropertyInNonAbstractEntity = "abstract-property-in-non-abstract-entity", r.AbstractMethodInNonAbstractEntity = "abstract-method-in-non-abstract-entity", r.IncorrectEntityImplementation = "incorrect-entity-implementation", r.IncorrectMethodImplementation = "incorrect-method-implementation", r.IncorrectPropertyImplementation = "incorrect-property-implementation", r.PropertyImplementsNonAbstact = "property-implements-non-abstract", r.NonStaticPropertyImplementsStatic = "non-static-property-implements-static", r.StaticPropertyImplementsNonStatic = "static-property-implements-non-static", r.PropertyImplementsIncompatibleType = "property-implements-incompatible-type", r.MissingPropertyImplementation = "missing-property-implementation", r.MissingMethodImplementation = "missing-method-implementation", r.NoProperties = "no-properties", r.ReadingFromIncompatibleType = "reading-from-incompatible-type", r.WritingToIncompatibleType = "writing-to-incompatible-type", r.InvalidPropertiesCombination = "invalid-properties-combination", r.DisconnectedCallableEntity = "disconnected-callable-entity", r.VariableReadsValueAndInternalCall = "variable-reads-value-and-internal-call", r.VariableWritesValuesAndInternalCall = "variable-writes-values-and-internal-call", r.VariableHasInputsAndInternalCall = "variable-has-inputs-and-internal-calls", r.VariableHasOutputsAndInternalCall = "variable-has-outputs-and-internal-call", r.VariableIsCalledAndHasInternalCall = "variable-is-called-and-has-internal-call", r.VariableCallsOthersAndHasInternalCall = "variable-calls-others-and-has-internal-call", r))(G || {});
25174
25174
  class w {
25175
25175
  constructor(a) {
25176
25176
  // A deterministic error code, so if the same error occurs again in a subsequent validation run,
@@ -29523,7 +29523,7 @@ function U0(r, a) {
29523
29523
  new w({
29524
29524
  id: `${r.id}--${L.EmptyName}`,
29525
29525
  message: `Entity with id "${r.id}" and type "${r.type}" has an empty name. Please provide a 'name' string.`,
29526
- severity: R.Error,
29526
+ severity: D.Error,
29527
29527
  code: L.EmptyName,
29528
29528
  issue: null
29529
29529
  })
@@ -29536,7 +29536,7 @@ function U0(r, a) {
29536
29536
  id: `${r.id}--${L.NameNotUniqueInScope}`,
29537
29537
  message: `Entity with id "${r.id}" and type "${r.type}" has a name "${r.name}" that is not unique in the project. Entity with id "${t[0].id}" has the same name.
29538
29538
  Please provide a unique 'name' string.`,
29539
- severity: R.Error,
29539
+ severity: D.Error,
29540
29540
  code: L.NameNotUniqueInScope,
29541
29541
  issue: null
29542
29542
  })
@@ -29548,7 +29548,7 @@ function j0(r, a) {
29548
29548
  new w({
29549
29549
  id: `${r.id}--${L.EmptyName}`,
29550
29550
  message: `Entity with id "${r.id}" and type "${r.type}" has an empty name. Please provide a 'name' string.`,
29551
- severity: R.Error,
29551
+ severity: D.Error,
29552
29552
  code: L.EmptyName,
29553
29553
  issue: null
29554
29554
  })
@@ -29572,7 +29572,7 @@ function j0(r, a) {
29572
29572
  id: `${r.id}--${L.NameNotUniqueInScope}`,
29573
29573
  message: `Entity with id "${r.id}" and type "${r.type}" has a name "${r.name}" that is not unique in ${i.type === n.Project ? "the globally declared project scope" : "its parent entity"}. Entity with id "${l[0].id}" has the same name.
29574
29574
  Please provide a unique 'name' string.`,
29575
- severity: R.Error,
29575
+ severity: D.Error,
29576
29576
  code: L.NameNotUniqueInScope,
29577
29577
  issue: null
29578
29578
  })
@@ -29584,7 +29584,7 @@ function L0(r, a) {
29584
29584
  new w({
29585
29585
  id: `${r.id}--${L.EmptyName}`,
29586
29586
  message: `Entity with id "${r.id}" and type "${r.type}" has an empty name. Please provide a 'name' string.`,
29587
- severity: R.Error,
29587
+ severity: D.Error,
29588
29588
  code: L.EmptyName,
29589
29589
  issue: null
29590
29590
  })
@@ -29595,7 +29595,7 @@ function L0(r, a) {
29595
29595
  new w({
29596
29596
  id: `${r.id}--parent-reference--${b.ReferencedEntityNotFound}`,
29597
29597
  message: `The entity with id '${r.parent}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
29598
- severity: R.Error,
29598
+ severity: D.Error,
29599
29599
  code: b.ReferencedEntityNotFound,
29600
29600
  issue: null
29601
29601
  })
@@ -29611,7 +29611,7 @@ function L0(r, a) {
29611
29611
  id: `${r.id}--${L.NameNotUniqueInScope}`,
29612
29612
  message: `Entity with id "${r.id}" and type "${r.type}" has a name "${r.name}" that is not unique in its scope or higher scopes. Entity with id "${s[0].id}" has the same name.
29613
29613
  Please provide a unique 'name' string.`,
29614
- severity: R.Error,
29614
+ severity: D.Error,
29615
29615
  code: L.NameNotUniqueInScope,
29616
29616
  issue: null
29617
29617
  })
@@ -29625,7 +29625,7 @@ function x0(r, a) {
29625
29625
  new w({
29626
29626
  id: `${r.id}--${L.EmptyName}`,
29627
29627
  message: `Entity with id "${r.id}" and type "${r.type}" has an empty name. Please provide a 'name' string.`,
29628
- severity: R.Error,
29628
+ severity: D.Error,
29629
29629
  code: L.EmptyName,
29630
29630
  issue: null
29631
29631
  })
@@ -29636,7 +29636,7 @@ function x0(r, a) {
29636
29636
  new w({
29637
29637
  id: `${r.id}--parent-reference--${b.InvalidReferenceObjectStructure}`,
29638
29638
  message: `Reference object at 'parent' property for entity with id "${r.id}" and type "${r.type}" is not a valid reference. A reference needs to be a 'id' string of an existing entity in the project.`,
29639
- severity: R.Error,
29639
+ severity: D.Error,
29640
29640
  code: b.InvalidReferenceObjectStructure,
29641
29641
  issue: null
29642
29642
  })
@@ -29648,7 +29648,7 @@ function x0(r, a) {
29648
29648
  new w({
29649
29649
  id: `${r.id}--parent-reference--${b.ReferencedEntityNotFound}`,
29650
29650
  message: `The entity with id '${t}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
29651
- severity: R.Error,
29651
+ severity: D.Error,
29652
29652
  code: b.ReferencedEntityNotFound,
29653
29653
  issue: null
29654
29654
  })
@@ -29662,7 +29662,7 @@ function x0(r, a) {
29662
29662
  id: `${r.id}--${L.NameNotUniqueInScope}`,
29663
29663
  message: `Entity with id "${r.id}" and type "${r.type}" has a name "${r.name}" that is not unique among all properties in the parent entity. Entity with id "${l[0].id}" has the same name.
29664
29664
  Please provide a unique 'name' string.`,
29665
- severity: R.Error,
29665
+ severity: D.Error,
29666
29666
  code: L.NameNotUniqueInScope,
29667
29667
  issue: null
29668
29668
  })
@@ -29677,7 +29677,7 @@ function $0(r, a) {
29677
29677
  new w({
29678
29678
  id: `${r.id}--${L.EmptyName}`,
29679
29679
  message: `Entity with id "${r.id}" and type "${r.type}" has an empty name. Please provide a 'name' string.`,
29680
- severity: R.Error,
29680
+ severity: D.Error,
29681
29681
  code: L.EmptyName,
29682
29682
  issue: null
29683
29683
  })
@@ -29688,7 +29688,7 @@ function $0(r, a) {
29688
29688
  new w({
29689
29689
  id: `${r.id}--parent-reference--${b.InvalidReferenceObjectStructure}`,
29690
29690
  message: `Reference object at 'parent' property for entity with id "${r.id}" and type "${r.type}" is not a valid reference. A reference needs to be a 'id' string of an existing entity in the project.`,
29691
- severity: R.Error,
29691
+ severity: D.Error,
29692
29692
  code: b.InvalidReferenceObjectStructure,
29693
29693
  issue: null
29694
29694
  })
@@ -29700,7 +29700,7 @@ function $0(r, a) {
29700
29700
  new w({
29701
29701
  id: `${r.id}--parent-reference--${b.ReferencedEntityNotFound}`,
29702
29702
  message: `The entity with id '${t}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
29703
- severity: R.Error,
29703
+ severity: D.Error,
29704
29704
  code: b.ReferencedEntityNotFound,
29705
29705
  issue: null
29706
29706
  })
@@ -29716,7 +29716,7 @@ function $0(r, a) {
29716
29716
  id: `${r.id}--${L.NameNotUniqueInScope}`,
29717
29717
  message: `Entity with id "${r.id}" and type "${r.type}" has a name "${r.name}" that is not unique among all inputs declared in the parent entity. Entity with id "${l[0].id}" has the same name.
29718
29718
  Please provide a unique 'name' string.`,
29719
- severity: R.Error,
29719
+ severity: D.Error,
29720
29720
  code: L.NameNotUniqueInScope,
29721
29721
  issue: null
29722
29722
  })
@@ -29731,7 +29731,7 @@ function G0(r, a) {
29731
29731
  new w({
29732
29732
  id: `${r.id}--${L.EmptyName}`,
29733
29733
  message: `Entity with id "${r.id}" and type "${r.type}" has an empty name. Please provide a 'name' string.`,
29734
- severity: R.Error,
29734
+ severity: D.Error,
29735
29735
  code: L.EmptyName,
29736
29736
  issue: null
29737
29737
  })
@@ -29742,7 +29742,7 @@ function G0(r, a) {
29742
29742
  new w({
29743
29743
  id: `${r.id}--parent-reference--${b.InvalidReferenceObjectStructure}`,
29744
29744
  message: `Reference object at 'parent' property for entity with id "${r.id}" and type "${r.type}" is not a valid reference. A reference needs to be a 'id' string of an existing entity in the project.`,
29745
- severity: R.Error,
29745
+ severity: D.Error,
29746
29746
  code: b.InvalidReferenceObjectStructure,
29747
29747
  issue: null
29748
29748
  })
@@ -29754,7 +29754,7 @@ function G0(r, a) {
29754
29754
  new w({
29755
29755
  id: `${r.id}--parent-reference--${b.ReferencedEntityNotFound}`,
29756
29756
  message: `The entity with id '${t}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
29757
- severity: R.Error,
29757
+ severity: D.Error,
29758
29758
  code: b.ReferencedEntityNotFound,
29759
29759
  issue: null
29760
29760
  })
@@ -29770,7 +29770,7 @@ function G0(r, a) {
29770
29770
  id: `${r.id}--${L.NameNotUniqueInScope}`,
29771
29771
  message: `Entity with id "${r.id}" and type "${r.type}" has a name "${r.name}" that is not unique among all outputs declared in the parent entity. Entity with id "${l[0].id}" has the same name.
29772
29772
  Please provide a unique 'name' string.`,
29773
- severity: R.Error,
29773
+ severity: D.Error,
29774
29774
  code: L.NameNotUniqueInScope,
29775
29775
  issue: null
29776
29776
  })
@@ -29838,7 +29838,7 @@ function F0(r) {
29838
29838
  r.project
29839
29839
  )}" with id "${r.id}".`,
29840
29840
  issue: null,
29841
- severity: R.Error,
29841
+ severity: D.Error,
29842
29842
  code: G.PropertyImplementsNonAbstact,
29843
29843
  entity: r
29844
29844
  });
@@ -29859,7 +29859,7 @@ function g0(r) {
29859
29859
  r.project
29860
29860
  )}" with id "${e.id}".`,
29861
29861
  issue: null,
29862
- severity: R.Error,
29862
+ severity: D.Error,
29863
29863
  code: G.PropertyImplementsNonAbstact,
29864
29864
  entity: r
29865
29865
  });
@@ -29876,7 +29876,7 @@ function g0(r) {
29876
29876
  r.project
29877
29877
  )}" with id "${e.id}".`,
29878
29878
  issue: null,
29879
- severity: R.Error,
29879
+ severity: D.Error,
29880
29880
  code: G.NonStaticPropertyImplementsStatic,
29881
29881
  entity: r
29882
29882
  });
@@ -29893,7 +29893,7 @@ function g0(r) {
29893
29893
  r.project
29894
29894
  )}" with id "${e.id}".`,
29895
29895
  issue: null,
29896
- severity: R.Error,
29896
+ severity: D.Error,
29897
29897
  code: G.StaticPropertyImplementsNonStatic,
29898
29898
  entity: r
29899
29899
  });
@@ -29910,7 +29910,7 @@ function g0(r) {
29910
29910
  r.project
29911
29911
  )}" with id "${e.id}" that has an incompatible data type.`,
29912
29912
  issue: null,
29913
- severity: R.Error,
29913
+ severity: D.Error,
29914
29914
  code: G.PropertyImplementsIncompatibleType,
29915
29915
  entity: r
29916
29916
  });
@@ -29932,7 +29932,7 @@ function XZ(r, a) {
29932
29932
  new w({
29933
29933
  id: `${r.id}--${r.parent}--${b.ReferencedEntityNotFound}`,
29934
29934
  code: b.ReferencedEntityNotFound,
29935
- severity: R.Error,
29935
+ severity: D.Error,
29936
29936
  message: `Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${r.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
29937
29937
  issue: null
29938
29938
  })
@@ -29948,7 +29948,7 @@ function XZ(r, a) {
29948
29948
  new w({
29949
29949
  id: `${r.id}--${b.InvalidBuiltInEntityReference}`,
29950
29950
  code: b.InvalidBuiltInEntityReference,
29951
- severity: R.Error,
29951
+ severity: D.Error,
29952
29952
  message: l,
29953
29953
  issue: null
29954
29954
  })
@@ -29958,7 +29958,7 @@ function XZ(r, a) {
29958
29958
  new w({
29959
29959
  id: `${r.id}--${r.parent}--${b.InvalidParentReference}`,
29960
29960
  code: b.InvalidParentReference,
29961
- severity: R.Error,
29961
+ severity: D.Error,
29962
29962
  message: `Entity of type "${r.type}" with id "${r.id}", has a parent reference that isn't pointing to an entity of type 'definition-entity'.`,
29963
29963
  issue: null
29964
29964
  })
@@ -29983,7 +29983,7 @@ ${ln}`, e.push(
29983
29983
  new w({
29984
29984
  id: `${r.id}--${b.NonInteractiveEntityReferenced}`,
29985
29985
  code: b.NonInteractiveEntityReferenced,
29986
- severity: R.Error,
29986
+ severity: D.Error,
29987
29987
  message: d,
29988
29988
  issue: null
29989
29989
  })
@@ -29997,7 +29997,7 @@ ${ln}`, e.push(
29997
29997
  new w({
29998
29998
  id: `${r.id}--${r.implements}--${b.SelfReference}`,
29999
29999
  code: b.SelfReference,
30000
- severity: R.Error,
30000
+ severity: D.Error,
30001
30001
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to itself at 'implements'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,
30002
30002
  issue: null
30003
30003
  })
@@ -30007,7 +30007,7 @@ ${ln}`, e.push(
30007
30007
  new w({
30008
30008
  id: `${r.id}--${r.implements}--${b.ReferencedEntityNotFound}`,
30009
30009
  code: b.ReferencedEntityNotFound,
30010
- severity: R.Error,
30010
+ severity: D.Error,
30011
30011
  message: `Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${r.implements}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
30012
30012
  issue: null
30013
30013
  })
@@ -30023,7 +30023,7 @@ ${ln}`, e.push(
30023
30023
  new w({
30024
30024
  id: `${r.id}--${L.PropertyOverwritesOtherSiblingWithSameImplementation}`,
30025
30025
  code: L.PropertyOverwritesOtherSiblingWithSameImplementation,
30026
- severity: R.Error,
30026
+ severity: D.Error,
30027
30027
  message: `The property with id "${r.id}" is trying to implement the property with id "${r.implements}", but the parent entity already has a property with id '${u.id}' that implements the same base property.`,
30028
30028
  issue: null
30029
30029
  })
@@ -30031,7 +30031,7 @@ ${ln}`, e.push(
30031
30031
  new w({
30032
30032
  id: `${r.id}--${r.implements}--${b.InvalidImplementsReference}`,
30033
30033
  code: b.InvalidImplementsReference,
30034
- severity: R.Error,
30034
+ severity: D.Error,
30035
30035
  message: `Entity of type "${r.type}" with id "${r.id}", has an 'implements' reference that isn't pointing to an abstract entity.`,
30036
30036
  issue: null
30037
30037
  })
@@ -30039,7 +30039,7 @@ ${ln}`, e.push(
30039
30039
  new w({
30040
30040
  id: `${r.id}--${r.implements}--${b.InvalidImplementsReference}`,
30041
30041
  code: b.InvalidImplementsReference,
30042
- severity: R.Error,
30042
+ severity: D.Error,
30043
30043
  message: `Entity of type "${r.type}" with id "${r.id}", has an 'implements' reference that isn't pointing to an entity of type 'property'.`,
30044
30044
  issue: null
30045
30045
  })
@@ -30280,27 +30280,27 @@ class A {
30280
30280
  if (this.updated[a.id] && delete this.updated[a.id], this.affected[a.id] && delete this.affected[a.id], !this.hasRemoved(a.id)) {
30281
30281
  a.increaseVersion(this.timestamp);
30282
30282
  const { added: h, updated: c, removed: T, affected: E } = a.recursiveCaptureUpstreamVersions(this.timestamp);
30283
- for (const D of h)
30283
+ for (const R of h)
30284
30284
  this.add(
30285
- D,
30285
+ R,
30286
30286
  "added"
30287
30287
  /* Added */
30288
30288
  );
30289
- for (const D of c)
30289
+ for (const R of c)
30290
30290
  this.add(
30291
- D,
30291
+ R,
30292
30292
  "updated"
30293
30293
  /* Updated */
30294
30294
  );
30295
- for (const D of T)
30295
+ for (const R of T)
30296
30296
  this.add(
30297
- D,
30297
+ R,
30298
30298
  "removed"
30299
30299
  /* Removed */
30300
30300
  );
30301
- for (const D of E)
30301
+ for (const R of E)
30302
30302
  this.add(
30303
- D,
30303
+ R,
30304
30304
  "affected"
30305
30305
  /* Affected */
30306
30306
  );
@@ -30318,27 +30318,27 @@ class A {
30318
30318
  return this;
30319
30319
  if (this.updated[a.id] && delete this.updated[a.id], this.affected[a.id] && delete this.affected[a.id], !this.hasAdded(a.id)) {
30320
30320
  const { added: h, updated: c, removed: T, affected: E } = a.recursiveCaptureUpstreamVersions(this.timestamp);
30321
- for (const D of h)
30321
+ for (const R of h)
30322
30322
  this.add(
30323
- D,
30323
+ R,
30324
30324
  "added"
30325
30325
  /* Added */
30326
30326
  );
30327
- for (const D of c)
30327
+ for (const R of c)
30328
30328
  this.add(
30329
- D,
30329
+ R,
30330
30330
  "updated"
30331
30331
  /* Updated */
30332
30332
  );
30333
- for (const D of T)
30333
+ for (const R of T)
30334
30334
  this.add(
30335
- D,
30335
+ R,
30336
30336
  "removed"
30337
30337
  /* Removed */
30338
30338
  );
30339
- for (const D of E)
30339
+ for (const R of E)
30340
30340
  this.add(
30341
- D,
30341
+ R,
30342
30342
  "affected"
30343
30343
  /* Affected */
30344
30344
  );
@@ -30359,27 +30359,27 @@ class A {
30359
30359
  if (this.affected[a.id] && delete this.affected[a.id], !this.hasUpdated(a.id)) {
30360
30360
  a.increaseVersion(this.timestamp);
30361
30361
  const { added: h, updated: c, removed: T, affected: E } = a.recursiveCaptureUpstreamVersions(this.timestamp);
30362
- for (const D of h)
30362
+ for (const R of h)
30363
30363
  this.add(
30364
- D,
30364
+ R,
30365
30365
  "added"
30366
30366
  /* Added */
30367
30367
  );
30368
- for (const D of c)
30368
+ for (const R of c)
30369
30369
  this.add(
30370
- D,
30370
+ R,
30371
30371
  "updated"
30372
30372
  /* Updated */
30373
30373
  );
30374
- for (const D of T)
30374
+ for (const R of T)
30375
30375
  this.add(
30376
- D,
30376
+ R,
30377
30377
  "removed"
30378
30378
  /* Removed */
30379
30379
  );
30380
- for (const D of E)
30380
+ for (const R of E)
30381
30381
  this.add(
30382
- D,
30382
+ R,
30383
30383
  "affected"
30384
30384
  /* Affected */
30385
30385
  );
@@ -30588,7 +30588,7 @@ const Ae = class Ae extends st {
30588
30588
  new w({
30589
30589
  id: `${this.id}--${b.InvalidParentUpdate}`,
30590
30590
  code: b.InvalidParentUpdate,
30591
- severity: R.Error,
30591
+ severity: D.Error,
30592
30592
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
30593
30593
  This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`,
30594
30594
  issue: null
@@ -30597,7 +30597,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
30597
30597
  new w({
30598
30598
  id: `${this.id}--${L.InvalidObjectStructure}`,
30599
30599
  code: L.InvalidObjectStructure,
30600
- severity: R.Error,
30600
+ severity: D.Error,
30601
30601
  message: `Entity of type '${this.type}' with id '${this.id}' is not a value reading or writing entity.
30602
30602
  ${Ul}`,
30603
30603
  issue: null
@@ -31301,7 +31301,7 @@ ${Ul}`,
31301
31301
  "clone-entity"
31302
31302
  )
31303
31303
  ), t = null, i = null, s = !0) {
31304
- var E, D;
31304
+ var E, R;
31305
31305
  let l = yt(t, this);
31306
31306
  const o = i || y.UUID.uuid();
31307
31307
  let d = t || this.parent;
@@ -31338,7 +31338,7 @@ ${Ul}`,
31338
31338
  s
31339
31339
  )) || null;
31340
31340
  c && h.setDataType(c);
31341
- const T = (D = this.defaultValue) == null ? void 0 : D.clone(
31341
+ const T = (R = this.defaultValue) == null ? void 0 : R.clone(
31342
31342
  e,
31343
31343
  h,
31344
31344
  y.UUID.uuid(),
@@ -31440,7 +31440,7 @@ function Z0(r) {
31440
31440
  r.project
31441
31441
  )}" with id "${r.id}".`,
31442
31442
  issue: null,
31443
- severity: R.Error,
31443
+ severity: D.Error,
31444
31444
  code: G.PropertyImplementsNonAbstact,
31445
31445
  entity: r
31446
31446
  });
@@ -31603,7 +31603,7 @@ const be = class be extends st {
31603
31603
  new w({
31604
31604
  id: `${i.id}--${L.NoOverlapWithImplementedSignature}`,
31605
31605
  code: L.NoOverlapWithImplementedSignature,
31606
- severity: R.Error,
31606
+ severity: D.Error,
31607
31607
  message: `Entity of type '${n.ReturnDeclaration}' with id '${i.id}' cannot be added to the parent entity of type '${c.type}' with id '${c.id}'. This '${c.type}' already has return declarations.
31608
31608
  ${Zp}`,
31609
31609
  issue: null
@@ -31615,7 +31615,7 @@ ${Zp}`,
31615
31615
  new w({
31616
31616
  id: `${i.id}--${L.NoOverlapWithImplementedSignature}`,
31617
31617
  code: L.NoOverlapWithImplementedSignature,
31618
- severity: R.Error,
31618
+ severity: D.Error,
31619
31619
  message: `Entity of type '${n.ReturnDeclaration}' with id '${i.id}' cannot be added to the parent entity of type '${c.type}' with id '${c.id}'. This new 'return-declaration' doesn't have the same name "${O}" as the return declarations on the other statements in the same scope.
31620
31620
  ${Zp}`,
31621
31621
  issue: null
@@ -31629,7 +31629,7 @@ ${Zp}`,
31629
31629
  if (T) {
31630
31630
  const E = T.outputs.find(
31631
31631
  (C) => C.name === i.name
31632
- ), D = T.outputs.filter((C) => !h.outputs.find(
31632
+ ), R = T.outputs.filter((C) => !h.outputs.find(
31633
31633
  (Z) => Z.type === n.ReturnDeclaration && Z.name === C.name
31634
31634
  )), O = h.outputs.filter(
31635
31635
  (C) => C.type === n.ReturnDeclaration
@@ -31641,8 +31641,8 @@ ${Zp}`,
31641
31641
  ),
31642
31642
  ", ",
31643
31643
  " and "
31644
- )}.` : "The parent entity does not yet have any implemented return declarations.", x = D.length ? `The parent entity is still missing the following returns in the implementation: ${ne(
31645
- D.map(
31644
+ )}.` : "The parent entity does not yet have any implemented return declarations.", x = R.length ? `The parent entity is still missing the following returns in the implementation: ${ne(
31645
+ R.map(
31646
31646
  (C) => `'${C.id}' (${C.name})`
31647
31647
  ),
31648
31648
  ", ",
@@ -31652,7 +31652,7 @@ ${Zp}`,
31652
31652
  new w({
31653
31653
  id: `${i.id}--${L.NoOverlapWithImplementedSignature}`,
31654
31654
  code: L.NoOverlapWithImplementedSignature,
31655
- severity: R.Error,
31655
+ severity: D.Error,
31656
31656
  message: `Entity of type '${n.ReturnDeclaration}' with id '${i.id}' should not exist in a parent entity of type '${h.type}' with id '${h.id}' that implements a ${n.ActionDescriptor} with fixed outputs.
31657
31657
  Adding a new return would make the implementation invalid. An return with the same name already exists in the parent entity.
31658
31658
  ${M}
@@ -31663,7 +31663,7 @@ ${x}`,
31663
31663
  new w({
31664
31664
  id: `${i.id}--${L.NoOverlapWithImplementedSignature}`,
31665
31665
  code: L.NoOverlapWithImplementedSignature,
31666
- severity: R.Error,
31666
+ severity: D.Error,
31667
31667
  message: `Entity of type '${n.ReturnDeclaration}' with id '${i.id}' should not exist in a parent entity of type '${h.type}' with id '${h.id}' that implements a ${n.ActionDescriptor} with fixed outputs.
31668
31668
  Adding a new return would make the implementation invalid. There are no returns in the descriptor with the same name.
31669
31669
  ${M}
@@ -31701,7 +31701,7 @@ ${x}`,
31701
31701
  new w({
31702
31702
  id: `${this.id}--${b.InvalidParentUpdate}`,
31703
31703
  code: b.InvalidParentUpdate,
31704
- severity: R.Error,
31704
+ severity: D.Error,
31705
31705
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
31706
31706
  This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`,
31707
31707
  issue: null
@@ -32210,7 +32210,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
32210
32210
  }
32211
32211
  });
32212
32212
  }
32213
- return !e && this.parent && this.parent.removeOutputDeclaration(this, t), t == null || t.attemptAutoclose("remove-entity", this.id), {
32213
+ return !e && this.parent && (this.isError ? (this.parent.throws = null, t == null || t.add(this.parent, I.Updated)) : this.parent.removeOutputDeclaration(this, t)), t == null || t.attemptAutoclose("remove-entity", this.id), {
32214
32214
  added: p(l),
32215
32215
  updated: p(i),
32216
32216
  removed: p(s),
@@ -32810,7 +32810,7 @@ const xe = class xe extends st {
32810
32810
  new w({
32811
32811
  id: `${this.id}--${b.InvalidParentUpdate}`,
32812
32812
  code: b.InvalidParentUpdate,
32813
- severity: R.Error,
32813
+ severity: D.Error,
32814
32814
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
32815
32815
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
32816
32816
  You shouldn't have to manually update a 'parent' property.
@@ -33593,7 +33593,7 @@ Specifically for continue statements the parent needs to always be the 'loop' en
33593
33593
  );
33594
33594
  t ? c.setParent(t, null) : c.setParent(this.parent, null), s && c.subscribe(), c.initChildren(e), e == null || e.add(c, I.Added);
33595
33595
  const T = (E = this.outputs) == null ? void 0 : E.map(
33596
- (D, O) => D.clone(
33596
+ (R, O) => R.clone(
33597
33597
  e,
33598
33598
  c,
33599
33599
  h + "-return-declaration-" + O + "-id",
@@ -33785,7 +33785,7 @@ const Xe = class Xe extends st {
33785
33785
  new w({
33786
33786
  id: `${this.id}--${b.InvalidParentUpdate}`,
33787
33787
  code: b.InvalidParentUpdate,
33788
- severity: R.Error,
33788
+ severity: D.Error,
33789
33789
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
33790
33790
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
33791
33791
  You shouldn't have to manually update a 'parent' property.
@@ -34567,7 +34567,7 @@ Specifically for return statements the parent needs to always be the 'function-d
34567
34567
  );
34568
34568
  t ? c.setParent(t, null) : c.setParent(this.parent, null), s && c.subscribe(), c.initChildren(e), e == null || e.add(c, I.Added);
34569
34569
  const T = (E = this.outputs) == null ? void 0 : E.map(
34570
- (D, O) => D.clone(
34570
+ (R, O) => R.clone(
34571
34571
  e,
34572
34572
  c,
34573
34573
  h + "-return-declaration-" + O + "-id",
@@ -34598,14 +34598,75 @@ Specifically for return statements the parent needs to always be the 'function-d
34598
34598
  this,
34599
34599
  this.project
34600
34600
  );
34601
- return o.implements ? (o.implements.outputs.filter(
34602
- (h) => !this.outputs.find((c) => {
34603
- var T;
34604
- return ((T = c.implements) == null ? void 0 : T.id) === h.id;
34601
+ if (!o.implements)
34602
+ return this.throws && this.outputs.length && this.outputs.forEach((T) => {
34603
+ var E;
34604
+ if (T.id !== ((E = this.throws) == null ? void 0 : E.id)) {
34605
+ const { updated: R, removed: O } = T.remove(
34606
+ {
34607
+ ignoreUpstream: !0
34608
+ },
34609
+ e
34610
+ );
34611
+ t.push(...R), s.push(...O), this.removeOutputDeclaration(T, e);
34612
+ }
34613
+ }), e == null || e.attemptAutoclose("sync-return-declarations", this.id), {
34614
+ updated: p(
34615
+ t
34616
+ ),
34617
+ added: p(i),
34618
+ removed: p(
34619
+ s
34620
+ ),
34621
+ affected: p(
34622
+ l
34623
+ ),
34624
+ self: this
34625
+ };
34626
+ const d = o.implements.outputs.find(
34627
+ (T) => T.parentRelationType === N.ReturnedError
34628
+ ), u = o.implements.outputs.filter(
34629
+ (T) => T.parentRelationType !== N.ReturnedError
34630
+ );
34631
+ if (d && !this.throws) {
34632
+ const T = d.implementAsReturnDeclaration(e, this);
34633
+ return i.push(T), this.outputs.forEach((E) => {
34634
+ if (E.id !== T.id) {
34635
+ const { updated: R, removed: O } = E.remove(
34636
+ {
34637
+ ignoreUpstream: !0
34638
+ },
34639
+ e
34640
+ );
34641
+ t.push(...R), s.push(...O), this.removeOutputDeclaration(E, e);
34642
+ }
34643
+ }), e == null || e.attemptAutoclose("sync-return-declarations", this.id), {
34644
+ updated: p(t),
34645
+ added: p(i),
34646
+ removed: p(s),
34647
+ affected: p(
34648
+ l
34649
+ ),
34650
+ self: this
34651
+ };
34652
+ }
34653
+ if (!d && this.throws) {
34654
+ const { updated: T, removed: E } = this.throws.remove(
34655
+ {
34656
+ ignoreUpstream: !0
34657
+ },
34658
+ e
34659
+ );
34660
+ t.push(...T), s.push(...E);
34661
+ }
34662
+ return u.filter(
34663
+ (T) => !this.outputs.find((E) => {
34664
+ var R;
34665
+ return ((R = E.implements) == null ? void 0 : R.id) === T.id && !E.isError;
34605
34666
  })
34606
- ).forEach((h) => {
34607
- const c = h.implementAsReturnDeclaration(e, this);
34608
- i.push(c);
34667
+ ).forEach((T) => {
34668
+ const E = T.implementAsReturnDeclaration(e, this);
34669
+ i.push(E);
34609
34670
  }), e == null || e.attemptAutoclose("sync-return-declarations", this.id), {
34610
34671
  updated: p(t),
34611
34672
  added: p(i),
@@ -34614,19 +34675,7 @@ Specifically for return statements the parent needs to always be the 'function-d
34614
34675
  l
34615
34676
  ),
34616
34677
  self: this
34617
- }) : (e == null || e.attemptAutoclose("sync-return-declarations", this.id), {
34618
- updated: p(
34619
- t
34620
- ),
34621
- added: p(i),
34622
- removed: p(
34623
- s
34624
- ),
34625
- affected: p(
34626
- l
34627
- ),
34628
- self: this
34629
- });
34678
+ };
34630
34679
  }
34631
34680
  };
34632
34681
  f(Xe, "repository", {
@@ -34691,7 +34740,7 @@ function z0(r) {
34691
34740
  r.project
34692
34741
  )}" with id "${r.id}".`,
34693
34742
  issue: null,
34694
- severity: R.Error,
34743
+ severity: D.Error,
34695
34744
  code: G.PropertyImplementsNonAbstact,
34696
34745
  entity: r
34697
34746
  });
@@ -34706,7 +34755,7 @@ function t7(r) {
34706
34755
  id: `${r.id}--${G.ScopeWithoutLogic}`,
34707
34756
  message: `Action "${F(r, r.project)}" with id "${r.id}" does not have any logic defined. So it doesn't do anything.`,
34708
34757
  issue: null,
34709
- severity: R.Warning,
34758
+ severity: D.Warning,
34710
34759
  code: G.ScopeWithoutLogic,
34711
34760
  entity: r
34712
34761
  });
@@ -34855,26 +34904,26 @@ const Re = class Re extends st {
34855
34904
  i = l.modifiedData;
34856
34905
  const o = j0(i, t), d = i.parent ? t.get(i.parent) : null;
34857
34906
  if (d && d.type === n.DefinitionEntity) {
34858
- const T = d, D = Jt(T).filter(
34907
+ const T = d, R = Jt(T).filter(
34859
34908
  (O) => !O.interactive
34860
34909
  );
34861
- if (D.length) {
34862
- let O = D.length > 1 ? `The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${T.id}' because it extends or implements multiple '${n.BuiltInBaseEntity}' entities that are non-interactive ("${ne(
34863
- D.map(
34910
+ if (R.length) {
34911
+ let O = R.length > 1 ? `The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${T.id}' because it extends or implements multiple '${n.BuiltInBaseEntity}' entities that are non-interactive ("${ne(
34912
+ R.map(
34864
34913
  (V) => F(V, V.project)
34865
34914
  ),
34866
34915
  '", "',
34867
34916
  '" and "'
34868
34917
  )}").` : `The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${T.id}' because it extends or implements a '${n.BuiltInBaseEntity}' entity that is non-interactive ("${F(
34869
- D[0],
34870
- D[0].project
34918
+ R[0],
34919
+ R[0].project
34871
34920
  )}").`;
34872
34921
  O += `
34873
34922
  ${ln}`, s.push(
34874
34923
  new w({
34875
34924
  id: `${e.id}--${b.NonInteractiveEntityReferenced}`,
34876
34925
  code: b.NonInteractiveEntityReferenced,
34877
- severity: R.Error,
34926
+ severity: D.Error,
34878
34927
  message: O,
34879
34928
  issue: null
34880
34929
  })
@@ -34890,7 +34939,7 @@ ${ln}`, s.push(
34890
34939
  new w({
34891
34940
  id: `${i.id}--${L.MethodOverwritesOtherSiblingWithSameImplementation}`,
34892
34941
  code: L.MethodOverwritesOtherSiblingWithSameImplementation,
34893
- severity: R.Error,
34942
+ severity: D.Error,
34894
34943
  message: `The '${n.FunctionDeclaration}' with id "${i.id}" is trying to implement the '${n.ActionDescriptor}' with id "${i.implements}", but the parent definition-entity already has a ${n.FunctionDeclaration} with id '${O.id}' that implements the same base method.
34895
34944
  A ${n.FunctionDeclaration} that has a parent of type '${n.DefinitionEntity}' is considered a method of that entity, and cannot implement the same '${n.ActionDescriptor}' more than once.
34896
34945
  ${n.ActionDescriptor} entities inside a ${n.DefinitionEntity} are considered abstract methods that can be implemented by ${n.FunctionDeclaration} entities inside the same parent.
@@ -34905,7 +34954,7 @@ If you want to modify the existing implementation, you can update the existing m
34905
34954
  new w({
34906
34955
  id: `${i.id}--${b.InvalidImplementsReference}`,
34907
34956
  code: b.InvalidImplementsReference,
34908
- severity: R.Error,
34957
+ severity: D.Error,
34909
34958
  message: `The '${n.FunctionDeclaration}' with id "${i.id}" is trying to implement the '${n.ActionDescriptor}' with id "${i.implements}", but the parent definition-entity with id "${T.id}" does not have a action descriptor (abstract method) with that id.
34910
34959
  A ${n.FunctionDeclaration} that has a parent of type '${n.DefinitionEntity}' is considered a method of that entity, and if it implements a action-descriptor, it needs to be one of the parent's action descriptors.
34911
34960
  If you want to implement a new method, you can create a new 'function-declaration' inside the parent definition-entity. But note that often definition-entities already come the boiler plate for all the methods they need from the base entity they implement, which are often auto-generated when the parent definition-entity is first created.
@@ -34920,7 +34969,7 @@ If you want to modify the existing implementation, you can update the existing m
34920
34969
  new w({
34921
34970
  id: `${i.id}--${L.LoopBodyFunctionOverwrite}`,
34922
34971
  code: L.LoopBodyFunctionOverwrite,
34923
- severity: R.Error,
34972
+ severity: D.Error,
34924
34973
  message: `The '${n.FunctionDeclaration}' with id "${i.id}" is being added as the 'body' of the ${n.Loop} with id "${d.id}", but the loop already has a function-declaration body. A loop can only have one function-declaration body at a time. You can edit the existing body instead, but it will have to match the same base signature, otherwise the implementation will have a validation error.`,
34925
34974
  issue: null
34926
34975
  })
@@ -34931,7 +34980,7 @@ If you want to modify the existing implementation, you can update the existing m
34931
34980
  new w({
34932
34981
  id: `${e.id}--${b.BuiltInEntityParent}`,
34933
34982
  code: b.BuiltInEntityParent,
34934
- severity: R.Error,
34983
+ severity: D.Error,
34935
34984
  message: `The entity with id '${e.id}' and type '${e.type}', belongs to a built-in system entity "${F(
34936
34985
  h,
34937
34986
  t
@@ -34967,7 +35016,7 @@ If you want to modify the existing implementation, you can update the existing m
34967
35016
  new w({
34968
35017
  id: `${this.id}--${b.InvalidParentUpdate}`,
34969
35018
  code: b.InvalidParentUpdate,
34970
- severity: R.Error,
35019
+ severity: D.Error,
34971
35020
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
34972
35021
  This is likely an incorrect strategy because this is a globally declared '${this.type}' entity which can only have the root project as its parent.`,
34973
35022
  issue: null
@@ -34976,7 +35025,7 @@ This is likely an incorrect strategy because this is a globally declared '${this
34976
35025
  new w({
34977
35026
  id: `${this.id}--${b.InvalidParentUpdate}`,
34978
35027
  code: b.InvalidParentUpdate,
34979
- severity: R.Error,
35028
+ severity: D.Error,
34980
35029
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
34981
35030
  This is likely an incorrect strategy because this function declaration is a method, since it belongs to a '${this.parent.type}' entity, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.
34982
35031
  Please consider than any updates might affect the overlap with the signature of the parent entity's action descriptors.`,
@@ -35950,7 +35999,7 @@ function Y0(r) {
35950
35999
  id: r.id + "--" + G.InvalidPropertiesCombination,
35951
36000
  message: `Data type with id "${r.id}" has invalid properties combination. Only one of the following properties can be present at the time: 'entity', 'andChildrenGroup' or 'orChildrenGroup'`,
35952
36001
  issue: null,
35953
- severity: R.Error,
36002
+ severity: D.Error,
35954
36003
  code: G.InvalidPropertiesCombination,
35955
36004
  entity: r
35956
36005
  });
@@ -35983,7 +36032,7 @@ function n7(r, a) {
35983
36032
  new w({
35984
36033
  id: `${r.id}--${r.parent}--${b.SelfReference}`,
35985
36034
  code: b.SelfReference,
35986
- severity: R.Error,
36035
+ severity: D.Error,
35987
36036
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to itself at 'parent'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,
35988
36037
  issue: null
35989
36038
  })
@@ -35994,7 +36043,7 @@ function n7(r, a) {
35994
36043
  new w({
35995
36044
  id: `${r.id}--${r.parent}--${b.InvalidParentReference}`,
35996
36045
  code: b.InvalidParentReference,
35997
- severity: R.Error,
36046
+ severity: D.Error,
35998
36047
  message: `Entity of type "${r.type}" with id "${r.id}", has a parent reference that isn't pointing to an entity of type ${i}.`,
35999
36048
  issue: null
36000
36049
  })
@@ -36002,7 +36051,7 @@ function n7(r, a) {
36002
36051
  new w({
36003
36052
  id: `${r.id}--${r.parent}--${b.ReferencedEntityNotFound}`,
36004
36053
  code: b.ReferencedEntityNotFound,
36005
- severity: R.Error,
36054
+ severity: D.Error,
36006
36055
  message: `Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${r.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
36007
36056
  issue: null
36008
36057
  })
@@ -36013,7 +36062,7 @@ function n7(r, a) {
36013
36062
  new w({
36014
36063
  id: `${r.id}--${L.InvalidObjectStructure}`,
36015
36064
  code: L.InvalidObjectStructure,
36016
- severity: R.Error,
36065
+ severity: D.Error,
36017
36066
  message: `Entity of type "${r.type}" with id "${r.id}" is missing a 'parent' reference. The 'parent' of a 'data-type' entity must be a reference to an entity of type ${i}.`,
36018
36067
  issue: null
36019
36068
  })
@@ -36024,7 +36073,7 @@ function n7(r, a) {
36024
36073
  new w({
36025
36074
  id: `${r.id}--${r.entity}--${b.SelfReference}`,
36026
36075
  code: b.SelfReference,
36027
- severity: R.Error,
36076
+ severity: D.Error,
36028
36077
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to itself at 'entity'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,
36029
36078
  issue: null
36030
36079
  })
@@ -36039,7 +36088,7 @@ function n7(r, a) {
36039
36088
  new w({
36040
36089
  id: `${r.id}--${r.entity}--${b.InvalidImplementsReference}`,
36041
36090
  code: b.InvalidImplementsReference,
36042
- severity: R.Error,
36091
+ severity: D.Error,
36043
36092
  message: `Entity of type "${r.type}" with id "${r.id}", has an 'entity' reference that isn't pointing to an entity of type 'definition-entity', 'primitive-entity', 'action-descriptor' or 'built-in-base-entity'.`,
36044
36093
  issue: null
36045
36094
  })
@@ -36047,7 +36096,7 @@ function n7(r, a) {
36047
36096
  new w({
36048
36097
  id: `${r.id}--${r.entity}--${b.ReferencedEntityNotFound}`,
36049
36098
  code: b.ReferencedEntityNotFound,
36050
- severity: R.Error,
36099
+ severity: D.Error,
36051
36100
  message: `Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${r.entity}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
36052
36101
  issue: null
36053
36102
  })
@@ -36173,7 +36222,7 @@ const De = class De extends st {
36173
36222
  );
36174
36223
  if (T.length) {
36175
36224
  const E = T.length > 1 ? `entities with ids '${ne(
36176
- T.map((D) => D.id),
36225
+ T.map((R) => R.id),
36177
36226
  "', '",
36178
36227
  "' and '"
36179
36228
  )}'` : `entity with id '${T[0].id}'`;
@@ -36181,7 +36230,7 @@ const De = class De extends st {
36181
36230
  new w({
36182
36231
  id: `${e.id}--${b.NonInteractiveEntityReferenced}`,
36183
36232
  code: b.NonInteractiveEntityReferenced,
36184
- severity: R.Error,
36233
+ severity: D.Error,
36185
36234
  message: `The entity with id '${e.id}' and type '${e.type}', cannot reference 'definition-entity' with id '${i.entity}' at 'entity'. The entity extends or implements non-interactive built-in-base-entity ${E}.
36186
36235
  ${ln}`,
36187
36236
  issue: null
@@ -36196,7 +36245,7 @@ ${ln}`,
36196
36245
  new w({
36197
36246
  id: `${e.id}--${b.BuiltInEntityParent}`,
36198
36247
  code: b.BuiltInEntityParent,
36199
- severity: R.Error,
36248
+ severity: D.Error,
36200
36249
  message: `The entity with id '${e.id}' and type '${e.type}', belongs to a built-in system entity "${F(
36201
36250
  d,
36202
36251
  t
@@ -36216,7 +36265,7 @@ ${ln}`,
36216
36265
  new w({
36217
36266
  id: `${e.id}--${b.InvalidParentRelationType}`,
36218
36267
  code: b.InvalidParentRelationType,
36219
- severity: R.Error,
36268
+ severity: D.Error,
36220
36269
  message: `The entity with id '${e.id}' and type '${e.type}', cannot have a 'parentRelationType' property set of type '${h}'.
36221
36270
  The entitities of type '${ne(
36222
36271
  c,
@@ -36231,7 +36280,7 @@ The entitities of type '${ne(
36231
36280
  new w({
36232
36281
  id: `${e.id}--${b.NewEntityWouldOverriteExisting}`,
36233
36282
  code: b.NewEntityWouldOverriteExisting,
36234
- severity: R.Error,
36283
+ severity: D.Error,
36235
36284
  message: `The entity with id '${e.id}' and type '${e.type}', cannot be added as a child to the entity with id '${i.parent}' and type '${h}', because it already has a 'data-type' child with id '${T}'.
36236
36285
  The entitities of type '${ne(
36237
36286
  c,
@@ -36252,7 +36301,7 @@ Alternatively you can update the entity with 'update' action. Or replace it by f
36252
36301
  new w({
36253
36302
  id: `${e.id}--${b.InvalidParentRelationType}`,
36254
36303
  code: b.InvalidParentRelationType,
36255
- severity: R.Error,
36304
+ severity: D.Error,
36256
36305
  message: `The entity with id '${e.id}' and type '${e.type}', must have a 'parentRelationType' property set to either 'or-data-type-group' or 'and-data-type-group' when being added as a child to an entity of type 'data-type'.`,
36257
36306
  issue: null
36258
36307
  })
@@ -37028,7 +37077,7 @@ Alternatively you can update the entity with 'update' action. Or replace it by f
37028
37077
  "clone-entity"
37029
37078
  )
37030
37079
  ), t = null, i = null, s = !0) {
37031
- var E, D, O;
37080
+ var E, R, O;
37032
37081
  let l = yt(t, this), o = t || this.parent;
37033
37082
  const u = {
37034
37083
  id: i || y.UUID.uuid(),
@@ -37065,7 +37114,7 @@ Alternatively you can update the entity with 'update' action. Or replace it by f
37065
37114
  // parentIdPrefix + '-and-group-data-type-' + index + '-id',
37066
37115
  s
37067
37116
  )
37068
- ), T = (D = this.orChildrenGroup) == null ? void 0 : D.map(
37117
+ ), T = (R = this.orChildrenGroup) == null ? void 0 : R.map(
37069
37118
  (V) => V.clone(
37070
37119
  e,
37071
37120
  h,
@@ -37335,7 +37384,7 @@ function K0(r) {
37335
37384
  r.project
37336
37385
  )}" with id "${r.id}".`,
37337
37386
  issue: null,
37338
- severity: R.Error,
37387
+ severity: D.Error,
37339
37388
  code: G.PropertyImplementsNonAbstact,
37340
37389
  entity: r
37341
37390
  });
@@ -37520,7 +37569,7 @@ All built-in 'action-descriptor' entity ids are:
37520
37569
  new w({
37521
37570
  id: `${i.id}--${b.InvalidReference}`,
37522
37571
  code: b.InvalidReference,
37523
- severity: R.Error,
37572
+ severity: D.Error,
37524
37573
  message: `Entity of type "${n.Operation}" with id "${i.id}", has an invalid reference at the 'declaration' property. The 'declaration' property must be a valid reference to an 'action-descriptor' entity.
37525
37574
  References can either be an ID string or an object with exacly four properties: 'id', 'entityId', 'entityType', 'type'.${d}`,
37526
37575
  issue: null
@@ -37538,7 +37587,7 @@ References can either be an ID string or an object with exacly four properties:
37538
37587
  new w({
37539
37588
  id: `${this.id}--${b.InvalidParentUpdate}`,
37540
37589
  code: b.InvalidParentUpdate,
37541
- severity: R.Error,
37590
+ severity: D.Error,
37542
37591
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
37543
37592
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
37544
37593
  You shouldn't have to manually update a 'parent' property. The equivalent result is to change its callers, the value writters of its inputs, or the value readers of its outputs.`,
@@ -37810,7 +37859,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
37810
37859
  removed: T
37811
37860
  } = this.syncMissingFixedOutputs(e), {
37812
37861
  updated: E,
37813
- added: D,
37862
+ added: R,
37814
37863
  removed: O
37815
37864
  } = this.declaration.syncOperationInstance(this, e);
37816
37865
  return t.push(
@@ -38585,7 +38634,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
38585
38634
  "clone-entity"
38586
38635
  )
38587
38636
  ), t = null, i = null, s = !0) {
38588
- var D, O;
38637
+ var R, O;
38589
38638
  let l = yt(t, this);
38590
38639
  const o = this.toJSON(), d = i || y.UUID.uuid();
38591
38640
  o.inputs = [];
@@ -38596,7 +38645,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
38596
38645
  l
38597
38646
  );
38598
38647
  t ? c.setParent(t, null) : c.setParent(this.parent, null), s && c.subscribe(), c.initChildren(e), e == null || e.add(c, I.Added);
38599
- const T = (D = this.inputs) == null ? void 0 : D.map(
38648
+ const T = (R = this.inputs) == null ? void 0 : R.map(
38600
38649
  (V, M) => V.clone(
38601
38650
  e,
38602
38651
  c,
@@ -38709,8 +38758,8 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
38709
38758
  )
38710
38759
  );
38711
38760
  this.inputs.sort((c, T) => c.index - T.index), o.forEach((c) => {
38712
- this.inputs.forEach((D) => {
38713
- D.index >= c.index && D.metaSync({ index: D.index + 1 }, e);
38761
+ this.inputs.forEach((R) => {
38762
+ R.index >= c.index && R.metaSync({ index: R.index + 1 }, e);
38714
38763
  });
38715
38764
  const T = {
38716
38765
  id: y.UUID.uuid(),
@@ -38769,8 +38818,8 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
38769
38818
  )
38770
38819
  );
38771
38820
  this.outputs.sort((c, T) => c.index - T.index), o.forEach((c) => {
38772
- this.outputs.forEach((D) => {
38773
- D.index >= c.index && D.index++;
38821
+ this.outputs.forEach((R) => {
38822
+ R.index >= c.index && R.index++;
38774
38823
  });
38775
38824
  const T = {
38776
38825
  id: y.UUID.uuid(),
@@ -38991,7 +39040,7 @@ const VW = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
38991
39040
  new w({
38992
39041
  id: `${e.id}--${L.InvalidObjectStructure}`,
38993
39042
  code: L.InvalidObjectStructure,
38994
- severity: R.Error,
39043
+ severity: D.Error,
38995
39044
  message: `Entity of type '${e.type}' with id '${e.id}' is missing the 'implements' property. This property is required for a '${e.type}' entity and must point to one of the built-in action descriptors reserved for 'global-event' entities.
38996
39045
  ${ml(
38997
39046
  t
@@ -39006,7 +39055,7 @@ ${ml(
39006
39055
  new w({
39007
39056
  id: `${e.id}--${b.ReferencedEntityNotFound}`,
39008
39057
  code: b.ReferencedEntityNotFound,
39009
- severity: R.Error,
39058
+ severity: D.Error,
39010
39059
  message: `Entity of type '${e.type}' with id '${e.id}' has an 'implements' property that isn't found in the project. The 'implements' property must point to one of the built-in action descriptors reserved for 'global-event' entities.
39011
39060
  ${ml(
39012
39061
  t
@@ -39021,7 +39070,7 @@ ${ml(
39021
39070
  new w({
39022
39071
  id: `${e.id}--${b.InvalidImplementsReference}`,
39023
39072
  code: b.InvalidImplementsReference,
39024
- severity: R.Error,
39073
+ severity: D.Error,
39025
39074
  message: `Entity of type '${e.type}' with id '${e.id}' has an 'implements' property that isn't pointing to an action descriptor reserved for 'global-event' entities.
39026
39075
  ${ml(
39027
39076
  t
@@ -39037,7 +39086,7 @@ ${ml(
39037
39086
  new w({
39038
39087
  id: `${e.id}--${b.InvalidImplementsReference}`,
39039
39088
  code: b.InvalidImplementsReference,
39040
- severity: R.Error,
39089
+ severity: D.Error,
39041
39090
  message: `Entity of type '${e.type}' with id '${e.id}' has an 'implements' property that points to an action descriptor that is already implemented by another global event with id '${u.id}' in the project. Each global event must implement a unique action descriptor.
39042
39091
  You can attach new logic to the existing 'global-event' but creating a new callable entity that gets called by it.`,
39043
39092
  issue: null
@@ -39061,7 +39110,7 @@ You can attach new logic to the existing 'global-event' but creating a new calla
39061
39110
  new w({
39062
39111
  id: `${this.id}--${b.InvalidParentUpdate}`,
39063
39112
  code: b.InvalidParentUpdate,
39064
- severity: R.Error,
39113
+ severity: D.Error,
39065
39114
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on an '${this.type}', must be the root project as it is a globally declared entity.`,
39066
39115
  issue: null
39067
39116
  })
@@ -40028,7 +40077,7 @@ const $e = class $e extends st {
40028
40077
  new w({
40029
40078
  id: `${this.id}--${b.InvalidParentUpdate}`,
40030
40079
  code: b.InvalidParentUpdate,
40031
- severity: R.Error,
40080
+ severity: D.Error,
40032
40081
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
40033
40082
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
40034
40083
  You shouldn't have to manually update a 'parent' property.
@@ -40807,7 +40856,7 @@ Specifically for break statements the parent needs to always be the 'loop' entit
40807
40856
  );
40808
40857
  t ? c.setParent(t, null) : c.setParent(this.parent, null), s && c.subscribe(), c.initChildren(e), e == null || e.add(c, I.Added);
40809
40858
  const T = (E = this.outputs) == null ? void 0 : E.map(
40810
- (D, O) => D.clone(
40859
+ (R, O) => R.clone(
40811
40860
  e,
40812
40861
  c,
40813
40862
  h + "-return-declaration-" + O + "-id",
@@ -41013,7 +41062,7 @@ ${ln}`, s.push(
41013
41062
  new w({
41014
41063
  id: `${e.id}--${b.NonInteractiveEntityReferenced}`,
41015
41064
  code: b.NonInteractiveEntityReferenced,
41016
- severity: R.Error,
41065
+ severity: D.Error,
41017
41066
  message: c,
41018
41067
  issue: null
41019
41068
  })
@@ -41025,7 +41074,7 @@ ${ln}`, s.push(
41025
41074
  new w({
41026
41075
  id: `${e.id}--${b.NewEntityWouldOverriteExisting}`,
41027
41076
  code: b.NewEntityWouldOverriteExisting,
41028
- severity: R.Error,
41077
+ severity: D.Error,
41029
41078
  message: `The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${d.id}' because it already has an 'entity' child. Data type entities can only have one 'entity' as children.
41030
41079
  You can inspect the existing 'entity' field with the 'describe_entity' action. Like so:
41031
41080
  ${Ki(
@@ -41111,7 +41160,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
41111
41160
  new w({
41112
41161
  id: `${this.id}--${b.InvalidParentUpdate}`,
41113
41162
  code: b.InvalidParentUpdate,
41114
- severity: R.Error,
41163
+ severity: D.Error,
41115
41164
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
41116
41165
  This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`,
41117
41166
  issue: null
@@ -41754,7 +41803,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
41754
41803
  ), o = [];
41755
41804
  if (this.outputs.length) {
41756
41805
  const u = this.outputs.map(
41757
- (E, D) => {
41806
+ (E, R) => {
41758
41807
  var V;
41759
41808
  const O = {
41760
41809
  id: y.UUID.uuid(),
@@ -41780,7 +41829,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
41780
41829
  defaultValue: null,
41781
41830
  implements: E.toJSON(),
41782
41831
  isError: !1,
41783
- index: D,
41832
+ index: R,
41784
41833
  dataType: ((V = E.dataType) == null ? void 0 : V.toJSONClone()) || null,
41785
41834
  parent: O
41786
41835
  };
@@ -41895,13 +41944,13 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
41895
41944
  index: c,
41896
41945
  dataType: null,
41897
41946
  parent: T
41898
- }, D = P(
41947
+ }, R = P(
41899
41948
  E,
41900
41949
  this.project
41901
41950
  );
41902
- D.setParent(u, e), D.initChildren(e), e == null || e.add(D, I.Added), D.hydrateAncestors(), D.addSelfToProject(e);
41903
- const O = ((V = h.dataType) == null ? void 0 : V.clone(e, D)) || null;
41904
- O && (e == null || e.add(O, I.Added)), D.setDataType(O);
41951
+ R.setParent(u, e), R.initChildren(e), e == null || e.add(R, I.Added), R.hydrateAncestors(), R.addSelfToProject(e);
41952
+ const O = ((V = h.dataType) == null ? void 0 : V.clone(e, R)) || null;
41953
+ O && (e == null || e.add(O, I.Added)), R.setDataType(O);
41905
41954
  }), this.outputs.length) {
41906
41955
  const h = y.UUID.uuid(), c = y.UUID.uuid(), T = {
41907
41956
  id: y.UUID.uuid(),
@@ -41916,7 +41965,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
41916
41965
  version: o,
41917
41966
  entityType: n.GlobalEvent,
41918
41967
  entityId: l
41919
- }, D = {
41968
+ }, R = {
41920
41969
  id: h,
41921
41970
  version: c,
41922
41971
  createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
@@ -41933,7 +41982,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
41933
41982
  x: 0,
41934
41983
  y: 0
41935
41984
  }, O = P(
41936
- D,
41985
+ R,
41937
41986
  this.project
41938
41987
  );
41939
41988
  O.setParent(u, e), O.initChildren(e), e == null || e.add(O, I.Added), O.hydrateAncestors(), O.addSelfToProject(e), this.outputs.map((V, M) => {
@@ -42033,15 +42082,15 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
42033
42082
  index: c,
42034
42083
  dataType: null,
42035
42084
  parent: T
42036
- }, D = P(
42085
+ }, R = P(
42037
42086
  E,
42038
42087
  this.project
42039
42088
  );
42040
- D.setParent(u, e), D.initChildren(e), e == null || e.add(D, I.Added), D.hydrateAncestors(), D.addSelfToProject(e);
42041
- const O = ((M = h.dataType) == null ? void 0 : M.clone(e, D)) || null;
42042
- O && (e == null || e.add(O, I.Added)), D.setDataType(O);
42043
- const V = ((x = h.defaultValue) == null ? void 0 : x.clone(e, D)) || null;
42044
- V && (e == null || e.add(V, I.Added)), D.setDataType(O);
42089
+ R.setParent(u, e), R.initChildren(e), e == null || e.add(R, I.Added), R.hydrateAncestors(), R.addSelfToProject(e);
42090
+ const O = ((M = h.dataType) == null ? void 0 : M.clone(e, R)) || null;
42091
+ O && (e == null || e.add(O, I.Added)), R.setDataType(O);
42092
+ const V = ((x = h.defaultValue) == null ? void 0 : x.clone(e, R)) || null;
42093
+ V && (e == null || e.add(V, I.Added)), R.setDataType(O);
42045
42094
  }), this.outputs.length) {
42046
42095
  const h = y.UUID.uuid(), c = y.UUID.uuid(), T = {
42047
42096
  id: y.UUID.uuid(),
@@ -42056,7 +42105,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
42056
42105
  version: o,
42057
42106
  entityType: n.FunctionDeclaration,
42058
42107
  entityId: l
42059
- }, D = {
42108
+ }, R = {
42060
42109
  id: h,
42061
42110
  version: c,
42062
42111
  createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
@@ -42073,7 +42122,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
42073
42122
  x: 0,
42074
42123
  y: 0
42075
42124
  }, O = P(
42076
- D,
42125
+ R,
42077
42126
  this.project
42078
42127
  );
42079
42128
  O.hydrateAncestors(), O.setParent(u, e), O.addSelfToProject(e), e == null || e.add(O, I.Added), O.initChildren(e);
@@ -42251,7 +42300,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
42251
42300
  )
42252
42301
  );
42253
42302
  T.inputs = E;
42254
- const D = (V = this.outputs) == null ? void 0 : V.map(
42303
+ const R = (V = this.outputs) == null ? void 0 : V.map(
42255
42304
  (M, x) => M.clone(
42256
42305
  e,
42257
42306
  T,
@@ -42259,7 +42308,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
42259
42308
  s
42260
42309
  )
42261
42310
  );
42262
- return T.outputs = D, this.error && (T.error = this.error.clone(
42311
+ return T.outputs = R, this.error && (T.error = this.error.clone(
42263
42312
  e,
42264
42313
  T,
42265
42314
  c + "-error-action-descriptor-id",
@@ -42526,7 +42575,7 @@ const oe = class oe extends st {
42526
42575
  new w({
42527
42576
  id: `${e.id}--${b.InvalidImplementsReference}`,
42528
42577
  code: b.InvalidImplementsReference,
42529
- severity: R.Error,
42578
+ severity: D.Error,
42530
42579
  message: `Entity of type '${e.type}' with id '${e.id}' has an 'declaration' property that isn't pointing to an action descriptor reserved for '${n.Condition}' entities.
42531
42580
  ${vl(t)}`,
42532
42581
  issue: null
@@ -42535,7 +42584,7 @@ ${vl(t)}`,
42535
42584
  new w({
42536
42585
  id: `${e.id}--${b.ReferencedEntityNotFound}`,
42537
42586
  code: b.ReferencedEntityNotFound,
42538
- severity: R.Error,
42587
+ severity: D.Error,
42539
42588
  message: `Entity of type '${e.type}' with id '${e.id}' has an 'declaration' property that isn't found in the project. The 'declaration' property must point to one of the built-in action descriptors reserved for '${n.Condition}' entities.
42540
42589
  ${vl(t)}`,
42541
42590
  issue: null
@@ -42544,7 +42593,7 @@ ${vl(t)}`,
42544
42593
  new w({
42545
42594
  id: `${e.id}--${L.InvalidObjectStructure}`,
42546
42595
  code: L.InvalidObjectStructure,
42547
- severity: R.Error,
42596
+ severity: D.Error,
42548
42597
  message: `Entity of type '${e.type}' with id '${e.id}' is missing the 'declaration' property. This property is required for a '${e.type}' entity and must point to one of the built-in action descriptors reserved for '${n.Condition}' entities.
42549
42598
  ${vl(t)}`,
42550
42599
  issue: null
@@ -42610,7 +42659,7 @@ ${vl(t)}`,
42610
42659
  new w({
42611
42660
  id: `${this.id}--${b.InvalidParentUpdate}`,
42612
42661
  code: b.InvalidParentUpdate,
42613
- severity: R.Error,
42662
+ severity: D.Error,
42614
42663
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
42615
42664
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
42616
42665
  You shouldn't have to manually update a 'parent' property. The equivalent result is to change its callers, the value writters of its inputs, or the value readers of its outputs.`,
@@ -43650,7 +43699,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
43650
43699
  "clone-entity"
43651
43700
  )
43652
43701
  ), t = null, i = null, s = !0) {
43653
- var D, O;
43702
+ var R, O;
43654
43703
  let l = yt(t, this);
43655
43704
  const o = this.toJSON(), d = i || y.UUID.uuid();
43656
43705
  o.inputs = [];
@@ -43661,7 +43710,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
43661
43710
  l
43662
43711
  );
43663
43712
  t ? c.setParent(t, null) : c.setParent(this.parent, null), s && c.subscribe(), c.initChildren(e), e == null || e.add(c, I.Added);
43664
- const T = (D = this.inputs) == null ? void 0 : D.map(
43713
+ const T = (R = this.inputs) == null ? void 0 : R.map(
43665
43714
  (V, M) => V.clone(
43666
43715
  e,
43667
43716
  c,
@@ -43933,9 +43982,9 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
43933
43982
  const {
43934
43983
  updated: T,
43935
43984
  added: E,
43936
- removed: D
43985
+ removed: R
43937
43986
  } = this.removeExtraBodyArgumentDeclarations(e);
43938
- return t.push(...T), i.push(...E), s.push(...D), e == null || e.attemptAutoclose("sync-body-arguments-declarations", this.id), {
43987
+ return t.push(...T), i.push(...E), s.push(...R), e == null || e.attemptAutoclose("sync-body-arguments-declarations", this.id), {
43939
43988
  updated: p(t),
43940
43989
  added: p(i),
43941
43990
  removed: p(s),
@@ -44101,10 +44150,10 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
44101
44150
  return o.forEach((h) => {
44102
44151
  var E;
44103
44152
  let T = d.find(
44104
- (D) => {
44153
+ (R) => {
44105
44154
  var O, V;
44106
- return ((O = D.declaration) == null ? void 0 : O.id) === h.id && wi(
44107
- (V = D.declaration) == null ? void 0 : V.dataType,
44155
+ return ((O = R.declaration) == null ? void 0 : O.id) === h.id && wi(
44156
+ (V = R.declaration) == null ? void 0 : V.dataType,
44108
44157
  h.dataType
44109
44158
  );
44110
44159
  }
@@ -44112,7 +44161,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
44112
44161
  if (T)
44113
44162
  ((E = T.declaration) == null ? void 0 : E.id) !== h.id && (T.setDeclaration(h), t.push(T));
44114
44163
  else {
44115
- const D = {
44164
+ const R = {
44116
44165
  id: y.UUID.uuid(),
44117
44166
  version: y.UUID.uuid(),
44118
44167
  createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
@@ -44126,7 +44175,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
44126
44175
  writesValues: [],
44127
44176
  parent: this.toReference()
44128
44177
  }, O = P(
44129
- D,
44178
+ R,
44130
44179
  this.project
44131
44180
  );
44132
44181
  O.setParent(this, e), O.initChildren(e), e == null || e.add(O, I.Added), O.addSelfToProject(e), i.push(O), T = O;
@@ -44315,7 +44364,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
44315
44364
  "create-current-value-input-based-on-input-map"
44316
44365
  )
44317
44366
  )) {
44318
- var h, c, T, E, D;
44367
+ var h, c, T, E, R;
44319
44368
  const t = [], i = [], s = [], l = [];
44320
44369
  switch (this.declaration.id) {
44321
44370
  case ee.List: {
@@ -44699,7 +44748,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
44699
44748
  const Z = this.project.getBuiltIn(
44700
44749
  g["primitive-entity"].string.id
44701
44750
  );
44702
- ((D = $.entity) == null ? void 0 : D.id) !== Z.id && ($.setEntity(Z), t.push($));
44751
+ ((R = $.entity) == null ? void 0 : R.id) !== Z.id && ($.setEntity(Z), t.push($));
44703
44752
  } else {
44704
44753
  const Z = {
44705
44754
  id: y.UUID.uuid(),
@@ -45153,10 +45202,10 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
45153
45202
  t.push(...h), i.push(...c), s.push(...T);
45154
45203
  const {
45155
45204
  updated: E,
45156
- added: D,
45205
+ added: R,
45157
45206
  removed: O
45158
45207
  } = this.syncTerminationStatements(e);
45159
- t.push(...E), i.push(...D), s.push(...O);
45208
+ t.push(...E), i.push(...R), s.push(...O);
45160
45209
  const {
45161
45210
  updated: V,
45162
45211
  added: M,
@@ -45407,7 +45456,7 @@ const Ge = class Ge extends st {
45407
45456
  new w({
45408
45457
  id: `${e.id}--${b.InvalidImplementsReference}`,
45409
45458
  code: b.InvalidImplementsReference,
45410
- severity: R.Error,
45459
+ severity: D.Error,
45411
45460
  message: `Entity of type '${e.type}' with id '${e.id}' has an 'declaration' property that isn't pointing to an action descriptor reserved for '${n.Condition}' entities.
45412
45461
  ${Tl(t)}`,
45413
45462
  issue: null
@@ -45416,7 +45465,7 @@ ${Tl(t)}`,
45416
45465
  new w({
45417
45466
  id: `${e.id}--${b.ReferencedEntityNotFound}`,
45418
45467
  code: b.ReferencedEntityNotFound,
45419
- severity: R.Error,
45468
+ severity: D.Error,
45420
45469
  message: `Entity of type '${e.type}' with id '${e.id}' has an 'declaration' property that isn't found in the project. The 'declaration' property must point to one of the built-in action descriptors reserved for '${n.Condition}' entities.
45421
45470
  ${Tl(t)}`,
45422
45471
  issue: null
@@ -45425,7 +45474,7 @@ ${Tl(t)}`,
45425
45474
  new w({
45426
45475
  id: `${e.id}--${L.InvalidObjectStructure}`,
45427
45476
  code: L.InvalidObjectStructure,
45428
- severity: R.Error,
45477
+ severity: D.Error,
45429
45478
  message: `Entity of type '${e.type}' with id '${e.id}' is missing the 'declaration' property. This property is required for a '${e.type}' entity and must point to one of the built-in action descriptors reserved for '${n.Condition}' entities.
45430
45479
  ${Tl(t)}`,
45431
45480
  issue: null
@@ -45441,7 +45490,7 @@ ${Tl(t)}`,
45441
45490
  new w({
45442
45491
  id: `${this.id}--${b.InvalidParentUpdate}`,
45443
45492
  code: b.InvalidParentUpdate,
45444
- severity: R.Error,
45493
+ severity: D.Error,
45445
45494
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
45446
45495
  If an entity is called by another, they must be in the same scope, which means they have the same parent.`,
45447
45496
  issue: null
@@ -46340,7 +46389,7 @@ If an entity is called by another, they must be in the same scope, which means t
46340
46389
  );
46341
46390
  t ? c.setParent(t, null) : c.setParent(this.parent, null), s && c.subscribe(), c.initChildren(e), e == null || e.add(c, I.Added);
46342
46391
  const T = (E = this.inputs) == null ? void 0 : E.map(
46343
- (D, O) => D.clone(
46392
+ (R, O) => R.clone(
46344
46393
  e,
46345
46394
  c,
46346
46395
  h + "-input-map-" + O + "-id",
@@ -46398,8 +46447,8 @@ If an entity is called by another, they must be in the same scope, which means t
46398
46447
  )
46399
46448
  );
46400
46449
  this.inputs.sort((c, T) => c.index - T.index), o.forEach((c) => {
46401
- this.inputs.forEach((D) => {
46402
- D.index >= c.index && D.metaSync({ index: D.index + 1 }, e);
46450
+ this.inputs.forEach((R) => {
46451
+ R.index >= c.index && R.metaSync({ index: R.index + 1 }, e);
46403
46452
  });
46404
46453
  const T = {
46405
46454
  id: y.UUID.uuid(),
@@ -46505,7 +46554,7 @@ function iv(r) {
46505
46554
  r.project
46506
46555
  )}" with id "${r.id}".`,
46507
46556
  issue: null,
46508
- severity: R.Error,
46557
+ severity: D.Error,
46509
46558
  code: G.PropertyImplementsNonAbstact,
46510
46559
  entity: r
46511
46560
  });
@@ -46519,7 +46568,7 @@ function iv(r) {
46519
46568
  r.project
46520
46569
  )}" with id "${r.id}".`,
46521
46570
  issue: null,
46522
- severity: R.Error,
46571
+ severity: D.Error,
46523
46572
  code: G.PropertyImplementsNonAbstact,
46524
46573
  entity: r
46525
46574
  });
@@ -46544,7 +46593,7 @@ function rv(r) {
46544
46593
  r.project
46545
46594
  )}" with id "${r.id}".`,
46546
46595
  issue: null,
46547
- severity: R.Error,
46596
+ severity: D.Error,
46548
46597
  code: G.PropertyImplementsNonAbstact,
46549
46598
  entity: r
46550
46599
  });
@@ -46638,14 +46687,14 @@ const Ve = class Ve extends st {
46638
46687
  const s = _(e.declaration), l = t.get(
46639
46688
  s
46640
46689
  ), o = e.calledByEntry.map((E) => {
46641
- const D = _(E);
46642
- return t.get(D);
46690
+ const R = _(E);
46691
+ return t.get(R);
46643
46692
  }), d = e.calledBySuccess.map((E) => {
46644
- const D = _(E);
46645
- return t.get(D);
46693
+ const R = _(E);
46694
+ return t.get(R);
46646
46695
  }), u = e.calledByError.map((E) => {
46647
- const D = _(E);
46648
- return t.get(D);
46696
+ const R = _(E);
46697
+ return t.get(R);
46649
46698
  });
46650
46699
  let h = null;
46651
46700
  if (e.readsValue) {
@@ -46744,7 +46793,7 @@ const Ve = class Ve extends st {
46744
46793
  new w({
46745
46794
  id: `${this.id}--${b.InvalidParentUpdate}`,
46746
46795
  code: b.InvalidParentUpdate,
46747
- severity: R.Error,
46796
+ severity: D.Error,
46748
46797
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
46749
46798
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
46750
46799
  Specifically for variables, their scope is also calculated from their value readers and value writters.
@@ -47067,9 +47116,9 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
47067
47116
  added: c,
47068
47117
  updated: T,
47069
47118
  removed: E,
47070
- affected: D
47119
+ affected: R
47071
47120
  } = this.generateUnusedOutputs(e);
47072
- i.push(...c), t.push(...T), s.push(...E), l.push(...D);
47121
+ i.push(...c), t.push(...T), s.push(...E), l.push(...R);
47073
47122
  const {
47074
47123
  added: O,
47075
47124
  updated: V,
@@ -47980,7 +48029,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
47980
48029
  "clone-entity"
47981
48030
  )
47982
48031
  ), t = null, i = null, s = !0) {
47983
- var D, O, V, M;
48032
+ var R, O, V, M;
47984
48033
  let l = yt(t, this);
47985
48034
  const o = this.toJSON(), d = i || y.UUID.uuid();
47986
48035
  o.inputs = [], o.id = d, o.version = y.UUID.uuid(), o.createdAt = (e == null ? void 0 : e.timestamp) || v().toISOString(), o.author = (e == null ? void 0 : e.author) || "1", o.previousVersion = null, o.deleted = !1;
@@ -47989,7 +48038,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
47989
48038
  l
47990
48039
  );
47991
48040
  t ? u.setParent(t, null) : u.setParent(this.parent, null), s && u.subscribe(), u.initChildren(e), e == null || e.add(u, I.Added);
47992
- const h = (D = this.defaultValue) == null ? void 0 : D.clone(
48041
+ const h = (R = this.defaultValue) == null ? void 0 : R.clone(
47993
48042
  e,
47994
48043
  u,
47995
48044
  y.UUID.uuid(),
@@ -48071,10 +48120,10 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
48071
48120
  );
48072
48121
  if (!E)
48073
48122
  return;
48074
- const D = xi(
48123
+ const R = xi(
48075
48124
  E
48076
48125
  );
48077
- c.setDataType(D), T.setDeclaration(c);
48126
+ c.setDataType(R), T.setDeclaration(c);
48078
48127
  }), o.filter((c) => !this.inputs.find(
48079
48128
  (T) => {
48080
48129
  var E;
@@ -48221,8 +48270,8 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
48221
48270
  ].includes(this.declaration.dataType.entity.type) && [
48222
48271
  ...this.declaration.dataType.entity.getAllInteractiveMethods()
48223
48272
  ].filter((u) => !this.internalCalls.find((c) => {
48224
- var E, D, O, V, M;
48225
- return (((E = c.declaration) == null ? void 0 : E.id) || ((O = (D = c.initialData) == null ? void 0 : D.declaration) == null ? void 0 : O.entityId) || ((M = (V = c.initialData) == null ? void 0 : V.declaration) == null ? void 0 : M.id)) === u.id;
48273
+ var E, R, O, V, M;
48274
+ return (((E = c.declaration) == null ? void 0 : E.id) || ((O = (R = c.initialData) == null ? void 0 : R.declaration) == null ? void 0 : O.entityId) || ((M = (V = c.initialData) == null ? void 0 : V.declaration) == null ? void 0 : M.id)) === u.id;
48226
48275
  })).map((u) => {
48227
48276
  const h = u.createInternalCall(e, this);
48228
48277
  return e == null || e.add(h, I.Added), h.suggestion = !0, this.addInternalCall(h), h;
@@ -48545,7 +48594,7 @@ const Ce = class Ce extends st {
48545
48594
  new w({
48546
48595
  id: `${this.id}--${b.InvalidParentUpdate}`,
48547
48596
  code: b.InvalidParentUpdate,
48548
- severity: R.Error,
48597
+ severity: D.Error,
48549
48598
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
48550
48599
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
48551
48600
  Specifically for variables, their scope is also calculated from their value readers and value writters.
@@ -48831,9 +48880,9 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
48831
48880
  added: c,
48832
48881
  updated: T,
48833
48882
  removed: E,
48834
- affected: D
48883
+ affected: R
48835
48884
  } = this.generateUnusedOutputs(e);
48836
- i.push(...c), t.push(...T), s.push(...E), l.push(...D);
48885
+ i.push(...c), t.push(...T), s.push(...E), l.push(...R);
48837
48886
  const {
48838
48887
  added: O,
48839
48888
  updated: V,
@@ -49377,11 +49426,11 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
49377
49426
  t.push(...h), i.push(...u), s.push(...c), l.push(...T);
49378
49427
  const {
49379
49428
  updated: E,
49380
- added: D,
49429
+ added: R,
49381
49430
  removed: O,
49382
49431
  affected: V
49383
49432
  } = this.generateUnusedOutputs(e);
49384
- return t.push(...D), i.push(...E), s.push(...O), l.push(...V), this.variableInstances.forEach((Z) => {
49433
+ return t.push(...R), i.push(...E), s.push(...O), l.push(...V), this.variableInstances.forEach((Z) => {
49385
49434
  const {
49386
49435
  updated: q,
49387
49436
  added: S,
@@ -49978,7 +50027,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
49978
50027
  )
49979
50028
  );
49980
50029
  u.outputs = E;
49981
- const D = (C = this.internalCalls) == null ? void 0 : C.map(
50030
+ const R = (C = this.internalCalls) == null ? void 0 : C.map(
49982
50031
  ($) => $.clone(
49983
50032
  e,
49984
50033
  u,
@@ -49987,7 +50036,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
49987
50036
  s
49988
50037
  )
49989
50038
  );
49990
- return u.internalCalls = D, e == null || e.attemptAutoclose("clone-entity", this.id), u;
50039
+ return u.internalCalls = R, e == null || e.attemptAutoclose("clone-entity", this.id), u;
49991
50040
  }
49992
50041
  addInternalCall(e) {
49993
50042
  return this.internalCalls.find((t) => t === e) || this.internalCalls.push(e), this;
@@ -50070,10 +50119,10 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
50070
50119
  );
50071
50120
  if (!E)
50072
50121
  return;
50073
- const D = xi(
50122
+ const R = xi(
50074
50123
  E
50075
50124
  );
50076
- c.setDataType(D), T.setDeclaration(c);
50125
+ c.setDataType(R), T.setDeclaration(c);
50077
50126
  }), o.filter((c) => !this.inputs.find(
50078
50127
  (T) => {
50079
50128
  var E;
@@ -50220,8 +50269,8 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
50220
50269
  ].includes(this.dataType.entity.type) && [
50221
50270
  ...this.dataType.entity.getAllInteractiveMethods()
50222
50271
  ].filter((u) => !this.internalCalls.find((c) => {
50223
- var E, D, O, V, M;
50224
- return (((E = c.declaration) == null ? void 0 : E.id) || ((O = (D = c.initialData) == null ? void 0 : D.declaration) == null ? void 0 : O.entityId) || ((M = (V = c.initialData) == null ? void 0 : V.declaration) == null ? void 0 : M.id)) === u.id;
50272
+ var E, R, O, V, M;
50273
+ return (((E = c.declaration) == null ? void 0 : E.id) || ((O = (R = c.initialData) == null ? void 0 : R.declaration) == null ? void 0 : O.entityId) || ((M = (V = c.initialData) == null ? void 0 : V.declaration) == null ? void 0 : M.id)) === u.id;
50225
50274
  })).map((u) => {
50226
50275
  const h = u.createInternalCall(e, this);
50227
50276
  return e == null || e.add(h, I.Added), h.suggestion = !0, this.addInternalCall(h), h;
@@ -50364,7 +50413,7 @@ function sv(r) {
50364
50413
  r.project
50365
50414
  )}" with id "${r.id}".`,
50366
50415
  issue: null,
50367
- severity: R.Error,
50416
+ severity: D.Error,
50368
50417
  code: G.PropertyImplementsNonAbstact,
50369
50418
  entity: r
50370
50419
  });
@@ -50531,7 +50580,7 @@ const Je = class Je extends st {
50531
50580
  new w({
50532
50581
  id: `${this.id}--${b.InvalidParentUpdate}`,
50533
50582
  code: b.InvalidParentUpdate,
50534
- severity: R.Error,
50583
+ severity: D.Error,
50535
50584
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
50536
50585
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
50537
50586
  You shouldn't have to manually update a 'parent' property. The equivalent result is to change its callers, the value writters of its inputs, or the value readers of its outputs.`,
@@ -51657,7 +51706,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
51657
51706
  )
51658
51707
  );
51659
51708
  c.outputsDeclarations = E;
51660
- const D = (x = this.inputs) == null ? void 0 : x.map(
51709
+ const R = (x = this.inputs) == null ? void 0 : x.map(
51661
51710
  ($, Z) => $.clone(
51662
51711
  e,
51663
51712
  c,
@@ -51665,7 +51714,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
51665
51714
  s
51666
51715
  )
51667
51716
  );
51668
- c.inputs = D;
51717
+ c.inputs = R;
51669
51718
  const O = (C = this.outputs) == null ? void 0 : C.map(
51670
51719
  ($, Z) => $.clone(
51671
51720
  e,
@@ -51920,7 +51969,7 @@ const LW = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
51920
51969
  new w({
51921
51970
  id: `${this.id}--${b.InvalidParentUpdate}`,
51922
51971
  code: b.InvalidParentUpdate,
51923
- severity: R.Error,
51972
+ severity: D.Error,
51924
51973
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on an installed project, must be the root project as it is a globally declared entity.`,
51925
51974
  issue: null
51926
51975
  })
@@ -52533,7 +52582,7 @@ const LW = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
52533
52582
  "clone-entity"
52534
52583
  )
52535
52584
  ), t = null, i = null, s = !0) {
52536
- var D, O;
52585
+ var R, O;
52537
52586
  let l = yt(t, this);
52538
52587
  const o = this.toJSON(), d = i || y.UUID.uuid();
52539
52588
  o.functions = [], o.events = [];
@@ -52544,7 +52593,7 @@ const LW = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
52544
52593
  l
52545
52594
  );
52546
52595
  t && c.setParent(t, null), s && c.subscribe(), c.initChildren(e), e == null || e.add(c, I.Added);
52547
- const T = (D = this.functions) == null ? void 0 : D.map(
52596
+ const T = (R = this.functions) == null ? void 0 : R.map(
52548
52597
  (V, M) => V.clone(
52549
52598
  e,
52550
52599
  c,
@@ -52624,7 +52673,7 @@ function lv(r) {
52624
52673
  de({
52625
52674
  id: `${r.id}--${L.InternalCallParentMissingDataType}`,
52626
52675
  code: L.InternalCallParentMissingDataType,
52627
- severity: R.Error,
52676
+ severity: D.Error,
52628
52677
  message: `Entity of type "${r.type}" with id "${r.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) its id "${r.declaration}".`,
52629
52678
  issue: null,
52630
52679
  entity: r
@@ -52639,7 +52688,7 @@ function lv(r) {
52639
52688
  de({
52640
52689
  id: `${r.id}--${L.InternalCallParentDeclarationEntityInvalidType}`,
52641
52690
  code: L.InternalCallParentDeclarationEntityInvalidType,
52642
- severity: R.Error,
52691
+ severity: D.Error,
52643
52692
  message: `Entity of type "${r.type}" with id "${r.id}", belongs to a variable whose data type 'entity' is not a definition entity, built-in base entity or primitive entity.
52644
52693
  This variable's data-type has an 'entity' field that references an entity with id '${t.id}' and of type '${t.type}'.`,
52645
52694
  issue: null,
@@ -52678,7 +52727,7 @@ This variable's data-type 'entity' is a non-interactive 'built-in-base-entity'.s
52678
52727
  de({
52679
52728
  id: `${r.id}--${L.InternalCallDeclarationIsNotFunctionDeclaration}`,
52680
52729
  code: L.InternalCallDeclarationIsNotFunctionDeclaration,
52681
- severity: R.Error,
52730
+ severity: D.Error,
52682
52731
  message: `Entity of type "${r.type}" with id "${r.id}", points to a 'declaration' that isn't a 'function-declaration' entity.
52683
52732
  The declaration of the internal-call must be a 'function-declaration' entity which exists as a method in the entity of the data-type of the parent variable.${l}`,
52684
52733
  issue: null,
@@ -52688,7 +52737,7 @@ The declaration of the internal-call must be a 'function-declaration' entity whi
52688
52737
  de({
52689
52738
  id: `${r.id}--${L.InternalCallDeclarationNotFoundInParentDatatypeEntity}`,
52690
52739
  code: L.InternalCallDeclarationNotFoundInParentDatatypeEntity,
52691
- severity: R.Error,
52740
+ severity: D.Error,
52692
52741
  message: `Entity of type "${r.type}" with id "${r.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) with id "${r.declaration}".${l}`,
52693
52742
  issue: null,
52694
52743
  entity: r
@@ -52771,14 +52820,14 @@ const _e = class _e extends st {
52771
52820
  const i = _(e.parent), s = t.get(i), l = _(e.declaration), o = t.get(
52772
52821
  l
52773
52822
  ), d = e.calledByEntry.map((E) => {
52774
- const D = _(E);
52775
- return t.get(D);
52823
+ const R = _(E);
52824
+ return t.get(R);
52776
52825
  }), u = e.calledBySuccess.map((E) => {
52777
- const D = _(E);
52778
- return t.get(D);
52826
+ const R = _(E);
52827
+ return t.get(R);
52779
52828
  }), h = e.calledByError.map((E) => {
52780
- const D = _(E);
52781
- return t.get(D);
52829
+ const R = _(E);
52830
+ return t.get(R);
52782
52831
  }), c = {
52783
52832
  id: e.id,
52784
52833
  version: y.UUID.uuid(),
@@ -52847,7 +52896,7 @@ const _e = class _e extends st {
52847
52896
  new w({
52848
52897
  id: `${i.id}--${L.InternalCallParentMissingDataType}`,
52849
52898
  code: L.InternalCallParentMissingDataType,
52850
- severity: R.Error,
52899
+ severity: D.Error,
52851
52900
  message: `Entity of type "${i.type}" with id "${i.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) its id "${i.declaration}".`,
52852
52901
  issue: null
52853
52902
  })
@@ -52861,7 +52910,7 @@ const _e = class _e extends st {
52861
52910
  new w({
52862
52911
  id: `${i.id}--${L.InternalCallParentDeclarationEntityInvalidType}`,
52863
52912
  code: L.InternalCallParentDeclarationEntityInvalidType,
52864
- severity: R.Error,
52913
+ severity: D.Error,
52865
52914
  message: `Entity of type "${i.type}" with id "${i.id}", belongs to a variable whose data type 'entity' is not a definition entity, built-in base entity or primitive entity.
52866
52915
  This variable's data-type has an 'entity' field that references an entity with id '${h.id}' and of type '${h.type}'.`,
52867
52916
  issue: null
@@ -52897,7 +52946,7 @@ ${ln}`);
52897
52946
  new w({
52898
52947
  id: `${i.id}--${b.ReferencedEntityNotFound}`,
52899
52948
  code: b.ReferencedEntityNotFound,
52900
- severity: R.Error,
52949
+ severity: D.Error,
52901
52950
  message: `Entity of type "${i.type}" with id "${i.id}", has a declaration method (function-declaration) that doesn't exist in the project.${T}`,
52902
52951
  issue: null
52903
52952
  })
@@ -52918,7 +52967,7 @@ ${ln}`);
52918
52967
  new w({
52919
52968
  id: `${i.id}--${L.InternalCallDeclarationIsNotFunctionDeclaration}`,
52920
52969
  code: L.InternalCallDeclarationIsNotFunctionDeclaration,
52921
- severity: R.Error,
52970
+ severity: D.Error,
52922
52971
  message: `Entity of type "${i.type}" with id "${i.id}", points to a 'declaration' that isn't a 'function-declaration' entity.
52923
52972
  The declaration of the internal-call must be a 'function-declaration' entity which exists as a method in the entity of the data-type of the parent variable.${T}`,
52924
52973
  issue: null
@@ -52927,7 +52976,7 @@ The declaration of the internal-call must be a 'function-declaration' entity whi
52927
52976
  new w({
52928
52977
  id: `${i.id}--${L.InternalCallDeclarationNotFoundInParentDatatypeEntity}`,
52929
52978
  code: L.InternalCallDeclarationNotFoundInParentDatatypeEntity,
52930
- severity: R.Error,
52979
+ severity: D.Error,
52931
52980
  message: `Entity of type "${i.type}" with id "${i.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) with id "${i.declaration}".${T}`,
52932
52981
  issue: null
52933
52982
  })
@@ -52938,7 +52987,7 @@ The declaration of the internal-call must be a 'function-declaration' entity whi
52938
52987
  new w({
52939
52988
  id: `${i.id}--${b.InvalidInternalCallParentRelation}`,
52940
52989
  code: b.InvalidInternalCallParentRelation,
52941
- severity: R.Error,
52990
+ severity: D.Error,
52942
52991
  message: `Entity of type "${i.type}" with id "${i.id}", can only be added to a variable declaration or variable instance parent if the parent doesn't already have inputs, outputs or other internal calls.
52943
52992
  If you need a new variable-instance for this, consider using the 'implement_variable_instance' generation action to create one and give it a caller.
52944
52993
  The you can attach the new internal-call to it.`,
@@ -52960,7 +53009,7 @@ The you can attach the new internal-call to it.`,
52960
53009
  new w({
52961
53010
  id: `${this.id}--${b.InvalidParentUpdate}`,
52962
53011
  code: b.InvalidParentUpdate,
52963
- severity: R.Error,
53012
+ severity: D.Error,
52964
53013
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
52965
53014
  This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`,
52966
53015
  issue: null
@@ -54006,7 +54055,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
54006
54055
  "clone-entity"
54007
54056
  )
54008
54057
  ), t = null, i = null, s = !0) {
54009
- var D, O;
54058
+ var R, O;
54010
54059
  let l = yt(t, this);
54011
54060
  const o = this.toJSON(), d = i || y.UUID.uuid();
54012
54061
  o.inputs = [];
@@ -54017,7 +54066,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
54017
54066
  l
54018
54067
  );
54019
54068
  t ? c.setParent(t, null) : c.setParent(this.parent, null), s && c.subscribe(), c.initChildren(e), e == null || e.add(c, I.Added);
54020
- const T = (D = this.inputs) == null ? void 0 : D.map(
54069
+ const T = (R = this.inputs) == null ? void 0 : R.map(
54021
54070
  (V, M) => V.clone(
54022
54071
  e,
54023
54072
  c,
@@ -54127,8 +54176,8 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
54127
54176
  )
54128
54177
  );
54129
54178
  this.inputs.sort((c, T) => c.index - T.index), o.forEach((c) => {
54130
- this.inputs.forEach((D) => {
54131
- D.index >= c.index && D.metaSync({ index: D.index + 1 }, e);
54179
+ this.inputs.forEach((R) => {
54180
+ R.index >= c.index && R.metaSync({ index: R.index + 1 }, e);
54132
54181
  });
54133
54182
  const T = {
54134
54183
  id: y.UUID.uuid(),
@@ -54198,7 +54247,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
54198
54247
  this.outputs.forEach((M) => {
54199
54248
  M.index >= T.index && M.index++;
54200
54249
  });
54201
- const D = o.includes(T.index) ? this.outputs.length - 1 + E : T.index, O = {
54250
+ const R = o.includes(T.index) ? this.outputs.length - 1 + E : T.index, O = {
54202
54251
  id: y.UUID.uuid(),
54203
54252
  version: y.UUID.uuid(),
54204
54253
  createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
@@ -54209,7 +54258,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
54209
54258
  declaration: T.toJSON(),
54210
54259
  defaultValue: null,
54211
54260
  writesValues: [],
54212
- index: D,
54261
+ index: R,
54213
54262
  parent: this.toReference()
54214
54263
  }, V = P(
54215
54264
  O,
@@ -54300,7 +54349,7 @@ function dv(r) {
54300
54349
  r.project
54301
54350
  )}" with id "${r.id}".`,
54302
54351
  issue: null,
54303
- severity: R.Error,
54352
+ severity: D.Error,
54304
54353
  code: G.PropertyImplementsNonAbstact,
54305
54354
  entity: r
54306
54355
  });
@@ -54442,7 +54491,7 @@ const Me = class Me extends st {
54442
54491
  new w({
54443
54492
  id: `${i.id}--${b.InvalidInputMapDeclaration}`,
54444
54493
  code: b.InvalidInputMapDeclaration,
54445
- severity: R.Error,
54494
+ severity: D.Error,
54446
54495
  message: `Entity of type '${n.InputMap}' with id '${i.id}' has a 'declaration' property pointing to an entity with type '${n.ArgumentDeclaration}' with id '${i.declaration}'.
54447
54496
  The parent entity of type '${o.type}' with id '${o.id}' is not compatible with this type of declaration.
54448
54497
  Only 'function-call', 'search' and 'internal-call' entities can have input-maps whose 'declaration' points to 'argument-declaration' entities.`,
@@ -54452,7 +54501,7 @@ Only 'function-call', 'search' and 'internal-call' entities can have input-maps
54452
54501
  new w({
54453
54502
  id: `${i.id}--${b.InvalidInputMapDeclaration}`,
54454
54503
  code: b.InvalidInputMapDeclaration,
54455
- severity: R.Error,
54504
+ severity: D.Error,
54456
54505
  message: `Entity of type '${n.InputMap}' with id '${i.id}' has a 'declaration' property pointing to an entity with type '${n.Property}' with id '${i.declaration}'.
54457
54506
  The parent entity of type '${o.type}' with id '${o.id}' is not compatible with this type of declaration.
54458
54507
  Only variables can have input-maps whose 'declaration' points to 'property' entities.`,
@@ -54464,7 +54513,7 @@ Only variables can have input-maps whose 'declaration' points to 'property' enti
54464
54513
  new w({
54465
54514
  id: `${i.id}--${b.InvalidInputMapDeclaration}`,
54466
54515
  code: b.InvalidInputMapDeclaration,
54467
- severity: R.Error,
54516
+ severity: D.Error,
54468
54517
  message: `Entity of type '${n.InputMap}' with id '${i.id}' has a 'declaration' property pointing to an entity with type '${n.ValueDescriptor}' with id '${i.declaration}'.
54469
54518
  The parent entity of type '${o.type}' with id '${o.id}' is not compatible with this type of declaration.
54470
54519
  Only 'condition', 'operation' and 'loop' entities can have input-maps whose 'declaration' points to 'value-descriptor' entities.`,
@@ -54474,7 +54523,7 @@ Only 'condition', 'operation' and 'loop' entities can have input-maps whose 'dec
54474
54523
  new w({
54475
54524
  id: `${i.id}--${b.InvalidInputMapDeclaration}`,
54476
54525
  code: b.InvalidInputMapDeclaration,
54477
- severity: R.Error,
54526
+ severity: D.Error,
54478
54527
  message: `Entity of type '${n.InputMap}' with id '${i.id}' must have a 'declaration' property pointing to a '${ne(
54479
54528
  [
54480
54529
  n.Property,
@@ -54492,7 +54541,7 @@ This is because a dynamically assembled object can have new properties added to
54492
54541
  new w({
54493
54542
  id: `${i.id}--${b.ReferencedEntityNotFound}`,
54494
54543
  code: b.ReferencedEntityNotFound,
54495
- severity: R.Error,
54544
+ severity: D.Error,
54496
54545
  message: `Entity of type '${n.InputMap}' with id '${i.id}' has a 'declaration' property that points to an entity with id '${i.declaration}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
54497
54546
  issue: null
54498
54547
  })
@@ -54500,7 +54549,7 @@ This is because a dynamically assembled object can have new properties added to
54500
54549
  new w({
54501
54550
  id: `${i.id}--${b.InvalidInputMapDeclaration}`,
54502
54551
  code: b.InvalidInputMapDeclaration,
54503
- severity: R.Error,
54552
+ severity: D.Error,
54504
54553
  message: `Entity of type '${n.InputMap}' with id '${i.id}' must have a 'declaration' property pointing to a 'argument-declaration' or 'property' entity.
54505
54554
  Only input-map entities for variables with an inferred data type are allowed to not have a declaration.
54506
54555
  This is because a dynamically assembled object can have new properties added to it as input-maps. Otherwise all input maps need to point to a declaration`,
@@ -54512,7 +54561,7 @@ This is because a dynamically assembled object can have new properties added to
54512
54561
  new w({
54513
54562
  id: `${i.id}--${b.InputOverwrite}`,
54514
54563
  code: b.InputOverwrite,
54515
- severity: R.Error,
54564
+ severity: D.Error,
54516
54565
  message: `Entity of type '${n.InputMap}' with id '${i.id}' cannot be added to the parent entity of type '${o.type}' with id '${o.id}'. The parent already has an input-map with id '${u.id}' that points to the same base ${d.type} as declaration.
54517
54566
  Any value reads can be done with that input-map instead.
54518
54567
  You can't edit input-map entities as they need to match their argument declarations, so you can only modify the 'readsValue' property so it reads the value from an external entity, or the 'defaultValue' so it has a hard-coded one.`,
@@ -54520,25 +54569,25 @@ You can't edit input-map entities as they need to match their argument declarati
54520
54569
  })
54521
54570
  );
54522
54571
  else if (tt.includes(o.type)) {
54523
- const E = $n(o).dataType, D = E == null ? void 0 : E.entity;
54524
- D && D.type === n.ActionDescriptor ? s.push(
54572
+ const E = $n(o).dataType, R = E == null ? void 0 : E.entity;
54573
+ R && R.type === n.ActionDescriptor ? s.push(
54525
54574
  new w({
54526
54575
  id: `${i.id}--${L.NoOverlapWithImplementedSignature}`,
54527
54576
  code: L.NoOverlapWithImplementedSignature,
54528
- severity: R.Error,
54577
+ severity: D.Error,
54529
54578
  message: `Entity of type '${n.InputMap}' with id '${i.id}' cannot be added to the parent entity of type '${o.type}' with id '${o.id}'. The data type of the 'variable-declaration' is a 'action-descriptor' entity.
54530
54579
  This means it can hold a function-call or operation as its value, to be executed programatically.
54531
54580
  Input maps can only be added to variables which hold an entity with properties.`,
54532
54581
  issue: null
54533
54582
  })
54534
- ) : D && !(E != null && E.inferred) && (D.properties.find((V) => V.id === d.id) || s.push(
54583
+ ) : R && !(E != null && E.inferred) && (R.properties.find((V) => V.id === d.id) || s.push(
54535
54584
  new w({
54536
54585
  id: `${i.id}--${L.NoOverlapWithImplementedSignature}`,
54537
54586
  code: L.NoOverlapWithImplementedSignature,
54538
- severity: R.Error,
54587
+ severity: D.Error,
54539
54588
  message: `Entity of type '${n.InputMap}' with id '${i.id}' cannot be added to the parent entity of type '${o.type}' with id '${o.id}'. The 'declaration' with '${d.id}' of the 'input-map' does not exist in the entity of the 'data-type'.
54540
54589
  The entity of the data-type has the following properties that can be reads as input maps, ids: '${ne(
54541
- D.properties.map(
54590
+ R.properties.map(
54542
54591
  (V) => V.id
54543
54592
  ),
54544
54593
  "', '",
@@ -54552,7 +54601,7 @@ The entity of the data-type has the following properties that can be reads as in
54552
54601
  ).includes(o.type)) {
54553
54602
  const T = wv(o), E = T.find(
54554
54603
  (O) => O.id === i.declaration
54555
- ), D = `The parent entity has the following argument declarations that can be referenced by input-maps, ids: '${ne(
54604
+ ), R = `The parent entity has the following argument declarations that can be referenced by input-maps, ids: '${ne(
54556
54605
  T.map((O) => O.id),
54557
54606
  "', '",
54558
54607
  "' and '"
@@ -54561,10 +54610,10 @@ The entity of the data-type has the following properties that can be reads as in
54561
54610
  new w({
54562
54611
  id: `${i.id}--${L.NoOverlapWithImplementedSignature}`,
54563
54612
  code: L.NoOverlapWithImplementedSignature,
54564
- severity: R.Error,
54613
+ severity: D.Error,
54565
54614
  message: `Entity of type '${n.InputMap}' with id '${i.id}' cannot be added to the parent entity of type '${o.type}' with id '${o.id}'. The parent entity does not have an 'argument-declaration' with id '${i.declaration}'.
54566
54615
  You can't add an input-map to an entity that doesn't have a matching 'argument-declaration'.
54567
- ${D}`,
54616
+ ${R}`,
54568
54617
  issue: null
54569
54618
  })
54570
54619
  );
@@ -54595,7 +54644,7 @@ ${D}`,
54595
54644
  new w({
54596
54645
  id: `${this.id}--${b.InvalidParentUpdate}`,
54597
54646
  code: b.InvalidParentUpdate,
54598
- severity: R.Error,
54647
+ severity: D.Error,
54599
54648
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
54600
54649
  This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`,
54601
54650
  issue: null
@@ -55192,7 +55241,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
55192
55241
  });
55193
55242
  }
55194
55243
  toJSONClone(e = J) {
55195
- var i, s, l, o, d, u, h, c, T, E, D;
55244
+ var i, s, l, o, d, u, h, c, T, E, R;
55196
55245
  let t;
55197
55246
  return (i = e.seenEntityMaps) != null && i.has(this.id) ? t = e.seenEntityMaps.get(this.id) : (t = e.newId || ht(this, this.project, e.uuidStrategy), e.seenEntityMaps && e.seenEntityMaps.set(this.id, t)), (s = e.seenEntities) != null && s.has(t) || (l = e.seenEntities) != null && l.has(this.id) ? this.toReference({ seenEntityMaps: e.seenEntityMaps }) : ((o = e.seenEntities) == null || o.add(t), (d = e.seenEntities) == null || d.add(this.id), {
55198
55247
  id: t,
@@ -55215,7 +55264,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
55215
55264
  ...e,
55216
55265
  newId: null
55217
55266
  })) || null,
55218
- readsValue: ((D = this.readsValue) == null ? void 0 : D.toReference({
55267
+ readsValue: ((R = this.readsValue) == null ? void 0 : R.toReference({
55219
55268
  seenEntityMaps: e.seenEntityMaps
55220
55269
  })) || null,
55221
55270
  parent: this.parent.toReference({
@@ -55458,7 +55507,7 @@ function uv(r) {
55458
55507
  r.project
55459
55508
  )}" with id "${r.id}".`,
55460
55509
  issue: null,
55461
- severity: R.Error,
55510
+ severity: D.Error,
55462
55511
  code: G.PropertyImplementsNonAbstact,
55463
55512
  entity: r
55464
55513
  });
@@ -55590,7 +55639,7 @@ const Be = class Be extends st {
55590
55639
  new w({
55591
55640
  id: `${i.id}--${b.OutputOverwrite}`,
55592
55641
  code: b.OutputOverwrite,
55593
- severity: R.Error,
55642
+ severity: D.Error,
55594
55643
  message: `Entity of type '${n.OutputMap}' with id '${i.id}' cannot be added to the parent entity of type '${o.type}' with id '${o.id}'. The parent already has an output-map with id '${u.id}' that points to the same base 'return-declaration'.
55595
55644
  Any value reads can be done with that output-map instead.
55596
55645
  You can't edit output-map entities as they need to match their return declarations, so you can only choose to read their outputted value if you need it.`,
@@ -55605,7 +55654,7 @@ You can't edit output-map entities as they need to match their return declaratio
55605
55654
  new w({
55606
55655
  id: `${i.id}--${L.NoOverlapWithImplementedSignature}`,
55607
55656
  code: L.NoOverlapWithImplementedSignature,
55608
- severity: R.Error,
55657
+ severity: D.Error,
55609
55658
  message: `Entity of type '${n.OutputMap}' with id '${i.id}' cannot be added to the parent entity of type '${o.type}' with id '${o.id}'. The data type of the 'variable-declaration' is a 'action-descriptor' entity.
55610
55659
  This means it can hold a function-call or operation as its value, to be executed programatically.
55611
55660
  Output maps can only be added to variables which hold an entity with properties.`,
@@ -55615,7 +55664,7 @@ Output maps can only be added to variables which hold an entity with properties.
55615
55664
  new w({
55616
55665
  id: `${i.id}--${L.NoOverlapWithImplementedSignature}`,
55617
55666
  code: L.NoOverlapWithImplementedSignature,
55618
- severity: R.Error,
55667
+ severity: D.Error,
55619
55668
  message: `Entity of type '${n.OutputMap}' with id '${i.id}' cannot be added to the parent entity of type '${o.type}' with id '${o.id}'. The 'declaration' with '${h.id}' of the 'output-map' does not exist in the entity of the 'data-type'.
55620
55669
  The entity of the data-type has the following properties that can be reads as output maps, ids: '${ne(
55621
55670
  (E.properties || []).map((O) => O.id),
@@ -55628,7 +55677,7 @@ The entity of the data-type has the following properties that can be reads as ou
55628
55677
  new w({
55629
55678
  id: `${i.id}--${L.NoOverlapWithImplementedSignature}`,
55630
55679
  code: L.NoOverlapWithImplementedSignature,
55631
- severity: R.Error,
55680
+ severity: D.Error,
55632
55681
  message: `Entity of type '${n.OutputMap}' with id '${i.id}' cannot be added to the parent entity of type '${o.type}' with id '${o.id}'. The data type of the 'variable-declaration' doesn't have an 'entity' set, so it cannot be determined if the output-map is reading a valid property of the data type entity.
55633
55682
  ${Jp}`,
55634
55683
  issue: null
@@ -55637,7 +55686,7 @@ ${Jp}`,
55637
55686
  new w({
55638
55687
  id: `${i.id}--${L.NoOverlapWithImplementedSignature}`,
55639
55688
  code: L.NoOverlapWithImplementedSignature,
55640
- severity: R.Error,
55689
+ severity: D.Error,
55641
55690
  message: `Entity of type '${n.OutputMap}' with id '${i.id}' cannot be added to the parent entity of type '${o.type}' with id '${o.id}'. The data type of the 'variable-declaration' is not set, so it cannot be determined if the output-map is reading a valid property of the data type entity.
55642
55691
  ${Jp}`,
55643
55692
  issue: null
@@ -55651,7 +55700,7 @@ ${Jp}`,
55651
55700
  new w({
55652
55701
  id: `${i.id}--${b.OutputOverwrite}`,
55653
55702
  code: b.OutputOverwrite,
55654
- severity: R.Error,
55703
+ severity: D.Error,
55655
55704
  message: `Entity of type '${n.OutputMap}' with id '${i.id}' cannot be added to the parent entity of type '${o.type}' with id '${o.id}'. The parent already has an output-map with id '${c.id}' that points to the same declaration.
55656
55705
  Any value reads can be done with that output-map instead.
55657
55706
  You can't edit output-map entities as they need to match their return declarations, so you can only choose to read their outputted value if you need it.`,
@@ -55679,7 +55728,7 @@ You can't edit output-map entities as they need to match their return declaratio
55679
55728
  new w({
55680
55729
  id: `${this.id}--${b.InvalidParentUpdate}`,
55681
55730
  code: b.InvalidParentUpdate,
55682
- severity: R.Error,
55731
+ severity: D.Error,
55683
55732
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
55684
55733
  This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`,
55685
55734
  issue: null
@@ -56280,7 +56329,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
56280
56329
  newId: null
56281
56330
  })) || null,
56282
56331
  writesValues: this.writesValues.map(
56283
- (D) => D.toJSONClone({
56332
+ (R) => R.toJSONClone({
56284
56333
  ...e,
56285
56334
  newId: null
56286
56335
  })
@@ -56524,7 +56573,7 @@ function pv(r) {
56524
56573
  r.project
56525
56574
  )}" with id "${r.id}".`,
56526
56575
  issue: null,
56527
- severity: R.Error,
56576
+ severity: D.Error,
56528
56577
  code: G.PropertyImplementsNonAbstact,
56529
56578
  entity: r
56530
56579
  });
@@ -56538,7 +56587,7 @@ function pv(r) {
56538
56587
  r.project
56539
56588
  )}" with id "${r.id}".`,
56540
56589
  issue: null,
56541
- severity: R.Error,
56590
+ severity: D.Error,
56542
56591
  code: G.PropertyImplementsNonAbstact,
56543
56592
  entity: r
56544
56593
  });
@@ -56685,7 +56734,7 @@ const Ne = class Ne extends st {
56685
56734
  )
56686
56735
  ), E = T.find(
56687
56736
  (V) => V.name === i.name
56688
- ), D = T.length ? `The parent entity already implements the following arguments: ${ne(
56737
+ ), R = T.length ? `The parent entity already implements the following arguments: ${ne(
56689
56738
  T.map(
56690
56739
  (V) => `'${V.id}' (${V.name})`
56691
56740
  ),
@@ -56702,10 +56751,10 @@ const Ne = class Ne extends st {
56702
56751
  new w({
56703
56752
  id: `${i.id}--${L.NoOverlapWithImplementedSignature}`,
56704
56753
  code: L.NoOverlapWithImplementedSignature,
56705
- severity: R.Error,
56754
+ severity: D.Error,
56706
56755
  message: `Entity of type '${n.ArgumentDeclaration}' with id '${i.id}' should not exist in a parent entity of type '${d.type}' with id '${d.id}' that implements a ${n.ActionDescriptor} with fixed arguments.
56707
56756
  Adding a new argument would make the implementation invalid. An argument with the same name already exists in the parent entity.
56708
- ${D}
56757
+ ${R}
56709
56758
  ${O}`,
56710
56759
  issue: null
56711
56760
  })
@@ -56713,10 +56762,10 @@ ${O}`,
56713
56762
  new w({
56714
56763
  id: `${i.id}--${L.NoOverlapWithImplementedSignature}`,
56715
56764
  code: L.NoOverlapWithImplementedSignature,
56716
- severity: R.Error,
56765
+ severity: D.Error,
56717
56766
  message: `Entity of type '${n.ArgumentDeclaration}' with id '${i.id}' should not exist in a parent entity of type '${d.type}' with id '${d.id}' that implements a ${n.ActionDescriptor} with fixed arguments.
56718
56767
  Adding a new argument would make the implementation invalid. There are no arguments in the descriptor with the same name.
56719
- ${D}
56768
+ ${R}
56720
56769
  ${O}`,
56721
56770
  issue: null
56722
56771
  })
@@ -56740,7 +56789,7 @@ ${O}`,
56740
56789
  new w({
56741
56790
  id: `${this.id}--${b.InvalidParentUpdate}`,
56742
56791
  code: b.InvalidParentUpdate,
56743
- severity: R.Error,
56792
+ severity: D.Error,
56744
56793
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
56745
56794
  This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`,
56746
56795
  issue: null
@@ -57595,7 +57644,7 @@ function v7(r, a) {
57595
57644
  new w({
57596
57645
  id: `${r.id}--${r.parent}--${b.NewEntityWouldOverriteExisting}`,
57597
57646
  code: b.NewEntityWouldOverriteExisting,
57598
- severity: R.Error,
57647
+ severity: D.Error,
57599
57648
  message: `Entity of type "${r.type}" with id "${r.id}", has a 'parent' of type 'data-type' which already has an existing default value entity with id "${s.entity.id}".
57600
57649
  Data types can only have one 'literal-value' entity as 'entity'.
57601
57650
  You can update the existing 'literal-value' with the 'update' action, for example, like so:
@@ -57624,7 +57673,7 @@ Or 'delete' and then 'post' actions to replace it.`,
57624
57673
  new w({
57625
57674
  id: `${r.id}--${r.parent}--${b.NewEntityWouldOverriteExisting}`,
57626
57675
  code: b.NewEntityWouldOverriteExisting,
57627
- severity: R.Error,
57676
+ severity: D.Error,
57628
57677
  message: `Entity of type "${r.type}" with id "${r.id}", has a 'parent' of type 'data-type' which already has an existing default value entity with id "${(t = s.defaultValue) == null ? void 0 : t.id}".
57629
57678
  Data types can only have one 'literal-value' entity as 'entity'.
57630
57679
  You can update the existing 'literal-value' with the 'update' action, for example, like so:
@@ -57644,7 +57693,7 @@ Or 'delete' and then 'post' actions to replace it.`,
57644
57693
  new w({
57645
57694
  id: `${r.id}--${r.parent}--${b.InvalidParentReference}`,
57646
57695
  code: b.InvalidParentReference,
57647
- severity: R.Error,
57696
+ severity: D.Error,
57648
57697
  message: `Entity of type "${r.type}" with id "${r.id}", has a parent reference that isn't pointing to an entity of type 'input-map' or 'data-type'.`,
57649
57698
  issue: null
57650
57699
  })
@@ -57652,7 +57701,7 @@ Or 'delete' and then 'post' actions to replace it.`,
57652
57701
  new w({
57653
57702
  id: `${r.id}--${r.parent}--${b.ReferencedEntityNotFound}`,
57654
57703
  code: b.ReferencedEntityNotFound,
57655
- severity: R.Error,
57704
+ severity: D.Error,
57656
57705
  message: `Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${r.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
57657
57706
  issue: null
57658
57707
  })
@@ -57662,7 +57711,7 @@ Or 'delete' and then 'post' actions to replace it.`,
57662
57711
  new w({
57663
57712
  id: `${r.id}--${L.InvalidObjectStructure}`,
57664
57713
  code: L.InvalidObjectStructure,
57665
- severity: R.Error,
57714
+ severity: D.Error,
57666
57715
  message: `Entity of type "${r.type}" with id "${r.id}" is missing a 'parent' reference. The 'parent' of a literal value entity must be a reference to an entity of type 'input-map' or 'data-type'.`,
57667
57716
  issue: null
57668
57717
  })
@@ -57672,7 +57721,7 @@ Or 'delete' and then 'post' actions to replace it.`,
57672
57721
  new w({
57673
57722
  id: `${r.id}--${L.InvalidObjectStructure}`,
57674
57723
  code: L.InvalidObjectStructure,
57675
- severity: R.Error,
57724
+ severity: D.Error,
57676
57725
  message: `Entity of type "${r.type}" with id "${r.id}" is missing a 'parent' reference. The 'parent' of a literal value entity must be a reference to an entity of type 'input-map' or 'data-type'.`,
57677
57726
  issue: null
57678
57727
  })
@@ -57692,7 +57741,7 @@ Or 'delete' and then 'post' actions to replace it.`,
57692
57741
  new w({
57693
57742
  id: `${r.id}--${d}--${b.InvalidImplementsReference}`,
57694
57743
  code: b.InvalidImplementsReference,
57695
- severity: R.Error,
57744
+ severity: D.Error,
57696
57745
  message: `Entity of type "${r.type}" with id "${r.id}", has an 'valueAsTypeSingle' reference that isn't pointing to an entity of type 'definition-entity', 'function-declaration' or 'operation'.`,
57697
57746
  issue: null
57698
57747
  })
@@ -57700,7 +57749,7 @@ Or 'delete' and then 'post' actions to replace it.`,
57700
57749
  new w({
57701
57750
  id: `${r.id}--${d}--${b.ReferencedEntityNotFound}`,
57702
57751
  code: b.ReferencedEntityNotFound,
57703
- severity: R.Error,
57752
+ severity: D.Error,
57704
57753
  message: `Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${d}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
57705
57754
  issue: null
57706
57755
  })
@@ -57827,7 +57876,7 @@ const Ue = class Ue extends st {
57827
57876
  new w({
57828
57877
  id: `${this.id}--${b.InvalidParentUpdate}`,
57829
57878
  code: b.InvalidParentUpdate,
57830
- severity: R.Error,
57879
+ severity: D.Error,
57831
57880
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated, as it would mean moving the '${this.type}' entity to another parent entity.
57832
57881
  This is likely an incorrect strategy, either the '${this.type}' entity doesn't need to be updated or it should be deleted and a new one created in the desired parent.`,
57833
57882
  issue: null
@@ -58787,7 +58836,7 @@ const je = class je extends st {
58787
58836
  new w({
58788
58837
  id: `${e.id}--${b.BuiltInEntityParent}`,
58789
58838
  code: b.BuiltInEntityParent,
58790
- severity: R.Error,
58839
+ severity: D.Error,
58791
58840
  message: `Entity of type "${e.type}" with id "${e.id}", has a parent that is a built-in entity "${d.name}" of type '${d.type}' with id '${d.id}'.
58792
58841
  You can't modify system entities that are built-in.`,
58793
58842
  issue: null
@@ -58796,7 +58845,7 @@ You can't modify system entities that are built-in.`,
58796
58845
  new w({
58797
58846
  id: `${e.id}--${b.InvalidParentRelationType}`,
58798
58847
  code: b.InvalidParentRelationType,
58799
- severity: R.Error,
58848
+ severity: D.Error,
58800
58849
  message: `The entity with id '${e.id}' and type '${e.type}', must have a 'parentRelationType' property set to either '${N.FixedArguments}', '${N.FixedReturns}', or '${N.ReturnedError}' when being added as a child to an entity of type 'action-descriptor'.`,
58801
58850
  issue: null
58802
58851
  })
@@ -58804,7 +58853,7 @@ You can't modify system entities that are built-in.`,
58804
58853
  new w({
58805
58854
  id: `${e.id}--${b.NewEntityWouldOverriteExisting}`,
58806
58855
  code: b.NewEntityWouldOverriteExisting,
58807
- severity: R.Error,
58856
+ severity: D.Error,
58808
58857
  message: `The entity with id '${e.id}' and type '${e.type}', is being added as an error value-descriptor to an entity of type 'action-descriptor' with id '${o.id}', which already has an error value descriptor with id '${o.error.id}'.
58809
58858
  An action descriptor can only have one error value descriptor child.
58810
58859
  Either remove the existing error value descriptor or update it with the 'update' action.
@@ -59061,9 +59110,9 @@ ${Ki(
59061
59110
  "add-self-to-project"
59062
59111
  )
59063
59112
  )) {
59064
- var o, d, u, h, c, T, E, D;
59113
+ var o, d, u, h, c, T, E, R;
59065
59114
  const t = [this], i = [], s = [], l = [];
59066
- 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)) : ((h = (u = this.parent) == null ? void 0 : u.addInput) == null || h.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)) : ((D = (E = this.parent) == null ? void 0 : E.addOutput) == null || D.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), {
59115
+ 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)) : ((h = (u = this.parent) == null ? void 0 : u.addInput) == null || h.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), {
59067
59116
  updated: p(t),
59068
59117
  added: p(i),
59069
59118
  removed: p(s),
@@ -59171,7 +59220,7 @@ ${Ki(
59171
59220
  "remove-entity"
59172
59221
  )
59173
59222
  )) {
59174
- var u, h, c, T, E, D, O;
59223
+ var u, h, c, T, E, R, O;
59175
59224
  const i = [], s = [], l = [], o = [];
59176
59225
  if (Array.from(
59177
59226
  /* @__PURE__ */ new Set([...Fi(), ...this.project.getAllBuiltInIds()])
@@ -59220,7 +59269,7 @@ ${Ki(
59220
59269
  );
59221
59270
  i.push(...V), s.push(...M);
59222
59271
  }
59223
- return e || (((u = this.parent) == null ? void 0 : u.type) === n.Search ? this.parentRelationType === N.FixedReturns || this.parentRelationType === N.DynamicReturn ? (h = this.parent) == null || h.removeOutputDeclaration(this, t) : this.parentRelationType === N.FixedArguments || this.parentRelationType === N.DynamicArgument ? (c = this.parent) == null || c.removeInputDeclaration(this, t) : this.parentRelationType === N.ReturnedError && (this.parent.error = null) : ((T = this.parent) == null ? void 0 : T.type) === n.Loop ? this.parentRelationType === N.FixedReturns || this.parentRelationType === N.DynamicReturn ? (E = this.parent) == null || E.removeOutputDeclaration(this, t) : this.parentRelationType === N.ReturnedError && (this.parent.error = null) : this.parentRelationType === N.FixedReturns || this.parentRelationType === N.DynamicReturn ? (D = this.parent) == null || D.removeOutput(this, t) : (this.parentRelationType === N.FixedArguments || this.parentRelationType === N.DynamicArgument) && ((O = this.parent) == null || O.removeInput(this, t))), t == null || t.attemptAutoclose("remove-entity", this.id), {
59272
+ return e || (((u = this.parent) == null ? void 0 : u.type) === n.Search ? this.parentRelationType === N.FixedReturns || this.parentRelationType === N.DynamicReturn ? (h = this.parent) == null || h.removeOutputDeclaration(this, t) : this.parentRelationType === N.FixedArguments || this.parentRelationType === N.DynamicArgument ? (c = this.parent) == null || c.removeInputDeclaration(this, t) : this.parentRelationType === N.ReturnedError && (this.parent.error = null) : ((T = this.parent) == null ? void 0 : T.type) === n.Loop ? this.parentRelationType === N.FixedReturns || this.parentRelationType === N.DynamicReturn ? (E = this.parent) == null || E.removeOutputDeclaration(this, t) : this.parentRelationType === N.ReturnedError && (this.parent.error = null) : this.parentRelationType === N.FixedReturns || this.parentRelationType === N.DynamicReturn ? (R = this.parent) == null || R.removeOutput(this, t) : (this.parentRelationType === N.FixedArguments || this.parentRelationType === N.DynamicArgument) && ((O = this.parent) == null || O.removeInput(this, t))), t == null || t.attemptAutoclose("remove-entity", this.id), {
59224
59273
  added: p(l),
59225
59274
  updated: p(i),
59226
59275
  removed: p(s),
@@ -59247,27 +59296,27 @@ ${Ki(
59247
59296
  const t = [], i = [], s = [], l = [];
59248
59297
  if (e != null && e.hasAdded(this.id))
59249
59298
  return e == null || e.attemptAutoclose("restore-entity", this.id), { added: [], updated: [], removed: [], affected: [], self: this };
59250
- if (this.subscribe(), this.project.unsubscribeDeletedInstance(this), this.metaSync({ deleted: !1 }, e), Object.values(this.detachedDependents).forEach((D) => {
59299
+ if (this.subscribe(), this.project.unsubscribeDeletedInstance(this), this.metaSync({ deleted: !1 }, e), Object.values(this.detachedDependents).forEach((R) => {
59251
59300
  const {
59252
59301
  updated: O,
59253
59302
  removed: V,
59254
59303
  added: M
59255
- } = D.entity.onDetachedDependencyRestored(
59304
+ } = R.entity.onDetachedDependencyRestored(
59256
59305
  this,
59257
- D.field,
59306
+ R.field,
59258
59307
  e
59259
59308
  );
59260
59309
  i.push(...O), s.push(...V), t.push(...M);
59261
59310
  }), this.defaultValue) {
59262
- const { updated: D } = this.defaultValue.restore(
59311
+ const { updated: R } = this.defaultValue.restore(
59263
59312
  {},
59264
59313
  e
59265
59314
  );
59266
- i.push(...D);
59315
+ i.push(...R);
59267
59316
  }
59268
59317
  if (this.dataType) {
59269
- const { updated: D } = this.dataType.restore({}, e);
59270
- i.push(...D);
59318
+ const { updated: R } = this.dataType.restore({}, e);
59319
+ i.push(...R);
59271
59320
  }
59272
59321
  return ((o = this.parent) == null ? void 0 : o.type) === n.Search ? this.parentRelationType === N.FixedReturns || this.parentRelationType === N.DynamicReturn ? (d = this.parent) == null || d.addOutputDeclaration(this, e) : (this.parentRelationType === N.FixedArguments || this.parentRelationType === N.DynamicArgument) && ((u = this.parent) == null || u.addInputDeclaration(this, e)) : ((h = this.parent) == null ? void 0 : h.type) === n.Loop ? (this.parentRelationType === N.FixedReturns || this.parentRelationType === N.DynamicReturn) && ((c = this.parent) == null || c.addOutputDeclaration(this, e)) : this.parentRelationType === N.FixedReturns || this.parentRelationType === N.DynamicReturn ? (T = this.parent) == null || T.addOutput(this, e) : (this.parentRelationType === N.FixedArguments || this.parentRelationType === N.DynamicArgument) && ((E = this.parent) == null || E.addInput(this, e)), e == null || e.attemptAutoclose("restore-entity", this.id), {
59273
59322
  added: p(t),
@@ -59451,7 +59500,7 @@ ${Ki(
59451
59500
  "clone-entity"
59452
59501
  )
59453
59502
  ), t = null, i = null, s = !0) {
59454
- var E, D;
59503
+ var E, R;
59455
59504
  if (Array.from(
59456
59505
  /* @__PURE__ */ new Set([...Fi(), ...this.project.getAllBuiltInIds()])
59457
59506
  ).includes(this.id))
@@ -59471,7 +59520,7 @@ ${Ki(
59471
59520
  s
59472
59521
  )) || null;
59473
59522
  c && h.setDataType(c);
59474
- const T = (D = this.defaultValue) == null ? void 0 : D.clone(
59523
+ const T = (R = this.defaultValue) == null ? void 0 : R.clone(
59475
59524
  e,
59476
59525
  h,
59477
59526
  y.UUID.uuid(),
@@ -59514,7 +59563,7 @@ ${Ki(
59514
59563
  )
59515
59564
  ), t, i) {
59516
59565
  const s = ri.new(e);
59517
- s.id = i || s.id, s.name = this.name, s.description = this.description, s.parent = t.toReference(), s.implements = this.toJSON();
59566
+ s.id = i || s.id, s.name = this.name, s.description = this.description, s.parent = t.toReference(), s.implements = this.toJSON(), s.isError = this.parentRelationType === N.ReturnedError;
59518
59567
  const l = rt(
59519
59568
  s,
59520
59569
  this.project
@@ -59624,14 +59673,14 @@ function zW(r, a) {
59624
59673
  new w({
59625
59674
  id: `last-generated-entity-payload--${b.MissingTypeProperty}`,
59626
59675
  message: "Last generated entity payload is missing a 'type' property.",
59627
- severity: R.Error,
59676
+ severity: D.Error,
59628
59677
  code: b.MissingTypeProperty,
59629
59678
  issue: null
59630
59679
  }),
59631
59680
  new w({
59632
59681
  id: `last-generated-entity-payload--${b.MissingIdProperty}`,
59633
59682
  message: "Last generated entity payload is missing an 'id' property.",
59634
- severity: R.Error,
59683
+ severity: D.Error,
59635
59684
  code: b.MissingIdProperty,
59636
59685
  issue: null
59637
59686
  })
@@ -59645,7 +59694,7 @@ function zW(r, a) {
59645
59694
  new w({
59646
59695
  id: `last-generated-entity-payload--${b.MissingIdProperty}`,
59647
59696
  message: `Last generated entity, with type "${r.type}" is missing an 'id' property.`,
59648
- severity: R.Error,
59697
+ severity: D.Error,
59649
59698
  code: b.MissingIdProperty,
59650
59699
  issue: null
59651
59700
  })
@@ -59658,7 +59707,7 @@ function zW(r, a) {
59658
59707
  new w({
59659
59708
  id: `${r.id}--${b.MissingTypeProperty}`,
59660
59709
  message: `Entity with id "${r.id}" is missing a 'type' property.`,
59661
- severity: R.Error,
59710
+ severity: D.Error,
59662
59711
  code: b.MissingTypeProperty,
59663
59712
  issue: null
59664
59713
  })
@@ -59671,7 +59720,7 @@ function zW(r, a) {
59671
59720
  new w({
59672
59721
  id: `${r.id}--${b.RootReference}`,
59673
59722
  message: `Generic reference entity with id "${r.id}". A generic reference cannot be generated as a standalone entity. Only in the body of another entity.`,
59674
- severity: R.Error,
59723
+ severity: D.Error,
59675
59724
  code: b.RootReference,
59676
59725
  issue: null
59677
59726
  })
@@ -59692,7 +59741,7 @@ If you are trying to create a new entity, please use a different id, for example
59692
59741
  new w({
59693
59742
  id: `duplicate--${e.id}--${b.EntityIdNotUnique}`,
59694
59743
  message: s,
59695
- severity: R.Error,
59744
+ severity: D.Error,
59696
59745
  code: b.EntityIdNotUnique,
59697
59746
  issue: null
59698
59747
  })
@@ -59708,7 +59757,7 @@ If you are trying to create a new entity, please use a different id, for example
59708
59757
  e,
59709
59758
  a
59710
59759
  )}".`,
59711
- severity: R.Error,
59760
+ severity: D.Error,
59712
59761
  code: b.EntityIdNotUnique,
59713
59762
  issue: null
59714
59763
  })
@@ -59850,7 +59899,7 @@ If you are trying to create a new entity, please use a different id, for example
59850
59899
  id: `${e.id}--${b.BuiltInEntityGenerated}`,
59851
59900
  message: `Entity with id "${e.id} is of "${e.type}" type and should not be generated. Built in entities can only be referenced by user created entities.
59852
59901
  ${o}`,
59853
- severity: R.Error,
59902
+ severity: D.Error,
59854
59903
  code: b.BuiltInEntityGenerated,
59855
59904
  issue: null
59856
59905
  })
@@ -59866,7 +59915,7 @@ ${o}`,
59866
59915
  new w({
59867
59916
  id: `${s.id}--${b.UnknownEntityType}`,
59868
59917
  message: `Incorrect entity implementation for entity with id "${s.id}". Entity type "${s.type}" is not supported.`,
59869
- severity: R.Error,
59918
+ severity: D.Error,
59870
59919
  code: b.UnknownEntityType,
59871
59920
  issue: null
59872
59921
  })
@@ -59908,7 +59957,7 @@ function YW(r, a) {
59908
59957
  new w({
59909
59958
  id: `${a.id}--${b.BuiltInEntityGenerated}`,
59910
59959
  message: `Entity with id "${a.id} is of "${a.type}" type and should not be updated. Built in entities can only be referenced by user created entities.`,
59911
- severity: R.Error,
59960
+ severity: D.Error,
59912
59961
  code: b.BuiltInEntityGenerated,
59913
59962
  issue: null
59914
59963
  })
@@ -59916,7 +59965,7 @@ function YW(r, a) {
59916
59965
  new w({
59917
59966
  id: `last-action--${b.InvalidUpdateEntityOperation}`,
59918
59967
  code: b.InvalidUpdateEntityOperation,
59919
- severity: R.Error,
59968
+ severity: D.Error,
59920
59969
  message: `The 'id' property cannot be updated in the 'update' action payload. The id of the entity is '${r.id}'. Only mutable core metadata properties can be updated, no nested entities or references. You can alternatively delete the entity and create a new one with the updated 'id'.`,
59921
59970
  issue: null
59922
59971
  })
@@ -59924,7 +59973,7 @@ function YW(r, a) {
59924
59973
  new w({
59925
59974
  id: `last-action--${b.InvalidUpdateEntityOperation}`,
59926
59975
  code: b.InvalidUpdateEntityOperation,
59927
- severity: R.Error,
59976
+ severity: D.Error,
59928
59977
  message: `The 'type' property cannot be updated in the 'update' action payload. The type of the entity is '${a.type}'. Only mutable core metadata properties can be updated, no nested entities or references. You can alternatively delete the entity and create a new one with the updated 'type'.`,
59929
59978
  issue: null
59930
59979
  })
@@ -59939,7 +59988,7 @@ function YW(r, a) {
59939
59988
  id: `${a.id}--${b.InvalidInmutablePropertyOverride}`,
59940
59989
  message: `Entity of type "${a.type}" with id "${a.id}" cannot have the property "calls" updated.
59941
59990
  ${xr}`,
59942
- severity: R.Error,
59991
+ severity: D.Error,
59943
59992
  code: b.InvalidInmutablePropertyOverride,
59944
59993
  issue: null
59945
59994
  })
@@ -59948,7 +59997,7 @@ ${xr}`,
59948
59997
  id: `${a.id}--${b.InvalidInmutablePropertyOverride}`,
59949
59998
  message: `Entity of type "${a.type}" with id "${a.id}" cannot have the property "successCalls" updated.
59950
59999
  ${xr}`,
59951
- severity: R.Error,
60000
+ severity: D.Error,
59952
60001
  code: b.InvalidInmutablePropertyOverride,
59953
60002
  issue: null
59954
60003
  })
@@ -59957,7 +60006,7 @@ ${xr}`,
59957
60006
  id: `${a.id}--${b.InvalidInmutablePropertyOverride}`,
59958
60007
  message: `Entity of type "${a.type}" with id "${a.id}" cannot have the property "errorCalls" updated.
59959
60008
  ${xr}`,
59960
- severity: R.Error,
60009
+ severity: D.Error,
59961
60010
  code: b.InvalidInmutablePropertyOverride,
59962
60011
  issue: null
59963
60012
  })
@@ -59966,7 +60015,7 @@ ${xr}`,
59966
60015
  id: `${a.id}--${b.InvalidInmutablePropertyOverride}`,
59967
60016
  message: `Entity of type "${a.type}" with id "${a.id}" cannot have the property "calledBy" updated.
59968
60017
  ${xr}`,
59969
- severity: R.Error,
60018
+ severity: D.Error,
59970
60019
  code: b.InvalidInmutablePropertyOverride,
59971
60020
  issue: null
59972
60021
  })
@@ -59975,7 +60024,7 @@ ${xr}`,
59975
60024
  id: `${a.id}--${b.InvalidInmutablePropertyOverride}`,
59976
60025
  message: `Entity of type "${a.type}" with id "${a.id}" cannot have the property "calledByEntry" updated.
59977
60026
  ${xr}`,
59978
- severity: R.Error,
60027
+ severity: D.Error,
59979
60028
  code: b.InvalidInmutablePropertyOverride,
59980
60029
  issue: null
59981
60030
  })
@@ -59984,7 +60033,7 @@ ${xr}`,
59984
60033
  id: `${a.id}--${b.InvalidInmutablePropertyOverride}`,
59985
60034
  message: `Entity of type "${a.type}" with id "${a.id}" cannot have the property "calledBySuccess" updated.
59986
60035
  ${xr}`,
59987
- severity: R.Error,
60036
+ severity: D.Error,
59988
60037
  code: b.InvalidInmutablePropertyOverride,
59989
60038
  issue: null
59990
60039
  })
@@ -59993,7 +60042,7 @@ ${xr}`,
59993
60042
  id: `${a.id}--${b.InvalidInmutablePropertyOverride}`,
59994
60043
  message: `Entity of type "${a.type}" with id "${a.id}" cannot have the property "calledByError" updated.
59995
60044
  ${xr}`,
59996
- severity: R.Error,
60045
+ severity: D.Error,
59997
60046
  code: b.InvalidInmutablePropertyOverride,
59998
60047
  issue: null
59999
60048
  })
@@ -60013,7 +60062,7 @@ ${xr}`,
60013
60062
  id: `${a.id}--${b.InvalidInmutablePropertyOverride}`,
60014
60063
  message: `Entity of type "${a.type}" with id "${a.id}" cannot have the property "${V}" updated. It is an inmutable property that is set only when the entity is created.
60015
60064
  If you need to update this property, you should delete the entity and create a new one with the updated value.`,
60016
- severity: R.Error,
60065
+ severity: D.Error,
60017
60066
  code: b.InvalidInmutablePropertyOverride,
60018
60067
  issue: null
60019
60068
  })
@@ -60027,7 +60076,7 @@ If you need to update this property, you should delete the entity and create a n
60027
60076
  message: `Entity of type "${a.type}" with id "${a.id}" cannot have the property "${V}" set directly. It is a downstream property that points to a downstream nested entity.
60028
60077
  All downstream references are managed by the downstream entity. Entities only manage their own upstream references.
60029
60078
  To modify '${V}', target the entity that it points to and its equivalent property.`,
60030
- severity: R.Error,
60079
+ severity: D.Error,
60031
60080
  code: b.InvalidDownstreamPropertyOverride,
60032
60081
  issue: null
60033
60082
  })
@@ -60040,7 +60089,7 @@ To modify '${V}', target the entity that it points to and its equivalent propert
60040
60089
  id: `${a.id}--${b.InvalidInmutablePropertyOverride}`,
60041
60090
  message: `Entity of type "${a.type}" with id "${a.id}" cannot have the property "${V}" updated. It is an inmutable property that is set only when the entity is created.
60042
60091
  If you need to update this property, you should delete the entity and create a new one with the updated value.`,
60043
- severity: R.Error,
60092
+ severity: D.Error,
60044
60093
  code: b.InvalidInmutablePropertyOverride,
60045
60094
  issue: null
60046
60095
  })
@@ -60052,7 +60101,7 @@ If you need to update this property, you should delete the entity and create a n
60052
60101
  new w({
60053
60102
  id: `${a.id}--${b.UnrecognizedProperty}`,
60054
60103
  message: `Entity of type "${a.type}" with id "${a.id}" has an unrecognized property "${V}" that will be ignored.`,
60055
- severity: R.Warning,
60104
+ severity: D.Warning,
60056
60105
  code: b.UnrecognizedProperty,
60057
60106
  issue: null
60058
60107
  })
@@ -60215,7 +60264,7 @@ function pp(r) {
60215
60264
  new w({
60216
60265
  id: `${r}--${b.InvalidReferenceObjectStructure}`,
60217
60266
  message: `Reference object with id "${r}" is not an object. References should be objects with exactly 4 properties: 'entityId', 'entityType', 'id', and 'type'.`,
60218
- severity: R.Error,
60267
+ severity: D.Error,
60219
60268
  code: b.InvalidReferenceObjectStructure,
60220
60269
  issue: null
60221
60270
  })
@@ -60225,7 +60274,7 @@ function pp(r) {
60225
60274
  new w({
60226
60275
  id: `${e}--${b.InvalidReferenceObjectStructure}`,
60227
60276
  message: `${t} is missing an 'entityId' property.`,
60228
- severity: R.Error,
60277
+ severity: D.Error,
60229
60278
  code: b.InvalidReferenceObjectStructure,
60230
60279
  issue: null
60231
60280
  })
@@ -60233,7 +60282,7 @@ function pp(r) {
60233
60282
  new w({
60234
60283
  id: `${e}--${b.InvalidReferenceObjectStructure}`,
60235
60284
  message: `${t} is missing an 'entityType' property.`,
60236
- severity: R.Error,
60285
+ severity: D.Error,
60237
60286
  code: b.InvalidReferenceObjectStructure,
60238
60287
  issue: null
60239
60288
  })
@@ -60241,7 +60290,7 @@ function pp(r) {
60241
60290
  new w({
60242
60291
  id: `${e}--${b.MissingIdProperty}`,
60243
60292
  message: `${t} is missing an 'id' property.`,
60244
- severity: R.Error,
60293
+ severity: D.Error,
60245
60294
  code: b.MissingIdProperty,
60246
60295
  issue: null
60247
60296
  })
@@ -60249,7 +60298,7 @@ function pp(r) {
60249
60298
  new w({
60250
60299
  id: `${e}--${b.MissingTypeProperty}`,
60251
60300
  message: `${t} is missing a 'type' property.`,
60252
- severity: R.Error,
60301
+ severity: D.Error,
60253
60302
  code: b.MissingTypeProperty,
60254
60303
  issue: null
60255
60304
  })
@@ -60260,7 +60309,7 @@ function hv(r, a) {
60260
60309
  (e) => new w({
60261
60310
  id: `${r.id}--${L.InvalidObjectStructure}`,
60262
60311
  message: `Entity of type "${r.type}" and with id "${r.id}", has an invalid structure: ${s5(e).toString().replace("Validation error: ", "")}`,
60263
- severity: R.Error,
60312
+ severity: D.Error,
60264
60313
  code: L.InvalidObjectStructure,
60265
60314
  issue: e
60266
60315
  })
@@ -60281,7 +60330,7 @@ function pt(r, a) {
60281
60330
  message: `Entity of type "${r.type}" with id "${r.id}" cannot have the property "${o}" set directly. It is a downstream property that points to a downstream nested entity.
60282
60331
  All downstream references are managed by the downstream entity. Entities only manage their own upstream references.
60283
60332
  To modify '${o}', target the entity that it points to and its equivalent property.`,
60284
- severity: R.Error,
60333
+ severity: D.Error,
60285
60334
  code: b.InvalidDownstreamPropertyOverride,
60286
60335
  issue: null
60287
60336
  })
@@ -60293,7 +60342,7 @@ To modify '${o}', target the entity that it points to and its equivalent propert
60293
60342
  new w({
60294
60343
  id: `${r.id}--${b.UnrecognizedProperty}`,
60295
60344
  message: `Entity of type "${r.type}" with id "${r.id}" has an unrecognized property "${o}" that will be ignored.`,
60296
- severity: R.Warning,
60345
+ severity: D.Warning,
60297
60346
  code: b.UnrecognizedProperty,
60298
60347
  issue: null
60299
60348
  })
@@ -60313,7 +60362,7 @@ function HW(r, a) {
60313
60362
  new w({
60314
60363
  id: `${r.id}--${b.BuiltInEntityParent}`,
60315
60364
  message: `Entity of type "${r.type}" with id "${r.id}" cannot have the parent with id "${t.id}", because it is a built in entity. Built in entities cannot be modified.`,
60316
- severity: R.Error,
60365
+ severity: D.Error,
60317
60366
  code: b.BuiltInEntityParent,
60318
60367
  issue: null
60319
60368
  })
@@ -60323,7 +60372,7 @@ function HW(r, a) {
60323
60372
  new w({
60324
60373
  id: `${r.id}--${b.BuiltInEntityParent}`,
60325
60374
  message: `Entity of type "${r.type}" with id "${r.id}" cannot have the parent with id "${t.id}", because it is a built in entity. Built in entities cannot be modified. Action descriptors are only sometimes built in, other times they are managed by the user.`,
60326
- severity: R.Error,
60375
+ severity: D.Error,
60327
60376
  code: b.BuiltInEntityParent,
60328
60377
  issue: null
60329
60378
  })
@@ -60340,7 +60389,7 @@ function yv(r, a, e) {
60340
60389
  ", ",
60341
60390
  " or "
60342
60391
  )}.`,
60343
- severity: R.Error,
60392
+ severity: D.Error,
60344
60393
  code: L.InvalidObjectStructure,
60345
60394
  issue: null
60346
60395
  })
@@ -60359,7 +60408,7 @@ function yv(r, a, e) {
60359
60408
  new w({
60360
60409
  id: `${r.id}--${s}--${b.SelfReference}`,
60361
60410
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to itself at '${a.key}'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,
60362
- severity: R.Error,
60411
+ severity: D.Error,
60363
60412
  code: b.SelfReference,
60364
60413
  issue: null
60365
60414
  })
@@ -60373,7 +60422,7 @@ function yv(r, a, e) {
60373
60422
  "', '",
60374
60423
  "' or '"
60375
60424
  )}'.`,
60376
- severity: R.Error,
60425
+ severity: D.Error,
60377
60426
  code: b.InvalidReference,
60378
60427
  issue: null
60379
60428
  })
@@ -60381,7 +60430,7 @@ function yv(r, a, e) {
60381
60430
  new w({
60382
60431
  id: `${r.id}--${s}--${b.ReferencedEntityNotFound}`,
60383
60432
  message: `Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${s}" at '${a.key}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
60384
- severity: R.Error,
60433
+ severity: D.Error,
60385
60434
  code: b.ReferencedEntityNotFound,
60386
60435
  issue: null
60387
60436
  })
@@ -60404,7 +60453,7 @@ function hl(r, a, e) {
60404
60453
  new w({
60405
60454
  id: `${r.id}--${a}--${b.InvalidReference}`,
60406
60455
  message: `Entity of type "${r.type}" with id "${r.id}", has a missing reference at '${a}'. A reference needs to be a 'id' string of an existing entity in the project.`,
60407
- severity: R.Error,
60456
+ severity: D.Error,
60408
60457
  code: b.InvalidReference,
60409
60458
  issue: null
60410
60459
  })
@@ -60415,7 +60464,7 @@ function hl(r, a, e) {
60415
60464
  new w({
60416
60465
  id: `${r.id}--${o}--${b.ReferencedEntityNotFound}`,
60417
60466
  message: `Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${o}" at '${a}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
60418
- severity: R.Error,
60467
+ severity: D.Error,
60419
60468
  code: b.ReferencedEntityNotFound,
60420
60469
  issue: null
60421
60470
  })
@@ -60424,7 +60473,7 @@ function hl(r, a, e) {
60424
60473
  new w({
60425
60474
  id: `${r.id}--${a}--${L.InvalidObjectStructure}`,
60426
60475
  message: `Entity of type "${r.type}" with id "${r.id}" has an invalid structure for the "${a}" property. It should be an array of references.`,
60427
- severity: R.Error,
60476
+ severity: D.Error,
60428
60477
  code: L.InvalidObjectStructure,
60429
60478
  issue: null
60430
60479
  })
@@ -60432,7 +60481,7 @@ function hl(r, a, e) {
60432
60481
  new w({
60433
60482
  id: `${r.id}--${a}--${L.InvalidObjectStructure}`,
60434
60483
  message: `Entity of type "${r.type}" with id "${r.id}" is missing a list of references to "${a}" entities.`,
60435
- severity: R.Error,
60484
+ severity: D.Error,
60436
60485
  code: L.InvalidObjectStructure,
60437
60486
  issue: null
60438
60487
  })
@@ -60448,7 +60497,7 @@ function kp(r, a, e) {
60448
60497
  new w({
60449
60498
  id: `${r.id}--${s.id}--${b.InvalidReference}`,
60450
60499
  code: b.InvalidReference,
60451
- severity: R.Error,
60500
+ severity: D.Error,
60452
60501
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to "${a.key}" that isn't pointing to an entity of type '${ne(
60453
60502
  a.types,
60454
60503
  "', '",
@@ -60460,7 +60509,7 @@ function kp(r, a, e) {
60460
60509
  new w({
60461
60510
  id: `${r.id}--${s.id}--${b.SelfReference}`,
60462
60511
  code: b.SelfReference,
60463
- severity: R.Error,
60512
+ severity: D.Error,
60464
60513
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to itself at '${a.key}'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,
60465
60514
  issue: null
60466
60515
  })
@@ -60583,7 +60632,7 @@ function D7(r, a) {
60583
60632
  new w({
60584
60633
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
60585
60634
  code: b.InvalidReference,
60586
- severity: R.Warning,
60635
+ severity: D.Warning,
60587
60636
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to an entry-point entity at 'calledBySuccess' with id "${a.id}".
60588
60637
  Entry-point entities can only be referenced as 'calledByEntry'.
60589
60638
  ${Yo}
@@ -60607,7 +60656,7 @@ This ${a.type} is called by ${ne(
60607
60656
  new w({
60608
60657
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
60609
60658
  code: b.InvalidReference,
60610
- severity: R.Error,
60659
+ severity: D.Error,
60611
60660
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a '${a.type}' entity at 'calledBySuccess' with id "${a.id}".
60612
60661
  ${a.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
60613
60662
  Termination entities are ${ne(
@@ -60623,7 +60672,7 @@ Termination entities are ${ne(
60623
60672
  new w({
60624
60673
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
60625
60674
  code: b.InvalidReference,
60626
- severity: R.Error,
60675
+ severity: D.Error,
60627
60676
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a caller entity at 'calledBySuccess' with id "${a.id}" that isn't a pass-through callable entity.
60628
60677
  ${on}`,
60629
60678
  issue: null
@@ -60634,7 +60683,7 @@ ${on}`,
60634
60683
  new w({
60635
60684
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
60636
60685
  code: b.InvalidReference,
60637
- severity: R.Error,
60686
+ severity: D.Error,
60638
60687
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a caller entity at 'calledBySuccess' with id "${a.id}" that isn't a caller entity.
60639
60688
  All caller entity types are: ${ne(
60640
60689
  Qi,
@@ -60655,7 +60704,7 @@ function O7(r, a) {
60655
60704
  new w({
60656
60705
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
60657
60706
  code: b.InvalidReference,
60658
- severity: R.Error,
60707
+ severity: D.Error,
60659
60708
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to an entry-point entity at 'calledByError' with id "${a.id}".
60660
60709
  Entry-point entities can only be referenced as 'calledByEntry'.
60661
60710
  ${Yo}`,
@@ -60676,7 +60725,7 @@ This ${a.type} is called by ${ne(
60676
60725
  new w({
60677
60726
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
60678
60727
  code: b.InvalidReference,
60679
- severity: R.Error,
60728
+ severity: D.Error,
60680
60729
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a '${a.type}' entity at 'calledByError' with id "${a.id}".
60681
60730
  ${a.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
60682
60731
  Termination entities are ${ne(
@@ -60692,7 +60741,7 @@ Termination entities are ${ne(
60692
60741
  new w({
60693
60742
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
60694
60743
  code: b.InvalidReference,
60695
- severity: R.Error,
60744
+ severity: D.Error,
60696
60745
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a caller entity at 'calledByError' with id "${a.id}" that isn't a pass-through callable entity.
60697
60746
  ${on}`,
60698
60747
  issue: null
@@ -60703,7 +60752,7 @@ ${on}`,
60703
60752
  new w({
60704
60753
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
60705
60754
  code: b.InvalidReference,
60706
- severity: R.Error,
60755
+ severity: D.Error,
60707
60756
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a caller entity at 'calledByError' with id "${a.id}" that isn't a caller entity.
60708
60757
  All caller entity types are: ${ne(
60709
60758
  Qi,
@@ -60733,7 +60782,7 @@ This ${a.type} is called by ${ne(
60733
60782
  new w({
60734
60783
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
60735
60784
  code: b.InvalidReference,
60736
- severity: R.Error,
60785
+ severity: D.Error,
60737
60786
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a '${a.type}' entity at 'calledByEntry' with id "${a.id}".
60738
60787
  ${a.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
60739
60788
  Termination entities are ${ne(
@@ -60749,7 +60798,7 @@ Termination entities are ${ne(
60749
60798
  new w({
60750
60799
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
60751
60800
  code: b.InvalidReference,
60752
- severity: R.Warning,
60801
+ severity: D.Warning,
60753
60802
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a caller entity at 'calledByEntry' with id "${a.id}" that is a pass-through callable entity, not an entry-point entity.
60754
60803
  ${on}.
60755
60804
  ${Yo}.
@@ -60763,7 +60812,7 @@ We have moved the reference to 'calledBySuccess' for you.`,
60763
60812
  new w({
60764
60813
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
60765
60814
  code: b.InvalidReference,
60766
- severity: R.Error,
60815
+ severity: D.Error,
60767
60816
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a caller entity at 'calledByEntry' with id "${a.id}" that isn't a caller entity.
60768
60817
  All caller entity types are: ${ne(
60769
60818
  Qi,
@@ -60848,7 +60897,7 @@ function P7(r, a) {
60848
60897
  new w({
60849
60898
  id: `${t.id}--${b.DuplicateReference}`,
60850
60899
  code: b.DuplicateReference,
60851
- severity: R.Warning,
60900
+ severity: D.Warning,
60852
60901
  message: `Entity of type "${t.type}" with id "${t.id}" has duplicate caller references. Each caller reference should be unique. Duplicate caller reference will be ignored.`,
60853
60902
  issue: null
60854
60903
  })
@@ -60858,7 +60907,7 @@ function P7(r, a) {
60858
60907
  new w({
60859
60908
  id: `${t.id}--${b.IncompatibleScope}`,
60860
60909
  code: b.IncompatibleScope,
60861
- severity: R.Error,
60910
+ severity: D.Error,
60862
60911
  message: `Entity of type "${t.type}" with id "${t.id}" has an explicitly set parent, but it isn't a '${ne(
60863
60912
  lt,
60864
60913
  "', '",
@@ -60870,7 +60919,7 @@ function P7(r, a) {
60870
60919
  new w({
60871
60920
  id: `${t.id}--${b.IncompatibleScope}`,
60872
60921
  code: b.IncompatibleScope,
60873
- severity: R.Error,
60922
+ severity: D.Error,
60874
60923
  message: `Entity of type "${t.type}" with id "${t.id}" has an explicitly set parent, but it isn't a '${n.Loop}' entity. A continue statement's parent should always be resolved to a loop entity.${yl}`,
60875
60924
  issue: null
60876
60925
  })
@@ -60878,7 +60927,7 @@ function P7(r, a) {
60878
60927
  new w({
60879
60928
  id: `${t.id}--${b.IncompatibleScope}`,
60880
60929
  code: b.IncompatibleScope,
60881
- severity: R.Error,
60930
+ severity: D.Error,
60882
60931
  message: `Entity of type "${t.type}" with id "${t.id}" has an explicitly set parent, but it isn't a '${n.Loop}' entity. A break statement's parent should always be resolved to a loop entity.${yl}`,
60883
60932
  issue: null
60884
60933
  })
@@ -60892,7 +60941,7 @@ function P7(r, a) {
60892
60941
  new w({
60893
60942
  id: `${t.id}--${h}--${b.ReferencedEntityNotFound}`,
60894
60943
  code: b.ReferencedEntityNotFound,
60895
- severity: R.Error,
60944
+ severity: D.Error,
60896
60945
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a caller entity with id "${h}" that doesn't exist in the project.`,
60897
60946
  issue: null
60898
60947
  })
@@ -60906,40 +60955,40 @@ function P7(r, a) {
60906
60955
  T,
60907
60956
  a
60908
60957
  ) ? (ot.includes(t.type) && ((t.calledBySuccess || []).find(
60909
- (D) => D === c.id
60958
+ (R) => R === c.id
60910
60959
  ) ? (c.successCalls || []).find(
60911
60960
  (V) => ot.includes(V.type)
60912
60961
  ) && e.push(
60913
60962
  new w({
60914
60963
  id: `${t.id}--${c.id}--${L.UnreachableEntity}`,
60915
60964
  code: L.UnreachableEntity,
60916
- severity: R.Error,
60965
+ severity: D.Error,
60917
60966
  message: `Entity of type "${t.type}" with id "${t.id}" is being called by an entity of type "${c.type}" with id "${c.id}" that already calls a termination statement.
60918
60967
  The new termination statement is redundant because both entities would be called from the same parent caller branch "successCalls", at the same time.`,
60919
60968
  issue: null
60920
60969
  })
60921
60970
  ) : (t.calledByError || []).find(
60922
- (D) => D === c.id
60971
+ (R) => R === c.id
60923
60972
  ) ? (c.errorCalls || []).find(
60924
60973
  (V) => ot.includes(V.type)
60925
60974
  ) && e.push(
60926
60975
  new w({
60927
60976
  id: `${t.id}--${c.id}--${L.UnreachableEntity}`,
60928
60977
  code: L.UnreachableEntity,
60929
- severity: R.Error,
60978
+ severity: D.Error,
60930
60979
  message: `Entity of type "${t.type}" with id "${t.id}" is being called by an entity of type "${c.type}" with id "${c.id}" that already calls a termination statement.
60931
60980
  The new termination statement is redundant because both entities would be called from the same parent caller branch "errorCalls", at the same time.`,
60932
60981
  issue: null
60933
60982
  })
60934
60983
  ) : (t.calledByEntry || []).find(
60935
- (D) => D === c.id
60984
+ (R) => R === c.id
60936
60985
  ) && (c.calls || []).find(
60937
60986
  (V) => ot.includes(V.type)
60938
60987
  ) && e.push(
60939
60988
  new w({
60940
60989
  id: `${t.id}--${c.id}--${L.UnreachableEntity}`,
60941
60990
  code: L.UnreachableEntity,
60942
- severity: R.Error,
60991
+ severity: D.Error,
60943
60992
  message: `Entity of type "${t.type}" with id "${t.id}" is being called by an entity of type "${c.type}" with id "${c.id}" that already calls a termination statement.
60944
60993
  The new termination statement is redundant because both entities would be called from the same parent caller branch (entry-point), at the same time.`,
60945
60994
  issue: null
@@ -60954,7 +61003,7 @@ The new termination statement is redundant because both entities would be called
60954
61003
  new w({
60955
61004
  id: `${t.id}--${c.id}--${b.CallerWithIncompatibleScope}`,
60956
61005
  code: b.CallerWithIncompatibleScope,
60957
- severity: R.Warning,
61006
+ severity: D.Warning,
60958
61007
  message: `Entity of type "${t.type}" with id "${t.id}" is being called by an entity of type "${c.type}" with id "${c.id}" that is in a different scope. The caller entity should be in the same scope or a higher valid scope. Or all callers should share the global project scope with the entity they call.`,
60959
61008
  issue: null
60960
61009
  })
@@ -60969,40 +61018,40 @@ The new termination statement is redundant because both entities would be called
60969
61018
  a
60970
61019
  );
60971
61020
  E ? (ot.includes(t.type) && ((t.calledBySuccess || []).find(
60972
- (D) => D === c.id
61021
+ (R) => R === c.id
60973
61022
  ) ? (c.successCalls || []).find(
60974
61023
  (V) => ot.includes(V.type)
60975
61024
  ) && e.push(
60976
61025
  new w({
60977
61026
  id: `${t.id}--${c.id}--${L.UnreachableEntity}`,
60978
61027
  code: L.UnreachableEntity,
60979
- severity: R.Error,
61028
+ severity: D.Error,
60980
61029
  message: `Entity of type "${t.type}" with id "${t.id}" is being called by an entity of type "${c.type}" with id "${c.id}" that already calls a termination statement.
60981
61030
  The new termination statement is redundant because both entities would be called from the same parent caller branch "successCalls", at the same time.`,
60982
61031
  issue: null
60983
61032
  })
60984
61033
  ) : (t.calledByError || []).find(
60985
- (D) => D === c.id
61034
+ (R) => R === c.id
60986
61035
  ) ? (c.errorCalls || []).find(
60987
61036
  (V) => ot.includes(V.type)
60988
61037
  ) && e.push(
60989
61038
  new w({
60990
61039
  id: `${t.id}--${c.id}--${L.UnreachableEntity}`,
60991
61040
  code: L.UnreachableEntity,
60992
- severity: R.Error,
61041
+ severity: D.Error,
60993
61042
  message: `Entity of type "${t.type}" with id "${t.id}" is being called by an entity of type "${c.type}" with id "${c.id}" that already calls a termination statement.
60994
61043
  The new termination statement is redundant because both entities would be called from the same parent caller branch "errorCalls", at the same time.`,
60995
61044
  issue: null
60996
61045
  })
60997
61046
  ) : (t.calledByEntry || []).find(
60998
- (D) => D === c.id
61047
+ (R) => R === c.id
60999
61048
  ) && (c.calls || []).find(
61000
61049
  (V) => ot.includes(V.type)
61001
61050
  ) && e.push(
61002
61051
  new w({
61003
61052
  id: `${t.id}--${c.id}--${L.UnreachableEntity}`,
61004
61053
  code: L.UnreachableEntity,
61005
- severity: R.Error,
61054
+ severity: D.Error,
61006
61055
  message: `Entity of type "${t.type}" with id "${t.id}" is being called by an entity of type "${c.type}" with id "${c.id}" that already calls a termination statement.
61007
61056
  The new termination statement is redundant because both entities would be called from the same parent caller branch (entry-point), at the same time.`,
61008
61057
  issue: null
@@ -61017,7 +61066,7 @@ The new termination statement is redundant because both entities would be called
61017
61066
  new w({
61018
61067
  id: `${t.id}--${c.id}--${b.CallerWithIncompatibleScope}`,
61019
61068
  code: b.CallerWithIncompatibleScope,
61020
- severity: R.Warning,
61069
+ severity: D.Warning,
61021
61070
  message: `Entity of type "${t.type}" with id "${t.id}" has multiple caller, but not all of them have compatible scopes. Caller of type "${c.type}" with id "${c.id}" is in a different scope than caller of type "${u.type}" with id "${u.id}". All callers should be in the same scope or a higher valid scope. Or all callers should share the global project scope.`,
61022
61071
  issue: null
61023
61072
  })
@@ -61053,7 +61102,7 @@ It is recommended to have a caller reference already at the moment of creation i
61053
61102
  id: `${t.id}--${L.MissingCaller}`,
61054
61103
  code: L.MissingCaller,
61055
61104
  // If it is a termination statement, make it an error, otherwise a warning
61056
- severity: ot.includes(t.type) ? R.Error : R.Warning,
61105
+ severity: ot.includes(t.type) ? D.Error : D.Warning,
61057
61106
  message: s,
61058
61107
  issue: null
61059
61108
  })
@@ -61072,7 +61121,7 @@ function Tv(r, a) {
61072
61121
  new w({
61073
61122
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
61074
61123
  code: b.InvalidReference,
61075
- severity: R.Error,
61124
+ severity: D.Error,
61076
61125
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a value writting entity at 'readsValue' with id "${a.id}" that is a literal value entity. Literal value entities aren't value writting entities.
61077
61126
  All value writting entity types are: ${ne(
61078
61127
  vt,
@@ -61090,7 +61139,7 @@ This literal-value entity belongs to an input map entity with id "${l.id}". Inpu
61090
61139
  new w({
61091
61140
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
61092
61141
  code: b.InvalidReference,
61093
- severity: R.Error,
61142
+ severity: D.Error,
61094
61143
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a value writting entity at 'readsValue' with id "${a.id}" that is a literal value entity. Literal value entities can't be referenced as value writting entities.
61095
61144
  All value writting entity types are: ${ne(
61096
61145
  vt,
@@ -61107,7 +61156,7 @@ This literal-value entity belongs to a data type entity with id "${d.id}", which
61107
61156
  new w({
61108
61157
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
61109
61158
  code: b.InvalidReference,
61110
- severity: R.Error,
61159
+ severity: D.Error,
61111
61160
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a value writting entity at 'readsValue' with id "${a.id}" that is a literal value entity. Literal value entities can't be referenced as value writting entities.
61112
61161
  All value writting entity types are: ${ne(
61113
61162
  vt,
@@ -61123,7 +61172,7 @@ All value writting entity types are: ${ne(
61123
61172
  new w({
61124
61173
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
61125
61174
  code: b.InvalidReference,
61126
- severity: R.Error,
61175
+ severity: D.Error,
61127
61176
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a value writting entity at 'readsValue' with id "${a.id}" that is a literal value entity. Literal value entities can't be referenced as value writting entities.
61128
61177
  All value writting entity types are: ${ne(
61129
61178
  vt,
@@ -61138,7 +61187,7 @@ This data type entity belongs to a ${l.type} entity with id "${l.id}". ${l.type}
61138
61187
  new w({
61139
61188
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
61140
61189
  code: b.InvalidReference,
61141
- severity: R.Error,
61190
+ severity: D.Error,
61142
61191
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a value writting entity at 'readsValue' with id "${a.id}" that is a literal value entity. Literal value entities can't be referenced as value writting entities.
61143
61192
  All value writting entity types are: ${ne(
61144
61193
  vt,
@@ -61153,7 +61202,7 @@ All value writting entity types are: ${ne(
61153
61202
  new w({
61154
61203
  id: `${r.id}--${a.id}--${b.InvalidReference}`,
61155
61204
  code: b.InvalidReference,
61156
- severity: R.Error,
61205
+ severity: D.Error,
61157
61206
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a value writting entity at 'readsValue' with id "${a.id}" that isn't a value writting entity.
61158
61207
  All value writting entity types are: ${ne(
61159
61208
  vt,
@@ -61193,7 +61242,7 @@ Two value holding entities need to be in the same scope or in scopes nested insi
61193
61242
  new w({
61194
61243
  id: `${r.id}--${a.id}--${b.IncompatibleScope}`,
61195
61244
  code: b.IncompatibleScope,
61196
- severity: R.Error,
61245
+ severity: D.Error,
61197
61246
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to a value writting entity at 'readsValue' with id "${a.id}" with an incompatible scope.
61198
61247
  ${o}`,
61199
61248
  issue: null
@@ -61229,7 +61278,7 @@ function bt(r, a, e, t = !1) {
61229
61278
  new w({
61230
61279
  id: `${l.id}--${b.InvalidReference}`,
61231
61280
  code: b.InvalidReference,
61232
- severity: R.Error,
61281
+ severity: D.Error,
61233
61282
  message: `Entity of type "${l.type}" with id "${l.id}" has a 'readsValue' property that is only valid for entities of type: ${ne(
61234
61283
  $r,
61235
61284
  ", ",
@@ -61242,7 +61291,7 @@ ${Ul}`,
61242
61291
  new w({
61243
61292
  id: `${l.id}--${b.InvalidReference}`,
61244
61293
  code: b.InvalidReference,
61245
- severity: R.Error,
61294
+ severity: D.Error,
61246
61295
  message: `Entity of type "${l.type}" with id "${l.id}" has a 'readsValue' property that is only valid for entities of type: ${ne(
61247
61296
  $r,
61248
61297
  ", ",
@@ -61255,7 +61304,7 @@ ${vv}`,
61255
61304
  new w({
61256
61305
  id: `${l.id}--${b.InvalidReference}`,
61257
61306
  code: b.InvalidReference,
61258
- severity: R.Error,
61307
+ severity: D.Error,
61259
61308
  message: `Entity of type "${l.type}" with id "${l.id}" has a 'readsValue' property that is only valid for entities of type: ${ne(
61260
61309
  $r,
61261
61310
  ", ",
@@ -61269,7 +61318,7 @@ ${mv}`,
61269
61318
  new w({
61270
61319
  id: `${l.id}--${b.InvalidReference}`,
61271
61320
  code: b.InvalidReference,
61272
- severity: R.Warning,
61321
+ severity: D.Warning,
61273
61322
  message: `Entity of type "${l.type}" with id "${l.id}" has a 'writesValues' property. This property is managed by the downstream entity, the value reader, and should not be present in the payload of the generation action.
61274
61323
  ${qp}`,
61275
61324
  issue: null
@@ -61278,7 +61327,7 @@ ${qp}`,
61278
61327
  new w({
61279
61328
  id: `${l.id}--${b.InvalidReference}`,
61280
61329
  code: b.InvalidReference,
61281
- severity: R.Warning,
61330
+ severity: D.Warning,
61282
61331
  message: `Entity of type "${l.type}" with id "${l.id}" has a 'writesValues' property. This property is managed by the downstream entity, the value reader, and should not be present in the payload of the generation action.
61283
61332
  ${Ul}
61284
61333
  ${qp}`,
@@ -61296,7 +61345,7 @@ ${qp}`,
61296
61345
  new w({
61297
61346
  id: `${l.id}--${d}--${L.InvalidObjectStructure}`,
61298
61347
  code: L.InvalidObjectStructure,
61299
- severity: R.Error,
61348
+ severity: D.Error,
61300
61349
  message: `Entity of type "${l.type}" with id "${l.id}" is missing a reference to a "${d}" entity. The '${d}' property of a "${l.type}" entity can be ${ne(h, ", ", " or ")}`,
61301
61350
  issue: null
61302
61351
  })
@@ -61306,19 +61355,19 @@ ${qp}`,
61306
61355
  if (u.list)
61307
61356
  if (Array.isArray(T))
61308
61357
  for (const E of T) {
61309
- const D = kp(
61358
+ const R = kp(
61310
61359
  l,
61311
61360
  { key: d, types: h, optional: c },
61312
61361
  e
61313
61362
  );
61314
- i.push(...D);
61363
+ i.push(...R);
61315
61364
  }
61316
61365
  else {
61317
61366
  i.push(
61318
61367
  new w({
61319
61368
  id: `${l.id}--${d}--${b.ContainsSingleButShouldBeReferenceList}`,
61320
61369
  code: b.ContainsSingleButShouldBeReferenceList,
61321
- severity: R.Error,
61370
+ severity: D.Error,
61322
61371
  message: `Entity of type "${l.type}" with id "${l.id}", should have a property "${d}" which is a list, but it isn't.`,
61323
61372
  issue: null
61324
61373
  })
@@ -61330,7 +61379,7 @@ ${qp}`,
61330
61379
  new w({
61331
61380
  id: `${l.id}--${d}--${b.ContainsListButShouldReferenceSingle}`,
61332
61381
  code: b.ContainsListButShouldReferenceSingle,
61333
- severity: R.Error,
61382
+ severity: D.Error,
61334
61383
  message: `Entity of type "${l.type}" with id "${l.id}", should have a property "${d}" which holds a single reference, but it is a list.`,
61335
61384
  issue: null
61336
61385
  })
@@ -61360,7 +61409,7 @@ function QW(r, a, e = "calledBy") {
61360
61409
  new w({
61361
61410
  id: `${r}--${b.ReferencedEntityNotFound}`,
61362
61411
  code: b.ReferencedEntityNotFound,
61363
- severity: R.Error,
61412
+ severity: D.Error,
61364
61413
  message: `Entity with id "${r}" referenced in '${e}' property not found in the project. Perhaps it should be created first? Perhaps it is the wrong ID?`,
61365
61414
  issue: null
61366
61415
  })
@@ -61381,7 +61430,7 @@ This ${i.type} is called by ${ne(
61381
61430
  new w({
61382
61431
  id: `last-action--${i.id}--${b.InvalidReference}`,
61383
61432
  code: b.InvalidReference,
61384
- severity: R.Error,
61433
+ severity: D.Error,
61385
61434
  message: `Entity with id '${i.id}' referenced in '${e}' property is of type '${i.type}'.
61386
61435
  ${i.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
61387
61436
  Termination entities are ${ne(
@@ -61397,7 +61446,7 @@ Termination entities are ${ne(
61397
61446
  new w({
61398
61447
  id: `last-action--${i.id}--${b.InvalidReference}`,
61399
61448
  code: b.InvalidReference,
61400
- severity: R.Error,
61449
+ severity: D.Error,
61401
61450
  message: `Entity with id '${i.id}' referenced in '${e}' property is of type '${i.type}' which is not a valid caller entity type.
61402
61451
  All caller entity types are: ${ne(
61403
61452
  Qi,
@@ -61419,7 +61468,7 @@ function ez(r, a, e = "calledByError") {
61419
61468
  new w({
61420
61469
  id: `${r}--${b.ReferencedEntityNotFound}`,
61421
61470
  code: b.ReferencedEntityNotFound,
61422
- severity: R.Error,
61471
+ severity: D.Error,
61423
61472
  message: `Entity with id "${r}" referenced in '${e}' property not found in the project. Perhaps it should be created first? Perhaps it is the wrong ID?`,
61424
61473
  issue: null
61425
61474
  })
@@ -61440,7 +61489,7 @@ This ${i.type} is called by ${ne(
61440
61489
  new w({
61441
61490
  id: `last-action--${i.id}--${b.InvalidReference}`,
61442
61491
  code: b.InvalidReference,
61443
- severity: R.Error,
61492
+ severity: D.Error,
61444
61493
  message: `Entity with id '${i.id}' referenced in '${e}' property is of type '${i.type}'.
61445
61494
  ${i.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
61446
61495
  Termination entities are ${ne(
@@ -61456,7 +61505,7 @@ Termination entities are ${ne(
61456
61505
  new w({
61457
61506
  id: `last-action--${i.id}--${b.InvalidReference}`,
61458
61507
  code: b.InvalidReference,
61459
- severity: R.Error,
61508
+ severity: D.Error,
61460
61509
  message: `Entity with id '${i.id}' referenced in '${e}' property is of type '${i.type}' which is an entry-point entity and doesn't thrown errors.
61461
61510
  ${Yo}`,
61462
61511
  issue: null
@@ -61465,7 +61514,7 @@ ${Yo}`,
61465
61514
  new w({
61466
61515
  id: `last-action--${i.id}--${b.InvalidReference}`,
61467
61516
  code: b.InvalidReference,
61468
- severity: R.Error,
61517
+ severity: D.Error,
61469
61518
  message: `Entity with id '${i.id}' referenced in '${e}' property is of type '${i.type}' which is not a valid caller entity type.
61470
61519
  For any error branch caller, for the 'calledByError' property of an entity, you specifically need to reference a pass-through callable entity.
61471
61520
  ${on}`,
@@ -61483,7 +61532,7 @@ function tz(r, a) {
61483
61532
  new w({
61484
61533
  id: `last-action--${b.ReferencedEntityNotFound}`,
61485
61534
  code: b.ReferencedEntityNotFound,
61486
- severity: R.Error,
61535
+ severity: D.Error,
61487
61536
  message: `The 'readsValue' property references an entity with id '${r}' that was not found in the project. Perhaps it should be created? Perhaps the ID is incorrect?`,
61488
61537
  issue: null
61489
61538
  })
@@ -61496,7 +61545,7 @@ function tz(r, a) {
61496
61545
  new w({
61497
61546
  id: `last-action--${t.id}--${b.InvalidReference}`,
61498
61547
  code: b.InvalidReference,
61499
- severity: R.Error,
61548
+ severity: D.Error,
61500
61549
  message: `The 'readsValue' property references an entity with id "${t.id}" that is a literal value entity. Literal value entities aren't value writting entities.
61501
61550
  All value writting entity types are: ${ne(
61502
61551
  vt,
@@ -61514,7 +61563,7 @@ This literal-value entity belongs to an input map entity with id "${s.id}". Inpu
61514
61563
  new w({
61515
61564
  id: `last-action--${t.id}--${b.InvalidReference}`,
61516
61565
  code: b.InvalidReference,
61517
- severity: R.Error,
61566
+ severity: D.Error,
61518
61567
  message: `The 'readsValue' property references an entity with id "${t.id}" that is a literal value entity. Literal value entities can't be referenced as value writting entities.
61519
61568
  All value writting entity types are: ${ne(
61520
61569
  vt,
@@ -61531,7 +61580,7 @@ This literal-value entity belongs to a data type entity with id "${o.id}", which
61531
61580
  new w({
61532
61581
  id: `last-action--${t.id}--${b.InvalidReference}`,
61533
61582
  code: b.InvalidReference,
61534
- severity: R.Error,
61583
+ severity: D.Error,
61535
61584
  message: `The 'readsValue' property references an entity with id "${t.id}" that is a literal value entity. Literal value entities can't be referenced as value writting entities.
61536
61585
  All value writting entity types are: ${ne(
61537
61586
  vt,
@@ -61547,7 +61596,7 @@ All value writting entity types are: ${ne(
61547
61596
  new w({
61548
61597
  id: `last-action--${t.id}--${b.InvalidReference}`,
61549
61598
  code: b.InvalidReference,
61550
- severity: R.Error,
61599
+ severity: D.Error,
61551
61600
  message: `The 'readsValue' property references an entity with id "${t.id}" that is a literal value entity. Literal value entities can't be referenced as value writting entities.
61552
61601
  All value writting entity types are: ${ne(
61553
61602
  vt,
@@ -61562,7 +61611,7 @@ This data type entity belongs to a ${s.type} entity with id "${s.id}". ${s.type}
61562
61611
  new w({
61563
61612
  id: `last-action--${t.id}--${b.InvalidReference}`,
61564
61613
  code: b.InvalidReference,
61565
- severity: R.Error,
61614
+ severity: D.Error,
61566
61615
  message: `The 'readsValue' property references an entity with id "${t.id}" that is a literal value entity. Literal value entities can't be referenced as value writting entities.
61567
61616
  All value writting entity types are: ${ne(
61568
61617
  vt,
@@ -61577,7 +61626,7 @@ All value writting entity types are: ${ne(
61577
61626
  new w({
61578
61627
  id: `last-action--${t.id}--${b.InvalidReference}`,
61579
61628
  code: b.InvalidReference,
61580
- severity: R.Error,
61629
+ severity: D.Error,
61581
61630
  message: `The 'readsValue' property references an entity with id "${t.id}" that isn't a value writting entity.
61582
61631
  All value writting entity types are: ${ne(
61583
61632
  vt,
@@ -61626,7 +61675,7 @@ function C7(r, a) {
61626
61675
  new w({
61627
61676
  id: `last-action--${b.ReferencedEntityNotFound}`,
61628
61677
  code: b.ReferencedEntityNotFound,
61629
- severity: R.Error,
61678
+ severity: D.Error,
61630
61679
  message: `The entity with id '${r}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
61631
61680
  issue: null
61632
61681
  })
@@ -61636,7 +61685,7 @@ function C7(r, a) {
61636
61685
  new w({
61637
61686
  id: `last-action--${b.InvalidFunctionDeclarationForFunctionCall}`,
61638
61687
  code: b.InvalidFunctionDeclarationForFunctionCall,
61639
- severity: R.Error,
61688
+ severity: D.Error,
61640
61689
  message: `The 'functionDeclarationId' reference is pointing to entity with id '${r}' which is of type '${t.type}' entity. If you meant to reference an 'action-descriptor', you can use the 'implement_operation' generation action instead.
61641
61690
  Otherwise, if you were trying to implement a 'function-call' from a globally declarated 'function-declaration':
61642
61691
  ${i}`,
@@ -61648,7 +61697,7 @@ ${i}`,
61648
61697
  new w({
61649
61698
  id: `last-action--${b.InvalidFunctionDeclarationForFunctionCall}`,
61650
61699
  code: b.InvalidFunctionDeclarationForFunctionCall,
61651
- severity: R.Error,
61700
+ severity: D.Error,
61652
61701
  message: `The 'functionDeclarationId' reference is pointing to entity with id '${r}' which is of type '${t.type}' entity. Only 'function-declaration' entities can be implemented as function calls.
61653
61702
  ${i}`,
61654
61703
  issue: null
@@ -61671,7 +61720,7 @@ ${ln}`), e.push(
61671
61720
  new w({
61672
61721
  id: `last-action--${b.InvalidFunctionDeclarationForFunctionCall}`,
61673
61722
  code: b.InvalidFunctionDeclarationForFunctionCall,
61674
- severity: R.Error,
61723
+ severity: D.Error,
61675
61724
  message: `The function declaration entity with id '${r}' is a method of the 'definition-entity' with id '${t.parent.id}'. Only globally declared, standalone functions can be implemented as function calls.
61676
61725
  If you want to call a method of a definition entity, use a '${n.InternalCall}' entity on any variable which is an instance of that definition entity.
61677
61726
  ${i}${o}`,
@@ -61683,7 +61732,7 @@ ${i}${o}`,
61683
61732
  new w({
61684
61733
  id: `last-action--${b.InvalidFunctionDeclarationForFunctionCall}`,
61685
61734
  code: b.InvalidFunctionDeclarationForFunctionCall,
61686
- severity: R.Error,
61735
+ severity: D.Error,
61687
61736
  message: `The function declaration entity with id '${r}' is the body of the 'loop' with id '${t.parent.id}'. Only globally declared, standalone functions can be implemented as function calls.
61688
61737
  If you want to execute the logic of a loop's body you can call the loop entity itself anf the body will be executed once for each iteration.
61689
61738
  ${i}`,
@@ -61693,7 +61742,7 @@ ${i}`,
61693
61742
  new w({
61694
61743
  id: `last-action--${b.InvalidFunctionDeclarationForFunctionCall}`,
61695
61744
  code: b.InvalidFunctionDeclarationForFunctionCall,
61696
- severity: R.Error,
61745
+ severity: D.Error,
61697
61746
  message: `The function declaration entity with id '${r}' has a 'parent' entity which isn't the root project. Only globally declared, standalone functions can be implemented as function calls.${i}`,
61698
61747
  issue: null
61699
61748
  })
@@ -61717,7 +61766,7 @@ All built-in 'action-descriptor' entities that define 'operation' entity, are (I
61717
61766
  new w({
61718
61767
  id: `last-action--${b.InvalidActionDescriptorForOperation}`,
61719
61768
  code: b.InvalidActionDescriptorForOperation,
61720
- severity: R.Error,
61769
+ severity: D.Error,
61721
61770
  message: `The entity with id '${r}' is of type '${t.type}' entity. Only 'action-descriptor' entities can be implemented as operations instances.${i}`,
61722
61771
  issue: null
61723
61772
  })
@@ -61727,7 +61776,7 @@ All built-in 'action-descriptor' entities that define 'operation' entity, are (I
61727
61776
  new w({
61728
61777
  id: `last-action--${b.InvalidActionDescriptorForOperation}`,
61729
61778
  code: b.InvalidActionDescriptorForOperation,
61730
- severity: R.Error,
61779
+ severity: D.Error,
61731
61780
  message: `The entity with id '${r}' is of type '${t.type}' entity but it isn't one of the allowed operation descriptors.${i}`,
61732
61781
  issue: null
61733
61782
  })
@@ -61735,7 +61784,7 @@ All built-in 'action-descriptor' entities that define 'operation' entity, are (I
61735
61784
  new w({
61736
61785
  id: `last-action--${b.InvalidActionDescriptorForOperation}`,
61737
61786
  code: b.InvalidActionDescriptorForOperation,
61738
- severity: R.Error,
61787
+ severity: D.Error,
61739
61788
  message: `The entity with id '${r}' is of type '${t.type}' entity. Only 'action-descriptor' entities can be implemented as operations instances.${i}`,
61740
61789
  issue: null
61741
61790
  })
@@ -61743,7 +61792,7 @@ All built-in 'action-descriptor' entities that define 'operation' entity, are (I
61743
61792
  new w({
61744
61793
  id: `last-action--${b.ReferencedEntityNotFound}`,
61745
61794
  code: b.ReferencedEntityNotFound,
61746
- severity: R.Error,
61795
+ severity: D.Error,
61747
61796
  message: `The entity with id '${r}' that isn't yet found in the project.${i}`,
61748
61797
  issue: null
61749
61798
  })
@@ -61766,7 +61815,7 @@ All built-in 'action-descriptor' entities that define 'condition' entity, are (I
61766
61815
  new w({
61767
61816
  id: `last-action--${b.InvalidActionDescriptorForCondition}`,
61768
61817
  code: b.InvalidActionDescriptorForCondition,
61769
- severity: R.Error,
61818
+ severity: D.Error,
61770
61819
  message: `The entity with id '${r}' is of type '${t.type}' entity. Only 'action-descriptor' entities can be implemented as conditions instances.${i}`,
61771
61820
  issue: null
61772
61821
  })
@@ -61776,7 +61825,7 @@ All built-in 'action-descriptor' entities that define 'condition' entity, are (I
61776
61825
  new w({
61777
61826
  id: `last-action--${b.InvalidActionDescriptorForOperation}`,
61778
61827
  code: b.InvalidActionDescriptorForOperation,
61779
- severity: R.Error,
61828
+ severity: D.Error,
61780
61829
  message: `The entity with id '${r}' is of type '${t.type}' entity but it isn't one of the allowed condition descriptors.${i}`,
61781
61830
  issue: null
61782
61831
  })
@@ -61784,7 +61833,7 @@ All built-in 'action-descriptor' entities that define 'condition' entity, are (I
61784
61833
  new w({
61785
61834
  id: `last-action--${b.InvalidActionDescriptorForCondition}`,
61786
61835
  code: b.InvalidActionDescriptorForCondition,
61787
- severity: R.Error,
61836
+ severity: D.Error,
61788
61837
  message: `The entity with id '${r}' is of type '${t.type}' entity. Only 'action-descriptor' entities can be implemented as conditions instances.${i}`,
61789
61838
  issue: null
61790
61839
  })
@@ -61792,7 +61841,7 @@ All built-in 'action-descriptor' entities that define 'condition' entity, are (I
61792
61841
  new w({
61793
61842
  id: `last-action--${b.ReferencedEntityNotFound}`,
61794
61843
  code: b.ReferencedEntityNotFound,
61795
- severity: R.Error,
61844
+ severity: D.Error,
61796
61845
  message: `The entity with id '${r}' that isn't yet found in the project.${i}`,
61797
61846
  issue: null
61798
61847
  })
@@ -61812,7 +61861,7 @@ All built-in 'action-descriptor' entities that define 'loop' entity, are (IDs):
61812
61861
  new w({
61813
61862
  id: `last-action--${b.InvalidActionDescriptorForLoop}`,
61814
61863
  code: b.InvalidActionDescriptorForLoop,
61815
- severity: R.Error,
61864
+ severity: D.Error,
61816
61865
  message: `The entity with id '${r}' is of type '${t.type}' entity. Only 'action-descriptor' entities can be implemented as loops instances.${i}`,
61817
61866
  issue: null
61818
61867
  })
@@ -61822,7 +61871,7 @@ All built-in 'action-descriptor' entities that define 'loop' entity, are (IDs):
61822
61871
  new w({
61823
61872
  id: `last-action--${b.InvalidActionDescriptorForOperation}`,
61824
61873
  code: b.InvalidActionDescriptorForOperation,
61825
- severity: R.Error,
61874
+ severity: D.Error,
61826
61875
  message: `The entity with id '${r}' is of type '${t.type}' entity but it isn't one of the allowed loop descriptors.${i}`,
61827
61876
  issue: null
61828
61877
  })
@@ -61830,7 +61879,7 @@ All built-in 'action-descriptor' entities that define 'loop' entity, are (IDs):
61830
61879
  new w({
61831
61880
  id: `last-action--${b.InvalidActionDescriptorForLoop}`,
61832
61881
  code: b.InvalidActionDescriptorForLoop,
61833
- severity: R.Error,
61882
+ severity: D.Error,
61834
61883
  message: `The entity with id '${r}' is of type '${t.type}' entity. Only 'action-descriptor' entities can be implemented as loops instances.${i}`,
61835
61884
  issue: null
61836
61885
  })
@@ -61838,7 +61887,7 @@ All built-in 'action-descriptor' entities that define 'loop' entity, are (IDs):
61838
61887
  new w({
61839
61888
  id: `last-action--${b.ReferencedEntityNotFound}`,
61840
61889
  code: b.ReferencedEntityNotFound,
61841
- severity: R.Error,
61890
+ severity: D.Error,
61842
61891
  message: `The entity with id '${r}' that isn't yet found in the project.${i}`,
61843
61892
  issue: null
61844
61893
  })
@@ -61876,7 +61925,7 @@ function Ho(r, a) {
61876
61925
  new w({
61877
61926
  id: `${a.id}--${b.InvalidBuiltInEntityReference}`,
61878
61927
  code: b.InvalidBuiltInEntityReference,
61879
- severity: R.Error,
61928
+ severity: D.Error,
61880
61929
  message: `The entity of type '${a.type}' with id '${a.id}' cannot update 'readsValue' to a built-in entity with id '${r.readsValue}'. Only user-created entities can be referenced.`,
61881
61930
  issue: null
61882
61931
  })
@@ -61886,7 +61935,7 @@ function Ho(r, a) {
61886
61935
  new w({
61887
61936
  id: `${a.id}--${b.ReferencedEntityNotFound}`,
61888
61937
  code: b.ReferencedEntityNotFound,
61889
- severity: R.Error,
61938
+ severity: D.Error,
61890
61939
  message: `The entity of type '${a.type}' with id '${a.id}' cannot update 'readsValue' to entity with id '${r.readsValue}' because the entity was not found in the project state.`,
61891
61940
  issue: null
61892
61941
  })
@@ -61898,7 +61947,7 @@ function Ho(r, a) {
61898
61947
  new w({
61899
61948
  id: `${a.id}--${b.InvalidBuiltInEntityReference}`,
61900
61949
  code: b.InvalidBuiltInEntityReference,
61901
- severity: R.Error,
61950
+ severity: D.Error,
61902
61951
  message: `The entity of type '${a.type}' with id '${a.id}' cannot update 'readsValue' to entity with id '${r.readsValue}' because the entity belongs to a built-in '${s.type}' entity with id '${s.id}' (${F(
61903
61952
  s,
61904
61953
  a.project
@@ -61923,7 +61972,7 @@ function Ho(r, a) {
61923
61972
  new w({
61924
61973
  id: `${a.id}--${L.ReaderWriterIncompatibleDataType}`,
61925
61974
  code: L.ReaderWriterIncompatibleDataType,
61926
- severity: R.Error,
61975
+ severity: D.Error,
61927
61976
  message: M7(
61928
61977
  a,
61929
61978
  t,
@@ -61944,7 +61993,7 @@ function Ur(r) {
61944
61993
  new Ye({
61945
61994
  id: `${r.id}--${G.DisconnectedCallableEntity}`,
61946
61995
  code: G.DisconnectedCallableEntity,
61947
- severity: R.Warning,
61996
+ severity: D.Warning,
61948
61997
  message: `This '${r.type}' entity "${F(
61949
61998
  r,
61950
61999
  r.project
@@ -61979,7 +62028,7 @@ This '${r.type}' is blocked `;
61979
62028
  new Ye({
61980
62029
  id: `${r.id}--${L.UnreachableEntity}`,
61981
62030
  code: L.UnreachableEntity,
61982
- severity: R.Warning,
62031
+ severity: D.Warning,
61983
62032
  message: `${t}${i}`,
61984
62033
  issue: null,
61985
62034
  entity: r
@@ -61998,7 +62047,7 @@ function Ev(r) {
61998
62047
  id: `${r.id}--${G.VariableReadsValueAndInternalCall}`,
61999
62048
  message: `Variable "${F(r, r.project)}" with id "${r.id}" reads a value. A variable with internal calls can't read a value.`,
62000
62049
  issue: null,
62001
- severity: R.Error,
62050
+ severity: D.Error,
62002
62051
  code: G.VariableReadsValueAndInternalCall,
62003
62052
  entity: r
62004
62053
  });
@@ -62009,7 +62058,7 @@ function Ev(r) {
62009
62058
  id: `${r.id}--${G.VariableWritesValuesAndInternalCall}`,
62010
62059
  message: `Variable "${F(r, r.project)}" with id "${r.id}" writes values. A variable with internal calls can't write a value.`,
62011
62060
  issue: null,
62012
- severity: R.Error,
62061
+ severity: D.Error,
62013
62062
  code: G.VariableWritesValuesAndInternalCall,
62014
62063
  entity: r
62015
62064
  });
@@ -62020,7 +62069,7 @@ function Ev(r) {
62020
62069
  id: `${r.id}--${G.VariableHasInputsAndInternalCall}`,
62021
62070
  message: `Variable "${F(r, r.project)}" with id "${r.id}" has inputs. A variable with internal calls can't have inputs.`,
62022
62071
  issue: null,
62023
- severity: R.Error,
62072
+ severity: D.Error,
62024
62073
  code: G.VariableHasInputsAndInternalCall,
62025
62074
  entity: r
62026
62075
  });
@@ -62031,7 +62080,7 @@ function Ev(r) {
62031
62080
  id: `${r.id}--${G.VariableHasOutputsAndInternalCall}`,
62032
62081
  message: `Variable "${F(r, r.project)}" with id "${r.id}" has outputs. A variable with internal calls can't have outputs.`,
62033
62082
  issue: null,
62034
- severity: R.Error,
62083
+ severity: D.Error,
62035
62084
  code: G.VariableHasOutputsAndInternalCall,
62036
62085
  entity: r
62037
62086
  });
@@ -62042,7 +62091,7 @@ function Ev(r) {
62042
62091
  id: `${r.id}--${G.VariableIsCalledAndHasInternalCall}`,
62043
62092
  message: `Variable "${F(r, r.project)}" with id "${r.id}" is called by other entities. A variable with internal calls can't be called by other entities.`,
62044
62093
  issue: null,
62045
- severity: R.Error,
62094
+ severity: D.Error,
62046
62095
  code: G.VariableIsCalledAndHasInternalCall,
62047
62096
  entity: r
62048
62097
  });
@@ -62053,7 +62102,7 @@ function Ev(r) {
62053
62102
  id: `${r.id}--${G.VariableCallsOthersAndHasInternalCall}`,
62054
62103
  message: `Variable "${F(r, r.project)}" with id "${r.id}" calls other entities. A variable with internal calls can't call other entities.`,
62055
62104
  issue: null,
62056
- severity: R.Error,
62105
+ severity: D.Error,
62057
62106
  code: G.VariableCallsOthersAndHasInternalCall,
62058
62107
  entity: r
62059
62108
  });
@@ -62237,7 +62286,7 @@ The project currently has no global 'function-declaration' entities that can be
62237
62286
  new w({
62238
62287
  id: `${i.id}--${b.InvalidReference}`,
62239
62288
  code: b.InvalidReference,
62240
- severity: R.Error,
62289
+ severity: D.Error,
62241
62290
  message: `Entity of type "${n.FunctionCall}" with id "${i.id}", has an invalid reference at the 'declaration' property. The 'declaration' property must be a valid reference to an 'function-declaration' entity.
62242
62291
  References can either be an ID string or an object with exacly four properties: 'id', 'entityId', 'entityType', 'type'.${d}`,
62243
62292
  issue: null
@@ -62255,7 +62304,7 @@ References can either be an ID string or an object with exacly four properties:
62255
62304
  new w({
62256
62305
  id: `${this.id}--${b.InvalidParentUpdate}`,
62257
62306
  code: b.InvalidParentUpdate,
62258
- severity: R.Error,
62307
+ severity: D.Error,
62259
62308
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on a callable entity, is its scope. It scope is auto-calculated implicitly by the its caller.
62260
62309
  If an entity is called by another, they must be in the same scope, which means they have the same parent.
62261
62310
  You shouldn't have to manually update a 'parent' property. The equivalent result is to change its callers, the value writters of its inputs, or the value readers of its outputs.`,
@@ -63322,7 +63371,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
63322
63371
  "clone-entity"
63323
63372
  )
63324
63373
  ), t = null, i = null, s = !0) {
63325
- var D, O;
63374
+ var R, O;
63326
63375
  let l = yt(t, this);
63327
63376
  const o = this.toJSON(), d = i || y.UUID.uuid();
63328
63377
  o.inputs = [];
@@ -63333,7 +63382,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
63333
63382
  l
63334
63383
  );
63335
63384
  t ? c.setParent(t, null) : c.setParent(this.parent, null), s && c.subscribe(), c.initChildren(e), e == null || e.add(c, I.Added);
63336
- const T = (D = this.inputs) == null ? void 0 : D.map(
63385
+ const T = (R = this.inputs) == null ? void 0 : R.map(
63337
63386
  (V, M) => V.clone(
63338
63387
  e,
63339
63388
  c,
@@ -63443,8 +63492,8 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
63443
63492
  )
63444
63493
  );
63445
63494
  this.inputs.sort((c, T) => c.index - T.index), o.forEach((c) => {
63446
- this.inputs.forEach((D) => {
63447
- D.index >= c.index && D.metaSync({ index: D.index + 1 }, e);
63495
+ this.inputs.forEach((R) => {
63496
+ R.index >= c.index && R.metaSync({ index: R.index + 1 }, e);
63448
63497
  });
63449
63498
  const T = {
63450
63499
  id: y.UUID.uuid(),
@@ -63514,7 +63563,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
63514
63563
  this.outputs.forEach((M) => {
63515
63564
  M.index >= T.index && M.index++;
63516
63565
  });
63517
- const D = o.includes(T.index) ? this.outputs.length - 1 + E : T.index, O = {
63566
+ const R = o.includes(T.index) ? this.outputs.length - 1 + E : T.index, O = {
63518
63567
  id: y.UUID.uuid(),
63519
63568
  version: y.UUID.uuid(),
63520
63569
  createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
@@ -63525,7 +63574,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
63525
63574
  declaration: T.toJSON(),
63526
63575
  defaultValue: null,
63527
63576
  writesValues: [],
63528
- index: D,
63577
+ index: R,
63529
63578
  parent: this.toReference()
63530
63579
  }, V = P(
63531
63580
  O,
@@ -63830,11 +63879,11 @@ function U7(r, a) {
63830
63879
  case g["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id: {
63831
63880
  let h = r.project.entities.filter(
63832
63881
  (E) => E.implements.find(
63833
- (D) => D.id === g["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id
63882
+ (R) => R.id === g["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id
63834
63883
  )
63835
- ).find((E) => !!E.properties.find((D) => {
63884
+ ).find((E) => !!E.properties.find((R) => {
63836
63885
  var O;
63837
- return D.implements && D.implements.id === g["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id && ((O = D.getDefaultValue()) == null ? void 0 : O.value) === !0;
63886
+ return R.implements && R.implements.id === g["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id && ((O = R.getDefaultValue()) == null ? void 0 : O.value) === !0;
63838
63887
  }));
63839
63888
  if (!h) {
63840
63889
  h = r.project.getBuiltIn(
@@ -63843,13 +63892,13 @@ function U7(r, a) {
63843
63892
  "Relational database",
63844
63893
  a
63845
63894
  );
63846
- const D = h.properties.find(
63895
+ const R = h.properties.find(
63847
63896
  (O) => {
63848
63897
  var V;
63849
63898
  return ((V = O.implements) == null ? void 0 : V.id) === g["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default.id;
63850
63899
  }
63851
63900
  );
63852
- (d = D == null ? void 0 : D.defaultValue) == null || d.metaSync(
63901
+ (d = R == null ? void 0 : R.defaultValue) == null || d.metaSync(
63853
63902
  {
63854
63903
  value: !0
63855
63904
  },
@@ -63872,11 +63921,11 @@ function U7(r, a) {
63872
63921
  valueAsTypeSingle: h,
63873
63922
  valueAsTypeList: null,
63874
63923
  parent: c == null ? void 0 : c.toReference()
63875
- }, D = P(
63924
+ }, R = P(
63876
63925
  E,
63877
63926
  r.project
63878
63927
  );
63879
- D.hydrateAncestors(), D.setParent(c, a), D.addSelfToProject(a), D.initChildren(a), a == null || a.add(D, I.Added), t.push(D);
63928
+ R.hydrateAncestors(), R.setParent(c, a), R.addSelfToProject(a), R.initChildren(a), a == null || a.add(R, I.Added), t.push(R);
63880
63929
  return;
63881
63930
  } else
63882
63931
  T && T.setValueAsTypeSingle(h, a);
@@ -63964,7 +64013,7 @@ function j7(r, a, e, t = wt.OrDataTypeGroup) {
63964
64013
  };
63965
64014
  }
63966
64015
  function bv(r, a, e, t, i) {
63967
- var u, h, c, T, E, D, O, V;
64016
+ var u, h, c, T, E, R, O, V;
63968
64017
  const s = [], l = [], o = [], d = [];
63969
64018
  switch (typeof r) {
63970
64019
  case "string":
@@ -64213,7 +64262,7 @@ function bv(r, a, e, t, i) {
64213
64262
  t,
64214
64263
  i
64215
64264
  );
64216
- a.setEntity((E = C.changeSet) == null ? void 0 : E.self), s.push(...(D = C.changeSet) == null ? void 0 : D.updated), l.push(...(O = C.changeSet) == null ? void 0 : O.added), o.push(...(V = C.changeSet) == null ? void 0 : V.removed);
64265
+ a.setEntity((E = C.changeSet) == null ? void 0 : E.self), s.push(...(R = C.changeSet) == null ? void 0 : R.updated), l.push(...(O = C.changeSet) == null ? void 0 : O.added), o.push(...(V = C.changeSet) == null ? void 0 : V.removed);
64217
64266
  break;
64218
64267
  }
64219
64268
  }
@@ -64258,11 +64307,11 @@ function El(r, a, e, t, i) {
64258
64307
  x: 0,
64259
64308
  y: 0,
64260
64309
  parent: a.toReference()
64261
- }, D = P(
64310
+ }, R = P(
64262
64311
  E,
64263
64312
  a
64264
64313
  );
64265
- return D.setParent(a, t), D.initChildren(t), t == null || t.add(D, I.Added), D.addSelfToProject(t), l.push(D), u.forEach((O, V) => {
64314
+ return R.setParent(a, t), R.initChildren(t), t == null || t.add(R, I.Added), R.addSelfToProject(t), l.push(R), u.forEach((O, V) => {
64266
64315
  const x = {
64267
64316
  id: y.UUID.uuid(),
64268
64317
  version: y.UUID.uuid(),
@@ -64283,12 +64332,12 @@ function El(r, a, e, t, i) {
64283
64332
  hidden: !1,
64284
64333
  private: !1,
64285
64334
  required: !0,
64286
- parent: D.toReference()
64335
+ parent: R.toReference()
64287
64336
  }, C = P(
64288
64337
  x,
64289
64338
  a
64290
64339
  );
64291
- C.setParent(D, t), C.initChildren(t), t == null || t.add(C, I.Added), C.addSelfToProject(t), l.push(C);
64340
+ C.setParent(R, t), C.initChildren(t), t == null || t.add(C, I.Added), C.addSelfToProject(t), l.push(C);
64292
64341
  const $ = r[O], q = {
64293
64342
  id: y.UUID.uuid(),
64294
64343
  version: y.UUID.uuid(),
@@ -64325,7 +64374,7 @@ function El(r, a, e, t, i) {
64325
64374
  id: y.UUID.uuid()
64326
64375
  },
64327
64376
  t,
64328
- i || D
64377
+ i || R
64329
64378
  );
64330
64379
  s.push(...ue.updated), l.push(...ue.added), o.push(...ue.removed);
64331
64380
  }), {
@@ -64337,7 +64386,7 @@ function El(r, a, e, t, i) {
64337
64386
  affected: p(
64338
64387
  d
64339
64388
  ),
64340
- self: D
64389
+ self: R
64341
64390
  }
64342
64391
  };
64343
64392
  }
@@ -64356,7 +64405,7 @@ function fr(r, a, e, t) {
64356
64405
  id: s.id + "--" + l.id + "--" + t,
64357
64406
  message: `Entity of type ${s.type} named "${s.name}" with id "${s.id}" overrides a base ${l.type} ${l.name} with id "${l.id}" that has the same name`,
64358
64407
  issue: null,
64359
- severity: R.Error,
64408
+ severity: D.Error,
64360
64409
  code: t,
64361
64410
  entity: s,
64362
64411
  firstRelationship: l
@@ -64368,7 +64417,7 @@ function fr(r, a, e, t) {
64368
64417
  id: s.id + "--" + o.id + "--" + e,
64369
64418
  message: `Entity of type ${s.type} named "${s.name}" with id "${s.id}" overrides a base ${o.type} ${o.name} with id "${o.id}" that implements the same base descriptor`,
64370
64419
  issue: null,
64371
- severity: R.Error,
64420
+ severity: D.Error,
64372
64421
  code: e,
64373
64422
  entity: s,
64374
64423
  firstRelationship: o
@@ -64386,7 +64435,7 @@ function fr(r, a, e, t) {
64386
64435
  id: l.id + "--" + s.id + "--" + t,
64387
64436
  message: `Entity of type ${l.type} named "${l.name}" with id "${l.id}" overrides a base entity ${s.name} with id "${s.id}" that has the same name`,
64388
64437
  issue: null,
64389
- severity: R.Error,
64438
+ severity: D.Error,
64390
64439
  code: t,
64391
64440
  entity: l,
64392
64441
  firstRelationship: s
@@ -64398,7 +64447,7 @@ function fr(r, a, e, t) {
64398
64447
  id: o.id + "--" + s.id + "--" + e,
64399
64448
  message: `Entity of type ${o.type} named "${o.name}" with id "${o.id}" overrides a base entity ${s.name} with id "${s.id}" that implements the same base ${(d = o == null ? void 0 : o.implements) == null ? void 0 : d.type}`,
64400
64449
  issue: null,
64401
- severity: R.Error,
64450
+ severity: D.Error,
64402
64451
  code: e,
64403
64452
  entity: o,
64404
64453
  firstRelationship: s
@@ -64496,7 +64545,7 @@ function x7(r, a) {
64496
64545
  id: r.id + "--string-value-must-not-have-spaces",
64497
64546
  message: `Entity of type ${r.type} with id "${r.id}" has an invalid value "${a}". The value cannot contain spaces.`,
64498
64547
  issue: null,
64499
- severity: R.Error,
64548
+ severity: D.Error,
64500
64549
  code: "string-value-must-not-have-spaces",
64501
64550
  entity: r
64502
64551
  });
@@ -64524,7 +64573,7 @@ function $7(r, a) {
64524
64573
  id: r.id + "--string-value-must-not-have-spaces",
64525
64574
  message: `Entity of type ${r.type} with id "${r.id}" has an invalid value "${a}". The value cannot contain spaces or dashes.`,
64526
64575
  issue: null,
64527
- severity: R.Error,
64576
+ severity: D.Error,
64528
64577
  code: "string-value-must-not-have-spaces",
64529
64578
  entity: r
64530
64579
  });
@@ -64535,7 +64584,7 @@ function $7(r, a) {
64535
64584
  id: r.id + "--string-value-must-not-have-dashes",
64536
64585
  message: `Entity of type ${r.type} with id "${r.id}" has an invalid value "${a}". The value cannot contain spaces or dashes.`,
64537
64586
  issue: null,
64538
- severity: R.Error,
64587
+ severity: D.Error,
64539
64588
  code: "string-value-must-not-have-dashes",
64540
64589
  entity: r
64541
64590
  });
@@ -65045,14 +65094,14 @@ function Il(r, a = {}, e = {
65045
65094
  upstream: {},
65046
65095
  downstream: {}
65047
65096
  };
65048
- const t = r, i = r, s = r, l = r, o = r, d = r, u = r, h = r, c = r, T = r, E = r, D = r, O = r, V = [
65097
+ const t = r, i = r, s = r, l = r, o = r, d = r, u = r, h = r, c = r, T = r, E = r, R = r, O = r, V = [
65049
65098
  ...O.readsValue ? [O.readsValue] : [],
65050
65099
  ...O.declaration ? [O.declaration] : [],
65051
- ...(D.calledByEntry || []).flatMap(($) => $),
65052
- ...(D.calledBySuccess || []).flatMap(
65100
+ ...(R.calledByEntry || []).flatMap(($) => $),
65101
+ ...(R.calledBySuccess || []).flatMap(
65053
65102
  ($) => $
65054
65103
  ),
65055
- ...(D.calledByError || []).flatMap(($) => $),
65104
+ ...(R.calledByError || []).flatMap(($) => $),
65056
65105
  ...(s.extends || []).flatMap(
65057
65106
  ($) => $
65058
65107
  ),
@@ -65074,11 +65123,11 @@ function Il(r, a = {}, e = {
65074
65123
  ($) => $
65075
65124
  ),
65076
65125
  ...O.writesValues || [],
65077
- ...D.dataType ? [D.dataType] : [],
65126
+ ...R.dataType ? [R.dataType] : [],
65078
65127
  ...d.body ? [d.body] : [],
65079
- ...D.defaultValue ? [D.defaultValue] : [],
65080
- ...(D.successCalls || []).flatMap(($) => $),
65081
- ...(D.errorCalls || []).flatMap(($) => $),
65128
+ ...R.defaultValue ? [R.defaultValue] : [],
65129
+ ...(R.successCalls || []).flatMap(($) => $),
65130
+ ...(R.errorCalls || []).flatMap(($) => $),
65082
65131
  ...(s.properties || []).flatMap(($) => $),
65083
65132
  ...(s.methods || []).flatMap(($) => $),
65084
65133
  ...(s.abstractMethods || []).flatMap(($) => $),
@@ -66658,7 +66707,7 @@ function gJ(r, a) {
66658
66707
  id: r.id + "--" + G.ImplementingNonAbstractEntity,
66659
66708
  message: `Entity "${r.name}" with id "${r.id}" is implementing a non-abstract entity "${a.name}" with id "${a.id}"`,
66660
66709
  issue: null,
66661
- severity: R.Error,
66710
+ severity: D.Error,
66662
66711
  code: G.ImplementingNonAbstractEntity,
66663
66712
  entity: r
66664
66713
  });
@@ -66681,7 +66730,7 @@ function gJ(r, a) {
66681
66730
  id: r.id + "--" + G.MissingPropertyImplementation + "--" + h.id,
66682
66731
  message: `Property "${h.name}" with id "${h.id}" of entity "${a.name}" with id "${a.id}" is not implemented when entity "${r.name}" with id "${r.id}" implements it`,
66683
66732
  issue: null,
66684
- severity: R.Error,
66733
+ severity: D.Error,
66685
66734
  code: G.MissingPropertyImplementation,
66686
66735
  entity: r
66687
66736
  });
@@ -66704,7 +66753,7 @@ function gJ(r, a) {
66704
66753
  id: r.id + "--" + G.MissingMethodImplementation + "--" + h.id,
66705
66754
  message: `Method "${h.name}" with id "${h.id}" of entity "${a.name}" with id "${a.id}" is not implemented when entity "${r.name}" with id "${r.id}" implements it`,
66706
66755
  issue: null,
66707
- severity: R.Error,
66756
+ severity: D.Error,
66708
66757
  code: G.MissingMethodImplementation,
66709
66758
  entity: r
66710
66759
  });
@@ -66721,7 +66770,7 @@ function gJ(r, a) {
66721
66770
  id: r.id + "--" + L.PropertyOverwritesOtherSiblingWithSameName + "--" + h.id,
66722
66771
  message: `Property "${h.name}" with id "${h.id}" of entity "${r.name}" with id "${r.id}" overwrites the property with the same name from the base entity "${a.name}" with id "${a.id}"`,
66723
66772
  issue: null,
66724
- severity: R.Error,
66773
+ severity: D.Error,
66725
66774
  code: L.PropertyOverwritesOtherSiblingWithSameName,
66726
66775
  entity: r
66727
66776
  });
@@ -66738,7 +66787,7 @@ function gJ(r, a) {
66738
66787
  id: r.id + "--" + L.MethodOverwritesOtherSiblingWithSameName + "--" + h.id,
66739
66788
  message: `Method "${h.name}" with id "${h.id}" of entity "${r.name}" with id "${r.id}" overwrites the method with the same name from the base entity "${a.name}" with id "${a.id}"`,
66740
66789
  issue: null,
66741
- severity: R.Error,
66790
+ severity: D.Error,
66742
66791
  code: L.MethodOverwritesOtherSiblingWithSameName,
66743
66792
  entity: r
66744
66793
  });
@@ -66752,7 +66801,7 @@ function kJ(r, a) {
66752
66801
  id: r.id + "--" + a.id + "--" + G.NonAbstractExtendingAbstractEntity,
66753
66802
  message: `Entity "${r.name}" with id "${r.id}" is not-abstract but is extending an abstract entity "${a.name}" with id "${a.id}"`,
66754
66803
  issue: null,
66755
- severity: R.Error,
66804
+ severity: D.Error,
66756
66805
  code: G.NonAbstractExtendingAbstractEntity,
66757
66806
  entity: r,
66758
66807
  firstRelationship: a
@@ -66764,7 +66813,7 @@ function kJ(r, a) {
66764
66813
  id: r.id + "--" + a.id + "--" + G.AbstractExtendingNonAbstractEntity,
66765
66814
  message: `Entity "${r.name}" with id "${r.id}" is abstract but is extending an non-abstract entity "${a.name}" with id "${a.id}"`,
66766
66815
  issue: null,
66767
- severity: R.Error,
66816
+ severity: D.Error,
66768
66817
  code: G.AbstractExtendingNonAbstractEntity,
66769
66818
  entity: r,
66770
66819
  firstRelationship: a
@@ -66783,7 +66832,7 @@ function kJ(r, a) {
66783
66832
  id: r.id + "--" + L.PropertyOverwritesOtherSiblingWithSameName,
66784
66833
  message: `Property "${s.name}" with id "${s.id}" of entity "${r.name}" with id "${r.id}" overwrites the property with the same name from the extended entity "${a.name}" with id "${a.id}"`,
66785
66834
  issue: null,
66786
- severity: R.Error,
66835
+ severity: D.Error,
66787
66836
  code: L.PropertyOverwritesOtherSiblingWithSameName,
66788
66837
  entity: r
66789
66838
  });
@@ -66802,7 +66851,7 @@ function kJ(r, a) {
66802
66851
  id: r.id + "--" + L.MethodOverwritesOtherSiblingWithSameName,
66803
66852
  message: `Method "${s.name}" with id "${s.id}" of entity "${r.name}" with id "${r.id}" overwrites the method with the same name from the extended entity "${a.name}" with id "${a.id}"`,
66804
66853
  issue: null,
66805
- severity: R.Error,
66854
+ severity: D.Error,
66806
66855
  code: L.MethodOverwritesOtherSiblingWithSameName,
66807
66856
  entity: r
66808
66857
  });
@@ -66816,7 +66865,7 @@ function ZJ(r) {
66816
66865
  id: r.id + "--" + G.NoProperties,
66817
66866
  message: "No properties implemented",
66818
66867
  issue: null,
66819
- severity: R.Warning,
66868
+ severity: D.Warning,
66820
66869
  code: G.NoProperties,
66821
66870
  entity: r
66822
66871
  });
@@ -66834,7 +66883,7 @@ function JJ(r) {
66834
66883
  id: r.id + "--" + G.AbstractEntityWithNonAbstractMethods,
66835
66884
  message: `Entity "${r.name}" with id "${r.id}" is marked as abstract but has non-abstract methods`,
66836
66885
  issue: null,
66837
- severity: R.Error,
66886
+ severity: D.Error,
66838
66887
  code: G.AbstractEntityWithNonAbstractMethods,
66839
66888
  entity: r
66840
66889
  });
@@ -66845,7 +66894,7 @@ function JJ(r) {
66845
66894
  id: r.id + "--" + G.AbstractEntityWithNonAbstractProperties,
66846
66895
  message: `Entity "${r.name}" with id "${r.id}" is marked as abstract but has non-abstract properties`,
66847
66896
  issue: null,
66848
- severity: R.Error,
66897
+ severity: D.Error,
66849
66898
  code: G.AbstractEntityWithNonAbstractProperties,
66850
66899
  entity: r
66851
66900
  });
@@ -66855,7 +66904,7 @@ function JJ(r) {
66855
66904
  id: r.id + "--" + G.StaticEntityWithNonStaticProperties + "--" + t.id,
66856
66905
  message: `Property "${t.name}" with id "${t.id}" of entity "${r.name}" with id "${r.id}" is not marked as abstract but the entity is marked as abstract`,
66857
66906
  issue: null,
66858
- severity: R.Error,
66907
+ severity: D.Error,
66859
66908
  code: G.StaticEntityWithNonStaticProperties,
66860
66909
  entity: r
66861
66910
  });
@@ -66869,7 +66918,7 @@ function JJ(r) {
66869
66918
  id: r.id + "--" + G.AbstractPropertyInNonAbstractEntity,
66870
66919
  message: `Entity "${r.name}" with id "${r.id}" is not marked as abstract but has abstract methods`,
66871
66920
  issue: null,
66872
- severity: R.Error,
66921
+ severity: D.Error,
66873
66922
  code: G.AbstractPropertyInNonAbstractEntity,
66874
66923
  entity: r
66875
66924
  });
@@ -66880,7 +66929,7 @@ function JJ(r) {
66880
66929
  id: r.id + "--" + G.AbstractMethodInNonAbstractEntity,
66881
66930
  message: `Entity "${r.name}" with id "${r.id}" is not marked as abstract but has abstract properties`,
66882
66931
  issue: null,
66883
- severity: R.Error,
66932
+ severity: D.Error,
66884
66933
  code: G.AbstractMethodInNonAbstractEntity,
66885
66934
  entity: r
66886
66935
  });
@@ -66890,7 +66939,7 @@ function JJ(r) {
66890
66939
  id: r.id + "--" + G.AbstractMethodInNonAbstractEntity + "--" + t.id,
66891
66940
  message: `Property "${t.name}" with id "${t.id}" of entity "${r.name}" with id "${r.id}" is marked as abstract but the entity is not marked as abstract`,
66892
66941
  issue: null,
66893
- severity: R.Error,
66942
+ severity: D.Error,
66894
66943
  code: G.AbstractMethodInNonAbstractEntity,
66895
66944
  entity: r
66896
66945
  });
@@ -66904,7 +66953,7 @@ function JJ(r) {
66904
66953
  id: r.id + "--" + G.StaticEntityWithNonStaticProperties,
66905
66954
  message: `Entity "${r.name}" with id "${r.id}" is marked as static but has non-static properties`,
66906
66955
  issue: null,
66907
- severity: R.Error,
66956
+ severity: D.Error,
66908
66957
  code: G.StaticEntityWithNonStaticProperties,
66909
66958
  entity: r
66910
66959
  });
@@ -66914,7 +66963,7 @@ function JJ(r) {
66914
66963
  id: r.id + "--" + G.NonStaticPropertyInStaticEntity + "--" + t.id,
66915
66964
  message: `Property "${t.name}" with id "${t.id}" of entity "${r.name}" with id "${r.id}" is not marked as static but the entity is marked as static`,
66916
66965
  issue: null,
66917
- severity: R.Error,
66966
+ severity: D.Error,
66918
66967
  code: G.NonStaticPropertyInStaticEntity,
66919
66968
  entity: r
66920
66969
  });
@@ -66931,7 +66980,7 @@ function qJ(r, a) {
66931
66980
  id: r.id + "--" + a.id + "--" + G.ImplementingNonAbstractEntity,
66932
66981
  message: `Entity "${r.name}" with id "${r.id}" is implementing a non-abstract built-in entity "${a.name}" with id "${a.id}"`,
66933
66982
  issue: null,
66934
- severity: R.Error,
66983
+ severity: D.Error,
66935
66984
  code: G.ImplementingNonAbstractEntity,
66936
66985
  entity: r,
66937
66986
  firstRelationship: a
@@ -66946,7 +66995,7 @@ function qJ(r, a) {
66946
66995
  id: r.id + "--" + a.id + "--" + G.AbstractEntityImplements,
66947
66996
  message: `Entity "${r.name}" with id "${r.id}" is marked as abstract and cannot implement built-in entity "${a.name}" with id "${a.id}"`,
66948
66997
  issue: null,
66949
- severity: R.Error,
66998
+ severity: D.Error,
66950
66999
  code: G.AbstractEntityImplements,
66951
67000
  entity: r,
66952
67001
  firstRelationship: a
@@ -66958,7 +67007,7 @@ function qJ(r, a) {
66958
67007
  id: r.id + "--" + a.id + "--" + G.StaticImplementingNonStaticEntity,
66959
67008
  message: `Entity "${r.name}" with id "${r.id}" is marked as static and cannot implement non-static built-in entity "${a.name}" with id "${a.id}"`,
66960
67009
  issue: null,
66961
- severity: R.Error,
67010
+ severity: D.Error,
66962
67011
  code: G.StaticImplementingNonStaticEntity,
66963
67012
  entity: r,
66964
67013
  firstRelationship: a
@@ -66970,7 +67019,7 @@ function qJ(r, a) {
66970
67019
  id: r.id + "--" + a.id + "--" + G.NonStaticImplementingStaticEntity,
66971
67020
  message: `Entity "${r.name}" with id "${r.id}" is not marked as static and cannot implement static built-in entity "${a.name}" with id "${a.id}"`,
66972
67021
  issue: null,
66973
- severity: R.Error,
67022
+ severity: D.Error,
66974
67023
  code: G.NonStaticImplementingStaticEntity,
66975
67024
  entity: r,
66976
67025
  firstRelationship: a
@@ -66988,7 +67037,7 @@ function qJ(r, a) {
66988
67037
  id: r.id + "--" + d.id + "--" + l.id + "--" + G.ImplementsIncompatibleEntities,
66989
67038
  message: `Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${d.name}" with id "${d.id}" but also implements entity "${l.name}" with id "${l.id}" which is incompatible`,
66990
67039
  issue: null,
66991
- severity: R.Error,
67040
+ severity: D.Error,
66992
67041
  code: G.ImplementsIncompatibleEntities,
66993
67042
  entity: r,
66994
67043
  firstRelationship: d,
@@ -67008,7 +67057,7 @@ function qJ(r, a) {
67008
67057
  id: r.id + "--" + T.id + "--" + h.id + "--" + G.ImplementsIncompatibleEntities,
67009
67058
  message: `Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${T.name}" with id "${T.id}" but also implements entity "${h.name}" with id "${h.id}" which is incompatible`,
67010
67059
  issue: null,
67011
- severity: R.Error,
67060
+ severity: D.Error,
67012
67061
  code: G.ImplementsIncompatibleEntities,
67013
67062
  entity: r,
67014
67063
  firstRelationship: T,
@@ -67043,7 +67092,7 @@ function qJ(r, a) {
67043
67092
  id: r.id + "--" + a.id + "--" + l.id + "--" + G.ExtendsIncompatibleEntities,
67044
67093
  message: `Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${a.name}" with id "${a.id}" but also extends entity "${l.name}" with id "${l.id}" which is incompatible`,
67045
67094
  issue: null,
67046
- severity: R.Error,
67095
+ severity: D.Error,
67047
67096
  code: G.ExtendsIncompatibleEntities,
67048
67097
  entity: r,
67049
67098
  firstRelationship: a,
@@ -67060,7 +67109,7 @@ function WJ(r, a, e = !1) {
67060
67109
  id: r.id + "--" + a.id + "--" + G.NonAbstractExtendingAbstractEntity,
67061
67110
  message: `Entity "${r.name}" with id "${r.id}" is not-abstract but is extending an abstract entity "${a.name}" with id "${a.id}"`,
67062
67111
  issue: null,
67063
- severity: R.Error,
67112
+ severity: D.Error,
67064
67113
  code: G.NonAbstractExtendingAbstractEntity,
67065
67114
  entity: r,
67066
67115
  firstRelationship: a
@@ -67072,7 +67121,7 @@ function WJ(r, a, e = !1) {
67072
67121
  id: r.id + "--" + a.id + "--" + G.AbstractExtendingNonAbstractEntity,
67073
67122
  message: `Entity "${r.name}" with id "${r.id}" is abstract but is extending an non-abstract entity "${a.name}" with id "${a.id}"`,
67074
67123
  issue: null,
67075
- severity: R.Error,
67124
+ severity: D.Error,
67076
67125
  code: G.AbstractExtendingNonAbstractEntity,
67077
67126
  entity: r,
67078
67127
  firstRelationship: a
@@ -67084,7 +67133,7 @@ function WJ(r, a, e = !1) {
67084
67133
  id: r.id + "--" + a.id + "--" + G.NonStaticExtendingStaticEntity,
67085
67134
  message: `Entity "${r.name}" with id "${r.id}" is not static but is extending a static entity "${a.name}" with id "${a.id}"`,
67086
67135
  issue: null,
67087
- severity: R.Error,
67136
+ severity: D.Error,
67088
67137
  code: G.NonStaticExtendingStaticEntity,
67089
67138
  entity: r,
67090
67139
  firstRelationship: a
@@ -67096,7 +67145,7 @@ function WJ(r, a, e = !1) {
67096
67145
  id: r.id + "--" + a.id + "--" + G.StaticExtendingNonStaticEntity,
67097
67146
  message: `Entity "${r.name}" with id "${r.id}" is static but is extending an non-static entity "${a.name}" with id "${a.id}"`,
67098
67147
  issue: null,
67099
- severity: R.Error,
67148
+ severity: D.Error,
67100
67149
  code: G.StaticExtendingNonStaticEntity,
67101
67150
  entity: r,
67102
67151
  firstRelationship: a
@@ -67108,7 +67157,7 @@ function WJ(r, a, e = !1) {
67108
67157
  id: r.id + "--" + a.id + "--" + G.ExtendingNonInteractiveEntity,
67109
67158
  message: `Entity "${r.name}" with id "${r.id}" is extending an non-interactive entity "${a.name}" with id "${a.id}"`,
67110
67159
  issue: null,
67111
- severity: R.Error,
67160
+ severity: D.Error,
67112
67161
  code: G.ExtendingNonInteractiveEntity,
67113
67162
  entity: r,
67114
67163
  firstRelationship: a
@@ -67129,7 +67178,7 @@ function WJ(r, a, e = !1) {
67129
67178
  id: r.id + "--" + T.id + "--" + h.id + "--" + G.ExtendsIncompatibleEntities,
67130
67179
  message: `Entity "${r.name}" with id "${r.id}" is extending built-in entity "${T.name}" with id "${T.id}" but also extends entity "${h.name}" with id "${h.id}" which is incompatible`,
67131
67180
  issue: null,
67132
- severity: R.Error,
67181
+ severity: D.Error,
67133
67182
  code: G.ExtendsIncompatibleEntities,
67134
67183
  entity: r,
67135
67184
  firstRelationship: T,
@@ -67149,7 +67198,7 @@ function WJ(r, a, e = !1) {
67149
67198
  id: r.id + "--" + C.id + "--" + M.id + "--" + G.ImplementsIncompatibleEntities,
67150
67199
  message: `Entity "${r.name}" with id "${r.id}" is extending built-in entity "${C.name}" with id "${C.id}" but also extends or implements entity "${M.name}" with id "${M.id}" which is incompatible`,
67151
67200
  issue: null,
67152
- severity: R.Error,
67201
+ severity: D.Error,
67153
67202
  code: G.ImplementsIncompatibleEntities,
67154
67203
  entity: r,
67155
67204
  firstRelationship: C,
@@ -67171,8 +67220,8 @@ function WJ(r, a, e = !1) {
67171
67220
  }
67172
67221
  )
67173
67222
  ));
67174
- let D = [...h.methods];
67175
- T && (D = D.filter(
67223
+ let R = [...h.methods];
67224
+ T && (R = R.filter(
67176
67225
  (M) => !a.methods.find(
67177
67226
  (x) => {
67178
67227
  var C;
@@ -67189,7 +67238,7 @@ function WJ(r, a, e = !1) {
67189
67238
  t.push(...O.errors);
67190
67239
  const V = fr(
67191
67240
  a.abstractMethods,
67192
- D,
67241
+ R,
67193
67242
  L.MethodOverwritesOtherExtendedEntitysMethodWithSameImplementation,
67194
67243
  L.MethodOverwritesOtherExtendedEntitysMethodWithSameName
67195
67244
  );
@@ -67206,7 +67255,7 @@ function WJ(r, a, e = !1) {
67206
67255
  id: r.id + "--" + T.id + "--" + h.id + "--" + G.ImplementsIncompatibleEntities,
67207
67256
  message: `Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${T.name}" with id "${T.id}" but also implements entity "${h.name}" with id "${h.id}" which is incompatible`,
67208
67257
  issue: null,
67209
- severity: R.Error,
67258
+ severity: D.Error,
67210
67259
  code: G.ImplementsIncompatibleEntities,
67211
67260
  entity: r,
67212
67261
  firstRelationship: T,
@@ -67216,21 +67265,21 @@ function WJ(r, a, e = !1) {
67216
67265
  }
67217
67266
  });
67218
67267
  } else {
67219
- Jt(h).forEach((D) => {
67268
+ Jt(h).forEach((R) => {
67220
67269
  const O = i.filter(
67221
- (V) => V.id !== D.id
67270
+ (V) => V.id !== R.id
67222
67271
  );
67223
67272
  O.length && O.forEach((V) => {
67224
- if (V.id !== D.id) {
67273
+ if (V.id !== R.id) {
67225
67274
  const M = new Ye({
67226
- id: r.id + "--" + V.id + "--" + D.id + "--" + G.ImplementsIncompatibleEntities,
67227
- message: `Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${V.name}" with id "${V.id}" but also implements entity "${D.name}" with id "${D.id}" which is incompatible`,
67275
+ id: r.id + "--" + V.id + "--" + R.id + "--" + G.ImplementsIncompatibleEntities,
67276
+ message: `Entity "${r.name}" with id "${r.id}" is implementing built-in entity "${V.name}" with id "${V.id}" but also implements entity "${R.name}" with id "${R.id}" which is incompatible`,
67228
67277
  issue: null,
67229
- severity: R.Error,
67278
+ severity: D.Error,
67230
67279
  code: G.ImplementsIncompatibleEntities,
67231
67280
  entity: r,
67232
67281
  firstRelationship: V,
67233
- secondRelationship: D
67282
+ secondRelationship: R
67234
67283
  });
67235
67284
  t.push(M);
67236
67285
  }
@@ -67275,7 +67324,7 @@ function WJ(r, a, e = !1) {
67275
67324
  id: r.id + "--" + a.id + "--" + h.id + "--" + G.ImplementsIncompatibleEntities,
67276
67325
  message: `Entity "${r.name}" with id "${r.id}" is extending built-in entity "${a.name}" with id "${a.id}" but also extends entity "${h.name}" with id "${h.id}" which is incompatible`,
67277
67326
  issue: null,
67278
- severity: R.Error,
67327
+ severity: D.Error,
67279
67328
  code: G.ImplementsIncompatibleEntities,
67280
67329
  entity: r,
67281
67330
  firstRelationship: a,
@@ -67293,7 +67342,7 @@ function zJ(r) {
67293
67342
  id: r.id + "--" + e.id + "--" + G.StaticImplementingNonStaticEntity,
67294
67343
  message: `Entity "${r.name}" with id "${r.id}" is static but implements entity "${e.name}" with id "${e.id}" which is non-static`,
67295
67344
  issue: null,
67296
- severity: R.Error,
67345
+ severity: D.Error,
67297
67346
  code: G.StaticImplementingNonStaticEntity,
67298
67347
  entity: r,
67299
67348
  firstRelationship: e
@@ -67306,7 +67355,7 @@ function zJ(r) {
67306
67355
  id: r.id + "--" + e.id + "--" + G.StaticExtendingNonStaticEntity,
67307
67356
  message: `Entity "${r.name}" with id "${r.id}" is static but extends entity "${e.name}" with id "${e.id}" which is non-static`,
67308
67357
  issue: null,
67309
- severity: R.Error,
67358
+ severity: D.Error,
67310
67359
  code: G.StaticExtendingNonStaticEntity,
67311
67360
  entity: r,
67312
67361
  firstRelationship: e
@@ -67322,7 +67371,7 @@ function YJ(r) {
67322
67371
  id: r.id + "--" + G.AbstractEntityImplements,
67323
67372
  message: `Entity "${r.name}" with id "${r.id}" cannot be marked as abstract because it implements other entities`,
67324
67373
  issue: null,
67325
- severity: R.Error,
67374
+ severity: D.Error,
67326
67375
  code: G.AbstractEntityImplements,
67327
67376
  entity: r
67328
67377
  });
@@ -67334,7 +67383,7 @@ function YJ(r) {
67334
67383
  id: r.id + "--" + e.id + "--" + G.AbstractExtendingNonAbstractEntity,
67335
67384
  message: `Entity "${r.name}" with id "${r.id}" is abstract but extends entity "${e.name}" with id "${e.id}" which is non-abstract`,
67336
67385
  issue: null,
67337
- severity: R.Error,
67386
+ severity: D.Error,
67338
67387
  code: G.AbstractExtendingNonAbstractEntity,
67339
67388
  entity: r,
67340
67389
  firstRelationship: e
@@ -67351,7 +67400,7 @@ function HJ(r) {
67351
67400
  id: r.id + "--" + e.id + "--" + G.NonStaticExtendingStaticEntity,
67352
67401
  message: `Entity "${r.name}" with id "${r.id}" is non-static but extends entity "${e.name}" with id "${e.id}" which is static`,
67353
67402
  issue: null,
67354
- severity: R.Error,
67403
+ severity: D.Error,
67355
67404
  code: G.NonStaticExtendingStaticEntity,
67356
67405
  entity: r,
67357
67406
  firstRelationship: e
@@ -67368,7 +67417,7 @@ function KJ(r) {
67368
67417
  id: r.id + "--" + e.id + "--" + G.NonAbstractExtendingAbstractEntity,
67369
67418
  message: `Entity "${r.name}" with id "${r.id}" is non-abstract but extends entity "${e.name}" with id "${e.id}" which is abstract`,
67370
67419
  issue: null,
67371
- severity: R.Error,
67420
+ severity: D.Error,
67372
67421
  code: G.NonAbstractExtendingAbstractEntity,
67373
67422
  entity: r,
67374
67423
  firstRelationship: e
@@ -67397,7 +67446,7 @@ function SJ(r, a) {
67397
67446
  new w({
67398
67447
  id: `${r.id}--${r.parent}--${b.SelfReference}`,
67399
67448
  code: b.SelfReference,
67400
- severity: R.Error,
67449
+ severity: D.Error,
67401
67450
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to itself at 'parent'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,
67402
67451
  issue: null
67403
67452
  })
@@ -67410,7 +67459,7 @@ function SJ(r, a) {
67410
67459
  new w({
67411
67460
  id: `${r.id}--${r.parent}--${b.InvalidParentReference}`,
67412
67461
  code: b.InvalidParentReference,
67413
- severity: R.Error,
67462
+ severity: D.Error,
67414
67463
  message: `Entity of type "${r.type}" with id "${r.id}", has a parent reference that isn't pointing to an entity of type 'project' or 'data-type'.`,
67415
67464
  issue: null
67416
67465
  })
@@ -67418,7 +67467,7 @@ function SJ(r, a) {
67418
67467
  new w({
67419
67468
  id: `${r.id}--${r.parent}--${b.ReferencedEntityNotFound}`,
67420
67469
  code: b.ReferencedEntityNotFound,
67421
- severity: R.Error,
67470
+ severity: D.Error,
67422
67471
  message: `Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${r.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
67423
67472
  issue: null
67424
67473
  })
@@ -67430,7 +67479,7 @@ function SJ(r, a) {
67430
67479
  new w({
67431
67480
  id: `${r.id}--${t}--${b.SelfReference}`,
67432
67481
  code: b.SelfReference,
67433
- severity: R.Error,
67482
+ severity: D.Error,
67434
67483
  message: `Entity of type "${r.type}" with id "${r.id}", has a reference to itself at one of the 'implements' references. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,
67435
67484
  issue: null
67436
67485
  })
@@ -67444,7 +67493,7 @@ function SJ(r, a) {
67444
67493
  new w({
67445
67494
  id: `${r.id}--${t}--${b.InvalidImplementsReference}`,
67446
67495
  code: b.InvalidImplementsReference,
67447
- severity: R.Error,
67496
+ severity: D.Error,
67448
67497
  message: `Entity of type "${r.type}" with id "${r.id}", has an 'implements' reference that isn't pointing to an abstract entity.`,
67449
67498
  issue: null
67450
67499
  })
@@ -67452,7 +67501,7 @@ function SJ(r, a) {
67452
67501
  new w({
67453
67502
  id: `${r.id}--${t}--${b.InvalidImplementsReference}`,
67454
67503
  code: b.InvalidImplementsReference,
67455
- severity: R.Error,
67504
+ severity: D.Error,
67456
67505
  message: `Entity of type "${r.type}" with id "${r.id}", has an 'implements' reference that isn't pointing to an entity of type 'definition-entity' or 'built-in-base-entity'.`,
67457
67506
  issue: null
67458
67507
  })
@@ -67460,7 +67509,7 @@ function SJ(r, a) {
67460
67509
  new w({
67461
67510
  id: `${r.id}--${t}--${b.ReferencedEntityNotFound}`,
67462
67511
  code: b.ReferencedEntityNotFound,
67463
- severity: R.Error,
67512
+ severity: D.Error,
67464
67513
  message: `Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${t}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
67465
67514
  issue: null
67466
67515
  })
@@ -67469,7 +67518,7 @@ function SJ(r, a) {
67469
67518
  new w({
67470
67519
  id: `${r.id}--${L.InvalidObjectStructure}`,
67471
67520
  code: L.InvalidObjectStructure,
67472
- severity: R.Error,
67521
+ severity: D.Error,
67473
67522
  message: `Entity of type "${r.type}" with id "${r.id}", has an 'implements' property that isn't an array.`,
67474
67523
  issue: null
67475
67524
  })
@@ -67481,7 +67530,7 @@ function SJ(r, a) {
67481
67530
  new w({
67482
67531
  id: `${r.id}--${t}--${b.InvalidExtendsReference}`,
67483
67532
  code: b.InvalidExtendsReference,
67484
- severity: R.Error,
67533
+ severity: D.Error,
67485
67534
  message: `Entity of type "${r.type}" with id "${r.id}", has an 'extends' reference that isn't pointing to a non-abstract entity. Did you want to use the property 'implements', which holds a list of references to absract entities, instead?`,
67486
67535
  issue: null
67487
67536
  })
@@ -67489,7 +67538,7 @@ function SJ(r, a) {
67489
67538
  new w({
67490
67539
  id: `${r.id}--${t}--${b.InvalidExtendsReference}`,
67491
67540
  code: b.InvalidExtendsReference,
67492
- severity: R.Error,
67541
+ severity: D.Error,
67493
67542
  message: `Entity of type "${r.type}" with id "${r.id}", has an 'extends' reference that isn't pointing to an entity of type 'definition-entity' or 'built-in-base-entity'.`,
67494
67543
  issue: null
67495
67544
  })
@@ -67497,7 +67546,7 @@ function SJ(r, a) {
67497
67546
  new w({
67498
67547
  id: `${r.id}--${t}--${b.ReferencedEntityNotFound}`,
67499
67548
  code: b.ReferencedEntityNotFound,
67500
- severity: R.Error,
67549
+ severity: D.Error,
67501
67550
  message: `Entity of type "${r.type}" with id "${r.id}", is referencing an entity with id "${t}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
67502
67551
  issue: null
67503
67552
  })
@@ -67632,7 +67681,7 @@ const Le = class Le extends st {
67632
67681
  new w({
67633
67682
  id: `${e.id}--${b.NewEntityWouldOverriteExisting}`,
67634
67683
  code: b.NewEntityWouldOverriteExisting,
67635
- severity: R.Error,
67684
+ severity: D.Error,
67636
67685
  message: `The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${u.id}' because it already has an 'entity' child. Data type entities can only have one 'entity' as children.
67637
67686
  You can inspect the existing 'entity' field with the 'describe_entity' action. Like so:
67638
67687
  ${Ki(
@@ -67752,7 +67801,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
67752
67801
  new w({
67753
67802
  id: `${this.id}--${b.InvalidParentUpdate}`,
67754
67803
  code: b.InvalidParentUpdate,
67755
- severity: R.Error,
67804
+ severity: D.Error,
67756
67805
  message: `Entity of type '${this.type}' with id '${this.id}' cannot have the 'parent' property updated. The 'parent' on an '${this.type}', must be the root project as it is a globally declared entity.`,
67757
67806
  issue: null
67758
67807
  })
@@ -68002,9 +68051,9 @@ Alternatively you can update the parent data-type entity with 'update' action to
68002
68051
  updated: c,
68003
68052
  added: T,
68004
68053
  removed: E,
68005
- affected: D
68054
+ affected: R
68006
68055
  } = this.addExtendedProperties(e);
68007
- t.push(...c), i.push(...T), s.push(...E), l.push(...D);
68056
+ t.push(...c), i.push(...T), s.push(...E), l.push(...R);
68008
68057
  const {
68009
68058
  updated: O,
68010
68059
  added: V,
@@ -68246,8 +68295,8 @@ Alternatively you can update the parent data-type entity with 'update' action to
68246
68295
  ];
68247
68296
  return d.filter((c) => !u.find(
68248
68297
  (E) => {
68249
- var D;
68250
- return ((D = E.implements) == null ? void 0 : D.id) === c.id;
68298
+ var R;
68299
+ return ((R = E.implements) == null ? void 0 : R.id) === c.id;
68251
68300
  }
68252
68301
  )).forEach((c) => {
68253
68302
  if (this.methods.find(
@@ -68282,8 +68331,8 @@ Alternatively you can update the parent data-type entity with 'update' action to
68282
68331
  ), e == null || e.add(this, I.Updated);
68283
68332
  return;
68284
68333
  }
68285
- const D = c.implementAsFunctionDeclaration(e, this);
68286
- i.push(D), e == null || e.add(D, I.Added), this.addMethod(D);
68334
+ const R = c.implementAsFunctionDeclaration(e, this);
68335
+ i.push(R), e == null || e.add(R, I.Added), this.addMethod(R);
68287
68336
  }), e == null || e.attemptAutoclose("sync-implementation-methods", this.id), {
68288
68337
  updated: p(t),
68289
68338
  added: p(i),
@@ -68312,8 +68361,8 @@ Alternatively you can update the parent data-type entity with 'update' action to
68312
68361
  return d.filter(
68313
68362
  (c) => !u.find(
68314
68363
  (E) => {
68315
- var D;
68316
- return ((D = E.implements) == null ? void 0 : D.id) === c.id;
68364
+ var R;
68365
+ return ((R = E.implements) == null ? void 0 : R.id) === c.id;
68317
68366
  }
68318
68367
  )
68319
68368
  ).forEach((c) => {
@@ -68331,12 +68380,12 @@ Alternatively you can update the parent data-type entity with 'update' action to
68331
68380
  E.implements = c, E.abstract = !1;
68332
68381
  return;
68333
68382
  }
68334
- const D = c.clone(
68383
+ const R = c.clone(
68335
68384
  e,
68336
68385
  this,
68337
68386
  y.UUID.uuid()
68338
68387
  );
68339
- D.initChildren(e), i.push(D), e == null || e.add(D, I.Added), D.setImplements(c, e), D.metaSync({ abstract: !1 }, e), this.addProperty(D);
68388
+ R.initChildren(e), i.push(R), e == null || e.add(R, I.Added), R.setImplements(c, e), R.metaSync({ abstract: !1 }, e), this.addProperty(R);
68340
68389
  }), e == null || e.attemptAutoclose("sync-implementation-properties", this.id), {
68341
68390
  updated: p(t),
68342
68391
  added: p(i),
@@ -68396,8 +68445,8 @@ Alternatively you can update the parent data-type entity with 'update' action to
68396
68445
  )) {
68397
68446
  const t = [], i = [], s = [], l = [], o = this.properties, d = this.extendedPropertiesFromOriginalParents, u = d.filter((c) => d.find(
68398
68447
  (E) => {
68399
- var D;
68400
- return ((D = E.implements) == null ? void 0 : D.id) === c.id;
68448
+ var R;
68449
+ return ((R = E.implements) == null ? void 0 : R.id) === c.id;
68401
68450
  }
68402
68451
  ) ? !1 : !c.abstract), h = new Set(o.map((c) => c.name));
68403
68452
  return u.forEach((c) => {
@@ -68928,7 +68977,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
68928
68977
  )
68929
68978
  );
68930
68979
  c.methods = E;
68931
- const D = (M = this.abstractMethods) == null ? void 0 : M.map(
68980
+ const R = (M = this.abstractMethods) == null ? void 0 : M.map(
68932
68981
  (x, C) => x.clone(
68933
68982
  e,
68934
68983
  c,
@@ -68936,7 +68985,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
68936
68985
  s
68937
68986
  )
68938
68987
  );
68939
- return c.abstractMethods = D, e == null || e.attemptAutoclose("clone-entity", this.id), c;
68988
+ return c.abstractMethods = R, e == null || e.attemptAutoclose("clone-entity", this.id), c;
68940
68989
  }
68941
68990
  getFunctionDeclaration(e) {
68942
68991
  return this.methods.find((t) => t.id === e);
@@ -69007,12 +69056,12 @@ Alternatively you can update the parent data-type entity with 'update' action to
69007
69056
  );
69008
69057
  if (!T)
69009
69058
  return;
69010
- const D = $n(
69059
+ const R = $n(
69011
69060
  c.parent
69012
69061
  ).getMasterInputWithValueWritterFromAllInstances(
69013
69062
  c
69014
69063
  ), O = xi(
69015
- D,
69064
+ R,
69016
69065
  t
69017
69066
  ), V = O == null ? void 0 : O.clone(
69018
69067
  t,
@@ -69121,11 +69170,11 @@ Alternatively you can update the parent data-type entity with 'update' action to
69121
69170
  implements: null,
69122
69171
  dataType: null,
69123
69172
  parent: this.toReference()
69124
- }, D = P(
69173
+ }, R = P(
69125
69174
  E,
69126
69175
  this.project
69127
69176
  );
69128
- D.setParent(this, t), D.initChildren(t), t == null || t.add(D, I.Added);
69177
+ R.setParent(this, t), R.initChildren(t), t == null || t.add(R, I.Added);
69129
69178
  const V = $n(
69130
69179
  c.parent
69131
69180
  ).getMasterInputWithValueWritterFromAllInstances(
@@ -69134,16 +69183,16 @@ Alternatively you can update the parent data-type entity with 'update' action to
69134
69183
  V
69135
69184
  ), x = M == null ? void 0 : M.clone(
69136
69185
  t,
69137
- D,
69186
+ R,
69138
69187
  y.UUID.uuid(),
69139
69188
  !0
69140
69189
  );
69141
69190
  if (x) {
69142
- const S = (Z = D.dataType) == null ? void 0 : Z.merge(
69191
+ const S = (Z = R.dataType) == null ? void 0 : Z.merge(
69143
69192
  x,
69144
69193
  t
69145
69194
  );
69146
- D.dataType && (S == null ? void 0 : S.self.id) !== D.dataType.id && D.dataType.remove(
69195
+ R.dataType && (S == null ? void 0 : S.self.id) !== R.dataType.id && R.dataType.remove(
69147
69196
  { ignoreUpstream: !1 },
69148
69197
  t
69149
69198
  ), x.id !== ((q = S == null ? void 0 : S.self) == null ? void 0 : q.id) && x.remove({ ignoreUpstream: !1 }, t), S != null && S.self && (S.self.metaSync(
@@ -69155,9 +69204,9 @@ Alternatively you can update the parent data-type entity with 'update' action to
69155
69204
  ), t == null || t.add(
69156
69205
  S.self,
69157
69206
  I.Added
69158
- ), D.setDataType(S.self), t == null || t.add(D, I.Updated));
69207
+ ), R.setDataType(S.self), t == null || t.add(R, I.Updated));
69159
69208
  }
69160
- return this.addProperty(D), c.setDeclaration(D), t == null || t.add(c, I.Updated), D;
69209
+ return this.addProperty(R), c.setDeclaration(R), t == null || t.add(c, I.Updated), R;
69161
69210
  }), t == null || t.attemptAutoclose("infer-definition-entity-from-inputs", this.id), {
69162
69211
  added: p(i),
69163
69212
  updated: p(s),
@@ -72012,12 +72061,12 @@ class lq extends We {
72012
72061
  added: c,
72013
72062
  updated: T,
72014
72063
  removed: E,
72015
- affected: D
72064
+ affected: R
72016
72065
  } = this.syncEntityToMatchInputMapDataType(
72017
72066
  d,
72018
72067
  t
72019
72068
  );
72020
- i.push(...T), s.push(...c), l.push(...E), o.push(...D);
72069
+ i.push(...T), s.push(...c), l.push(...E), o.push(...R);
72021
72070
  }
72022
72071
  const u = this.getDataToValidateInputMap(e);
72023
72072
  if (u) {
@@ -72025,12 +72074,12 @@ class lq extends We {
72025
72074
  added: c,
72026
72075
  updated: T,
72027
72076
  removed: E,
72028
- affected: D
72077
+ affected: R
72029
72078
  } = this.syncDataToValidateInputMapDataType(
72030
72079
  u,
72031
72080
  t
72032
72081
  );
72033
- i.push(...T), s.push(...c), l.push(...E), o.push(...D);
72082
+ i.push(...T), s.push(...c), l.push(...E), o.push(...R);
72034
72083
  }
72035
72084
  const h = this.getOutputDataOutputMap(e);
72036
72085
  if (h) {
@@ -72038,9 +72087,9 @@ class lq extends We {
72038
72087
  added: c,
72039
72088
  updated: T,
72040
72089
  removed: E,
72041
- affected: D
72090
+ affected: R
72042
72091
  } = this.syncOutputDataOutputMapDataType(h, t);
72043
- i.push(...T), s.push(...c), l.push(...E), o.push(...D);
72092
+ i.push(...T), s.push(...c), l.push(...E), o.push(...R);
72044
72093
  }
72045
72094
  return t == null || t.attemptAutoclose(
72046
72095
  "sync-operation-instance-validate-data",
@@ -72184,7 +72233,7 @@ class lq extends We {
72184
72233
  self: null
72185
72234
  };
72186
72235
  if (!e.dataType) {
72187
- const D = {
72236
+ const R = {
72188
72237
  id: y.UUID.uuid(),
72189
72238
  version: y.UUID.uuid(),
72190
72239
  createdAt: (t == null ? void 0 : t.timestamp) || (/* @__PURE__ */ new Date()).toISOString(),
@@ -72207,7 +72256,7 @@ class lq extends We {
72207
72256
  inferred: !0,
72208
72257
  parent: e.toReference()
72209
72258
  }, O = P(
72210
- D,
72259
+ R,
72211
72260
  e.project
72212
72261
  );
72213
72262
  O.setParent(e, t), O.initChildren(t), t == null || t.add(O, I.Added), i.push(O), e.setDataType(O);
@@ -72289,7 +72338,7 @@ class lq extends We {
72289
72338
  self: null
72290
72339
  };
72291
72340
  if (!e.dataType) {
72292
- const D = {
72341
+ const R = {
72293
72342
  id: y.UUID.uuid(),
72294
72343
  version: y.UUID.uuid(),
72295
72344
  createdAt: (t == null ? void 0 : t.timestamp) || (/* @__PURE__ */ new Date()).toISOString(),
@@ -72312,7 +72361,7 @@ class lq extends We {
72312
72361
  inferred: !0,
72313
72362
  parent: e.toReference()
72314
72363
  }, O = P(
72315
- D,
72364
+ R,
72316
72365
  e.project
72317
72366
  );
72318
72367
  O.setParent(e, t), O.initChildren(t), t == null || t.add(O, I.Added), i.push(O), e.setDataType(O);
@@ -72550,7 +72599,7 @@ function Tq(r, a) {
72550
72599
  id: r.id + "--status-code-must-be-number",
72551
72600
  message: `Entity of type ${r.type} with id "${r.id}" has an invalid value "${a}". The value must be a number.`,
72552
72601
  issue: null,
72553
- severity: R.Error,
72602
+ severity: D.Error,
72554
72603
  code: "status-code-must-be-number",
72555
72604
  entity: r
72556
72605
  });
@@ -72564,7 +72613,7 @@ function Tq(r, a) {
72564
72613
  id: r.id + "--status-code-must-be-between-100-and-599",
72565
72614
  message: `Entity of type ${r.type} with id "${r.id}" has an invalid value "${a}". The value must be a number between 100 and 599.`,
72566
72615
  issue: null,
72567
- severity: R.Error,
72616
+ severity: D.Error,
72568
72617
  code: "status-code-must-be-between-100-and-599",
72569
72618
  entity: r
72570
72619
  });
@@ -72575,7 +72624,7 @@ function Tq(r, a) {
72575
72624
  id: r.id + "--status-code-must-be-between-100-and-599",
72576
72625
  message: `Entity of type ${r.type} with id "${r.id}" has an invalid value "${a}". The value must be a number between 100 and 599.`,
72577
72626
  issue: null,
72578
- severity: R.Error,
72627
+ severity: D.Error,
72579
72628
  code: "status-code-must-be-between-100-and-599",
72580
72629
  entity: r
72581
72630
  });
@@ -73118,7 +73167,7 @@ export {
73118
73167
  Eq as EndpointEntity,
73119
73168
  iq as EntityAction,
73120
73169
  Ye as EntityError,
73121
- R as EntityErrorSeverity,
73170
+ D as EntityErrorSeverity,
73122
73171
  w as EntityGenerationError,
73123
73172
  b as EntityGenerationErrorCode,
73124
73173
  G as EntityInstanceErrorCode,