@elyx-code/project-logic-tree 0.0.7019 → 0.0.7020
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.cjs +5 -5
- package/dist/index.js +337 -117
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -79927,9 +79927,7 @@ function Ev(s) {
|
|
|
79927
79927
|
);
|
|
79928
79928
|
return s.isList ? `List of ${e} values${u}` : e.slice(0, 1).toUpperCase() + e.slice(1) + u;
|
|
79929
79929
|
} else if (s.entity.type === d.BuiltInBaseEntity) {
|
|
79930
|
-
const e = fK(
|
|
79931
|
-
s.entity
|
|
79932
|
-
);
|
|
79930
|
+
const e = fK(s.entity);
|
|
79933
79931
|
return s.isList ? `List of ${e} values${u}` : e.slice(0, 1).toUpperCase() + e.slice(1) + u;
|
|
79934
79932
|
} else if (s.entity.type === d.LiteralValue) {
|
|
79935
79933
|
if (s.entity.name === me.Null)
|
|
@@ -80001,7 +79999,7 @@ function Uui(s) {
|
|
|
80001
79999
|
if (s.includes(Re.HTTP_ENDPOINT))
|
|
80002
80000
|
return "HTTP endpoint";
|
|
80003
80001
|
if (s.includes(Re.PERSISTED_ENTITY))
|
|
80004
|
-
return "
|
|
80002
|
+
return "SQL database table";
|
|
80005
80003
|
if (s.includes(Re.CRON_JOB))
|
|
80006
80004
|
return "Scheduled execution";
|
|
80007
80005
|
if (s.includes(Re.RELATIONAL_DATABASE))
|
|
@@ -80052,7 +80050,7 @@ function jui(s) {
|
|
|
80052
80050
|
if (s.includes(Re.HTTP_ENDPOINT))
|
|
80053
80051
|
return "HTTP endpoint";
|
|
80054
80052
|
if (s.includes(Re.PERSISTED_ENTITY))
|
|
80055
|
-
return "ORM wrapper on SQL table (
|
|
80053
|
+
return "ORM wrapper on SQL table (SQL database table)";
|
|
80056
80054
|
if (s.includes(Re.CRON_JOB))
|
|
80057
80055
|
return "Cron-job (scheduled execution)";
|
|
80058
80056
|
if (s.includes(Re.RELATIONAL_DATABASE))
|
|
@@ -80104,7 +80102,7 @@ function fK(s) {
|
|
|
80104
80102
|
case Re.HTTP_ENDPOINT:
|
|
80105
80103
|
return "HTTP endpoint";
|
|
80106
80104
|
case Re.PERSISTED_ENTITY:
|
|
80107
|
-
return "
|
|
80105
|
+
return "SQL database table";
|
|
80108
80106
|
case Re.CRON_JOB:
|
|
80109
80107
|
return "Scheduled execution";
|
|
80110
80108
|
case Re.RELATIONAL_DATABASE:
|
|
@@ -80158,7 +80156,9 @@ function dZi(s) {
|
|
|
80158
80156
|
const u = cP(s);
|
|
80159
80157
|
if (!u) {
|
|
80160
80158
|
const i = Nv(s);
|
|
80161
|
-
return i.includes(Re.HTTP_ENDPOINT) ? "HTTP endpoint" : i.includes(Re.PERSISTED_ENTITY) ? "
|
|
80159
|
+
return i.includes(Re.HTTP_ENDPOINT) ? "HTTP endpoint" : i.includes(Re.PERSISTED_ENTITY) ? "SQL database table" : i.includes(Re.CRON_JOB) ? "Scheduled execution" : i.includes(Re.RELATIONAL_DATABASE) ? "Relational database" : i.includes(Re.SQL_ROW_TRANSFORMER) ? "Row transformer" : i.includes(Re.GOOGLE_AUTH_CONNECTION) ? "Google account connection" : i.includes(Re.SLACK_AUTH_CONNECTION) ? "Slack account connection" : i.includes(Re.AIRTABLE_AUTH_CONNECTION) ? "Airtable account connection" : i.includes(Re.MICROSOFT_AUTH_CONNECTION) ? "Microsoft account connection" : i.includes(Re.OPENAI_AUTH_CONNECTION) ? "OpenAI account connection" : i.includes(Re.ATLASSIAN_AUTH_CONNECTION) ? "Atlassian account connection" : i.includes(Re.JIRA_AUTH_CONNECTION) ? "Jira account connection" : i.includes(
|
|
80160
|
+
Re.EXTERNAL_INTEGRATION_CONNECTION
|
|
80161
|
+
) ? "External integration connection" : i.includes(Re.SQL_ROOT_CONNECTION_CONFIG) ? "SQL connection config" : i.includes(Re.SQL_SSL_CONNECTION_CONFIG) ? "SSL config" : fe(s, s.project) + " entity";
|
|
80162
80162
|
}
|
|
80163
80163
|
return fe(u, s.project) + " entity";
|
|
80164
80164
|
}
|
|
@@ -80734,7 +80734,10 @@ function fe(s, u) {
|
|
|
80734
80734
|
case Tn.UpSQLRowTransformer:
|
|
80735
80735
|
return "Transform row";
|
|
80736
80736
|
default:
|
|
80737
|
-
return Zr(s.type).replaceAll(
|
|
80737
|
+
return Zr(s.type).replaceAll(
|
|
80738
|
+
"-",
|
|
80739
|
+
" "
|
|
80740
|
+
);
|
|
80738
80741
|
}
|
|
80739
80742
|
return r;
|
|
80740
80743
|
}
|
|
@@ -80746,7 +80749,10 @@ function fe(s, u) {
|
|
|
80746
80749
|
case d.Search:
|
|
80747
80750
|
return Fui(s);
|
|
80748
80751
|
case d.GlobalEvent:
|
|
80749
|
-
return s.implements ? fe(
|
|
80752
|
+
return s.implements ? fe(
|
|
80753
|
+
s.implements,
|
|
80754
|
+
u
|
|
80755
|
+
) : Zr(s.type).replaceAll("-", " ");
|
|
80750
80756
|
case d.Operation:
|
|
80751
80757
|
case d.InternalCall:
|
|
80752
80758
|
case d.Loop:
|
|
@@ -80891,7 +80897,9 @@ function hK(s, u) {
|
|
|
80891
80897
|
else {
|
|
80892
80898
|
const c = [];
|
|
80893
80899
|
a.type === d.DefinitionEntity ? c.push(
|
|
80894
|
-
...a.methods.map(
|
|
80900
|
+
...a.methods.map(
|
|
80901
|
+
(f) => f
|
|
80902
|
+
)
|
|
80895
80903
|
) : a.type === d.Project ? c.push(
|
|
80896
80904
|
...a.functions.map(
|
|
80897
80905
|
(f) => f
|
|
@@ -81135,7 +81143,10 @@ function Zui(s, u) {
|
|
|
81135
81143
|
(a) => a.id !== s.id && a.name.toLowerCase() === s.name.toLowerCase()
|
|
81136
81144
|
);
|
|
81137
81145
|
if (r.length) {
|
|
81138
|
-
const a = Zp(
|
|
81146
|
+
const a = Zp(
|
|
81147
|
+
s.name,
|
|
81148
|
+
r
|
|
81149
|
+
);
|
|
81139
81150
|
s.metaSync({ name: a }, u);
|
|
81140
81151
|
}
|
|
81141
81152
|
}
|
|
@@ -101808,7 +101819,9 @@ const pr = class pr extends Pn {
|
|
|
101808
101819
|
});
|
|
101809
101820
|
let T;
|
|
101810
101821
|
if (i.declaration) {
|
|
101811
|
-
const N = oe(
|
|
101822
|
+
const N = oe(
|
|
101823
|
+
i.declaration
|
|
101824
|
+
);
|
|
101812
101825
|
T = r.get(
|
|
101813
101826
|
N
|
|
101814
101827
|
);
|
|
@@ -101860,7 +101873,10 @@ const pr = class pr extends Pn {
|
|
|
101860
101873
|
{
|
|
101861
101874
|
parent: {
|
|
101862
101875
|
list: !1,
|
|
101863
|
-
types: [
|
|
101876
|
+
types: [
|
|
101877
|
+
...rn,
|
|
101878
|
+
d.Project
|
|
101879
|
+
],
|
|
101864
101880
|
optional: !0
|
|
101865
101881
|
}
|
|
101866
101882
|
// calledByEntry: {
|
|
@@ -101882,7 +101898,10 @@ const pr = class pr extends Pn {
|
|
|
101882
101898
|
const h = Nn(
|
|
101883
101899
|
a
|
|
101884
101900
|
);
|
|
101885
|
-
if (e.push(
|
|
101901
|
+
if (e.push(
|
|
101902
|
+
...f.errors,
|
|
101903
|
+
...h.errors
|
|
101904
|
+
), c.push(...h.explanations), !i.declaration)
|
|
101886
101905
|
e.push(
|
|
101887
101906
|
new Ve({
|
|
101888
101907
|
id: `${i.id}--${_e.InvalidObjectStructure}`,
|
|
@@ -101906,7 +101925,9 @@ const pr = class pr extends Pn {
|
|
|
101906
101925
|
})
|
|
101907
101926
|
), c.push({
|
|
101908
101927
|
id: gr.AllConditionActionDescriptors,
|
|
101909
|
-
message: hO(
|
|
101928
|
+
message: hO(
|
|
101929
|
+
r
|
|
101930
|
+
)
|
|
101910
101931
|
});
|
|
101911
101932
|
else {
|
|
101912
101933
|
const T = ywi(
|
|
@@ -101961,9 +101982,15 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
101961
101982
|
const h = f.entity.afterAllChildrenInitialized(i);
|
|
101962
101983
|
r.push(...h.updated), a.push(...h.added), c.push(...h.removed), e.push(...h.affected);
|
|
101963
101984
|
}), i == null || i.attemptAutoclose("sync-dependents", this.id), {
|
|
101964
|
-
updated: V(
|
|
101965
|
-
|
|
101966
|
-
|
|
101985
|
+
updated: V(
|
|
101986
|
+
r
|
|
101987
|
+
),
|
|
101988
|
+
added: V(
|
|
101989
|
+
a
|
|
101990
|
+
),
|
|
101991
|
+
removed: V(
|
|
101992
|
+
c
|
|
101993
|
+
),
|
|
101967
101994
|
affected: V(
|
|
101968
101995
|
e
|
|
101969
101996
|
),
|
|
@@ -101983,9 +102010,15 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
101983
102010
|
c.push(...m), e.push(...T), f.push(...E);
|
|
101984
102011
|
}
|
|
101985
102012
|
return {
|
|
101986
|
-
updated: V(
|
|
101987
|
-
|
|
101988
|
-
|
|
102013
|
+
updated: V(
|
|
102014
|
+
c
|
|
102015
|
+
),
|
|
102016
|
+
added: V(
|
|
102017
|
+
e
|
|
102018
|
+
),
|
|
102019
|
+
removed: V(
|
|
102020
|
+
f
|
|
102021
|
+
),
|
|
101989
102022
|
affected: V(
|
|
101990
102023
|
h
|
|
101991
102024
|
),
|
|
@@ -102005,9 +102038,15 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102005
102038
|
c.push(...m), e.push(...T), f.push(...E);
|
|
102006
102039
|
}
|
|
102007
102040
|
return {
|
|
102008
|
-
updated: V(
|
|
102009
|
-
|
|
102010
|
-
|
|
102041
|
+
updated: V(
|
|
102042
|
+
c
|
|
102043
|
+
),
|
|
102044
|
+
added: V(
|
|
102045
|
+
e
|
|
102046
|
+
),
|
|
102047
|
+
removed: V(
|
|
102048
|
+
f
|
|
102049
|
+
),
|
|
102011
102050
|
affected: V(
|
|
102012
102051
|
h
|
|
102013
102052
|
),
|
|
@@ -102072,7 +102111,10 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102072
102111
|
return this.knownVersions = this.knownVersions ? this.knownVersions.set(this.version, i) : (/* @__PURE__ */ new Map()).set(this.version, i), this.apply(i), this;
|
|
102073
102112
|
}
|
|
102074
102113
|
snapshot() {
|
|
102075
|
-
const i = new pr(
|
|
102114
|
+
const i = new pr(
|
|
102115
|
+
this,
|
|
102116
|
+
this.project
|
|
102117
|
+
);
|
|
102076
102118
|
return this.apply(i);
|
|
102077
102119
|
}
|
|
102078
102120
|
/**
|
|
@@ -102095,9 +102137,15 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102095
102137
|
r.push(this.parent, ...f.updated), a.push(...f.added), c.push(...f.removed);
|
|
102096
102138
|
}
|
|
102097
102139
|
return {
|
|
102098
|
-
updated: V(
|
|
102099
|
-
|
|
102100
|
-
|
|
102140
|
+
updated: V(
|
|
102141
|
+
r
|
|
102142
|
+
),
|
|
102143
|
+
added: V(
|
|
102144
|
+
a
|
|
102145
|
+
),
|
|
102146
|
+
removed: V(
|
|
102147
|
+
c
|
|
102148
|
+
),
|
|
102101
102149
|
affected: V(
|
|
102102
102150
|
e
|
|
102103
102151
|
),
|
|
@@ -102120,7 +102168,9 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102120
102168
|
updated: V(
|
|
102121
102169
|
a
|
|
102122
102170
|
),
|
|
102123
|
-
added: V(
|
|
102171
|
+
added: V(
|
|
102172
|
+
c
|
|
102173
|
+
),
|
|
102124
102174
|
removed: V(
|
|
102125
102175
|
e
|
|
102126
102176
|
),
|
|
@@ -102156,9 +102206,15 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102156
102206
|
);
|
|
102157
102207
|
}
|
|
102158
102208
|
return this.metaSync(h.toShallowJSON(), null), this.previousVersion = h.previousVersion, this.version = h.version, this.createdAt = h.createdAt, this.author = h.author, this.deleted = h.deleted, this.inputs = [...h.inputs], this.declaration = h.declaration, this.andChildrenGroup = h.andChildrenGroup ? [...h.andChildrenGroup] : null, this.orChildrenGroup = h.orChildrenGroup ? [...h.orChildrenGroup] : null, this.successCalls = [...h.successCalls], this.errorCalls = [...h.errorCalls], this.calledBySuccess = [...h.calledBySuccess], this.calledByError = [...h.calledByError], this.calledByEntry = [...h.calledByEntry], this.parent = h.parent, {
|
|
102159
|
-
updated: V(
|
|
102160
|
-
|
|
102161
|
-
|
|
102209
|
+
updated: V(
|
|
102210
|
+
a
|
|
102211
|
+
),
|
|
102212
|
+
added: V(
|
|
102213
|
+
c
|
|
102214
|
+
),
|
|
102215
|
+
removed: V(
|
|
102216
|
+
e
|
|
102217
|
+
),
|
|
102162
102218
|
affected: V(
|
|
102163
102219
|
f
|
|
102164
102220
|
),
|
|
@@ -102198,7 +102254,9 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102198
102254
|
throw r == null || r.attemptAutoclose(
|
|
102199
102255
|
_.UpdateWithShallowTransfer,
|
|
102200
102256
|
this.id
|
|
102201
|
-
), new Error(
|
|
102257
|
+
), new Error(
|
|
102258
|
+
`${this.type} with id '${this.id}' must have a 'parent'`
|
|
102259
|
+
);
|
|
102202
102260
|
if (i.declaration) {
|
|
102203
102261
|
const e = oe(
|
|
102204
102262
|
i.declaration
|
|
@@ -102208,7 +102266,9 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102208
102266
|
f && this.setDeclaration(f);
|
|
102209
102267
|
}
|
|
102210
102268
|
return (a = i.andChildrenGroup) == null || a.forEach((e) => {
|
|
102211
|
-
const f = oe(e), h = this.project.get(
|
|
102269
|
+
const f = oe(e), h = this.project.get(
|
|
102270
|
+
f
|
|
102271
|
+
);
|
|
102212
102272
|
h && (this.addToAndGroup(h, r), h.setParent(this, r));
|
|
102213
102273
|
}), [...this.andChildrenGroup || []].forEach((e) => {
|
|
102214
102274
|
var h;
|
|
@@ -102216,7 +102276,9 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102216
102276
|
(m) => oe(m) === e.id
|
|
102217
102277
|
)) || (this.removeChildGroup(e, r), e.removeFromParent(r));
|
|
102218
102278
|
}), (c = i.orChildrenGroup) == null || c.forEach((e) => {
|
|
102219
|
-
const f = oe(e), h = this.project.get(
|
|
102279
|
+
const f = oe(e), h = this.project.get(
|
|
102280
|
+
f
|
|
102281
|
+
);
|
|
102220
102282
|
h && (this.addToOrGroup(h, r), h.setParent(this, r));
|
|
102221
102283
|
}), [...this.orChildrenGroup || []].forEach((e) => {
|
|
102222
102284
|
var h;
|
|
@@ -102224,7 +102286,9 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102224
102286
|
(m) => oe(m) === e.id
|
|
102225
102287
|
)) || (this.removeChildGroup(e, r), e.removeFromParent(r));
|
|
102226
102288
|
}), i.calledByEntry.forEach((e) => {
|
|
102227
|
-
const f = oe(e), h = this.project.get(
|
|
102289
|
+
const f = oe(e), h = this.project.get(
|
|
102290
|
+
f
|
|
102291
|
+
);
|
|
102228
102292
|
h && (this.addEntryCaller(h, r), h.addCall(this, r));
|
|
102229
102293
|
}), [...this.calledByEntry].forEach((e) => {
|
|
102230
102294
|
i.calledByEntry.find(
|
|
@@ -102297,7 +102361,9 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102297
102361
|
);
|
|
102298
102362
|
}
|
|
102299
102363
|
return (a = i.calledByEntry) == null || a.forEach((f) => {
|
|
102300
|
-
const h = oe(f), m = this.project.get(
|
|
102364
|
+
const h = oe(f), m = this.project.get(
|
|
102365
|
+
h
|
|
102366
|
+
);
|
|
102301
102367
|
if (m)
|
|
102302
102368
|
this.addEntryCaller(m, r), m.addCall(this, r);
|
|
102303
102369
|
else
|
|
@@ -102357,7 +102423,9 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102357
102423
|
`${this.type} with id '${this.id}' has a 'parent' reference '${e}' that isn't found in the project`
|
|
102358
102424
|
);
|
|
102359
102425
|
} else
|
|
102360
|
-
throw new Error(
|
|
102426
|
+
throw new Error(
|
|
102427
|
+
`${this.type} with id '${this.id}' must have a 'parent'`
|
|
102428
|
+
);
|
|
102361
102429
|
if (this.initialData.declaration) {
|
|
102362
102430
|
const e = oe(
|
|
102363
102431
|
this.initialData.declaration
|
|
@@ -102367,7 +102435,9 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102367
102435
|
f && (this.setDeclaration(f), i.push(f));
|
|
102368
102436
|
}
|
|
102369
102437
|
return this.initialData.calledByEntry.forEach((e) => {
|
|
102370
|
-
const f = oe(e), h = this.project.get(
|
|
102438
|
+
const f = oe(e), h = this.project.get(
|
|
102439
|
+
f
|
|
102440
|
+
);
|
|
102371
102441
|
h && this.addEntryCaller(h, null);
|
|
102372
102442
|
}), this.initialData.calledBySuccess.forEach((e) => {
|
|
102373
102443
|
const f = oe(e), h = this.project.get(
|
|
@@ -102380,9 +102450,15 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102380
102450
|
);
|
|
102381
102451
|
h && this.addErrorCaller(h, null);
|
|
102382
102452
|
}), {
|
|
102383
|
-
updated: V(
|
|
102384
|
-
|
|
102385
|
-
|
|
102453
|
+
updated: V(
|
|
102454
|
+
i
|
|
102455
|
+
),
|
|
102456
|
+
added: V(
|
|
102457
|
+
r
|
|
102458
|
+
),
|
|
102459
|
+
removed: V(
|
|
102460
|
+
a
|
|
102461
|
+
),
|
|
102386
102462
|
affected: V(
|
|
102387
102463
|
c
|
|
102388
102464
|
),
|
|
@@ -102416,7 +102492,9 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102416
102492
|
const r = [], a = [], c = [], e = [];
|
|
102417
102493
|
if (this.initialized = !0, this.parent.type === d.Condition) {
|
|
102418
102494
|
let A = this.index || 0;
|
|
102419
|
-
const C = (this.parent.declaration.id === un.And ? this.parent.andChildrenGroup || [] : this.parent.orChildrenGroup || []).filter(
|
|
102495
|
+
const C = (this.parent.declaration.id === un.And ? this.parent.andChildrenGroup || [] : this.parent.orChildrenGroup || []).filter(
|
|
102496
|
+
(D) => !D.deleted && D.id !== this.id
|
|
102497
|
+
);
|
|
102420
102498
|
C.length && (A > C.length + 1 ? A = C.length : A < 0 && (A = 0)), C.find(
|
|
102421
102499
|
(D) => (D.index || 0) === A && !D.deleted
|
|
102422
102500
|
) && C.filter(
|
|
@@ -102425,7 +102503,10 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102425
102503
|
D.metaSync(
|
|
102426
102504
|
{ index: (D.index || 0) + 1 },
|
|
102427
102505
|
i
|
|
102428
|
-
), i == null || i.add(
|
|
102506
|
+
), i == null || i.add(
|
|
102507
|
+
D,
|
|
102508
|
+
Q.Updated
|
|
102509
|
+
), r.push(D);
|
|
102429
102510
|
}), this.metaSync(
|
|
102430
102511
|
{
|
|
102431
102512
|
index: A
|
|
@@ -102433,7 +102514,11 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102433
102514
|
i
|
|
102434
102515
|
);
|
|
102435
102516
|
}
|
|
102436
|
-
(T = this.andChildrenGroup) != null && T.length && this.andChildrenGroup.sort(
|
|
102517
|
+
(T = this.andChildrenGroup) != null && T.length && this.andChildrenGroup.sort(
|
|
102518
|
+
(A, C) => (A.index || 0) - (C.index || 0)
|
|
102519
|
+
), (E = this.orChildrenGroup) != null && E.length && this.orChildrenGroup.sort(
|
|
102520
|
+
(A, C) => (A.index || 0) - (C.index || 0)
|
|
102521
|
+
), this.inputs.sort(
|
|
102437
102522
|
(A, C) => {
|
|
102438
102523
|
var R, D;
|
|
102439
102524
|
return (A.index ?? ((R = A.declaration) == null ? void 0 : R.index)) - (C.index ?? ((D = C.declaration) == null ? void 0 : D.index));
|
|
@@ -102448,9 +102533,15 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102448
102533
|
_.AfterAllChildrenInitialized,
|
|
102449
102534
|
this.id
|
|
102450
102535
|
), {
|
|
102451
|
-
updated: V(
|
|
102452
|
-
|
|
102453
|
-
|
|
102536
|
+
updated: V(
|
|
102537
|
+
r
|
|
102538
|
+
),
|
|
102539
|
+
added: V(
|
|
102540
|
+
a
|
|
102541
|
+
),
|
|
102542
|
+
removed: V(
|
|
102543
|
+
c
|
|
102544
|
+
),
|
|
102454
102545
|
affected: V(
|
|
102455
102546
|
e
|
|
102456
102547
|
),
|
|
@@ -102480,9 +102571,15 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102480
102571
|
}), this.calledByError.forEach((f) => {
|
|
102481
102572
|
f.addErrorCall(this, i), r.push(f);
|
|
102482
102573
|
}), this.subscribe(), this.subscribeToDependencies(), i == null || i.attemptAutoclose("add-self-to-project", this.id), {
|
|
102483
|
-
updated: V(
|
|
102484
|
-
|
|
102485
|
-
|
|
102574
|
+
updated: V(
|
|
102575
|
+
r
|
|
102576
|
+
),
|
|
102577
|
+
added: V(
|
|
102578
|
+
a
|
|
102579
|
+
),
|
|
102580
|
+
removed: V(
|
|
102581
|
+
c
|
|
102582
|
+
),
|
|
102486
102583
|
affected: V(
|
|
102487
102584
|
e
|
|
102488
102585
|
),
|
|
@@ -102510,7 +102607,10 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102510
102607
|
if (!this.checkCanEdit(this, r))
|
|
102511
102608
|
return ye.warn(
|
|
102512
102609
|
`[removeInput] User is not allowed to edit this ${this.type} entity with id: ${this.id}`
|
|
102513
|
-
), r == null || r.attemptAutoclose(
|
|
102610
|
+
), r == null || r.attemptAutoclose(
|
|
102611
|
+
_.RemoveInput,
|
|
102612
|
+
this.id
|
|
102613
|
+
), this;
|
|
102514
102614
|
const a = this.inputs.findIndex((c) => c.id === i.id);
|
|
102515
102615
|
return a > -1 && (this.inputs.splice(a, 1), r && (r == null || r.add(this, Q.Affected))), r == null || r.attemptAutoclose(_.RemoveInput, this.id), this;
|
|
102516
102616
|
}
|
|
@@ -102557,7 +102657,10 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102557
102657
|
owner: this,
|
|
102558
102658
|
errorReason: je.CannotSuccessCallItself,
|
|
102559
102659
|
rootAction: ((c = r == null ? void 0 : r.self) == null ? void 0 : c.id) === this.id && (r == null ? void 0 : r.actionName) === _.AddSuccessCaller
|
|
102560
|
-
})), this.calledBySuccess.find((e) => e.id === i.id) || (this.calledBySuccess.push(i), r == null || r.add(this, Q.Updated), a && Ht(this, r)), r == null || r.attemptAutoclose(
|
|
102660
|
+
})), this.calledBySuccess.find((e) => e.id === i.id) || (this.calledBySuccess.push(i), r == null || r.add(this, Q.Updated), a && Ht(this, r)), r == null || r.attemptAutoclose(
|
|
102661
|
+
_.AddSuccessCaller,
|
|
102662
|
+
this.id
|
|
102663
|
+
), this) : this;
|
|
102561
102664
|
}
|
|
102562
102665
|
addErrorCaller(i, r = this.project.addChangeSet(
|
|
102563
102666
|
new S(
|
|
@@ -102581,7 +102684,10 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102581
102684
|
owner: this,
|
|
102582
102685
|
errorReason: je.CannotErrorCallItself,
|
|
102583
102686
|
rootAction: ((c = r == null ? void 0 : r.self) == null ? void 0 : c.id) === this.id && (r == null ? void 0 : r.actionName) === _.AddErrorCaller
|
|
102584
|
-
})), this.calledByError.find((e) => e.id === i.id) || (this.calledByError.push(i), r == null || r.add(this, Q.Updated), a && Ht(this, r)), r == null || r.attemptAutoclose(
|
|
102687
|
+
})), this.calledByError.find((e) => e.id === i.id) || (this.calledByError.push(i), r == null || r.add(this, Q.Updated), a && Ht(this, r)), r == null || r.attemptAutoclose(
|
|
102688
|
+
_.AddErrorCaller,
|
|
102689
|
+
this.id
|
|
102690
|
+
), this) : this;
|
|
102585
102691
|
}
|
|
102586
102692
|
addEntryCaller(i, r = this.project.addChangeSet(
|
|
102587
102693
|
new S(
|
|
@@ -102605,7 +102711,10 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102605
102711
|
owner: this,
|
|
102606
102712
|
errorReason: je.CannotEntryCallItself,
|
|
102607
102713
|
rootAction: ((c = r == null ? void 0 : r.self) == null ? void 0 : c.id) === this.id && (r == null ? void 0 : r.actionName) === _.AddEntryCaller
|
|
102608
|
-
})), this.calledByEntry.find((e) => e.id === i.id) || (this.calledByEntry.push(i), r == null || r.add(this, Q.Updated), a && Ht(this, r)), r == null || r.attemptAutoclose(
|
|
102714
|
+
})), this.calledByEntry.find((e) => e.id === i.id) || (this.calledByEntry.push(i), r == null || r.add(this, Q.Updated), a && Ht(this, r)), r == null || r.attemptAutoclose(
|
|
102715
|
+
_.AddEntryCaller,
|
|
102716
|
+
this.id
|
|
102717
|
+
), this) : this;
|
|
102609
102718
|
}
|
|
102610
102719
|
addErrorCall(i, r = this.project.addChangeSet(
|
|
102611
102720
|
new S(
|
|
@@ -102653,7 +102762,10 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102653
102762
|
owner: this,
|
|
102654
102763
|
errorReason: je.CannotSuccessCallItself,
|
|
102655
102764
|
rootAction: ((c = r == null ? void 0 : r.self) == null ? void 0 : c.id) === this.id && (r == null ? void 0 : r.actionName) === _.AddSuccessCaller
|
|
102656
|
-
})), this.successCalls.find((e) => e.id === i.id) || (this.successCalls.push(i), a && Ht(this, r), r == null || r.add(this, Q.Affected)), r == null || r.attemptAutoclose(
|
|
102765
|
+
})), this.successCalls.find((e) => e.id === i.id) || (this.successCalls.push(i), a && Ht(this, r), r == null || r.add(this, Q.Affected)), r == null || r.attemptAutoclose(
|
|
102766
|
+
_.AddSuccessCall,
|
|
102767
|
+
this.id
|
|
102768
|
+
), this) : this;
|
|
102657
102769
|
}
|
|
102658
102770
|
removeCall(i, r = this.project.addChangeSet(
|
|
102659
102771
|
new S(
|
|
@@ -102745,7 +102857,10 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102745
102857
|
);
|
|
102746
102858
|
a !== -1 && (this.orChildrenGroup.splice(a, 1), r == null || r.add(this, Q.Updated));
|
|
102747
102859
|
}
|
|
102748
|
-
return r == null || r.attemptAutoclose(
|
|
102860
|
+
return r == null || r.attemptAutoclose(
|
|
102861
|
+
_.RemoveChildGroup,
|
|
102862
|
+
this.id
|
|
102863
|
+
), this;
|
|
102749
102864
|
}
|
|
102750
102865
|
setDeclaration(i) {
|
|
102751
102866
|
return this.declaration = i, this;
|
|
@@ -102763,26 +102878,31 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102763
102878
|
return this.initialized || this.startedInitialization ? this : (this.startedInitialization = !0, this.declaration = we(
|
|
102764
102879
|
this.initialData.declaration,
|
|
102765
102880
|
this.project
|
|
102766
|
-
), this.initialData.andChildrenGroup && (this.andChildrenGroup = this.initialData.andChildrenGroup.map(
|
|
102767
|
-
|
|
102768
|
-
|
|
102769
|
-
|
|
102770
|
-
|
|
102771
|
-
|
|
102772
|
-
|
|
102773
|
-
|
|
102774
|
-
|
|
102775
|
-
|
|
102776
|
-
|
|
102777
|
-
|
|
102778
|
-
|
|
102881
|
+
), this.initialData.andChildrenGroup && (this.andChildrenGroup = this.initialData.andChildrenGroup.map(
|
|
102882
|
+
(r) => {
|
|
102883
|
+
const a = we(
|
|
102884
|
+
r,
|
|
102885
|
+
this.project
|
|
102886
|
+
);
|
|
102887
|
+
return a.setParent(this, null), a.initChildren(i), a;
|
|
102888
|
+
}
|
|
102889
|
+
)), this.initialData.orChildrenGroup && (this.orChildrenGroup = this.initialData.orChildrenGroup.map(
|
|
102890
|
+
(r) => {
|
|
102891
|
+
const a = we(
|
|
102892
|
+
r,
|
|
102893
|
+
this.project
|
|
102894
|
+
);
|
|
102895
|
+
return a.setParent(this, null), a.initChildren(i), a;
|
|
102896
|
+
}
|
|
102897
|
+
)), this.successCalls = this.initialData.successCalls.map((r) => {
|
|
102779
102898
|
const a = we(
|
|
102780
102899
|
r,
|
|
102781
102900
|
this.project
|
|
102782
102901
|
);
|
|
102783
|
-
if (a.addSuccessCaller(this, null), [
|
|
102784
|
-
|
|
102785
|
-
|
|
102902
|
+
if (a.addSuccessCaller(this, null), [
|
|
102903
|
+
d.BreakStatement,
|
|
102904
|
+
d.ContinueStatement
|
|
102905
|
+
].includes(a.type))
|
|
102786
102906
|
a.setParent(
|
|
102787
102907
|
this.parent.parent,
|
|
102788
102908
|
null
|
|
@@ -102801,9 +102921,10 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102801
102921
|
r,
|
|
102802
102922
|
this.project
|
|
102803
102923
|
);
|
|
102804
|
-
if (a.addErrorCaller(this, null), [
|
|
102805
|
-
|
|
102806
|
-
|
|
102924
|
+
if (a.addErrorCaller(this, null), [
|
|
102925
|
+
d.BreakStatement,
|
|
102926
|
+
d.ContinueStatement
|
|
102927
|
+
].includes(a.type))
|
|
102807
102928
|
a.setParent(
|
|
102808
102929
|
this.parent.parent,
|
|
102809
102930
|
null
|
|
@@ -102907,10 +103028,19 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102907
103028
|
self: this
|
|
102908
103029
|
};
|
|
102909
103030
|
const r = [], a = [], c = [], e = [];
|
|
102910
|
-
return this.parent.type === d.Project ? (this.parent.removeCondition(this), e.push(this.parent)) : ((f = this.parent) == null ? void 0 : f.type) === d.Condition ? this.parent.removeChildGroup(this) : this.parent.detachedChildren.includes(this) && this.parent.unsubscribeDetachedChild(this), i == null || i.attemptAutoclose(
|
|
102911
|
-
|
|
102912
|
-
|
|
102913
|
-
|
|
103031
|
+
return this.parent.type === d.Project ? (this.parent.removeCondition(this), e.push(this.parent)) : ((f = this.parent) == null ? void 0 : f.type) === d.Condition ? this.parent.removeChildGroup(this, i) : this.parent.detachedChildren.includes(this) && this.parent.unsubscribeDetachedChild(this), i == null || i.attemptAutoclose(
|
|
103032
|
+
_.RemoveFromParent,
|
|
103033
|
+
this.id
|
|
103034
|
+
), {
|
|
103035
|
+
added: V(
|
|
103036
|
+
c
|
|
103037
|
+
),
|
|
103038
|
+
updated: V(
|
|
103039
|
+
r
|
|
103040
|
+
),
|
|
103041
|
+
removed: V(
|
|
103042
|
+
a
|
|
103043
|
+
),
|
|
102914
103044
|
affected: V(
|
|
102915
103045
|
e
|
|
102916
103046
|
),
|
|
@@ -102944,7 +103074,10 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102944
103074
|
owner: this,
|
|
102945
103075
|
errorReason: je.ActionOwnerEntityNonDeletable,
|
|
102946
103076
|
rootAction: ((h = r == null ? void 0 : r.self) == null ? void 0 : h.id) === this.id && (r == null ? void 0 : r.actionName) === _.RemoveEntity
|
|
102947
|
-
}), r == null || r.attemptAutoclose(
|
|
103077
|
+
}), r == null || r.attemptAutoclose(
|
|
103078
|
+
_.RemoveEntity,
|
|
103079
|
+
this.id
|
|
103080
|
+
), {
|
|
102948
103081
|
added: [],
|
|
102949
103082
|
updated: [],
|
|
102950
103083
|
removed: [],
|
|
@@ -102953,7 +103086,10 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
102953
103086
|
};
|
|
102954
103087
|
const a = [], c = [], e = [], f = [];
|
|
102955
103088
|
if (r != null && r.hasRemoved(this.id))
|
|
102956
|
-
return r == null || r.attemptAutoclose(
|
|
103089
|
+
return r == null || r.attemptAutoclose(
|
|
103090
|
+
_.RemoveEntity,
|
|
103091
|
+
this.id
|
|
103092
|
+
), {
|
|
102957
103093
|
added: [],
|
|
102958
103094
|
updated: [],
|
|
102959
103095
|
removed: [],
|
|
@@ -103002,9 +103138,15 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
103002
103138
|
});
|
|
103003
103139
|
}
|
|
103004
103140
|
return r == null || r.attemptAutoclose(_.RemoveEntity, this.id), {
|
|
103005
|
-
added: V(
|
|
103006
|
-
|
|
103007
|
-
|
|
103141
|
+
added: V(
|
|
103142
|
+
e
|
|
103143
|
+
),
|
|
103144
|
+
updated: V(
|
|
103145
|
+
a
|
|
103146
|
+
),
|
|
103147
|
+
removed: V(
|
|
103148
|
+
c
|
|
103149
|
+
),
|
|
103008
103150
|
affected: V(
|
|
103009
103151
|
f
|
|
103010
103152
|
),
|
|
@@ -103027,9 +103169,27 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
103027
103169
|
if (!this.checkCanEdit(this, i))
|
|
103028
103170
|
return ye.warn(
|
|
103029
103171
|
`[restore] User is not allowed to edit this ${this.type} entity with id: ${this.id}`
|
|
103030
|
-
), i == null || i.attemptAutoclose(
|
|
103172
|
+
), i == null || i.attemptAutoclose(
|
|
103173
|
+
_.RestoreEntity,
|
|
103174
|
+
this.id
|
|
103175
|
+
), {
|
|
103176
|
+
added: [],
|
|
103177
|
+
updated: [],
|
|
103178
|
+
removed: [],
|
|
103179
|
+
affected: [],
|
|
103180
|
+
self: this
|
|
103181
|
+
};
|
|
103031
103182
|
const r = [], a = [], c = [], e = [];
|
|
103032
|
-
return i != null && i.hasAdded(this.id) ? (i == null || i.attemptAutoclose(
|
|
103183
|
+
return i != null && i.hasAdded(this.id) ? (i == null || i.attemptAutoclose(
|
|
103184
|
+
_.RestoreEntity,
|
|
103185
|
+
this.id
|
|
103186
|
+
), {
|
|
103187
|
+
added: [],
|
|
103188
|
+
updated: [],
|
|
103189
|
+
removed: [],
|
|
103190
|
+
affected: [],
|
|
103191
|
+
self: this
|
|
103192
|
+
}) : (this.subscribe(), this.project.unsubscribeDeletedInstance(this), this.metaSync({ deleted: !1 }, i), Object.values(this.detachedDependents).forEach((f) => {
|
|
103033
103193
|
const {
|
|
103034
103194
|
updated: h,
|
|
103035
103195
|
removed: m,
|
|
@@ -103066,9 +103226,15 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
103066
103226
|
}), this.calledByEntry.forEach((f) => {
|
|
103067
103227
|
a.push(f), f.addCall(this, i);
|
|
103068
103228
|
}), this.parent.type === d.Project && this.project.addCondition(this), i == null || i.attemptAutoclose(_.RestoreEntity, this.id), {
|
|
103069
|
-
added: V(
|
|
103070
|
-
|
|
103071
|
-
|
|
103229
|
+
added: V(
|
|
103230
|
+
r
|
|
103231
|
+
),
|
|
103232
|
+
updated: V(
|
|
103233
|
+
a
|
|
103234
|
+
),
|
|
103235
|
+
removed: V(
|
|
103236
|
+
c
|
|
103237
|
+
),
|
|
103072
103238
|
affected: V(
|
|
103073
103239
|
e
|
|
103074
103240
|
),
|
|
@@ -103102,7 +103268,9 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
103102
103268
|
(e) => e.toFlatIds(i)
|
|
103103
103269
|
)) || [],
|
|
103104
103270
|
...this.inputs.flatMap((e) => e.toFlatIds(i)),
|
|
103105
|
-
...this.successCalls.flatMap(
|
|
103271
|
+
...this.successCalls.flatMap(
|
|
103272
|
+
(e) => e.toFlatIds(i)
|
|
103273
|
+
),
|
|
103106
103274
|
...this.errorCalls.flatMap((e) => e.toFlatIds(i)),
|
|
103107
103275
|
...this.calledBy.flatMap((e) => e.toFlatIds(i))
|
|
103108
103276
|
]);
|
|
@@ -103156,8 +103324,12 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
103156
103324
|
calledBySuccess: this.calledBySuccess.map(
|
|
103157
103325
|
(c) => c.toReference()
|
|
103158
103326
|
),
|
|
103159
|
-
calledByError: this.calledByError.map(
|
|
103160
|
-
|
|
103327
|
+
calledByError: this.calledByError.map(
|
|
103328
|
+
(c) => c.toReference()
|
|
103329
|
+
),
|
|
103330
|
+
calledByEntry: this.calledByEntry.map(
|
|
103331
|
+
(c) => c.toReference()
|
|
103332
|
+
),
|
|
103161
103333
|
inputs: this.inputs.map((c) => c.toJSON(i)),
|
|
103162
103334
|
parent: this.parent.toReference()
|
|
103163
103335
|
});
|
|
@@ -103165,7 +103337,11 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
103165
103337
|
toJSONClone(i = At) {
|
|
103166
103338
|
var a, c, e, f, h, m, T;
|
|
103167
103339
|
let r;
|
|
103168
|
-
return (a = i.seenEntityMaps) != null && a.has(this.id) ? r = i.seenEntityMaps.get(this.id) : (r = i.newId || jn(
|
|
103340
|
+
return (a = i.seenEntityMaps) != null && a.has(this.id) ? r = i.seenEntityMaps.get(this.id) : (r = i.newId || jn(
|
|
103341
|
+
this,
|
|
103342
|
+
this.project,
|
|
103343
|
+
i.uuidStrategy
|
|
103344
|
+
), i.seenEntityMaps && i.seenEntityMaps.set(this.id, r)), (c = i.seenEntities) != null && c.has(r) || (e = i.seenEntities) != null && e.has(this.id) ? this.toReference({ seenEntityMaps: i.seenEntityMaps }) : ((f = i.seenEntities) == null || f.add(r), (h = i.seenEntities) == null || h.add(this.id), {
|
|
103169
103345
|
id: r,
|
|
103170
103346
|
version: L.UUID.uuid(),
|
|
103171
103347
|
createdAt: i.timestamp || k().toISOString(),
|
|
@@ -103248,13 +103424,19 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
103248
103424
|
x: this.x,
|
|
103249
103425
|
y: this.y,
|
|
103250
103426
|
declaration: this.declaration.toReference(i),
|
|
103251
|
-
andChildrenGroup: ((c = this.andChildrenGroup) == null ? void 0 : c.map(
|
|
103252
|
-
|
|
103427
|
+
andChildrenGroup: ((c = this.andChildrenGroup) == null ? void 0 : c.map(
|
|
103428
|
+
(f) => f.toReference(i)
|
|
103429
|
+
)) || null,
|
|
103430
|
+
orChildrenGroup: ((e = this.orChildrenGroup) == null ? void 0 : e.map(
|
|
103431
|
+
(f) => f.toReference(i)
|
|
103432
|
+
)) || null,
|
|
103253
103433
|
inputs: this.inputs.map((f) => f.toReference(i)),
|
|
103254
103434
|
successCalls: this.successCalls.map(
|
|
103255
103435
|
(f) => f.toReference(i)
|
|
103256
103436
|
),
|
|
103257
|
-
errorCalls: this.errorCalls.map(
|
|
103437
|
+
errorCalls: this.errorCalls.map(
|
|
103438
|
+
(f) => f.toReference(i)
|
|
103439
|
+
),
|
|
103258
103440
|
calledBySuccess: this.calledBySuccess.map(
|
|
103259
103441
|
(f) => f.toReference(i)
|
|
103260
103442
|
),
|
|
@@ -103278,9 +103460,13 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
103278
103460
|
(e) => e.toFlatJSON(i)
|
|
103279
103461
|
)) || [],
|
|
103280
103462
|
...this.inputs.flatMap((e) => e.toFlatJSON(i)),
|
|
103281
|
-
...this.successCalls.flatMap(
|
|
103463
|
+
...this.successCalls.flatMap(
|
|
103464
|
+
(e) => e.toFlatJSON(i)
|
|
103465
|
+
),
|
|
103282
103466
|
...this.errorCalls.flatMap((e) => e.toFlatJSON(i)),
|
|
103283
|
-
...this.calledBy.flatMap(
|
|
103467
|
+
...this.calledBy.flatMap(
|
|
103468
|
+
(e) => e.toFlatJSON(i)
|
|
103469
|
+
)
|
|
103284
103470
|
]);
|
|
103285
103471
|
}
|
|
103286
103472
|
toGenerationTarget(i = At) {
|
|
@@ -103384,9 +103570,19 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
103384
103570
|
);
|
|
103385
103571
|
r ? E.setParent(r, i) : E.setParent(this.parent, null), c && E.subscribe(), E.initChildren(i), i == null || i.add(E, Q.Added);
|
|
103386
103572
|
const A = (D = this.andChildrenGroup) == null ? void 0 : D.map(
|
|
103387
|
-
($) => $.clone(
|
|
103573
|
+
($) => $.clone(
|
|
103574
|
+
i,
|
|
103575
|
+
E,
|
|
103576
|
+
L.UUID.uuid(),
|
|
103577
|
+
c
|
|
103578
|
+
)
|
|
103388
103579
|
), C = (N = this.orChildrenGroup) == null ? void 0 : N.map(
|
|
103389
|
-
($) => $.clone(
|
|
103580
|
+
($) => $.clone(
|
|
103581
|
+
i,
|
|
103582
|
+
E,
|
|
103583
|
+
L.UUID.uuid(),
|
|
103584
|
+
c
|
|
103585
|
+
)
|
|
103390
103586
|
);
|
|
103391
103587
|
E.andChildrenGroup = A || null, E.orChildrenGroup = C || null;
|
|
103392
103588
|
const R = (G = this.inputs) == null ? void 0 : G.map(
|
|
@@ -103412,7 +103608,10 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
103412
103608
|
)) {
|
|
103413
103609
|
return this.checkCanEdit(this, r) ? (this.andChildrenGroup || (this.andChildrenGroup = []), this.andChildrenGroup.includes(i) || (this.andChildrenGroup.push(i), r == null || r.add(i, Q.Affected)), r == null || r.attemptAutoclose(_.AddToAndGroup, this.id), this) : (ye.warn(
|
|
103414
103610
|
`[addToAndGroup] User is not allowed to edit this ${this.type} entity with id: ${this.id}`
|
|
103415
|
-
), r == null || r.attemptAutoclose(
|
|
103611
|
+
), r == null || r.attemptAutoclose(
|
|
103612
|
+
_.AddToAndGroup,
|
|
103613
|
+
this.id
|
|
103614
|
+
), this);
|
|
103416
103615
|
}
|
|
103417
103616
|
// Add a child to the 'or' group
|
|
103418
103617
|
addToOrGroup(i, r = this.project.addChangeSet(
|
|
@@ -103427,7 +103626,10 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
103427
103626
|
)) {
|
|
103428
103627
|
return this.checkCanEdit(this, r) ? (this.orChildrenGroup || (this.orChildrenGroup = []), this.orChildrenGroup.includes(i) || (this.orChildrenGroup.push(i), r == null || r.add(i, Q.Affected)), r == null || r.attemptAutoclose(_.AddToOrGroup, this.id), this) : (ye.warn(
|
|
103429
103628
|
`[addToOrGroup] User is not allowed to edit this ${this.type} entity with id: ${this.id}`
|
|
103430
|
-
), r == null || r.attemptAutoclose(
|
|
103629
|
+
), r == null || r.attemptAutoclose(
|
|
103630
|
+
_.AddToOrGroup,
|
|
103631
|
+
this.id
|
|
103632
|
+
), this);
|
|
103431
103633
|
}
|
|
103432
103634
|
removeUnrecognizedInputs(i = this.project.addChangeSet(
|
|
103433
103635
|
new S(
|
|
@@ -103460,7 +103662,10 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
103460
103662
|
return T.id === ((E = h.declaration) == null ? void 0 : E.id);
|
|
103461
103663
|
}
|
|
103462
103664
|
)) {
|
|
103463
|
-
const T = h.remove(
|
|
103665
|
+
const T = h.remove(
|
|
103666
|
+
{ ignoreUpstream: !1 },
|
|
103667
|
+
i
|
|
103668
|
+
);
|
|
103464
103669
|
c.push(...T.removed), r.push(...T.updated);
|
|
103465
103670
|
}
|
|
103466
103671
|
}), this.inputs.filter((h, m) => {
|
|
@@ -103478,9 +103683,15 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
103478
103683
|
_.RemoveUnrecognizedInputs,
|
|
103479
103684
|
this.id
|
|
103480
103685
|
), {
|
|
103481
|
-
updated: V(
|
|
103482
|
-
|
|
103483
|
-
|
|
103686
|
+
updated: V(
|
|
103687
|
+
r
|
|
103688
|
+
),
|
|
103689
|
+
added: V(
|
|
103690
|
+
a
|
|
103691
|
+
),
|
|
103692
|
+
removed: V(
|
|
103693
|
+
c
|
|
103694
|
+
),
|
|
103484
103695
|
affected: V(
|
|
103485
103696
|
e
|
|
103486
103697
|
),
|
|
@@ -103502,7 +103713,10 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
103502
103713
|
if (!this.checkCanEdit(this, i))
|
|
103503
103714
|
return ye.warn(
|
|
103504
103715
|
`[syncInputs] User is not allowed to edit this ${this.type} entity with id: ${this.id}`
|
|
103505
|
-
), i == null || i.attemptAutoclose(
|
|
103716
|
+
), i == null || i.attemptAutoclose(
|
|
103717
|
+
_.SyncInputs,
|
|
103718
|
+
this.id
|
|
103719
|
+
), {
|
|
103506
103720
|
updated: [],
|
|
103507
103721
|
added: [],
|
|
103508
103722
|
removed: [],
|
|
@@ -103557,9 +103771,15 @@ If an entity is called by another, they must be in the same scope, which means t
|
|
|
103557
103771
|
} = E.afterAllChildrenInitialized(i);
|
|
103558
103772
|
r.push(...A), a.push(...C), c.push(...R);
|
|
103559
103773
|
}), this.inputs.sort((E, A) => E.index - A.index), i == null || i.attemptAutoclose(_.SyncInputs, this.id), {
|
|
103560
|
-
updated: V(
|
|
103561
|
-
|
|
103562
|
-
|
|
103774
|
+
updated: V(
|
|
103775
|
+
r
|
|
103776
|
+
),
|
|
103777
|
+
added: V(
|
|
103778
|
+
a
|
|
103779
|
+
),
|
|
103780
|
+
removed: V(
|
|
103781
|
+
c
|
|
103782
|
+
),
|
|
103563
103783
|
affected: V(
|
|
103564
103784
|
e
|
|
103565
103785
|
),
|
|
@@ -110244,7 +110464,7 @@ class Nci extends Ne {
|
|
|
110244
110464
|
w(this, "manifest", {
|
|
110245
110465
|
id: $e.BUILT_IN_FUNCTION_IMPLEMENTATIONS__DELETE_PERSISTED_ENTITY,
|
|
110246
110466
|
version: "1.0.0",
|
|
110247
|
-
description: 'Implementation for the built-in function "Delete
|
|
110467
|
+
description: 'Implementation for the built-in function "Delete SQL database table". It deletes the current entity as an entry in the persisted storage.',
|
|
110248
110468
|
initPriority: xe.High,
|
|
110249
110469
|
permissions: [Pe.All],
|
|
110250
110470
|
contexts: [le.Editor]
|
|
@@ -110265,7 +110485,7 @@ class $ci extends Ne {
|
|
|
110265
110485
|
w(this, "manifest", {
|
|
110266
110486
|
id: $e.BUILT_IN_FUNCTION_IMPLEMENTATIONS__CREATE_PERSISTED_ENTITY,
|
|
110267
110487
|
version: "1.0.0",
|
|
110268
|
-
description: 'Implementation for the built-in function "Create
|
|
110488
|
+
description: 'Implementation for the built-in function "Create SQL database table". It saves the current entity state to the persisted storage.',
|
|
110269
110489
|
initPriority: xe.High,
|
|
110270
110490
|
permissions: [Pe.All],
|
|
110271
110491
|
contexts: [le.Editor]
|
|
@@ -110286,7 +110506,7 @@ class Lci extends Ne {
|
|
|
110286
110506
|
w(this, "manifest", {
|
|
110287
110507
|
id: $e.BUILT_IN_FUNCTION_IMPLEMENTATIONS__UPDATE_PERSISTED_ENTITY,
|
|
110288
110508
|
version: "1.0.0",
|
|
110289
|
-
description: 'Implementation for the built-in function "Update
|
|
110509
|
+
description: 'Implementation for the built-in function "Update SQL database table". It saves the current entity state to the persisted storage.',
|
|
110290
110510
|
initPriority: xe.High,
|
|
110291
110511
|
permissions: [Pe.All],
|
|
110292
110512
|
contexts: [le.Editor]
|
|
@@ -132514,7 +132734,7 @@ function Kq(s) {
|
|
|
132514
132734
|
if (r.includes(Re.HTTP_ENDPOINT))
|
|
132515
132735
|
return "HTTP endpoint";
|
|
132516
132736
|
if (r.includes(Re.PERSISTED_ENTITY))
|
|
132517
|
-
return "
|
|
132737
|
+
return "SQL database table";
|
|
132518
132738
|
if (r.includes(Re.CRON_JOB))
|
|
132519
132739
|
return "Scheduled execution";
|
|
132520
132740
|
if (r.includes(Re.RELATIONAL_DATABASE))
|
|
@@ -132526,7 +132746,7 @@ function Kq(s) {
|
|
|
132526
132746
|
u.project
|
|
132527
132747
|
) + " entity", a = vl(r);
|
|
132528
132748
|
const c = Nv(s);
|
|
132529
|
-
return c.includes(Re.HTTP_ENDPOINT) ? "HTTP endpoint" + (a ? ", " + a : "") : c.includes(Re.PERSISTED_ENTITY) ? "
|
|
132749
|
+
return c.includes(Re.HTTP_ENDPOINT) ? "HTTP endpoint" + (a ? ", " + a : "") : c.includes(Re.PERSISTED_ENTITY) ? "SQL database table" + (a ? ", " + a : "") : c.includes(Re.CRON_JOB) ? "Scheduled execution" + (a ? ", " + a : "") : c.includes(Re.RELATIONAL_DATABASE) ? "Relational database" + (a ? ", " + a : "") : r;
|
|
132530
132750
|
}
|
|
132531
132751
|
let i = "";
|
|
132532
132752
|
return s.abstract && (i = "Template "), s.static && (i += i ? " single copy " : "Single copy "), i ? i + "definition" : "Definition";
|
|
@@ -185319,7 +185539,7 @@ VALIDATION RULES TO KEEP IN MIND:
|
|
|
185319
185539
|
- Mixing aggregate functions and raw columns in the same SELECT without proper grouping (the "Giant Bucket" rule) emits a validation error.
|
|
185320
185540
|
- Aggregate functions in WHERE / Filter Conditions emit a validation error.
|
|
185321
185541
|
- Table-valued functions in SELECT / Output Format emit a validation error.`, T5 = `Persisted entities are an ORM-like system that allows the users to define SQL tables using 'definition-entities' that implement the "persisted" 'built-in-base-entity' (id: '${j["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.id}').
|
|
185322
|
-
If they are correctly linked to a database entity, these tables will then come with methods and built-in under the hood functionality to behave like SQL tables and when the project is published, they will generate in-code SQL migrations to generate or recover the corresponding tables in the given database.`, v5 = `To attach a
|
|
185542
|
+
If they are correctly linked to a database entity, these tables will then come with methods and built-in under the hood functionality to behave like SQL tables and when the project is published, they will generate in-code SQL migrations to generate or recover the corresponding tables in the given database.`, v5 = `To attach a SQL database table to a database, you need to set the 'valueAsTypeSingle' field of the 'defaultValue' of the static property that implements the built-in 'property' entity with the id '${j["built-in-base-entity"].BUILT_IN_PERSISTED_ENTITY_ENTITY.properties.database.id}'.
|
|
185323
185543
|
Definition entities have a list of child properties under the 'properties' field. If they implement said built-in 'property' it designates them as a column.`;
|
|
185324
185544
|
var gr = /* @__PURE__ */ ((s) => (s.PassThroughCallableEntities = "pass-through-callable-entities-explanation", s.EntryPointEntities = "entry-point-entities-explanation", s.CallerEntities = "caller-entities-explanation", s.CallableEntities = "callable-entities-explanation", s.CallsUpdate = "calls-update-explanation", s.BreakAndContinueStatements = "break-and-continue-statements-explanation", s.ReturnStatement = "return-statement-explanation", s.VariableDataTypeInferrance = "variable-data-type-inferrance-explanation", s.NonInteractiveBaseEntities = "non-interactive-base-entities-explanation", s.ValueReadingEntities = "value-reading-entities-explanation", s.ValueWritingEntities = "value-writing-entities-explanation", s.PropertyNotValueReaderWriter = "property-not-value-reader-writer-explanation", s.EntitiesWithValues = "entities-with-values-explanation", s.AIValueConnectionGenerationAction = "ai-value-connection-generation-action-explanation", s.ParentAutoCalculationFromCaller = "parent-auto-calculation-from-caller-explanation", s.DataTypeEntityField = "data-type-entity-field-explanation", s.DataTypeEntityFieldOptions = "data-type-entity-field-options-explanation", s.PropertyParentField = "property-parent-field-explanation", s.PropertyParentFieldOptions = "property-parent-field-options-explanation", s.MethodParentFieldOptions = "method-parent-field-options-explanation", s.AllAvailableValueReaderEntities = "all-available-value-reader-entities-explanation", s.AllAvailableValueWriterEntities = "all-available-value-writer-entities-explanation", s.AvailableValueReadersForGivenWriter = "available-value-readers-for-given-writer-explanation", s.AvailableValueWritersForGivenReader = "available-value-writers-for-given-reader-explanation", s.AllAvailableCallableEntities = "all-available-callable-entities-explanation", s.AllAvailableEntryPointEntities = "all-available-entry-point-entities-explanation", s.AllAvailablePassThroughCallableEntities = "all-available-pass-through-callable-entities-explanation", s.AllAvailableCallerEntities = "all-available-caller-entities-explanation", s.AllAvailableTerminationEntities = "all-available-termination-entities-explanation", s.AllAvailableCallerEntitiesForGivenCallee = "all-available-caller-entities-for-given-callee-explanation", s.AllAvailableCalleeEntitiesForGivenCaller = "all-available-callee-entities-for-given-caller-explanation", s.AllAvailableGlobalFunctionDeclarationsForFunctionCall = "all-available-global-function-declarations-for-function-call-explanation", s.AllNoneInteractiveBaseEntities = "all-non-interactive-base-entities-explanation", s.AllOperationActionDescriptors = "all-operation-action-descriptors-explanation", s.AllConditionActionDescriptors = "all-condition-action-descriptors-explanation", s.AllLoopActionDescriptors = "all-loop-action-descriptors-explanation", s.AllGlobalEventsActionDescriptors = "all-global-events-action-descriptors-explanation", s.DefinitionEntities = "definition-entities-explanation", s.PropertyImplementationAndExtensionAutoEnrichment = "property-implementation-and-extension-auto-enrichment-explanation", s.MethodImplementationAndExtensionAutoEnrichment = "method-implementation-and-extension-auto-enrichment-explanation", s.ActualOwnersOfMisplacedProperties = "actual-owners-of-misplaced-properties-explanation", s.EditingProperties = "editing-properties-explanation", s.MutableMetaProperties = "mutable-meta-properties-explanation", s.InmutableMetaProperties = "inmutable-meta-properties-explanation", s.InmutableUpstreamProperties = "inmutable-upstream-properties-explanation", s.DownstreamProperties = "downstream-properties-explanation", s.FullEditingProperties = "full-editing-properties-explanation", s.OutputMapsAutogeneration = "output-maps-autogeneration-explanation", s.AvailableOutputMapsForGivenParentCallableEntity = "available-output-maps-for-given-parent-callable-entity-explanation", s.InputMapsAutogeneration = "input-maps-autogeneration-explanation", s.InternalCallsAutogeneration = "internal-calls-autogeneration-explanation", s.AvailableInputMapsForGivenParentCallableEntity = "available-input-maps-for-given-parent-callable-entity-explanation", s.AvailableInternalCallsForGivenVariablesDataTypeEntity = "available-internal-calls-for-given-variables-data-type-entity-explanation", s.NonAvailableInternalCallsWithSameDeclarationInExistingInstanciatedVariables = "non-available-internal-calls-with-same-declaration-in-existing-instanciated-variables-explanation", s.AvailableInternalCallsWithSameDeclarationInExistingInstanciatedVariables = "available-internal-calls-with-same-declaration-in-existing-instanciated-variables-explanation", s.AvailableInternalCallsOfAnyDeclarationInAllInstanciatedVariablesDataTypeEntities = "available-internal-calls-of-any-declaration-in-all-instanciated-variables-data-type-entities-explanation", s.AllAvailableMethodsThatCanBeCalledAsInternalCalls = "all-available-methods-that-can-be-called-as-internal-calls", s.InternalCalls = "internal-calls-explanation", s.ReasonsForMethodsNotAvailableAsInternalCalls = "reasons-for-methods-not-available-as-internal-calls-explanation", s.AllNonInteractiveDefinitionEntities = "all-non-interactive-definition-entities-explanation", s.AllStaticAndAbstractDefinitionEntities = "all-static-and-abstract-definition-entities-explanation", s.AllStaticNonAbstractDefinitionEntities = "all-static-non-abstract-definition-entities-explanation", s.AllAbstractNonStaticDefinitionEntities = "all-abstract-non-static-definition-entities-explanation", s.AllInstanciatableDefinitionEntities = "all-instantiatable-definition-entities-explanation", s.AutoReplacedExistingValueWriterForNewGiven = "auto-replaced-existing-value-writer-for-new-given-explanation", s.AutoResolvedCalledByBasedOnValueWriter = "auto-resolved-calledBy-based-on-value-writer-explanation", s.AllAvailableColumnNamesForSQLEnrichmentInCurrentQuery = "all-available-column-names-for-sql-enrichment-in-current-query-explanation", s.AllPropertiesThatCouldBeSelectedAsColumnsInSQLQuery = "all-properties-that-could-be-selected-as-columns-in-sql-query-explanation", s.AllTableNamesForSQLEnrichmentForGivenDatabase = "all-table-names-for-sql-enrichment-for-given-database-explanation", s.AllTableNamesForSQLEnrichment = "all-table-names-for-sql-enrichment-explanation", s.SearchStatementHydration = "search-statement-hydration-explanation", s.PersistedEntities = "persisted-entities-explanation", s.AttachingPersistedEntitiesToDatabases = "attaching-persisted-entities-to-databases-explanation", s.FullSQLSelectableBreakdown = "full-sql-selectable-breakdown-explanation", s.CurrentlyUnattachedPersistedEntities = "currently-unattached-persisted-entities-explanation", s.ReferencedInputDeclarationReplacedWithInputMapInQuery = "referenced-input-declaration-replaced-with-input-map-in-query-explanation", s))(gr || {});
|
|
185325
185545
|
function Df(s) {
|