@elyx-code/project-logic-tree 0.0.6257 → 0.0.6258
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 +98 -90
- package/dist/index.umd.cjs +37 -37
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24978,8 +24978,8 @@ var Tm = { exports: {} };
|
|
|
24978
24978
|
return ye.clone();
|
|
24979
24979
|
var z = typeof te == "object" ? te : {};
|
|
24980
24980
|
return z.date = ye, z.args = arguments, new Jt(z);
|
|
24981
|
-
},
|
|
24982
|
-
|
|
24981
|
+
}, oe = $;
|
|
24982
|
+
oe.l = me, oe.i = ue, oe.w = function(ye, te) {
|
|
24983
24983
|
return X(ye, { locale: te.$L, utc: te.$u, x: te.$x, $offset: te.$offset });
|
|
24984
24984
|
};
|
|
24985
24985
|
var Jt = function() {
|
|
@@ -24992,7 +24992,7 @@ var Tm = { exports: {} };
|
|
|
24992
24992
|
var Q = le.date, Ee = le.utc;
|
|
24993
24993
|
if (Q === null)
|
|
24994
24994
|
return /* @__PURE__ */ new Date(NaN);
|
|
24995
|
-
if (
|
|
24995
|
+
if (oe.u(Q))
|
|
24996
24996
|
return /* @__PURE__ */ new Date();
|
|
24997
24997
|
if (Q instanceof Date)
|
|
24998
24998
|
return new Date(Q);
|
|
@@ -25009,7 +25009,7 @@ var Tm = { exports: {} };
|
|
|
25009
25009
|
var z = this.$d;
|
|
25010
25010
|
this.$y = z.getFullYear(), this.$M = z.getMonth(), this.$D = z.getDate(), this.$W = z.getDay(), this.$H = z.getHours(), this.$m = z.getMinutes(), this.$s = z.getSeconds(), this.$ms = z.getMilliseconds();
|
|
25011
25011
|
}, te.$utils = function() {
|
|
25012
|
-
return
|
|
25012
|
+
return oe;
|
|
25013
25013
|
}, te.isValid = function() {
|
|
25014
25014
|
return this.$d.toString() !== O;
|
|
25015
25015
|
}, te.isSame = function(z, le) {
|
|
@@ -25020,17 +25020,17 @@ var Tm = { exports: {} };
|
|
|
25020
25020
|
}, te.isBefore = function(z, le) {
|
|
25021
25021
|
return this.endOf(le) < X(z);
|
|
25022
25022
|
}, te.$g = function(z, le, Q) {
|
|
25023
|
-
return
|
|
25023
|
+
return oe.u(z) ? this[le] : this.set(Q, z);
|
|
25024
25024
|
}, te.unix = function() {
|
|
25025
25025
|
return Math.floor(this.valueOf() / 1e3);
|
|
25026
25026
|
}, te.valueOf = function() {
|
|
25027
25027
|
return this.$d.getTime();
|
|
25028
25028
|
}, te.startOf = function(z, le) {
|
|
25029
|
-
var Q = this, Ee = !!
|
|
25030
|
-
var cr =
|
|
25029
|
+
var Q = this, Ee = !!oe.u(le) || le, Ie = oe.p(z), ot = function(Lr, ei) {
|
|
25030
|
+
var cr = oe.w(Q.$u ? Date.UTC(Q.$y, ei, Lr) : new Date(Q.$y, ei, Lr), Q);
|
|
25031
25031
|
return Ee ? cr : cr.endOf(u);
|
|
25032
25032
|
}, At = function(Lr, ei) {
|
|
25033
|
-
return
|
|
25033
|
+
return oe.w(Q.toDate()[Lr].apply(Q.toDate("s"), (Ee ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ei)), Q);
|
|
25034
25034
|
}, Ot = this.$W, Ut = this.$M, Ti = this.$D, Bn = "set" + (this.$u ? "UTC" : "");
|
|
25035
25035
|
switch (Ie) {
|
|
25036
25036
|
case E:
|
|
@@ -25055,7 +25055,7 @@ var Tm = { exports: {} };
|
|
|
25055
25055
|
}, te.endOf = function(z) {
|
|
25056
25056
|
return this.startOf(z, !1);
|
|
25057
25057
|
}, te.$set = function(z, le) {
|
|
25058
|
-
var Q, Ee =
|
|
25058
|
+
var Q, Ee = oe.p(z), Ie = "set" + (this.$u ? "UTC" : ""), ot = (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;
|
|
25059
25059
|
if (Ee === c || Ee === E) {
|
|
25060
25060
|
var Ot = this.clone().set(R, 1);
|
|
25061
25061
|
Ot.$d[ot](At), Ot.init(), this.$d = Ot.set(R, Math.min(this.$D, Ot.daysInMonth())).$d;
|
|
@@ -25065,13 +25065,13 @@ var Tm = { exports: {} };
|
|
|
25065
25065
|
}, te.set = function(z, le) {
|
|
25066
25066
|
return this.clone().$set(z, le);
|
|
25067
25067
|
}, te.get = function(z) {
|
|
25068
|
-
return this[
|
|
25068
|
+
return this[oe.p(z)]();
|
|
25069
25069
|
}, te.add = function(z, le) {
|
|
25070
25070
|
var Q, Ee = this;
|
|
25071
25071
|
z = Number(z);
|
|
25072
|
-
var Ie =
|
|
25072
|
+
var Ie = oe.p(le), ot = function(Ut) {
|
|
25073
25073
|
var Ti = X(Ee);
|
|
25074
|
-
return
|
|
25074
|
+
return oe.w(Ti.date(Ti.date() + Math.round(Ut * z)), Ee);
|
|
25075
25075
|
};
|
|
25076
25076
|
if (Ie === c)
|
|
25077
25077
|
return this.set(c, this.$M + z);
|
|
@@ -25082,17 +25082,17 @@ var Tm = { exports: {} };
|
|
|
25082
25082
|
if (Ie === h)
|
|
25083
25083
|
return ot(7);
|
|
25084
25084
|
var At = (Q = {}, Q[o] = t, Q[d] = i, Q[l] = e, Q)[Ie] || 1, Ot = this.$d.getTime() + z * At;
|
|
25085
|
-
return
|
|
25085
|
+
return oe.w(Ot, this);
|
|
25086
25086
|
}, te.subtract = function(z, le) {
|
|
25087
25087
|
return this.add(-1 * z, le);
|
|
25088
25088
|
}, te.format = function(z) {
|
|
25089
25089
|
var le = this, Q = this.$locale();
|
|
25090
25090
|
if (!this.isValid())
|
|
25091
25091
|
return Q.invalidDate || O;
|
|
25092
|
-
var Ee = z || "YYYY-MM-DDTHH:mm:ssZ", Ie =
|
|
25092
|
+
var Ee = z || "YYYY-MM-DDTHH:mm:ssZ", Ie = oe.z(this), ot = this.$H, At = this.$m, Ot = this.$M, Ut = Q.weekdays, Ti = Q.months, Bn = Q.meridiem, jr = function(ei, cr, Es, Da) {
|
|
25093
25093
|
return ei && (ei[cr] || ei(le, Ee)) || Es[cr].slice(0, Da);
|
|
25094
25094
|
}, Ts = function(ei) {
|
|
25095
|
-
return
|
|
25095
|
+
return oe.s(ot % 12 || 12, ei, "0");
|
|
25096
25096
|
}, Lr = Bn || function(ei, cr, Es) {
|
|
25097
25097
|
var Da = ei < 12 ? "AM" : "PM";
|
|
25098
25098
|
return Es ? Da.toLowerCase() : Da;
|
|
@@ -25103,11 +25103,11 @@ var Tm = { exports: {} };
|
|
|
25103
25103
|
case "YY":
|
|
25104
25104
|
return String(le.$y).slice(-2);
|
|
25105
25105
|
case "YYYY":
|
|
25106
|
-
return
|
|
25106
|
+
return oe.s(le.$y, 4, "0");
|
|
25107
25107
|
case "M":
|
|
25108
25108
|
return Ot + 1;
|
|
25109
25109
|
case "MM":
|
|
25110
|
-
return
|
|
25110
|
+
return oe.s(Ot + 1, 2, "0");
|
|
25111
25111
|
case "MMM":
|
|
25112
25112
|
return jr(Q.monthsShort, Ot, Ti, 3);
|
|
25113
25113
|
case "MMMM":
|
|
@@ -25115,7 +25115,7 @@ var Tm = { exports: {} };
|
|
|
25115
25115
|
case "D":
|
|
25116
25116
|
return le.$D;
|
|
25117
25117
|
case "DD":
|
|
25118
|
-
return
|
|
25118
|
+
return oe.s(le.$D, 2, "0");
|
|
25119
25119
|
case "d":
|
|
25120
25120
|
return String(le.$W);
|
|
25121
25121
|
case "dd":
|
|
@@ -25127,7 +25127,7 @@ var Tm = { exports: {} };
|
|
|
25127
25127
|
case "H":
|
|
25128
25128
|
return String(ot);
|
|
25129
25129
|
case "HH":
|
|
25130
|
-
return
|
|
25130
|
+
return oe.s(ot, 2, "0");
|
|
25131
25131
|
case "h":
|
|
25132
25132
|
return Ts(1);
|
|
25133
25133
|
case "hh":
|
|
@@ -25139,13 +25139,13 @@ var Tm = { exports: {} };
|
|
|
25139
25139
|
case "m":
|
|
25140
25140
|
return String(At);
|
|
25141
25141
|
case "mm":
|
|
25142
|
-
return
|
|
25142
|
+
return oe.s(At, 2, "0");
|
|
25143
25143
|
case "s":
|
|
25144
25144
|
return String(le.$s);
|
|
25145
25145
|
case "ss":
|
|
25146
|
-
return
|
|
25146
|
+
return oe.s(le.$s, 2, "0");
|
|
25147
25147
|
case "SSS":
|
|
25148
|
-
return
|
|
25148
|
+
return oe.s(le.$ms, 3, "0");
|
|
25149
25149
|
case "Z":
|
|
25150
25150
|
return Ie;
|
|
25151
25151
|
}
|
|
@@ -25155,8 +25155,8 @@ var Tm = { exports: {} };
|
|
|
25155
25155
|
}, te.utcOffset = function() {
|
|
25156
25156
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
25157
25157
|
}, te.diff = function(z, le, Q) {
|
|
25158
|
-
var Ee, Ie = this, ot =
|
|
25159
|
-
return
|
|
25158
|
+
var Ee, Ie = this, ot = oe.p(le), At = X(z), Ot = (At.utcOffset() - this.utcOffset()) * t, Ut = this - At, Ti = function() {
|
|
25159
|
+
return oe.m(Ie, At);
|
|
25160
25160
|
};
|
|
25161
25161
|
switch (ot) {
|
|
25162
25162
|
case E:
|
|
@@ -25186,7 +25186,7 @@ var Tm = { exports: {} };
|
|
|
25186
25186
|
default:
|
|
25187
25187
|
Ee = Ut;
|
|
25188
25188
|
}
|
|
25189
|
-
return Q ? Ee :
|
|
25189
|
+
return Q ? Ee : oe.a(Ee);
|
|
25190
25190
|
}, te.daysInMonth = function() {
|
|
25191
25191
|
return this.endOf(c).$D;
|
|
25192
25192
|
}, te.$locale = function() {
|
|
@@ -25197,7 +25197,7 @@ var Tm = { exports: {} };
|
|
|
25197
25197
|
var Q = this.clone(), Ee = me(z, le, !0);
|
|
25198
25198
|
return Ee && (Q.$L = Ee), Q;
|
|
25199
25199
|
}, te.clone = function() {
|
|
25200
|
-
return
|
|
25200
|
+
return oe.w(this.$d, this);
|
|
25201
25201
|
}, te.toDate = function() {
|
|
25202
25202
|
return new Date(this.valueOf());
|
|
25203
25203
|
}, te.toJSON = function() {
|
|
@@ -42491,7 +42491,7 @@ f(Pe, "MUTABLE_DOWNSTREAM_PROPERTIES", ["inputs", "outputs"]), f(Pe, "INMUTABLE_
|
|
|
42491
42491
|
]);
|
|
42492
42492
|
let We = Pe;
|
|
42493
42493
|
var f7 = /* @__PURE__ */ ((r) => (r.Parent = "parent", r))(f7 || {});
|
|
42494
|
-
const
|
|
42494
|
+
const ae = class ae extends at {
|
|
42495
42495
|
constructor(e, t) {
|
|
42496
42496
|
super(e);
|
|
42497
42497
|
f(this, "initialData");
|
|
@@ -42860,7 +42860,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
42860
42860
|
// And adds it to the 'knownVersions' map
|
|
42861
42861
|
captureVersion() {
|
|
42862
42862
|
var t;
|
|
42863
|
-
const e = ((t = this.knownVersions) == null ? void 0 : t.get(this.version)) || new
|
|
42863
|
+
const e = ((t = this.knownVersions) == null ? void 0 : t.get(this.version)) || new ae(this, this.project);
|
|
42864
42864
|
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.outputs = this.outputs, e.error = this.error, e.successCalls = this.successCalls, e.errorCalls = this.errorCalls, e.declaration = this.declaration, e.outputsDeclarations = this.outputsDeclarations, e.body = this.body, e.calledByEntry = this.calledByEntry, e.calledBySuccess = this.calledBySuccess, e.calledByError = this.calledByError, e.process = this.process, e.parent = this.parent, this;
|
|
42865
42865
|
}
|
|
42866
42866
|
// Traverses upstream entities and captures their versions as well
|
|
@@ -42925,7 +42925,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
42925
42925
|
throw new Error(
|
|
42926
42926
|
`Version with id '${e}' for entity with id '${this.id}' not found.`
|
|
42927
42927
|
);
|
|
42928
|
-
o = new
|
|
42928
|
+
o = new ae(u, this.project);
|
|
42929
42929
|
}
|
|
42930
42930
|
return this.metaSync(o.toShallowJSON(), null), this.inputs = o.inputs, this.outputs = o.outputs, this.error = o.error, this.successCalls = o.successCalls, this.errorCalls = o.errorCalls, this.declaration = o.declaration, this.outputsDeclarations = o.outputsDeclarations, this.body = o.body, this.calledByEntry = o.calledByEntry, this.calledBySuccess = o.calledBySuccess, this.calledByError = o.calledByError, this.process = o.process, this.parent = o.parent, {
|
|
42931
42931
|
updated: p(t),
|
|
@@ -43342,22 +43342,22 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
43342
43342
|
return this.x = e.x || s.x, this.y = e.y || s.y, super.metaSync(e), e.deleted === !0 && !s.deleted ? t == null || t.add(this, I.Removed) : e.deleted === !1 && s.deleted ? t == null || t.add(this, I.Added) : i && (t == null || t.add(this, I.Updated)), t == null || t.attemptAutoclose("meta-sync", this.id), this;
|
|
43343
43343
|
}
|
|
43344
43344
|
async APILoad(e = j, ...t) {
|
|
43345
|
-
return await
|
|
43345
|
+
return await ae.repository.APILoad(this.id, ...t), this;
|
|
43346
43346
|
}
|
|
43347
43347
|
async APICreate(e = j, ...t) {
|
|
43348
|
-
return await
|
|
43348
|
+
return await ae.repository.APICreate(this.toShallowJSON(), ...t), this;
|
|
43349
43349
|
}
|
|
43350
43350
|
async APIUpdate(e = j, ...t) {
|
|
43351
|
-
return await
|
|
43351
|
+
return await ae.repository.APIUpdate(this.toShallowJSON(), ...t), this;
|
|
43352
43352
|
}
|
|
43353
43353
|
async APIDelete(e = j, ...t) {
|
|
43354
|
-
return await
|
|
43354
|
+
return await ae.repository.APIDelete(this.toShallowJSON(), ...t), this;
|
|
43355
43355
|
}
|
|
43356
43356
|
async APIClone(e = j, ...t) {
|
|
43357
|
-
return await
|
|
43357
|
+
return await ae.repository.APIClone(this.id, ...t), this;
|
|
43358
43358
|
}
|
|
43359
43359
|
async APILoadVersion(e = j, t, ...i) {
|
|
43360
|
-
return await
|
|
43360
|
+
return await ae.repository.APILoadVersion(
|
|
43361
43361
|
this.id,
|
|
43362
43362
|
t,
|
|
43363
43363
|
...i
|
|
@@ -43956,12 +43956,12 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
43956
43956
|
h.sort((O, V) => O.index - V.index), h.forEach((O) => {
|
|
43957
43957
|
const V = O.getDataType(e);
|
|
43958
43958
|
let x = c.find(
|
|
43959
|
-
(ue) => F(ue, this.project) ===
|
|
43959
|
+
(ue) => F(ue, this.project) === ae.fromReturnDeclarationToBodyArgumentDeclarationName(
|
|
43960
43960
|
O
|
|
43961
43961
|
) && wi(ue.dataType, O.dataType)
|
|
43962
43962
|
);
|
|
43963
43963
|
if (!x) {
|
|
43964
|
-
const ue =
|
|
43964
|
+
const ue = ae.fromReturnDeclarationToBodyArgumentDeclarationName(
|
|
43965
43965
|
O
|
|
43966
43966
|
), me = {
|
|
43967
43967
|
id: y.UUID.uuid(),
|
|
@@ -44096,12 +44096,12 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
44096
44096
|
}), o.forEach((h) => {
|
|
44097
44097
|
const c = h.getDataType(e);
|
|
44098
44098
|
let E = d.find(
|
|
44099
|
-
(V) => F(V, this.project) ===
|
|
44099
|
+
(V) => F(V, this.project) === ae.fromReturnDeclarationToLoopOutputDeclarationName(
|
|
44100
44100
|
h
|
|
44101
44101
|
) && wi(V.dataType, h.dataType)
|
|
44102
44102
|
);
|
|
44103
44103
|
if (!E) {
|
|
44104
|
-
const V =
|
|
44104
|
+
const V = ae.fromReturnDeclarationToLoopOutputDeclarationName(
|
|
44105
44105
|
h
|
|
44106
44106
|
), M = {
|
|
44107
44107
|
id: y.UUID.uuid(),
|
|
@@ -44190,11 +44190,19 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
44190
44190
|
);
|
|
44191
44191
|
M.metaSync({ isList: !0 }, e), M.setParent(E, e), M.initChildren(e), e == null || e.add(M, I.Added), M.addSelfToProject(e), i.push(M);
|
|
44192
44192
|
}
|
|
44193
|
-
});
|
|
44193
|
+
}), console.log("uniqueReturnDeclarations: ", o);
|
|
44194
44194
|
const u = d.filter(
|
|
44195
|
-
(h) =>
|
|
44196
|
-
|
|
44197
|
-
|
|
44195
|
+
(h) => {
|
|
44196
|
+
const c = o.find(
|
|
44197
|
+
(T) => {
|
|
44198
|
+
const E = F(T, this.project), R = ae.fromReturnDeclarationToLoopOutputDeclarationName(
|
|
44199
|
+
T
|
|
44200
|
+
);
|
|
44201
|
+
return console.log("resolvedName", E), console.log("nameToMatch", R), F(h, this.project) === ae.fromReturnDeclarationToLoopOutputDeclarationName(T);
|
|
44202
|
+
}
|
|
44203
|
+
);
|
|
44204
|
+
return console.log("foundMatchingReturn", c), !c;
|
|
44205
|
+
}
|
|
44198
44206
|
);
|
|
44199
44207
|
return console.log("outputDeclarationsToRemove", u), u.forEach((h) => {
|
|
44200
44208
|
if (!(e != null && e.hasRemoved(h.id)) && !h.deleted) {
|
|
@@ -44306,7 +44314,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
44306
44314
|
let d = this.body.inputs.find(
|
|
44307
44315
|
(T) => {
|
|
44308
44316
|
var E;
|
|
44309
|
-
return T.name ===
|
|
44317
|
+
return T.name === ae.CURRENT_ITERATION_NUMBER_ARG_NAME || T.id === ((E = this.currentIterationNumberArgumentDeclaration) == null ? void 0 : E.id);
|
|
44310
44318
|
}
|
|
44311
44319
|
);
|
|
44312
44320
|
const u = this.getCurrentIterationNumberBuiltInValueDescriptor();
|
|
@@ -44319,7 +44327,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
44319
44327
|
previousVersion: null,
|
|
44320
44328
|
deleted: !1,
|
|
44321
44329
|
type: n.ArgumentDeclaration,
|
|
44322
|
-
name:
|
|
44330
|
+
name: ae.CURRENT_ITERATION_NUMBER_ARG_NAME,
|
|
44323
44331
|
description: "The number of the current iteration",
|
|
44324
44332
|
defaultValue: null,
|
|
44325
44333
|
constant: !0,
|
|
@@ -44405,7 +44413,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
44405
44413
|
)) {
|
|
44406
44414
|
const t = [], i = [], s = [], l = [], o = this.body.inputs, d = this.getUniqueReturnDeclarations();
|
|
44407
44415
|
return o.filter((h) => h === this.currentIterationNumberArgumentDeclaration || h === this.currentValueArgumentDeclaration ? !1 : !d.find(
|
|
44408
|
-
(T) => F(h, this.project) ===
|
|
44416
|
+
(T) => F(h, this.project) === ae.fromReturnDeclarationToBodyArgumentDeclarationName(T)
|
|
44409
44417
|
)).forEach((h) => {
|
|
44410
44418
|
const { updated: c, removed: T } = h.remove(
|
|
44411
44419
|
{
|
|
@@ -44517,7 +44525,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
44517
44525
|
previousVersion: null,
|
|
44518
44526
|
deleted: !1,
|
|
44519
44527
|
type: n.ArgumentDeclaration,
|
|
44520
|
-
name:
|
|
44528
|
+
name: ae.CURRENT_VALUE_ARG_NAME,
|
|
44521
44529
|
description: null,
|
|
44522
44530
|
defaultValue: null,
|
|
44523
44531
|
index: this.body.inputs.length,
|
|
@@ -44613,7 +44621,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
44613
44621
|
previousVersion: null,
|
|
44614
44622
|
deleted: !1,
|
|
44615
44623
|
type: n.ArgumentDeclaration,
|
|
44616
|
-
name:
|
|
44624
|
+
name: ae.CURRENT_VALUE_ARG_NAME,
|
|
44617
44625
|
description: null,
|
|
44618
44626
|
defaultValue: null,
|
|
44619
44627
|
index: this.body.inputs.length,
|
|
@@ -44739,7 +44747,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
44739
44747
|
const S = V.getDataType(e);
|
|
44740
44748
|
(((c = S == null ? void 0 : S.entity) == null ? void 0 : c.properties) || []).forEach((me) => {
|
|
44741
44749
|
if (!me.getDataType(e)) {
|
|
44742
|
-
const
|
|
44750
|
+
const oe = {
|
|
44743
44751
|
id: y.UUID.uuid(),
|
|
44744
44752
|
version: y.UUID.uuid(),
|
|
44745
44753
|
createdAt: (e == null ? void 0 : e.timestamp) || v().toISOString(),
|
|
@@ -44762,7 +44770,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
44762
44770
|
parentRelationType: wt.OrDataTypeGroup,
|
|
44763
44771
|
parent: q.toReference()
|
|
44764
44772
|
}, Jt = P(
|
|
44765
|
-
|
|
44773
|
+
oe,
|
|
44766
44774
|
this.project
|
|
44767
44775
|
);
|
|
44768
44776
|
Jt.setParent(
|
|
@@ -44784,7 +44792,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
44784
44792
|
previousVersion: null,
|
|
44785
44793
|
deleted: !1,
|
|
44786
44794
|
type: n.ArgumentDeclaration,
|
|
44787
|
-
name:
|
|
44795
|
+
name: ae.CURRENT_VALUE_ARG_NAME,
|
|
44788
44796
|
description: null,
|
|
44789
44797
|
constant: !0,
|
|
44790
44798
|
defaultValue: null,
|
|
@@ -44875,7 +44883,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
44875
44883
|
previousVersion: null,
|
|
44876
44884
|
deleted: !1,
|
|
44877
44885
|
type: n.ArgumentDeclaration,
|
|
44878
|
-
name:
|
|
44886
|
+
name: ae.CURRENT_VALUE_ARG_NAME,
|
|
44879
44887
|
description: null,
|
|
44880
44888
|
index: this.body.inputs.length,
|
|
44881
44889
|
required: !0,
|
|
@@ -45312,9 +45320,9 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
45312
45320
|
const {
|
|
45313
45321
|
updated: me,
|
|
45314
45322
|
added: X,
|
|
45315
|
-
removed:
|
|
45323
|
+
removed: oe
|
|
45316
45324
|
} = this.syncOutputMaps(e);
|
|
45317
|
-
return t.push(...me), i.push(...X), s.push(...
|
|
45325
|
+
return t.push(...me), i.push(...X), s.push(...oe), e == null || e.attemptAutoclose("sync-children", this.id), {
|
|
45318
45326
|
self: this,
|
|
45319
45327
|
updated: p(t),
|
|
45320
45328
|
added: p(i),
|
|
@@ -45325,7 +45333,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
45325
45333
|
};
|
|
45326
45334
|
}
|
|
45327
45335
|
};
|
|
45328
|
-
f(
|
|
45336
|
+
f(ae, "repository", {
|
|
45329
45337
|
APICreate: async (e, ...t) => e,
|
|
45330
45338
|
APIUpdate: async (e, ...t) => e,
|
|
45331
45339
|
APIDelete: async (e, ...t) => e,
|
|
@@ -45333,40 +45341,40 @@ f(oe, "repository", {
|
|
|
45333
45341
|
},
|
|
45334
45342
|
APILoad: async (e, ...t) => null,
|
|
45335
45343
|
APILoadVersion: async (e, t, ...i) => null
|
|
45336
|
-
}), f(
|
|
45344
|
+
}), f(ae, "type", n.Loop), f(ae, "USER_MANAGED_PARENT_TYPES", [
|
|
45337
45345
|
...ft,
|
|
45338
45346
|
n.Project
|
|
45339
|
-
]), f(
|
|
45347
|
+
]), f(ae, "PARENT_TYPES", [
|
|
45340
45348
|
...We.USER_MANAGED_PARENT_TYPES
|
|
45341
|
-
]), f(
|
|
45349
|
+
]), f(ae, "CURRENT_ITERATION_NUMBER_ARG_NAME", "Current iteration number"), f(ae, "CURRENT_VALUE_ARG_NAME", "Current value"), f(ae, "MUTABLE_BASE_PROPERTIES", []), f(ae, "INMUTABLE_BASE_PROPERTIES", [
|
|
45342
45350
|
"id",
|
|
45343
45351
|
"type",
|
|
45344
45352
|
"version",
|
|
45345
45353
|
"createdAt",
|
|
45346
45354
|
"author",
|
|
45347
45355
|
"previousVersion"
|
|
45348
|
-
]), f(
|
|
45349
|
-
...
|
|
45350
|
-
...
|
|
45356
|
+
]), f(ae, "BASE_PROPERTIES", [
|
|
45357
|
+
...ae.MUTABLE_BASE_PROPERTIES,
|
|
45358
|
+
...ae.INMUTABLE_BASE_PROPERTIES
|
|
45351
45359
|
]), // Includes the base properties and the meta properties
|
|
45352
45360
|
// Often contains properties related to UX, not necessary for the logic
|
|
45353
|
-
f(
|
|
45354
|
-
...
|
|
45361
|
+
f(ae, "MUTABLE_META_PROPERTIES", [
|
|
45362
|
+
...ae.MUTABLE_BASE_PROPERTIES,
|
|
45355
45363
|
"x",
|
|
45356
45364
|
"y"
|
|
45357
|
-
]), f(
|
|
45358
|
-
...
|
|
45359
|
-
...
|
|
45365
|
+
]), f(ae, "INMUTABLE_META_PROPERTIES", [...ae.INMUTABLE_BASE_PROPERTIES]), f(ae, "META_PROPERTIES", [
|
|
45366
|
+
...ae.MUTABLE_META_PROPERTIES,
|
|
45367
|
+
...ae.INMUTABLE_META_PROPERTIES
|
|
45360
45368
|
]), // Properties pointing to nested entities that are declared before the entity itself
|
|
45361
|
-
f(
|
|
45369
|
+
f(ae, "MUTABLE_UPSTREAM_PROPERTIES", [
|
|
45362
45370
|
"calledBySuccess",
|
|
45363
45371
|
"calledByError",
|
|
45364
45372
|
"calledByEntry"
|
|
45365
|
-
]), f(
|
|
45366
|
-
...
|
|
45367
|
-
...
|
|
45373
|
+
]), f(ae, "INMUTABLE_UPSTREAM_PROPERTIES", ["parent", "declaration"]), f(ae, "UPSTREAM_PROPERTIES", [
|
|
45374
|
+
...ae.MUTABLE_UPSTREAM_PROPERTIES,
|
|
45375
|
+
...ae.INMUTABLE_UPSTREAM_PROPERTIES
|
|
45368
45376
|
]), // Properties pointing to nested entities that are declared after the entity itself or are direct children
|
|
45369
|
-
f(
|
|
45377
|
+
f(ae, "MUTABLE_DOWNSTREAM_PROPERTIES", [
|
|
45370
45378
|
"body",
|
|
45371
45379
|
"inputs",
|
|
45372
45380
|
"outputs",
|
|
@@ -45376,15 +45384,15 @@ f(oe, "MUTABLE_DOWNSTREAM_PROPERTIES", [
|
|
|
45376
45384
|
"error",
|
|
45377
45385
|
"breakStatements",
|
|
45378
45386
|
"continueStatements"
|
|
45379
|
-
]), f(
|
|
45380
|
-
...
|
|
45381
|
-
...
|
|
45382
|
-
]), f(
|
|
45383
|
-
...
|
|
45384
|
-
...
|
|
45385
|
-
...
|
|
45387
|
+
]), f(ae, "INMUTABLE_DOWNSTREAM_PROPERTIES", []), f(ae, "DOWNSTREAM_PROPERTIES", [
|
|
45388
|
+
...ae.MUTABLE_DOWNSTREAM_PROPERTIES,
|
|
45389
|
+
...ae.INMUTABLE_DOWNSTREAM_PROPERTIES
|
|
45390
|
+
]), f(ae, "PROPERTIES", [
|
|
45391
|
+
...ae.META_PROPERTIES,
|
|
45392
|
+
...ae.UPSTREAM_PROPERTIES,
|
|
45393
|
+
...ae.DOWNSTREAM_PROPERTIES
|
|
45386
45394
|
]);
|
|
45387
|
-
let Xr =
|
|
45395
|
+
let Xr = ae;
|
|
45388
45396
|
function rv(r) {
|
|
45389
45397
|
const a = w6(), e = r.toJSON();
|
|
45390
45398
|
a.safeParse(e).success, r.inputs.forEach((l) => l.validate());
|
|
@@ -49525,11 +49533,11 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
49525
49533
|
t.push(...S), i.push(...q), s.push(...ue), l.push(...me);
|
|
49526
49534
|
const {
|
|
49527
49535
|
updated: X,
|
|
49528
|
-
added:
|
|
49536
|
+
added: oe,
|
|
49529
49537
|
removed: Jt,
|
|
49530
49538
|
affected: Ui
|
|
49531
49539
|
} = Z.generateUnusedOutputs(e);
|
|
49532
|
-
t.push(...
|
|
49540
|
+
t.push(...oe), i.push(...X), s.push(...Jt), l.push(...Ui);
|
|
49533
49541
|
}), e == null || e.attemptAutoclose(
|
|
49534
49542
|
"infer-data-type-and-sync-instances-inputs-and-outputs",
|
|
49535
49543
|
this.id
|
|
@@ -64182,7 +64190,7 @@ function Dv(r, a, e, t, i) {
|
|
|
64182
64190
|
const Z = [];
|
|
64183
64191
|
let q = !1;
|
|
64184
64192
|
C.forEach((ue) => {
|
|
64185
|
-
var me, X,
|
|
64193
|
+
var me, X, oe, Jt;
|
|
64186
64194
|
if (Array.isArray(ue) && (q = !0), typeof ue == "object" && !Array.isArray(ue) && ue !== null) {
|
|
64187
64195
|
const Ui = Il(
|
|
64188
64196
|
ue,
|
|
@@ -64194,7 +64202,7 @@ function Dv(r, a, e, t, i) {
|
|
|
64194
64202
|
t,
|
|
64195
64203
|
i
|
|
64196
64204
|
);
|
|
64197
|
-
Ui.hasCreated && Z.push((me = Ui.changeSet) == null ? void 0 : me.self), s.push(...(X = Ui.changeSet) == null ? void 0 : X.updated), l.push(...(
|
|
64205
|
+
Ui.hasCreated && Z.push((me = Ui.changeSet) == null ? void 0 : me.self), s.push(...(X = Ui.changeSet) == null ? void 0 : X.updated), l.push(...(oe = Ui.changeSet) == null ? void 0 : oe.added), o.push(...(Jt = Ui.changeSet) == null ? void 0 : Jt.removed);
|
|
64198
64206
|
}
|
|
64199
64207
|
});
|
|
64200
64208
|
const S = p(
|
|
@@ -64310,7 +64318,7 @@ function Dv(r, a, e, t, i) {
|
|
|
64310
64318
|
X,
|
|
64311
64319
|
I.Added
|
|
64312
64320
|
), X.addSelfToProject(t);
|
|
64313
|
-
const
|
|
64321
|
+
const oe = Dv(
|
|
64314
64322
|
ue,
|
|
64315
64323
|
X,
|
|
64316
64324
|
{
|
|
@@ -64320,7 +64328,7 @@ function Dv(r, a, e, t, i) {
|
|
|
64320
64328
|
t,
|
|
64321
64329
|
i
|
|
64322
64330
|
);
|
|
64323
|
-
s.push(...
|
|
64331
|
+
s.push(...oe.updated), l.push(...oe.added), o.push(...oe.removed);
|
|
64324
64332
|
}
|
|
64325
64333
|
});
|
|
64326
64334
|
}
|
|
@@ -69250,20 +69258,20 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
69250
69258
|
!0
|
|
69251
69259
|
);
|
|
69252
69260
|
if (X) {
|
|
69253
|
-
const
|
|
69254
|
-
T.dataType && (
|
|
69261
|
+
const oe = (C = T.dataType) == null ? void 0 : C.merge(X, t);
|
|
69262
|
+
T.dataType && (oe == null ? void 0 : oe.self.id) !== T.dataType.id && T.dataType.remove(
|
|
69255
69263
|
{ ignoreUpstream: !1 },
|
|
69256
69264
|
t
|
|
69257
|
-
), X.id !== (($ =
|
|
69265
|
+
), X.id !== (($ = oe == null ? void 0 : oe.self) == null ? void 0 : $.id) && X.remove({ ignoreUpstream: !1 }, t), oe != null && oe.self && (oe.self.metaSync(
|
|
69258
69266
|
{
|
|
69259
69267
|
inferred: !0,
|
|
69260
69268
|
like: !0
|
|
69261
69269
|
},
|
|
69262
69270
|
t
|
|
69263
69271
|
), t == null || t.add(
|
|
69264
|
-
|
|
69272
|
+
oe.self,
|
|
69265
69273
|
I.Added
|
|
69266
|
-
), T.setDataType(
|
|
69274
|
+
), T.setDataType(oe.self), t == null || t.add(
|
|
69267
69275
|
T,
|
|
69268
69276
|
I.Updated
|
|
69269
69277
|
));
|