@elyx-code/project-logic-tree 0.0.6005 → 0.0.6007
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 +710 -703
- package/dist/index.umd.cjs +159 -159
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5267,10 +5267,10 @@ class we extends W {
|
|
|
5267
5267
|
o.includes(y) || d.push(y);
|
|
5268
5268
|
const u = [];
|
|
5269
5269
|
for (const y of o) {
|
|
5270
|
-
const m = s[y],
|
|
5270
|
+
const m = s[y], h = a.data[y];
|
|
5271
5271
|
u.push({
|
|
5272
5272
|
key: { status: "valid", value: y },
|
|
5273
|
-
value: m._parse(new qt(a,
|
|
5273
|
+
value: m._parse(new qt(a, h, a.path, y)),
|
|
5274
5274
|
alwaysSet: y in a.data
|
|
5275
5275
|
});
|
|
5276
5276
|
}
|
|
@@ -5292,11 +5292,11 @@ class we extends W {
|
|
|
5292
5292
|
} else {
|
|
5293
5293
|
const y = this._def.catchall;
|
|
5294
5294
|
for (const m of d) {
|
|
5295
|
-
const
|
|
5295
|
+
const h = a.data[m];
|
|
5296
5296
|
u.push({
|
|
5297
5297
|
key: { status: "valid", value: m },
|
|
5298
5298
|
value: y._parse(
|
|
5299
|
-
new qt(a,
|
|
5299
|
+
new qt(a, h, a.path, m)
|
|
5300
5300
|
//, ctx.child(key), value, getParsedType(value)
|
|
5301
5301
|
),
|
|
5302
5302
|
alwaysSet: m in a.data
|
|
@@ -5306,9 +5306,9 @@ class we extends W {
|
|
|
5306
5306
|
return a.common.async ? Promise.resolve().then(async () => {
|
|
5307
5307
|
const y = [];
|
|
5308
5308
|
for (const m of u) {
|
|
5309
|
-
const
|
|
5309
|
+
const h = await m.key, R = await m.value;
|
|
5310
5310
|
y.push({
|
|
5311
|
-
key:
|
|
5311
|
+
key: h,
|
|
5312
5312
|
value: R,
|
|
5313
5313
|
alwaysSet: m.alwaysSet
|
|
5314
5314
|
});
|
|
@@ -5984,9 +5984,9 @@ class sr extends W {
|
|
|
5984
5984
|
return rt(async function(...u) {
|
|
5985
5985
|
const y = new yt([]), m = await d._def.args.parseAsync(u, s).catch((g) => {
|
|
5986
5986
|
throw y.addIssue(i(u, g)), y;
|
|
5987
|
-
}),
|
|
5988
|
-
return await d._def.returns._def.type.parseAsync(
|
|
5989
|
-
throw y.addIssue(a(
|
|
5987
|
+
}), h = await Reflect.apply(o, this, m);
|
|
5988
|
+
return await d._def.returns._def.type.parseAsync(h, s).catch((g) => {
|
|
5989
|
+
throw y.addIssue(a(h, g)), y;
|
|
5990
5990
|
});
|
|
5991
5991
|
});
|
|
5992
5992
|
} else {
|
|
@@ -5995,10 +5995,10 @@ class sr extends W {
|
|
|
5995
5995
|
const y = d._def.args.safeParse(u, s);
|
|
5996
5996
|
if (!y.success)
|
|
5997
5997
|
throw new yt([i(u, y.error)]);
|
|
5998
|
-
const m = Reflect.apply(o, this, y.data),
|
|
5999
|
-
if (!
|
|
6000
|
-
throw new yt([a(m,
|
|
6001
|
-
return
|
|
5998
|
+
const m = Reflect.apply(o, this, y.data), h = d._def.returns.safeParse(m, s);
|
|
5999
|
+
if (!h.success)
|
|
6000
|
+
throw new yt([a(m, h.error)]);
|
|
6001
|
+
return h.data;
|
|
6002
6002
|
});
|
|
6003
6003
|
}
|
|
6004
6004
|
}
|
|
@@ -6756,8 +6756,8 @@ function Ug(n, e, t) {
|
|
|
6756
6756
|
Is = d, Ps = u, gs = o, d += 122192928e5;
|
|
6757
6757
|
const m = ((d & 268435455) * 1e4 + u) % 4294967296;
|
|
6758
6758
|
a[i++] = m >>> 24 & 255, a[i++] = m >>> 16 & 255, a[i++] = m >>> 8 & 255, a[i++] = m & 255;
|
|
6759
|
-
const
|
|
6760
|
-
a[i++] =
|
|
6759
|
+
const h = d / 4294967296 * 1e4 & 268435455;
|
|
6760
|
+
a[i++] = h >>> 8 & 255, a[i++] = h & 255, a[i++] = h >>> 24 & 15 | 16, a[i++] = h >>> 16 & 255, a[i++] = o >>> 8 | 128, a[i++] = o & 255;
|
|
6761
6761
|
for (let R = 0; R < 6; ++R)
|
|
6762
6762
|
a[i + R] = s[R];
|
|
6763
6763
|
return e || (0, Lg.unsafeStringify)(a);
|
|
@@ -6976,12 +6976,12 @@ function fI(n) {
|
|
|
6976
6976
|
d[g] = s[o][g];
|
|
6977
6977
|
for (let g = 16; g < 80; ++g)
|
|
6978
6978
|
d[g] = Ds(d[g - 3] ^ d[g - 8] ^ d[g - 14] ^ d[g - 16], 1);
|
|
6979
|
-
let u = t[0], y = t[1], m = t[2],
|
|
6979
|
+
let u = t[0], y = t[1], m = t[2], h = t[3], R = t[4];
|
|
6980
6980
|
for (let g = 0; g < 80; ++g) {
|
|
6981
|
-
const O = Math.floor(g / 20), $ = Ds(u, 5) + hI(O, y, m,
|
|
6982
|
-
R =
|
|
6981
|
+
const O = Math.floor(g / 20), $ = Ds(u, 5) + hI(O, y, m, h) + R + e[O] + d[g] >>> 0;
|
|
6982
|
+
R = h, h = m, m = Ds(y, 30) >>> 0, y = u, u = $;
|
|
6983
6983
|
}
|
|
6984
|
-
t[0] = t[0] + u >>> 0, t[1] = t[1] + y >>> 0, t[2] = t[2] + m >>> 0, t[3] = t[3] +
|
|
6984
|
+
t[0] = t[0] + u >>> 0, t[1] = t[1] + y >>> 0, t[2] = t[2] + m >>> 0, t[3] = t[3] + h >>> 0, t[4] = t[4] + R >>> 0;
|
|
6985
6985
|
}
|
|
6986
6986
|
return [t[0] >> 24 & 255, t[0] >> 16 & 255, t[0] >> 8 & 255, t[0] & 255, t[1] >> 24 & 255, t[1] >> 16 & 255, t[1] >> 8 & 255, t[1] & 255, t[2] >> 24 & 255, t[2] >> 16 & 255, t[2] >> 8 & 255, t[2] & 255, t[3] >> 24 & 255, t[3] >> 16 & 255, t[3] >> 8 & 255, t[3] & 255, t[4] >> 24 & 255, t[4] >> 16 & 255, t[4] >> 8 & 255, t[4] & 255];
|
|
6987
6987
|
}
|
|
@@ -7071,8 +7071,8 @@ Ua.default = DI;
|
|
|
7071
7071
|
}
|
|
7072
7072
|
});
|
|
7073
7073
|
var e = m(wa), t = m(_a), i = m($a), a = m(Ga), s = m(Fa), o = m(Ua), d = m(Un), u = m(gn), y = m(_i);
|
|
7074
|
-
function m(
|
|
7075
|
-
return
|
|
7074
|
+
function m(h) {
|
|
7075
|
+
return h && h.__esModule ? h : { default: h };
|
|
7076
7076
|
}
|
|
7077
7077
|
})(qd);
|
|
7078
7078
|
function So(n, e) {
|
|
@@ -7140,7 +7140,7 @@ var MI = (() => {
|
|
|
7140
7140
|
shortIdLength: s,
|
|
7141
7141
|
consistentLength: a.consistentLength,
|
|
7142
7142
|
paddingChar: i[0]
|
|
7143
|
-
}, d = ea(ea.HEX, i), u = ea(i, ea.HEX), y = () => gc(As(), d, o),
|
|
7143
|
+
}, d = ea(ea.HEX, i), u = ea(i, ea.HEX), y = () => gc(As(), d, o), h = {
|
|
7144
7144
|
alphabet: i,
|
|
7145
7145
|
fromUUID: (R) => gc(R, d, o),
|
|
7146
7146
|
maxLength: s,
|
|
@@ -7155,7 +7155,7 @@ var MI = (() => {
|
|
|
7155
7155
|
return g === !1 ? O && $ : O && $ && CI(Ic(R, u));
|
|
7156
7156
|
}
|
|
7157
7157
|
};
|
|
7158
|
-
return Object.freeze(
|
|
7158
|
+
return Object.freeze(h), h;
|
|
7159
7159
|
};
|
|
7160
7160
|
return n.constants = Ss, n.uuid = As, n.generate = () => (Os || (Os = n(Ss.flickrBase58).generate), Os()), n;
|
|
7161
7161
|
})();
|
|
@@ -16512,7 +16512,7 @@ const BV = {
|
|
|
16512
16512
|
loops: [wV],
|
|
16513
16513
|
searches: [$V]
|
|
16514
16514
|
};
|
|
16515
|
-
var
|
|
16515
|
+
var f = /* @__PURE__ */ ((n) => (n.Error = "error", n.Warning = "warning", n))(f || {}), b = /* @__PURE__ */ ((n) => (n.InvalidObjectStructure = "invalid-object-structure", n.NameNotUniqueInScope = "name-not-unique-in-scope", n.EmptyName = "empty-name", n.MissingCaller = "missing-caller", n.PropertyOverwrite = "property-overwrite", n.MethodOverwrite = "method-overwrite", n.NoOverlapWithImplementedSignature = "no-overlap-with-implemented-signature", n.ReaderWriterIncompatibleDataType = "reader-writer-incompatible-data-type", n.UnreachableEntity = "unreachable-entity", n.InternalCallParentMissingDataType = "internal-call-parent-missing-data-type", n.InternalCallParentDeclarationEntityInvalidType = "internal-call-parent-declaration-entity-invalid-type", n.InternalCallDeclarationNotFoundInParentDatatypeEntity = "internal-call-declaration-not-found-in-parent-datatype-entity", n.InternalCallDeclarationIsNotFunctionDeclaration = "internal-call-declaration-is-not-function-declaration", n.InternalCallDeclarationNotInParentDatatypeEntity = "internal-call-declaration-not-in-parent-datatype-entity", n))(b || {}), p = /* @__PURE__ */ ((n) => (n.RootReference = "root-reference", n.ReferencedEntityNotFound = "referenced-entity-not-found", n.EntityIdNotUnique = "entity-id-not-unique", n.BuiltInEntityGenerated = "built-in-entity-generated", n.BuiltInEntityUpdated = "built-in-entity-updated", n.BuiltInEntityDeleted = "built-in-entity-deleted", n.UnknownEntityType = "unknown-entity-type", n.MissingTypeProperty = "missing-type-property", n.MissingIdProperty = "missing-id-property", n.BuiltInEntityParent = "built-in-entity-parent", n.InvalidBuiltInEntityReference = "invalid-built-in-entity-reference", n.RecommendedImplementAbstractEntityAction = "recommended-implement-abstract-entity-action", n.RecommendedImplementOperationAction = "recommended-implement-operation-action", n.RecommendedImplementFunctionCallAction = "recommended-implement-function-call-action", n.RecommendedImplementVariableDeclarationAction = "recommended-implement-variable-declaration-action", n.RecommendedImplementVariableInstanceAction = "recommended-implement-variable-instance-action", n.RecommendedImplementConditionAction = "recommended-implement-condition-action", n.InvalidReferenceObjectStructure = "invalid-reference-object-structure", n.ContainsSingleButShouldBeReferenceList = "contains-single-but-should-be-reference-list", n.ContainsListButShouldReferenceSingle = "contains-list-but-should-reference-single", n.InvalidParentReference = "invalid-parent-reference", n.InvalidImplementsReference = "invalid-implements-reference", n.InvalidExtendsReference = "invalid-extends-reference", n.InvalidGenerationActionPayload = "invalid-generation-action-payload", n.InvalidReference = "invalid-reference", n.InvalidInternalCallParentRelation = "invalid-internal-call-parent-relation", n.InvalidUpdateEntityOperation = "invalid-update-entity-operation", n.NewEntityWouldOverriteExisting = "new-entity-would-overrite-existing", n.InvalidDownstreamPropertyOverride = "invalid-downstream-property-override", n.UnrecognizedProperty = "unrecognized-property", n.SelfReference = "self-reference", n.DuplicateReference = "duplicate-reference", n.CallerWithIncompatibleScope = "caller-with-incompatible-scope", n.InvalidFunctionDeclarationForFunctionCall = "invalid-function-declaration-for-function-call", n.InvalidInputMapDeclaration = "invalid-input-map-declaration", n.InvalidActionDescriptorForOperation = "invalid-action-descriptor-for-operation", n.InvalidActionDescriptorForCondition = "invalid-action-descriptor-for-condition", n.InvalidActionDescriptorForLoop = "invalid-action-descriptor-for-loop", n.InvalidInmutablePropertyOverride = "invalid-inmutable-property-override", n.OutputOverwrite = "output-overwrite", n.InputOverwrite = "input-overwrite", n.IncompatibleScope = "incompatible-scope", n.InvalidParentUpdate = "invalid-parent-update", n.NonInteractiveEntityReferenced = "non-interactive-entity-referenced", n.InvalidParentRelationType = "invalid-parent-relation-type", n))(p || {}), S = /* @__PURE__ */ ((n) => (n.ScopeWithoutLogic = "scope-without-logic", n.ExtendingAbstractEntity = "extending-abstract-entity", n.ImplementingNonAbstractEntity = "implementing-non-abstract-entity", n.AbstractEntityWithNonAbstractMethods = "abstract-entity-with-non-abstract-methods", n.AbstractEntityWithNonAbstractProperties = "abstract-entity-with-non-abstract-properties", n.StaticEntityWithNonStaticProperties = "static-entity-with-non-static-properties", n.NonStaticPropertyInStaticEntity = "non-static-property-in-static-entity", n.AbstractPropertyInNonAbstractEntity = "abstract-property-in-non-abstract-entity", n.AbstractMethodInNonAbstractEntity = "abstract-method-in-non-abstract-entity", n.IncorrectEntityImplementation = "incorrect-entity-implementation", n.IncorrectMethodImplementation = "incorrect-method-implementation", n.IncorrectPropertyImplementation = "incorrect-property-implementation", n.PropertyImplementsNonAbstact = "property-implements-non-abstract", n.NonStaticPropertyImplementsStatic = "non-static-property-implements-static", n.StaticPropertyImplementsNonStatic = "static-property-implements-non-static", n.PropertyImplementsIncompatibleType = "property-implements-incompatible-type", n.MissingPropertyImplementation = "missing-property-implementation", n.MissingMethodImplementation = "missing-method-implementation", n.NoProperties = "no-properties", n.ReadingFromIncompatibleType = "reading-from-incompatible-type", n.WritingToIncompatibleType = "writing-to-incompatible-type", n.InvalidPropertiesCombination = "invalid-properties-combination", n.DisconnectedCallableEntity = "disconnected-callable-entity", n.VariableReadsValueAndInternalCall = "variable-reads-value-and-internal-call", n.VariableWritesValuesAndInternalCall = "variable-writes-values-and-internal-call", n.VariableHasInputsAndInternalCall = "variable-has-inputs-and-internal-calls", n.VariableHasOutputsAndInternalCall = "variable-has-outputs-and-internal-call", n.VariableIsCalledAndHasInternalCall = "variable-is-called-and-has-internal-call", n.VariableCallsOthersAndHasInternalCall = "variable-calls-others-and-has-internal-call", n))(S || {});
|
|
16516
16516
|
class T {
|
|
16517
16517
|
constructor(e) {
|
|
16518
16518
|
// A deterministic error code, so if the same error occurs again in a subsequent validation run,
|
|
@@ -18986,11 +18986,11 @@ function fF(n, e) {
|
|
|
18986
18986
|
const t = [];
|
|
18987
18987
|
if (!e.abstract) {
|
|
18988
18988
|
const m = U({
|
|
18989
|
-
id: n.id + "--" +
|
|
18989
|
+
id: n.id + "--" + S.ImplementingNonAbstractEntity,
|
|
18990
18990
|
message: `Entity "${n.name}" with id "${n.id}" is implementing a non-abstract entity "${e.name}" with id "${e.id}"`,
|
|
18991
18991
|
issue: null,
|
|
18992
|
-
severity:
|
|
18993
|
-
code:
|
|
18992
|
+
severity: f.Error,
|
|
18993
|
+
code: S.ImplementingNonAbstractEntity,
|
|
18994
18994
|
entity: n
|
|
18995
18995
|
});
|
|
18996
18996
|
return t.push(m.error), t;
|
|
@@ -18998,93 +18998,93 @@ function fF(n, e) {
|
|
|
18998
18998
|
const i = e.properties.filter((m) => m.abstract), a = [];
|
|
18999
18999
|
let s = [...n.properties];
|
|
19000
19000
|
i.forEach((m) => {
|
|
19001
|
-
const
|
|
19001
|
+
const h = s.find(
|
|
19002
19002
|
(R) => {
|
|
19003
19003
|
var g;
|
|
19004
19004
|
return ((g = R.implements) == null ? void 0 : g.id) === m.id;
|
|
19005
19005
|
}
|
|
19006
19006
|
);
|
|
19007
|
-
|
|
19008
|
-
(R) => R.id !==
|
|
19007
|
+
h ? s = s.filter(
|
|
19008
|
+
(R) => R.id !== h.id
|
|
19009
19009
|
) : a.push(m);
|
|
19010
19010
|
}), a.length && a.forEach((m) => {
|
|
19011
|
-
const
|
|
19012
|
-
id: n.id + "--" +
|
|
19011
|
+
const h = U({
|
|
19012
|
+
id: n.id + "--" + S.MissingPropertyImplementation + "--" + m.id,
|
|
19013
19013
|
message: `Property "${m.name}" with id "${m.id}" of entity "${e.name}" with id "${e.id}" is not implemented when entity "${n.name}" with id "${n.id}" implements it`,
|
|
19014
19014
|
issue: null,
|
|
19015
|
-
severity:
|
|
19016
|
-
code:
|
|
19015
|
+
severity: f.Error,
|
|
19016
|
+
code: S.MissingPropertyImplementation,
|
|
19017
19017
|
entity: n
|
|
19018
19018
|
});
|
|
19019
|
-
t.push(
|
|
19019
|
+
t.push(h.error);
|
|
19020
19020
|
});
|
|
19021
19021
|
const o = [];
|
|
19022
19022
|
let d = [...n.methods];
|
|
19023
19023
|
e.abstractMethods.forEach((m) => {
|
|
19024
|
-
const
|
|
19024
|
+
const h = d.find(
|
|
19025
19025
|
(R) => {
|
|
19026
19026
|
var g;
|
|
19027
19027
|
return ((g = R.implements) == null ? void 0 : g.id) === m.id;
|
|
19028
19028
|
}
|
|
19029
19029
|
);
|
|
19030
|
-
|
|
19031
|
-
(R) => R.id !==
|
|
19030
|
+
h ? d = d.filter(
|
|
19031
|
+
(R) => R.id !== h.id
|
|
19032
19032
|
) : o.push(m);
|
|
19033
19033
|
}), o.length && o.forEach((m) => {
|
|
19034
|
-
const
|
|
19035
|
-
id: n.id + "--" +
|
|
19034
|
+
const h = U({
|
|
19035
|
+
id: n.id + "--" + S.MissingMethodImplementation + "--" + m.id,
|
|
19036
19036
|
message: `Method "${m.name}" with id "${m.id}" of entity "${e.name}" with id "${e.id}" is not implemented when entity "${n.name}" with id "${n.id}" implements it`,
|
|
19037
19037
|
issue: null,
|
|
19038
|
-
severity:
|
|
19039
|
-
code:
|
|
19038
|
+
severity: f.Error,
|
|
19039
|
+
code: S.MissingMethodImplementation,
|
|
19040
19040
|
entity: n
|
|
19041
19041
|
});
|
|
19042
|
-
t.push(
|
|
19042
|
+
t.push(h.error);
|
|
19043
19043
|
});
|
|
19044
19044
|
const u = [];
|
|
19045
19045
|
e.properties.forEach((m) => {
|
|
19046
|
-
const
|
|
19046
|
+
const h = s.find(
|
|
19047
19047
|
(R) => R.name === m.name
|
|
19048
19048
|
);
|
|
19049
|
-
|
|
19049
|
+
h && u.push([h, m]);
|
|
19050
19050
|
}), u.length && u.forEach(([m]) => {
|
|
19051
|
-
const
|
|
19051
|
+
const h = U({
|
|
19052
19052
|
id: n.id + "--" + b.PropertyOverwrite + "--" + m.id,
|
|
19053
19053
|
message: `Property "${m.name}" with id "${m.id}" of entity "${n.name}" with id "${n.id}" overwrites the property with the same name from the base entity "${e.name}" with id "${e.id}"`,
|
|
19054
19054
|
issue: null,
|
|
19055
|
-
severity:
|
|
19055
|
+
severity: f.Error,
|
|
19056
19056
|
code: b.PropertyOverwrite,
|
|
19057
19057
|
entity: n
|
|
19058
19058
|
});
|
|
19059
|
-
t.push(
|
|
19059
|
+
t.push(h.error);
|
|
19060
19060
|
});
|
|
19061
19061
|
const y = [];
|
|
19062
19062
|
return e.methods.forEach((m) => {
|
|
19063
|
-
const
|
|
19063
|
+
const h = d.find(
|
|
19064
19064
|
(R) => R.name === m.name
|
|
19065
19065
|
);
|
|
19066
|
-
|
|
19066
|
+
h && y.push([h, m]);
|
|
19067
19067
|
}), y.length && y.forEach(([m]) => {
|
|
19068
|
-
const
|
|
19068
|
+
const h = U({
|
|
19069
19069
|
id: n.id + "--" + b.MethodOverwrite + "--" + m.id,
|
|
19070
19070
|
message: `Method "${m.name}" with id "${m.id}" of entity "${n.name}" with id "${n.id}" overwrites the method with the same name from the base entity "${e.name}" with id "${e.id}"`,
|
|
19071
19071
|
issue: null,
|
|
19072
|
-
severity:
|
|
19072
|
+
severity: f.Error,
|
|
19073
19073
|
code: b.MethodOverwrite,
|
|
19074
19074
|
entity: n
|
|
19075
19075
|
});
|
|
19076
|
-
t.push(
|
|
19076
|
+
t.push(h.error);
|
|
19077
19077
|
}), t;
|
|
19078
19078
|
}
|
|
19079
19079
|
function mF(n, e) {
|
|
19080
19080
|
const t = [], i = [];
|
|
19081
19081
|
if (e.abstract) {
|
|
19082
19082
|
const s = U({
|
|
19083
|
-
id: n.id + "--" +
|
|
19083
|
+
id: n.id + "--" + S.ExtendingAbstractEntity,
|
|
19084
19084
|
message: `Entity "${n.name}" with id "${n.id}" is extending an abstract entity "${e.name}" with id "${e.id}"`,
|
|
19085
19085
|
issue: null,
|
|
19086
|
-
severity:
|
|
19087
|
-
code:
|
|
19086
|
+
severity: f.Error,
|
|
19087
|
+
code: S.ExtendingAbstractEntity,
|
|
19088
19088
|
entity: n
|
|
19089
19089
|
});
|
|
19090
19090
|
return t.push(s.error), t;
|
|
@@ -19101,7 +19101,7 @@ function mF(n, e) {
|
|
|
19101
19101
|
id: n.id + "--" + b.PropertyOverwrite,
|
|
19102
19102
|
message: `Property "${s.name}" with id "${s.id}" of entity "${n.name}" with id "${n.id}" overwrites the property with the same name from the extended entity "${e.name}" with id "${e.id}"`,
|
|
19103
19103
|
issue: null,
|
|
19104
|
-
severity:
|
|
19104
|
+
severity: f.Error,
|
|
19105
19105
|
code: b.PropertyOverwrite,
|
|
19106
19106
|
entity: n
|
|
19107
19107
|
});
|
|
@@ -19120,7 +19120,7 @@ function mF(n, e) {
|
|
|
19120
19120
|
id: n.id + "--" + b.MethodOverwrite,
|
|
19121
19121
|
message: `Method "${s.name}" with id "${s.id}" of entity "${n.name}" with id "${n.id}" overwrites the method with the same name from the extended entity "${e.name}" with id "${e.id}"`,
|
|
19122
19122
|
issue: null,
|
|
19123
|
-
severity:
|
|
19123
|
+
severity: f.Error,
|
|
19124
19124
|
code: b.MethodOverwrite,
|
|
19125
19125
|
entity: n
|
|
19126
19126
|
});
|
|
@@ -19131,11 +19131,11 @@ function TF(n) {
|
|
|
19131
19131
|
const e = [];
|
|
19132
19132
|
if (!n.properties.length) {
|
|
19133
19133
|
const t = U({
|
|
19134
|
-
id: n.id + "--" +
|
|
19134
|
+
id: n.id + "--" + S.NoProperties,
|
|
19135
19135
|
message: "No properties implemented",
|
|
19136
19136
|
issue: null,
|
|
19137
|
-
severity:
|
|
19138
|
-
code:
|
|
19137
|
+
severity: f.Warning,
|
|
19138
|
+
code: S.NoProperties,
|
|
19139
19139
|
entity: n
|
|
19140
19140
|
});
|
|
19141
19141
|
e.push(t.error);
|
|
@@ -19149,32 +19149,32 @@ function EF(n) {
|
|
|
19149
19149
|
if (n.abstract) {
|
|
19150
19150
|
if (n.methods.length) {
|
|
19151
19151
|
const t = U({
|
|
19152
|
-
id: n.id + "--" +
|
|
19152
|
+
id: n.id + "--" + S.AbstractEntityWithNonAbstractMethods,
|
|
19153
19153
|
message: `Entity "${n.name}" with id "${n.id}" is marked as abstract but has non-abstract methods`,
|
|
19154
19154
|
issue: null,
|
|
19155
|
-
severity:
|
|
19156
|
-
code:
|
|
19155
|
+
severity: f.Error,
|
|
19156
|
+
code: S.AbstractEntityWithNonAbstractMethods,
|
|
19157
19157
|
entity: n
|
|
19158
19158
|
});
|
|
19159
19159
|
e.push(t.error);
|
|
19160
19160
|
}
|
|
19161
19161
|
if (n.properties.some((t) => !t.abstract)) {
|
|
19162
19162
|
const t = U({
|
|
19163
|
-
id: n.id + "--" +
|
|
19163
|
+
id: n.id + "--" + S.AbstractEntityWithNonAbstractProperties,
|
|
19164
19164
|
message: `Entity "${n.name}" with id "${n.id}" is marked as abstract but has non-abstract properties`,
|
|
19165
19165
|
issue: null,
|
|
19166
|
-
severity:
|
|
19167
|
-
code:
|
|
19166
|
+
severity: f.Error,
|
|
19167
|
+
code: S.AbstractEntityWithNonAbstractProperties,
|
|
19168
19168
|
entity: n
|
|
19169
19169
|
});
|
|
19170
19170
|
e.push(t.error), n.properties.forEach((i) => {
|
|
19171
19171
|
if (!i.abstract) {
|
|
19172
19172
|
const a = U({
|
|
19173
|
-
id: n.id + "--" +
|
|
19173
|
+
id: n.id + "--" + S.StaticEntityWithNonStaticProperties + "--" + i.id,
|
|
19174
19174
|
message: `Property "${i.name}" with id "${i.id}" of entity "${n.name}" with id "${n.id}" is not marked as abstract but the entity is marked as abstract`,
|
|
19175
19175
|
issue: null,
|
|
19176
|
-
severity:
|
|
19177
|
-
code:
|
|
19176
|
+
severity: f.Error,
|
|
19177
|
+
code: S.StaticEntityWithNonStaticProperties,
|
|
19178
19178
|
entity: n
|
|
19179
19179
|
});
|
|
19180
19180
|
e.push(a.error);
|
|
@@ -19184,32 +19184,32 @@ function EF(n) {
|
|
|
19184
19184
|
} else {
|
|
19185
19185
|
if (n.abstractMethods.length) {
|
|
19186
19186
|
const t = U({
|
|
19187
|
-
id: n.id + "--" +
|
|
19187
|
+
id: n.id + "--" + S.AbstractPropertyInNonAbstractEntity,
|
|
19188
19188
|
message: `Entity "${n.name}" with id "${n.id}" is not marked as abstract but has abstract methods`,
|
|
19189
19189
|
issue: null,
|
|
19190
|
-
severity:
|
|
19191
|
-
code:
|
|
19190
|
+
severity: f.Error,
|
|
19191
|
+
code: S.AbstractPropertyInNonAbstractEntity,
|
|
19192
19192
|
entity: n
|
|
19193
19193
|
});
|
|
19194
19194
|
e.push(t.error);
|
|
19195
19195
|
}
|
|
19196
19196
|
if (n.properties.some((t) => t.abstract)) {
|
|
19197
19197
|
const t = U({
|
|
19198
|
-
id: n.id + "--" +
|
|
19198
|
+
id: n.id + "--" + S.AbstractMethodInNonAbstractEntity,
|
|
19199
19199
|
message: `Entity "${n.name}" with id "${n.id}" is not marked as abstract but has abstract properties`,
|
|
19200
19200
|
issue: null,
|
|
19201
|
-
severity:
|
|
19202
|
-
code:
|
|
19201
|
+
severity: f.Error,
|
|
19202
|
+
code: S.AbstractMethodInNonAbstractEntity,
|
|
19203
19203
|
entity: n
|
|
19204
19204
|
});
|
|
19205
19205
|
e.push(t.error), n.properties.forEach((i) => {
|
|
19206
19206
|
if (i.abstract) {
|
|
19207
19207
|
const a = U({
|
|
19208
|
-
id: n.id + "--" +
|
|
19208
|
+
id: n.id + "--" + S.AbstractMethodInNonAbstractEntity + "--" + i.id,
|
|
19209
19209
|
message: `Property "${i.name}" with id "${i.id}" of entity "${n.name}" with id "${n.id}" is marked as abstract but the entity is not marked as abstract`,
|
|
19210
19210
|
issue: null,
|
|
19211
|
-
severity:
|
|
19212
|
-
code:
|
|
19211
|
+
severity: f.Error,
|
|
19212
|
+
code: S.AbstractMethodInNonAbstractEntity,
|
|
19213
19213
|
entity: n
|
|
19214
19214
|
});
|
|
19215
19215
|
e.push(a.error);
|
|
@@ -19219,21 +19219,21 @@ function EF(n) {
|
|
|
19219
19219
|
}
|
|
19220
19220
|
if (n.static && n.properties.some((t) => !t.static)) {
|
|
19221
19221
|
const t = U({
|
|
19222
|
-
id: n.id + "--" +
|
|
19222
|
+
id: n.id + "--" + S.StaticEntityWithNonStaticProperties,
|
|
19223
19223
|
message: `Entity "${n.name}" with id "${n.id}" is marked as static but has non-static properties`,
|
|
19224
19224
|
issue: null,
|
|
19225
|
-
severity:
|
|
19226
|
-
code:
|
|
19225
|
+
severity: f.Error,
|
|
19226
|
+
code: S.StaticEntityWithNonStaticProperties,
|
|
19227
19227
|
entity: n
|
|
19228
19228
|
});
|
|
19229
19229
|
e.push(t.error), n.properties.forEach((i) => {
|
|
19230
19230
|
if (!i.static) {
|
|
19231
19231
|
const a = U({
|
|
19232
|
-
id: n.id + "--" +
|
|
19232
|
+
id: n.id + "--" + S.NonStaticPropertyInStaticEntity + "--" + i.id,
|
|
19233
19233
|
message: `Property "${i.name}" with id "${i.id}" of entity "${n.name}" with id "${n.id}" is not marked as static but the entity is marked as static`,
|
|
19234
19234
|
issue: null,
|
|
19235
|
-
severity:
|
|
19236
|
-
code:
|
|
19235
|
+
severity: f.Error,
|
|
19236
|
+
code: S.NonStaticPropertyInStaticEntity,
|
|
19237
19237
|
entity: n
|
|
19238
19238
|
});
|
|
19239
19239
|
e.push(a.error);
|
|
@@ -19577,11 +19577,11 @@ function Bh(n, e, t, i) {
|
|
|
19577
19577
|
if (!Ws(n[y], e[y], t, i))
|
|
19578
19578
|
return !1;
|
|
19579
19579
|
} else {
|
|
19580
|
-
var m = ke(n),
|
|
19580
|
+
var m = ke(n), h;
|
|
19581
19581
|
if (y = m.length, ke(e).length !== y)
|
|
19582
19582
|
return !1;
|
|
19583
19583
|
for (; y--; )
|
|
19584
|
-
if (
|
|
19584
|
+
if (h = m[y], !(Sn(e, h) && Ws(n[h], e[h], t, i)))
|
|
19585
19585
|
return !1;
|
|
19586
19586
|
}
|
|
19587
19587
|
return t.pop(), i.pop(), !0;
|
|
@@ -19812,11 +19812,11 @@ function vU(n, e, t) {
|
|
|
19812
19812
|
(e.interpolate || Cs).source,
|
|
19813
19813
|
(e.evaluate || Cs).source
|
|
19814
19814
|
].join("|") + "|$", "g"), a = 0, s = "__p+='";
|
|
19815
|
-
n.replace(i, function(y, m,
|
|
19815
|
+
n.replace(i, function(y, m, h, R, g) {
|
|
19816
19816
|
return s += n.slice(a, g).replace(EU, RU), a = g + y.length, m ? s += `'+
|
|
19817
19817
|
((__t=(` + m + `))==null?'':_.escape(__t))+
|
|
19818
|
-
'` :
|
|
19819
|
-
((__t=(` +
|
|
19818
|
+
'` : h ? s += `'+
|
|
19819
|
+
((__t=(` + h + `))==null?'':__t)+
|
|
19820
19820
|
'` : R && (s += `';
|
|
19821
19821
|
` + R + `
|
|
19822
19822
|
__p+='`), y;
|
|
@@ -19941,8 +19941,8 @@ function CU(n, e, t) {
|
|
|
19941
19941
|
}, y = function() {
|
|
19942
19942
|
var m = bi();
|
|
19943
19943
|
!d && t.leading === !1 && (d = m);
|
|
19944
|
-
var
|
|
19945
|
-
return a = this, s = arguments,
|
|
19944
|
+
var h = e - (m - d);
|
|
19945
|
+
return a = this, s = arguments, h <= 0 || h > e ? (i && (clearTimeout(i), i = null), d = m, o = n.apply(a, s), i || (a = s = null)) : !i && t.trailing !== !1 && (i = setTimeout(u, h)), o;
|
|
19946
19946
|
};
|
|
19947
19947
|
return y.cancel = function() {
|
|
19948
19948
|
clearTimeout(i), d = 0, i = a = s = null;
|
|
@@ -20127,8 +20127,8 @@ function nf(n, e, t) {
|
|
|
20127
20127
|
for (var d = 0, u = n.length; d < u; d++)
|
|
20128
20128
|
s = n[d], s != null && s > i && (i = s);
|
|
20129
20129
|
} else
|
|
20130
|
-
e = vt(e, t), an(n, function(y, m,
|
|
20131
|
-
o = e(y, m,
|
|
20130
|
+
e = vt(e, t), an(n, function(y, m, h) {
|
|
20131
|
+
o = e(y, m, h), (o > a || o === -1 / 0 && i === -1 / 0) && (i = y, a = o);
|
|
20132
20132
|
});
|
|
20133
20133
|
return i;
|
|
20134
20134
|
}
|
|
@@ -20139,8 +20139,8 @@ function FU(n, e, t) {
|
|
|
20139
20139
|
for (var d = 0, u = n.length; d < u; d++)
|
|
20140
20140
|
s = n[d], s != null && s < i && (i = s);
|
|
20141
20141
|
} else
|
|
20142
|
-
e = vt(e, t), an(n, function(y, m,
|
|
20143
|
-
o = e(y, m,
|
|
20142
|
+
e = vt(e, t), an(n, function(y, m, h) {
|
|
20143
|
+
o = e(y, m, h), (o < a || o === 1 / 0 && i === 1 / 0) && (i = y, a = o);
|
|
20144
20144
|
});
|
|
20145
20145
|
return i;
|
|
20146
20146
|
}
|
|
@@ -20517,7 +20517,7 @@ function d8(n, e) {
|
|
|
20517
20517
|
}
|
|
20518
20518
|
var Mt = /* @__PURE__ */ ((n) => (n.BothUnconstrained = "both-unconstrained", n.AConstraintBUnconstrained = "a-constraint-b-unconstrained", n.BConstraintAUnconstrained = "b-constraint-a-unconstrained", n.Same = "same", n.AIsListBIsNot = "a-is-list-b-is-not", n.BIsListAIsNot = "b-is-list-a-is-not", n.AIsNullableBIsNot = "a-is-nullable-b-is-not", n.BIsNullableAIsNot = "b-is-nullable-a-is-not", n.AIsTemplateBIsNot = "a-is-template-b-is-not", n.BIsTemplateAIsNot = "b-is-template-a-is-not", n.BothUntyped = "both-untyped", n.AIsUntypedBIsNot = "a-is-untyped-b-is-not", n.BIsUntypedAIsNot = "b-is-untyped-a-is-not", n.TypeEntityMismatch = "type-entity-mismatch", n.SameCustomEntities = "same-custom-entities", n.CompatibleCustomEntities = "compatible-custom-entities", n.IncompatibleCustomEntities = "incompatible-custom-entities", n.SamePrimitiveEntities = "same-primitive-entities", n.IncompatiblePrimitiveEntities = "incompatible-primitive-entities", n.SameBuiltInBaseEntities = "same-built-in-base-entities", n.IncompatibleBuiltInBaseEntities = "incompatible-built-in-base-entities", n.CheckUnknown = "check-unknown", n))(Mt || {});
|
|
20519
20519
|
function lc(n, e) {
|
|
20520
|
-
var t, i, a, s, o, d, u, y, m,
|
|
20520
|
+
var t, i, a, s, o, d, u, y, m, h, R;
|
|
20521
20521
|
if (n && n.type !== r.DataType || e && e.type !== r.DataType)
|
|
20522
20522
|
throw new Error(
|
|
20523
20523
|
`Expected data-type entities for comparison. But got ${n == null ? void 0 : n.type} and ${e == null ? void 0 : e.type}.`
|
|
@@ -20619,7 +20619,7 @@ function lc(n, e) {
|
|
|
20619
20619
|
compatible: !1,
|
|
20620
20620
|
type: "incompatible-primitive-entities"
|
|
20621
20621
|
/* IncompatiblePrimitiveEntities */
|
|
20622
|
-
} : ((m = n.entity) == null ? void 0 : m.type) === r.BuiltInBaseEntity ? ((
|
|
20622
|
+
} : ((m = n.entity) == null ? void 0 : m.type) === r.BuiltInBaseEntity ? ((h = n.entity) == null ? void 0 : h.id) === ((R = e.entity) == null ? void 0 : R.id) ? {
|
|
20623
20623
|
compatible: !0,
|
|
20624
20624
|
type: "same-built-in-base-entities"
|
|
20625
20625
|
/* SameBuiltInBaseEntities */
|
|
@@ -21250,7 +21250,7 @@ function dc(n, e) {
|
|
|
21250
21250
|
new T({
|
|
21251
21251
|
id: `${n.id}--${b.EmptyName}`,
|
|
21252
21252
|
message: `Entity with id "${n.id}" and type "${n.type}" has an empty name. Please provide a 'name' string.`,
|
|
21253
|
-
severity:
|
|
21253
|
+
severity: f.Error,
|
|
21254
21254
|
code: b.EmptyName,
|
|
21255
21255
|
issue: null
|
|
21256
21256
|
})
|
|
@@ -21263,7 +21263,7 @@ function dc(n, e) {
|
|
|
21263
21263
|
id: `${n.id}--${b.NameNotUniqueInScope}`,
|
|
21264
21264
|
message: `Entity with id "${n.id}" and type "${n.type}" has a name "${n.name}" that is not unique in the project. Entity with id "${i[0].id}" has the same name.
|
|
21265
21265
|
Please provide a unique 'name' string.`,
|
|
21266
|
-
severity:
|
|
21266
|
+
severity: f.Error,
|
|
21267
21267
|
code: b.NameNotUniqueInScope,
|
|
21268
21268
|
issue: null
|
|
21269
21269
|
})
|
|
@@ -21275,7 +21275,7 @@ function hf(n, e) {
|
|
|
21275
21275
|
new T({
|
|
21276
21276
|
id: `${n.id}--${b.EmptyName}`,
|
|
21277
21277
|
message: `Entity with id "${n.id}" and type "${n.type}" has an empty name. Please provide a 'name' string.`,
|
|
21278
|
-
severity:
|
|
21278
|
+
severity: f.Error,
|
|
21279
21279
|
code: b.EmptyName,
|
|
21280
21280
|
issue: null
|
|
21281
21281
|
})
|
|
@@ -21299,7 +21299,7 @@ function hf(n, e) {
|
|
|
21299
21299
|
id: `${n.id}--${b.NameNotUniqueInScope}`,
|
|
21300
21300
|
message: `Entity with id "${n.id}" and type "${n.type}" has a name "${n.name}" that is not unique in ${a.type === r.Project ? "the globally declared project scope" : "its parent entity"}. Entity with id "${o[0].id}" has the same name.
|
|
21301
21301
|
Please provide a unique 'name' string.`,
|
|
21302
|
-
severity:
|
|
21302
|
+
severity: f.Error,
|
|
21303
21303
|
code: b.NameNotUniqueInScope,
|
|
21304
21304
|
issue: null
|
|
21305
21305
|
})
|
|
@@ -21311,7 +21311,7 @@ function ff(n, e) {
|
|
|
21311
21311
|
new T({
|
|
21312
21312
|
id: `${n.id}--${b.EmptyName}`,
|
|
21313
21313
|
message: `Entity with id "${n.id}" and type "${n.type}" has an empty name. Please provide a 'name' string.`,
|
|
21314
|
-
severity:
|
|
21314
|
+
severity: f.Error,
|
|
21315
21315
|
code: b.EmptyName,
|
|
21316
21316
|
issue: null
|
|
21317
21317
|
})
|
|
@@ -21322,7 +21322,7 @@ function ff(n, e) {
|
|
|
21322
21322
|
new T({
|
|
21323
21323
|
id: `${n.id}--parent-reference--${p.ReferencedEntityNotFound}`,
|
|
21324
21324
|
message: `The entity with id '${n.parent}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
|
|
21325
|
-
severity:
|
|
21325
|
+
severity: f.Error,
|
|
21326
21326
|
code: p.ReferencedEntityNotFound,
|
|
21327
21327
|
issue: null
|
|
21328
21328
|
})
|
|
@@ -21338,7 +21338,7 @@ function ff(n, e) {
|
|
|
21338
21338
|
id: `${n.id}--${b.NameNotUniqueInScope}`,
|
|
21339
21339
|
message: `Entity with id "${n.id}" and type "${n.type}" has a name "${n.name}" that is not unique in its scope or higher scopes. Entity with id "${s[0].id}" has the same name.
|
|
21340
21340
|
Please provide a unique 'name' string.`,
|
|
21341
|
-
severity:
|
|
21341
|
+
severity: f.Error,
|
|
21342
21342
|
code: b.NameNotUniqueInScope,
|
|
21343
21343
|
issue: null
|
|
21344
21344
|
})
|
|
@@ -21352,7 +21352,7 @@ function mf(n, e) {
|
|
|
21352
21352
|
new T({
|
|
21353
21353
|
id: `${n.id}--${b.EmptyName}`,
|
|
21354
21354
|
message: `Entity with id "${n.id}" and type "${n.type}" has an empty name. Please provide a 'name' string.`,
|
|
21355
|
-
severity:
|
|
21355
|
+
severity: f.Error,
|
|
21356
21356
|
code: b.EmptyName,
|
|
21357
21357
|
issue: null
|
|
21358
21358
|
})
|
|
@@ -21363,7 +21363,7 @@ function mf(n, e) {
|
|
|
21363
21363
|
new T({
|
|
21364
21364
|
id: `${n.id}--parent-reference--${p.InvalidReferenceObjectStructure}`,
|
|
21365
21365
|
message: `Reference object at 'parent' property for entity with id "${n.id}" and type "${n.type}" is not a valid reference. A reference needs to be a 'id' string of an existing entity in the project.`,
|
|
21366
|
-
severity:
|
|
21366
|
+
severity: f.Error,
|
|
21367
21367
|
code: p.InvalidReferenceObjectStructure,
|
|
21368
21368
|
issue: null
|
|
21369
21369
|
})
|
|
@@ -21375,7 +21375,7 @@ function mf(n, e) {
|
|
|
21375
21375
|
new T({
|
|
21376
21376
|
id: `${n.id}--parent-reference--${p.ReferencedEntityNotFound}`,
|
|
21377
21377
|
message: `The entity with id '${i}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
|
|
21378
|
-
severity:
|
|
21378
|
+
severity: f.Error,
|
|
21379
21379
|
code: p.ReferencedEntityNotFound,
|
|
21380
21380
|
issue: null
|
|
21381
21381
|
})
|
|
@@ -21389,7 +21389,7 @@ function mf(n, e) {
|
|
|
21389
21389
|
id: `${n.id}--${b.NameNotUniqueInScope}`,
|
|
21390
21390
|
message: `Entity with id "${n.id}" and type "${n.type}" has a name "${n.name}" that is not unique among all properties in the parent entity. Entity with id "${o[0].id}" has the same name.
|
|
21391
21391
|
Please provide a unique 'name' string.`,
|
|
21392
|
-
severity:
|
|
21392
|
+
severity: f.Error,
|
|
21393
21393
|
code: b.NameNotUniqueInScope,
|
|
21394
21394
|
issue: null
|
|
21395
21395
|
})
|
|
@@ -21404,7 +21404,7 @@ function Tf(n, e) {
|
|
|
21404
21404
|
new T({
|
|
21405
21405
|
id: `${n.id}--${b.EmptyName}`,
|
|
21406
21406
|
message: `Entity with id "${n.id}" and type "${n.type}" has an empty name. Please provide a 'name' string.`,
|
|
21407
|
-
severity:
|
|
21407
|
+
severity: f.Error,
|
|
21408
21408
|
code: b.EmptyName,
|
|
21409
21409
|
issue: null
|
|
21410
21410
|
})
|
|
@@ -21415,7 +21415,7 @@ function Tf(n, e) {
|
|
|
21415
21415
|
new T({
|
|
21416
21416
|
id: `${n.id}--parent-reference--${p.InvalidReferenceObjectStructure}`,
|
|
21417
21417
|
message: `Reference object at 'parent' property for entity with id "${n.id}" and type "${n.type}" is not a valid reference. A reference needs to be a 'id' string of an existing entity in the project.`,
|
|
21418
|
-
severity:
|
|
21418
|
+
severity: f.Error,
|
|
21419
21419
|
code: p.InvalidReferenceObjectStructure,
|
|
21420
21420
|
issue: null
|
|
21421
21421
|
})
|
|
@@ -21427,7 +21427,7 @@ function Tf(n, e) {
|
|
|
21427
21427
|
new T({
|
|
21428
21428
|
id: `${n.id}--parent-reference--${p.ReferencedEntityNotFound}`,
|
|
21429
21429
|
message: `The entity with id '${i}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
|
|
21430
|
-
severity:
|
|
21430
|
+
severity: f.Error,
|
|
21431
21431
|
code: p.ReferencedEntityNotFound,
|
|
21432
21432
|
issue: null
|
|
21433
21433
|
})
|
|
@@ -21443,7 +21443,7 @@ function Tf(n, e) {
|
|
|
21443
21443
|
id: `${n.id}--${b.NameNotUniqueInScope}`,
|
|
21444
21444
|
message: `Entity with id "${n.id}" and type "${n.type}" has a name "${n.name}" that is not unique among all inputs declared in the parent entity. Entity with id "${o[0].id}" has the same name.
|
|
21445
21445
|
Please provide a unique 'name' string.`,
|
|
21446
|
-
severity:
|
|
21446
|
+
severity: f.Error,
|
|
21447
21447
|
code: b.NameNotUniqueInScope,
|
|
21448
21448
|
issue: null
|
|
21449
21449
|
})
|
|
@@ -21458,7 +21458,7 @@ function Ef(n, e) {
|
|
|
21458
21458
|
new T({
|
|
21459
21459
|
id: `${n.id}--${b.EmptyName}`,
|
|
21460
21460
|
message: `Entity with id "${n.id}" and type "${n.type}" has an empty name. Please provide a 'name' string.`,
|
|
21461
|
-
severity:
|
|
21461
|
+
severity: f.Error,
|
|
21462
21462
|
code: b.EmptyName,
|
|
21463
21463
|
issue: null
|
|
21464
21464
|
})
|
|
@@ -21469,7 +21469,7 @@ function Ef(n, e) {
|
|
|
21469
21469
|
new T({
|
|
21470
21470
|
id: `${n.id}--parent-reference--${p.InvalidReferenceObjectStructure}`,
|
|
21471
21471
|
message: `Reference object at 'parent' property for entity with id "${n.id}" and type "${n.type}" is not a valid reference. A reference needs to be a 'id' string of an existing entity in the project.`,
|
|
21472
|
-
severity:
|
|
21472
|
+
severity: f.Error,
|
|
21473
21473
|
code: p.InvalidReferenceObjectStructure,
|
|
21474
21474
|
issue: null
|
|
21475
21475
|
})
|
|
@@ -21481,7 +21481,7 @@ function Ef(n, e) {
|
|
|
21481
21481
|
new T({
|
|
21482
21482
|
id: `${n.id}--parent-reference--${p.ReferencedEntityNotFound}`,
|
|
21483
21483
|
message: `The entity with id '${i}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
|
|
21484
|
-
severity:
|
|
21484
|
+
severity: f.Error,
|
|
21485
21485
|
code: p.ReferencedEntityNotFound,
|
|
21486
21486
|
issue: null
|
|
21487
21487
|
})
|
|
@@ -21497,7 +21497,7 @@ function Ef(n, e) {
|
|
|
21497
21497
|
id: `${n.id}--${b.NameNotUniqueInScope}`,
|
|
21498
21498
|
message: `Entity with id "${n.id}" and type "${n.type}" has a name "${n.name}" that is not unique among all outputs declared in the parent entity. Entity with id "${o[0].id}" has the same name.
|
|
21499
21499
|
Please provide a unique 'name' string.`,
|
|
21500
|
-
severity:
|
|
21500
|
+
severity: f.Error,
|
|
21501
21501
|
code: b.NameNotUniqueInScope,
|
|
21502
21502
|
issue: null
|
|
21503
21503
|
})
|
|
@@ -21552,14 +21552,14 @@ function A8(n) {
|
|
|
21552
21552
|
const s = [...a];
|
|
21553
21553
|
if (n.id === "80c86e1b-caca-4ba5-9b1f-38f72d10e4a3") {
|
|
21554
21554
|
const d = U({
|
|
21555
|
-
id: `${n.id}--${
|
|
21555
|
+
id: `${n.id}--${S.PropertyImplementsNonAbstact}`,
|
|
21556
21556
|
message: `Property "${D(n, n.project)}" with id "${n.id}" implements a non-abstract property "${D(
|
|
21557
21557
|
n,
|
|
21558
21558
|
n.project
|
|
21559
21559
|
)}" with id "${n.id}".`,
|
|
21560
21560
|
issue: null,
|
|
21561
|
-
severity:
|
|
21562
|
-
code:
|
|
21561
|
+
severity: f.Error,
|
|
21562
|
+
code: S.PropertyImplementsNonAbstact,
|
|
21563
21563
|
entity: n
|
|
21564
21564
|
});
|
|
21565
21565
|
s.push(d.error);
|
|
@@ -21573,21 +21573,21 @@ function S8(n) {
|
|
|
21573
21573
|
const t = n.implements;
|
|
21574
21574
|
if (!t.abstract) {
|
|
21575
21575
|
const a = U({
|
|
21576
|
-
id: `${n.id}--${
|
|
21576
|
+
id: `${n.id}--${S.PropertyImplementsNonAbstact}`,
|
|
21577
21577
|
message: `Property "${D(n, n.project)}" with id "${n.id}" implements a non-abstract property "${D(
|
|
21578
21578
|
t,
|
|
21579
21579
|
n.project
|
|
21580
21580
|
)}" with id "${t.id}".`,
|
|
21581
21581
|
issue: null,
|
|
21582
|
-
severity:
|
|
21583
|
-
code:
|
|
21582
|
+
severity: f.Error,
|
|
21583
|
+
code: S.PropertyImplementsNonAbstact,
|
|
21584
21584
|
entity: n
|
|
21585
21585
|
});
|
|
21586
21586
|
e.push(a.error);
|
|
21587
21587
|
}
|
|
21588
21588
|
if (n.static && !t.static) {
|
|
21589
21589
|
const a = U({
|
|
21590
|
-
id: `${n.id}--${
|
|
21590
|
+
id: `${n.id}--${S.NonStaticPropertyImplementsStatic}`,
|
|
21591
21591
|
message: `Static property "${D(
|
|
21592
21592
|
n,
|
|
21593
21593
|
n.project
|
|
@@ -21596,15 +21596,15 @@ function S8(n) {
|
|
|
21596
21596
|
n.project
|
|
21597
21597
|
)}" with id "${t.id}".`,
|
|
21598
21598
|
issue: null,
|
|
21599
|
-
severity:
|
|
21600
|
-
code:
|
|
21599
|
+
severity: f.Error,
|
|
21600
|
+
code: S.NonStaticPropertyImplementsStatic,
|
|
21601
21601
|
entity: n
|
|
21602
21602
|
});
|
|
21603
21603
|
e.push(a.error);
|
|
21604
21604
|
}
|
|
21605
21605
|
if (!n.static && t.static) {
|
|
21606
21606
|
const a = U({
|
|
21607
|
-
id: `${n.id}--${
|
|
21607
|
+
id: `${n.id}--${S.StaticPropertyImplementsNonStatic}`,
|
|
21608
21608
|
message: `Non-static property "${D(
|
|
21609
21609
|
n,
|
|
21610
21610
|
n.project
|
|
@@ -21613,8 +21613,8 @@ function S8(n) {
|
|
|
21613
21613
|
n.project
|
|
21614
21614
|
)}" with id "${t.id}".`,
|
|
21615
21615
|
issue: null,
|
|
21616
|
-
severity:
|
|
21617
|
-
code:
|
|
21616
|
+
severity: f.Error,
|
|
21617
|
+
code: S.StaticPropertyImplementsNonStatic,
|
|
21618
21618
|
entity: n
|
|
21619
21619
|
});
|
|
21620
21620
|
e.push(a.error);
|
|
@@ -21624,14 +21624,14 @@ function S8(n) {
|
|
|
21624
21624
|
t.dataType
|
|
21625
21625
|
)) {
|
|
21626
21626
|
const a = U({
|
|
21627
|
-
id: `${n.id}--${
|
|
21627
|
+
id: `${n.id}--${S.PropertyImplementsIncompatibleType}`,
|
|
21628
21628
|
message: `Property "${D(n, n.project)}" with id "${n.id}" implements a property "${D(
|
|
21629
21629
|
t,
|
|
21630
21630
|
n.project
|
|
21631
21631
|
)}" with id "${t.id}" that has an incompatible data type.`,
|
|
21632
21632
|
issue: null,
|
|
21633
|
-
severity:
|
|
21634
|
-
code:
|
|
21633
|
+
severity: f.Error,
|
|
21634
|
+
code: S.PropertyImplementsIncompatibleType,
|
|
21635
21635
|
entity: n
|
|
21636
21636
|
});
|
|
21637
21637
|
e.push(a.error);
|
|
@@ -21647,7 +21647,7 @@ function O8(n, e) {
|
|
|
21647
21647
|
new T({
|
|
21648
21648
|
id: `${n.id}--${n.parent}--${p.ReferencedEntityNotFound}`,
|
|
21649
21649
|
code: p.ReferencedEntityNotFound,
|
|
21650
|
-
severity:
|
|
21650
|
+
severity: f.Error,
|
|
21651
21651
|
message: `Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${n.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
|
|
21652
21652
|
issue: null
|
|
21653
21653
|
})
|
|
@@ -21663,7 +21663,7 @@ function O8(n, e) {
|
|
|
21663
21663
|
new T({
|
|
21664
21664
|
id: `${n.id}--${p.InvalidBuiltInEntityReference}`,
|
|
21665
21665
|
code: p.InvalidBuiltInEntityReference,
|
|
21666
|
-
severity:
|
|
21666
|
+
severity: f.Error,
|
|
21667
21667
|
message: o,
|
|
21668
21668
|
issue: null
|
|
21669
21669
|
})
|
|
@@ -21673,7 +21673,7 @@ function O8(n, e) {
|
|
|
21673
21673
|
new T({
|
|
21674
21674
|
id: `${n.id}--${n.parent}--${p.InvalidParentReference}`,
|
|
21675
21675
|
code: p.InvalidParentReference,
|
|
21676
|
-
severity:
|
|
21676
|
+
severity: f.Error,
|
|
21677
21677
|
message: `Entity of type "${n.type}" with id "${n.id}", has a parent reference that isn't pointing to an entity of type 'custom-entity'.`,
|
|
21678
21678
|
issue: null
|
|
21679
21679
|
})
|
|
@@ -21698,7 +21698,7 @@ ${xn}`, t.push(
|
|
|
21698
21698
|
new T({
|
|
21699
21699
|
id: `${n.id}--${p.NonInteractiveEntityReferenced}`,
|
|
21700
21700
|
code: p.NonInteractiveEntityReferenced,
|
|
21701
|
-
severity:
|
|
21701
|
+
severity: f.Error,
|
|
21702
21702
|
message: u,
|
|
21703
21703
|
issue: null
|
|
21704
21704
|
})
|
|
@@ -21712,7 +21712,7 @@ ${xn}`, t.push(
|
|
|
21712
21712
|
new T({
|
|
21713
21713
|
id: `${n.id}--${n.implements}--${p.SelfReference}`,
|
|
21714
21714
|
code: p.SelfReference,
|
|
21715
|
-
severity:
|
|
21715
|
+
severity: f.Error,
|
|
21716
21716
|
message: `Entity of type "${n.type}" with id "${n.id}", has a reference to itself at 'implements'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,
|
|
21717
21717
|
issue: null
|
|
21718
21718
|
})
|
|
@@ -21722,7 +21722,7 @@ ${xn}`, t.push(
|
|
|
21722
21722
|
new T({
|
|
21723
21723
|
id: `${n.id}--${n.implements}--${p.ReferencedEntityNotFound}`,
|
|
21724
21724
|
code: p.ReferencedEntityNotFound,
|
|
21725
|
-
severity:
|
|
21725
|
+
severity: f.Error,
|
|
21726
21726
|
message: `Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${n.implements}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
|
|
21727
21727
|
issue: null
|
|
21728
21728
|
})
|
|
@@ -21730,15 +21730,15 @@ ${xn}`, t.push(
|
|
|
21730
21730
|
else {
|
|
21731
21731
|
const y = a.properties.find(
|
|
21732
21732
|
(m) => {
|
|
21733
|
-
var
|
|
21734
|
-
return ((
|
|
21733
|
+
var h;
|
|
21734
|
+
return ((h = m.implements) == null ? void 0 : h.id) === n.implements;
|
|
21735
21735
|
}
|
|
21736
21736
|
);
|
|
21737
21737
|
y ? t.push(
|
|
21738
21738
|
new T({
|
|
21739
21739
|
id: `${n.id}--${b.PropertyOverwrite}`,
|
|
21740
21740
|
code: b.PropertyOverwrite,
|
|
21741
|
-
severity:
|
|
21741
|
+
severity: f.Error,
|
|
21742
21742
|
message: `The property with id "${n.id}" is trying to implement the property with id "${n.implements}", but the parent entity already has a property with id '${y.id}' that implements the same base property.`,
|
|
21743
21743
|
issue: null
|
|
21744
21744
|
})
|
|
@@ -21746,7 +21746,7 @@ ${xn}`, t.push(
|
|
|
21746
21746
|
new T({
|
|
21747
21747
|
id: `${n.id}--${n.implements}--${p.InvalidImplementsReference}`,
|
|
21748
21748
|
code: p.InvalidImplementsReference,
|
|
21749
|
-
severity:
|
|
21749
|
+
severity: f.Error,
|
|
21750
21750
|
message: `Entity of type "${n.type}" with id "${n.id}", has an 'implements' reference that isn't pointing to an abstract entity.`,
|
|
21751
21751
|
issue: null
|
|
21752
21752
|
})
|
|
@@ -21754,7 +21754,7 @@ ${xn}`, t.push(
|
|
|
21754
21754
|
new T({
|
|
21755
21755
|
id: `${n.id}--${n.implements}--${p.InvalidImplementsReference}`,
|
|
21756
21756
|
code: p.InvalidImplementsReference,
|
|
21757
|
-
severity:
|
|
21757
|
+
severity: f.Error,
|
|
21758
21758
|
message: `Entity of type "${n.type}" with id "${n.id}", has an 'implements' reference that isn't pointing to an entity of type 'property'.`,
|
|
21759
21759
|
issue: null
|
|
21760
21760
|
})
|
|
@@ -21856,7 +21856,7 @@ const pe = class pe {
|
|
|
21856
21856
|
new T({
|
|
21857
21857
|
id: `${this.id}--${p.InvalidParentUpdate}`,
|
|
21858
21858
|
code: p.InvalidParentUpdate,
|
|
21859
|
-
severity:
|
|
21859
|
+
severity: f.Error,
|
|
21860
21860
|
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.
|
|
21861
21861
|
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.`,
|
|
21862
21862
|
issue: null
|
|
@@ -21865,7 +21865,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
21865
21865
|
new T({
|
|
21866
21866
|
id: `${this.id}--${b.InvalidObjectStructure}`,
|
|
21867
21867
|
code: b.InvalidObjectStructure,
|
|
21868
|
-
severity:
|
|
21868
|
+
severity: f.Error,
|
|
21869
21869
|
message: `Entity of type '${this.type}' with id '${this.id}' is not a value reading or writing entity.
|
|
21870
21870
|
${to}`,
|
|
21871
21871
|
issue: null
|
|
@@ -21945,8 +21945,8 @@ ${to}`,
|
|
|
21945
21945
|
i.push(...s), a.push(...o);
|
|
21946
21946
|
}
|
|
21947
21947
|
return e || this.parent.type === r.CustomEntity && (this.parent.removeProperty(this), i.push(this.parent)), {
|
|
21948
|
-
affected:
|
|
21949
|
-
removed:
|
|
21948
|
+
affected: A(i),
|
|
21949
|
+
removed: A(a)
|
|
21950
21950
|
};
|
|
21951
21951
|
}
|
|
21952
21952
|
// Re-add this entity to the state after it was removed
|
|
@@ -22112,12 +22112,12 @@ ${to}`,
|
|
|
22112
22112
|
i
|
|
22113
22113
|
)) || null;
|
|
22114
22114
|
if (y && u.setDataType(y), this.implements) {
|
|
22115
|
-
const
|
|
22115
|
+
const h = this.implements.clone(
|
|
22116
22116
|
e || this.parent.type === r.CustomEntity ? e : null,
|
|
22117
22117
|
o + "-implements-id",
|
|
22118
22118
|
i
|
|
22119
22119
|
);
|
|
22120
|
-
u.implements =
|
|
22120
|
+
u.implements = h;
|
|
22121
22121
|
}
|
|
22122
22122
|
return u;
|
|
22123
22123
|
}
|
|
@@ -22173,14 +22173,14 @@ function C8(n) {
|
|
|
22173
22173
|
const d = [...a, ...s];
|
|
22174
22174
|
if (n.id === "getCompanyByIdEndpointReachedEntityEvent") {
|
|
22175
22175
|
const u = U({
|
|
22176
|
-
id: `${n.id}--${
|
|
22176
|
+
id: `${n.id}--${S.PropertyImplementsNonAbstact}`,
|
|
22177
22177
|
message: `Property "${D(n, n.project)}" with id "${n.id}" implements a non-abstract property "${D(
|
|
22178
22178
|
n,
|
|
22179
22179
|
n.project
|
|
22180
22180
|
)}" with id "${n.id}".`,
|
|
22181
22181
|
issue: null,
|
|
22182
|
-
severity:
|
|
22183
|
-
code:
|
|
22182
|
+
severity: f.Error,
|
|
22183
|
+
code: S.PropertyImplementsNonAbstact,
|
|
22184
22184
|
entity: n
|
|
22185
22185
|
});
|
|
22186
22186
|
d.push(u.error);
|
|
@@ -22191,11 +22191,11 @@ function w8(n) {
|
|
|
22191
22191
|
const e = [];
|
|
22192
22192
|
if (!n.calls.length) {
|
|
22193
22193
|
const t = U({
|
|
22194
|
-
id: `${n.id}--${
|
|
22194
|
+
id: `${n.id}--${S.ScopeWithoutLogic}`,
|
|
22195
22195
|
message: `Action "${D(n, n.project)}" with id "${n.id}" does not have any logic defined. So it doesn't do anything.`,
|
|
22196
22196
|
issue: null,
|
|
22197
|
-
severity:
|
|
22198
|
-
code:
|
|
22197
|
+
severity: f.Error,
|
|
22198
|
+
code: S.ScopeWithoutLogic,
|
|
22199
22199
|
entity: n
|
|
22200
22200
|
});
|
|
22201
22201
|
e.push(t.error);
|
|
@@ -22308,17 +22308,17 @@ const Q = class Q {
|
|
|
22308
22308
|
i = s.modifiedData;
|
|
22309
22309
|
const o = hf(i, t), d = i.parent ? t.get(i.parent) : null;
|
|
22310
22310
|
if (d && d.type === r.CustomEntity) {
|
|
22311
|
-
const
|
|
22311
|
+
const h = d, g = Kn(h).filter(
|
|
22312
22312
|
(O) => !O.interactive
|
|
22313
22313
|
);
|
|
22314
22314
|
if (g.length) {
|
|
22315
|
-
let O = g.length > 1 ? `The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${
|
|
22315
|
+
let O = g.length > 1 ? `The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${h.id}' because it extends or implements multiple '${r.BuiltInBaseEntity}' entities that are non-interactive ("${_(
|
|
22316
22316
|
g.map(
|
|
22317
22317
|
($) => D($, $.project)
|
|
22318
22318
|
),
|
|
22319
22319
|
'", "',
|
|
22320
22320
|
'" and "'
|
|
22321
|
-
)}").` : `The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${
|
|
22321
|
+
)}").` : `The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${h.id}' because it extends or implements a '${r.BuiltInBaseEntity}' entity that is non-interactive ("${D(
|
|
22322
22322
|
g[0],
|
|
22323
22323
|
g[0].project
|
|
22324
22324
|
)}").`;
|
|
@@ -22327,13 +22327,13 @@ ${xn}`, a.push(
|
|
|
22327
22327
|
new T({
|
|
22328
22328
|
id: `${e.id}--${p.NonInteractiveEntityReferenced}`,
|
|
22329
22329
|
code: p.NonInteractiveEntityReferenced,
|
|
22330
|
-
severity:
|
|
22330
|
+
severity: f.Error,
|
|
22331
22331
|
message: O,
|
|
22332
22332
|
issue: null
|
|
22333
22333
|
})
|
|
22334
22334
|
);
|
|
22335
22335
|
} else {
|
|
22336
|
-
const O =
|
|
22336
|
+
const O = h.methods.find(
|
|
22337
22337
|
(Bt) => {
|
|
22338
22338
|
var _e;
|
|
22339
22339
|
return ((_e = Bt.implements) == null ? void 0 : _e.id) === i.implements;
|
|
@@ -22343,7 +22343,7 @@ ${xn}`, a.push(
|
|
|
22343
22343
|
new T({
|
|
22344
22344
|
id: `${i.id}--${b.MethodOverwrite}`,
|
|
22345
22345
|
code: b.MethodOverwrite,
|
|
22346
|
-
severity:
|
|
22346
|
+
severity: f.Error,
|
|
22347
22347
|
message: `The '${r.FunctionDeclaration}' with id "${i.id}" is trying to implement the '${r.ActionDescriptor}' with id "${i.implements}", but the parent custom-entity already has a ${r.FunctionDeclaration} with id '${O.id}' that implements the same base method.
|
|
22348
22348
|
A ${r.FunctionDeclaration} that has a parent of type '${r.CustomEntity}' is considered a method of that entity, and cannot implement the same '${r.ActionDescriptor}' more than once.
|
|
22349
22349
|
${r.ActionDescriptor} entities inside a ${r.CustomEntity} are considered abstract methods that can be implemented by ${r.FunctionDeclaration} entities inside the same parent.
|
|
@@ -22352,14 +22352,14 @@ If you want to modify the existing implementation, you can update the existing m
|
|
|
22352
22352
|
})
|
|
22353
22353
|
);
|
|
22354
22354
|
const $ = i.implements;
|
|
22355
|
-
|
|
22355
|
+
h.abstractMethods.find(
|
|
22356
22356
|
(Bt) => Bt.id === $
|
|
22357
22357
|
) || a.push(
|
|
22358
22358
|
new T({
|
|
22359
22359
|
id: `${i.id}--${p.InvalidImplementsReference}`,
|
|
22360
22360
|
code: p.InvalidImplementsReference,
|
|
22361
|
-
severity:
|
|
22362
|
-
message: `The '${r.FunctionDeclaration}' with id "${i.id}" is trying to implement the '${r.ActionDescriptor}' with id "${i.implements}", but the parent custom-entity with id "${
|
|
22361
|
+
severity: f.Error,
|
|
22362
|
+
message: `The '${r.FunctionDeclaration}' with id "${i.id}" is trying to implement the '${r.ActionDescriptor}' with id "${i.implements}", but the parent custom-entity with id "${h.id}" does not have a action descriptor (abstract method) with that id.
|
|
22363
22363
|
A ${r.FunctionDeclaration} that has a parent of type '${r.CustomEntity}' 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.
|
|
22364
22364
|
If you want to implement a new method, you can create a new 'function-declaration' inside the parent custom-entity. But note that often custom-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 custom-entity is first created.
|
|
22365
22365
|
If you want to modify the existing implementation, you can update the existing method instead, but it will have to match the same base ${r.ActionDescriptor} signature, otherwise the implementation will have a validation error.`,
|
|
@@ -22368,12 +22368,12 @@ If you want to modify the existing implementation, you can update the existing m
|
|
|
22368
22368
|
);
|
|
22369
22369
|
}
|
|
22370
22370
|
} else if (d && d.type === r.Loop) {
|
|
22371
|
-
const
|
|
22372
|
-
|
|
22371
|
+
const h = d.body;
|
|
22372
|
+
h && ((m = h.implements) == null ? void 0 : m.id) === i.implements && a.push(
|
|
22373
22373
|
new T({
|
|
22374
22374
|
id: `${i.id}--${b.MethodOverwrite}`,
|
|
22375
22375
|
code: b.MethodOverwrite,
|
|
22376
|
-
severity:
|
|
22376
|
+
severity: f.Error,
|
|
22377
22377
|
message: `The '${r.FunctionDeclaration}' with id "${i.id}" is being added as the 'body' of the ${r.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.`,
|
|
22378
22378
|
issue: null
|
|
22379
22379
|
})
|
|
@@ -22384,7 +22384,7 @@ If you want to modify the existing implementation, you can update the existing m
|
|
|
22384
22384
|
new T({
|
|
22385
22385
|
id: `${e.id}--${p.BuiltInEntityParent}`,
|
|
22386
22386
|
code: p.BuiltInEntityParent,
|
|
22387
|
-
severity:
|
|
22387
|
+
severity: f.Error,
|
|
22388
22388
|
message: `The entity with id '${e.id}' and type '${e.type}', belongs to a built-in system entity "${D(
|
|
22389
22389
|
y,
|
|
22390
22390
|
t
|
|
@@ -22406,7 +22406,7 @@ If you want to modify the existing implementation, you can update the existing m
|
|
|
22406
22406
|
new T({
|
|
22407
22407
|
id: `${this.id}--${p.InvalidParentUpdate}`,
|
|
22408
22408
|
code: p.InvalidParentUpdate,
|
|
22409
|
-
severity:
|
|
22409
|
+
severity: f.Error,
|
|
22410
22410
|
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.
|
|
22411
22411
|
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.`,
|
|
22412
22412
|
issue: null
|
|
@@ -22415,7 +22415,7 @@ This is likely an incorrect strategy because this is a globally declared '${this
|
|
|
22415
22415
|
new T({
|
|
22416
22416
|
id: `${this.id}--${p.InvalidParentUpdate}`,
|
|
22417
22417
|
code: p.InvalidParentUpdate,
|
|
22418
|
-
severity:
|
|
22418
|
+
severity: f.Error,
|
|
22419
22419
|
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.
|
|
22420
22420
|
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.
|
|
22421
22421
|
Please consider that any updates might affect the overlap with the signature of the parent entity's action descriptors.`,
|
|
@@ -22531,8 +22531,8 @@ Please consider that any updates might affect the overlap with the signature of
|
|
|
22531
22531
|
});
|
|
22532
22532
|
i.push(...d), a.push(...u);
|
|
22533
22533
|
}), {
|
|
22534
|
-
affected:
|
|
22535
|
-
removed:
|
|
22534
|
+
affected: A(i),
|
|
22535
|
+
removed: A(a)
|
|
22536
22536
|
});
|
|
22537
22537
|
}
|
|
22538
22538
|
// Re-add this entity to the state after it was removed
|
|
@@ -22549,7 +22549,7 @@ Please consider that any updates might affect the overlap with the signature of
|
|
|
22549
22549
|
const { affected: s } = a.restore({ seenEntities: e });
|
|
22550
22550
|
t.push(...s);
|
|
22551
22551
|
}), {
|
|
22552
|
-
affected:
|
|
22552
|
+
affected: A(t),
|
|
22553
22553
|
self: this
|
|
22554
22554
|
});
|
|
22555
22555
|
}
|
|
@@ -22805,11 +22805,11 @@ function M8(n) {
|
|
|
22805
22805
|
const a = [];
|
|
22806
22806
|
if (n.entity && n.andChildrenGroup || n.entity && n.orChildrenGroup || n.andChildrenGroup && n.orChildrenGroup) {
|
|
22807
22807
|
const s = U({
|
|
22808
|
-
id: n.id + "--" +
|
|
22808
|
+
id: n.id + "--" + S.InvalidPropertiesCombination,
|
|
22809
22809
|
message: `Data type with id "${n.id}" has invalid properties combination. Only one of the following properties can be present at the time: 'entity', 'andChildrenGroup' or 'orChildrenGroup'`,
|
|
22810
22810
|
issue: null,
|
|
22811
|
-
severity:
|
|
22812
|
-
code:
|
|
22811
|
+
severity: f.Error,
|
|
22812
|
+
code: S.InvalidPropertiesCombination,
|
|
22813
22813
|
entity: n
|
|
22814
22814
|
});
|
|
22815
22815
|
a.push(s.error);
|
|
@@ -22837,7 +22837,7 @@ function _8(n, e) {
|
|
|
22837
22837
|
new T({
|
|
22838
22838
|
id: `${n.id}--${n.parent}--${p.SelfReference}`,
|
|
22839
22839
|
code: p.SelfReference,
|
|
22840
|
-
severity:
|
|
22840
|
+
severity: f.Error,
|
|
22841
22841
|
message: `Entity of type "${n.type}" with id "${n.id}", has a reference to itself at 'parent'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,
|
|
22842
22842
|
issue: null
|
|
22843
22843
|
})
|
|
@@ -22848,7 +22848,7 @@ function _8(n, e) {
|
|
|
22848
22848
|
new T({
|
|
22849
22849
|
id: `${n.id}--${n.parent}--${p.InvalidParentReference}`,
|
|
22850
22850
|
code: p.InvalidParentReference,
|
|
22851
|
-
severity:
|
|
22851
|
+
severity: f.Error,
|
|
22852
22852
|
message: `Entity of type "${n.type}" with id "${n.id}", has a parent reference that isn't pointing to an entity of type ${a}.`,
|
|
22853
22853
|
issue: null
|
|
22854
22854
|
})
|
|
@@ -22856,7 +22856,7 @@ function _8(n, e) {
|
|
|
22856
22856
|
new T({
|
|
22857
22857
|
id: `${n.id}--${n.parent}--${p.ReferencedEntityNotFound}`,
|
|
22858
22858
|
code: p.ReferencedEntityNotFound,
|
|
22859
|
-
severity:
|
|
22859
|
+
severity: f.Error,
|
|
22860
22860
|
message: `Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${n.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
|
|
22861
22861
|
issue: null
|
|
22862
22862
|
})
|
|
@@ -22867,7 +22867,7 @@ function _8(n, e) {
|
|
|
22867
22867
|
new T({
|
|
22868
22868
|
id: `${n.id}--${b.InvalidObjectStructure}`,
|
|
22869
22869
|
code: b.InvalidObjectStructure,
|
|
22870
|
-
severity:
|
|
22870
|
+
severity: f.Error,
|
|
22871
22871
|
message: `Entity of type "${n.type}" with id "${n.id}" is missing a 'parent' reference. The 'parent' of a 'data-type' entity must be a reference to an entity of type ${a}.`,
|
|
22872
22872
|
issue: null
|
|
22873
22873
|
})
|
|
@@ -22878,7 +22878,7 @@ function _8(n, e) {
|
|
|
22878
22878
|
new T({
|
|
22879
22879
|
id: `${n.id}--${n.entity}--${p.SelfReference}`,
|
|
22880
22880
|
code: p.SelfReference,
|
|
22881
|
-
severity:
|
|
22881
|
+
severity: f.Error,
|
|
22882
22882
|
message: `Entity of type "${n.type}" with id "${n.id}", has a reference to itself at 'entity'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,
|
|
22883
22883
|
issue: null
|
|
22884
22884
|
})
|
|
@@ -22893,7 +22893,7 @@ function _8(n, e) {
|
|
|
22893
22893
|
new T({
|
|
22894
22894
|
id: `${n.id}--${n.entity}--${p.InvalidImplementsReference}`,
|
|
22895
22895
|
code: p.InvalidImplementsReference,
|
|
22896
|
-
severity:
|
|
22896
|
+
severity: f.Error,
|
|
22897
22897
|
message: `Entity of type "${n.type}" with id "${n.id}", has an 'entity' reference that isn't pointing to an entity of type 'custom-entity', 'primitive-entity', 'action-descriptor' or 'built-in-base-entity'.`,
|
|
22898
22898
|
issue: null
|
|
22899
22899
|
})
|
|
@@ -22901,7 +22901,7 @@ function _8(n, e) {
|
|
|
22901
22901
|
new T({
|
|
22902
22902
|
id: `${n.id}--${n.entity}--${p.ReferencedEntityNotFound}`,
|
|
22903
22903
|
code: p.ReferencedEntityNotFound,
|
|
22904
|
-
severity:
|
|
22904
|
+
severity: f.Error,
|
|
22905
22905
|
message: `Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${n.entity}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
|
|
22906
22906
|
issue: null
|
|
22907
22907
|
})
|
|
@@ -22979,20 +22979,20 @@ const ye = class ye {
|
|
|
22979
22979
|
), i.entity) {
|
|
22980
22980
|
const y = t.get(i.entity);
|
|
22981
22981
|
if (y.type === r.CustomEntity) {
|
|
22982
|
-
const
|
|
22982
|
+
const h = Kn(y).filter(
|
|
22983
22983
|
(R) => !R.interactive
|
|
22984
22984
|
);
|
|
22985
|
-
if (
|
|
22986
|
-
const R =
|
|
22987
|
-
|
|
22985
|
+
if (h.length) {
|
|
22986
|
+
const R = h.length > 1 ? `entities with ids '${_(
|
|
22987
|
+
h.map((g) => g.id),
|
|
22988
22988
|
"', '",
|
|
22989
22989
|
"' and '"
|
|
22990
|
-
)}'` : `entity with id '${
|
|
22990
|
+
)}'` : `entity with id '${h[0].id}'`;
|
|
22991
22991
|
a.push(
|
|
22992
22992
|
new T({
|
|
22993
22993
|
id: `${e.id}--${p.NonInteractiveEntityReferenced}`,
|
|
22994
22994
|
code: p.NonInteractiveEntityReferenced,
|
|
22995
|
-
severity:
|
|
22995
|
+
severity: f.Error,
|
|
22996
22996
|
message: `The entity with id '${e.id}' and type '${e.type}', cannot reference 'custom-entity' with id '${i.entity}' at 'entity'. The entity extends or implements non-interactive built-in-base-entity ${R}.
|
|
22997
22997
|
${xn}`,
|
|
22998
22998
|
issue: null
|
|
@@ -23007,7 +23007,7 @@ ${xn}`,
|
|
|
23007
23007
|
new T({
|
|
23008
23008
|
id: `${e.id}--${p.BuiltInEntityParent}`,
|
|
23009
23009
|
code: p.BuiltInEntityParent,
|
|
23010
|
-
severity:
|
|
23010
|
+
severity: f.Error,
|
|
23011
23011
|
message: `The entity with id '${e.id}' and type '${e.type}', belongs to a built-in system entity "${D(
|
|
23012
23012
|
d,
|
|
23013
23013
|
t
|
|
@@ -23027,7 +23027,7 @@ ${xn}`,
|
|
|
23027
23027
|
new T({
|
|
23028
23028
|
id: `${e.id}--${p.InvalidParentRelationType}`,
|
|
23029
23029
|
code: p.InvalidParentRelationType,
|
|
23030
|
-
severity:
|
|
23030
|
+
severity: f.Error,
|
|
23031
23031
|
message: `The entity with id '${e.id}' and type '${e.type}', cannot have a 'parentRelationType' property set of type '${y}'.
|
|
23032
23032
|
The entitities of type '${_(
|
|
23033
23033
|
m,
|
|
@@ -23037,13 +23037,13 @@ The entitities of type '${_(
|
|
|
23037
23037
|
issue: null
|
|
23038
23038
|
})
|
|
23039
23039
|
), o.dataType)) {
|
|
23040
|
-
const
|
|
23040
|
+
const h = (u = o.dataType) == null ? void 0 : u.id;
|
|
23041
23041
|
a.push(
|
|
23042
23042
|
new T({
|
|
23043
23043
|
id: `${e.id}--${p.NewEntityWouldOverriteExisting}`,
|
|
23044
23044
|
code: p.NewEntityWouldOverriteExisting,
|
|
23045
|
-
severity:
|
|
23046
|
-
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 '${y}', because it already has a 'data-type' child with id '${
|
|
23045
|
+
severity: f.Error,
|
|
23046
|
+
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 '${y}', because it already has a 'data-type' child with id '${h}'.
|
|
23047
23047
|
The entitities of type '${_(
|
|
23048
23048
|
m,
|
|
23049
23049
|
"', '",
|
|
@@ -23051,7 +23051,7 @@ The entitities of type '${_(
|
|
|
23051
23051
|
)}' can only have one 'data-type' child under the 'dataType' property. You can inspect the existing data-type entity with the 'describe_entity' action. Like so:
|
|
23052
23052
|
${Xt(
|
|
23053
23053
|
{
|
|
23054
|
-
describe_entity:
|
|
23054
|
+
describe_entity: h
|
|
23055
23055
|
}
|
|
23056
23056
|
)}
|
|
23057
23057
|
Alternatively you can update the entity with 'update' action. Or replace it by first removing it and then creating a new one.`,
|
|
@@ -23063,7 +23063,7 @@ Alternatively you can update the entity with 'update' action. Or replace it by f
|
|
|
23063
23063
|
new T({
|
|
23064
23064
|
id: `${e.id}--${p.InvalidParentRelationType}`,
|
|
23065
23065
|
code: p.InvalidParentRelationType,
|
|
23066
|
-
severity:
|
|
23066
|
+
severity: f.Error,
|
|
23067
23067
|
message: `The entity with id '${e.id}' and type '${e.type}', must have a 'parentRelationType' property set to either 'dynamic-argument-types' or 'dynamic-return-types' when being added as a child to an entity of type 'action-descriptor'.`,
|
|
23068
23068
|
issue: null
|
|
23069
23069
|
})
|
|
@@ -23071,7 +23071,7 @@ Alternatively you can update the entity with 'update' action. Or replace it by f
|
|
|
23071
23071
|
new T({
|
|
23072
23072
|
id: `${e.id}--${p.InvalidParentRelationType}`,
|
|
23073
23073
|
code: p.InvalidParentRelationType,
|
|
23074
|
-
severity:
|
|
23074
|
+
severity: f.Error,
|
|
23075
23075
|
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'.`,
|
|
23076
23076
|
issue: null
|
|
23077
23077
|
})
|
|
@@ -23208,8 +23208,8 @@ Alternatively you can update the entity with 'update' action. Or replace it by f
|
|
|
23208
23208
|
i.push(s);
|
|
23209
23209
|
}
|
|
23210
23210
|
return {
|
|
23211
|
-
affected:
|
|
23212
|
-
removed:
|
|
23211
|
+
affected: A(i),
|
|
23212
|
+
removed: A(a)
|
|
23213
23213
|
};
|
|
23214
23214
|
}
|
|
23215
23215
|
// Re-add this entity to the state after it was removed
|
|
@@ -23408,14 +23408,14 @@ Alternatively you can update the entity with 'update' action. Or replace it by f
|
|
|
23408
23408
|
d + "-and-group-data-type-" + k + "-id",
|
|
23409
23409
|
i
|
|
23410
23410
|
)
|
|
23411
|
-
),
|
|
23411
|
+
), h = (O = this.orChildrenGroup) == null ? void 0 : O.map(
|
|
23412
23412
|
($, k) => $.clone(
|
|
23413
23413
|
this,
|
|
23414
23414
|
d + "-or-group-data-type-" + k + "-id",
|
|
23415
23415
|
i
|
|
23416
23416
|
)
|
|
23417
23417
|
);
|
|
23418
|
-
return u.andChildrenGroup = m || null, u.orChildrenGroup =
|
|
23418
|
+
return u.andChildrenGroup = m || null, u.orChildrenGroup = h || null, u;
|
|
23419
23419
|
}
|
|
23420
23420
|
// Add a child to the 'and' group
|
|
23421
23421
|
addToAndGroup(e) {
|
|
@@ -23481,14 +23481,14 @@ function N8(n) {
|
|
|
23481
23481
|
const a = x8(n), s = On(n), o = [...a, ...s];
|
|
23482
23482
|
if (n.id === "exec-sequentially-operation-call-id") {
|
|
23483
23483
|
const u = U({
|
|
23484
|
-
id: `${n.id}--${
|
|
23484
|
+
id: `${n.id}--${S.PropertyImplementsNonAbstact}`,
|
|
23485
23485
|
message: `Property "${D(n, n.project)}" with id "${n.id}" implements a non-abstract property "${D(
|
|
23486
23486
|
n,
|
|
23487
23487
|
n.project
|
|
23488
23488
|
)}" with id "${n.id}".`,
|
|
23489
23489
|
issue: null,
|
|
23490
|
-
severity:
|
|
23491
|
-
code:
|
|
23490
|
+
severity: f.Error,
|
|
23491
|
+
code: S.PropertyImplementsNonAbstact,
|
|
23492
23492
|
entity: n
|
|
23493
23493
|
});
|
|
23494
23494
|
o.push(u.error);
|
|
@@ -23542,19 +23542,19 @@ const K = class K {
|
|
|
23542
23542
|
static fromGenerationTarget(e, t) {
|
|
23543
23543
|
let i = t;
|
|
23544
23544
|
if (e.parent) {
|
|
23545
|
-
const
|
|
23546
|
-
i = t.get(
|
|
23545
|
+
const h = P(e.parent);
|
|
23546
|
+
i = t.get(h);
|
|
23547
23547
|
}
|
|
23548
23548
|
const a = P(e.declaration), s = t.get(
|
|
23549
23549
|
a
|
|
23550
|
-
), o = e.calledByEntry.map((
|
|
23551
|
-
const R = P(
|
|
23550
|
+
), o = e.calledByEntry.map((h) => {
|
|
23551
|
+
const R = P(h);
|
|
23552
23552
|
return t.get(R);
|
|
23553
|
-
}), d = e.calledBySuccess.map((
|
|
23554
|
-
const R = P(
|
|
23553
|
+
}), d = e.calledBySuccess.map((h) => {
|
|
23554
|
+
const R = P(h);
|
|
23555
23555
|
return t.get(R);
|
|
23556
|
-
}), u = e.calledByError.map((
|
|
23557
|
-
const R = P(
|
|
23556
|
+
}), u = e.calledByError.map((h) => {
|
|
23557
|
+
const R = P(h);
|
|
23558
23558
|
return t.get(R);
|
|
23559
23559
|
}), y = {
|
|
23560
23560
|
id: e.id,
|
|
@@ -23642,7 +23642,7 @@ All built-in 'action-descriptor' entity ids are:
|
|
|
23642
23642
|
new T({
|
|
23643
23643
|
id: `${i.id}--${p.InvalidReference}`,
|
|
23644
23644
|
code: p.InvalidReference,
|
|
23645
|
-
severity:
|
|
23645
|
+
severity: f.Error,
|
|
23646
23646
|
message: `Entity of type "${r.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.
|
|
23647
23647
|
References can either be an ID string or an object with exacly four properties: 'id', 'entityId', 'entityType', 'type'.${d}`,
|
|
23648
23648
|
issue: null
|
|
@@ -23660,7 +23660,7 @@ References can either be an ID string or an object with exacly four properties:
|
|
|
23660
23660
|
new T({
|
|
23661
23661
|
id: `${this.id}--${p.InvalidParentUpdate}`,
|
|
23662
23662
|
code: p.InvalidParentUpdate,
|
|
23663
|
-
severity:
|
|
23663
|
+
severity: f.Error,
|
|
23664
23664
|
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.
|
|
23665
23665
|
If an entity is called by another, they must be in the same scope, which means they have the same parent.
|
|
23666
23666
|
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.`,
|
|
@@ -23877,8 +23877,8 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
23877
23877
|
}), e || this.calledBy.forEach((o) => {
|
|
23878
23878
|
i.push(o), o.removeCall(this);
|
|
23879
23879
|
}), {
|
|
23880
|
-
affected:
|
|
23881
|
-
removed:
|
|
23880
|
+
affected: A(i),
|
|
23881
|
+
removed: A(a)
|
|
23882
23882
|
};
|
|
23883
23883
|
}
|
|
23884
23884
|
// Re-add this entity to the state after it was removed
|
|
@@ -23911,7 +23911,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
23911
23911
|
}), this.calledByEntry.forEach((i) => {
|
|
23912
23912
|
t.push(i), i.addCall(this);
|
|
23913
23913
|
}), {
|
|
23914
|
-
affected:
|
|
23914
|
+
affected: A(t),
|
|
23915
23915
|
self: this
|
|
23916
23916
|
};
|
|
23917
23917
|
}
|
|
@@ -24224,7 +24224,7 @@ const ee = class ee {
|
|
|
24224
24224
|
new T({
|
|
24225
24225
|
id: `${e.id}--${b.InvalidObjectStructure}`,
|
|
24226
24226
|
code: b.InvalidObjectStructure,
|
|
24227
|
-
severity:
|
|
24227
|
+
severity: f.Error,
|
|
24228
24228
|
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.
|
|
24229
24229
|
${$s(
|
|
24230
24230
|
t
|
|
@@ -24239,7 +24239,7 @@ ${$s(
|
|
|
24239
24239
|
new T({
|
|
24240
24240
|
id: `${e.id}--${p.ReferencedEntityNotFound}`,
|
|
24241
24241
|
code: p.ReferencedEntityNotFound,
|
|
24242
|
-
severity:
|
|
24242
|
+
severity: f.Error,
|
|
24243
24243
|
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.
|
|
24244
24244
|
${$s(
|
|
24245
24245
|
t
|
|
@@ -24254,7 +24254,7 @@ ${$s(
|
|
|
24254
24254
|
new T({
|
|
24255
24255
|
id: `${e.id}--${p.InvalidImplementsReference}`,
|
|
24256
24256
|
code: p.InvalidImplementsReference,
|
|
24257
|
-
severity:
|
|
24257
|
+
severity: f.Error,
|
|
24258
24258
|
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.
|
|
24259
24259
|
${$s(
|
|
24260
24260
|
t
|
|
@@ -24270,7 +24270,7 @@ ${$s(
|
|
|
24270
24270
|
new T({
|
|
24271
24271
|
id: `${e.id}--${p.InvalidImplementsReference}`,
|
|
24272
24272
|
code: p.InvalidImplementsReference,
|
|
24273
|
-
severity:
|
|
24273
|
+
severity: f.Error,
|
|
24274
24274
|
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.
|
|
24275
24275
|
You can attach new logic to the existing 'global-event' but creating a new callable entity that gets called by it.`,
|
|
24276
24276
|
issue: null
|
|
@@ -24288,7 +24288,7 @@ You can attach new logic to the existing 'global-event' but creating a new calla
|
|
|
24288
24288
|
new T({
|
|
24289
24289
|
id: `${this.id}--${p.InvalidParentUpdate}`,
|
|
24290
24290
|
code: p.InvalidParentUpdate,
|
|
24291
|
-
severity:
|
|
24291
|
+
severity: f.Error,
|
|
24292
24292
|
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.`,
|
|
24293
24293
|
issue: null
|
|
24294
24294
|
})
|
|
@@ -24398,8 +24398,8 @@ You can attach new logic to the existing 'global-event' but creating a new calla
|
|
|
24398
24398
|
});
|
|
24399
24399
|
i.push(...d), a.push(...u);
|
|
24400
24400
|
}), {
|
|
24401
|
-
affected:
|
|
24402
|
-
removed:
|
|
24401
|
+
affected: A(i),
|
|
24402
|
+
removed: A(a)
|
|
24403
24403
|
});
|
|
24404
24404
|
}
|
|
24405
24405
|
// Re-add this entity to the state after it was removed
|
|
@@ -24416,7 +24416,7 @@ You can attach new logic to the existing 'global-event' but creating a new calla
|
|
|
24416
24416
|
const { affected: s } = a.restore({ seenEntities: e });
|
|
24417
24417
|
t.push(...s);
|
|
24418
24418
|
}), {
|
|
24419
|
-
affected:
|
|
24419
|
+
affected: A(t),
|
|
24420
24420
|
self: this
|
|
24421
24421
|
});
|
|
24422
24422
|
}
|
|
@@ -24603,14 +24603,14 @@ function V8(n) {
|
|
|
24603
24603
|
const s = [...On(n)];
|
|
24604
24604
|
if (n.id === "iterate-over-list-loop-id") {
|
|
24605
24605
|
const u = U({
|
|
24606
|
-
id: `${n.id}--${
|
|
24606
|
+
id: `${n.id}--${S.PropertyImplementsNonAbstact}`,
|
|
24607
24607
|
message: `Property "${D(n, n.project)}" with id "${n.id}" implements a non-abstract property "${D(
|
|
24608
24608
|
n,
|
|
24609
24609
|
n.project
|
|
24610
24610
|
)}" with id "${n.id}".`,
|
|
24611
24611
|
issue: null,
|
|
24612
|
-
severity:
|
|
24613
|
-
code:
|
|
24612
|
+
severity: f.Error,
|
|
24613
|
+
code: S.PropertyImplementsNonAbstact,
|
|
24614
24614
|
entity: n
|
|
24615
24615
|
});
|
|
24616
24616
|
s.push(u.error);
|
|
@@ -24673,19 +24673,19 @@ const te = class te {
|
|
|
24673
24673
|
static fromGenerationTarget(e, t) {
|
|
24674
24674
|
let i = t;
|
|
24675
24675
|
if (e.parent) {
|
|
24676
|
-
const
|
|
24677
|
-
i = t.get(
|
|
24676
|
+
const h = P(e.parent);
|
|
24677
|
+
i = t.get(h);
|
|
24678
24678
|
}
|
|
24679
24679
|
const a = P(e.declaration), s = t.get(
|
|
24680
24680
|
a
|
|
24681
|
-
), o = e.calledByEntry.map((
|
|
24682
|
-
const R = P(
|
|
24681
|
+
), o = e.calledByEntry.map((h) => {
|
|
24682
|
+
const R = P(h);
|
|
24683
24683
|
return t.get(R);
|
|
24684
|
-
}), d = e.calledBySuccess.map((
|
|
24685
|
-
const R = P(
|
|
24684
|
+
}), d = e.calledBySuccess.map((h) => {
|
|
24685
|
+
const R = P(h);
|
|
24686
24686
|
return t.get(R);
|
|
24687
|
-
}), u = e.calledByError.map((
|
|
24688
|
-
const R = P(
|
|
24687
|
+
}), u = e.calledByError.map((h) => {
|
|
24688
|
+
const R = P(h);
|
|
24689
24689
|
return t.get(R);
|
|
24690
24690
|
}), y = {
|
|
24691
24691
|
id: e.id,
|
|
@@ -24759,7 +24759,7 @@ const te = class te {
|
|
|
24759
24759
|
new T({
|
|
24760
24760
|
id: `${e.id}--${p.InvalidImplementsReference}`,
|
|
24761
24761
|
code: p.InvalidImplementsReference,
|
|
24762
|
-
severity:
|
|
24762
|
+
severity: f.Error,
|
|
24763
24763
|
message: `Entity of type '${e.type}' with id '${e.id}' has an 'declaration' property that isn't pointing to an action descriptor reserved for '${r.Condition}' entities.
|
|
24764
24764
|
${Vs(t)}`,
|
|
24765
24765
|
issue: null
|
|
@@ -24768,7 +24768,7 @@ ${Vs(t)}`,
|
|
|
24768
24768
|
new T({
|
|
24769
24769
|
id: `${e.id}--${p.ReferencedEntityNotFound}`,
|
|
24770
24770
|
code: p.ReferencedEntityNotFound,
|
|
24771
|
-
severity:
|
|
24771
|
+
severity: f.Error,
|
|
24772
24772
|
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 '${r.Condition}' entities.
|
|
24773
24773
|
${Vs(t)}`,
|
|
24774
24774
|
issue: null
|
|
@@ -24777,7 +24777,7 @@ ${Vs(t)}`,
|
|
|
24777
24777
|
new T({
|
|
24778
24778
|
id: `${e.id}--${b.InvalidObjectStructure}`,
|
|
24779
24779
|
code: b.InvalidObjectStructure,
|
|
24780
|
-
severity:
|
|
24780
|
+
severity: f.Error,
|
|
24781
24781
|
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 '${r.Condition}' entities.
|
|
24782
24782
|
${Vs(t)}`,
|
|
24783
24783
|
issue: null
|
|
@@ -24793,7 +24793,7 @@ ${Vs(t)}`,
|
|
|
24793
24793
|
new T({
|
|
24794
24794
|
id: `${this.id}--${p.InvalidParentUpdate}`,
|
|
24795
24795
|
code: p.InvalidParentUpdate,
|
|
24796
|
-
severity:
|
|
24796
|
+
severity: f.Error,
|
|
24797
24797
|
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.
|
|
24798
24798
|
If an entity is called by another, they must be in the same scope, which means they have the same parent.
|
|
24799
24799
|
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.`,
|
|
@@ -24995,8 +24995,8 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
24995
24995
|
}), e || this.calledBy.forEach((s) => {
|
|
24996
24996
|
i.push(s), s.removeCall(this);
|
|
24997
24997
|
}), {
|
|
24998
|
-
affected:
|
|
24999
|
-
removed:
|
|
24998
|
+
affected: A(i),
|
|
24999
|
+
removed: A(a)
|
|
25000
25000
|
};
|
|
25001
25001
|
}
|
|
25002
25002
|
// Re-add this entity to the state after it was removed
|
|
@@ -25023,7 +25023,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
25023
25023
|
}), this.calledByEntry.forEach((i) => {
|
|
25024
25024
|
t.push(i), i.addCall(this);
|
|
25025
25025
|
}), {
|
|
25026
|
-
affected:
|
|
25026
|
+
affected: A(t),
|
|
25027
25027
|
self: this
|
|
25028
25028
|
});
|
|
25029
25029
|
}
|
|
@@ -25324,14 +25324,14 @@ const he = class he {
|
|
|
25324
25324
|
i = t.get(m);
|
|
25325
25325
|
}
|
|
25326
25326
|
const a = e.calledByEntry.map((m) => {
|
|
25327
|
-
const
|
|
25328
|
-
return t.get(
|
|
25327
|
+
const h = P(m);
|
|
25328
|
+
return t.get(h);
|
|
25329
25329
|
}), s = e.calledBySuccess.map((m) => {
|
|
25330
|
-
const
|
|
25331
|
-
return t.get(
|
|
25330
|
+
const h = P(m);
|
|
25331
|
+
return t.get(h);
|
|
25332
25332
|
}), o = e.calledByError.map((m) => {
|
|
25333
|
-
const
|
|
25334
|
-
return t.get(
|
|
25333
|
+
const h = P(m);
|
|
25334
|
+
return t.get(h);
|
|
25335
25335
|
});
|
|
25336
25336
|
let d;
|
|
25337
25337
|
if (e.declaration) {
|
|
@@ -25399,7 +25399,7 @@ const he = class he {
|
|
|
25399
25399
|
new T({
|
|
25400
25400
|
id: `${e.id}--${p.InvalidImplementsReference}`,
|
|
25401
25401
|
code: p.InvalidImplementsReference,
|
|
25402
|
-
severity:
|
|
25402
|
+
severity: f.Error,
|
|
25403
25403
|
message: `Entity of type '${e.type}' with id '${e.id}' has an 'declaration' property that isn't pointing to an action descriptor reserved for '${r.Condition}' entities.
|
|
25404
25404
|
${Gs(
|
|
25405
25405
|
t
|
|
@@ -25410,7 +25410,7 @@ ${Gs(
|
|
|
25410
25410
|
new T({
|
|
25411
25411
|
id: `${e.id}--${p.ReferencedEntityNotFound}`,
|
|
25412
25412
|
code: p.ReferencedEntityNotFound,
|
|
25413
|
-
severity:
|
|
25413
|
+
severity: f.Error,
|
|
25414
25414
|
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 '${r.Condition}' entities.
|
|
25415
25415
|
${Gs(
|
|
25416
25416
|
t
|
|
@@ -25421,7 +25421,7 @@ ${Gs(
|
|
|
25421
25421
|
new T({
|
|
25422
25422
|
id: `${e.id}--${b.InvalidObjectStructure}`,
|
|
25423
25423
|
code: b.InvalidObjectStructure,
|
|
25424
|
-
severity:
|
|
25424
|
+
severity: f.Error,
|
|
25425
25425
|
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 '${r.Condition}' entities.
|
|
25426
25426
|
${Gs(
|
|
25427
25427
|
t
|
|
@@ -25439,7 +25439,7 @@ ${Gs(
|
|
|
25439
25439
|
new T({
|
|
25440
25440
|
id: `${this.id}--${p.InvalidParentUpdate}`,
|
|
25441
25441
|
code: p.InvalidParentUpdate,
|
|
25442
|
-
severity:
|
|
25442
|
+
severity: f.Error,
|
|
25443
25443
|
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.
|
|
25444
25444
|
If an entity is called by another, they must be in the same scope, which means they have the same parent.`,
|
|
25445
25445
|
issue: null
|
|
@@ -25599,8 +25599,8 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
25599
25599
|
}), e || this.calledBy.forEach((s) => {
|
|
25600
25600
|
i.push(s), s.removeCall(this);
|
|
25601
25601
|
}), {
|
|
25602
|
-
affected:
|
|
25603
|
-
removed:
|
|
25602
|
+
affected: A(i),
|
|
25603
|
+
removed: A(a)
|
|
25604
25604
|
});
|
|
25605
25605
|
}
|
|
25606
25606
|
// Re-add this entity to the state after it was removed
|
|
@@ -25841,7 +25841,7 @@ class ms {
|
|
|
25841
25841
|
t
|
|
25842
25842
|
), d.initChildren()), [...s, d];
|
|
25843
25843
|
}, []), a = [...e.writesValues];
|
|
25844
|
-
return e.writesValues =
|
|
25844
|
+
return e.writesValues = A([
|
|
25845
25845
|
...a,
|
|
25846
25846
|
...i
|
|
25847
25847
|
]), e.writesValues;
|
|
@@ -25856,28 +25856,28 @@ function F8(n) {
|
|
|
25856
25856
|
const s = [...On(n)];
|
|
25857
25857
|
if (n.id === "random-company-employee-test-variable-id") {
|
|
25858
25858
|
const u = U({
|
|
25859
|
-
id: `${n.id}--${
|
|
25859
|
+
id: `${n.id}--${S.PropertyImplementsNonAbstact}`,
|
|
25860
25860
|
message: `Property "${D(n, n.project)}" with id "${n.id}" implements a non-abstract property "${D(
|
|
25861
25861
|
n,
|
|
25862
25862
|
n.project
|
|
25863
25863
|
)}" with id "${n.id}".`,
|
|
25864
25864
|
issue: null,
|
|
25865
|
-
severity:
|
|
25866
|
-
code:
|
|
25865
|
+
severity: f.Error,
|
|
25866
|
+
code: S.PropertyImplementsNonAbstact,
|
|
25867
25867
|
entity: n
|
|
25868
25868
|
});
|
|
25869
25869
|
s.push(u.error);
|
|
25870
25870
|
}
|
|
25871
25871
|
if (n.id === "company-dto-variable-one-id") {
|
|
25872
25872
|
const u = U({
|
|
25873
|
-
id: `${n.id}--${
|
|
25873
|
+
id: `${n.id}--${S.PropertyImplementsNonAbstact}`,
|
|
25874
25874
|
message: `Property "${D(n, n.project)}" with id "${n.id}" implements a non-abstract property "${D(
|
|
25875
25875
|
n,
|
|
25876
25876
|
n.project
|
|
25877
25877
|
)}" with id "${n.id}".`,
|
|
25878
25878
|
issue: null,
|
|
25879
|
-
severity:
|
|
25880
|
-
code:
|
|
25879
|
+
severity: f.Error,
|
|
25880
|
+
code: S.PropertyImplementsNonAbstact,
|
|
25881
25881
|
entity: n
|
|
25882
25882
|
});
|
|
25883
25883
|
s.push(u.error);
|
|
@@ -25931,14 +25931,14 @@ const ne = class ne {
|
|
|
25931
25931
|
i = t.get(m);
|
|
25932
25932
|
}
|
|
25933
25933
|
const a = e.calledByEntry.map((m) => {
|
|
25934
|
-
const
|
|
25935
|
-
return t.get(
|
|
25934
|
+
const h = P(m);
|
|
25935
|
+
return t.get(h);
|
|
25936
25936
|
}), s = e.calledBySuccess.map((m) => {
|
|
25937
|
-
const
|
|
25938
|
-
return t.get(
|
|
25937
|
+
const h = P(m);
|
|
25938
|
+
return t.get(h);
|
|
25939
25939
|
}), o = e.calledByError.map((m) => {
|
|
25940
|
-
const
|
|
25941
|
-
return t.get(
|
|
25940
|
+
const h = P(m);
|
|
25941
|
+
return t.get(h);
|
|
25942
25942
|
});
|
|
25943
25943
|
let d = null;
|
|
25944
25944
|
if (e.readsValue) {
|
|
@@ -26029,7 +26029,7 @@ const ne = class ne {
|
|
|
26029
26029
|
new T({
|
|
26030
26030
|
id: `${this.id}--${p.InvalidParentUpdate}`,
|
|
26031
26031
|
code: p.InvalidParentUpdate,
|
|
26032
|
-
severity:
|
|
26032
|
+
severity: f.Error,
|
|
26033
26033
|
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.
|
|
26034
26034
|
If an entity is called by another, they must be in the same scope, which means they have the same parent.
|
|
26035
26035
|
Specifically for variables, their scope is also calculated from their value readers and value writters.
|
|
@@ -26274,8 +26274,8 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
26274
26274
|
return e || this.calledBy.forEach((s) => {
|
|
26275
26275
|
i.push(s), s.removeCall(this);
|
|
26276
26276
|
}), {
|
|
26277
|
-
affected:
|
|
26278
|
-
removed:
|
|
26277
|
+
affected: A(i),
|
|
26278
|
+
removed: A(a)
|
|
26279
26279
|
};
|
|
26280
26280
|
}
|
|
26281
26281
|
// Re-add this entity to the state after it was removed
|
|
@@ -26312,7 +26312,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
26312
26312
|
}), this.calledByEntry.forEach((i) => {
|
|
26313
26313
|
t.push(i), i.addCall(this);
|
|
26314
26314
|
}), {
|
|
26315
|
-
affected:
|
|
26315
|
+
affected: A(t),
|
|
26316
26316
|
self: this
|
|
26317
26317
|
};
|
|
26318
26318
|
}
|
|
@@ -26600,7 +26600,10 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
26600
26600
|
].includes(this.dataType.entity.type))
|
|
26601
26601
|
return [
|
|
26602
26602
|
...this.dataType.entity.getAllInteractiveMethods()
|
|
26603
|
-
].filter((i) => !this.internalCalls.find((
|
|
26603
|
+
].filter((i) => !this.internalCalls.find((s) => {
|
|
26604
|
+
var d, u, y, m, h;
|
|
26605
|
+
return (((d = s.declaration) == null ? void 0 : d.id) || ((y = (u = s.initialData) == null ? void 0 : u.declaration) == null ? void 0 : y.entityId) || ((h = (m = s.initialData) == null ? void 0 : m.declaration) == null ? void 0 : h.id)) === i.id;
|
|
26606
|
+
})).map((i) => {
|
|
26604
26607
|
const a = i.createInternalCall(this);
|
|
26605
26608
|
return a.suggestion = !0, a;
|
|
26606
26609
|
});
|
|
@@ -26686,14 +26689,14 @@ function U8(n) {
|
|
|
26686
26689
|
const s = [...On(n)];
|
|
26687
26690
|
if (n.id === "exec-sequentially-result-variable-id") {
|
|
26688
26691
|
const d = U({
|
|
26689
|
-
id: `${n.id}--${
|
|
26692
|
+
id: `${n.id}--${S.PropertyImplementsNonAbstact}`,
|
|
26690
26693
|
message: `Property "${D(n, n.project)}" with id "${n.id}" implements a non-abstract property "${D(
|
|
26691
26694
|
n,
|
|
26692
26695
|
n.project
|
|
26693
26696
|
)}" with id "${n.id}".`,
|
|
26694
26697
|
issue: null,
|
|
26695
|
-
severity:
|
|
26696
|
-
code:
|
|
26698
|
+
severity: f.Error,
|
|
26699
|
+
code: S.PropertyImplementsNonAbstact,
|
|
26697
26700
|
entity: n
|
|
26698
26701
|
});
|
|
26699
26702
|
s.push(d.error);
|
|
@@ -26781,11 +26784,11 @@ const re = class re {
|
|
|
26781
26784
|
x: 0,
|
|
26782
26785
|
y: 0,
|
|
26783
26786
|
parent: i
|
|
26784
|
-
},
|
|
26787
|
+
}, h = E(
|
|
26785
26788
|
m,
|
|
26786
26789
|
t
|
|
26787
26790
|
);
|
|
26788
|
-
return
|
|
26791
|
+
return h.setParent(i), h.initChildren(), h;
|
|
26789
26792
|
}
|
|
26790
26793
|
// Validates the entity payload after generation and returns any errors
|
|
26791
26794
|
static validateGenerationTarget(e, t) {
|
|
@@ -26844,7 +26847,7 @@ const re = class re {
|
|
|
26844
26847
|
new T({
|
|
26845
26848
|
id: `${this.id}--${p.InvalidParentUpdate}`,
|
|
26846
26849
|
code: p.InvalidParentUpdate,
|
|
26847
|
-
severity:
|
|
26850
|
+
severity: f.Error,
|
|
26848
26851
|
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.
|
|
26849
26852
|
If an entity is called by another, they must be in the same scope, which means they have the same parent.
|
|
26850
26853
|
Specifically for variables, their scope is also calculated from their value readers and value writters.
|
|
@@ -26901,7 +26904,8 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
26901
26904
|
return this.internalCalls.filter((e) => !!e.calledBy.length);
|
|
26902
26905
|
}
|
|
26903
26906
|
get unusedInternalCalls() {
|
|
26904
|
-
|
|
26907
|
+
const e = this.usedInternalCalls;
|
|
26908
|
+
return this.internalCalls.filter((t) => !(!t.calledBy.length || e.find((i) => i.id === t.id || i.declaration.id === t.declaration.id)));
|
|
26905
26909
|
}
|
|
26906
26910
|
removeInput(e) {
|
|
26907
26911
|
const t = this.inputs.findIndex((i) => i.id === e.id);
|
|
@@ -27101,8 +27105,8 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
27101
27105
|
}), e || this.calledBy.forEach((s) => {
|
|
27102
27106
|
i.push(s), s.removeCall(this);
|
|
27103
27107
|
}), {
|
|
27104
|
-
affected:
|
|
27105
|
-
removed:
|
|
27108
|
+
affected: A(i),
|
|
27109
|
+
removed: A(a)
|
|
27106
27110
|
});
|
|
27107
27111
|
}
|
|
27108
27112
|
// Re-add this entity to the state after it was removed
|
|
@@ -27137,7 +27141,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
27137
27141
|
}), this.calledByEntry.forEach((i) => {
|
|
27138
27142
|
t.push(i), i.addCall(this);
|
|
27139
27143
|
}), {
|
|
27140
|
-
affected:
|
|
27144
|
+
affected: A(t),
|
|
27141
27145
|
self: this
|
|
27142
27146
|
};
|
|
27143
27147
|
}
|
|
@@ -27397,7 +27401,10 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
27397
27401
|
].includes(this.declaration.dataType.entity.type))
|
|
27398
27402
|
return [
|
|
27399
27403
|
...this.declaration.dataType.entity.getAllInteractiveMethods()
|
|
27400
|
-
].filter((i) => !this.internalCalls.find((
|
|
27404
|
+
].filter((i) => !this.internalCalls.find((s) => {
|
|
27405
|
+
var d, u, y, m, h;
|
|
27406
|
+
return (((d = s.declaration) == null ? void 0 : d.id) || ((y = (u = s.initialData) == null ? void 0 : u.declaration) == null ? void 0 : y.entityId) || ((h = (m = s.initialData) == null ? void 0 : m.declaration) == null ? void 0 : h.id)) === i.id;
|
|
27407
|
+
})).map((i) => {
|
|
27401
27408
|
const a = i.createInternalCall(this);
|
|
27402
27409
|
return a.suggestion = !0, a;
|
|
27403
27410
|
});
|
|
@@ -27479,14 +27486,14 @@ function j8(n) {
|
|
|
27479
27486
|
const a = [];
|
|
27480
27487
|
if (n.id === "iterate-over-employee-list-continue-statement-employee-dto-output-decl-id") {
|
|
27481
27488
|
const o = U({
|
|
27482
|
-
id: `${n.id}--${
|
|
27489
|
+
id: `${n.id}--${S.PropertyImplementsNonAbstact}`,
|
|
27483
27490
|
message: `Property "${D(n, n.project)}" with id "${n.id}" implements a non-abstract property "${D(
|
|
27484
27491
|
n,
|
|
27485
27492
|
n.project
|
|
27486
27493
|
)}" with id "${n.id}".`,
|
|
27487
27494
|
issue: null,
|
|
27488
|
-
severity:
|
|
27489
|
-
code:
|
|
27495
|
+
severity: f.Error,
|
|
27496
|
+
code: S.PropertyImplementsNonAbstact,
|
|
27490
27497
|
entity: n
|
|
27491
27498
|
});
|
|
27492
27499
|
a.push(o.error);
|
|
@@ -27595,16 +27602,16 @@ const ie = class ie {
|
|
|
27595
27602
|
if (y && [r.BreakStatement, r.ContinueStatement].includes(
|
|
27596
27603
|
y.type
|
|
27597
27604
|
)) {
|
|
27598
|
-
const m = y,
|
|
27599
|
-
...
|
|
27600
|
-
...
|
|
27605
|
+
const m = y, h = m.parent, R = [
|
|
27606
|
+
...h.breakStatements.filter((O) => O.id !== y.id),
|
|
27607
|
+
...h.continueStatements.filter((O) => O.id !== y.id)
|
|
27601
27608
|
];
|
|
27602
27609
|
if (m.outputs.length)
|
|
27603
27610
|
a.push(
|
|
27604
27611
|
new T({
|
|
27605
27612
|
id: `${i.id}--${b.NoOverlapWithImplementedSignature}`,
|
|
27606
27613
|
code: b.NoOverlapWithImplementedSignature,
|
|
27607
|
-
severity:
|
|
27614
|
+
severity: f.Error,
|
|
27608
27615
|
message: `Entity of type '${r.ReturnDeclaration}' with id '${i.id}' cannot be added to the parent entity of type '${m.type}' with id '${m.id}'. This '${m.type}' already has return declarations.
|
|
27609
27616
|
${Jc}`,
|
|
27610
27617
|
issue: null
|
|
@@ -27616,7 +27623,7 @@ ${Jc}`,
|
|
|
27616
27623
|
new T({
|
|
27617
27624
|
id: `${i.id}--${b.NoOverlapWithImplementedSignature}`,
|
|
27618
27625
|
code: b.NoOverlapWithImplementedSignature,
|
|
27619
|
-
severity:
|
|
27626
|
+
severity: f.Error,
|
|
27620
27627
|
message: `Entity of type '${r.ReturnDeclaration}' with id '${i.id}' cannot be added to the parent entity of type '${m.type}' with id '${m.id}'. This new 'return-declaration' doesn't have the same name "${O}" as the return declarations on the other statements in the same scope.
|
|
27621
27628
|
${Jc}`,
|
|
27622
27629
|
issue: null
|
|
@@ -27626,12 +27633,12 @@ ${Jc}`,
|
|
|
27626
27633
|
} else if (y && y.type === r.ReturnStatement) {
|
|
27627
27634
|
const m = y.parent;
|
|
27628
27635
|
if (m && xe.includes(m.type)) {
|
|
27629
|
-
const
|
|
27630
|
-
if (
|
|
27631
|
-
if (
|
|
27632
|
-
const R =
|
|
27636
|
+
const h = m.implements;
|
|
27637
|
+
if (h)
|
|
27638
|
+
if (h.returnsType === V.Fixed) {
|
|
27639
|
+
const R = h.fixedReturns.find(
|
|
27633
27640
|
(_e) => _e.name === i.name
|
|
27634
|
-
), g =
|
|
27641
|
+
), g = h.fixedReturns.filter((_e) => !y.outputs.find(
|
|
27635
27642
|
(Tc) => Tc.type === r.ReturnDeclaration && Tc.name === _e.name
|
|
27636
27643
|
)), O = y.outputs.filter(
|
|
27637
27644
|
(_e) => _e.type === r.ReturnDeclaration
|
|
@@ -27654,7 +27661,7 @@ ${Jc}`,
|
|
|
27654
27661
|
new T({
|
|
27655
27662
|
id: `${i.id}--${b.NoOverlapWithImplementedSignature}`,
|
|
27656
27663
|
code: b.NoOverlapWithImplementedSignature,
|
|
27657
|
-
severity:
|
|
27664
|
+
severity: f.Error,
|
|
27658
27665
|
message: `Entity of type '${r.ReturnDeclaration}' with id '${i.id}' should not exist in a parent entity of type '${y.type}' with id '${y.id}' that implements a ${r.ActionDescriptor} with fixed outputs.
|
|
27659
27666
|
Adding a new return would make the implementation invalid. An return with the same name already exists in the parent entity.
|
|
27660
27667
|
${k}
|
|
@@ -27665,7 +27672,7 @@ ${Bt}`,
|
|
|
27665
27672
|
new T({
|
|
27666
27673
|
id: `${i.id}--${b.NoOverlapWithImplementedSignature}`,
|
|
27667
27674
|
code: b.NoOverlapWithImplementedSignature,
|
|
27668
|
-
severity:
|
|
27675
|
+
severity: f.Error,
|
|
27669
27676
|
message: `Entity of type '${r.ReturnDeclaration}' with id '${i.id}' should not exist in a parent entity of type '${y.type}' with id '${y.id}' that implements a ${r.ActionDescriptor} with fixed outputs.
|
|
27670
27677
|
Adding a new return would make the implementation invalid. There are no returns in the descriptor with the same name.
|
|
27671
27678
|
${k}
|
|
@@ -27674,11 +27681,11 @@ ${Bt}`,
|
|
|
27674
27681
|
})
|
|
27675
27682
|
);
|
|
27676
27683
|
} else
|
|
27677
|
-
|
|
27684
|
+
h.returnsType === V.Dynamic || h.returnsType === V.None && a.push(
|
|
27678
27685
|
new T({
|
|
27679
27686
|
id: `${i.id}--${b.NoOverlapWithImplementedSignature}`,
|
|
27680
27687
|
code: b.NoOverlapWithImplementedSignature,
|
|
27681
|
-
severity:
|
|
27688
|
+
severity: f.Error,
|
|
27682
27689
|
message: `Entity of type '${r.ReturnDeclaration}' with id '${i.id}' should not exist in a parent entity of type '${y.type}' with id '${y.id}' that implements a ${r.ActionDescriptor} with no outputs.
|
|
27683
27690
|
Adding a new return would make the implementation invalid.`,
|
|
27684
27691
|
issue: null
|
|
@@ -27709,7 +27716,7 @@ Adding a new return would make the implementation invalid.`,
|
|
|
27709
27716
|
new T({
|
|
27710
27717
|
id: `${this.id}--${p.InvalidParentUpdate}`,
|
|
27711
27718
|
code: p.InvalidParentUpdate,
|
|
27712
|
-
severity:
|
|
27719
|
+
severity: f.Error,
|
|
27713
27720
|
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.
|
|
27714
27721
|
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.`,
|
|
27715
27722
|
issue: null
|
|
@@ -27783,8 +27790,8 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
27783
27790
|
i.push(...s.affected), a.push(...s.removed);
|
|
27784
27791
|
}
|
|
27785
27792
|
return {
|
|
27786
|
-
affected:
|
|
27787
|
-
removed:
|
|
27793
|
+
affected: A(i),
|
|
27794
|
+
removed: A(a)
|
|
27788
27795
|
};
|
|
27789
27796
|
}
|
|
27790
27797
|
// Re-add this entity to the state after it was removed
|
|
@@ -27964,14 +27971,14 @@ function k8(n) {
|
|
|
27964
27971
|
const s = [...On(n)];
|
|
27965
27972
|
if (n.id === "search-person-by-id-id") {
|
|
27966
27973
|
const d = U({
|
|
27967
|
-
id: `${n.id}--${
|
|
27974
|
+
id: `${n.id}--${S.PropertyImplementsNonAbstact}`,
|
|
27968
27975
|
message: `Property "${D(n, n.project)}" with id "${n.id}" implements a non-abstract property "${D(
|
|
27969
27976
|
n,
|
|
27970
27977
|
n.project
|
|
27971
27978
|
)}" with id "${n.id}".`,
|
|
27972
27979
|
issue: null,
|
|
27973
|
-
severity:
|
|
27974
|
-
code:
|
|
27980
|
+
severity: f.Error,
|
|
27981
|
+
code: S.PropertyImplementsNonAbstact,
|
|
27975
27982
|
entity: n
|
|
27976
27983
|
});
|
|
27977
27984
|
s.push(d.error);
|
|
@@ -28099,7 +28106,7 @@ const ve = class ve {
|
|
|
28099
28106
|
new T({
|
|
28100
28107
|
id: `${this.id}--${p.InvalidParentUpdate}`,
|
|
28101
28108
|
code: p.InvalidParentUpdate,
|
|
28102
|
-
severity:
|
|
28109
|
+
severity: f.Error,
|
|
28103
28110
|
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.
|
|
28104
28111
|
If an entity is called by another, they must be in the same scope, which means they have the same parent.
|
|
28105
28112
|
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.`,
|
|
@@ -28332,8 +28339,8 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
28332
28339
|
}), e || this.calledBy.forEach((s) => {
|
|
28333
28340
|
i.push(s), s.removeCall(this);
|
|
28334
28341
|
}), {
|
|
28335
|
-
affected:
|
|
28336
|
-
removed:
|
|
28342
|
+
affected: A(i),
|
|
28343
|
+
removed: A(a)
|
|
28337
28344
|
};
|
|
28338
28345
|
}
|
|
28339
28346
|
// Re-add this entity to the state after it was removed
|
|
@@ -28366,7 +28373,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
28366
28373
|
}), this.calledByEntry.forEach((i) => {
|
|
28367
28374
|
t.push(i), i.addCall(this);
|
|
28368
28375
|
}), {
|
|
28369
|
-
affected:
|
|
28376
|
+
affected: A(t),
|
|
28370
28377
|
self: this
|
|
28371
28378
|
});
|
|
28372
28379
|
}
|
|
@@ -28669,7 +28676,7 @@ const fe = class fe {
|
|
|
28669
28676
|
new T({
|
|
28670
28677
|
id: `${this.id}--${p.InvalidParentUpdate}`,
|
|
28671
28678
|
code: p.InvalidParentUpdate,
|
|
28672
|
-
severity:
|
|
28679
|
+
severity: f.Error,
|
|
28673
28680
|
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.`,
|
|
28674
28681
|
issue: null
|
|
28675
28682
|
})
|
|
@@ -28916,7 +28923,7 @@ function W8(n) {
|
|
|
28916
28923
|
U({
|
|
28917
28924
|
id: `${n.id}--${b.InternalCallParentMissingDataType}`,
|
|
28918
28925
|
code: b.InternalCallParentMissingDataType,
|
|
28919
|
-
severity:
|
|
28926
|
+
severity: f.Error,
|
|
28920
28927
|
message: `Entity of type "${n.type}" with id "${n.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) its id "${n.declaration}".`,
|
|
28921
28928
|
issue: null,
|
|
28922
28929
|
entity: n
|
|
@@ -28931,7 +28938,7 @@ function W8(n) {
|
|
|
28931
28938
|
U({
|
|
28932
28939
|
id: `${n.id}--${b.InternalCallParentDeclarationEntityInvalidType}`,
|
|
28933
28940
|
code: b.InternalCallParentDeclarationEntityInvalidType,
|
|
28934
|
-
severity:
|
|
28941
|
+
severity: f.Error,
|
|
28935
28942
|
message: `Entity of type "${n.type}" with id "${n.id}", belongs to a variable whose data type 'entity' is not a custom entity, built-in base entity or primitive entity.
|
|
28936
28943
|
This variable's data-type has an 'entity' field that references an entity with id '${i.id}' and of type '${i.type}'.`,
|
|
28937
28944
|
issue: null,
|
|
@@ -28970,7 +28977,7 @@ This variable's data-type 'entity' is a non-interactive 'built-in-base-entity'.s
|
|
|
28970
28977
|
U({
|
|
28971
28978
|
id: `${n.id}--${b.InternalCallDeclarationIsNotFunctionDeclaration}`,
|
|
28972
28979
|
code: b.InternalCallDeclarationIsNotFunctionDeclaration,
|
|
28973
|
-
severity:
|
|
28980
|
+
severity: f.Error,
|
|
28974
28981
|
message: `Entity of type "${n.type}" with id "${n.id}", points to a 'declaration' that isn't a 'function-declaration' entity.
|
|
28975
28982
|
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.${o}`,
|
|
28976
28983
|
issue: null,
|
|
@@ -28980,7 +28987,7 @@ The declaration of the internal-call must be a 'function-declaration' entity whi
|
|
|
28980
28987
|
U({
|
|
28981
28988
|
id: `${n.id}--${b.InternalCallDeclarationNotFoundInParentDatatypeEntity}`,
|
|
28982
28989
|
code: b.InternalCallDeclarationNotFoundInParentDatatypeEntity,
|
|
28983
|
-
severity:
|
|
28990
|
+
severity: f.Error,
|
|
28984
28991
|
message: `Entity of type "${n.type}" with id "${n.id}", belongs to a variable whose data type entity doesn't contain its declaration method (function-declaration) with id "${n.declaration}".${o}`,
|
|
28985
28992
|
issue: null,
|
|
28986
28993
|
entity: n
|
|
@@ -29052,11 +29059,11 @@ const ae = class ae {
|
|
|
29052
29059
|
process: null,
|
|
29053
29060
|
error: null,
|
|
29054
29061
|
parent: a
|
|
29055
|
-
},
|
|
29062
|
+
}, h = E(
|
|
29056
29063
|
m,
|
|
29057
29064
|
t
|
|
29058
29065
|
);
|
|
29059
|
-
return
|
|
29066
|
+
return h.setParent(a), h.initChildren(), h;
|
|
29060
29067
|
}
|
|
29061
29068
|
// Validates the entity payload after generation and returns any errors
|
|
29062
29069
|
static validateGenerationTarget(e, t) {
|
|
@@ -29100,7 +29107,7 @@ const ae = class ae {
|
|
|
29100
29107
|
new T({
|
|
29101
29108
|
id: `${i.id}--${b.InternalCallParentMissingDataType}`,
|
|
29102
29109
|
code: b.InternalCallParentMissingDataType,
|
|
29103
|
-
severity:
|
|
29110
|
+
severity: f.Error,
|
|
29104
29111
|
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}".`,
|
|
29105
29112
|
issue: null
|
|
29106
29113
|
})
|
|
@@ -29114,7 +29121,7 @@ const ae = class ae {
|
|
|
29114
29121
|
new T({
|
|
29115
29122
|
id: `${i.id}--${b.InternalCallParentDeclarationEntityInvalidType}`,
|
|
29116
29123
|
code: b.InternalCallParentDeclarationEntityInvalidType,
|
|
29117
|
-
severity:
|
|
29124
|
+
severity: f.Error,
|
|
29118
29125
|
message: `Entity of type "${i.type}" with id "${i.id}", belongs to a variable whose data type 'entity' is not a custom entity, built-in base entity or primitive entity.
|
|
29119
29126
|
This variable's data-type has an 'entity' field that references an entity with id '${y.id}' and of type '${y.type}'.`,
|
|
29120
29127
|
issue: null
|
|
@@ -29124,22 +29131,22 @@ This variable's data-type has an 'entity' field that references an entity with i
|
|
|
29124
29131
|
const m = _f(
|
|
29125
29132
|
y
|
|
29126
29133
|
);
|
|
29127
|
-
let
|
|
29128
|
-
m ? y.methods.length ?
|
|
29134
|
+
let h = "";
|
|
29135
|
+
m ? y.methods.length ? h = `
|
|
29129
29136
|
All 'function-declaration' entities attached as methods to the parent data-type 'entity' field, available to be called as 'internal-calls' in this variable are:
|
|
29130
29137
|
- ${y.methods.map(($) => $.id).join(
|
|
29131
29138
|
`
|
|
29132
29139
|
- `
|
|
29133
29140
|
)}
|
|
29134
|
-
You can reference any of them as the 'delcaration' property on a new 'internal-call' entity.` : y.type === r.CustomEntity ?
|
|
29141
|
+
You can reference any of them as the 'delcaration' property on a new 'internal-call' entity.` : y.type === r.CustomEntity ? h = `
|
|
29135
29142
|
This variable's data-type 'entity' is a custom entity which doesn't have any methods attached to it yet.
|
|
29136
29143
|
You can attach methods to it by creating 'function-declaration' entities which have the entity as its 'parent' field. Then you can reference them as the 'declaration' property on a new 'internal-call' entity in a variable` : [r.BuiltInBaseEntity, r.PrimitiveEntity].includes(
|
|
29137
29144
|
y.type
|
|
29138
|
-
) && (
|
|
29145
|
+
) && (h = `
|
|
29139
29146
|
This variable's data-type 'entity' is a ${y.type} which doesn't have any methods attached to it yet.
|
|
29140
|
-
Built-in entity types can't have methods attached to them by the user. They are predefined entities that can't be modified. You can reference them as the 'declaration' property on a new 'internal-call' entity in a variable`) : y.type === r.CustomEntity ?
|
|
29147
|
+
Built-in entity types can't have methods attached to them by the user. They are predefined entities that can't be modified. You can reference them as the 'declaration' property on a new 'internal-call' entity in a variable`) : y.type === r.CustomEntity ? h = `
|
|
29141
29148
|
This variable's data-type 'entity' is a custom entity which extends or implements a non-interactive 'built-in-base-entity'.
|
|
29142
|
-
${xn}` : y.type === r.BuiltInBaseEntity && (
|
|
29149
|
+
${xn}` : y.type === r.BuiltInBaseEntity && (h = `
|
|
29143
29150
|
This variable's data-type 'entity' is a non-interactive 'built-in-base-entity'.
|
|
29144
29151
|
${xn}`);
|
|
29145
29152
|
const R = i.declaration;
|
|
@@ -29150,8 +29157,8 @@ ${xn}`);
|
|
|
29150
29157
|
new T({
|
|
29151
29158
|
id: `${i.id}--${p.ReferencedEntityNotFound}`,
|
|
29152
29159
|
code: p.ReferencedEntityNotFound,
|
|
29153
|
-
severity:
|
|
29154
|
-
message: `Entity of type "${i.type}" with id "${i.id}", has a declaration method (function-declaration) that doesn't exist in the project.${
|
|
29160
|
+
severity: f.Error,
|
|
29161
|
+
message: `Entity of type "${i.type}" with id "${i.id}", has a declaration method (function-declaration) that doesn't exist in the project.${h}`,
|
|
29155
29162
|
issue: null
|
|
29156
29163
|
})
|
|
29157
29164
|
);
|
|
@@ -29171,17 +29178,17 @@ ${xn}`);
|
|
|
29171
29178
|
new T({
|
|
29172
29179
|
id: `${i.id}--${b.InternalCallDeclarationIsNotFunctionDeclaration}`,
|
|
29173
29180
|
code: b.InternalCallDeclarationIsNotFunctionDeclaration,
|
|
29174
|
-
severity:
|
|
29181
|
+
severity: f.Error,
|
|
29175
29182
|
message: `Entity of type "${i.type}" with id "${i.id}", points to a 'declaration' that isn't a 'function-declaration' entity.
|
|
29176
|
-
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.${
|
|
29183
|
+
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.${h}`,
|
|
29177
29184
|
issue: null
|
|
29178
29185
|
})
|
|
29179
29186
|
) : a.push(
|
|
29180
29187
|
new T({
|
|
29181
29188
|
id: `${i.id}--${b.InternalCallDeclarationNotFoundInParentDatatypeEntity}`,
|
|
29182
29189
|
code: b.InternalCallDeclarationNotFoundInParentDatatypeEntity,
|
|
29183
|
-
severity:
|
|
29184
|
-
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}".${
|
|
29190
|
+
severity: f.Error,
|
|
29191
|
+
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}".${h}`,
|
|
29185
29192
|
issue: null
|
|
29186
29193
|
})
|
|
29187
29194
|
);
|
|
@@ -29191,7 +29198,7 @@ The declaration of the internal-call must be a 'function-declaration' entity whi
|
|
|
29191
29198
|
new T({
|
|
29192
29199
|
id: `${i.id}--${p.InvalidInternalCallParentRelation}`,
|
|
29193
29200
|
code: p.InvalidInternalCallParentRelation,
|
|
29194
|
-
severity:
|
|
29201
|
+
severity: f.Error,
|
|
29195
29202
|
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.
|
|
29196
29203
|
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.
|
|
29197
29204
|
The you can attach the new internal-call to it.`,
|
|
@@ -29213,7 +29220,7 @@ The you can attach the new internal-call to it.`,
|
|
|
29213
29220
|
new T({
|
|
29214
29221
|
id: `${this.id}--${p.InvalidParentUpdate}`,
|
|
29215
29222
|
code: p.InvalidParentUpdate,
|
|
29216
|
-
severity:
|
|
29223
|
+
severity: f.Error,
|
|
29217
29224
|
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.
|
|
29218
29225
|
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.`,
|
|
29219
29226
|
issue: null
|
|
@@ -29443,8 +29450,8 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
29443
29450
|
}), e || this.calledBy.forEach((o) => {
|
|
29444
29451
|
i.push(o), o.removeCall(this);
|
|
29445
29452
|
}), {
|
|
29446
|
-
affected:
|
|
29447
|
-
removed:
|
|
29453
|
+
affected: A(i),
|
|
29454
|
+
removed: A(a)
|
|
29448
29455
|
};
|
|
29449
29456
|
}
|
|
29450
29457
|
// Re-add this entity to the state after it was removed
|
|
@@ -29477,7 +29484,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
29477
29484
|
}), this.calledByEntry.forEach((i) => {
|
|
29478
29485
|
t.push(i), i.addCall(this);
|
|
29479
29486
|
}), {
|
|
29480
|
-
affected:
|
|
29487
|
+
affected: A(t),
|
|
29481
29488
|
self: this
|
|
29482
29489
|
};
|
|
29483
29490
|
}
|
|
@@ -29675,14 +29682,14 @@ function H8(n) {
|
|
|
29675
29682
|
const a = [];
|
|
29676
29683
|
if (n.id === "exec-sequentially-argument-map-id") {
|
|
29677
29684
|
const s = U({
|
|
29678
|
-
id: `${n.id}--${
|
|
29685
|
+
id: `${n.id}--${S.PropertyImplementsNonAbstact}`,
|
|
29679
29686
|
message: `Property "${D(n, n.project)}" with id "${n.id}" implements a non-abstract property "${D(
|
|
29680
29687
|
n,
|
|
29681
29688
|
n.project
|
|
29682
29689
|
)}" with id "${n.id}".`,
|
|
29683
29690
|
issue: null,
|
|
29684
|
-
severity:
|
|
29685
|
-
code:
|
|
29691
|
+
severity: f.Error,
|
|
29692
|
+
code: S.PropertyImplementsNonAbstact,
|
|
29686
29693
|
entity: n
|
|
29687
29694
|
});
|
|
29688
29695
|
a.push(s.error);
|
|
@@ -29781,8 +29788,8 @@ const se = class se {
|
|
|
29781
29788
|
// @ts-ignore
|
|
29782
29789
|
((o == null ? void 0 : o.inputs) || []).find(
|
|
29783
29790
|
(m) => {
|
|
29784
|
-
var
|
|
29785
|
-
return i.declaration && ((
|
|
29791
|
+
var h;
|
|
29792
|
+
return i.declaration && ((h = m.declaration) == null ? void 0 : h.id) === i.declaration;
|
|
29786
29793
|
}
|
|
29787
29794
|
)
|
|
29788
29795
|
);
|
|
@@ -29798,7 +29805,7 @@ const se = class se {
|
|
|
29798
29805
|
new T({
|
|
29799
29806
|
id: `${i.id}--${p.InvalidInputMapDeclaration}`,
|
|
29800
29807
|
code: p.InvalidInputMapDeclaration,
|
|
29801
|
-
severity:
|
|
29808
|
+
severity: f.Error,
|
|
29802
29809
|
message: `Entity of type '${r.InputMap}' with id '${i.id}' has a 'declaration' property pointing to an entity with type '${r.ArgumentDeclaration}' with id '${i.declaration}'.
|
|
29803
29810
|
The parent entity of type '${o.type}' with id '${o.id}' is not compatible with this type of declaration.
|
|
29804
29811
|
Only 'function-call', 'search' and 'internal-call' entities can have input-maps whose 'declaration' points to 'argument-declaration' entities.`,
|
|
@@ -29808,7 +29815,7 @@ Only 'function-call', 'search' and 'internal-call' entities can have input-maps
|
|
|
29808
29815
|
new T({
|
|
29809
29816
|
id: `${i.id}--${p.InvalidInputMapDeclaration}`,
|
|
29810
29817
|
code: p.InvalidInputMapDeclaration,
|
|
29811
|
-
severity:
|
|
29818
|
+
severity: f.Error,
|
|
29812
29819
|
message: `Entity of type '${r.InputMap}' with id '${i.id}' has a 'declaration' property pointing to an entity with type '${r.Property}' with id '${i.declaration}'.
|
|
29813
29820
|
The parent entity of type '${o.type}' with id '${o.id}' is not compatible with this type of declaration.
|
|
29814
29821
|
Only variables can have input-maps whose 'declaration' points to 'property' entities.`,
|
|
@@ -29820,7 +29827,7 @@ Only variables can have input-maps whose 'declaration' points to 'property' enti
|
|
|
29820
29827
|
new T({
|
|
29821
29828
|
id: `${i.id}--${p.InvalidInputMapDeclaration}`,
|
|
29822
29829
|
code: p.InvalidInputMapDeclaration,
|
|
29823
|
-
severity:
|
|
29830
|
+
severity: f.Error,
|
|
29824
29831
|
message: `Entity of type '${r.InputMap}' with id '${i.id}' has a 'declaration' property pointing to an entity with type '${r.ValueDescriptor}' with id '${i.declaration}'.
|
|
29825
29832
|
The parent entity of type '${o.type}' with id '${o.id}' is not compatible with this type of declaration.
|
|
29826
29833
|
Only 'condition', 'operation' and 'loop' entities can have input-maps whose 'declaration' points to 'value-descriptor' entities.`,
|
|
@@ -29830,7 +29837,7 @@ Only 'condition', 'operation' and 'loop' entities can have input-maps whose 'dec
|
|
|
29830
29837
|
new T({
|
|
29831
29838
|
id: `${i.id}--${p.InvalidInputMapDeclaration}`,
|
|
29832
29839
|
code: p.InvalidInputMapDeclaration,
|
|
29833
|
-
severity:
|
|
29840
|
+
severity: f.Error,
|
|
29834
29841
|
message: `Entity of type '${r.InputMap}' with id '${i.id}' must have a 'declaration' property pointing to a '${_(
|
|
29835
29842
|
[
|
|
29836
29843
|
r.Property,
|
|
@@ -29848,7 +29855,7 @@ This is because a dynamically assembled object can have new properties added to
|
|
|
29848
29855
|
new T({
|
|
29849
29856
|
id: `${i.id}--${p.ReferencedEntityNotFound}`,
|
|
29850
29857
|
code: p.ReferencedEntityNotFound,
|
|
29851
|
-
severity:
|
|
29858
|
+
severity: f.Error,
|
|
29852
29859
|
message: `Entity of type '${r.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.`,
|
|
29853
29860
|
issue: null
|
|
29854
29861
|
})
|
|
@@ -29856,7 +29863,7 @@ This is because a dynamically assembled object can have new properties added to
|
|
|
29856
29863
|
new T({
|
|
29857
29864
|
id: `${i.id}--${p.InvalidInputMapDeclaration}`,
|
|
29858
29865
|
code: p.InvalidInputMapDeclaration,
|
|
29859
|
-
severity:
|
|
29866
|
+
severity: f.Error,
|
|
29860
29867
|
message: `Entity of type '${r.InputMap}' with id '${i.id}' must have a 'declaration' property pointing to a 'argument-declaration' or 'property' entity.
|
|
29861
29868
|
Only input-map entities for variables with an inferred data type are allowed to not have a declaration.
|
|
29862
29869
|
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`,
|
|
@@ -29868,7 +29875,7 @@ This is because a dynamically assembled object can have new properties added to
|
|
|
29868
29875
|
new T({
|
|
29869
29876
|
id: `${i.id}--${p.InputOverwrite}`,
|
|
29870
29877
|
code: p.InputOverwrite,
|
|
29871
|
-
severity:
|
|
29878
|
+
severity: f.Error,
|
|
29872
29879
|
message: `Entity of type '${r.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.
|
|
29873
29880
|
Any value reads can be done with that input-map instead.
|
|
29874
29881
|
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.`,
|
|
@@ -29881,7 +29888,7 @@ You can't edit input-map entities as they need to match their argument declarati
|
|
|
29881
29888
|
new T({
|
|
29882
29889
|
id: `${i.id}--${b.NoOverlapWithImplementedSignature}`,
|
|
29883
29890
|
code: b.NoOverlapWithImplementedSignature,
|
|
29884
|
-
severity:
|
|
29891
|
+
severity: f.Error,
|
|
29885
29892
|
message: `Entity of type '${r.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.
|
|
29886
29893
|
This means it can hold a function-call or operation as its value, to be executed programatically.
|
|
29887
29894
|
Input maps can only be added to variables which hold an entity with properties.`,
|
|
@@ -29891,7 +29898,7 @@ Input maps can only be added to variables which hold an entity with properties.`
|
|
|
29891
29898
|
new T({
|
|
29892
29899
|
id: `${i.id}--${b.NoOverlapWithImplementedSignature}`,
|
|
29893
29900
|
code: b.NoOverlapWithImplementedSignature,
|
|
29894
|
-
severity:
|
|
29901
|
+
severity: f.Error,
|
|
29895
29902
|
message: `Entity of type '${r.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'.
|
|
29896
29903
|
The entity of the data-type has the following properties that can be reads as input maps, ids: '${_(
|
|
29897
29904
|
g.properties.map(
|
|
@@ -29906,10 +29913,10 @@ The entity of the data-type has the following properties that can be reads as in
|
|
|
29906
29913
|
} else if (Me.filter(
|
|
29907
29914
|
(m) => Ge.includes(m)
|
|
29908
29915
|
).includes(o.type)) {
|
|
29909
|
-
const
|
|
29916
|
+
const h = Cf(o), R = h.find(
|
|
29910
29917
|
(O) => O.id === i.declaration
|
|
29911
29918
|
), g = `The parent entity has the following argument declarations that can be referenced by input-maps, ids: '${_(
|
|
29912
|
-
|
|
29919
|
+
h.map((O) => O.id),
|
|
29913
29920
|
"', '",
|
|
29914
29921
|
"' and '"
|
|
29915
29922
|
)}'`;
|
|
@@ -29917,7 +29924,7 @@ The entity of the data-type has the following properties that can be reads as in
|
|
|
29917
29924
|
new T({
|
|
29918
29925
|
id: `${i.id}--${b.NoOverlapWithImplementedSignature}`,
|
|
29919
29926
|
code: b.NoOverlapWithImplementedSignature,
|
|
29920
|
-
severity:
|
|
29927
|
+
severity: f.Error,
|
|
29921
29928
|
message: `Entity of type '${r.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}'.
|
|
29922
29929
|
You can't add an input-map to an entity that doesn't have a matching 'argument-declaration'.
|
|
29923
29930
|
${g}`,
|
|
@@ -29947,7 +29954,7 @@ ${g}`,
|
|
|
29947
29954
|
new T({
|
|
29948
29955
|
id: `${this.id}--${p.InvalidParentUpdate}`,
|
|
29949
29956
|
code: p.InvalidParentUpdate,
|
|
29950
|
-
severity:
|
|
29957
|
+
severity: f.Error,
|
|
29951
29958
|
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.
|
|
29952
29959
|
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.`,
|
|
29953
29960
|
issue: null
|
|
@@ -30236,14 +30243,14 @@ function Y8(n) {
|
|
|
30236
30243
|
const a = [];
|
|
30237
30244
|
if (n.id === "exec-sequentially-return-map-id") {
|
|
30238
30245
|
const s = U({
|
|
30239
|
-
id: `${n.id}--${
|
|
30246
|
+
id: `${n.id}--${S.PropertyImplementsNonAbstact}`,
|
|
30240
30247
|
message: `Property "${D(n, n.project)}" with id "${n.id}" implements a non-abstract property "${D(
|
|
30241
30248
|
n,
|
|
30242
30249
|
n.project
|
|
30243
30250
|
)}" with id "${n.id}".`,
|
|
30244
30251
|
issue: null,
|
|
30245
|
-
severity:
|
|
30246
|
-
code:
|
|
30252
|
+
severity: f.Error,
|
|
30253
|
+
code: S.PropertyImplementsNonAbstact,
|
|
30247
30254
|
entity: n
|
|
30248
30255
|
});
|
|
30249
30256
|
a.push(s.error);
|
|
@@ -30340,7 +30347,7 @@ const oe = class oe {
|
|
|
30340
30347
|
new T({
|
|
30341
30348
|
id: `${i.id}--${p.OutputOverwrite}`,
|
|
30342
30349
|
code: p.OutputOverwrite,
|
|
30343
|
-
severity:
|
|
30350
|
+
severity: f.Error,
|
|
30344
30351
|
message: `Entity of type '${r.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'.
|
|
30345
30352
|
Any value reads can be done with that output-map instead.
|
|
30346
30353
|
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.`,
|
|
@@ -30350,12 +30357,12 @@ You can't edit output-map entities as they need to match their return declaratio
|
|
|
30350
30357
|
else {
|
|
30351
30358
|
const y = t.get(i.declaration);
|
|
30352
30359
|
if (y && Ge.includes(o.type)) {
|
|
30353
|
-
const m = df(o),
|
|
30354
|
-
|
|
30360
|
+
const m = df(o), h = m.dataType, R = (d = m.dataType) == null ? void 0 : d.entity;
|
|
30361
|
+
h ? R ? R.type === r.ActionDescriptor ? a.push(
|
|
30355
30362
|
new T({
|
|
30356
30363
|
id: `${i.id}--${b.NoOverlapWithImplementedSignature}`,
|
|
30357
30364
|
code: b.NoOverlapWithImplementedSignature,
|
|
30358
|
-
severity:
|
|
30365
|
+
severity: f.Error,
|
|
30359
30366
|
message: `Entity of type '${r.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.
|
|
30360
30367
|
This means it can hold a function-call or operation as its value, to be executed programatically.
|
|
30361
30368
|
Output maps can only be added to variables which hold an entity with properties.`,
|
|
@@ -30367,7 +30374,7 @@ Output maps can only be added to variables which hold an entity with properties.
|
|
|
30367
30374
|
new T({
|
|
30368
30375
|
id: `${i.id}--${b.NoOverlapWithImplementedSignature}`,
|
|
30369
30376
|
code: b.NoOverlapWithImplementedSignature,
|
|
30370
|
-
severity:
|
|
30377
|
+
severity: f.Error,
|
|
30371
30378
|
message: `Entity of type '${r.OutputMap}' with id '${i.id}' cannot be added to the parent entity of type '${o.type}' with id '${o.id}'. The 'declaration' with '${y.id}' of the 'output-map' does not exist in the entity of the 'data-type'.
|
|
30372
30379
|
The entity of the data-type has the following properties that can be reads as output maps, ids: '${_(
|
|
30373
30380
|
R.properties.map((O) => O.id),
|
|
@@ -30380,7 +30387,7 @@ The entity of the data-type has the following properties that can be reads as ou
|
|
|
30380
30387
|
new T({
|
|
30381
30388
|
id: `${i.id}--${b.NoOverlapWithImplementedSignature}`,
|
|
30382
30389
|
code: b.NoOverlapWithImplementedSignature,
|
|
30383
|
-
severity:
|
|
30390
|
+
severity: f.Error,
|
|
30384
30391
|
message: `Entity of type '${r.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.
|
|
30385
30392
|
${Wc}`,
|
|
30386
30393
|
issue: null
|
|
@@ -30389,7 +30396,7 @@ ${Wc}`,
|
|
|
30389
30396
|
new T({
|
|
30390
30397
|
id: `${i.id}--${b.NoOverlapWithImplementedSignature}`,
|
|
30391
30398
|
code: b.NoOverlapWithImplementedSignature,
|
|
30392
|
-
severity:
|
|
30399
|
+
severity: f.Error,
|
|
30393
30400
|
message: `Entity of type '${r.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.
|
|
30394
30401
|
${Wc}`,
|
|
30395
30402
|
issue: null
|
|
@@ -30397,13 +30404,13 @@ ${Wc}`,
|
|
|
30397
30404
|
);
|
|
30398
30405
|
} else if (y) {
|
|
30399
30406
|
const m = o.outputs.find(
|
|
30400
|
-
(
|
|
30407
|
+
(h) => h.declaration.id === i.declaration
|
|
30401
30408
|
);
|
|
30402
30409
|
m && a.push(
|
|
30403
30410
|
new T({
|
|
30404
30411
|
id: `${i.id}--${p.OutputOverwrite}`,
|
|
30405
30412
|
code: p.OutputOverwrite,
|
|
30406
|
-
severity:
|
|
30413
|
+
severity: f.Error,
|
|
30407
30414
|
message: `Entity of type '${r.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 '${m.id}' that points to the same declaration.
|
|
30408
30415
|
Any value reads can be done with that output-map instead.
|
|
30409
30416
|
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.`,
|
|
@@ -30427,7 +30434,7 @@ You can't edit output-map entities as they need to match their return declaratio
|
|
|
30427
30434
|
new T({
|
|
30428
30435
|
id: `${this.id}--${p.InvalidParentUpdate}`,
|
|
30429
30436
|
code: p.InvalidParentUpdate,
|
|
30430
|
-
severity:
|
|
30437
|
+
severity: f.Error,
|
|
30431
30438
|
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.
|
|
30432
30439
|
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.`,
|
|
30433
30440
|
issue: null
|
|
@@ -30666,28 +30673,28 @@ function z8(n) {
|
|
|
30666
30673
|
const a = [];
|
|
30667
30674
|
if (n.id === "company-dto-func-declaration-argument-dcl-id") {
|
|
30668
30675
|
const o = U({
|
|
30669
|
-
id: `${n.id}--${
|
|
30676
|
+
id: `${n.id}--${S.PropertyImplementsNonAbstact}`,
|
|
30670
30677
|
message: `Property "${D(n, n.project)}" with id "${n.id}" implements a non-abstract property "${D(
|
|
30671
30678
|
n,
|
|
30672
30679
|
n.project
|
|
30673
30680
|
)}" with id "${n.id}".`,
|
|
30674
30681
|
issue: null,
|
|
30675
|
-
severity:
|
|
30676
|
-
code:
|
|
30682
|
+
severity: f.Error,
|
|
30683
|
+
code: S.PropertyImplementsNonAbstact,
|
|
30677
30684
|
entity: n
|
|
30678
30685
|
});
|
|
30679
30686
|
a.push(o.error);
|
|
30680
30687
|
}
|
|
30681
30688
|
if (n.id === "manual-hello-world-loop-current-iteration-number-output-map-id") {
|
|
30682
30689
|
const o = U({
|
|
30683
|
-
id: `${n.id}--${
|
|
30690
|
+
id: `${n.id}--${S.PropertyImplementsNonAbstact}`,
|
|
30684
30691
|
message: `Property "${D(n, n.project)}" with id "${n.id}" implements a non-abstract property "${D(
|
|
30685
30692
|
n,
|
|
30686
30693
|
n.project
|
|
30687
30694
|
)}" with id "${n.id}".`,
|
|
30688
30695
|
issue: null,
|
|
30689
|
-
severity:
|
|
30690
|
-
code:
|
|
30696
|
+
severity: f.Error,
|
|
30697
|
+
code: S.PropertyImplementsNonAbstact,
|
|
30691
30698
|
entity: n
|
|
30692
30699
|
});
|
|
30693
30700
|
a.push(o.error);
|
|
@@ -30780,7 +30787,7 @@ const le = class le {
|
|
|
30780
30787
|
Bt.type === r.ArgumentDeclaration && // @ts-ignore
|
|
30781
30788
|
Bt.name === $.name
|
|
30782
30789
|
)
|
|
30783
|
-
)),
|
|
30790
|
+
)), h = (
|
|
30784
30791
|
// @ts-ignore
|
|
30785
30792
|
d.inputs.filter(
|
|
30786
30793
|
// @ts-ignore
|
|
@@ -30789,10 +30796,10 @@ const le = class le {
|
|
|
30789
30796
|
$.type === r.ArgumentDeclaration
|
|
30790
30797
|
)
|
|
30791
30798
|
)
|
|
30792
|
-
), R =
|
|
30799
|
+
), R = h.find(
|
|
30793
30800
|
($) => $.name === i.name
|
|
30794
|
-
), g =
|
|
30795
|
-
|
|
30801
|
+
), g = h.length ? `The parent entity already implements the following arguments: ${_(
|
|
30802
|
+
h.map(
|
|
30796
30803
|
($) => `'${$.id}' (${$.name})`
|
|
30797
30804
|
),
|
|
30798
30805
|
", ",
|
|
@@ -30808,7 +30815,7 @@ const le = class le {
|
|
|
30808
30815
|
new T({
|
|
30809
30816
|
id: `${i.id}--${b.NoOverlapWithImplementedSignature}`,
|
|
30810
30817
|
code: b.NoOverlapWithImplementedSignature,
|
|
30811
|
-
severity:
|
|
30818
|
+
severity: f.Error,
|
|
30812
30819
|
message: `Entity of type '${r.ArgumentDeclaration}' with id '${i.id}' should not exist in a parent entity of type '${d.type}' with id '${d.id}' that implements a ${r.ActionDescriptor} with fixed arguments.
|
|
30813
30820
|
Adding a new argument would make the implementation invalid. An argument with the same name already exists in the parent entity.
|
|
30814
30821
|
${g}
|
|
@@ -30819,7 +30826,7 @@ ${O}`,
|
|
|
30819
30826
|
new T({
|
|
30820
30827
|
id: `${i.id}--${b.NoOverlapWithImplementedSignature}`,
|
|
30821
30828
|
code: b.NoOverlapWithImplementedSignature,
|
|
30822
|
-
severity:
|
|
30829
|
+
severity: f.Error,
|
|
30823
30830
|
message: `Entity of type '${r.ArgumentDeclaration}' with id '${i.id}' should not exist in a parent entity of type '${d.type}' with id '${d.id}' that implements a ${r.ActionDescriptor} with fixed arguments.
|
|
30824
30831
|
Adding a new argument would make the implementation invalid. There are no arguments in the descriptor with the same name.
|
|
30825
30832
|
${g}
|
|
@@ -30832,7 +30839,7 @@ ${O}`,
|
|
|
30832
30839
|
new T({
|
|
30833
30840
|
id: `${i.id}--${b.NoOverlapWithImplementedSignature}`,
|
|
30834
30841
|
code: b.NoOverlapWithImplementedSignature,
|
|
30835
|
-
severity:
|
|
30842
|
+
severity: f.Error,
|
|
30836
30843
|
message: `Entity of type '${r.ArgumentDeclaration}' with id '${i.id}' should not exist in a parent entity of type '${d.type}' with id '${d.id}' that implements a ${r.ActionDescriptor} with no arguments.
|
|
30837
30844
|
Adding a new argument would make the implementation invalid.`,
|
|
30838
30845
|
issue: null
|
|
@@ -30852,7 +30859,7 @@ Adding a new argument would make the implementation invalid.`,
|
|
|
30852
30859
|
new T({
|
|
30853
30860
|
id: `${this.id}--${p.InvalidParentUpdate}`,
|
|
30854
30861
|
code: p.InvalidParentUpdate,
|
|
30855
|
-
severity:
|
|
30862
|
+
severity: f.Error,
|
|
30856
30863
|
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.
|
|
30857
30864
|
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.`,
|
|
30858
30865
|
issue: null
|
|
@@ -30934,8 +30941,8 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
30934
30941
|
i.push(...s.affected), a.push(...s.removed);
|
|
30935
30942
|
}
|
|
30936
30943
|
return {
|
|
30937
|
-
affected:
|
|
30938
|
-
removed:
|
|
30944
|
+
affected: A(i),
|
|
30945
|
+
removed: A(a)
|
|
30939
30946
|
};
|
|
30940
30947
|
}
|
|
30941
30948
|
// Re-add this entity to the state after it was removed
|
|
@@ -30958,7 +30965,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
30958
30965
|
t.push(...i);
|
|
30959
30966
|
}
|
|
30960
30967
|
return {
|
|
30961
|
-
affected:
|
|
30968
|
+
affected: A(t),
|
|
30962
30969
|
self: this
|
|
30963
30970
|
};
|
|
30964
30971
|
}
|
|
@@ -31126,7 +31133,7 @@ function X8(n, e) {
|
|
|
31126
31133
|
new T({
|
|
31127
31134
|
id: `${n.id}--${n.parent}--${p.NewEntityWouldOverriteExisting}`,
|
|
31128
31135
|
code: p.NewEntityWouldOverriteExisting,
|
|
31129
|
-
severity:
|
|
31136
|
+
severity: f.Error,
|
|
31130
31137
|
message: `Entity of type "${n.type}" with id "${n.id}", has a 'parent' of type 'data-type' which already has an existing default value entity with id "${i.defaultValue.id}".
|
|
31131
31138
|
Data types can only have one 'primitive-value' entity as 'defaultValue'.
|
|
31132
31139
|
You can update the existing 'primitive-value' with the 'update' action, for example, like so:
|
|
@@ -31146,7 +31153,7 @@ Or 'delete' and then 'post' actions to replace it.`,
|
|
|
31146
31153
|
new T({
|
|
31147
31154
|
id: `${n.id}--${n.parent}--${p.InvalidParentReference}`,
|
|
31148
31155
|
code: p.InvalidParentReference,
|
|
31149
|
-
severity:
|
|
31156
|
+
severity: f.Error,
|
|
31150
31157
|
message: `Entity of type "${n.type}" with id "${n.id}", has a parent reference that isn't pointing to an entity of type 'input-map' or 'data-type'.`,
|
|
31151
31158
|
issue: null
|
|
31152
31159
|
})
|
|
@@ -31154,7 +31161,7 @@ Or 'delete' and then 'post' actions to replace it.`,
|
|
|
31154
31161
|
new T({
|
|
31155
31162
|
id: `${n.id}--${n.parent}--${p.ReferencedEntityNotFound}`,
|
|
31156
31163
|
code: p.ReferencedEntityNotFound,
|
|
31157
|
-
severity:
|
|
31164
|
+
severity: f.Error,
|
|
31158
31165
|
message: `Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${n.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
|
|
31159
31166
|
issue: null
|
|
31160
31167
|
})
|
|
@@ -31164,7 +31171,7 @@ Or 'delete' and then 'post' actions to replace it.`,
|
|
|
31164
31171
|
new T({
|
|
31165
31172
|
id: `${n.id}--${b.InvalidObjectStructure}`,
|
|
31166
31173
|
code: b.InvalidObjectStructure,
|
|
31167
|
-
severity:
|
|
31174
|
+
severity: f.Error,
|
|
31168
31175
|
message: `Entity of type "${n.type}" with id "${n.id}" is missing a 'parent' reference. The 'parent' of a primitive value entity must be a reference to an entity of type 'input-map' or 'data-type'.`,
|
|
31169
31176
|
issue: null
|
|
31170
31177
|
})
|
|
@@ -31174,7 +31181,7 @@ Or 'delete' and then 'post' actions to replace it.`,
|
|
|
31174
31181
|
new T({
|
|
31175
31182
|
id: `${n.id}--${b.InvalidObjectStructure}`,
|
|
31176
31183
|
code: b.InvalidObjectStructure,
|
|
31177
|
-
severity:
|
|
31184
|
+
severity: f.Error,
|
|
31178
31185
|
message: `Entity of type "${n.type}" with id "${n.id}" is missing a 'parent' reference. The 'parent' of a primitive value entity must be a reference to an entity of type 'input-map' or 'data-type'.`,
|
|
31179
31186
|
issue: null
|
|
31180
31187
|
})
|
|
@@ -31194,7 +31201,7 @@ Or 'delete' and then 'post' actions to replace it.`,
|
|
|
31194
31201
|
new T({
|
|
31195
31202
|
id: `${n.id}--${o}--${p.InvalidImplementsReference}`,
|
|
31196
31203
|
code: p.InvalidImplementsReference,
|
|
31197
|
-
severity:
|
|
31204
|
+
severity: f.Error,
|
|
31198
31205
|
message: `Entity of type "${n.type}" with id "${n.id}", has an 'valueAsType' reference that isn't pointing to an entity of type 'custom-entity', 'function-declaration' or 'operation'.`,
|
|
31199
31206
|
issue: null
|
|
31200
31207
|
})
|
|
@@ -31202,7 +31209,7 @@ Or 'delete' and then 'post' actions to replace it.`,
|
|
|
31202
31209
|
new T({
|
|
31203
31210
|
id: `${n.id}--${o}--${p.ReferencedEntityNotFound}`,
|
|
31204
31211
|
code: p.ReferencedEntityNotFound,
|
|
31205
|
-
severity:
|
|
31212
|
+
severity: f.Error,
|
|
31206
31213
|
message: `Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${o}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
|
|
31207
31214
|
issue: null
|
|
31208
31215
|
})
|
|
@@ -31278,7 +31285,7 @@ const me = class me {
|
|
|
31278
31285
|
new T({
|
|
31279
31286
|
id: `${this.id}--${p.InvalidParentUpdate}`,
|
|
31280
31287
|
code: p.InvalidParentUpdate,
|
|
31281
|
-
severity:
|
|
31288
|
+
severity: f.Error,
|
|
31282
31289
|
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.
|
|
31283
31290
|
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.`,
|
|
31284
31291
|
issue: null
|
|
@@ -31339,8 +31346,8 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
31339
31346
|
affected: [],
|
|
31340
31347
|
removed: []
|
|
31341
31348
|
} : (t.add(this.id), a.push(this), this.unsubscribe(), {
|
|
31342
|
-
affected:
|
|
31343
|
-
removed:
|
|
31349
|
+
affected: A(i),
|
|
31350
|
+
removed: A(a)
|
|
31344
31351
|
});
|
|
31345
31352
|
}
|
|
31346
31353
|
// Re-add this entity to the state after it was removed
|
|
@@ -31528,14 +31535,14 @@ const Te = class Te {
|
|
|
31528
31535
|
*/
|
|
31529
31536
|
static fromGenerationTarget(e, t) {
|
|
31530
31537
|
const i = P(e.parent), a = t.get(i), s = e.calledByEntry.map((m) => {
|
|
31531
|
-
const
|
|
31532
|
-
return t.get(
|
|
31538
|
+
const h = P(m);
|
|
31539
|
+
return t.get(h);
|
|
31533
31540
|
}), o = e.calledBySuccess.map((m) => {
|
|
31534
|
-
const
|
|
31535
|
-
return t.get(
|
|
31541
|
+
const h = P(m);
|
|
31542
|
+
return t.get(h);
|
|
31536
31543
|
}), d = e.calledByError.map((m) => {
|
|
31537
|
-
const
|
|
31538
|
-
return t.get(
|
|
31544
|
+
const h = P(m);
|
|
31545
|
+
return t.get(h);
|
|
31539
31546
|
}), u = {
|
|
31540
31547
|
id: e.id,
|
|
31541
31548
|
version: 1,
|
|
@@ -31595,7 +31602,7 @@ const Te = class Te {
|
|
|
31595
31602
|
new T({
|
|
31596
31603
|
id: `${this.id}--${p.InvalidParentUpdate}`,
|
|
31597
31604
|
code: p.InvalidParentUpdate,
|
|
31598
|
-
severity:
|
|
31605
|
+
severity: f.Error,
|
|
31599
31606
|
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.
|
|
31600
31607
|
If an entity is called by another, they must be in the same scope, which means they have the same parent.
|
|
31601
31608
|
You shouldn't have to manually update a 'parent' property.
|
|
@@ -31715,8 +31722,8 @@ Specifically for continue statements the parent needs to always be the 'loop' en
|
|
|
31715
31722
|
return this.parent.removeContinueStatement(this), e || this.calledBy.forEach((s) => {
|
|
31716
31723
|
i.push(s), s.removeCall(this);
|
|
31717
31724
|
}), {
|
|
31718
|
-
affected:
|
|
31719
|
-
removed:
|
|
31725
|
+
affected: A(i),
|
|
31726
|
+
removed: A(a)
|
|
31720
31727
|
};
|
|
31721
31728
|
}
|
|
31722
31729
|
// Re-add this entity to the state after it was removed
|
|
@@ -31742,7 +31749,7 @@ Specifically for continue statements the parent needs to always be the 'loop' en
|
|
|
31742
31749
|
}), this.calledByEntry.forEach((i) => {
|
|
31743
31750
|
t.push(i), i.addCall(this);
|
|
31744
31751
|
}), {
|
|
31745
|
-
affected:
|
|
31752
|
+
affected: A(t),
|
|
31746
31753
|
self: this
|
|
31747
31754
|
};
|
|
31748
31755
|
}
|
|
@@ -31926,14 +31933,14 @@ const Qe = class Qe {
|
|
|
31926
31933
|
const i = P(e.parent), a = t.get(
|
|
31927
31934
|
i
|
|
31928
31935
|
), s = e.calledByEntry.map((m) => {
|
|
31929
|
-
const
|
|
31930
|
-
return t.get(
|
|
31936
|
+
const h = P(m);
|
|
31937
|
+
return t.get(h);
|
|
31931
31938
|
}), o = e.calledBySuccess.map((m) => {
|
|
31932
|
-
const
|
|
31933
|
-
return t.get(
|
|
31939
|
+
const h = P(m);
|
|
31940
|
+
return t.get(h);
|
|
31934
31941
|
}), d = e.calledByError.map((m) => {
|
|
31935
|
-
const
|
|
31936
|
-
return t.get(
|
|
31942
|
+
const h = P(m);
|
|
31943
|
+
return t.get(h);
|
|
31937
31944
|
}), u = {
|
|
31938
31945
|
id: e.id,
|
|
31939
31946
|
version: 1,
|
|
@@ -31994,7 +32001,7 @@ const Qe = class Qe {
|
|
|
31994
32001
|
new T({
|
|
31995
32002
|
id: `${this.id}--${p.InvalidParentUpdate}`,
|
|
31996
32003
|
code: p.InvalidParentUpdate,
|
|
31997
|
-
severity:
|
|
32004
|
+
severity: f.Error,
|
|
31998
32005
|
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.
|
|
31999
32006
|
If an entity is called by another, they must be in the same scope, which means they have the same parent.
|
|
32000
32007
|
You shouldn't have to manually update a 'parent' property.
|
|
@@ -32114,8 +32121,8 @@ Specifically for return statements the parent needs to always be the 'function-d
|
|
|
32114
32121
|
return this.parent.removeReturnStatement(this), e || this.calledBy.forEach((s) => {
|
|
32115
32122
|
i.push(s), s.removeCall(this);
|
|
32116
32123
|
}), {
|
|
32117
|
-
affected:
|
|
32118
|
-
removed:
|
|
32124
|
+
affected: A(i),
|
|
32125
|
+
removed: A(a)
|
|
32119
32126
|
};
|
|
32120
32127
|
}
|
|
32121
32128
|
// Re-add this entity to the state after it was removed
|
|
@@ -32141,7 +32148,7 @@ Specifically for return statements the parent needs to always be the 'function-d
|
|
|
32141
32148
|
}), this.calledByEntry.forEach((i) => {
|
|
32142
32149
|
t.push(i), i.addCall(this);
|
|
32143
32150
|
}), {
|
|
32144
|
-
affected:
|
|
32151
|
+
affected: A(t),
|
|
32145
32152
|
self: this
|
|
32146
32153
|
};
|
|
32147
32154
|
}
|
|
@@ -32326,14 +32333,14 @@ const Ee = class Ee {
|
|
|
32326
32333
|
*/
|
|
32327
32334
|
static fromGenerationTarget(e, t) {
|
|
32328
32335
|
const i = P(e.parent), a = t.get(i), s = e.calledByEntry.map((m) => {
|
|
32329
|
-
const
|
|
32330
|
-
return t.get(
|
|
32336
|
+
const h = P(m);
|
|
32337
|
+
return t.get(h);
|
|
32331
32338
|
}), o = e.calledBySuccess.map((m) => {
|
|
32332
|
-
const
|
|
32333
|
-
return t.get(
|
|
32339
|
+
const h = P(m);
|
|
32340
|
+
return t.get(h);
|
|
32334
32341
|
}), d = e.calledByError.map((m) => {
|
|
32335
|
-
const
|
|
32336
|
-
return t.get(
|
|
32342
|
+
const h = P(m);
|
|
32343
|
+
return t.get(h);
|
|
32337
32344
|
}), u = {
|
|
32338
32345
|
id: e.id,
|
|
32339
32346
|
version: 1,
|
|
@@ -32393,7 +32400,7 @@ const Ee = class Ee {
|
|
|
32393
32400
|
new T({
|
|
32394
32401
|
id: `${this.id}--${p.InvalidParentUpdate}`,
|
|
32395
32402
|
code: p.InvalidParentUpdate,
|
|
32396
|
-
severity:
|
|
32403
|
+
severity: f.Error,
|
|
32397
32404
|
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.
|
|
32398
32405
|
If an entity is called by another, they must be in the same scope, which means they have the same parent.
|
|
32399
32406
|
You shouldn't have to manually update a 'parent' property.
|
|
@@ -32513,8 +32520,8 @@ Specifically for break statements the parent needs to always be the 'loop' entit
|
|
|
32513
32520
|
return this.parent.removeBreakStatement(this), e || this.calledBy.forEach((s) => {
|
|
32514
32521
|
i.push(s), s.removeCall(this);
|
|
32515
32522
|
}), {
|
|
32516
|
-
affected:
|
|
32517
|
-
removed:
|
|
32523
|
+
affected: A(i),
|
|
32524
|
+
removed: A(a)
|
|
32518
32525
|
};
|
|
32519
32526
|
}
|
|
32520
32527
|
// Re-add this entity to the state after it was removed
|
|
@@ -32540,7 +32547,7 @@ Specifically for break statements the parent needs to always be the 'loop' entit
|
|
|
32540
32547
|
}), this.calledByEntry.forEach((i) => {
|
|
32541
32548
|
t.push(i), i.addCall(this);
|
|
32542
32549
|
}), {
|
|
32543
|
-
affected:
|
|
32550
|
+
affected: A(t),
|
|
32544
32551
|
self: this
|
|
32545
32552
|
};
|
|
32546
32553
|
}
|
|
@@ -32776,7 +32783,7 @@ const ce = class ce {
|
|
|
32776
32783
|
if (y.length) {
|
|
32777
32784
|
let m = y.length > 1 ? `The entity of type '${e.type}' with id '${e.id}' can't be added to the 'parent' entity with id '${d.id}' because it extends or implements multiple '${r.BuiltInBaseEntity}' entities that are non-interactive ("${_(
|
|
32778
32785
|
y.map(
|
|
32779
|
-
(
|
|
32786
|
+
(h) => D(h, h.project)
|
|
32780
32787
|
),
|
|
32781
32788
|
'", "',
|
|
32782
32789
|
'" and "'
|
|
@@ -32789,7 +32796,7 @@ ${xn}`, a.push(
|
|
|
32789
32796
|
new T({
|
|
32790
32797
|
id: `${e.id}--${p.NonInteractiveEntityReferenced}`,
|
|
32791
32798
|
code: p.NonInteractiveEntityReferenced,
|
|
32792
|
-
severity:
|
|
32799
|
+
severity: f.Error,
|
|
32793
32800
|
message: m,
|
|
32794
32801
|
issue: null
|
|
32795
32802
|
})
|
|
@@ -32801,7 +32808,7 @@ ${xn}`, a.push(
|
|
|
32801
32808
|
new T({
|
|
32802
32809
|
id: `${e.id}--${p.NewEntityWouldOverriteExisting}`,
|
|
32803
32810
|
code: p.NewEntityWouldOverriteExisting,
|
|
32804
|
-
severity:
|
|
32811
|
+
severity: f.Error,
|
|
32805
32812
|
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.
|
|
32806
32813
|
You can inspect the existing 'entity' field with the 'describe_entity' action. Like so:
|
|
32807
32814
|
${Xt(
|
|
@@ -32828,7 +32835,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
32828
32835
|
new T({
|
|
32829
32836
|
id: `${this.id}--${p.InvalidParentUpdate}`,
|
|
32830
32837
|
code: p.InvalidParentUpdate,
|
|
32831
|
-
severity:
|
|
32838
|
+
severity: f.Error,
|
|
32832
32839
|
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.
|
|
32833
32840
|
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.`,
|
|
32834
32841
|
issue: null
|
|
@@ -32945,8 +32952,8 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
32945
32952
|
i.push(...s.affected), a.push(...s.removed);
|
|
32946
32953
|
}
|
|
32947
32954
|
return {
|
|
32948
|
-
affected:
|
|
32949
|
-
removed:
|
|
32955
|
+
affected: A(i),
|
|
32956
|
+
removed: A(a)
|
|
32950
32957
|
};
|
|
32951
32958
|
}
|
|
32952
32959
|
// Re-add this entity to the state after it was removed
|
|
@@ -32977,7 +32984,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
32977
32984
|
t.push(...i.affected);
|
|
32978
32985
|
}
|
|
32979
32986
|
return {
|
|
32980
|
-
affected:
|
|
32987
|
+
affected: A(t),
|
|
32981
32988
|
self: this
|
|
32982
32989
|
};
|
|
32983
32990
|
}
|
|
@@ -33108,7 +33115,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
33108
33115
|
), i = [], a = [];
|
|
33109
33116
|
if (this.fixedReturns.length) {
|
|
33110
33117
|
const o = this.fixedReturns.map(
|
|
33111
|
-
(m,
|
|
33118
|
+
(m, h) => {
|
|
33112
33119
|
var g;
|
|
33113
33120
|
const R = {
|
|
33114
33121
|
id: e + "--return-statement--" + m.id + "--parent-ref",
|
|
@@ -33125,7 +33132,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
33125
33132
|
readsValue: null,
|
|
33126
33133
|
required: m.required,
|
|
33127
33134
|
isError: !1,
|
|
33128
|
-
index:
|
|
33135
|
+
index: h,
|
|
33129
33136
|
dataType: ((g = m.dataType) == null ? void 0 : g.toJSON()) || null,
|
|
33130
33137
|
parent: R
|
|
33131
33138
|
};
|
|
@@ -33583,7 +33590,7 @@ const de = class de {
|
|
|
33583
33590
|
new T({
|
|
33584
33591
|
id: `${e.id}--${p.BuiltInEntityParent}`,
|
|
33585
33592
|
code: p.BuiltInEntityParent,
|
|
33586
|
-
severity:
|
|
33593
|
+
severity: f.Error,
|
|
33587
33594
|
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}'.
|
|
33588
33595
|
You can't modify system entities that are built-in.`,
|
|
33589
33596
|
issue: null
|
|
@@ -33592,7 +33599,7 @@ You can't modify system entities that are built-in.`,
|
|
|
33592
33599
|
new T({
|
|
33593
33600
|
id: `${e.id}--${p.InvalidParentRelationType}`,
|
|
33594
33601
|
code: p.InvalidParentRelationType,
|
|
33595
|
-
severity:
|
|
33602
|
+
severity: f.Error,
|
|
33596
33603
|
message: `The entity with id '${e.id}' and type '${e.type}', must have a 'parentRelationType' property set to either '${C.FixedArguments}', '${C.FixedReturns}', or '${C.ReturnedError}' when being added as a child to an entity of type 'action-descriptor'.`,
|
|
33597
33604
|
issue: null
|
|
33598
33605
|
})
|
|
@@ -33600,7 +33607,7 @@ You can't modify system entities that are built-in.`,
|
|
|
33600
33607
|
new T({
|
|
33601
33608
|
id: `${e.id}--${p.NewEntityWouldOverriteExisting}`,
|
|
33602
33609
|
code: p.NewEntityWouldOverriteExisting,
|
|
33603
|
-
severity:
|
|
33610
|
+
severity: f.Error,
|
|
33604
33611
|
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}'.
|
|
33605
33612
|
An action descriptor can only have one error value descriptor child.
|
|
33606
33613
|
Either remove the existing error value descriptor or update it with the 'update' action.
|
|
@@ -33681,8 +33688,8 @@ ${Xt(
|
|
|
33681
33688
|
i.push(...s), a.push(...o);
|
|
33682
33689
|
}
|
|
33683
33690
|
return {
|
|
33684
|
-
affected:
|
|
33685
|
-
removed:
|
|
33691
|
+
affected: A(i),
|
|
33692
|
+
removed: A(a)
|
|
33686
33693
|
};
|
|
33687
33694
|
}
|
|
33688
33695
|
// Re-add this entity to the state after it was removed
|
|
@@ -33699,7 +33706,7 @@ ${Xt(
|
|
|
33699
33706
|
t.push(...i);
|
|
33700
33707
|
}
|
|
33701
33708
|
return {
|
|
33702
|
-
affected:
|
|
33709
|
+
affected: A(t),
|
|
33703
33710
|
self: this
|
|
33704
33711
|
};
|
|
33705
33712
|
}
|
|
@@ -33846,14 +33853,14 @@ function h3(n, e) {
|
|
|
33846
33853
|
new T({
|
|
33847
33854
|
id: `last-generated-entity-payload--${p.MissingTypeProperty}`,
|
|
33848
33855
|
message: "Last generated entity payload is missing a 'type' property.",
|
|
33849
|
-
severity:
|
|
33856
|
+
severity: f.Error,
|
|
33850
33857
|
code: p.MissingTypeProperty,
|
|
33851
33858
|
issue: null
|
|
33852
33859
|
}),
|
|
33853
33860
|
new T({
|
|
33854
33861
|
id: `last-generated-entity-payload--${p.MissingIdProperty}`,
|
|
33855
33862
|
message: "Last generated entity payload is missing an 'id' property.",
|
|
33856
|
-
severity:
|
|
33863
|
+
severity: f.Error,
|
|
33857
33864
|
code: p.MissingIdProperty,
|
|
33858
33865
|
issue: null
|
|
33859
33866
|
})
|
|
@@ -33867,7 +33874,7 @@ function h3(n, e) {
|
|
|
33867
33874
|
new T({
|
|
33868
33875
|
id: `last-generated-entity-payload--${p.MissingIdProperty}`,
|
|
33869
33876
|
message: `Last generated entity, with type "${n.type}" is missing an 'id' property.`,
|
|
33870
|
-
severity:
|
|
33877
|
+
severity: f.Error,
|
|
33871
33878
|
code: p.MissingIdProperty,
|
|
33872
33879
|
issue: null
|
|
33873
33880
|
})
|
|
@@ -33880,7 +33887,7 @@ function h3(n, e) {
|
|
|
33880
33887
|
new T({
|
|
33881
33888
|
id: `${n.id}--${p.MissingTypeProperty}`,
|
|
33882
33889
|
message: `Entity with id "${n.id}" is missing a 'type' property.`,
|
|
33883
|
-
severity:
|
|
33890
|
+
severity: f.Error,
|
|
33884
33891
|
code: p.MissingTypeProperty,
|
|
33885
33892
|
issue: null
|
|
33886
33893
|
})
|
|
@@ -33893,7 +33900,7 @@ function h3(n, e) {
|
|
|
33893
33900
|
new T({
|
|
33894
33901
|
id: `${n.id}--${p.RootReference}`,
|
|
33895
33902
|
message: `Generic reference entity with id "${n.id}". A generic reference cannot be generated as a standalone entity. Only in the body of another entity.`,
|
|
33896
|
-
severity:
|
|
33903
|
+
severity: f.Error,
|
|
33897
33904
|
code: p.RootReference,
|
|
33898
33905
|
issue: null
|
|
33899
33906
|
})
|
|
@@ -33914,7 +33921,7 @@ If you are trying to create a new entity, please use a different id, for example
|
|
|
33914
33921
|
new T({
|
|
33915
33922
|
id: `duplicate--${t.id}--${p.EntityIdNotUnique}`,
|
|
33916
33923
|
message: s,
|
|
33917
|
-
severity:
|
|
33924
|
+
severity: f.Error,
|
|
33918
33925
|
code: p.EntityIdNotUnique,
|
|
33919
33926
|
issue: null
|
|
33920
33927
|
})
|
|
@@ -33930,7 +33937,7 @@ If you are trying to create a new entity, please use a different id, for example
|
|
|
33930
33937
|
t,
|
|
33931
33938
|
e
|
|
33932
33939
|
)}".`,
|
|
33933
|
-
severity:
|
|
33940
|
+
severity: f.Error,
|
|
33934
33941
|
code: p.EntityIdNotUnique,
|
|
33935
33942
|
issue: null
|
|
33936
33943
|
})
|
|
@@ -34072,7 +34079,7 @@ If you are trying to create a new entity, please use a different id, for example
|
|
|
34072
34079
|
id: `${t.id}--${p.BuiltInEntityGenerated}`,
|
|
34073
34080
|
message: `Entity with id "${t.id} is of "${t.type}" type and should not be generated. Built in entities can only be referenced by user created entities.
|
|
34074
34081
|
${d}`,
|
|
34075
|
-
severity:
|
|
34082
|
+
severity: f.Error,
|
|
34076
34083
|
code: p.BuiltInEntityGenerated,
|
|
34077
34084
|
issue: null
|
|
34078
34085
|
})
|
|
@@ -34088,7 +34095,7 @@ ${d}`,
|
|
|
34088
34095
|
new T({
|
|
34089
34096
|
id: `${s.id}--${p.UnknownEntityType}`,
|
|
34090
34097
|
message: `Incorrect entity implementation for entity with id "${s.id}". Entity type "${s.type}" is not supported.`,
|
|
34091
|
-
severity:
|
|
34098
|
+
severity: f.Error,
|
|
34092
34099
|
code: p.UnknownEntityType,
|
|
34093
34100
|
issue: null
|
|
34094
34101
|
})
|
|
@@ -34134,7 +34141,7 @@ function f3(n, e) {
|
|
|
34134
34141
|
new T({
|
|
34135
34142
|
id: `${e.id}--${p.BuiltInEntityGenerated}`,
|
|
34136
34143
|
message: `Entity with id "${e.id} is of "${e.type}" type and should not be updated. Built in entities can only be referenced by user created entities.`,
|
|
34137
|
-
severity:
|
|
34144
|
+
severity: f.Error,
|
|
34138
34145
|
code: p.BuiltInEntityGenerated,
|
|
34139
34146
|
issue: null
|
|
34140
34147
|
})
|
|
@@ -34142,7 +34149,7 @@ function f3(n, e) {
|
|
|
34142
34149
|
new T({
|
|
34143
34150
|
id: `last-action--${p.InvalidUpdateEntityOperation}`,
|
|
34144
34151
|
code: p.InvalidUpdateEntityOperation,
|
|
34145
|
-
severity:
|
|
34152
|
+
severity: f.Error,
|
|
34146
34153
|
message: `The 'id' property cannot be updated in the 'update' action payload. The id of the entity is '${n.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'.`,
|
|
34147
34154
|
issue: null
|
|
34148
34155
|
})
|
|
@@ -34150,7 +34157,7 @@ function f3(n, e) {
|
|
|
34150
34157
|
new T({
|
|
34151
34158
|
id: `last-action--${p.InvalidUpdateEntityOperation}`,
|
|
34152
34159
|
code: p.InvalidUpdateEntityOperation,
|
|
34153
|
-
severity:
|
|
34160
|
+
severity: f.Error,
|
|
34154
34161
|
message: `The 'type' property cannot be updated in the 'update' action payload. The type of the entity is '${e.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'.`,
|
|
34155
34162
|
issue: null
|
|
34156
34163
|
})
|
|
@@ -34165,7 +34172,7 @@ function f3(n, e) {
|
|
|
34165
34172
|
id: `${e.id}--${p.InvalidInmutablePropertyOverride}`,
|
|
34166
34173
|
message: `Entity of type "${e.type}" with id "${e.id}" cannot have the property "calls" updated.
|
|
34167
34174
|
${Cn}`,
|
|
34168
|
-
severity:
|
|
34175
|
+
severity: f.Error,
|
|
34169
34176
|
code: p.InvalidInmutablePropertyOverride,
|
|
34170
34177
|
issue: null
|
|
34171
34178
|
})
|
|
@@ -34174,7 +34181,7 @@ ${Cn}`,
|
|
|
34174
34181
|
id: `${e.id}--${p.InvalidInmutablePropertyOverride}`,
|
|
34175
34182
|
message: `Entity of type "${e.type}" with id "${e.id}" cannot have the property "successCalls" updated.
|
|
34176
34183
|
${Cn}`,
|
|
34177
|
-
severity:
|
|
34184
|
+
severity: f.Error,
|
|
34178
34185
|
code: p.InvalidInmutablePropertyOverride,
|
|
34179
34186
|
issue: null
|
|
34180
34187
|
})
|
|
@@ -34183,7 +34190,7 @@ ${Cn}`,
|
|
|
34183
34190
|
id: `${e.id}--${p.InvalidInmutablePropertyOverride}`,
|
|
34184
34191
|
message: `Entity of type "${e.type}" with id "${e.id}" cannot have the property "errorCalls" updated.
|
|
34185
34192
|
${Cn}`,
|
|
34186
|
-
severity:
|
|
34193
|
+
severity: f.Error,
|
|
34187
34194
|
code: p.InvalidInmutablePropertyOverride,
|
|
34188
34195
|
issue: null
|
|
34189
34196
|
})
|
|
@@ -34192,7 +34199,7 @@ ${Cn}`,
|
|
|
34192
34199
|
id: `${e.id}--${p.InvalidInmutablePropertyOverride}`,
|
|
34193
34200
|
message: `Entity of type "${e.type}" with id "${e.id}" cannot have the property "calledBy" updated.
|
|
34194
34201
|
${Cn}`,
|
|
34195
|
-
severity:
|
|
34202
|
+
severity: f.Error,
|
|
34196
34203
|
code: p.InvalidInmutablePropertyOverride,
|
|
34197
34204
|
issue: null
|
|
34198
34205
|
})
|
|
@@ -34201,7 +34208,7 @@ ${Cn}`,
|
|
|
34201
34208
|
id: `${e.id}--${p.InvalidInmutablePropertyOverride}`,
|
|
34202
34209
|
message: `Entity of type "${e.type}" with id "${e.id}" cannot have the property "calledByEntry" updated.
|
|
34203
34210
|
${Cn}`,
|
|
34204
|
-
severity:
|
|
34211
|
+
severity: f.Error,
|
|
34205
34212
|
code: p.InvalidInmutablePropertyOverride,
|
|
34206
34213
|
issue: null
|
|
34207
34214
|
})
|
|
@@ -34210,7 +34217,7 @@ ${Cn}`,
|
|
|
34210
34217
|
id: `${e.id}--${p.InvalidInmutablePropertyOverride}`,
|
|
34211
34218
|
message: `Entity of type "${e.type}" with id "${e.id}" cannot have the property "calledBySuccess" updated.
|
|
34212
34219
|
${Cn}`,
|
|
34213
|
-
severity:
|
|
34220
|
+
severity: f.Error,
|
|
34214
34221
|
code: p.InvalidInmutablePropertyOverride,
|
|
34215
34222
|
issue: null
|
|
34216
34223
|
})
|
|
@@ -34219,7 +34226,7 @@ ${Cn}`,
|
|
|
34219
34226
|
id: `${e.id}--${p.InvalidInmutablePropertyOverride}`,
|
|
34220
34227
|
message: `Entity of type "${e.type}" with id "${e.id}" cannot have the property "calledByError" updated.
|
|
34221
34228
|
${Cn}`,
|
|
34222
|
-
severity:
|
|
34229
|
+
severity: f.Error,
|
|
34223
34230
|
code: p.InvalidInmutablePropertyOverride,
|
|
34224
34231
|
issue: null
|
|
34225
34232
|
})
|
|
@@ -34240,7 +34247,7 @@ ${Cn}`,
|
|
|
34240
34247
|
id: `${e.id}--${p.InvalidInmutablePropertyOverride}`,
|
|
34241
34248
|
message: `Entity of type "${e.type}" with id "${e.id}" cannot have the property "${k}" updated. It is an inmutable property that is set only when the entity is created.
|
|
34242
34249
|
If you need to update this property, you should delete the entity and create a new one with the updated value.`,
|
|
34243
|
-
severity:
|
|
34250
|
+
severity: f.Error,
|
|
34244
34251
|
code: p.InvalidInmutablePropertyOverride,
|
|
34245
34252
|
issue: null
|
|
34246
34253
|
})
|
|
@@ -34255,7 +34262,7 @@ If you need to update this property, you should delete the entity and create a n
|
|
|
34255
34262
|
message: `Entity of type "${e.type}" with id "${e.id}" cannot have the property "${k}" set directly. It is a downstream property that points to a downstream nested entity.
|
|
34256
34263
|
All downstream references are managed by the downstream entity. Entities only manage their own upstream references.
|
|
34257
34264
|
To modify '${k}', target the entity that it points to and its equivalent property.`,
|
|
34258
|
-
severity:
|
|
34265
|
+
severity: f.Error,
|
|
34259
34266
|
code: p.InvalidDownstreamPropertyOverride,
|
|
34260
34267
|
issue: null
|
|
34261
34268
|
})
|
|
@@ -34269,7 +34276,7 @@ To modify '${k}', target the entity that it points to and its equivalent propert
|
|
|
34269
34276
|
id: `${e.id}--${p.InvalidInmutablePropertyOverride}`,
|
|
34270
34277
|
message: `Entity of type "${e.type}" with id "${e.id}" cannot have the property "${k}" updated. It is an inmutable property that is set only when the entity is created.
|
|
34271
34278
|
If you need to update this property, you should delete the entity and create a new one with the updated value.`,
|
|
34272
|
-
severity:
|
|
34279
|
+
severity: f.Error,
|
|
34273
34280
|
code: p.InvalidInmutablePropertyOverride,
|
|
34274
34281
|
issue: null
|
|
34275
34282
|
})
|
|
@@ -34281,7 +34288,7 @@ If you need to update this property, you should delete the entity and create a n
|
|
|
34281
34288
|
new T({
|
|
34282
34289
|
id: `${e.id}--${p.UnrecognizedProperty}`,
|
|
34283
34290
|
message: `Entity of type "${e.type}" with id "${e.id}" has an unrecognized property "${k}" that will be ignored.`,
|
|
34284
|
-
severity:
|
|
34291
|
+
severity: f.Warning,
|
|
34285
34292
|
code: p.UnrecognizedProperty,
|
|
34286
34293
|
issue: null
|
|
34287
34294
|
})
|
|
@@ -34308,13 +34315,13 @@ If you need to update this property, you should delete the entity and create a n
|
|
|
34308
34315
|
modifiedData: null,
|
|
34309
34316
|
messageAddition: i ? _s(e) : ""
|
|
34310
34317
|
};
|
|
34311
|
-
const
|
|
34318
|
+
const h = (
|
|
34312
34319
|
// @ts-ignore
|
|
34313
34320
|
e.validateGeneratedUpdate(n)
|
|
34314
34321
|
);
|
|
34315
34322
|
return {
|
|
34316
|
-
errors: [...t, ...
|
|
34317
|
-
modifiedData:
|
|
34323
|
+
errors: [...t, ...h.errors],
|
|
34324
|
+
modifiedData: h.modifiedData,
|
|
34318
34325
|
messageAddition: i ? _s(e) : ""
|
|
34319
34326
|
};
|
|
34320
34327
|
}
|
|
@@ -34444,7 +34451,7 @@ function uc(n) {
|
|
|
34444
34451
|
new T({
|
|
34445
34452
|
id: `${n}--${p.InvalidReferenceObjectStructure}`,
|
|
34446
34453
|
message: `Reference object with id "${n}" is not an object. References should be objects with exactly 4 properties: 'entityId', 'entityType', 'id', and 'type'.`,
|
|
34447
|
-
severity:
|
|
34454
|
+
severity: f.Error,
|
|
34448
34455
|
code: p.InvalidReferenceObjectStructure,
|
|
34449
34456
|
issue: null
|
|
34450
34457
|
})
|
|
@@ -34454,7 +34461,7 @@ function uc(n) {
|
|
|
34454
34461
|
new T({
|
|
34455
34462
|
id: `${t}--${p.InvalidReferenceObjectStructure}`,
|
|
34456
34463
|
message: `${i} is missing an 'entityId' property.`,
|
|
34457
|
-
severity:
|
|
34464
|
+
severity: f.Error,
|
|
34458
34465
|
code: p.InvalidReferenceObjectStructure,
|
|
34459
34466
|
issue: null
|
|
34460
34467
|
})
|
|
@@ -34462,7 +34469,7 @@ function uc(n) {
|
|
|
34462
34469
|
new T({
|
|
34463
34470
|
id: `${t}--${p.InvalidReferenceObjectStructure}`,
|
|
34464
34471
|
message: `${i} is missing an 'entityType' property.`,
|
|
34465
|
-
severity:
|
|
34472
|
+
severity: f.Error,
|
|
34466
34473
|
code: p.InvalidReferenceObjectStructure,
|
|
34467
34474
|
issue: null
|
|
34468
34475
|
})
|
|
@@ -34470,7 +34477,7 @@ function uc(n) {
|
|
|
34470
34477
|
new T({
|
|
34471
34478
|
id: `${t}--${p.MissingIdProperty}`,
|
|
34472
34479
|
message: `${i} is missing an 'id' property.`,
|
|
34473
|
-
severity:
|
|
34480
|
+
severity: f.Error,
|
|
34474
34481
|
code: p.MissingIdProperty,
|
|
34475
34482
|
issue: null
|
|
34476
34483
|
})
|
|
@@ -34478,7 +34485,7 @@ function uc(n) {
|
|
|
34478
34485
|
new T({
|
|
34479
34486
|
id: `${t}--${p.MissingTypeProperty}`,
|
|
34480
34487
|
message: `${i} is missing a 'type' property.`,
|
|
34481
|
-
severity:
|
|
34488
|
+
severity: f.Error,
|
|
34482
34489
|
code: p.MissingTypeProperty,
|
|
34483
34490
|
issue: null
|
|
34484
34491
|
})
|
|
@@ -34489,7 +34496,7 @@ function bf(n, e) {
|
|
|
34489
34496
|
(t) => new T({
|
|
34490
34497
|
id: `${n.id}--${b.InvalidObjectStructure}`,
|
|
34491
34498
|
message: `Entity of type "${n.type}" and with id "${n.id}", has an invalid structure: ${wF(t).toString().replace("Validation error: ", "")}`,
|
|
34492
|
-
severity:
|
|
34499
|
+
severity: f.Error,
|
|
34493
34500
|
code: b.InvalidObjectStructure,
|
|
34494
34501
|
issue: t
|
|
34495
34502
|
})
|
|
@@ -34511,7 +34518,7 @@ function Ae(n, e) {
|
|
|
34511
34518
|
message: `Entity of type "${n.type}" with id "${n.id}" cannot have the property "${d}" set directly. It is a downstream property that points to a downstream nested entity.
|
|
34512
34519
|
All downstream references are managed by the downstream entity. Entities only manage their own upstream references.
|
|
34513
34520
|
To modify '${d}', target the entity that it points to and its equivalent property.`,
|
|
34514
|
-
severity:
|
|
34521
|
+
severity: f.Error,
|
|
34515
34522
|
code: p.InvalidDownstreamPropertyOverride,
|
|
34516
34523
|
issue: null
|
|
34517
34524
|
})
|
|
@@ -34523,7 +34530,7 @@ To modify '${d}', target the entity that it points to and its equivalent propert
|
|
|
34523
34530
|
new T({
|
|
34524
34531
|
id: `${n.id}--${p.UnrecognizedProperty}`,
|
|
34525
34532
|
message: `Entity of type "${n.type}" with id "${n.id}" has an unrecognized property "${d}" that will be ignored.`,
|
|
34526
|
-
severity:
|
|
34533
|
+
severity: f.Warning,
|
|
34527
34534
|
code: p.UnrecognizedProperty,
|
|
34528
34535
|
issue: null
|
|
34529
34536
|
})
|
|
@@ -34543,7 +34550,7 @@ function m3(n, e) {
|
|
|
34543
34550
|
new T({
|
|
34544
34551
|
id: `${n.id}--${p.BuiltInEntityParent}`,
|
|
34545
34552
|
message: `Entity of type "${n.type}" with id "${n.id}" cannot have the parent with id "${i.id}", because it is a built in entity. Built in entities cannot be modified.`,
|
|
34546
|
-
severity:
|
|
34553
|
+
severity: f.Error,
|
|
34547
34554
|
code: p.BuiltInEntityParent,
|
|
34548
34555
|
issue: null
|
|
34549
34556
|
})
|
|
@@ -34553,7 +34560,7 @@ function m3(n, e) {
|
|
|
34553
34560
|
new T({
|
|
34554
34561
|
id: `${n.id}--${p.BuiltInEntityParent}`,
|
|
34555
34562
|
message: `Entity of type "${n.type}" with id "${n.id}" cannot have the parent with id "${i.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.`,
|
|
34556
|
-
severity:
|
|
34563
|
+
severity: f.Error,
|
|
34557
34564
|
code: p.BuiltInEntityParent,
|
|
34558
34565
|
issue: null
|
|
34559
34566
|
})
|
|
@@ -34570,7 +34577,7 @@ function vf(n, e, t) {
|
|
|
34570
34577
|
", ",
|
|
34571
34578
|
" or "
|
|
34572
34579
|
)}.`,
|
|
34573
|
-
severity:
|
|
34580
|
+
severity: f.Error,
|
|
34574
34581
|
code: b.InvalidObjectStructure,
|
|
34575
34582
|
issue: null
|
|
34576
34583
|
})
|
|
@@ -34589,7 +34596,7 @@ function vf(n, e, t) {
|
|
|
34589
34596
|
new T({
|
|
34590
34597
|
id: `${n.id}--${s}--${p.SelfReference}`,
|
|
34591
34598
|
message: `Entity of type "${n.type}" with id "${n.id}", has a reference to itself at '${e.key}'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,
|
|
34592
|
-
severity:
|
|
34599
|
+
severity: f.Error,
|
|
34593
34600
|
code: p.SelfReference,
|
|
34594
34601
|
issue: null
|
|
34595
34602
|
})
|
|
@@ -34603,7 +34610,7 @@ function vf(n, e, t) {
|
|
|
34603
34610
|
"', '",
|
|
34604
34611
|
"' or '"
|
|
34605
34612
|
)}'.`,
|
|
34606
|
-
severity:
|
|
34613
|
+
severity: f.Error,
|
|
34607
34614
|
code: p.InvalidReference,
|
|
34608
34615
|
issue: null
|
|
34609
34616
|
})
|
|
@@ -34611,7 +34618,7 @@ function vf(n, e, t) {
|
|
|
34611
34618
|
new T({
|
|
34612
34619
|
id: `${n.id}--${s}--${p.ReferencedEntityNotFound}`,
|
|
34613
34620
|
message: `Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${s}" at '${e.key}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
|
|
34614
|
-
severity:
|
|
34621
|
+
severity: f.Error,
|
|
34615
34622
|
code: p.ReferencedEntityNotFound,
|
|
34616
34623
|
issue: null
|
|
34617
34624
|
})
|
|
@@ -34634,7 +34641,7 @@ function Ns(n, e, t) {
|
|
|
34634
34641
|
new T({
|
|
34635
34642
|
id: `${n.id}--${e}--${p.InvalidReference}`,
|
|
34636
34643
|
message: `Entity of type "${n.type}" with id "${n.id}", has a missing reference at '${e}'. A reference needs to be a 'id' string of an existing entity in the project.`,
|
|
34637
|
-
severity:
|
|
34644
|
+
severity: f.Error,
|
|
34638
34645
|
code: p.InvalidReference,
|
|
34639
34646
|
issue: null
|
|
34640
34647
|
})
|
|
@@ -34645,7 +34652,7 @@ function Ns(n, e, t) {
|
|
|
34645
34652
|
new T({
|
|
34646
34653
|
id: `${n.id}--${d}--${p.ReferencedEntityNotFound}`,
|
|
34647
34654
|
message: `Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${d}" at '${e}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
|
|
34648
|
-
severity:
|
|
34655
|
+
severity: f.Error,
|
|
34649
34656
|
code: p.ReferencedEntityNotFound,
|
|
34650
34657
|
issue: null
|
|
34651
34658
|
})
|
|
@@ -34654,7 +34661,7 @@ function Ns(n, e, t) {
|
|
|
34654
34661
|
new T({
|
|
34655
34662
|
id: `${n.id}--${e}--${b.InvalidObjectStructure}`,
|
|
34656
34663
|
message: `Entity of type "${n.type}" with id "${n.id}" has an invalid structure for the "${e}" property. It should be an array of references.`,
|
|
34657
|
-
severity:
|
|
34664
|
+
severity: f.Error,
|
|
34658
34665
|
code: b.InvalidObjectStructure,
|
|
34659
34666
|
issue: null
|
|
34660
34667
|
})
|
|
@@ -34662,7 +34669,7 @@ function Ns(n, e, t) {
|
|
|
34662
34669
|
new T({
|
|
34663
34670
|
id: `${n.id}--${e}--${b.InvalidObjectStructure}`,
|
|
34664
34671
|
message: `Entity of type "${n.type}" with id "${n.id}" is missing a list of references to "${e}" entities.`,
|
|
34665
|
-
severity:
|
|
34672
|
+
severity: f.Error,
|
|
34666
34673
|
code: b.InvalidObjectStructure,
|
|
34667
34674
|
issue: null
|
|
34668
34675
|
})
|
|
@@ -34678,7 +34685,7 @@ function qc(n, e, t) {
|
|
|
34678
34685
|
new T({
|
|
34679
34686
|
id: `${n.id}--${s.id}--${p.InvalidReference}`,
|
|
34680
34687
|
code: p.InvalidReference,
|
|
34681
|
-
severity:
|
|
34688
|
+
severity: f.Error,
|
|
34682
34689
|
message: `Entity of type "${n.type}" with id "${n.id}", has a reference to "${e.key}" that isn't pointing to an entity of type '${_(
|
|
34683
34690
|
e.types,
|
|
34684
34691
|
"', '",
|
|
@@ -34690,7 +34697,7 @@ function qc(n, e, t) {
|
|
|
34690
34697
|
new T({
|
|
34691
34698
|
id: `${n.id}--${s.id}--${p.SelfReference}`,
|
|
34692
34699
|
code: p.SelfReference,
|
|
34693
|
-
severity:
|
|
34700
|
+
severity: f.Error,
|
|
34694
34701
|
message: `Entity of type "${n.type}" with id "${n.id}", has a reference to itself at '${e.key}'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,
|
|
34695
34702
|
issue: null
|
|
34696
34703
|
})
|
|
@@ -34812,7 +34819,7 @@ function o6(n, e) {
|
|
|
34812
34819
|
new T({
|
|
34813
34820
|
id: `${n.id}--${e.id}--${p.InvalidReference}`,
|
|
34814
34821
|
code: p.InvalidReference,
|
|
34815
|
-
severity:
|
|
34822
|
+
severity: f.Warning,
|
|
34816
34823
|
message: `Entity of type "${n.type}" with id "${n.id}", has a reference to an entry-point entity at 'calledBySuccess' with id "${e.id}".
|
|
34817
34824
|
Entry-point entities can only be referenced as 'calledByEntry'.
|
|
34818
34825
|
${Ts}
|
|
@@ -34836,7 +34843,7 @@ This ${e.type} is called by ${_(
|
|
|
34836
34843
|
new T({
|
|
34837
34844
|
id: `${n.id}--${e.id}--${p.InvalidReference}`,
|
|
34838
34845
|
code: p.InvalidReference,
|
|
34839
|
-
severity:
|
|
34846
|
+
severity: f.Error,
|
|
34840
34847
|
message: `Entity of type "${n.type}" with id "${n.id}", has a reference to a '${e.type}' entity at 'calledBySuccess' with id "${e.id}".
|
|
34841
34848
|
${e.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
|
|
34842
34849
|
Termination entities are ${_(
|
|
@@ -34852,7 +34859,7 @@ Termination entities are ${_(
|
|
|
34852
34859
|
new T({
|
|
34853
34860
|
id: `${n.id}--${e.id}--${p.InvalidReference}`,
|
|
34854
34861
|
code: p.InvalidReference,
|
|
34855
|
-
severity:
|
|
34862
|
+
severity: f.Error,
|
|
34856
34863
|
message: `Entity of type "${n.type}" with id "${n.id}", has a reference to a caller entity at 'calledBySuccess' with id "${e.id}" that isn't a pass-through callable entity.
|
|
34857
34864
|
${Nn}`,
|
|
34858
34865
|
issue: null
|
|
@@ -34863,7 +34870,7 @@ ${Nn}`,
|
|
|
34863
34870
|
new T({
|
|
34864
34871
|
id: `${n.id}--${e.id}--${p.InvalidReference}`,
|
|
34865
34872
|
code: p.InvalidReference,
|
|
34866
|
-
severity:
|
|
34873
|
+
severity: f.Error,
|
|
34867
34874
|
message: `Entity of type "${n.type}" with id "${n.id}", has a reference to a caller entity at 'calledBySuccess' with id "${e.id}" that isn't a caller entity.
|
|
34868
34875
|
All caller entity types are: ${_(
|
|
34869
34876
|
yn,
|
|
@@ -34884,7 +34891,7 @@ function l6(n, e) {
|
|
|
34884
34891
|
new T({
|
|
34885
34892
|
id: `${n.id}--${e.id}--${p.InvalidReference}`,
|
|
34886
34893
|
code: p.InvalidReference,
|
|
34887
|
-
severity:
|
|
34894
|
+
severity: f.Error,
|
|
34888
34895
|
message: `Entity of type "${n.type}" with id "${n.id}", has a reference to an entry-point entity at 'calledByError' with id "${e.id}".
|
|
34889
34896
|
Entry-point entities can only be referenced as 'calledByEntry'.
|
|
34890
34897
|
${Ts}`,
|
|
@@ -34905,7 +34912,7 @@ This ${e.type} is called by ${_(
|
|
|
34905
34912
|
new T({
|
|
34906
34913
|
id: `${n.id}--${e.id}--${p.InvalidReference}`,
|
|
34907
34914
|
code: p.InvalidReference,
|
|
34908
|
-
severity:
|
|
34915
|
+
severity: f.Error,
|
|
34909
34916
|
message: `Entity of type "${n.type}" with id "${n.id}", has a reference to a '${e.type}' entity at 'calledByError' with id "${e.id}".
|
|
34910
34917
|
${e.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
|
|
34911
34918
|
Termination entities are ${_(
|
|
@@ -34921,7 +34928,7 @@ Termination entities are ${_(
|
|
|
34921
34928
|
new T({
|
|
34922
34929
|
id: `${n.id}--${e.id}--${p.InvalidReference}`,
|
|
34923
34930
|
code: p.InvalidReference,
|
|
34924
|
-
severity:
|
|
34931
|
+
severity: f.Error,
|
|
34925
34932
|
message: `Entity of type "${n.type}" with id "${n.id}", has a reference to a caller entity at 'calledByError' with id "${e.id}" that isn't a pass-through callable entity.
|
|
34926
34933
|
${Nn}`,
|
|
34927
34934
|
issue: null
|
|
@@ -34932,7 +34939,7 @@ ${Nn}`,
|
|
|
34932
34939
|
new T({
|
|
34933
34940
|
id: `${n.id}--${e.id}--${p.InvalidReference}`,
|
|
34934
34941
|
code: p.InvalidReference,
|
|
34935
|
-
severity:
|
|
34942
|
+
severity: f.Error,
|
|
34936
34943
|
message: `Entity of type "${n.type}" with id "${n.id}", has a reference to a caller entity at 'calledByError' with id "${e.id}" that isn't a caller entity.
|
|
34937
34944
|
All caller entity types are: ${_(
|
|
34938
34945
|
yn,
|
|
@@ -34962,7 +34969,7 @@ This ${e.type} is called by ${_(
|
|
|
34962
34969
|
new T({
|
|
34963
34970
|
id: `${n.id}--${e.id}--${p.InvalidReference}`,
|
|
34964
34971
|
code: p.InvalidReference,
|
|
34965
|
-
severity:
|
|
34972
|
+
severity: f.Error,
|
|
34966
34973
|
message: `Entity of type "${n.type}" with id "${n.id}", has a reference to a '${e.type}' entity at 'calledByEntry' with id "${e.id}".
|
|
34967
34974
|
${e.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
|
|
34968
34975
|
Termination entities are ${_(
|
|
@@ -34978,7 +34985,7 @@ Termination entities are ${_(
|
|
|
34978
34985
|
new T({
|
|
34979
34986
|
id: `${n.id}--${e.id}--${p.InvalidReference}`,
|
|
34980
34987
|
code: p.InvalidReference,
|
|
34981
|
-
severity:
|
|
34988
|
+
severity: f.Warning,
|
|
34982
34989
|
message: `Entity of type "${n.type}" with id "${n.id}", has a reference to a caller entity at 'calledByEntry' with id "${e.id}" that is a pass-through callable entity, not an entry-point entity.
|
|
34983
34990
|
${Nn}.
|
|
34984
34991
|
${Ts}.
|
|
@@ -34992,7 +34999,7 @@ We have moved the reference to 'calledBySuccess' for you.`,
|
|
|
34992
34999
|
new T({
|
|
34993
35000
|
id: `${n.id}--${e.id}--${p.InvalidReference}`,
|
|
34994
35001
|
code: p.InvalidReference,
|
|
34995
|
-
severity:
|
|
35002
|
+
severity: f.Error,
|
|
34996
35003
|
message: `Entity of type "${n.type}" with id "${n.id}", has a reference to a caller entity at 'calledByEntry' with id "${e.id}" that isn't a caller entity.
|
|
34997
35004
|
All caller entity types are: ${_(
|
|
34998
35005
|
yn,
|
|
@@ -35077,7 +35084,7 @@ function d6(n, e) {
|
|
|
35077
35084
|
new T({
|
|
35078
35085
|
id: `${i.id}--${p.DuplicateReference}`,
|
|
35079
35086
|
code: p.DuplicateReference,
|
|
35080
|
-
severity:
|
|
35087
|
+
severity: f.Warning,
|
|
35081
35088
|
message: `Entity of type "${i.type}" with id "${i.id}" has duplicate caller references. Each caller reference should be unique. Duplicate caller reference will be ignored.`,
|
|
35082
35089
|
issue: null
|
|
35083
35090
|
})
|
|
@@ -35087,7 +35094,7 @@ function d6(n, e) {
|
|
|
35087
35094
|
new T({
|
|
35088
35095
|
id: `${i.id}--${p.IncompatibleScope}`,
|
|
35089
35096
|
code: p.IncompatibleScope,
|
|
35090
|
-
severity:
|
|
35097
|
+
severity: f.Error,
|
|
35091
35098
|
message: `Entity of type "${i.type}" with id "${i.id}" has an explicitly set parent, but it isn't a '${_(
|
|
35092
35099
|
xe,
|
|
35093
35100
|
"', '",
|
|
@@ -35099,7 +35106,7 @@ function d6(n, e) {
|
|
|
35099
35106
|
new T({
|
|
35100
35107
|
id: `${i.id}--${p.IncompatibleScope}`,
|
|
35101
35108
|
code: p.IncompatibleScope,
|
|
35102
|
-
severity:
|
|
35109
|
+
severity: f.Error,
|
|
35103
35110
|
message: `Entity of type "${i.type}" with id "${i.id}" has an explicitly set parent, but it isn't a '${r.Loop}' entity. A continue statement's parent should always be resolved to a loop entity.${xs}`,
|
|
35104
35111
|
issue: null
|
|
35105
35112
|
})
|
|
@@ -35107,7 +35114,7 @@ function d6(n, e) {
|
|
|
35107
35114
|
new T({
|
|
35108
35115
|
id: `${i.id}--${p.IncompatibleScope}`,
|
|
35109
35116
|
code: p.IncompatibleScope,
|
|
35110
|
-
severity:
|
|
35117
|
+
severity: f.Error,
|
|
35111
35118
|
message: `Entity of type "${i.type}" with id "${i.id}" has an explicitly set parent, but it isn't a '${r.Loop}' entity. A break statement's parent should always be resolved to a loop entity.${xs}`,
|
|
35112
35119
|
issue: null
|
|
35113
35120
|
})
|
|
@@ -35115,76 +35122,76 @@ function d6(n, e) {
|
|
|
35115
35122
|
const d = [], u = [];
|
|
35116
35123
|
let y = null;
|
|
35117
35124
|
if (s.forEach((m) => {
|
|
35118
|
-
const
|
|
35119
|
-
if (!
|
|
35125
|
+
const h = e.get(m);
|
|
35126
|
+
if (!h) {
|
|
35120
35127
|
t.push(
|
|
35121
35128
|
new T({
|
|
35122
35129
|
id: `${i.id}--${m}--${p.ReferencedEntityNotFound}`,
|
|
35123
35130
|
code: p.ReferencedEntityNotFound,
|
|
35124
|
-
severity:
|
|
35131
|
+
severity: f.Error,
|
|
35125
35132
|
message: `Entity of type "${n.type}" with id "${n.id}", has a reference to a caller entity with id "${m}" that doesn't exist in the project.`,
|
|
35126
35133
|
issue: null
|
|
35127
35134
|
})
|
|
35128
35135
|
);
|
|
35129
35136
|
return;
|
|
35130
35137
|
}
|
|
35131
|
-
const R = pt(
|
|
35138
|
+
const R = pt(h, e);
|
|
35132
35139
|
if (o)
|
|
35133
35140
|
Ia(
|
|
35134
35141
|
o,
|
|
35135
35142
|
R,
|
|
35136
35143
|
e
|
|
35137
35144
|
) ? (Se.includes(i.type) && ((i.calledBySuccess || []).find(
|
|
35138
|
-
(O) => O ===
|
|
35139
|
-
) ? (
|
|
35145
|
+
(O) => O === h.id
|
|
35146
|
+
) ? (h.successCalls || []).find(
|
|
35140
35147
|
(k) => Se.includes(k.type)
|
|
35141
35148
|
) && t.push(
|
|
35142
35149
|
new T({
|
|
35143
|
-
id: `${i.id}--${
|
|
35150
|
+
id: `${i.id}--${h.id}--${b.UnreachableEntity}`,
|
|
35144
35151
|
code: b.UnreachableEntity,
|
|
35145
|
-
severity:
|
|
35146
|
-
message: `Entity of type "${i.type}" with id "${i.id}" is being called by an entity of type "${
|
|
35152
|
+
severity: f.Error,
|
|
35153
|
+
message: `Entity of type "${i.type}" with id "${i.id}" is being called by an entity of type "${h.type}" with id "${h.id}" that already calls a termination statement.
|
|
35147
35154
|
The new termination statement is redundant because both entities would be called from the same parent caller branch "successCalls", at the same time.`,
|
|
35148
35155
|
issue: null
|
|
35149
35156
|
})
|
|
35150
35157
|
) : (i.calledByError || []).find(
|
|
35151
|
-
(O) => O ===
|
|
35152
|
-
) ? (
|
|
35158
|
+
(O) => O === h.id
|
|
35159
|
+
) ? (h.errorCalls || []).find(
|
|
35153
35160
|
(k) => Se.includes(k.type)
|
|
35154
35161
|
) && t.push(
|
|
35155
35162
|
new T({
|
|
35156
|
-
id: `${i.id}--${
|
|
35163
|
+
id: `${i.id}--${h.id}--${b.UnreachableEntity}`,
|
|
35157
35164
|
code: b.UnreachableEntity,
|
|
35158
|
-
severity:
|
|
35159
|
-
message: `Entity of type "${i.type}" with id "${i.id}" is being called by an entity of type "${
|
|
35165
|
+
severity: f.Error,
|
|
35166
|
+
message: `Entity of type "${i.type}" with id "${i.id}" is being called by an entity of type "${h.type}" with id "${h.id}" that already calls a termination statement.
|
|
35160
35167
|
The new termination statement is redundant because both entities would be called from the same parent caller branch "errorCalls", at the same time.`,
|
|
35161
35168
|
issue: null
|
|
35162
35169
|
})
|
|
35163
35170
|
) : (i.calledByEntry || []).find(
|
|
35164
|
-
(O) => O ===
|
|
35165
|
-
) && (
|
|
35171
|
+
(O) => O === h.id
|
|
35172
|
+
) && (h.calls || []).find(
|
|
35166
35173
|
(k) => Se.includes(k.type)
|
|
35167
35174
|
) && t.push(
|
|
35168
35175
|
new T({
|
|
35169
|
-
id: `${i.id}--${
|
|
35176
|
+
id: `${i.id}--${h.id}--${b.UnreachableEntity}`,
|
|
35170
35177
|
code: b.UnreachableEntity,
|
|
35171
|
-
severity:
|
|
35172
|
-
message: `Entity of type "${i.type}" with id "${i.id}" is being called by an entity of type "${
|
|
35178
|
+
severity: f.Error,
|
|
35179
|
+
message: `Entity of type "${i.type}" with id "${i.id}" is being called by an entity of type "${h.type}" with id "${h.id}" that already calls a termination statement.
|
|
35173
35180
|
The new termination statement is redundant because both entities would be called from the same parent caller branch (entry-point), at the same time.`,
|
|
35174
35181
|
issue: null
|
|
35175
35182
|
})
|
|
35176
35183
|
)), d.push({
|
|
35177
|
-
caller:
|
|
35184
|
+
caller: h,
|
|
35178
35185
|
scope: R
|
|
35179
35186
|
})) : u.push({
|
|
35180
|
-
caller:
|
|
35187
|
+
caller: h,
|
|
35181
35188
|
scope: R,
|
|
35182
35189
|
errors: [
|
|
35183
35190
|
new T({
|
|
35184
|
-
id: `${i.id}--${
|
|
35191
|
+
id: `${i.id}--${h.id}--${p.CallerWithIncompatibleScope}`,
|
|
35185
35192
|
code: p.CallerWithIncompatibleScope,
|
|
35186
|
-
severity:
|
|
35187
|
-
message: `Entity of type "${i.type}" with id "${i.id}" is being called by an entity of type "${
|
|
35193
|
+
severity: f.Warning,
|
|
35194
|
+
message: `Entity of type "${i.type}" with id "${i.id}" is being called by an entity of type "${h.type}" with id "${h.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.`,
|
|
35188
35195
|
issue: null
|
|
35189
35196
|
})
|
|
35190
35197
|
]
|
|
@@ -35198,56 +35205,56 @@ The new termination statement is redundant because both entities would be called
|
|
|
35198
35205
|
e
|
|
35199
35206
|
);
|
|
35200
35207
|
g ? (Se.includes(i.type) && ((i.calledBySuccess || []).find(
|
|
35201
|
-
(O) => O ===
|
|
35202
|
-
) ? (
|
|
35208
|
+
(O) => O === h.id
|
|
35209
|
+
) ? (h.successCalls || []).find(
|
|
35203
35210
|
(k) => Se.includes(k.type)
|
|
35204
35211
|
) && t.push(
|
|
35205
35212
|
new T({
|
|
35206
|
-
id: `${i.id}--${
|
|
35213
|
+
id: `${i.id}--${h.id}--${b.UnreachableEntity}`,
|
|
35207
35214
|
code: b.UnreachableEntity,
|
|
35208
|
-
severity:
|
|
35209
|
-
message: `Entity of type "${i.type}" with id "${i.id}" is being called by an entity of type "${
|
|
35215
|
+
severity: f.Error,
|
|
35216
|
+
message: `Entity of type "${i.type}" with id "${i.id}" is being called by an entity of type "${h.type}" with id "${h.id}" that already calls a termination statement.
|
|
35210
35217
|
The new termination statement is redundant because both entities would be called from the same parent caller branch "successCalls", at the same time.`,
|
|
35211
35218
|
issue: null
|
|
35212
35219
|
})
|
|
35213
35220
|
) : (i.calledByError || []).find(
|
|
35214
|
-
(O) => O ===
|
|
35215
|
-
) ? (
|
|
35221
|
+
(O) => O === h.id
|
|
35222
|
+
) ? (h.errorCalls || []).find(
|
|
35216
35223
|
(k) => Se.includes(k.type)
|
|
35217
35224
|
) && t.push(
|
|
35218
35225
|
new T({
|
|
35219
|
-
id: `${i.id}--${
|
|
35226
|
+
id: `${i.id}--${h.id}--${b.UnreachableEntity}`,
|
|
35220
35227
|
code: b.UnreachableEntity,
|
|
35221
|
-
severity:
|
|
35222
|
-
message: `Entity of type "${i.type}" with id "${i.id}" is being called by an entity of type "${
|
|
35228
|
+
severity: f.Error,
|
|
35229
|
+
message: `Entity of type "${i.type}" with id "${i.id}" is being called by an entity of type "${h.type}" with id "${h.id}" that already calls a termination statement.
|
|
35223
35230
|
The new termination statement is redundant because both entities would be called from the same parent caller branch "errorCalls", at the same time.`,
|
|
35224
35231
|
issue: null
|
|
35225
35232
|
})
|
|
35226
35233
|
) : (i.calledByEntry || []).find(
|
|
35227
|
-
(O) => O ===
|
|
35228
|
-
) && (
|
|
35234
|
+
(O) => O === h.id
|
|
35235
|
+
) && (h.calls || []).find(
|
|
35229
35236
|
(k) => Se.includes(k.type)
|
|
35230
35237
|
) && t.push(
|
|
35231
35238
|
new T({
|
|
35232
|
-
id: `${i.id}--${
|
|
35239
|
+
id: `${i.id}--${h.id}--${b.UnreachableEntity}`,
|
|
35233
35240
|
code: b.UnreachableEntity,
|
|
35234
|
-
severity:
|
|
35235
|
-
message: `Entity of type "${i.type}" with id "${i.id}" is being called by an entity of type "${
|
|
35241
|
+
severity: f.Error,
|
|
35242
|
+
message: `Entity of type "${i.type}" with id "${i.id}" is being called by an entity of type "${h.type}" with id "${h.id}" that already calls a termination statement.
|
|
35236
35243
|
The new termination statement is redundant because both entities would be called from the same parent caller branch (entry-point), at the same time.`,
|
|
35237
35244
|
issue: null
|
|
35238
35245
|
})
|
|
35239
35246
|
)), d.push({
|
|
35240
|
-
caller:
|
|
35247
|
+
caller: h,
|
|
35241
35248
|
scope: R
|
|
35242
35249
|
})) : u.push({
|
|
35243
|
-
caller:
|
|
35250
|
+
caller: h,
|
|
35244
35251
|
scope: R,
|
|
35245
35252
|
errors: [
|
|
35246
35253
|
new T({
|
|
35247
|
-
id: `${i.id}--${
|
|
35254
|
+
id: `${i.id}--${h.id}--${p.CallerWithIncompatibleScope}`,
|
|
35248
35255
|
code: p.CallerWithIncompatibleScope,
|
|
35249
|
-
severity:
|
|
35250
|
-
message: `Entity of type "${i.type}" with id "${i.id}" has multiple caller, but not all of them have compatible scopes. Caller of type "${
|
|
35256
|
+
severity: f.Warning,
|
|
35257
|
+
message: `Entity of type "${i.type}" with id "${i.id}" has multiple caller, but not all of them have compatible scopes. Caller of type "${h.type}" with id "${h.id}" is in a different scope than caller of type "${y.type}" with id "${y.id}". All callers should be in the same scope or a higher valid scope. Or all callers should share the global project scope.`,
|
|
35251
35258
|
issue: null
|
|
35252
35259
|
})
|
|
35253
35260
|
]
|
|
@@ -35259,13 +35266,13 @@ The new termination statement is redundant because both entities would be called
|
|
|
35259
35266
|
});
|
|
35260
35267
|
else if (d.length && !o && Zc.includes(i.type)) {
|
|
35261
35268
|
const m = d.filter(
|
|
35262
|
-
(
|
|
35269
|
+
(h) => h.scope !== e
|
|
35263
35270
|
);
|
|
35264
35271
|
if (m.length) {
|
|
35265
|
-
const
|
|
35272
|
+
const h = k6(
|
|
35266
35273
|
m.map((R) => R.scope)
|
|
35267
35274
|
);
|
|
35268
|
-
i.parent =
|
|
35275
|
+
i.parent = h.id;
|
|
35269
35276
|
} else
|
|
35270
35277
|
i.parent = e.id;
|
|
35271
35278
|
}
|
|
@@ -35282,7 +35289,7 @@ It is recommended to have a caller reference already at the moment of creation i
|
|
|
35282
35289
|
id: `${i.id}--${b.MissingCaller}`,
|
|
35283
35290
|
code: b.MissingCaller,
|
|
35284
35291
|
// If it is a termination statement, make it an error, otherwise a warning
|
|
35285
|
-
severity: Se.includes(i.type) ?
|
|
35292
|
+
severity: Se.includes(i.type) ? f.Error : f.Warning,
|
|
35286
35293
|
message: s,
|
|
35287
35294
|
issue: null
|
|
35288
35295
|
})
|
|
@@ -35301,7 +35308,7 @@ function Pf(n, e) {
|
|
|
35301
35308
|
new T({
|
|
35302
35309
|
id: `${n.id}--${e.id}--${p.InvalidReference}`,
|
|
35303
35310
|
code: p.InvalidReference,
|
|
35304
|
-
severity:
|
|
35311
|
+
severity: f.Error,
|
|
35305
35312
|
message: `Entity of type "${n.type}" with id "${n.id}", has a reference to a value writting entity at 'readsValue' with id "${e.id}" that is a primitive value entity. Primitive value entities aren't value writting entities.
|
|
35306
35313
|
All value writting entity types are: ${_(
|
|
35307
35314
|
Be,
|
|
@@ -35319,7 +35326,7 @@ This primitive-value entity belongs to an input map entity with id "${o.id}". In
|
|
|
35319
35326
|
new T({
|
|
35320
35327
|
id: `${n.id}--${e.id}--${p.InvalidReference}`,
|
|
35321
35328
|
code: p.InvalidReference,
|
|
35322
|
-
severity:
|
|
35329
|
+
severity: f.Error,
|
|
35323
35330
|
message: `Entity of type "${n.type}" with id "${n.id}", has a reference to a value writting entity at 'readsValue' with id "${e.id}" that is a primitive value entity. Primitive value entities can't be referenced as value writting entities.
|
|
35324
35331
|
All value writting entity types are: ${_(
|
|
35325
35332
|
Be,
|
|
@@ -35336,7 +35343,7 @@ This primitive-value entity belongs to a data type entity with id "${u.id}", whi
|
|
|
35336
35343
|
new T({
|
|
35337
35344
|
id: `${n.id}--${e.id}--${p.InvalidReference}`,
|
|
35338
35345
|
code: p.InvalidReference,
|
|
35339
|
-
severity:
|
|
35346
|
+
severity: f.Error,
|
|
35340
35347
|
message: `Entity of type "${n.type}" with id "${n.id}", has a reference to a value writting entity at 'readsValue' with id "${e.id}" that is a primitive value entity. Primitive value entities can't be referenced as value writting entities.
|
|
35341
35348
|
All value writting entity types are: ${_(
|
|
35342
35349
|
Be,
|
|
@@ -35352,7 +35359,7 @@ All value writting entity types are: ${_(
|
|
|
35352
35359
|
new T({
|
|
35353
35360
|
id: `${n.id}--${e.id}--${p.InvalidReference}`,
|
|
35354
35361
|
code: p.InvalidReference,
|
|
35355
|
-
severity:
|
|
35362
|
+
severity: f.Error,
|
|
35356
35363
|
message: `Entity of type "${n.type}" with id "${n.id}", has a reference to a value writting entity at 'readsValue' with id "${e.id}" that is a primitive value entity. Primitive value entities can't be referenced as value writting entities.
|
|
35357
35364
|
All value writting entity types are: ${_(
|
|
35358
35365
|
Be,
|
|
@@ -35367,7 +35374,7 @@ This data type entity belongs to a ${o.type} entity with id "${o.id}". ${o.type}
|
|
|
35367
35374
|
new T({
|
|
35368
35375
|
id: `${n.id}--${e.id}--${p.InvalidReference}`,
|
|
35369
35376
|
code: p.InvalidReference,
|
|
35370
|
-
severity:
|
|
35377
|
+
severity: f.Error,
|
|
35371
35378
|
message: `Entity of type "${n.type}" with id "${n.id}", has a reference to a value writting entity at 'readsValue' with id "${e.id}" that is a primitive value entity. Primitive value entities can't be referenced as value writting entities.
|
|
35372
35379
|
All value writting entity types are: ${_(
|
|
35373
35380
|
Be,
|
|
@@ -35382,7 +35389,7 @@ All value writting entity types are: ${_(
|
|
|
35382
35389
|
new T({
|
|
35383
35390
|
id: `${n.id}--${e.id}--${p.InvalidReference}`,
|
|
35384
35391
|
code: p.InvalidReference,
|
|
35385
|
-
severity:
|
|
35392
|
+
severity: f.Error,
|
|
35386
35393
|
message: `Entity of type "${n.type}" with id "${n.id}", has a reference to a value writting entity at 'readsValue' with id "${e.id}" that isn't a value writting entity.
|
|
35387
35394
|
All value writting entity types are: ${_(
|
|
35388
35395
|
Be,
|
|
@@ -35422,7 +35429,7 @@ Two value holding entities need to be in the same scope or in scopes nested insi
|
|
|
35422
35429
|
new T({
|
|
35423
35430
|
id: `${n.id}--${e.id}--${p.IncompatibleScope}`,
|
|
35424
35431
|
code: p.IncompatibleScope,
|
|
35425
|
-
severity:
|
|
35432
|
+
severity: f.Error,
|
|
35426
35433
|
message: `Entity of type "${n.type}" with id "${n.id}", has a reference to a value writting entity at 'readsValue' with id "${e.id}" with an incompatible scope.
|
|
35427
35434
|
${d}`,
|
|
35428
35435
|
issue: null
|
|
@@ -35458,7 +35465,7 @@ function Ve(n, e, t, i = !1) {
|
|
|
35458
35465
|
new T({
|
|
35459
35466
|
id: `${o.id}--${p.InvalidReference}`,
|
|
35460
35467
|
code: p.InvalidReference,
|
|
35461
|
-
severity:
|
|
35468
|
+
severity: f.Error,
|
|
35462
35469
|
message: `Entity of type "${o.type}" with id "${o.id}" has a 'readsValue' property that is only valid for entities of type: ${_(
|
|
35463
35470
|
nr,
|
|
35464
35471
|
", ",
|
|
@@ -35471,7 +35478,7 @@ ${to}`,
|
|
|
35471
35478
|
new T({
|
|
35472
35479
|
id: `${o.id}--${p.InvalidReference}`,
|
|
35473
35480
|
code: p.InvalidReference,
|
|
35474
|
-
severity:
|
|
35481
|
+
severity: f.Error,
|
|
35475
35482
|
message: `Entity of type "${o.type}" with id "${o.id}" has a 'readsValue' property that is only valid for entities of type: ${_(
|
|
35476
35483
|
nr,
|
|
35477
35484
|
", ",
|
|
@@ -35484,7 +35491,7 @@ ${If}`,
|
|
|
35484
35491
|
new T({
|
|
35485
35492
|
id: `${o.id}--${p.InvalidReference}`,
|
|
35486
35493
|
code: p.InvalidReference,
|
|
35487
|
-
severity:
|
|
35494
|
+
severity: f.Error,
|
|
35488
35495
|
message: `Entity of type "${o.type}" with id "${o.id}" has a 'readsValue' property that is only valid for entities of type: ${_(
|
|
35489
35496
|
nr,
|
|
35490
35497
|
", ",
|
|
@@ -35498,7 +35505,7 @@ ${gf}`,
|
|
|
35498
35505
|
new T({
|
|
35499
35506
|
id: `${o.id}--${p.InvalidReference}`,
|
|
35500
35507
|
code: p.InvalidReference,
|
|
35501
|
-
severity:
|
|
35508
|
+
severity: f.Warning,
|
|
35502
35509
|
message: `Entity of type "${o.type}" with id "${o.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.
|
|
35503
35510
|
${Hc}`,
|
|
35504
35511
|
issue: null
|
|
@@ -35507,7 +35514,7 @@ ${Hc}`,
|
|
|
35507
35514
|
new T({
|
|
35508
35515
|
id: `${o.id}--${p.InvalidReference}`,
|
|
35509
35516
|
code: p.InvalidReference,
|
|
35510
|
-
severity:
|
|
35517
|
+
severity: f.Warning,
|
|
35511
35518
|
message: `Entity of type "${o.type}" with id "${o.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.
|
|
35512
35519
|
${to}
|
|
35513
35520
|
${Hc}`,
|
|
@@ -35519,13 +35526,13 @@ ${Hc}`,
|
|
|
35519
35526
|
}
|
|
35520
35527
|
const d = Object.entries(s);
|
|
35521
35528
|
for (const [u, y] of d) {
|
|
35522
|
-
const m = y.types,
|
|
35529
|
+
const m = y.types, h = y.optional, R = o[u];
|
|
35523
35530
|
if (!R) {
|
|
35524
|
-
|
|
35531
|
+
h || a.push(
|
|
35525
35532
|
new T({
|
|
35526
35533
|
id: `${o.id}--${u}--${b.InvalidObjectStructure}`,
|
|
35527
35534
|
code: b.InvalidObjectStructure,
|
|
35528
|
-
severity:
|
|
35535
|
+
severity: f.Error,
|
|
35529
35536
|
message: `Entity of type "${o.type}" with id "${o.id}" is missing a reference to a "${u}" entity. The '${u}' property of a "${o.type}" entity can be ${_(m, ", ", " or ")}`,
|
|
35530
35537
|
issue: null
|
|
35531
35538
|
})
|
|
@@ -35537,7 +35544,7 @@ ${Hc}`,
|
|
|
35537
35544
|
for (const g of R) {
|
|
35538
35545
|
const O = qc(
|
|
35539
35546
|
o,
|
|
35540
|
-
{ key: u, types: m, optional:
|
|
35547
|
+
{ key: u, types: m, optional: h },
|
|
35541
35548
|
t
|
|
35542
35549
|
);
|
|
35543
35550
|
a.push(...O);
|
|
@@ -35547,7 +35554,7 @@ ${Hc}`,
|
|
|
35547
35554
|
new T({
|
|
35548
35555
|
id: `${o.id}--${u}--${p.ContainsSingleButShouldBeReferenceList}`,
|
|
35549
35556
|
code: p.ContainsSingleButShouldBeReferenceList,
|
|
35550
|
-
severity:
|
|
35557
|
+
severity: f.Error,
|
|
35551
35558
|
message: `Entity of type "${o.type}" with id "${o.id}", should have a property "${u}" which is a list, but it isn't.`,
|
|
35552
35559
|
issue: null
|
|
35553
35560
|
})
|
|
@@ -35559,7 +35566,7 @@ ${Hc}`,
|
|
|
35559
35566
|
new T({
|
|
35560
35567
|
id: `${o.id}--${u}--${p.ContainsListButShouldReferenceSingle}`,
|
|
35561
35568
|
code: p.ContainsListButShouldReferenceSingle,
|
|
35562
|
-
severity:
|
|
35569
|
+
severity: f.Error,
|
|
35563
35570
|
message: `Entity of type "${o.type}" with id "${o.id}", should have a property "${u}" which holds a single reference, but it is a list.`,
|
|
35564
35571
|
issue: null
|
|
35565
35572
|
})
|
|
@@ -35568,7 +35575,7 @@ ${Hc}`,
|
|
|
35568
35575
|
} else {
|
|
35569
35576
|
const g = qc(
|
|
35570
35577
|
o,
|
|
35571
|
-
{ key: u, types: m, optional:
|
|
35578
|
+
{ key: u, types: m, optional: h },
|
|
35572
35579
|
t
|
|
35573
35580
|
);
|
|
35574
35581
|
a.push(...g);
|
|
@@ -35589,7 +35596,7 @@ function b3(n, e, t = "calledBy") {
|
|
|
35589
35596
|
new T({
|
|
35590
35597
|
id: `${n}--${p.ReferencedEntityNotFound}`,
|
|
35591
35598
|
code: p.ReferencedEntityNotFound,
|
|
35592
|
-
severity:
|
|
35599
|
+
severity: f.Error,
|
|
35593
35600
|
message: `Entity with id "${n}" referenced in '${t}' property not found in the project. Perhaps it should be created first? Perhaps it is the wrong ID?`,
|
|
35594
35601
|
issue: null
|
|
35595
35602
|
})
|
|
@@ -35610,7 +35617,7 @@ This ${a.type} is called by ${_(
|
|
|
35610
35617
|
new T({
|
|
35611
35618
|
id: `last-action--${a.id}--${p.InvalidReference}`,
|
|
35612
35619
|
code: p.InvalidReference,
|
|
35613
|
-
severity:
|
|
35620
|
+
severity: f.Error,
|
|
35614
35621
|
message: `Entity with id '${a.id}' referenced in '${t}' property is of type '${a.type}'.
|
|
35615
35622
|
${a.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
|
|
35616
35623
|
Termination entities are ${_(
|
|
@@ -35626,7 +35633,7 @@ Termination entities are ${_(
|
|
|
35626
35633
|
new T({
|
|
35627
35634
|
id: `last-action--${a.id}--${p.InvalidReference}`,
|
|
35628
35635
|
code: p.InvalidReference,
|
|
35629
|
-
severity:
|
|
35636
|
+
severity: f.Error,
|
|
35630
35637
|
message: `Entity with id '${a.id}' referenced in '${t}' property is of type '${a.type}' which is not a valid caller entity type.
|
|
35631
35638
|
All caller entity types are: ${_(
|
|
35632
35639
|
yn,
|
|
@@ -35648,7 +35655,7 @@ function v3(n, e, t = "calledByError") {
|
|
|
35648
35655
|
new T({
|
|
35649
35656
|
id: `${n}--${p.ReferencedEntityNotFound}`,
|
|
35650
35657
|
code: p.ReferencedEntityNotFound,
|
|
35651
|
-
severity:
|
|
35658
|
+
severity: f.Error,
|
|
35652
35659
|
message: `Entity with id "${n}" referenced in '${t}' property not found in the project. Perhaps it should be created first? Perhaps it is the wrong ID?`,
|
|
35653
35660
|
issue: null
|
|
35654
35661
|
})
|
|
@@ -35669,7 +35676,7 @@ This ${a.type} is called by ${_(
|
|
|
35669
35676
|
new T({
|
|
35670
35677
|
id: `last-action--${a.id}--${p.InvalidReference}`,
|
|
35671
35678
|
code: p.InvalidReference,
|
|
35672
|
-
severity:
|
|
35679
|
+
severity: f.Error,
|
|
35673
35680
|
message: `Entity with id '${a.id}' referenced in '${t}' property is of type '${a.type}'.
|
|
35674
35681
|
${a.type} entities are the last entity to be executed in a logic chain, and they don't call any other entities.
|
|
35675
35682
|
Termination entities are ${_(
|
|
@@ -35685,7 +35692,7 @@ Termination entities are ${_(
|
|
|
35685
35692
|
new T({
|
|
35686
35693
|
id: `last-action--${a.id}--${p.InvalidReference}`,
|
|
35687
35694
|
code: p.InvalidReference,
|
|
35688
|
-
severity:
|
|
35695
|
+
severity: f.Error,
|
|
35689
35696
|
message: `Entity with id '${a.id}' referenced in '${t}' property is of type '${a.type}' which is an entry-point entity and doesn't thrown errors.
|
|
35690
35697
|
${Ts}`,
|
|
35691
35698
|
issue: null
|
|
@@ -35694,7 +35701,7 @@ ${Ts}`,
|
|
|
35694
35701
|
new T({
|
|
35695
35702
|
id: `last-action--${a.id}--${p.InvalidReference}`,
|
|
35696
35703
|
code: p.InvalidReference,
|
|
35697
|
-
severity:
|
|
35704
|
+
severity: f.Error,
|
|
35698
35705
|
message: `Entity with id '${a.id}' referenced in '${t}' property is of type '${a.type}' which is not a valid caller entity type.
|
|
35699
35706
|
For any error branch caller, for the 'calledByError' property of an entity, you specifically need to reference a pass-through callable entity.
|
|
35700
35707
|
${Nn}`,
|
|
@@ -35712,7 +35719,7 @@ function g3(n, e) {
|
|
|
35712
35719
|
new T({
|
|
35713
35720
|
id: `last-action--${p.ReferencedEntityNotFound}`,
|
|
35714
35721
|
code: p.ReferencedEntityNotFound,
|
|
35715
|
-
severity:
|
|
35722
|
+
severity: f.Error,
|
|
35716
35723
|
message: `The 'readsValue' property references an entity with id '${n}' that was not found in the project. Perhaps it should be created? Perhaps the ID is incorrect?`,
|
|
35717
35724
|
issue: null
|
|
35718
35725
|
})
|
|
@@ -35725,7 +35732,7 @@ function g3(n, e) {
|
|
|
35725
35732
|
new T({
|
|
35726
35733
|
id: `last-action--${i.id}--${p.InvalidReference}`,
|
|
35727
35734
|
code: p.InvalidReference,
|
|
35728
|
-
severity:
|
|
35735
|
+
severity: f.Error,
|
|
35729
35736
|
message: `The 'readsValue' property references an entity with id "${i.id}" that is a primitive value entity. Primitive value entities aren't value writting entities.
|
|
35730
35737
|
All value writting entity types are: ${_(
|
|
35731
35738
|
Be,
|
|
@@ -35743,7 +35750,7 @@ This primitive-value entity belongs to an input map entity with id "${s.id}". In
|
|
|
35743
35750
|
new T({
|
|
35744
35751
|
id: `last-action--${i.id}--${p.InvalidReference}`,
|
|
35745
35752
|
code: p.InvalidReference,
|
|
35746
|
-
severity:
|
|
35753
|
+
severity: f.Error,
|
|
35747
35754
|
message: `The 'readsValue' property references an entity with id "${i.id}" that is a primitive value entity. Primitive value entities can't be referenced as value writting entities.
|
|
35748
35755
|
All value writting entity types are: ${_(
|
|
35749
35756
|
Be,
|
|
@@ -35760,7 +35767,7 @@ This primitive-value entity belongs to a data type entity with id "${d.id}", whi
|
|
|
35760
35767
|
new T({
|
|
35761
35768
|
id: `last-action--${i.id}--${p.InvalidReference}`,
|
|
35762
35769
|
code: p.InvalidReference,
|
|
35763
|
-
severity:
|
|
35770
|
+
severity: f.Error,
|
|
35764
35771
|
message: `The 'readsValue' property references an entity with id "${i.id}" that is a primitive value entity. Primitive value entities can't be referenced as value writting entities.
|
|
35765
35772
|
All value writting entity types are: ${_(
|
|
35766
35773
|
Be,
|
|
@@ -35776,7 +35783,7 @@ All value writting entity types are: ${_(
|
|
|
35776
35783
|
new T({
|
|
35777
35784
|
id: `last-action--${i.id}--${p.InvalidReference}`,
|
|
35778
35785
|
code: p.InvalidReference,
|
|
35779
|
-
severity:
|
|
35786
|
+
severity: f.Error,
|
|
35780
35787
|
message: `The 'readsValue' property references an entity with id "${i.id}" that is a primitive value entity. Primitive value entities can't be referenced as value writting entities.
|
|
35781
35788
|
All value writting entity types are: ${_(
|
|
35782
35789
|
Be,
|
|
@@ -35791,7 +35798,7 @@ This data type entity belongs to a ${s.type} entity with id "${s.id}". ${s.type}
|
|
|
35791
35798
|
new T({
|
|
35792
35799
|
id: `last-action--${i.id}--${p.InvalidReference}`,
|
|
35793
35800
|
code: p.InvalidReference,
|
|
35794
|
-
severity:
|
|
35801
|
+
severity: f.Error,
|
|
35795
35802
|
message: `The 'readsValue' property references an entity with id "${i.id}" that is a primitive value entity. Primitive value entities can't be referenced as value writting entities.
|
|
35796
35803
|
All value writting entity types are: ${_(
|
|
35797
35804
|
Be,
|
|
@@ -35806,7 +35813,7 @@ All value writting entity types are: ${_(
|
|
|
35806
35813
|
new T({
|
|
35807
35814
|
id: `last-action--${i.id}--${p.InvalidReference}`,
|
|
35808
35815
|
code: p.InvalidReference,
|
|
35809
|
-
severity:
|
|
35816
|
+
severity: f.Error,
|
|
35810
35817
|
message: `The 'readsValue' property references an entity with id "${i.id}" that isn't a value writting entity.
|
|
35811
35818
|
All value writting entity types are: ${_(
|
|
35812
35819
|
Be,
|
|
@@ -35855,7 +35862,7 @@ function p6(n, e) {
|
|
|
35855
35862
|
new T({
|
|
35856
35863
|
id: `last-action--${p.ReferencedEntityNotFound}`,
|
|
35857
35864
|
code: p.ReferencedEntityNotFound,
|
|
35858
|
-
severity:
|
|
35865
|
+
severity: f.Error,
|
|
35859
35866
|
message: `The entity with id '${n}' that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
|
|
35860
35867
|
issue: null
|
|
35861
35868
|
})
|
|
@@ -35865,7 +35872,7 @@ function p6(n, e) {
|
|
|
35865
35872
|
new T({
|
|
35866
35873
|
id: `last-action--${p.InvalidFunctionDeclarationForFunctionCall}`,
|
|
35867
35874
|
code: p.InvalidFunctionDeclarationForFunctionCall,
|
|
35868
|
-
severity:
|
|
35875
|
+
severity: f.Error,
|
|
35869
35876
|
message: `The 'functionDeclarationId' reference is pointing to entity with id '${n}' which is of type '${i.type}' entity. If you meant to reference an 'action-descriptor', you can use the 'implement_operation' generation action instead.
|
|
35870
35877
|
Otherwise, if you were trying to implement a 'function-call' from a globally declarated 'function-declaration':
|
|
35871
35878
|
${a}`,
|
|
@@ -35877,7 +35884,7 @@ ${a}`,
|
|
|
35877
35884
|
new T({
|
|
35878
35885
|
id: `last-action--${p.InvalidFunctionDeclarationForFunctionCall}`,
|
|
35879
35886
|
code: p.InvalidFunctionDeclarationForFunctionCall,
|
|
35880
|
-
severity:
|
|
35887
|
+
severity: f.Error,
|
|
35881
35888
|
message: `The 'functionDeclarationId' reference is pointing to entity with id '${n}' which is of type '${i.type}' entity. Only 'function-declaration' entities can be implemented as function calls.
|
|
35882
35889
|
${a}`,
|
|
35883
35890
|
issue: null
|
|
@@ -35900,7 +35907,7 @@ ${xn}`), t.push(
|
|
|
35900
35907
|
new T({
|
|
35901
35908
|
id: `last-action--${p.InvalidFunctionDeclarationForFunctionCall}`,
|
|
35902
35909
|
code: p.InvalidFunctionDeclarationForFunctionCall,
|
|
35903
|
-
severity:
|
|
35910
|
+
severity: f.Error,
|
|
35904
35911
|
message: `The function declaration entity with id '${n}' is a method of the 'custom-entity' with id '${i.parent.id}'. Only globally declared, standalone functions can be implemented as function calls.
|
|
35905
35912
|
If you want to call a method of a custom entity, use a '${r.InternalCall}' entity on any variable which is an instance of that custom entity.
|
|
35906
35913
|
${a}${d}`,
|
|
@@ -35912,7 +35919,7 @@ ${a}${d}`,
|
|
|
35912
35919
|
new T({
|
|
35913
35920
|
id: `last-action--${p.InvalidFunctionDeclarationForFunctionCall}`,
|
|
35914
35921
|
code: p.InvalidFunctionDeclarationForFunctionCall,
|
|
35915
|
-
severity:
|
|
35922
|
+
severity: f.Error,
|
|
35916
35923
|
message: `The function declaration entity with id '${n}' is the body of the 'loop' with id '${i.parent.id}'. Only globally declared, standalone functions can be implemented as function calls.
|
|
35917
35924
|
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.
|
|
35918
35925
|
${a}`,
|
|
@@ -35922,7 +35929,7 @@ ${a}`,
|
|
|
35922
35929
|
new T({
|
|
35923
35930
|
id: `last-action--${p.InvalidFunctionDeclarationForFunctionCall}`,
|
|
35924
35931
|
code: p.InvalidFunctionDeclarationForFunctionCall,
|
|
35925
|
-
severity:
|
|
35932
|
+
severity: f.Error,
|
|
35926
35933
|
message: `The function declaration entity with id '${n}' has a 'parent' entity which isn't the root project. Only globally declared, standalone functions can be implemented as function calls.${a}`,
|
|
35927
35934
|
issue: null
|
|
35928
35935
|
})
|
|
@@ -35946,7 +35953,7 @@ All built-in 'action-descriptor' entities that define 'operation' entity, are (I
|
|
|
35946
35953
|
new T({
|
|
35947
35954
|
id: `last-action--${p.InvalidActionDescriptorForOperation}`,
|
|
35948
35955
|
code: p.InvalidActionDescriptorForOperation,
|
|
35949
|
-
severity:
|
|
35956
|
+
severity: f.Error,
|
|
35950
35957
|
message: `The entity with id '${n}' is of type '${i.type}' entity. Only 'action-descriptor' entities can be implemented as operations instances.${a}`,
|
|
35951
35958
|
issue: null
|
|
35952
35959
|
})
|
|
@@ -35956,7 +35963,7 @@ All built-in 'action-descriptor' entities that define 'operation' entity, are (I
|
|
|
35956
35963
|
new T({
|
|
35957
35964
|
id: `last-action--${p.InvalidActionDescriptorForOperation}`,
|
|
35958
35965
|
code: p.InvalidActionDescriptorForOperation,
|
|
35959
|
-
severity:
|
|
35966
|
+
severity: f.Error,
|
|
35960
35967
|
message: `The entity with id '${n}' is of type '${i.type}' entity but it isn't one of the allowed operation descriptors.${a}`,
|
|
35961
35968
|
issue: null
|
|
35962
35969
|
})
|
|
@@ -35964,7 +35971,7 @@ All built-in 'action-descriptor' entities that define 'operation' entity, are (I
|
|
|
35964
35971
|
new T({
|
|
35965
35972
|
id: `last-action--${p.InvalidActionDescriptorForOperation}`,
|
|
35966
35973
|
code: p.InvalidActionDescriptorForOperation,
|
|
35967
|
-
severity:
|
|
35974
|
+
severity: f.Error,
|
|
35968
35975
|
message: `The entity with id '${n}' is of type '${i.type}' entity. Only 'action-descriptor' entities can be implemented as operations instances.${a}`,
|
|
35969
35976
|
issue: null
|
|
35970
35977
|
})
|
|
@@ -35972,7 +35979,7 @@ All built-in 'action-descriptor' entities that define 'operation' entity, are (I
|
|
|
35972
35979
|
new T({
|
|
35973
35980
|
id: `last-action--${p.ReferencedEntityNotFound}`,
|
|
35974
35981
|
code: p.ReferencedEntityNotFound,
|
|
35975
|
-
severity:
|
|
35982
|
+
severity: f.Error,
|
|
35976
35983
|
message: `The entity with id '${n}' that isn't yet found in the project.${a}`,
|
|
35977
35984
|
issue: null
|
|
35978
35985
|
})
|
|
@@ -35995,7 +36002,7 @@ All built-in 'action-descriptor' entities that define 'condition' entity, are (I
|
|
|
35995
36002
|
new T({
|
|
35996
36003
|
id: `last-action--${p.InvalidActionDescriptorForCondition}`,
|
|
35997
36004
|
code: p.InvalidActionDescriptorForCondition,
|
|
35998
|
-
severity:
|
|
36005
|
+
severity: f.Error,
|
|
35999
36006
|
message: `The entity with id '${n}' is of type '${i.type}' entity. Only 'action-descriptor' entities can be implemented as conditions instances.${a}`,
|
|
36000
36007
|
issue: null
|
|
36001
36008
|
})
|
|
@@ -36005,7 +36012,7 @@ All built-in 'action-descriptor' entities that define 'condition' entity, are (I
|
|
|
36005
36012
|
new T({
|
|
36006
36013
|
id: `last-action--${p.InvalidActionDescriptorForOperation}`,
|
|
36007
36014
|
code: p.InvalidActionDescriptorForOperation,
|
|
36008
|
-
severity:
|
|
36015
|
+
severity: f.Error,
|
|
36009
36016
|
message: `The entity with id '${n}' is of type '${i.type}' entity but it isn't one of the allowed condition descriptors.${a}`,
|
|
36010
36017
|
issue: null
|
|
36011
36018
|
})
|
|
@@ -36013,7 +36020,7 @@ All built-in 'action-descriptor' entities that define 'condition' entity, are (I
|
|
|
36013
36020
|
new T({
|
|
36014
36021
|
id: `last-action--${p.InvalidActionDescriptorForCondition}`,
|
|
36015
36022
|
code: p.InvalidActionDescriptorForCondition,
|
|
36016
|
-
severity:
|
|
36023
|
+
severity: f.Error,
|
|
36017
36024
|
message: `The entity with id '${n}' is of type '${i.type}' entity. Only 'action-descriptor' entities can be implemented as conditions instances.${a}`,
|
|
36018
36025
|
issue: null
|
|
36019
36026
|
})
|
|
@@ -36021,7 +36028,7 @@ All built-in 'action-descriptor' entities that define 'condition' entity, are (I
|
|
|
36021
36028
|
new T({
|
|
36022
36029
|
id: `last-action--${p.ReferencedEntityNotFound}`,
|
|
36023
36030
|
code: p.ReferencedEntityNotFound,
|
|
36024
|
-
severity:
|
|
36031
|
+
severity: f.Error,
|
|
36025
36032
|
message: `The entity with id '${n}' that isn't yet found in the project.${a}`,
|
|
36026
36033
|
issue: null
|
|
36027
36034
|
})
|
|
@@ -36041,7 +36048,7 @@ All built-in 'action-descriptor' entities that define 'loop' entity, are (IDs):
|
|
|
36041
36048
|
new T({
|
|
36042
36049
|
id: `last-action--${p.InvalidActionDescriptorForLoop}`,
|
|
36043
36050
|
code: p.InvalidActionDescriptorForLoop,
|
|
36044
|
-
severity:
|
|
36051
|
+
severity: f.Error,
|
|
36045
36052
|
message: `The entity with id '${n}' is of type '${i.type}' entity. Only 'action-descriptor' entities can be implemented as loops instances.${a}`,
|
|
36046
36053
|
issue: null
|
|
36047
36054
|
})
|
|
@@ -36051,7 +36058,7 @@ All built-in 'action-descriptor' entities that define 'loop' entity, are (IDs):
|
|
|
36051
36058
|
new T({
|
|
36052
36059
|
id: `last-action--${p.InvalidActionDescriptorForOperation}`,
|
|
36053
36060
|
code: p.InvalidActionDescriptorForOperation,
|
|
36054
|
-
severity:
|
|
36061
|
+
severity: f.Error,
|
|
36055
36062
|
message: `The entity with id '${n}' is of type '${i.type}' entity but it isn't one of the allowed loop descriptors.${a}`,
|
|
36056
36063
|
issue: null
|
|
36057
36064
|
})
|
|
@@ -36059,7 +36066,7 @@ All built-in 'action-descriptor' entities that define 'loop' entity, are (IDs):
|
|
|
36059
36066
|
new T({
|
|
36060
36067
|
id: `last-action--${p.InvalidActionDescriptorForLoop}`,
|
|
36061
36068
|
code: p.InvalidActionDescriptorForLoop,
|
|
36062
|
-
severity:
|
|
36069
|
+
severity: f.Error,
|
|
36063
36070
|
message: `The entity with id '${n}' is of type '${i.type}' entity. Only 'action-descriptor' entities can be implemented as loops instances.${a}`,
|
|
36064
36071
|
issue: null
|
|
36065
36072
|
})
|
|
@@ -36067,14 +36074,14 @@ All built-in 'action-descriptor' entities that define 'loop' entity, are (IDs):
|
|
|
36067
36074
|
new T({
|
|
36068
36075
|
id: `last-action--${p.ReferencedEntityNotFound}`,
|
|
36069
36076
|
code: p.ReferencedEntityNotFound,
|
|
36070
|
-
severity:
|
|
36077
|
+
severity: f.Error,
|
|
36071
36078
|
message: `The entity with id '${n}' that isn't yet found in the project.${a}`,
|
|
36072
36079
|
issue: null
|
|
36073
36080
|
})
|
|
36074
36081
|
), t;
|
|
36075
36082
|
}
|
|
36076
36083
|
function h6(n, e, t) {
|
|
36077
|
-
var u, y, m,
|
|
36084
|
+
var u, y, m, h;
|
|
36078
36085
|
if (t.compatible)
|
|
36079
36086
|
return "";
|
|
36080
36087
|
const i = `entity of type "${n.type}" with id "${n.id}"`, a = `entity with id "${n.id}"`, s = `entity of type "${e.type}" with id "${e.id}"`, o = `entity with id "${e.id}"`, d = Qs(
|
|
@@ -36090,7 +36097,7 @@ ${a} is not a template, but ${o} is. A data type that provides an entity as a "t
|
|
|
36090
36097
|
Their 'entity' property is of different types. They must be of the same type to be connected. For example, the 'entity' can be a '${r.CustomEntity}' or a '${r.PrimitiveEntity}'.` : t.type === Mt.IncompatibleCustomEntities ? `${d}
|
|
36091
36098
|
Both point to custom entities, but they are not compatible to be connected. They must be either the same custom entity, or a custom entity that has equivalent shape, which includes the same properties all with compatible data types with the properties in the counterpart entity.` : t.type === Mt.IncompatiblePrimitiveEntities ? `${d}
|
|
36092
36099
|
${a} is of primitive type '${((u = n.getDataType()) == null ? void 0 : u.entity).name}' and ${o} is of primitive type '${((y = e.getDataType()) == null ? void 0 : y.entity).name}'. They must be of the same primitive type to be connected.` : t.type === Mt.IncompatibleBuiltInBaseEntities ? `${d}
|
|
36093
|
-
Both point to a built-in-base-entity. But${a} is of built-in base type '${((m = n.getDataType()) == null ? void 0 : m.entity).name}' and ${o} is of built-in base type '${((
|
|
36100
|
+
Both point to a built-in-base-entity. But${a} is of built-in base type '${((m = n.getDataType()) == null ? void 0 : m.entity).name}' and ${o} is of built-in base type '${((h = e.getDataType()) == null ? void 0 : h.entity).name}'. They must be of the same built-in base type to be connected.` : d;
|
|
36094
36101
|
}
|
|
36095
36102
|
function Es(n, e) {
|
|
36096
36103
|
const t = [];
|
|
@@ -36105,7 +36112,7 @@ function Es(n, e) {
|
|
|
36105
36112
|
new T({
|
|
36106
36113
|
id: `${e.id}--${p.InvalidBuiltInEntityReference}`,
|
|
36107
36114
|
code: p.InvalidBuiltInEntityReference,
|
|
36108
|
-
severity:
|
|
36115
|
+
severity: f.Error,
|
|
36109
36116
|
message: `The entity of type '${e.type}' with id '${e.id}' cannot update 'readsValue' to a built-in entity with id '${n.readsValue}'. Only user-created entities can be referenced.`,
|
|
36110
36117
|
issue: null
|
|
36111
36118
|
})
|
|
@@ -36115,7 +36122,7 @@ function Es(n, e) {
|
|
|
36115
36122
|
new T({
|
|
36116
36123
|
id: `${e.id}--${p.ReferencedEntityNotFound}`,
|
|
36117
36124
|
code: p.ReferencedEntityNotFound,
|
|
36118
|
-
severity:
|
|
36125
|
+
severity: f.Error,
|
|
36119
36126
|
message: `The entity of type '${e.type}' with id '${e.id}' cannot update 'readsValue' to entity with id '${n.readsValue}' because the entity was not found in the project state.`,
|
|
36120
36127
|
issue: null
|
|
36121
36128
|
})
|
|
@@ -36127,7 +36134,7 @@ function Es(n, e) {
|
|
|
36127
36134
|
new T({
|
|
36128
36135
|
id: `${e.id}--${p.InvalidBuiltInEntityReference}`,
|
|
36129
36136
|
code: p.InvalidBuiltInEntityReference,
|
|
36130
|
-
severity:
|
|
36137
|
+
severity: f.Error,
|
|
36131
36138
|
message: `The entity of type '${e.type}' with id '${e.id}' cannot update 'readsValue' to entity with id '${n.readsValue}' because the entity belongs to a built-in '${s.type}' entity with id '${s.id}' (${D(
|
|
36132
36139
|
s,
|
|
36133
36140
|
e.project
|
|
@@ -36152,7 +36159,7 @@ function Es(n, e) {
|
|
|
36152
36159
|
new T({
|
|
36153
36160
|
id: `${e.id}--${b.ReaderWriterIncompatibleDataType}`,
|
|
36154
36161
|
code: b.ReaderWriterIncompatibleDataType,
|
|
36155
|
-
severity:
|
|
36162
|
+
severity: f.Error,
|
|
36156
36163
|
message: h6(
|
|
36157
36164
|
e,
|
|
36158
36165
|
i,
|
|
@@ -36171,9 +36178,9 @@ function On(n) {
|
|
|
36171
36178
|
if (n.parent === n.project)
|
|
36172
36179
|
n.calledBy.length || e.push(
|
|
36173
36180
|
new dr({
|
|
36174
|
-
id: `${n.id}--${
|
|
36175
|
-
code:
|
|
36176
|
-
severity:
|
|
36181
|
+
id: `${n.id}--${S.DisconnectedCallableEntity}`,
|
|
36182
|
+
code: S.DisconnectedCallableEntity,
|
|
36183
|
+
severity: f.Warning,
|
|
36177
36184
|
message: `This '${n.type}' entity "${D(
|
|
36178
36185
|
n,
|
|
36179
36186
|
n.project
|
|
@@ -36208,7 +36215,7 @@ This '${n.type}' is blocked `;
|
|
|
36208
36215
|
new dr({
|
|
36209
36216
|
id: `${n.id}--${b.UnreachableEntity}`,
|
|
36210
36217
|
code: b.UnreachableEntity,
|
|
36211
|
-
severity:
|
|
36218
|
+
severity: f.Warning,
|
|
36212
36219
|
message: `${i}${a}`,
|
|
36213
36220
|
issue: null,
|
|
36214
36221
|
entity: n
|
|
@@ -36224,66 +36231,66 @@ function Df(n) {
|
|
|
36224
36231
|
return e;
|
|
36225
36232
|
if (n.readsValue) {
|
|
36226
36233
|
const t = U({
|
|
36227
|
-
id: `${n.id}--${
|
|
36234
|
+
id: `${n.id}--${S.VariableReadsValueAndInternalCall}`,
|
|
36228
36235
|
message: `Variable "${D(n, n.project)}" with id "${n.id}" reads a value. A variable with internal calls can't read a value.`,
|
|
36229
36236
|
issue: null,
|
|
36230
|
-
severity:
|
|
36231
|
-
code:
|
|
36237
|
+
severity: f.Error,
|
|
36238
|
+
code: S.VariableReadsValueAndInternalCall,
|
|
36232
36239
|
entity: n
|
|
36233
36240
|
});
|
|
36234
36241
|
e.push(t.error);
|
|
36235
36242
|
}
|
|
36236
36243
|
if (n.writesValues.length) {
|
|
36237
36244
|
const t = U({
|
|
36238
|
-
id: `${n.id}--${
|
|
36245
|
+
id: `${n.id}--${S.VariableWritesValuesAndInternalCall}`,
|
|
36239
36246
|
message: `Variable "${D(n, n.project)}" with id "${n.id}" writes values. A variable with internal calls can't write a value.`,
|
|
36240
36247
|
issue: null,
|
|
36241
|
-
severity:
|
|
36242
|
-
code:
|
|
36248
|
+
severity: f.Error,
|
|
36249
|
+
code: S.VariableWritesValuesAndInternalCall,
|
|
36243
36250
|
entity: n
|
|
36244
36251
|
});
|
|
36245
36252
|
e.push(t.error);
|
|
36246
36253
|
}
|
|
36247
36254
|
if (n.getUsedInputs().length) {
|
|
36248
36255
|
const t = U({
|
|
36249
|
-
id: `${n.id}--${
|
|
36256
|
+
id: `${n.id}--${S.VariableHasInputsAndInternalCall}`,
|
|
36250
36257
|
message: `Variable "${D(n, n.project)}" with id "${n.id}" has inputs. A variable with internal calls can't have inputs.`,
|
|
36251
36258
|
issue: null,
|
|
36252
|
-
severity:
|
|
36253
|
-
code:
|
|
36259
|
+
severity: f.Error,
|
|
36260
|
+
code: S.VariableHasInputsAndInternalCall,
|
|
36254
36261
|
entity: n
|
|
36255
36262
|
});
|
|
36256
36263
|
e.push(t.error);
|
|
36257
36264
|
}
|
|
36258
36265
|
if (n.getUsedOutputs().length) {
|
|
36259
36266
|
const t = U({
|
|
36260
|
-
id: `${n.id}--${
|
|
36267
|
+
id: `${n.id}--${S.VariableHasOutputsAndInternalCall}`,
|
|
36261
36268
|
message: `Variable "${D(n, n.project)}" with id "${n.id}" has outputs. A variable with internal calls can't have outputs.`,
|
|
36262
36269
|
issue: null,
|
|
36263
|
-
severity:
|
|
36264
|
-
code:
|
|
36270
|
+
severity: f.Error,
|
|
36271
|
+
code: S.VariableHasOutputsAndInternalCall,
|
|
36265
36272
|
entity: n
|
|
36266
36273
|
});
|
|
36267
36274
|
e.push(t.error);
|
|
36268
36275
|
}
|
|
36269
36276
|
if (n.calledBy.length) {
|
|
36270
36277
|
const t = U({
|
|
36271
|
-
id: `${n.id}--${
|
|
36278
|
+
id: `${n.id}--${S.VariableIsCalledAndHasInternalCall}`,
|
|
36272
36279
|
message: `Variable "${D(n, n.project)}" with id "${n.id}" is called by other entities. A variable with internal calls can't be called by other entities.`,
|
|
36273
36280
|
issue: null,
|
|
36274
|
-
severity:
|
|
36275
|
-
code:
|
|
36281
|
+
severity: f.Error,
|
|
36282
|
+
code: S.VariableIsCalledAndHasInternalCall,
|
|
36276
36283
|
entity: n
|
|
36277
36284
|
});
|
|
36278
36285
|
e.push(t.error);
|
|
36279
36286
|
}
|
|
36280
36287
|
if ([...n.successCalls, ...n.errorCalls].length) {
|
|
36281
36288
|
const t = U({
|
|
36282
|
-
id: `${n.id}--${
|
|
36289
|
+
id: `${n.id}--${S.VariableCallsOthersAndHasInternalCall}`,
|
|
36283
36290
|
message: `Variable "${D(n, n.project)}" with id "${n.id}" calls other entities. A variable with internal calls can't call other entities.`,
|
|
36284
36291
|
issue: null,
|
|
36285
|
-
severity:
|
|
36286
|
-
code:
|
|
36292
|
+
severity: f.Error,
|
|
36293
|
+
code: S.VariableCallsOthersAndHasInternalCall,
|
|
36287
36294
|
entity: n
|
|
36288
36295
|
});
|
|
36289
36296
|
e.push(t.error);
|
|
@@ -36335,19 +36342,19 @@ const Re = class Re {
|
|
|
36335
36342
|
static fromGenerationTarget(e, t) {
|
|
36336
36343
|
let i = t;
|
|
36337
36344
|
if (e.parent) {
|
|
36338
|
-
const
|
|
36339
|
-
i = t.get(
|
|
36345
|
+
const h = P(e.parent);
|
|
36346
|
+
i = t.get(h);
|
|
36340
36347
|
}
|
|
36341
36348
|
const a = P(e.declaration), s = t.get(
|
|
36342
36349
|
a
|
|
36343
|
-
), o = e.calledByEntry.map((
|
|
36344
|
-
const R = P(
|
|
36350
|
+
), o = e.calledByEntry.map((h) => {
|
|
36351
|
+
const R = P(h);
|
|
36345
36352
|
return t.get(R);
|
|
36346
|
-
}), d = e.calledBySuccess.map((
|
|
36347
|
-
const R = P(
|
|
36353
|
+
}), d = e.calledBySuccess.map((h) => {
|
|
36354
|
+
const R = P(h);
|
|
36348
36355
|
return t.get(R);
|
|
36349
|
-
}), u = e.calledByError.map((
|
|
36350
|
-
const R = P(
|
|
36356
|
+
}), u = e.calledByError.map((h) => {
|
|
36357
|
+
const R = P(h);
|
|
36351
36358
|
return t.get(R);
|
|
36352
36359
|
}), y = {
|
|
36353
36360
|
id: e.id,
|
|
@@ -36427,7 +36434,7 @@ The project currently has no global 'function-declaration' entities that can be
|
|
|
36427
36434
|
new T({
|
|
36428
36435
|
id: `${i.id}--${p.InvalidReference}`,
|
|
36429
36436
|
code: p.InvalidReference,
|
|
36430
|
-
severity:
|
|
36437
|
+
severity: f.Error,
|
|
36431
36438
|
message: `Entity of type "${r.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.
|
|
36432
36439
|
References can either be an ID string or an object with exacly four properties: 'id', 'entityId', 'entityType', 'type'.${d}`,
|
|
36433
36440
|
issue: null
|
|
@@ -36445,7 +36452,7 @@ References can either be an ID string or an object with exacly four properties:
|
|
|
36445
36452
|
new T({
|
|
36446
36453
|
id: `${this.id}--${p.InvalidParentUpdate}`,
|
|
36447
36454
|
code: p.InvalidParentUpdate,
|
|
36448
|
-
severity:
|
|
36455
|
+
severity: f.Error,
|
|
36449
36456
|
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.
|
|
36450
36457
|
If an entity is called by another, they must be in the same scope, which means they have the same parent.
|
|
36451
36458
|
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.`,
|
|
@@ -36699,8 +36706,8 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
36699
36706
|
}), e || this.calledBy.forEach((o) => {
|
|
36700
36707
|
i.push(o), o.removeCall(this);
|
|
36701
36708
|
}), {
|
|
36702
|
-
affected:
|
|
36703
|
-
removed:
|
|
36709
|
+
affected: A(i),
|
|
36710
|
+
removed: A(a)
|
|
36704
36711
|
};
|
|
36705
36712
|
}
|
|
36706
36713
|
// Re-add this entity to the state after it was removed
|
|
@@ -36733,7 +36740,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
36733
36740
|
}), this.calledByEntry.forEach((i) => {
|
|
36734
36741
|
t.push(i), i.addCall(this);
|
|
36735
36742
|
}), {
|
|
36736
|
-
affected:
|
|
36743
|
+
affected: A(t),
|
|
36737
36744
|
self: this
|
|
36738
36745
|
};
|
|
36739
36746
|
}
|
|
@@ -36929,18 +36936,18 @@ function m6(n) {
|
|
|
36929
36936
|
case $e["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id: {
|
|
36930
36937
|
const a = n.project.entities.filter(
|
|
36931
36938
|
(m) => !!m.implements.find(
|
|
36932
|
-
(
|
|
36939
|
+
(h) => h.id === $e["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.id
|
|
36933
36940
|
)
|
|
36934
36941
|
);
|
|
36935
|
-
if (a.find((m) => !!m.properties.find((
|
|
36942
|
+
if (a.find((m) => !!m.properties.find((h) => {
|
|
36936
36943
|
var R;
|
|
36937
|
-
return
|
|
36944
|
+
return h.implements && h.implements.id === $e["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default && ((R = h.getDefaultValue()) == null ? void 0 : R.value) === !0;
|
|
36938
36945
|
}))) {
|
|
36939
|
-
const
|
|
36946
|
+
const h = a[0].properties.find((g) => g.implements && g.implements.id === $e["built-in-base-entity"].BUILT_IN_RELATIONAL_DATABASE_ENTITY.properties.default), R = (e = h == null ? void 0 : h.dataType) == null ? void 0 : e.defaultValue;
|
|
36940
36947
|
if (R)
|
|
36941
36948
|
R.value = !0;
|
|
36942
|
-
else if (
|
|
36943
|
-
const g = (t =
|
|
36949
|
+
else if (h != null && h.dataType) {
|
|
36950
|
+
const g = (t = h == null ? void 0 : h.dataType) == null ? void 0 : t.id.split("-id")[0], O = E(
|
|
36944
36951
|
{
|
|
36945
36952
|
id: g + "-default-value-id",
|
|
36946
36953
|
version: 1,
|
|
@@ -36949,11 +36956,11 @@ function m6(n) {
|
|
|
36949
36956
|
autogeneration: null,
|
|
36950
36957
|
value: !0,
|
|
36951
36958
|
valueAsType: null,
|
|
36952
|
-
parent:
|
|
36959
|
+
parent: h == null ? void 0 : h.dataType.toReference()
|
|
36953
36960
|
},
|
|
36954
36961
|
n.project
|
|
36955
36962
|
);
|
|
36956
|
-
return O.setParent(
|
|
36963
|
+
return O.setParent(h == null ? void 0 : h.dataType), O.initChildren(), O.addSelfToProject(), {
|
|
36957
36964
|
newEntities: [O]
|
|
36958
36965
|
};
|
|
36959
36966
|
}
|
|
@@ -36972,7 +36979,7 @@ function m6(n) {
|
|
|
36972
36979
|
if (y)
|
|
36973
36980
|
y.value = !0;
|
|
36974
36981
|
else if (u != null && u.dataType) {
|
|
36975
|
-
const m = u == null ? void 0 : u.dataType.id.split("-id")[0],
|
|
36982
|
+
const m = u == null ? void 0 : u.dataType.id.split("-id")[0], h = E(
|
|
36976
36983
|
{
|
|
36977
36984
|
id: m + "-default-value-id",
|
|
36978
36985
|
version: 1,
|
|
@@ -36985,7 +36992,7 @@ function m6(n) {
|
|
|
36985
36992
|
},
|
|
36986
36993
|
n.project
|
|
36987
36994
|
);
|
|
36988
|
-
|
|
36995
|
+
h.setParent(u == null ? void 0 : u.dataType), h.initChildren(), h.addSelfToProject();
|
|
36989
36996
|
}
|
|
36990
36997
|
return {
|
|
36991
36998
|
newEntities: [d.implemented]
|
|
@@ -37083,7 +37090,7 @@ function pc(n, e, t) {
|
|
|
37083
37090
|
n.project
|
|
37084
37091
|
), $ = g.clone(y, O);
|
|
37085
37092
|
return $.abstract = !1, $.implements = g, $.setParent(y), y.addProperty($), $;
|
|
37086
|
-
}),
|
|
37093
|
+
}), h = n.abstractMethods.map(
|
|
37087
37094
|
(g) => {
|
|
37088
37095
|
const O = s + en(
|
|
37089
37096
|
g.name,
|
|
@@ -37105,7 +37112,7 @@ function pc(n, e, t) {
|
|
|
37105
37112
|
return y.addMethod(_e), _e.setParent(y), _e.initChildren(), _e.implements = g, _e;
|
|
37106
37113
|
}
|
|
37107
37114
|
);
|
|
37108
|
-
o.properties = m, o.methods =
|
|
37115
|
+
o.properties = m, o.methods = h;
|
|
37109
37116
|
const R = T6(y);
|
|
37110
37117
|
return {
|
|
37111
37118
|
implemented: y,
|
|
@@ -37140,11 +37147,11 @@ function yc(n, e) {
|
|
|
37140
37147
|
};
|
|
37141
37148
|
}
|
|
37142
37149
|
function E6(n, e, t = /* @__PURE__ */ new Set()) {
|
|
37143
|
-
const i = $n(n), a = $n(e), s = i.filter((u) => !a.includes(u)), o = i.filter((u) => a.includes(u)), d = s.reduce((u, y) => t.has(y.id) ? u : (t.add(y.id),
|
|
37150
|
+
const i = $n(n), a = $n(e), s = i.filter((u) => !a.includes(u)), o = i.filter((u) => a.includes(u)), d = s.reduce((u, y) => t.has(y.id) ? u : (t.add(y.id), A([
|
|
37144
37151
|
...u,
|
|
37145
37152
|
...E6(y, e, t)
|
|
37146
37153
|
])), []);
|
|
37147
|
-
return
|
|
37154
|
+
return A([
|
|
37148
37155
|
...o,
|
|
37149
37156
|
...d
|
|
37150
37157
|
]);
|
|
@@ -37234,7 +37241,7 @@ function ht(n) {
|
|
|
37234
37241
|
const e = n.map(
|
|
37235
37242
|
(t) => He(t)
|
|
37236
37243
|
);
|
|
37237
|
-
return
|
|
37244
|
+
return A(e);
|
|
37238
37245
|
}
|
|
37239
37246
|
function Sf(n) {
|
|
37240
37247
|
return Me.includes(n.type) ? [
|
|
@@ -37518,7 +37525,7 @@ function Qr(n) {
|
|
|
37518
37525
|
...n.outputs || []
|
|
37519
37526
|
].map((a) => Yc(a)).filter((a) => a !== null);
|
|
37520
37527
|
e.push(
|
|
37521
|
-
...
|
|
37528
|
+
...A(
|
|
37522
37529
|
i
|
|
37523
37530
|
)
|
|
37524
37531
|
);
|
|
@@ -37527,7 +37534,7 @@ function Qr(n) {
|
|
|
37527
37534
|
const t = Yc(n);
|
|
37528
37535
|
t && e.push(t);
|
|
37529
37536
|
}
|
|
37530
|
-
return
|
|
37537
|
+
return A(
|
|
37531
37538
|
e
|
|
37532
37539
|
);
|
|
37533
37540
|
}
|
|
@@ -37560,9 +37567,9 @@ function Yc(n) {
|
|
|
37560
37567
|
}
|
|
37561
37568
|
function B6(n) {
|
|
37562
37569
|
const e = n.internalCalls || [];
|
|
37563
|
-
return
|
|
37570
|
+
return A(
|
|
37564
37571
|
ht(
|
|
37565
|
-
|
|
37572
|
+
A(
|
|
37566
37573
|
e.flatMap((t) => [...t.successCalls, ...t.errorCalls])
|
|
37567
37574
|
)
|
|
37568
37575
|
)
|
|
@@ -37590,7 +37597,7 @@ function ei(n) {
|
|
|
37590
37597
|
);
|
|
37591
37598
|
}), t;
|
|
37592
37599
|
}
|
|
37593
|
-
function
|
|
37600
|
+
function A(n) {
|
|
37594
37601
|
const e = /* @__PURE__ */ new Set();
|
|
37595
37602
|
return n.filter((t) => !t || e.has(t.id) ? !1 : (e.add(t.id), !0));
|
|
37596
37603
|
}
|
|
@@ -37631,7 +37638,7 @@ function $n(n, e = !1) {
|
|
|
37631
37638
|
(s) => He(s)
|
|
37632
37639
|
);
|
|
37633
37640
|
t.push(
|
|
37634
|
-
...
|
|
37641
|
+
...A(
|
|
37635
37642
|
i
|
|
37636
37643
|
),
|
|
37637
37644
|
...a
|
|
@@ -37640,7 +37647,7 @@ function $n(n, e = !1) {
|
|
|
37640
37647
|
if (Me.includes(n.type) && n.type !== r.Condition) {
|
|
37641
37648
|
const i = n == null ? void 0 : n.outputs.map((o) => ei(o)).flat(), a = n.successCalls.map((o) => He(o)), s = n.errorCalls.map((o) => He(o));
|
|
37642
37649
|
t.push(
|
|
37643
|
-
...
|
|
37650
|
+
...A(
|
|
37644
37651
|
i
|
|
37645
37652
|
),
|
|
37646
37653
|
...a,
|
|
@@ -37669,7 +37676,7 @@ function $n(n, e = !1) {
|
|
|
37669
37676
|
(o) => He(o)
|
|
37670
37677
|
), s = n.successCalls.map((o) => He(o));
|
|
37671
37678
|
t.push(
|
|
37672
|
-
...
|
|
37679
|
+
...A(
|
|
37673
37680
|
i
|
|
37674
37681
|
),
|
|
37675
37682
|
...s,
|
|
@@ -37681,13 +37688,13 @@ function $n(n, e = !1) {
|
|
|
37681
37688
|
return [];
|
|
37682
37689
|
const i = n.inputs.map((s) => ei(s)).flat(), a = n.calls.map((s) => He(s));
|
|
37683
37690
|
t.push(
|
|
37684
|
-
...
|
|
37691
|
+
...A(
|
|
37685
37692
|
i
|
|
37686
37693
|
),
|
|
37687
37694
|
...a
|
|
37688
37695
|
);
|
|
37689
37696
|
}
|
|
37690
|
-
return
|
|
37697
|
+
return A(
|
|
37691
37698
|
t
|
|
37692
37699
|
);
|
|
37693
37700
|
}
|
|
@@ -37702,14 +37709,14 @@ function M6(n, e = !1) {
|
|
|
37702
37709
|
...M6(s, e)
|
|
37703
37710
|
], [])
|
|
37704
37711
|
];
|
|
37705
|
-
return
|
|
37712
|
+
return A(i);
|
|
37706
37713
|
}
|
|
37707
37714
|
function _6(n) {
|
|
37708
37715
|
const e = Qr(n), t = [
|
|
37709
37716
|
...e,
|
|
37710
37717
|
...e.reduce((i, a) => [...i, ..._6(a)], [])
|
|
37711
37718
|
];
|
|
37712
|
-
return
|
|
37719
|
+
return A(t);
|
|
37713
37720
|
}
|
|
37714
37721
|
function hc(n) {
|
|
37715
37722
|
return n.implements.reduce((e, t) => t.type === r.CustomEntity ? [
|
|
@@ -37796,7 +37803,7 @@ function Kn(n) {
|
|
|
37796
37803
|
] : t,
|
|
37797
37804
|
[]
|
|
37798
37805
|
);
|
|
37799
|
-
return
|
|
37806
|
+
return A(e);
|
|
37800
37807
|
}
|
|
37801
37808
|
function _f(n) {
|
|
37802
37809
|
return n.type === r.PrimitiveEntity ? !0 : n.type === r.BuiltInBaseEntity ? n.interactive : !Kn(n).find(
|
|
@@ -38109,15 +38116,15 @@ function sa(n) {
|
|
|
38109
38116
|
].forEach((u) => {
|
|
38110
38117
|
Se.includes(u.type) && u !== n && (Ie(
|
|
38111
38118
|
n
|
|
38112
|
-
).find((
|
|
38119
|
+
).find((h) => h === u) || i(s, u));
|
|
38113
38120
|
});
|
|
38114
38121
|
let d;
|
|
38115
38122
|
if (Me.includes(s.type) && (d = s), d) {
|
|
38116
38123
|
const u = sa(d);
|
|
38117
38124
|
u.reachable || Ie(
|
|
38118
38125
|
n
|
|
38119
|
-
).find((
|
|
38120
|
-
i(s,
|
|
38126
|
+
).find((h) => h === s) || u.blocks.forEach((h) => {
|
|
38127
|
+
i(s, h.blockedByCalling);
|
|
38121
38128
|
});
|
|
38122
38129
|
}
|
|
38123
38130
|
}), n.calledByError.forEach((s) => {
|
|
@@ -38126,22 +38133,22 @@ function sa(n) {
|
|
|
38126
38133
|
].forEach((u) => {
|
|
38127
38134
|
Se.includes(u.type) && u !== n && (Ie(
|
|
38128
38135
|
n
|
|
38129
|
-
).find((
|
|
38136
|
+
).find((h) => h === u) || i(s, u));
|
|
38130
38137
|
});
|
|
38131
38138
|
let d;
|
|
38132
38139
|
if (Me.includes(s.type) && (d = s), d) {
|
|
38133
38140
|
const u = sa(d);
|
|
38134
38141
|
u.reachable || Ie(
|
|
38135
38142
|
n
|
|
38136
|
-
).find((
|
|
38137
|
-
i(s,
|
|
38143
|
+
).find((h) => h === s) || u.blocks.forEach((h) => {
|
|
38144
|
+
i(s, h.blockedByCalling);
|
|
38138
38145
|
});
|
|
38139
38146
|
}
|
|
38140
38147
|
}), n.calledByEntry.forEach((s) => {
|
|
38141
38148
|
if ([...s.calls || []].forEach((u) => {
|
|
38142
38149
|
Se.includes(u.type) && u !== n && (Ie(
|
|
38143
38150
|
n
|
|
38144
|
-
).find((
|
|
38151
|
+
).find((h) => h === u) || i(s, u));
|
|
38145
38152
|
}), s === a)
|
|
38146
38153
|
return;
|
|
38147
38154
|
let d;
|
|
@@ -38195,7 +38202,7 @@ function q6(n, e) {
|
|
|
38195
38202
|
new T({
|
|
38196
38203
|
id: `${n.id}--${n.parent}--${p.SelfReference}`,
|
|
38197
38204
|
code: p.SelfReference,
|
|
38198
|
-
severity:
|
|
38205
|
+
severity: f.Error,
|
|
38199
38206
|
message: `Entity of type "${n.type}" with id "${n.id}", has a reference to itself at 'parent'. This is not allowed. Change the reference string or the 'entityId' property of the reference object.`,
|
|
38200
38207
|
issue: null
|
|
38201
38208
|
})
|
|
@@ -38208,7 +38215,7 @@ function q6(n, e) {
|
|
|
38208
38215
|
new T({
|
|
38209
38216
|
id: `${n.id}--${n.parent}--${p.InvalidParentReference}`,
|
|
38210
38217
|
code: p.InvalidParentReference,
|
|
38211
|
-
severity:
|
|
38218
|
+
severity: f.Error,
|
|
38212
38219
|
message: `Entity of type "${n.type}" with id "${n.id}", has a parent reference that isn't pointing to an entity of type 'project' or 'data-type'.`,
|
|
38213
38220
|
issue: null
|
|
38214
38221
|
})
|
|
@@ -38216,7 +38223,7 @@ function q6(n, e) {
|
|
|
38216
38223
|
new T({
|
|
38217
38224
|
id: `${n.id}--${n.parent}--${p.ReferencedEntityNotFound}`,
|
|
38218
38225
|
code: p.ReferencedEntityNotFound,
|
|
38219
|
-
severity:
|
|
38226
|
+
severity: f.Error,
|
|
38220
38227
|
message: `Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${n.parent}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
|
|
38221
38228
|
issue: null
|
|
38222
38229
|
})
|
|
@@ -38228,7 +38235,7 @@ function q6(n, e) {
|
|
|
38228
38235
|
new T({
|
|
38229
38236
|
id: `${n.id}--${i}--${p.SelfReference}`,
|
|
38230
38237
|
code: p.SelfReference,
|
|
38231
|
-
severity:
|
|
38238
|
+
severity: f.Error,
|
|
38232
38239
|
message: `Entity of type "${n.type}" with id "${n.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.`,
|
|
38233
38240
|
issue: null
|
|
38234
38241
|
})
|
|
@@ -38242,7 +38249,7 @@ function q6(n, e) {
|
|
|
38242
38249
|
new T({
|
|
38243
38250
|
id: `${n.id}--${i}--${p.InvalidImplementsReference}`,
|
|
38244
38251
|
code: p.InvalidImplementsReference,
|
|
38245
|
-
severity:
|
|
38252
|
+
severity: f.Error,
|
|
38246
38253
|
message: `Entity of type "${n.type}" with id "${n.id}", has an 'implements' reference that isn't pointing to an abstract entity.`,
|
|
38247
38254
|
issue: null
|
|
38248
38255
|
})
|
|
@@ -38250,7 +38257,7 @@ function q6(n, e) {
|
|
|
38250
38257
|
new T({
|
|
38251
38258
|
id: `${n.id}--${i}--${p.InvalidImplementsReference}`,
|
|
38252
38259
|
code: p.InvalidImplementsReference,
|
|
38253
|
-
severity:
|
|
38260
|
+
severity: f.Error,
|
|
38254
38261
|
message: `Entity of type "${n.type}" with id "${n.id}", has an 'implements' reference that isn't pointing to an entity of type 'custom-entity' or 'built-in-base-entity'.`,
|
|
38255
38262
|
issue: null
|
|
38256
38263
|
})
|
|
@@ -38258,7 +38265,7 @@ function q6(n, e) {
|
|
|
38258
38265
|
new T({
|
|
38259
38266
|
id: `${n.id}--${i}--${p.ReferencedEntityNotFound}`,
|
|
38260
38267
|
code: p.ReferencedEntityNotFound,
|
|
38261
|
-
severity:
|
|
38268
|
+
severity: f.Error,
|
|
38262
38269
|
message: `Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${i}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
|
|
38263
38270
|
issue: null
|
|
38264
38271
|
})
|
|
@@ -38267,7 +38274,7 @@ function q6(n, e) {
|
|
|
38267
38274
|
new T({
|
|
38268
38275
|
id: `${n.id}--${b.InvalidObjectStructure}`,
|
|
38269
38276
|
code: b.InvalidObjectStructure,
|
|
38270
|
-
severity:
|
|
38277
|
+
severity: f.Error,
|
|
38271
38278
|
message: `Entity of type "${n.type}" with id "${n.id}", has an 'implements' property that isn't an array.`,
|
|
38272
38279
|
issue: null
|
|
38273
38280
|
})
|
|
@@ -38279,7 +38286,7 @@ function q6(n, e) {
|
|
|
38279
38286
|
new T({
|
|
38280
38287
|
id: `${n.id}--${i}--${p.InvalidExtendsReference}`,
|
|
38281
38288
|
code: p.InvalidExtendsReference,
|
|
38282
|
-
severity:
|
|
38289
|
+
severity: f.Error,
|
|
38283
38290
|
message: `Entity of type "${n.type}" with id "${n.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?`,
|
|
38284
38291
|
issue: null
|
|
38285
38292
|
})
|
|
@@ -38287,7 +38294,7 @@ function q6(n, e) {
|
|
|
38287
38294
|
new T({
|
|
38288
38295
|
id: `${n.id}--${i}--${p.InvalidExtendsReference}`,
|
|
38289
38296
|
code: p.InvalidExtendsReference,
|
|
38290
|
-
severity:
|
|
38297
|
+
severity: f.Error,
|
|
38291
38298
|
message: `Entity of type "${n.type}" with id "${n.id}", has an 'extends' reference that isn't pointing to an entity of type 'custom-entity' or 'built-in-base-entity'.`,
|
|
38292
38299
|
issue: null
|
|
38293
38300
|
})
|
|
@@ -38295,7 +38302,7 @@ function q6(n, e) {
|
|
|
38295
38302
|
new T({
|
|
38296
38303
|
id: `${n.id}--${i}--${p.ReferencedEntityNotFound}`,
|
|
38297
38304
|
code: p.ReferencedEntityNotFound,
|
|
38298
|
-
severity:
|
|
38305
|
+
severity: f.Error,
|
|
38299
38306
|
message: `Entity of type "${n.type}" with id "${n.id}", is referencing an entity with id "${i}" that isn't yet found in the project. Perhaps it should be created first. Or perhaps the ID is incorrect.`,
|
|
38300
38307
|
issue: null
|
|
38301
38308
|
})
|
|
@@ -38396,7 +38403,7 @@ const ue = class ue {
|
|
|
38396
38403
|
new T({
|
|
38397
38404
|
id: `${e.id}--${p.NewEntityWouldOverriteExisting}`,
|
|
38398
38405
|
code: p.NewEntityWouldOverriteExisting,
|
|
38399
|
-
severity:
|
|
38406
|
+
severity: f.Error,
|
|
38400
38407
|
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.
|
|
38401
38408
|
You can inspect the existing 'entity' field with the 'describe_entity' action. Like so:
|
|
38402
38409
|
${Xt(
|
|
@@ -38416,7 +38423,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
38416
38423
|
}
|
|
38417
38424
|
// Returns the properties that are not abstract from the entities extended by this entity
|
|
38418
38425
|
get extendedProperties() {
|
|
38419
|
-
return
|
|
38426
|
+
return A([
|
|
38420
38427
|
...this.extends.reduce((e, t) => [...[
|
|
38421
38428
|
...t.properties,
|
|
38422
38429
|
...t.extendedProperties
|
|
@@ -38433,7 +38440,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
38433
38440
|
new T({
|
|
38434
38441
|
id: `${this.id}--${p.InvalidParentUpdate}`,
|
|
38435
38442
|
code: p.InvalidParentUpdate,
|
|
38436
|
-
severity:
|
|
38443
|
+
severity: f.Error,
|
|
38437
38444
|
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.`,
|
|
38438
38445
|
issue: null
|
|
38439
38446
|
})
|
|
@@ -38623,8 +38630,8 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
38623
38630
|
});
|
|
38624
38631
|
i.push(...o), a.push(...d);
|
|
38625
38632
|
}), {
|
|
38626
|
-
affected:
|
|
38627
|
-
removed:
|
|
38633
|
+
affected: A(i),
|
|
38634
|
+
removed: A(a)
|
|
38628
38635
|
});
|
|
38629
38636
|
}
|
|
38630
38637
|
// Re-add this entity to the state after it was removed
|
|
@@ -38652,7 +38659,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
38652
38659
|
const { affected: a } = i.restore({ seenEntities: e });
|
|
38653
38660
|
t.push(...a);
|
|
38654
38661
|
}), {
|
|
38655
|
-
affected:
|
|
38662
|
+
affected: A(t),
|
|
38656
38663
|
self: this
|
|
38657
38664
|
});
|
|
38658
38665
|
}
|
|
@@ -38816,13 +38823,13 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
38816
38823
|
const e = this.implements.filter(
|
|
38817
38824
|
(i) => i.type === r.CustomEntity || i.type === r.BuiltInBaseEntity && i.interactive
|
|
38818
38825
|
);
|
|
38819
|
-
return [
|
|
38826
|
+
return A([
|
|
38820
38827
|
...this.methods,
|
|
38821
38828
|
...this.extends.flatMap((i) => i.getAllInteractiveMethods()),
|
|
38822
38829
|
...e.flatMap(
|
|
38823
38830
|
(i) => i.getAllInteractiveMethods()
|
|
38824
38831
|
)
|
|
38825
|
-
];
|
|
38832
|
+
]);
|
|
38826
38833
|
}
|
|
38827
38834
|
};
|
|
38828
38835
|
l(ue, "MUTABLE_BASE_PROPERTIES", [
|
|
@@ -38909,7 +38916,7 @@ class $t {
|
|
|
38909
38916
|
}
|
|
38910
38917
|
// Returns the properties that are not abstract from the entities extended by this entity
|
|
38911
38918
|
get extendedProperties() {
|
|
38912
|
-
return
|
|
38919
|
+
return A(
|
|
38913
38920
|
this.extends.reduce((e, t) => {
|
|
38914
38921
|
const i = [
|
|
38915
38922
|
...t.properties,
|
|
@@ -39088,7 +39095,7 @@ class $t {
|
|
|
39088
39095
|
(i) => i.type === r.BuiltInBaseEntity && i.interactive || i.type === r.PrimitiveEntity
|
|
39089
39096
|
).forEach((i) => {
|
|
39090
39097
|
i instanceof $t && e.push(...i.getAllInteractiveMethods());
|
|
39091
|
-
})), e;
|
|
39098
|
+
})), A(e);
|
|
39092
39099
|
}
|
|
39093
39100
|
}
|
|
39094
39101
|
function W6(n) {
|
|
@@ -39137,7 +39144,7 @@ class Nt {
|
|
|
39137
39144
|
}
|
|
39138
39145
|
// Returns the properties that are not abstract from the entities extended by this entity
|
|
39139
39146
|
get extendedProperties() {
|
|
39140
|
-
return
|
|
39147
|
+
return A(
|
|
39141
39148
|
this.extends.reduce((e, t) => {
|
|
39142
39149
|
const i = [
|
|
39143
39150
|
...t.properties,
|
|
@@ -39307,7 +39314,7 @@ class Nt {
|
|
|
39307
39314
|
(i) => i.type === r.BuiltInBaseEntity && i.interactive || i.type === r.PrimitiveEntity
|
|
39308
39315
|
).forEach((i) => {
|
|
39309
39316
|
i instanceof $t && e.push(...i.getAllInteractiveMethods());
|
|
39310
|
-
}), e;
|
|
39317
|
+
}), A(e);
|
|
39311
39318
|
}
|
|
39312
39319
|
}
|
|
39313
39320
|
function bs(n, e) {
|
|
@@ -40363,7 +40370,7 @@ const H = class H {
|
|
|
40363
40370
|
];
|
|
40364
40371
|
}
|
|
40365
40372
|
getVariableDeclarations() {
|
|
40366
|
-
return
|
|
40373
|
+
return A([
|
|
40367
40374
|
...this.variableDeclarations,
|
|
40368
40375
|
...this.getEntryPoints().reduce((t, i) => {
|
|
40369
40376
|
const s = z(i).filter(
|
|
@@ -40848,10 +40855,10 @@ export {
|
|
|
40848
40855
|
d9 as EXECUTABLE_TYPES,
|
|
40849
40856
|
iE as EXECUTION_OPERATIONS,
|
|
40850
40857
|
dr as EntityError,
|
|
40851
|
-
|
|
40858
|
+
f as EntityErrorSeverity,
|
|
40852
40859
|
T as EntityGenerationError,
|
|
40853
40860
|
p as EntityGenerationErrorCode,
|
|
40854
|
-
|
|
40861
|
+
S as EntityInstanceErrorCode,
|
|
40855
40862
|
nt as EntityOperations,
|
|
40856
40863
|
r as EntityType,
|
|
40857
40864
|
c3 as EntityWithLogicScopeClass,
|
|
@@ -41075,7 +41082,7 @@ export {
|
|
|
41075
41082
|
Cd as executionBuiltInEntity,
|
|
41076
41083
|
Od as executionBuiltInEntityAbortMethod,
|
|
41077
41084
|
pv as executionBuiltInEntityAbortMethodParentRef,
|
|
41078
|
-
|
|
41085
|
+
A as filterOutDuplicateEntities,
|
|
41079
41086
|
S9 as filterOutDuplicateErrors,
|
|
41080
41087
|
C6 as findReferenceToSelfInList,
|
|
41081
41088
|
x3 as findReferencesToSelfInProject,
|