@elyx-code/project-logic-tree 0.0.6266 → 0.0.6268

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -25046,7 +25046,7 @@ var vm = { exports: {} };
25046
25046
  return me === void 0;
25047
25047
  } }, Z = "en", q = {};
25048
25048
  q[Z] = L;
25049
- var X = "$isDayjsObject", ue = function(me) {
25049
+ var X = "$isDayjsObject", de = function(me) {
25050
25050
  return me instanceof Nt || !(!me || !me[X]);
25051
25051
  }, ye = function me(te, z, le) {
25052
25052
  var Q;
@@ -25064,12 +25064,12 @@ var vm = { exports: {} };
25064
25064
  }
25065
25065
  return !le && Q && (Z = Q), Q || !le && Z;
25066
25066
  }, H = function(me, te) {
25067
- if (ue(me))
25067
+ if (de(me))
25068
25068
  return me.clone();
25069
25069
  var z = typeof te == "object" ? te : {};
25070
25070
  return z.date = me, z.args = arguments, new Nt(z);
25071
25071
  }, ae = $;
25072
- ae.l = ye, ae.i = ue, ae.w = function(me, te) {
25072
+ ae.l = ye, ae.i = de, ae.w = function(me, te) {
25073
25073
  return H(me, { locale: te.$L, utc: te.$u, x: te.$x, $offset: te.$offset });
25074
25074
  };
25075
25075
  var Nt = function() {
@@ -25304,7 +25304,7 @@ var vm = { exports: {} };
25304
25304
  };
25305
25305
  }), H.extend = function(me, te) {
25306
25306
  return me.$i || (me(te, Nt, H), me.$i = !0), H;
25307
- }, H.locale = ye, H.isDayjs = ue, H.unix = function(me) {
25307
+ }, H.locale = ye, H.isDayjs = de, H.unix = function(me) {
25308
25308
  return H(1e3 * me);
25309
25309
  }, H.en = q[Z], H.Ls = q, H.p = {}, H;
25310
25310
  });
@@ -25381,7 +25381,7 @@ function Yq(r) {
25381
25381
  const a = /* @__PURE__ */ new Set();
25382
25382
  return r.filter((e) => a.has(e.id) ? !1 : (a.add(e.id), !0));
25383
25383
  }
25384
- function de(r) {
25384
+ function ue(r) {
25385
25385
  const a = r.entity.errors.find((t) => t.id === r.id);
25386
25386
  return a ? { new: !1, error: a } : { new: !0, error: new Ye(r) };
25387
25387
  }
@@ -29972,7 +29972,7 @@ function g0(r) {
29972
29972
  (l = r.dataType) == null || l.validate();
29973
29973
  const s = [...i];
29974
29974
  if (r.id === "80c86e1b-caca-4ba5-9b1f-38f72d10e4a3") {
29975
- const o = de({
29975
+ const o = ue({
29976
29976
  id: `${r.id}--${G.PropertyImplementsNonAbstact}`,
29977
29977
  message: `Property "${F(r, r.project)}" with id "${r.id}" implements a non-abstract property "${F(
29978
29978
  r,
@@ -29993,7 +29993,7 @@ function k0(r) {
29993
29993
  return a;
29994
29994
  const e = r.implements;
29995
29995
  if (!e.abstract) {
29996
- const i = de({
29996
+ const i = ue({
29997
29997
  id: `${r.id}--${G.PropertyImplementsNonAbstact}`,
29998
29998
  message: `Property "${F(r, r.project)}" with id "${r.id}" implements a non-abstract property "${F(
29999
29999
  e,
@@ -30007,7 +30007,7 @@ function k0(r) {
30007
30007
  a.push(i.error);
30008
30008
  }
30009
30009
  if (r.static && !e.static) {
30010
- const i = de({
30010
+ const i = ue({
30011
30011
  id: `${r.id}--${G.NonStaticPropertyImplementsStatic}`,
30012
30012
  message: `Static property "${F(
30013
30013
  r,
@@ -30024,7 +30024,7 @@ function k0(r) {
30024
30024
  a.push(i.error);
30025
30025
  }
30026
30026
  if (!r.static && e.static) {
30027
- const i = de({
30027
+ const i = ue({
30028
30028
  id: `${r.id}--${G.StaticPropertyImplementsNonStatic}`,
30029
30029
  message: `Non-static property "${F(
30030
30030
  r,
@@ -30044,7 +30044,7 @@ function k0(r) {
30044
30044
  r.dataType,
30045
30045
  e.dataType
30046
30046
  )) {
30047
- const i = de({
30047
+ const i = ue({
30048
30048
  id: `${r.id}--${G.PropertyImplementsIncompatibleType}`,
30049
30049
  message: `Property "${F(r, r.project)}" with id "${r.id}" implements a property "${F(
30050
30050
  e,
@@ -30916,7 +30916,7 @@ ${Ul}`,
30916
30916
  captureVersion() {
30917
30917
  var t;
30918
30918
  const e = ((t = this.knownVersions) == null ? void 0 : t.get(this.version)) || new be(this, this.project);
30919
- return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.defaultValue = this.defaultValue, e.dataType = this.dataType, e.implements = this.implements, e.parent = this.parent, this;
30919
+ return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.defaultValue = this.defaultValue, e.dataType = this.dataType, e.implements = this.implements, e.extends = this.extends, e.parent = this.parent, this;
30920
30920
  }
30921
30921
  // Traverses upstream entities and captures their versions as well
30922
30922
  recursiveCaptureUpstreamVersions(e) {
@@ -31684,26 +31684,12 @@ function J0(r) {
31684
31684
  const i = i7(r), s = r7(r), l = ui(r);
31685
31685
  r.inputs.forEach((d) => d.validate()), l.forEach((d) => d.validate());
31686
31686
  const o = [...i, ...s];
31687
- if (r.id === "getCompanyByIdEndpointReachedEntityEvent") {
31688
- const d = de({
31689
- id: `${r.id}--${G.PropertyImplementsNonAbstact}`,
31690
- message: `Property "${F(r, r.project)}" with id "${r.id}" implements a non-abstract property "${F(
31691
- r,
31692
- r.project
31693
- )}" with id "${r.id}".`,
31694
- issue: null,
31695
- severity: D.Error,
31696
- code: G.PropertyImplementsNonAbstact,
31697
- entity: r
31698
- });
31699
- o.push(d.error);
31700
- }
31701
31687
  return Se(r.errors, o);
31702
31688
  }
31703
31689
  function i7(r) {
31704
31690
  const a = [];
31705
- if (!r.calls.length) {
31706
- const e = de({
31691
+ if (!r.calls.length && !r.extends) {
31692
+ const e = ue({
31707
31693
  id: `${r.id}--${G.ScopeWithoutLogic}`,
31708
31694
  message: `Action "${F(r, r.project)}" with id "${r.id}" does not have any logic defined. So it doesn't do anything.`,
31709
31695
  issue: null,
@@ -32127,7 +32113,7 @@ Please consider than any updates might affect the overlap with the signature of
32127
32113
  captureVersion() {
32128
32114
  var t;
32129
32115
  const e = ((t = this.knownVersions) == null ? void 0 : t.get(this.version)) || new Re(this, this.project);
32130
- return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.inputs = this.inputs, e.calls = this.calls, e.implements = this.implements, e.detachedChildren = this.detachedChildren, e.parent = this.parent, this;
32116
+ return e.metaSync(this.toMeta(), null), this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, e) : /* @__PURE__ */ new Map([[this.version, e]]), e.inputs = this.inputs, e.calls = this.calls, e.implements = this.implements, e.extends = this.extends, e.detachedChildren = this.detachedChildren, e.parent = this.parent, this;
32131
32117
  }
32132
32118
  // Traverses upstream entities and captures their versions as well
32133
32119
  recursiveCaptureUpstreamVersions(e) {
@@ -32822,32 +32808,33 @@ Please consider than any updates might affect the overlap with the signature of
32822
32808
  "clone-entity"
32823
32809
  )
32824
32810
  ), t = null, i = null, s = !0, l = !1) {
32825
- var O;
32811
+ var E;
32826
32812
  let o = yt(t, this);
32827
32813
  const d = this.toJSON(), u = i || y.UUID.uuid();
32828
- d.inputs = [], d.calls = [];
32829
- const f = u.split("-id"), c = f[f.length - 1 || 0] || u;
32830
- d.id = u, d.version = y.UUID.uuid(), d.createdAt = (e == null ? void 0 : e.timestamp) || v().toISOString(), d.author = (e == null ? void 0 : e.author) || "1", d.previousVersion = null, d.deleted = !1;
32831
- const T = rt(
32814
+ d.inputs = [], d.calls = [], d.id = u, d.version = y.UUID.uuid(), d.createdAt = (e == null ? void 0 : e.timestamp) || v().toISOString(), d.author = (e == null ? void 0 : e.author) || "1", d.previousVersion = null, d.deleted = !1;
32815
+ const f = rt(
32832
32816
  d,
32833
32817
  o
32834
32818
  );
32835
- t ? T.setParent(t, null) : T.setParent(this.parent, null), s && T.subscribe(), T.initChildren(e), e == null || e.add(T, I.Added);
32836
- const E = (O = this.inputs) == null ? void 0 : O.map(
32837
- (V, M) => V.clone(
32819
+ t ? f.setParent(t, null) : f.setParent(this.parent, null), s && f.subscribe(), f.initChildren(e), e == null || e.add(f, I.Added);
32820
+ const c = (E = this.inputs) == null ? void 0 : E.map(
32821
+ (R) => R.clone(
32838
32822
  e,
32839
- T,
32840
- c + "-argument-declaration-" + M + "-id",
32823
+ f,
32824
+ y.UUID.uuid(),
32825
+ // parentIdPrefix + '-argument-declaration-' + index + '-id',
32841
32826
  s
32842
32827
  )
32843
32828
  );
32844
- return T.inputs = E, l ? (ui(this).map(
32845
- (V, M) => V.clone(
32829
+ return f.inputs = c, l ? (ui(this).map(
32830
+ (R) => R.clone(
32846
32831
  e,
32847
- T,
32848
- c + "-body-entity-" + M + "-id"
32832
+ f,
32833
+ y.UUID.uuid(),
32834
+ // parentIdPrefix + '-body-entity-' + index + '-id'
32835
+ s
32849
32836
  )
32850
- ), e == null || e.attemptAutoclose("clone-entity", this.id), T) : (e == null || e.attemptAutoclose("clone-entity", this.id), T);
32837
+ ), e == null || e.attemptAutoclose("clone-entity", this.id), f) : (e == null || e.attemptAutoclose("clone-entity", this.id), f);
32851
32838
  }
32852
32839
  getVariableInstances() {
32853
32840
  return He(this).filter(
@@ -33023,7 +33010,7 @@ function q0(r) {
33023
33010
  a.safeParse(e).success;
33024
33011
  const i = [];
33025
33012
  if (r.entity && r.andChildrenGroup || r.entity && r.orChildrenGroup || r.andChildrenGroup && r.orChildrenGroup) {
33026
- const s = de({
33013
+ const s = ue({
33027
33014
  id: r.id + "--" + G.InvalidPropertiesCombination,
33028
33015
  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'`,
33029
33016
  issue: null,
@@ -34405,7 +34392,7 @@ function z0(r) {
34405
34392
  a.safeParse(e).success;
34406
34393
  const i = a7(r), s = xr(r), l = [...i, ...s];
34407
34394
  if (r.id === "exec-sequentially-operation-call-id") {
34408
- const d = de({
34395
+ const d = ue({
34409
34396
  id: `${r.id}--${G.PropertyImplementsNonAbstact}`,
34410
34397
  message: `Property "${F(r, r.project)}" with id "${r.id}" implements a non-abstract property "${F(
34411
34398
  r,
@@ -35949,7 +35936,7 @@ function Y0(r) {
35949
35936
  a.safeParse(e).success, (s = r.dataType) == null || s.validate();
35950
35937
  const i = [];
35951
35938
  if (r.id === "iterate-over-employee-list-continue-statement-employee-dto-output-decl-id") {
35952
- const l = de({
35939
+ const l = ue({
35953
35940
  id: `${r.id}--${G.PropertyImplementsNonAbstact}`,
35954
35941
  message: `Property "${F(r, r.project)}" with id "${r.id}" implements a non-abstract property "${F(
35955
35942
  r,
@@ -43237,12 +43224,12 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
43237
43224
  f.sort((O, V) => O.index - V.index), f.forEach((O) => {
43238
43225
  const V = O.getDataType(e);
43239
43226
  let L = c.find(
43240
- (ue) => F(ue, this.project) === oe.fromReturnDeclarationToBodyArgumentDeclarationName(
43227
+ (de) => F(de, this.project) === oe.fromReturnDeclarationToBodyArgumentDeclarationName(
43241
43228
  O
43242
- ) && wi(ue.dataType, O.dataType)
43229
+ ) && wi(de.dataType, O.dataType)
43243
43230
  );
43244
43231
  if (!L) {
43245
- const ue = oe.fromReturnDeclarationToBodyArgumentDeclarationName(
43232
+ const de = oe.fromReturnDeclarationToBodyArgumentDeclarationName(
43246
43233
  O
43247
43234
  ), ye = {
43248
43235
  id: y.UUID.uuid(),
@@ -43252,7 +43239,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
43252
43239
  previousVersion: null,
43253
43240
  deleted: !1,
43254
43241
  type: n.ArgumentDeclaration,
43255
- name: ue,
43242
+ name: de,
43256
43243
  description: `Aggretated list of all previously outputted values from each iteration by the output '${F(
43257
43244
  O,
43258
43245
  this.project
@@ -43275,12 +43262,12 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
43275
43262
  ), H.addSelfToProject(e), i.push(H), L = H;
43276
43263
  }
43277
43264
  const C = this.body.inputs.find(
43278
- (ue) => ue.index === L.index && ue !== L
43265
+ (de) => de.index === L.index && de !== L
43279
43266
  ), $ = this.body.inputs.filter(
43280
- (ue) => ue !== L
43267
+ (de) => de !== L
43281
43268
  );
43282
43269
  let Z = L.index;
43283
- C && (Z = Math.max(...$.map((ue) => ue.index)) + 1), L.index !== Z && (L.metaSync({ index: Z }, e), t.push(L));
43270
+ C && (Z = Math.max(...$.map((de) => de.index)) + 1), L.index !== Z && (L.metaSync({ index: Z }, e), t.push(L));
43284
43271
  const q = L.getDataType(e);
43285
43272
  let X = q;
43286
43273
  if (V)
@@ -43298,18 +43285,18 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
43298
43285
  I.Added
43299
43286
  ), ye.addSelfToProject(e), X = ye, i.push(ye), t.push(L);
43300
43287
  }
43301
- const ue = X.merge(
43288
+ const de = X.merge(
43302
43289
  V,
43303
43290
  e
43304
43291
  );
43305
- ue.self === X ? V.remove(
43292
+ de.self === X ? V.remove(
43306
43293
  { ignoreUpstream: !1 },
43307
43294
  e
43308
- ) : ue.self === V && (X.remove({ ignoreUpstream: !1 }, e), X = V), X.metaSync({ isList: !0 }, e);
43295
+ ) : de.self === V && (X.remove({ ignoreUpstream: !1 }, e), X = V), X.metaSync({ isList: !0 }, e);
43309
43296
  } else
43310
43297
  X.isList || (X.metaSync({ isList: !0 }, e), t.push(X));
43311
43298
  if (!V && !X) {
43312
- const ue = {
43299
+ const de = {
43313
43300
  id: y.UUID.uuid(),
43314
43301
  version: y.UUID.uuid(),
43315
43302
  createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
@@ -43332,7 +43319,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
43332
43319
  orChildrenGroup: [],
43333
43320
  parent: L.toReference()
43334
43321
  }, ye = P(
43335
- ue,
43322
+ de,
43336
43323
  this.project
43337
43324
  );
43338
43325
  ye.metaSync({ isList: !0 }, e), ye.setParent(L, e), ye.initChildren(e), e == null || e.add(ye, I.Added), ye.addSelfToProject(e), i.push(ye);
@@ -43938,13 +43925,13 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
43938
43925
  if ($) {
43939
43926
  const Z = V.getDataType(e), q = ((T = Z == null ? void 0 : Z.entity) == null ? void 0 : T.properties) || [];
43940
43927
  (E = $.orChildrenGroup) == null || E.forEach((X) => {
43941
- const { updated: ue, removed: ye } = X.remove(
43928
+ const { updated: de, removed: ye } = X.remove(
43942
43929
  {
43943
43930
  ignoreUpstream: !1
43944
43931
  },
43945
43932
  e
43946
43933
  );
43947
- t.push(...ue), s.push(...ye);
43934
+ t.push(...de), s.push(...ye);
43948
43935
  }), q.forEach((X) => {
43949
43936
  if (!X.getDataType(e)) {
43950
43937
  const ye = {
@@ -44584,9 +44571,9 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
44584
44571
  const {
44585
44572
  updated: q,
44586
44573
  added: X,
44587
- removed: ue
44574
+ removed: de
44588
44575
  } = this.syncOutputsDeclarations(e);
44589
- t.push(...q), i.push(...X), s.push(...ue);
44576
+ t.push(...q), i.push(...X), s.push(...de);
44590
44577
  const {
44591
44578
  updated: ye,
44592
44579
  added: H,
@@ -45910,7 +45897,7 @@ function tv(r) {
45910
45897
  a.safeParse(e).success, (o = r.dataType) == null || o.validate(), r.inputs.forEach((d) => d.validate()), r.outputs.forEach((d) => d.validate()), r.internalCalls.forEach((d) => d.validate());
45911
45898
  const s = [...xr(r)];
45912
45899
  if (r.id === "random-company-employee-test-variable-id") {
45913
- const d = de({
45900
+ const d = ue({
45914
45901
  id: `${r.id}--${G.PropertyImplementsNonAbstact}`,
45915
45902
  message: `Property "${F(r, r.project)}" with id "${r.id}" implements a non-abstract property "${F(
45916
45903
  r,
@@ -45924,7 +45911,7 @@ function tv(r) {
45924
45911
  s.push(d.error);
45925
45912
  }
45926
45913
  if (r.id === "company-dto-variable-one-id") {
45927
- const d = de({
45914
+ const d = ue({
45928
45915
  id: `${r.id}--${G.PropertyImplementsNonAbstact}`,
45929
45916
  message: `Property "${F(r, r.project)}" with id "${r.id}" implements a non-abstract property "${F(
45930
45917
  r,
@@ -45949,7 +45936,7 @@ function iv(r) {
45949
45936
  a.safeParse(e).success, r.inputs.forEach((o) => o.validate()), r.outputs.forEach((o) => o.validate()), r.internalCalls.forEach((o) => o.validate());
45950
45937
  const s = [...xr(r)];
45951
45938
  if (r.id === "exec-sequentially-result-variable-id") {
45952
- const o = de({
45939
+ const o = ue({
45953
45940
  id: `${r.id}--${G.PropertyImplementsNonAbstact}`,
45954
45941
  message: `Property "${F(r, r.project)}" with id "${r.id}" implements a non-abstract property "${F(
45955
45942
  r,
@@ -48797,10 +48784,10 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
48797
48784
  const {
48798
48785
  updated: q,
48799
48786
  added: X,
48800
- removed: ue,
48787
+ removed: de,
48801
48788
  affected: ye
48802
48789
  } = Z.generateUnusedInputs(e);
48803
- t.push(...X), i.push(...q), s.push(...ue), l.push(...ye);
48790
+ t.push(...X), i.push(...q), s.push(...de), l.push(...ye);
48804
48791
  const {
48805
48792
  updated: H,
48806
48793
  added: ae,
@@ -49769,7 +49756,7 @@ function nv(r) {
49769
49756
  a.safeParse(e).success, r.inputsDeclarations.forEach((o) => o.validate()), r.inputs.forEach((o) => o.validate()), r.outputsDeclarations.forEach((o) => o.validate()), r.outputs.forEach((o) => o.validate()), (l = r.error) == null || l.validate();
49770
49757
  const s = [...xr(r)];
49771
49758
  if (r.id === "search-person-by-id-id") {
49772
- const o = de({
49759
+ const o = ue({
49773
49760
  id: `${r.id}--${G.PropertyImplementsNonAbstact}`,
49774
49761
  message: `Property "${F(r, r.project)}" with id "${r.id}" implements a non-abstract property "${F(
49775
49762
  r,
@@ -52033,7 +52020,7 @@ function ov(r) {
52033
52020
  const a = [], e = dp(r.parent, null), t = e == null ? void 0 : e.entity;
52034
52021
  if (!t)
52035
52022
  a.push(
52036
- de({
52023
+ ue({
52037
52024
  id: `${r.id}--${j.InternalCallParentMissingDataType}`,
52038
52025
  code: j.InternalCallParentMissingDataType,
52039
52026
  severity: D.Error,
@@ -52048,7 +52035,7 @@ function ov(r) {
52048
52035
  n.PrimitiveEntity
52049
52036
  ].includes(t.type))
52050
52037
  a.push(
52051
- de({
52038
+ ue({
52052
52039
  id: `${r.id}--${j.InternalCallParentDeclarationEntityInvalidType}`,
52053
52040
  code: j.InternalCallParentDeclarationEntityInvalidType,
52054
52041
  severity: D.Error,
@@ -52087,7 +52074,7 @@ This variable's data-type 'entity' is a non-interactive 'built-in-base-entity'.s
52087
52074
  (d) => d.id === r.declaration.id
52088
52075
  );
52089
52076
  o ? o.type !== n.FunctionDeclaration && a.push(
52090
- de({
52077
+ ue({
52091
52078
  id: `${r.id}--${j.InternalCallDeclarationIsNotFunctionDeclaration}`,
52092
52079
  code: j.InternalCallDeclarationIsNotFunctionDeclaration,
52093
52080
  severity: D.Error,
@@ -52097,7 +52084,7 @@ The declaration of the internal-call must be a 'function-declaration' entity whi
52097
52084
  entity: r
52098
52085
  }).error
52099
52086
  ) : a.push(
52100
- de({
52087
+ ue({
52101
52088
  id: `${r.id}--${j.InternalCallDeclarationNotFoundInParentDatatypeEntity}`,
52102
52089
  code: j.InternalCallDeclarationNotFoundInParentDatatypeEntity,
52103
52090
  severity: D.Error,
@@ -53705,7 +53692,7 @@ function lv(r) {
53705
53692
  a.safeParse(e).success;
53706
53693
  const i = [];
53707
53694
  if (r.id === "exec-sequentially-argument-map-id") {
53708
- const s = de({
53695
+ const s = ue({
53709
53696
  id: `${r.id}--${G.PropertyImplementsNonAbstact}`,
53710
53697
  message: `Property "${F(r, r.project)}" with id "${r.id}" implements a non-abstract property "${F(
53711
53698
  r,
@@ -54863,7 +54850,7 @@ function dv(r) {
54863
54850
  a.safeParse(e).success;
54864
54851
  const i = [];
54865
54852
  if (r.id === "exec-sequentially-return-map-id") {
54866
- const s = de({
54853
+ const s = ue({
54867
54854
  id: `${r.id}--${G.PropertyImplementsNonAbstact}`,
54868
54855
  message: `Property "${F(r, r.project)}" with id "${r.id}" implements a non-abstract property "${F(
54869
54856
  r,
@@ -55929,7 +55916,7 @@ function uv(r) {
55929
55916
  a.safeParse(e).success, (s = r.dataType) == null || s.validate();
55930
55917
  const i = [];
55931
55918
  if (r.id === "company-dto-func-declaration-argument-dcl-id") {
55932
- const l = de({
55919
+ const l = ue({
55933
55920
  id: `${r.id}--${G.PropertyImplementsNonAbstact}`,
55934
55921
  message: `Property "${F(r, r.project)}" with id "${r.id}" implements a non-abstract property "${F(
55935
55922
  r,
@@ -55943,7 +55930,7 @@ function uv(r) {
55943
55930
  i.push(l.error);
55944
55931
  }
55945
55932
  if (r.id === "manual-hello-world-loop-current-iteration-number-output-map-id") {
55946
- const l = de({
55933
+ const l = ue({
55947
55934
  id: `${r.id}--${G.PropertyImplementsNonAbstact}`,
55948
55935
  message: `Property "${F(r, r.project)}" with id "${r.id}" implements a non-abstract property "${F(
55949
55936
  r,
@@ -62387,7 +62374,7 @@ function Ev(r) {
62387
62374
  if (!r.internalCalls.length)
62388
62375
  return a;
62389
62376
  if (r.readsValue) {
62390
- const e = de({
62377
+ const e = ue({
62391
62378
  id: `${r.id}--${G.VariableReadsValueAndInternalCall}`,
62392
62379
  message: `Variable "${F(r, r.project)}" with id "${r.id}" reads a value. A variable with internal calls can't read a value.`,
62393
62380
  issue: null,
@@ -62398,7 +62385,7 @@ function Ev(r) {
62398
62385
  a.push(e.error);
62399
62386
  }
62400
62387
  if (r.writesValues.length) {
62401
- const e = de({
62388
+ const e = ue({
62402
62389
  id: `${r.id}--${G.VariableWritesValuesAndInternalCall}`,
62403
62390
  message: `Variable "${F(r, r.project)}" with id "${r.id}" writes values. A variable with internal calls can't write a value.`,
62404
62391
  issue: null,
@@ -62409,7 +62396,7 @@ function Ev(r) {
62409
62396
  a.push(e.error);
62410
62397
  }
62411
62398
  if (r.getUsedInputs().length) {
62412
- const e = de({
62399
+ const e = ue({
62413
62400
  id: `${r.id}--${G.VariableHasInputsAndInternalCall}`,
62414
62401
  message: `Variable "${F(r, r.project)}" with id "${r.id}" has inputs. A variable with internal calls can't have inputs.`,
62415
62402
  issue: null,
@@ -62420,7 +62407,7 @@ function Ev(r) {
62420
62407
  a.push(e.error);
62421
62408
  }
62422
62409
  if (r.getUsedOutputs().length) {
62423
- const e = de({
62410
+ const e = ue({
62424
62411
  id: `${r.id}--${G.VariableHasOutputsAndInternalCall}`,
62425
62412
  message: `Variable "${F(r, r.project)}" with id "${r.id}" has outputs. A variable with internal calls can't have outputs.`,
62426
62413
  issue: null,
@@ -62431,7 +62418,7 @@ function Ev(r) {
62431
62418
  a.push(e.error);
62432
62419
  }
62433
62420
  if (r.calledBy.length) {
62434
- const e = de({
62421
+ const e = ue({
62435
62422
  id: `${r.id}--${G.VariableIsCalledAndHasInternalCall}`,
62436
62423
  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.`,
62437
62424
  issue: null,
@@ -62442,7 +62429,7 @@ function Ev(r) {
62442
62429
  a.push(e.error);
62443
62430
  }
62444
62431
  if ([...r.successCalls, ...r.errorCalls].length) {
62445
- const e = de({
62432
+ const e = ue({
62446
62433
  id: `${r.id}--${G.VariableCallsOthersAndHasInternalCall}`,
62447
62434
  message: `Variable "${F(r, r.project)}" with id "${r.id}" calls other entities. A variable with internal calls can't call other entities.`,
62448
62435
  issue: null,
@@ -64440,11 +64427,11 @@ function bv(r, a, e, t, i) {
64440
64427
  else {
64441
64428
  const Z = [];
64442
64429
  let q = !1;
64443
- C.forEach((ue) => {
64430
+ C.forEach((de) => {
64444
64431
  var ye, H, ae, Nt;
64445
- if (Array.isArray(ue) && (q = !0), typeof ue == "object" && !Array.isArray(ue) && ue !== null) {
64432
+ if (Array.isArray(de) && (q = !0), typeof de == "object" && !Array.isArray(de) && de !== null) {
64446
64433
  const xi = Il(
64447
- ue,
64434
+ de,
64448
64435
  a.project,
64449
64436
  {
64450
64437
  ...e,
@@ -64460,7 +64447,7 @@ function bv(r, a, e, t, i) {
64460
64447
  Z
64461
64448
  );
64462
64449
  if (!X.length && !q) {
64463
- C.forEach((ue) => {
64450
+ C.forEach((de) => {
64464
64451
  const ye = {
64465
64452
  id: y.UUID.uuid(),
64466
64453
  version: y.UUID.uuid(),
@@ -64490,7 +64477,7 @@ function bv(r, a, e, t, i) {
64490
64477
  switch (H.setParent(a, t), H.initChildren(t), t == null || t.add(
64491
64478
  H,
64492
64479
  I.Added
64493
- ), H.addSelfToProject(t), typeof ue) {
64480
+ ), H.addSelfToProject(t), typeof de) {
64494
64481
  case "string":
64495
64482
  H.setEntity(
64496
64483
  H.project.getBuiltIn(
@@ -64523,10 +64510,10 @@ function bv(r, a, e, t, i) {
64523
64510
  });
64524
64511
  break;
64525
64512
  } else
64526
- X.length === 1 && !q ? a.setEntity(X[0]) : C.forEach((ue) => {
64527
- if (typeof ue == "object" && !Array.isArray(ue) && ue !== null) {
64513
+ X.length === 1 && !q ? a.setEntity(X[0]) : C.forEach((de) => {
64514
+ if (typeof de == "object" && !Array.isArray(de) && de !== null) {
64528
64515
  const ye = Av(
64529
- Object.keys(ue),
64516
+ Object.keys(de),
64530
64517
  a.project
64531
64518
  );
64532
64519
  if (ye) {
@@ -64550,7 +64537,7 @@ function bv(r, a, e, t, i) {
64550
64537
  options: null,
64551
64538
  implementationChooseOne: !1,
64552
64539
  entity: null,
64553
- isList: Array.isArray(ue),
64540
+ isList: Array.isArray(de),
64554
64541
  asType: null,
64555
64542
  andChildrenGroup: null,
64556
64543
  orChildrenGroup: null,
@@ -64570,7 +64557,7 @@ function bv(r, a, e, t, i) {
64570
64557
  I.Added
64571
64558
  ), H.addSelfToProject(t);
64572
64559
  const ae = bv(
64573
- ue,
64560
+ de,
64574
64561
  H,
64575
64562
  {
64576
64563
  ...e,
@@ -64710,7 +64697,7 @@ function Il(r, a, e, t, i) {
64710
64697
  a
64711
64698
  );
64712
64699
  X.setParent(C, t), X.initChildren(t), t == null || t.add(X, I.Added), X.addSelfToProject(t), l.push(X);
64713
- const ue = bv(
64700
+ const de = bv(
64714
64701
  $,
64715
64702
  X,
64716
64703
  {
@@ -64721,7 +64708,7 @@ function Il(r, a, e, t, i) {
64721
64708
  t,
64722
64709
  i || R
64723
64710
  );
64724
- s.push(...ue.updated), l.push(...ue.added), o.push(...ue.removed);
64711
+ s.push(...de.updated), l.push(...de.added), o.push(...de.removed);
64725
64712
  }), {
64726
64713
  hasCreated: !0,
64727
64714
  changeSet: {
@@ -67086,7 +67073,7 @@ function Uv(r, a) {
67086
67073
  function qJ(r, a) {
67087
67074
  const e = [];
67088
67075
  if (!a.abstract) {
67089
- const f = de({
67076
+ const f = ue({
67090
67077
  id: r.id + "--" + G.ImplementingNonAbstractEntity,
67091
67078
  message: `Entity "${r.name}" with id "${r.id}" is implementing a non-abstract entity "${a.name}" with id "${a.id}"`,
67092
67079
  issue: null,
@@ -67109,7 +67096,7 @@ function qJ(r, a) {
67109
67096
  (T) => T.id !== c.id
67110
67097
  ) : i.push(f);
67111
67098
  }), i.length && i.forEach((f) => {
67112
- const c = de({
67099
+ const c = ue({
67113
67100
  id: r.id + "--" + G.MissingPropertyImplementation + "--" + f.id,
67114
67101
  message: `Property "${f.name}" with id "${f.id}" of entity "${a.name}" with id "${a.id}" is not implemented when entity "${r.name}" with id "${r.id}" implements it`,
67115
67102
  issue: null,
@@ -67132,7 +67119,7 @@ function qJ(r, a) {
67132
67119
  (T) => T.id !== c.id
67133
67120
  ) : l.push(f);
67134
67121
  }), l.length && l.forEach((f) => {
67135
- const c = de({
67122
+ const c = ue({
67136
67123
  id: r.id + "--" + G.MissingMethodImplementation + "--" + f.id,
67137
67124
  message: `Method "${f.name}" with id "${f.id}" of entity "${a.name}" with id "${a.id}" is not implemented when entity "${r.name}" with id "${r.id}" implements it`,
67138
67125
  issue: null,
@@ -67149,7 +67136,7 @@ function qJ(r, a) {
67149
67136
  );
67150
67137
  c && d.push([c, f]);
67151
67138
  }), d.length && d.forEach(([f]) => {
67152
- const c = de({
67139
+ const c = ue({
67153
67140
  id: r.id + "--" + j.PropertyOverwritesOtherSiblingWithSameName + "--" + f.id,
67154
67141
  message: `Property "${f.name}" with id "${f.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}"`,
67155
67142
  issue: null,
@@ -67166,7 +67153,7 @@ function qJ(r, a) {
67166
67153
  );
67167
67154
  c && u.push([c, f]);
67168
67155
  }), u.length && u.forEach(([f]) => {
67169
- const c = de({
67156
+ const c = ue({
67170
67157
  id: r.id + "--" + j.MethodOverwritesOtherSiblingWithSameName + "--" + f.id,
67171
67158
  message: `Method "${f.name}" with id "${f.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}"`,
67172
67159
  issue: null,
@@ -67180,7 +67167,7 @@ function qJ(r, a) {
67180
67167
  function WJ(r, a) {
67181
67168
  const e = [], t = [];
67182
67169
  if (!r.abstract && a.abstract) {
67183
- const s = de({
67170
+ const s = ue({
67184
67171
  id: r.id + "--" + a.id + "--" + G.NonAbstractExtendingAbstractEntity,
67185
67172
  message: `Entity "${r.name}" with id "${r.id}" is not-abstract but is extending an abstract entity "${a.name}" with id "${a.id}"`,
67186
67173
  issue: null,
@@ -67192,7 +67179,7 @@ function WJ(r, a) {
67192
67179
  return e.push(s.error), e;
67193
67180
  }
67194
67181
  if (r.abstract && !a.abstract) {
67195
- const s = de({
67182
+ const s = ue({
67196
67183
  id: r.id + "--" + a.id + "--" + G.AbstractExtendingNonAbstractEntity,
67197
67184
  message: `Entity "${r.name}" with id "${r.id}" is abstract but is extending an non-abstract entity "${a.name}" with id "${a.id}"`,
67198
67185
  issue: null,
@@ -67207,11 +67194,14 @@ function WJ(r, a) {
67207
67194
  var o;
67208
67195
  const l = a.properties.find(
67209
67196
  // Check if two properties have the same name
67210
- (d) => d.name === s.name
67197
+ (d) => {
67198
+ var u;
67199
+ return d.name === s.name && ((u = s.extends) == null ? void 0 : u.id) !== d.id;
67200
+ }
67211
67201
  );
67212
67202
  ((o = s.implements) == null ? void 0 : o.id) !== (l == null ? void 0 : l.id) && l && t.push(s);
67213
67203
  }), t.length && t.forEach((s) => {
67214
- const l = de({
67204
+ const l = ue({
67215
67205
  id: r.id + "--" + j.PropertyOverwritesOtherSiblingWithSameName,
67216
67206
  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}"`,
67217
67207
  issue: null,
@@ -67226,11 +67216,14 @@ function WJ(r, a) {
67226
67216
  var o;
67227
67217
  const l = a.methods.find(
67228
67218
  // Check if two methods have the same name
67229
- (d) => d.name === s.name
67219
+ (d) => {
67220
+ var u;
67221
+ return d.name === s.name && ((u = s.extends) == null ? void 0 : u.id) !== d.id;
67222
+ }
67230
67223
  );
67231
67224
  ((o = s.implements) == null ? void 0 : o.id) !== (l == null ? void 0 : l.id) && l && i.push(s);
67232
67225
  }), i.length && i.forEach((s) => {
67233
- const l = de({
67226
+ const l = ue({
67234
67227
  id: r.id + "--" + j.MethodOverwritesOtherSiblingWithSameName,
67235
67228
  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}"`,
67236
67229
  issue: null,
@@ -67244,7 +67237,7 @@ function WJ(r, a) {
67244
67237
  function zJ(r) {
67245
67238
  const a = [];
67246
67239
  if (!r.properties.length) {
67247
- const e = de({
67240
+ const e = ue({
67248
67241
  id: r.id + "--" + G.NoProperties,
67249
67242
  message: "No properties implemented",
67250
67243
  issue: null,
@@ -67262,7 +67255,7 @@ function YJ(r) {
67262
67255
  const a = [];
67263
67256
  if (r.abstract) {
67264
67257
  if (r.methods.length) {
67265
- const e = de({
67258
+ const e = ue({
67266
67259
  id: r.id + "--" + G.AbstractEntityWithNonAbstractMethods,
67267
67260
  message: `Entity "${r.name}" with id "${r.id}" is marked as abstract but has non-abstract methods`,
67268
67261
  issue: null,
@@ -67273,7 +67266,7 @@ function YJ(r) {
67273
67266
  a.push(e.error);
67274
67267
  }
67275
67268
  if (r.properties.some((e) => !e.abstract)) {
67276
- const e = de({
67269
+ const e = ue({
67277
67270
  id: r.id + "--" + G.AbstractEntityWithNonAbstractProperties,
67278
67271
  message: `Entity "${r.name}" with id "${r.id}" is marked as abstract but has non-abstract properties`,
67279
67272
  issue: null,
@@ -67283,7 +67276,7 @@ function YJ(r) {
67283
67276
  });
67284
67277
  a.push(e.error), r.properties.forEach((t) => {
67285
67278
  if (!t.abstract) {
67286
- const i = de({
67279
+ const i = ue({
67287
67280
  id: r.id + "--" + G.StaticEntityWithNonStaticProperties + "--" + t.id,
67288
67281
  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`,
67289
67282
  issue: null,
@@ -67297,7 +67290,7 @@ function YJ(r) {
67297
67290
  }
67298
67291
  } else {
67299
67292
  if (r.abstractMethods.length) {
67300
- const e = de({
67293
+ const e = ue({
67301
67294
  id: r.id + "--" + G.AbstractPropertyInNonAbstractEntity,
67302
67295
  message: `Entity "${r.name}" with id "${r.id}" is not marked as abstract but has abstract methods`,
67303
67296
  issue: null,
@@ -67308,7 +67301,7 @@ function YJ(r) {
67308
67301
  a.push(e.error);
67309
67302
  }
67310
67303
  if (r.properties.some((e) => e.abstract)) {
67311
- const e = de({
67304
+ const e = ue({
67312
67305
  id: r.id + "--" + G.AbstractMethodInNonAbstractEntity,
67313
67306
  message: `Entity "${r.name}" with id "${r.id}" is not marked as abstract but has abstract properties`,
67314
67307
  issue: null,
@@ -67318,7 +67311,7 @@ function YJ(r) {
67318
67311
  });
67319
67312
  a.push(e.error), r.properties.forEach((t) => {
67320
67313
  if (t.abstract) {
67321
- const i = de({
67314
+ const i = ue({
67322
67315
  id: r.id + "--" + G.AbstractMethodInNonAbstractEntity + "--" + t.id,
67323
67316
  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`,
67324
67317
  issue: null,
@@ -67332,7 +67325,7 @@ function YJ(r) {
67332
67325
  }
67333
67326
  }
67334
67327
  if (r.static && r.properties.some((e) => !e.static)) {
67335
- const e = de({
67328
+ const e = ue({
67336
67329
  id: r.id + "--" + G.StaticEntityWithNonStaticProperties,
67337
67330
  message: `Entity "${r.name}" with id "${r.id}" is marked as static but has non-static properties`,
67338
67331
  issue: null,
@@ -67342,7 +67335,7 @@ function YJ(r) {
67342
67335
  });
67343
67336
  a.push(e.error), r.properties.forEach((t) => {
67344
67337
  if (!t.static) {
67345
- const i = de({
67338
+ const i = ue({
67346
67339
  id: r.id + "--" + G.NonStaticPropertyInStaticEntity + "--" + t.id,
67347
67340
  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`,
67348
67341
  issue: null,
@@ -67488,7 +67481,7 @@ function HJ(r, a) {
67488
67481
  function KJ(r, a, e = !1) {
67489
67482
  const t = [], i = Wt(a);
67490
67483
  if (!r.abstract && a.abstract) {
67491
- const f = de({
67484
+ const f = ue({
67492
67485
  id: r.id + "--" + a.id + "--" + G.NonAbstractExtendingAbstractEntity,
67493
67486
  message: `Entity "${r.name}" with id "${r.id}" is not-abstract but is extending an abstract entity "${a.name}" with id "${a.id}"`,
67494
67487
  issue: null,
@@ -67500,7 +67493,7 @@ function KJ(r, a, e = !1) {
67500
67493
  t.push(f.error);
67501
67494
  }
67502
67495
  if (r.abstract && !a.abstract) {
67503
- const f = de({
67496
+ const f = ue({
67504
67497
  id: r.id + "--" + a.id + "--" + G.AbstractExtendingNonAbstractEntity,
67505
67498
  message: `Entity "${r.name}" with id "${r.id}" is abstract but is extending an non-abstract entity "${a.name}" with id "${a.id}"`,
67506
67499
  issue: null,
@@ -67512,7 +67505,7 @@ function KJ(r, a, e = !1) {
67512
67505
  t.push(f.error);
67513
67506
  }
67514
67507
  if (!r.static && a.static) {
67515
- const f = de({
67508
+ const f = ue({
67516
67509
  id: r.id + "--" + a.id + "--" + G.NonStaticExtendingStaticEntity,
67517
67510
  message: `Entity "${r.name}" with id "${r.id}" is not static but is extending a static entity "${a.name}" with id "${a.id}"`,
67518
67511
  issue: null,
@@ -67524,7 +67517,7 @@ function KJ(r, a, e = !1) {
67524
67517
  t.push(f.error);
67525
67518
  }
67526
67519
  if (r.static && !a.static) {
67527
- const f = de({
67520
+ const f = ue({
67528
67521
  id: r.id + "--" + a.id + "--" + G.StaticExtendingNonStaticEntity,
67529
67522
  message: `Entity "${r.name}" with id "${r.id}" is static but is extending an non-static entity "${a.name}" with id "${a.id}"`,
67530
67523
  issue: null,
@@ -67536,7 +67529,7 @@ function KJ(r, a, e = !1) {
67536
67529
  t.push(f.error);
67537
67530
  }
67538
67531
  if (!Qo(a)) {
67539
- const f = de({
67532
+ const f = ue({
67540
67533
  id: r.id + "--" + a.id + "--" + G.ExtendingNonInteractiveEntity,
67541
67534
  message: `Entity "${r.name}" with id "${r.id}" is extending an non-interactive entity "${a.name}" with id "${a.id}"`,
67542
67535
  issue: null,
@@ -67557,7 +67550,7 @@ function KJ(r, a, e = !1) {
67557
67550
  );
67558
67551
  c.length && c.forEach((T) => {
67559
67552
  if (T.id !== f.id) {
67560
- const E = de({
67553
+ const E = ue({
67561
67554
  id: r.id + "--" + T.id + "--" + f.id + "--" + G.ExtendsIncompatibleEntities,
67562
67555
  message: `Entity "${r.name}" with id "${r.id}" is extending built-in entity "${T.name}" with id "${T.id}" but also extends entity "${f.name}" with id "${f.id}" which is incompatible`,
67563
67556
  issue: null,
@@ -68453,10 +68446,10 @@ Alternatively you can update the parent data-type entity with 'update' action to
68453
68446
  const {
68454
68447
  updated: q,
68455
68448
  added: X,
68456
- removed: ue,
68449
+ removed: de,
68457
68450
  affected: ye
68458
68451
  } = this.addExtendedMethods(e);
68459
- t.push(...q), i.push(...X), s.push(...ue), l.push(...ye);
68452
+ t.push(...q), i.push(...X), s.push(...de), l.push(...ye);
68460
68453
  const {
68461
68454
  updated: H,
68462
68455
  added: ae,
@@ -69511,12 +69504,12 @@ Alternatively you can update the parent data-type entity with 'update' action to
69511
69504
  );
69512
69505
  if (T) {
69513
69506
  if (c.setDeclaration(T), !T.getDataType(t)) {
69514
- const ue = $n(
69507
+ const de = $n(
69515
69508
  c.parent
69516
69509
  ).getMasterInputWithValueWritterFromAllInstances(
69517
69510
  c
69518
69511
  ), ye = $i(
69519
- ue
69512
+ de
69520
69513
  ), H = ye == null ? void 0 : ye.clone(
69521
69514
  t,
69522
69515
  T,
@@ -73740,7 +73733,7 @@ export {
73740
73733
  FR as countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationDataTypeParentRef,
73741
73734
  kR as countedLoopBodyActionDescriptorIterationNumberArgumentDeclarationParentRef,
73742
73735
  Il as createDefinitionEntityFromJSONObject,
73743
- de as createEntityError,
73736
+ ue as createEntityError,
73744
73737
  G7 as createNestedDataTypeForEntity,
73745
73738
  zn as createNewInstanceOperation,
73746
73739
  dA as createNewInstanceOperationEntityToInstanciateArgument,