@elyx-code/project-logic-tree 0.0.6135 → 0.0.6138
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 +277 -279
- package/dist/index.umd.cjs +20 -20
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5379,7 +5379,7 @@ var No;
|
|
|
5379
5379
|
// second overwrites first
|
|
5380
5380
|
});
|
|
5381
5381
|
})(No || (No = {}));
|
|
5382
|
-
const
|
|
5382
|
+
const G = oe.arrayToEnum([
|
|
5383
5383
|
"string",
|
|
5384
5384
|
"nan",
|
|
5385
5385
|
"number",
|
|
@@ -5403,23 +5403,23 @@ const F = oe.arrayToEnum([
|
|
|
5403
5403
|
]), Mn = (r) => {
|
|
5404
5404
|
switch (typeof r) {
|
|
5405
5405
|
case "undefined":
|
|
5406
|
-
return
|
|
5406
|
+
return G.undefined;
|
|
5407
5407
|
case "string":
|
|
5408
|
-
return
|
|
5408
|
+
return G.string;
|
|
5409
5409
|
case "number":
|
|
5410
|
-
return isNaN(r) ?
|
|
5410
|
+
return isNaN(r) ? G.nan : G.number;
|
|
5411
5411
|
case "boolean":
|
|
5412
|
-
return
|
|
5412
|
+
return G.boolean;
|
|
5413
5413
|
case "function":
|
|
5414
|
-
return
|
|
5414
|
+
return G.function;
|
|
5415
5415
|
case "bigint":
|
|
5416
|
-
return
|
|
5416
|
+
return G.bigint;
|
|
5417
5417
|
case "symbol":
|
|
5418
|
-
return
|
|
5418
|
+
return G.symbol;
|
|
5419
5419
|
case "object":
|
|
5420
|
-
return Array.isArray(r) ?
|
|
5420
|
+
return Array.isArray(r) ? G.array : r === null ? G.null : r.then && typeof r.then == "function" && r.catch && typeof r.catch == "function" ? G.promise : typeof Map < "u" && r instanceof Map ? G.map : typeof Set < "u" && r instanceof Set ? G.set : typeof Date < "u" && r instanceof Date ? G.date : G.object;
|
|
5421
5421
|
default:
|
|
5422
|
-
return
|
|
5422
|
+
return G.unknown;
|
|
5423
5423
|
}
|
|
5424
5424
|
}, V = oe.arrayToEnum([
|
|
5425
5425
|
"invalid_type",
|
|
@@ -5503,7 +5503,7 @@ const $r = (r, e) => {
|
|
|
5503
5503
|
let t;
|
|
5504
5504
|
switch (r.code) {
|
|
5505
5505
|
case V.invalid_type:
|
|
5506
|
-
r.received ===
|
|
5506
|
+
r.received === G.undefined ? t = "Required" : t = `Expected ${r.expected}, received ${r.received}`;
|
|
5507
5507
|
break;
|
|
5508
5508
|
case V.invalid_literal:
|
|
5509
5509
|
t = `Invalid literal value, expected ${JSON.stringify(r.expected, oe.jsonStringifyReplacer)}`;
|
|
@@ -5583,7 +5583,7 @@ const Qa = (r) => {
|
|
|
5583
5583
|
message: l
|
|
5584
5584
|
};
|
|
5585
5585
|
}, CS = [];
|
|
5586
|
-
function
|
|
5586
|
+
function L(r, e) {
|
|
5587
5587
|
const t = Xa(), n = Qa({
|
|
5588
5588
|
issueData: e,
|
|
5589
5589
|
data: r.data,
|
|
@@ -5901,11 +5901,11 @@ function kS(r, e) {
|
|
|
5901
5901
|
}
|
|
5902
5902
|
class Zt extends re {
|
|
5903
5903
|
_parse(e) {
|
|
5904
|
-
if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !==
|
|
5904
|
+
if (this._def.coerce && (e.data = String(e.data)), this._getType(e) !== G.string) {
|
|
5905
5905
|
const s = this._getOrReturnCtx(e);
|
|
5906
|
-
return
|
|
5906
|
+
return L(s, {
|
|
5907
5907
|
code: V.invalid_type,
|
|
5908
|
-
expected:
|
|
5908
|
+
expected: G.string,
|
|
5909
5909
|
received: s.parsedType
|
|
5910
5910
|
}), H;
|
|
5911
5911
|
}
|
|
@@ -5913,7 +5913,7 @@ class Zt extends re {
|
|
|
5913
5913
|
let a;
|
|
5914
5914
|
for (const s of this._def.checks)
|
|
5915
5915
|
if (s.kind === "min")
|
|
5916
|
-
e.data.length < s.value && (a = this._getOrReturnCtx(e, a),
|
|
5916
|
+
e.data.length < s.value && (a = this._getOrReturnCtx(e, a), L(a, {
|
|
5917
5917
|
code: V.too_small,
|
|
5918
5918
|
minimum: s.value,
|
|
5919
5919
|
type: "string",
|
|
@@ -5922,7 +5922,7 @@ class Zt extends re {
|
|
|
5922
5922
|
message: s.message
|
|
5923
5923
|
}), n.dirty());
|
|
5924
5924
|
else if (s.kind === "max")
|
|
5925
|
-
e.data.length > s.value && (a = this._getOrReturnCtx(e, a),
|
|
5925
|
+
e.data.length > s.value && (a = this._getOrReturnCtx(e, a), L(a, {
|
|
5926
5926
|
code: V.too_big,
|
|
5927
5927
|
maximum: s.value,
|
|
5928
5928
|
type: "string",
|
|
@@ -5932,14 +5932,14 @@ class Zt extends re {
|
|
|
5932
5932
|
}), n.dirty());
|
|
5933
5933
|
else if (s.kind === "length") {
|
|
5934
5934
|
const o = e.data.length > s.value, l = e.data.length < s.value;
|
|
5935
|
-
(o || l) && (a = this._getOrReturnCtx(e, a), o ?
|
|
5935
|
+
(o || l) && (a = this._getOrReturnCtx(e, a), o ? L(a, {
|
|
5936
5936
|
code: V.too_big,
|
|
5937
5937
|
maximum: s.value,
|
|
5938
5938
|
type: "string",
|
|
5939
5939
|
inclusive: !0,
|
|
5940
5940
|
exact: !0,
|
|
5941
5941
|
message: s.message
|
|
5942
|
-
}) : l &&
|
|
5942
|
+
}) : l && L(a, {
|
|
5943
5943
|
code: V.too_small,
|
|
5944
5944
|
minimum: s.value,
|
|
5945
5945
|
type: "string",
|
|
@@ -5948,43 +5948,43 @@ class Zt extends re {
|
|
|
5948
5948
|
message: s.message
|
|
5949
5949
|
}), n.dirty());
|
|
5950
5950
|
} else if (s.kind === "email")
|
|
5951
|
-
xS.test(e.data) || (a = this._getOrReturnCtx(e, a),
|
|
5951
|
+
xS.test(e.data) || (a = this._getOrReturnCtx(e, a), L(a, {
|
|
5952
5952
|
validation: "email",
|
|
5953
5953
|
code: V.invalid_string,
|
|
5954
5954
|
message: s.message
|
|
5955
5955
|
}), n.dirty());
|
|
5956
5956
|
else if (s.kind === "emoji")
|
|
5957
|
-
fo || (fo = new RegExp(LS, "u")), fo.test(e.data) || (a = this._getOrReturnCtx(e, a),
|
|
5957
|
+
fo || (fo = new RegExp(LS, "u")), fo.test(e.data) || (a = this._getOrReturnCtx(e, a), L(a, {
|
|
5958
5958
|
validation: "emoji",
|
|
5959
5959
|
code: V.invalid_string,
|
|
5960
5960
|
message: s.message
|
|
5961
5961
|
}), n.dirty());
|
|
5962
5962
|
else if (s.kind === "uuid")
|
|
5963
|
-
_S.test(e.data) || (a = this._getOrReturnCtx(e, a),
|
|
5963
|
+
_S.test(e.data) || (a = this._getOrReturnCtx(e, a), L(a, {
|
|
5964
5964
|
validation: "uuid",
|
|
5965
5965
|
code: V.invalid_string,
|
|
5966
5966
|
message: s.message
|
|
5967
5967
|
}), n.dirty());
|
|
5968
5968
|
else if (s.kind === "nanoid")
|
|
5969
|
-
VS.test(e.data) || (a = this._getOrReturnCtx(e, a),
|
|
5969
|
+
VS.test(e.data) || (a = this._getOrReturnCtx(e, a), L(a, {
|
|
5970
5970
|
validation: "nanoid",
|
|
5971
5971
|
code: V.invalid_string,
|
|
5972
5972
|
message: s.message
|
|
5973
5973
|
}), n.dirty());
|
|
5974
5974
|
else if (s.kind === "cuid")
|
|
5975
|
-
wS.test(e.data) || (a = this._getOrReturnCtx(e, a),
|
|
5975
|
+
wS.test(e.data) || (a = this._getOrReturnCtx(e, a), L(a, {
|
|
5976
5976
|
validation: "cuid",
|
|
5977
5977
|
code: V.invalid_string,
|
|
5978
5978
|
message: s.message
|
|
5979
5979
|
}), n.dirty());
|
|
5980
5980
|
else if (s.kind === "cuid2")
|
|
5981
|
-
BS.test(e.data) || (a = this._getOrReturnCtx(e, a),
|
|
5981
|
+
BS.test(e.data) || (a = this._getOrReturnCtx(e, a), L(a, {
|
|
5982
5982
|
validation: "cuid2",
|
|
5983
5983
|
code: V.invalid_string,
|
|
5984
5984
|
message: s.message
|
|
5985
5985
|
}), n.dirty());
|
|
5986
5986
|
else if (s.kind === "ulid")
|
|
5987
|
-
MS.test(e.data) || (a = this._getOrReturnCtx(e, a),
|
|
5987
|
+
MS.test(e.data) || (a = this._getOrReturnCtx(e, a), L(a, {
|
|
5988
5988
|
validation: "ulid",
|
|
5989
5989
|
code: V.invalid_string,
|
|
5990
5990
|
message: s.message
|
|
@@ -5993,50 +5993,50 @@ class Zt extends re {
|
|
|
5993
5993
|
try {
|
|
5994
5994
|
new URL(e.data);
|
|
5995
5995
|
} catch {
|
|
5996
|
-
a = this._getOrReturnCtx(e, a),
|
|
5996
|
+
a = this._getOrReturnCtx(e, a), L(a, {
|
|
5997
5997
|
validation: "url",
|
|
5998
5998
|
code: V.invalid_string,
|
|
5999
5999
|
message: s.message
|
|
6000
6000
|
}), n.dirty();
|
|
6001
6001
|
}
|
|
6002
6002
|
else
|
|
6003
|
-
s.kind === "regex" ? (s.regex.lastIndex = 0, s.regex.test(e.data) || (a = this._getOrReturnCtx(e, a),
|
|
6003
|
+
s.kind === "regex" ? (s.regex.lastIndex = 0, s.regex.test(e.data) || (a = this._getOrReturnCtx(e, a), L(a, {
|
|
6004
6004
|
validation: "regex",
|
|
6005
6005
|
code: V.invalid_string,
|
|
6006
6006
|
message: s.message
|
|
6007
|
-
}), n.dirty())) : s.kind === "trim" ? e.data = e.data.trim() : s.kind === "includes" ? e.data.includes(s.value, s.position) || (a = this._getOrReturnCtx(e, a),
|
|
6007
|
+
}), n.dirty())) : s.kind === "trim" ? e.data = e.data.trim() : s.kind === "includes" ? e.data.includes(s.value, s.position) || (a = this._getOrReturnCtx(e, a), L(a, {
|
|
6008
6008
|
code: V.invalid_string,
|
|
6009
6009
|
validation: { includes: s.value, position: s.position },
|
|
6010
6010
|
message: s.message
|
|
6011
|
-
}), n.dirty()) : s.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : s.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : s.kind === "startsWith" ? e.data.startsWith(s.value) || (a = this._getOrReturnCtx(e, a),
|
|
6011
|
+
}), n.dirty()) : s.kind === "toLowerCase" ? e.data = e.data.toLowerCase() : s.kind === "toUpperCase" ? e.data = e.data.toUpperCase() : s.kind === "startsWith" ? e.data.startsWith(s.value) || (a = this._getOrReturnCtx(e, a), L(a, {
|
|
6012
6012
|
code: V.invalid_string,
|
|
6013
6013
|
validation: { startsWith: s.value },
|
|
6014
6014
|
message: s.message
|
|
6015
|
-
}), n.dirty()) : s.kind === "endsWith" ? e.data.endsWith(s.value) || (a = this._getOrReturnCtx(e, a),
|
|
6015
|
+
}), n.dirty()) : s.kind === "endsWith" ? e.data.endsWith(s.value) || (a = this._getOrReturnCtx(e, a), L(a, {
|
|
6016
6016
|
code: V.invalid_string,
|
|
6017
6017
|
validation: { endsWith: s.value },
|
|
6018
6018
|
message: s.message
|
|
6019
|
-
}), n.dirty()) : s.kind === "datetime" ? cp(s).test(e.data) || (a = this._getOrReturnCtx(e, a),
|
|
6019
|
+
}), n.dirty()) : s.kind === "datetime" ? cp(s).test(e.data) || (a = this._getOrReturnCtx(e, a), L(a, {
|
|
6020
6020
|
code: V.invalid_string,
|
|
6021
6021
|
validation: "datetime",
|
|
6022
6022
|
message: s.message
|
|
6023
|
-
}), n.dirty()) : s.kind === "date" ? US.test(e.data) || (a = this._getOrReturnCtx(e, a),
|
|
6023
|
+
}), n.dirty()) : s.kind === "date" ? US.test(e.data) || (a = this._getOrReturnCtx(e, a), L(a, {
|
|
6024
6024
|
code: V.invalid_string,
|
|
6025
6025
|
validation: "date",
|
|
6026
6026
|
message: s.message
|
|
6027
|
-
}), n.dirty()) : s.kind === "time" ? jS(s).test(e.data) || (a = this._getOrReturnCtx(e, a),
|
|
6027
|
+
}), n.dirty()) : s.kind === "time" ? jS(s).test(e.data) || (a = this._getOrReturnCtx(e, a), L(a, {
|
|
6028
6028
|
code: V.invalid_string,
|
|
6029
6029
|
validation: "time",
|
|
6030
6030
|
message: s.message
|
|
6031
|
-
}), n.dirty()) : s.kind === "duration" ? NS.test(e.data) || (a = this._getOrReturnCtx(e, a),
|
|
6031
|
+
}), n.dirty()) : s.kind === "duration" ? NS.test(e.data) || (a = this._getOrReturnCtx(e, a), L(a, {
|
|
6032
6032
|
validation: "duration",
|
|
6033
6033
|
code: V.invalid_string,
|
|
6034
6034
|
message: s.message
|
|
6035
|
-
}), n.dirty()) : s.kind === "ip" ? kS(e.data, s.version) || (a = this._getOrReturnCtx(e, a),
|
|
6035
|
+
}), n.dirty()) : s.kind === "ip" ? kS(e.data, s.version) || (a = this._getOrReturnCtx(e, a), L(a, {
|
|
6036
6036
|
validation: "ip",
|
|
6037
6037
|
code: V.invalid_string,
|
|
6038
6038
|
message: s.message
|
|
6039
|
-
}), n.dirty()) : s.kind === "base64" ? FS.test(e.data) || (a = this._getOrReturnCtx(e, a),
|
|
6039
|
+
}), n.dirty()) : s.kind === "base64" ? FS.test(e.data) || (a = this._getOrReturnCtx(e, a), L(a, {
|
|
6040
6040
|
validation: "base64",
|
|
6041
6041
|
code: V.invalid_string,
|
|
6042
6042
|
message: s.message
|
|
@@ -6267,41 +6267,41 @@ class xn extends re {
|
|
|
6267
6267
|
super(...arguments), this.min = this.gte, this.max = this.lte, this.step = this.multipleOf;
|
|
6268
6268
|
}
|
|
6269
6269
|
_parse(e) {
|
|
6270
|
-
if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !==
|
|
6270
|
+
if (this._def.coerce && (e.data = Number(e.data)), this._getType(e) !== G.number) {
|
|
6271
6271
|
const s = this._getOrReturnCtx(e);
|
|
6272
|
-
return
|
|
6272
|
+
return L(s, {
|
|
6273
6273
|
code: V.invalid_type,
|
|
6274
|
-
expected:
|
|
6274
|
+
expected: G.number,
|
|
6275
6275
|
received: s.parsedType
|
|
6276
6276
|
}), H;
|
|
6277
6277
|
}
|
|
6278
6278
|
let n;
|
|
6279
6279
|
const a = new ft();
|
|
6280
6280
|
for (const s of this._def.checks)
|
|
6281
|
-
s.kind === "int" ? oe.isInteger(e.data) || (n = this._getOrReturnCtx(e, n),
|
|
6281
|
+
s.kind === "int" ? oe.isInteger(e.data) || (n = this._getOrReturnCtx(e, n), L(n, {
|
|
6282
6282
|
code: V.invalid_type,
|
|
6283
6283
|
expected: "integer",
|
|
6284
6284
|
received: "float",
|
|
6285
6285
|
message: s.message
|
|
6286
|
-
}), a.dirty()) : s.kind === "min" ? (s.inclusive ? e.data < s.value : e.data <= s.value) && (n = this._getOrReturnCtx(e, n),
|
|
6286
|
+
}), a.dirty()) : s.kind === "min" ? (s.inclusive ? e.data < s.value : e.data <= s.value) && (n = this._getOrReturnCtx(e, n), L(n, {
|
|
6287
6287
|
code: V.too_small,
|
|
6288
6288
|
minimum: s.value,
|
|
6289
6289
|
type: "number",
|
|
6290
6290
|
inclusive: s.inclusive,
|
|
6291
6291
|
exact: !1,
|
|
6292
6292
|
message: s.message
|
|
6293
|
-
}), a.dirty()) : s.kind === "max" ? (s.inclusive ? e.data > s.value : e.data >= s.value) && (n = this._getOrReturnCtx(e, n),
|
|
6293
|
+
}), a.dirty()) : s.kind === "max" ? (s.inclusive ? e.data > s.value : e.data >= s.value) && (n = this._getOrReturnCtx(e, n), L(n, {
|
|
6294
6294
|
code: V.too_big,
|
|
6295
6295
|
maximum: s.value,
|
|
6296
6296
|
type: "number",
|
|
6297
6297
|
inclusive: s.inclusive,
|
|
6298
6298
|
exact: !1,
|
|
6299
6299
|
message: s.message
|
|
6300
|
-
}), a.dirty()) : s.kind === "multipleOf" ? qS(e.data, s.value) !== 0 && (n = this._getOrReturnCtx(e, n),
|
|
6300
|
+
}), a.dirty()) : s.kind === "multipleOf" ? qS(e.data, s.value) !== 0 && (n = this._getOrReturnCtx(e, n), L(n, {
|
|
6301
6301
|
code: V.not_multiple_of,
|
|
6302
6302
|
multipleOf: s.value,
|
|
6303
6303
|
message: s.message
|
|
6304
|
-
}), a.dirty()) : s.kind === "finite" ? Number.isFinite(e.data) || (n = this._getOrReturnCtx(e, n),
|
|
6304
|
+
}), a.dirty()) : s.kind === "finite" ? Number.isFinite(e.data) || (n = this._getOrReturnCtx(e, n), L(n, {
|
|
6305
6305
|
code: V.not_finite,
|
|
6306
6306
|
message: s.message
|
|
6307
6307
|
}), a.dirty()) : oe.assertNever(s);
|
|
@@ -6439,30 +6439,30 @@ class Ln extends re {
|
|
|
6439
6439
|
super(...arguments), this.min = this.gte, this.max = this.lte;
|
|
6440
6440
|
}
|
|
6441
6441
|
_parse(e) {
|
|
6442
|
-
if (this._def.coerce && (e.data = BigInt(e.data)), this._getType(e) !==
|
|
6442
|
+
if (this._def.coerce && (e.data = BigInt(e.data)), this._getType(e) !== G.bigint) {
|
|
6443
6443
|
const s = this._getOrReturnCtx(e);
|
|
6444
|
-
return
|
|
6444
|
+
return L(s, {
|
|
6445
6445
|
code: V.invalid_type,
|
|
6446
|
-
expected:
|
|
6446
|
+
expected: G.bigint,
|
|
6447
6447
|
received: s.parsedType
|
|
6448
6448
|
}), H;
|
|
6449
6449
|
}
|
|
6450
6450
|
let n;
|
|
6451
6451
|
const a = new ft();
|
|
6452
6452
|
for (const s of this._def.checks)
|
|
6453
|
-
s.kind === "min" ? (s.inclusive ? e.data < s.value : e.data <= s.value) && (n = this._getOrReturnCtx(e, n),
|
|
6453
|
+
s.kind === "min" ? (s.inclusive ? e.data < s.value : e.data <= s.value) && (n = this._getOrReturnCtx(e, n), L(n, {
|
|
6454
6454
|
code: V.too_small,
|
|
6455
6455
|
type: "bigint",
|
|
6456
6456
|
minimum: s.value,
|
|
6457
6457
|
inclusive: s.inclusive,
|
|
6458
6458
|
message: s.message
|
|
6459
|
-
}), a.dirty()) : s.kind === "max" ? (s.inclusive ? e.data > s.value : e.data >= s.value) && (n = this._getOrReturnCtx(e, n),
|
|
6459
|
+
}), a.dirty()) : s.kind === "max" ? (s.inclusive ? e.data > s.value : e.data >= s.value) && (n = this._getOrReturnCtx(e, n), L(n, {
|
|
6460
6460
|
code: V.too_big,
|
|
6461
6461
|
type: "bigint",
|
|
6462
6462
|
maximum: s.value,
|
|
6463
6463
|
inclusive: s.inclusive,
|
|
6464
6464
|
message: s.message
|
|
6465
|
-
}), a.dirty()) : s.kind === "multipleOf" ? e.data % s.value !== BigInt(0) && (n = this._getOrReturnCtx(e, n),
|
|
6465
|
+
}), a.dirty()) : s.kind === "multipleOf" ? e.data % s.value !== BigInt(0) && (n = this._getOrReturnCtx(e, n), L(n, {
|
|
6466
6466
|
code: V.not_multiple_of,
|
|
6467
6467
|
multipleOf: s.value,
|
|
6468
6468
|
message: s.message
|
|
@@ -6564,11 +6564,11 @@ Ln.create = (r) => {
|
|
|
6564
6564
|
};
|
|
6565
6565
|
class Ui extends re {
|
|
6566
6566
|
_parse(e) {
|
|
6567
|
-
if (this._def.coerce && (e.data = !!e.data), this._getType(e) !==
|
|
6567
|
+
if (this._def.coerce && (e.data = !!e.data), this._getType(e) !== G.boolean) {
|
|
6568
6568
|
const n = this._getOrReturnCtx(e);
|
|
6569
|
-
return
|
|
6569
|
+
return L(n, {
|
|
6570
6570
|
code: V.invalid_type,
|
|
6571
|
-
expected:
|
|
6571
|
+
expected: G.boolean,
|
|
6572
6572
|
received: n.parsedType
|
|
6573
6573
|
}), H;
|
|
6574
6574
|
}
|
|
@@ -6582,31 +6582,31 @@ Ui.create = (r) => new Ui({
|
|
|
6582
6582
|
});
|
|
6583
6583
|
class ar extends re {
|
|
6584
6584
|
_parse(e) {
|
|
6585
|
-
if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !==
|
|
6585
|
+
if (this._def.coerce && (e.data = new Date(e.data)), this._getType(e) !== G.date) {
|
|
6586
6586
|
const s = this._getOrReturnCtx(e);
|
|
6587
|
-
return
|
|
6587
|
+
return L(s, {
|
|
6588
6588
|
code: V.invalid_type,
|
|
6589
|
-
expected:
|
|
6589
|
+
expected: G.date,
|
|
6590
6590
|
received: s.parsedType
|
|
6591
6591
|
}), H;
|
|
6592
6592
|
}
|
|
6593
6593
|
if (isNaN(e.data.getTime())) {
|
|
6594
6594
|
const s = this._getOrReturnCtx(e);
|
|
6595
|
-
return
|
|
6595
|
+
return L(s, {
|
|
6596
6596
|
code: V.invalid_date
|
|
6597
6597
|
}), H;
|
|
6598
6598
|
}
|
|
6599
6599
|
const n = new ft();
|
|
6600
6600
|
let a;
|
|
6601
6601
|
for (const s of this._def.checks)
|
|
6602
|
-
s.kind === "min" ? e.data.getTime() < s.value && (a = this._getOrReturnCtx(e, a),
|
|
6602
|
+
s.kind === "min" ? e.data.getTime() < s.value && (a = this._getOrReturnCtx(e, a), L(a, {
|
|
6603
6603
|
code: V.too_small,
|
|
6604
6604
|
message: s.message,
|
|
6605
6605
|
inclusive: !0,
|
|
6606
6606
|
exact: !1,
|
|
6607
6607
|
minimum: s.value,
|
|
6608
6608
|
type: "date"
|
|
6609
|
-
}), n.dirty()) : s.kind === "max" ? e.data.getTime() > s.value && (a = this._getOrReturnCtx(e, a),
|
|
6609
|
+
}), n.dirty()) : s.kind === "max" ? e.data.getTime() > s.value && (a = this._getOrReturnCtx(e, a), L(a, {
|
|
6610
6610
|
code: V.too_big,
|
|
6611
6611
|
message: s.message,
|
|
6612
6612
|
inclusive: !0,
|
|
@@ -6660,11 +6660,11 @@ ar.create = (r) => new ar({
|
|
|
6660
6660
|
});
|
|
6661
6661
|
class ts extends re {
|
|
6662
6662
|
_parse(e) {
|
|
6663
|
-
if (this._getType(e) !==
|
|
6663
|
+
if (this._getType(e) !== G.symbol) {
|
|
6664
6664
|
const n = this._getOrReturnCtx(e);
|
|
6665
|
-
return
|
|
6665
|
+
return L(n, {
|
|
6666
6666
|
code: V.invalid_type,
|
|
6667
|
-
expected:
|
|
6667
|
+
expected: G.symbol,
|
|
6668
6668
|
received: n.parsedType
|
|
6669
6669
|
}), H;
|
|
6670
6670
|
}
|
|
@@ -6677,11 +6677,11 @@ ts.create = (r) => new ts({
|
|
|
6677
6677
|
});
|
|
6678
6678
|
class ji extends re {
|
|
6679
6679
|
_parse(e) {
|
|
6680
|
-
if (this._getType(e) !==
|
|
6680
|
+
if (this._getType(e) !== G.undefined) {
|
|
6681
6681
|
const n = this._getOrReturnCtx(e);
|
|
6682
|
-
return
|
|
6682
|
+
return L(n, {
|
|
6683
6683
|
code: V.invalid_type,
|
|
6684
|
-
expected:
|
|
6684
|
+
expected: G.undefined,
|
|
6685
6685
|
received: n.parsedType
|
|
6686
6686
|
}), H;
|
|
6687
6687
|
}
|
|
@@ -6694,11 +6694,11 @@ ji.create = (r) => new ji({
|
|
|
6694
6694
|
});
|
|
6695
6695
|
class ki extends re {
|
|
6696
6696
|
_parse(e) {
|
|
6697
|
-
if (this._getType(e) !==
|
|
6697
|
+
if (this._getType(e) !== G.null) {
|
|
6698
6698
|
const n = this._getOrReturnCtx(e);
|
|
6699
|
-
return
|
|
6699
|
+
return L(n, {
|
|
6700
6700
|
code: V.invalid_type,
|
|
6701
|
-
expected:
|
|
6701
|
+
expected: G.null,
|
|
6702
6702
|
received: n.parsedType
|
|
6703
6703
|
}), H;
|
|
6704
6704
|
}
|
|
@@ -6736,9 +6736,9 @@ rr.create = (r) => new rr({
|
|
|
6736
6736
|
class gn extends re {
|
|
6737
6737
|
_parse(e) {
|
|
6738
6738
|
const t = this._getOrReturnCtx(e);
|
|
6739
|
-
return
|
|
6739
|
+
return L(t, {
|
|
6740
6740
|
code: V.invalid_type,
|
|
6741
|
-
expected:
|
|
6741
|
+
expected: G.never,
|
|
6742
6742
|
received: t.parsedType
|
|
6743
6743
|
}), H;
|
|
6744
6744
|
}
|
|
@@ -6749,11 +6749,11 @@ gn.create = (r) => new gn({
|
|
|
6749
6749
|
});
|
|
6750
6750
|
class ns extends re {
|
|
6751
6751
|
_parse(e) {
|
|
6752
|
-
if (this._getType(e) !==
|
|
6752
|
+
if (this._getType(e) !== G.undefined) {
|
|
6753
6753
|
const n = this._getOrReturnCtx(e);
|
|
6754
|
-
return
|
|
6754
|
+
return L(n, {
|
|
6755
6755
|
code: V.invalid_type,
|
|
6756
|
-
expected:
|
|
6756
|
+
expected: G.void,
|
|
6757
6757
|
received: n.parsedType
|
|
6758
6758
|
}), H;
|
|
6759
6759
|
}
|
|
@@ -6767,15 +6767,15 @@ ns.create = (r) => new ns({
|
|
|
6767
6767
|
class Kt extends re {
|
|
6768
6768
|
_parse(e) {
|
|
6769
6769
|
const { ctx: t, status: n } = this._processInputParams(e), a = this._def;
|
|
6770
|
-
if (t.parsedType !==
|
|
6771
|
-
return
|
|
6770
|
+
if (t.parsedType !== G.array)
|
|
6771
|
+
return L(t, {
|
|
6772
6772
|
code: V.invalid_type,
|
|
6773
|
-
expected:
|
|
6773
|
+
expected: G.array,
|
|
6774
6774
|
received: t.parsedType
|
|
6775
6775
|
}), H;
|
|
6776
6776
|
if (a.exactLength !== null) {
|
|
6777
6777
|
const o = t.data.length > a.exactLength.value, l = t.data.length < a.exactLength.value;
|
|
6778
|
-
(o || l) && (
|
|
6778
|
+
(o || l) && (L(t, {
|
|
6779
6779
|
code: o ? V.too_big : V.too_small,
|
|
6780
6780
|
minimum: l ? a.exactLength.value : void 0,
|
|
6781
6781
|
maximum: o ? a.exactLength.value : void 0,
|
|
@@ -6785,14 +6785,14 @@ class Kt extends re {
|
|
|
6785
6785
|
message: a.exactLength.message
|
|
6786
6786
|
}), n.dirty());
|
|
6787
6787
|
}
|
|
6788
|
-
if (a.minLength !== null && t.data.length < a.minLength.value && (
|
|
6788
|
+
if (a.minLength !== null && t.data.length < a.minLength.value && (L(t, {
|
|
6789
6789
|
code: V.too_small,
|
|
6790
6790
|
minimum: a.minLength.value,
|
|
6791
6791
|
type: "array",
|
|
6792
6792
|
inclusive: !0,
|
|
6793
6793
|
exact: !1,
|
|
6794
6794
|
message: a.minLength.message
|
|
6795
|
-
}), n.dirty()), a.maxLength !== null && t.data.length > a.maxLength.value && (
|
|
6795
|
+
}), n.dirty()), a.maxLength !== null && t.data.length > a.maxLength.value && (L(t, {
|
|
6796
6796
|
code: V.too_big,
|
|
6797
6797
|
maximum: a.maxLength.value,
|
|
6798
6798
|
type: "array",
|
|
@@ -6865,11 +6865,11 @@ class ze extends re {
|
|
|
6865
6865
|
return this._cached = { shape: e, keys: t };
|
|
6866
6866
|
}
|
|
6867
6867
|
_parse(e) {
|
|
6868
|
-
if (this._getType(e) !==
|
|
6868
|
+
if (this._getType(e) !== G.object) {
|
|
6869
6869
|
const c = this._getOrReturnCtx(e);
|
|
6870
|
-
return
|
|
6870
|
+
return L(c, {
|
|
6871
6871
|
code: V.invalid_type,
|
|
6872
|
-
expected:
|
|
6872
|
+
expected: G.object,
|
|
6873
6873
|
received: c.parsedType
|
|
6874
6874
|
}), H;
|
|
6875
6875
|
}
|
|
@@ -6895,7 +6895,7 @@ class ze extends re {
|
|
|
6895
6895
|
value: { status: "valid", value: a.data[y] }
|
|
6896
6896
|
});
|
|
6897
6897
|
else if (c === "strict")
|
|
6898
|
-
l.length > 0 && (
|
|
6898
|
+
l.length > 0 && (L(a, {
|
|
6899
6899
|
code: V.unrecognized_keys,
|
|
6900
6900
|
keys: l
|
|
6901
6901
|
}), n.dirty());
|
|
@@ -7153,7 +7153,7 @@ class qi extends re {
|
|
|
7153
7153
|
if (l.result.status === "dirty")
|
|
7154
7154
|
return t.common.issues.push(...l.ctx.common.issues), l.result;
|
|
7155
7155
|
const o = s.map((l) => new Ot(l.ctx.common.issues));
|
|
7156
|
-
return
|
|
7156
|
+
return L(t, {
|
|
7157
7157
|
code: V.invalid_union,
|
|
7158
7158
|
unionErrors: o
|
|
7159
7159
|
}), H;
|
|
@@ -7200,7 +7200,7 @@ class qi extends re {
|
|
|
7200
7200
|
if (s)
|
|
7201
7201
|
return t.common.issues.push(...s.ctx.common.issues), s.result;
|
|
7202
7202
|
const l = o.map((u) => new Ot(u));
|
|
7203
|
-
return
|
|
7203
|
+
return L(t, {
|
|
7204
7204
|
code: V.invalid_union,
|
|
7205
7205
|
unionErrors: l
|
|
7206
7206
|
}), H;
|
|
@@ -7219,10 +7219,10 @@ const fn = (r) => r instanceof Yi ? fn(r.schema) : r instanceof Qt ? fn(r.innerT
|
|
|
7219
7219
|
class Is extends re {
|
|
7220
7220
|
_parse(e) {
|
|
7221
7221
|
const { ctx: t } = this._processInputParams(e);
|
|
7222
|
-
if (t.parsedType !==
|
|
7223
|
-
return
|
|
7222
|
+
if (t.parsedType !== G.object)
|
|
7223
|
+
return L(t, {
|
|
7224
7224
|
code: V.invalid_type,
|
|
7225
|
-
expected:
|
|
7225
|
+
expected: G.object,
|
|
7226
7226
|
received: t.parsedType
|
|
7227
7227
|
}), H;
|
|
7228
7228
|
const n = this.discriminator, a = t.data[n], s = this.optionsMap.get(a);
|
|
@@ -7234,7 +7234,7 @@ class Is extends re {
|
|
|
7234
7234
|
data: t.data,
|
|
7235
7235
|
path: t.path,
|
|
7236
7236
|
parent: t
|
|
7237
|
-
}) : (
|
|
7237
|
+
}) : (L(t, {
|
|
7238
7238
|
code: V.invalid_union_discriminator,
|
|
7239
7239
|
options: Array.from(this.optionsMap.keys()),
|
|
7240
7240
|
path: [n]
|
|
@@ -7282,7 +7282,7 @@ function Go(r, e) {
|
|
|
7282
7282
|
const t = Mn(r), n = Mn(e);
|
|
7283
7283
|
if (r === e)
|
|
7284
7284
|
return { valid: !0, data: r };
|
|
7285
|
-
if (t ===
|
|
7285
|
+
if (t === G.object && n === G.object) {
|
|
7286
7286
|
const a = oe.objectKeys(e), s = oe.objectKeys(r).filter((l) => a.indexOf(l) !== -1), o = { ...r, ...e };
|
|
7287
7287
|
for (const l of s) {
|
|
7288
7288
|
const u = Go(r[l], e[l]);
|
|
@@ -7291,7 +7291,7 @@ function Go(r, e) {
|
|
|
7291
7291
|
o[l] = u.data;
|
|
7292
7292
|
}
|
|
7293
7293
|
return { valid: !0, data: o };
|
|
7294
|
-
} else if (t ===
|
|
7294
|
+
} else if (t === G.array && n === G.array) {
|
|
7295
7295
|
if (r.length !== e.length)
|
|
7296
7296
|
return { valid: !1 };
|
|
7297
7297
|
const a = [];
|
|
@@ -7303,7 +7303,7 @@ function Go(r, e) {
|
|
|
7303
7303
|
}
|
|
7304
7304
|
return { valid: !0, data: a };
|
|
7305
7305
|
} else
|
|
7306
|
-
return t ===
|
|
7306
|
+
return t === G.date && n === G.date && +r == +e ? { valid: !0, data: r } : { valid: !1 };
|
|
7307
7307
|
}
|
|
7308
7308
|
class Ji extends re {
|
|
7309
7309
|
_parse(e) {
|
|
@@ -7311,7 +7311,7 @@ class Ji extends re {
|
|
|
7311
7311
|
if (xo(s) || xo(o))
|
|
7312
7312
|
return H;
|
|
7313
7313
|
const l = Go(s.value, o.value);
|
|
7314
|
-
return l.valid ? ((Lo(s) || Lo(o)) && t.dirty(), { status: t.value, value: l.data }) : (
|
|
7314
|
+
return l.valid ? ((Lo(s) || Lo(o)) && t.dirty(), { status: t.value, value: l.data }) : (L(n, {
|
|
7315
7315
|
code: V.invalid_intersection_types
|
|
7316
7316
|
}), H);
|
|
7317
7317
|
};
|
|
@@ -7346,21 +7346,21 @@ Ji.create = (r, e, t) => new Ji({
|
|
|
7346
7346
|
class on extends re {
|
|
7347
7347
|
_parse(e) {
|
|
7348
7348
|
const { status: t, ctx: n } = this._processInputParams(e);
|
|
7349
|
-
if (n.parsedType !==
|
|
7350
|
-
return
|
|
7349
|
+
if (n.parsedType !== G.array)
|
|
7350
|
+
return L(n, {
|
|
7351
7351
|
code: V.invalid_type,
|
|
7352
|
-
expected:
|
|
7352
|
+
expected: G.array,
|
|
7353
7353
|
received: n.parsedType
|
|
7354
7354
|
}), H;
|
|
7355
7355
|
if (n.data.length < this._def.items.length)
|
|
7356
|
-
return
|
|
7356
|
+
return L(n, {
|
|
7357
7357
|
code: V.too_small,
|
|
7358
7358
|
minimum: this._def.items.length,
|
|
7359
7359
|
inclusive: !0,
|
|
7360
7360
|
exact: !1,
|
|
7361
7361
|
type: "array"
|
|
7362
7362
|
}), H;
|
|
7363
|
-
!this._def.rest && n.data.length > this._def.items.length && (
|
|
7363
|
+
!this._def.rest && n.data.length > this._def.items.length && (L(n, {
|
|
7364
7364
|
code: V.too_big,
|
|
7365
7365
|
maximum: this._def.items.length,
|
|
7366
7366
|
inclusive: !0,
|
|
@@ -7402,10 +7402,10 @@ class Wi extends re {
|
|
|
7402
7402
|
}
|
|
7403
7403
|
_parse(e) {
|
|
7404
7404
|
const { status: t, ctx: n } = this._processInputParams(e);
|
|
7405
|
-
if (n.parsedType !==
|
|
7406
|
-
return
|
|
7405
|
+
if (n.parsedType !== G.object)
|
|
7406
|
+
return L(n, {
|
|
7407
7407
|
code: V.invalid_type,
|
|
7408
|
-
expected:
|
|
7408
|
+
expected: G.object,
|
|
7409
7409
|
received: n.parsedType
|
|
7410
7410
|
}), H;
|
|
7411
7411
|
const a = [], s = this._def.keyType, o = this._def.valueType;
|
|
@@ -7443,10 +7443,10 @@ class rs extends re {
|
|
|
7443
7443
|
}
|
|
7444
7444
|
_parse(e) {
|
|
7445
7445
|
const { status: t, ctx: n } = this._processInputParams(e);
|
|
7446
|
-
if (n.parsedType !==
|
|
7447
|
-
return
|
|
7446
|
+
if (n.parsedType !== G.map)
|
|
7447
|
+
return L(n, {
|
|
7448
7448
|
code: V.invalid_type,
|
|
7449
|
-
expected:
|
|
7449
|
+
expected: G.map,
|
|
7450
7450
|
received: n.parsedType
|
|
7451
7451
|
}), H;
|
|
7452
7452
|
const a = this._def.keyType, s = this._def.valueType, o = [...n.data.entries()].map(([l, u], c) => ({
|
|
@@ -7485,21 +7485,21 @@ rs.create = (r, e, t) => new rs({
|
|
|
7485
7485
|
class sr extends re {
|
|
7486
7486
|
_parse(e) {
|
|
7487
7487
|
const { status: t, ctx: n } = this._processInputParams(e);
|
|
7488
|
-
if (n.parsedType !==
|
|
7489
|
-
return
|
|
7488
|
+
if (n.parsedType !== G.set)
|
|
7489
|
+
return L(n, {
|
|
7490
7490
|
code: V.invalid_type,
|
|
7491
|
-
expected:
|
|
7491
|
+
expected: G.set,
|
|
7492
7492
|
received: n.parsedType
|
|
7493
7493
|
}), H;
|
|
7494
7494
|
const a = this._def;
|
|
7495
|
-
a.minSize !== null && n.data.size < a.minSize.value && (
|
|
7495
|
+
a.minSize !== null && n.data.size < a.minSize.value && (L(n, {
|
|
7496
7496
|
code: V.too_small,
|
|
7497
7497
|
minimum: a.minSize.value,
|
|
7498
7498
|
type: "set",
|
|
7499
7499
|
inclusive: !0,
|
|
7500
7500
|
exact: !1,
|
|
7501
7501
|
message: a.minSize.message
|
|
7502
|
-
}), t.dirty()), a.maxSize !== null && n.data.size > a.maxSize.value && (
|
|
7502
|
+
}), t.dirty()), a.maxSize !== null && n.data.size > a.maxSize.value && (L(n, {
|
|
7503
7503
|
code: V.too_big,
|
|
7504
7504
|
maximum: a.maxSize.value,
|
|
7505
7505
|
type: "set",
|
|
@@ -7552,10 +7552,10 @@ class Lr extends re {
|
|
|
7552
7552
|
}
|
|
7553
7553
|
_parse(e) {
|
|
7554
7554
|
const { ctx: t } = this._processInputParams(e);
|
|
7555
|
-
if (t.parsedType !==
|
|
7556
|
-
return
|
|
7555
|
+
if (t.parsedType !== G.function)
|
|
7556
|
+
return L(t, {
|
|
7557
7557
|
code: V.invalid_type,
|
|
7558
|
-
expected:
|
|
7558
|
+
expected: G.function,
|
|
7559
7559
|
received: t.parsedType
|
|
7560
7560
|
}), H;
|
|
7561
7561
|
function n(l, u) {
|
|
@@ -7665,7 +7665,7 @@ class Hi extends re {
|
|
|
7665
7665
|
_parse(e) {
|
|
7666
7666
|
if (e.data !== this._def.value) {
|
|
7667
7667
|
const t = this._getOrReturnCtx(e);
|
|
7668
|
-
return
|
|
7668
|
+
return L(t, {
|
|
7669
7669
|
received: t.data,
|
|
7670
7670
|
code: V.invalid_literal,
|
|
7671
7671
|
expected: this._def.value
|
|
@@ -7696,7 +7696,7 @@ class Gn extends re {
|
|
|
7696
7696
|
_parse(e) {
|
|
7697
7697
|
if (typeof e.data != "string") {
|
|
7698
7698
|
const t = this._getOrReturnCtx(e), n = this._def.values;
|
|
7699
|
-
return
|
|
7699
|
+
return L(t, {
|
|
7700
7700
|
expected: oe.joinValues(n),
|
|
7701
7701
|
received: t.parsedType,
|
|
7702
7702
|
code: V.invalid_type
|
|
@@ -7704,7 +7704,7 @@ class Gn extends re {
|
|
|
7704
7704
|
}
|
|
7705
7705
|
if (es(this, Vi, "f") || op(this, Vi, new Set(this._def.values), "f"), !es(this, Vi, "f").has(e.data)) {
|
|
7706
7706
|
const t = this._getOrReturnCtx(e), n = this._def.values;
|
|
7707
|
-
return
|
|
7707
|
+
return L(t, {
|
|
7708
7708
|
received: t.data,
|
|
7709
7709
|
code: V.invalid_enum_value,
|
|
7710
7710
|
options: n
|
|
@@ -7754,9 +7754,9 @@ class zi extends re {
|
|
|
7754
7754
|
}
|
|
7755
7755
|
_parse(e) {
|
|
7756
7756
|
const t = oe.getValidEnumValues(this._def.values), n = this._getOrReturnCtx(e);
|
|
7757
|
-
if (n.parsedType !==
|
|
7757
|
+
if (n.parsedType !== G.string && n.parsedType !== G.number) {
|
|
7758
7758
|
const a = oe.objectValues(t);
|
|
7759
|
-
return
|
|
7759
|
+
return L(n, {
|
|
7760
7760
|
expected: oe.joinValues(a),
|
|
7761
7761
|
received: n.parsedType,
|
|
7762
7762
|
code: V.invalid_type
|
|
@@ -7764,7 +7764,7 @@ class zi extends re {
|
|
|
7764
7764
|
}
|
|
7765
7765
|
if (es(this, Ni, "f") || op(this, Ni, new Set(oe.getValidEnumValues(this._def.values)), "f"), !es(this, Ni, "f").has(e.data)) {
|
|
7766
7766
|
const a = oe.objectValues(t);
|
|
7767
|
-
return
|
|
7767
|
+
return L(n, {
|
|
7768
7768
|
received: n.data,
|
|
7769
7769
|
code: V.invalid_enum_value,
|
|
7770
7770
|
options: a
|
|
@@ -7788,13 +7788,13 @@ class Ur extends re {
|
|
|
7788
7788
|
}
|
|
7789
7789
|
_parse(e) {
|
|
7790
7790
|
const { ctx: t } = this._processInputParams(e);
|
|
7791
|
-
if (t.parsedType !==
|
|
7792
|
-
return
|
|
7791
|
+
if (t.parsedType !== G.promise && t.common.async === !1)
|
|
7792
|
+
return L(t, {
|
|
7793
7793
|
code: V.invalid_type,
|
|
7794
|
-
expected:
|
|
7794
|
+
expected: G.promise,
|
|
7795
7795
|
received: t.parsedType
|
|
7796
7796
|
}), H;
|
|
7797
|
-
const n = t.parsedType ===
|
|
7797
|
+
const n = t.parsedType === G.promise ? t.data : Promise.resolve(t.data);
|
|
7798
7798
|
return vt(n.then((a) => this._def.type.parseAsync(a, {
|
|
7799
7799
|
path: t.path,
|
|
7800
7800
|
errorMap: t.common.contextualErrorMap
|
|
@@ -7816,7 +7816,7 @@ class Qt extends re {
|
|
|
7816
7816
|
_parse(e) {
|
|
7817
7817
|
const { status: t, ctx: n } = this._processInputParams(e), a = this._def.effect || null, s = {
|
|
7818
7818
|
addIssue: (o) => {
|
|
7819
|
-
|
|
7819
|
+
L(n, o), o.fatal ? t.abort() : t.dirty();
|
|
7820
7820
|
},
|
|
7821
7821
|
get path() {
|
|
7822
7822
|
return n.path;
|
|
@@ -7897,7 +7897,7 @@ Qt.createWithPreprocess = (r, e, t) => new Qt({
|
|
|
7897
7897
|
});
|
|
7898
7898
|
class rn extends re {
|
|
7899
7899
|
_parse(e) {
|
|
7900
|
-
return this._getType(e) ===
|
|
7900
|
+
return this._getType(e) === G.undefined ? vt(void 0) : this._def.innerType._parse(e);
|
|
7901
7901
|
}
|
|
7902
7902
|
unwrap() {
|
|
7903
7903
|
return this._def.innerType;
|
|
@@ -7910,7 +7910,7 @@ rn.create = (r, e) => new rn({
|
|
|
7910
7910
|
});
|
|
7911
7911
|
class $n extends re {
|
|
7912
7912
|
_parse(e) {
|
|
7913
|
-
return this._getType(e) ===
|
|
7913
|
+
return this._getType(e) === G.null ? vt(null) : this._def.innerType._parse(e);
|
|
7914
7914
|
}
|
|
7915
7915
|
unwrap() {
|
|
7916
7916
|
return this._def.innerType;
|
|
@@ -7925,7 +7925,7 @@ class Zi extends re {
|
|
|
7925
7925
|
_parse(e) {
|
|
7926
7926
|
const { ctx: t } = this._processInputParams(e);
|
|
7927
7927
|
let n = t.data;
|
|
7928
|
-
return t.parsedType ===
|
|
7928
|
+
return t.parsedType === G.undefined && (n = this._def.defaultValue()), this._def.innerType._parse({
|
|
7929
7929
|
data: n,
|
|
7930
7930
|
path: t.path,
|
|
7931
7931
|
parent: t
|
|
@@ -7986,11 +7986,11 @@ Ki.create = (r, e) => new Ki({
|
|
|
7986
7986
|
});
|
|
7987
7987
|
class is extends re {
|
|
7988
7988
|
_parse(e) {
|
|
7989
|
-
if (this._getType(e) !==
|
|
7989
|
+
if (this._getType(e) !== G.nan) {
|
|
7990
7990
|
const n = this._getOrReturnCtx(e);
|
|
7991
|
-
return
|
|
7991
|
+
return L(n, {
|
|
7992
7992
|
code: V.invalid_type,
|
|
7993
|
-
expected:
|
|
7993
|
+
expected: G.nan,
|
|
7994
7994
|
received: n.parsedType
|
|
7995
7995
|
}), H;
|
|
7996
7996
|
}
|
|
@@ -8104,7 +8104,7 @@ var p = /* @__PURE__ */ Object.freeze({
|
|
|
8104
8104
|
getErrorMap: Xa,
|
|
8105
8105
|
makeIssue: Qa,
|
|
8106
8106
|
EMPTY_PATH: CS,
|
|
8107
|
-
addIssueToContext:
|
|
8107
|
+
addIssueToContext: L,
|
|
8108
8108
|
ParseStatus: ft,
|
|
8109
8109
|
INVALID: H,
|
|
8110
8110
|
DIRTY: Nr,
|
|
@@ -8119,7 +8119,7 @@ var p = /* @__PURE__ */ Object.freeze({
|
|
|
8119
8119
|
get objectUtil() {
|
|
8120
8120
|
return No;
|
|
8121
8121
|
},
|
|
8122
|
-
ZodParsedType:
|
|
8122
|
+
ZodParsedType: G,
|
|
8123
8123
|
getParsedType: Mn,
|
|
8124
8124
|
ZodType: re,
|
|
8125
8125
|
datetimeRegex: cp,
|
|
@@ -23541,7 +23541,7 @@ function Oq(r) {
|
|
|
23541
23541
|
const e = r.project.builtInBaseEntities.find(
|
|
23542
23542
|
(a) => a.id === j.EXECUTION
|
|
23543
23543
|
), t = {
|
|
23544
|
-
id:
|
|
23544
|
+
id: B.UUID.uuid(),
|
|
23545
23545
|
version: 1,
|
|
23546
23546
|
type: i.DataType,
|
|
23547
23547
|
isList: !1,
|
|
@@ -25261,9 +25261,9 @@ ${dr}`, a.push(
|
|
|
25261
25261
|
);
|
|
25262
25262
|
} else {
|
|
25263
25263
|
const g = h.methods.find(
|
|
25264
|
-
(
|
|
25265
|
-
var
|
|
25266
|
-
return ((
|
|
25264
|
+
($) => {
|
|
25265
|
+
var F;
|
|
25266
|
+
return ((F = $.implements) == null ? void 0 : F.id) === n.implements;
|
|
25267
25267
|
}
|
|
25268
25268
|
);
|
|
25269
25269
|
g && a.push(
|
|
@@ -25280,7 +25280,7 @@ If you want to modify the existing implementation, you can update the existing m
|
|
|
25280
25280
|
);
|
|
25281
25281
|
const I = n.implements;
|
|
25282
25282
|
h.abstractMethods.find(
|
|
25283
|
-
(
|
|
25283
|
+
($) => $.id === I
|
|
25284
25284
|
) || a.push(
|
|
25285
25285
|
new v({
|
|
25286
25286
|
id: `${n.id}--${m.InvalidImplementsReference}`,
|
|
@@ -26568,15 +26568,15 @@ Alternatively you can update the entity with 'update' action. Or replace it by f
|
|
|
26568
26568
|
);
|
|
26569
26569
|
e && y.setParent(e), n && y.subscribe(), y.initChildren();
|
|
26570
26570
|
const h = (R = this.andChildrenGroup) == null ? void 0 : R.map(
|
|
26571
|
-
(S,
|
|
26571
|
+
(S, $) => S.clone(
|
|
26572
26572
|
y,
|
|
26573
|
-
u + "-and-group-data-type-" +
|
|
26573
|
+
u + "-and-group-data-type-" + $ + "-id",
|
|
26574
26574
|
n
|
|
26575
26575
|
)
|
|
26576
26576
|
), E = (g = this.orChildrenGroup) == null ? void 0 : g.map(
|
|
26577
|
-
(S,
|
|
26577
|
+
(S, $) => S.clone(
|
|
26578
26578
|
y,
|
|
26579
|
-
u + "-or-group-data-type-" +
|
|
26579
|
+
u + "-or-group-data-type-" + $ + "-id",
|
|
26580
26580
|
n
|
|
26581
26581
|
)
|
|
26582
26582
|
);
|
|
@@ -26662,7 +26662,7 @@ Alternatively you can update the entity with 'update' action. Or replace it by f
|
|
|
26662
26662
|
return this;
|
|
26663
26663
|
if (!this.entity && e.length) {
|
|
26664
26664
|
const n = {
|
|
26665
|
-
id:
|
|
26665
|
+
id: B.UUID.uuid(),
|
|
26666
26666
|
type: i.DefinitionEntity,
|
|
26667
26667
|
version: 1,
|
|
26668
26668
|
name: C(this.parent, this.project) + " data type definition",
|
|
@@ -29154,11 +29154,11 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
29154
29154
|
}
|
|
29155
29155
|
const S = this.body.inputs.find(
|
|
29156
29156
|
(ie) => ie.index === I.index && ie !== I
|
|
29157
|
-
),
|
|
29157
|
+
), $ = this.body.inputs.filter(
|
|
29158
29158
|
(ie) => ie !== I
|
|
29159
29159
|
);
|
|
29160
|
-
let
|
|
29161
|
-
S && (
|
|
29160
|
+
let F = I.index;
|
|
29161
|
+
S && (F = Math.max(...$.map((ie) => ie.index)) + 1), I.index !== F && (I.sync({ index: F }), e.push(I));
|
|
29162
29162
|
const z = I.getDataType();
|
|
29163
29163
|
let ae = z;
|
|
29164
29164
|
if (R)
|
|
@@ -29476,8 +29476,8 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
29476
29476
|
M[i.Loop][U.List].inputs.list.id
|
|
29477
29477
|
);
|
|
29478
29478
|
g && (!E.implements || E.implements.id !== g.id) && (E.setImplements(g), e.push(E));
|
|
29479
|
-
let
|
|
29480
|
-
if (
|
|
29479
|
+
let $ = E.getDataType();
|
|
29480
|
+
if (!$) {
|
|
29481
29481
|
const z = {
|
|
29482
29482
|
id: B.UUID.uuid(),
|
|
29483
29483
|
version: 1,
|
|
@@ -29494,10 +29494,10 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
29494
29494
|
z,
|
|
29495
29495
|
this.project
|
|
29496
29496
|
);
|
|
29497
|
-
ae.setParent(I), ae.initChildren(), ae.addSelfToProject(), t.push(ae),
|
|
29497
|
+
ae.setParent(I), ae.initChildren(), ae.addSelfToProject(), t.push(ae), $ = ae;
|
|
29498
29498
|
}
|
|
29499
|
-
const
|
|
29500
|
-
|
|
29499
|
+
const F = R.getDataType();
|
|
29500
|
+
$.merge(F), $.sync({ isList: !1 });
|
|
29501
29501
|
} else {
|
|
29502
29502
|
const I = {
|
|
29503
29503
|
id: B.UUID.uuid(),
|
|
@@ -29546,14 +29546,14 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
29546
29546
|
M[i.Loop][U.ObjectKeys].inputs.object.id
|
|
29547
29547
|
);
|
|
29548
29548
|
g && (!E.implements || E.implements.id !== g.id) && (E.setImplements(g), e.push(E));
|
|
29549
|
-
let
|
|
29550
|
-
if (
|
|
29551
|
-
const
|
|
29549
|
+
let $ = E.getDataType();
|
|
29550
|
+
if ($) {
|
|
29551
|
+
const F = this.project.getBuiltIn(
|
|
29552
29552
|
M["primitive-entity"].string.id
|
|
29553
29553
|
);
|
|
29554
|
-
((l =
|
|
29554
|
+
((l = $.entity) == null ? void 0 : l.id) !== F.id && ($.setEntity(F), e.push($));
|
|
29555
29555
|
} else {
|
|
29556
|
-
const
|
|
29556
|
+
const F = {
|
|
29557
29557
|
id: B.UUID.uuid(),
|
|
29558
29558
|
version: 1,
|
|
29559
29559
|
type: i.DataType,
|
|
@@ -29566,10 +29566,10 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
29566
29566
|
orChildrenGroup: [],
|
|
29567
29567
|
parent: I.toReference()
|
|
29568
29568
|
}, z = b(
|
|
29569
|
-
|
|
29569
|
+
F,
|
|
29570
29570
|
this.project
|
|
29571
29571
|
);
|
|
29572
|
-
z.setParent(I), z.initChildren(), z.addSelfToProject(),
|
|
29572
|
+
z.setParent(I), z.initChildren(), z.addSelfToProject(), $ = z;
|
|
29573
29573
|
}
|
|
29574
29574
|
} else {
|
|
29575
29575
|
const I = {
|
|
@@ -29611,10 +29611,10 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
29611
29611
|
M[i.Loop][U.ObjectValues].inputs.object.id
|
|
29612
29612
|
);
|
|
29613
29613
|
g && (!E.implements || E.implements.id !== g.id) && (E.setImplements(g), e.push(E));
|
|
29614
|
-
let
|
|
29615
|
-
if (
|
|
29616
|
-
const
|
|
29617
|
-
(y =
|
|
29614
|
+
let $ = E.getDataType();
|
|
29615
|
+
if ($) {
|
|
29616
|
+
const F = R.getDataType(), z = ((c = F == null ? void 0 : F.entity) == null ? void 0 : c.properties) || [];
|
|
29617
|
+
(y = $.orChildrenGroup) == null || y.forEach((ae) => {
|
|
29618
29618
|
const { affected: ie, removed: He } = ae.remove({
|
|
29619
29619
|
ignoreUpstream: !1,
|
|
29620
29620
|
seenEntities: /* @__PURE__ */ new Set()
|
|
@@ -29624,7 +29624,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
29624
29624
|
const ie = ae.getDataType();
|
|
29625
29625
|
if (ie) {
|
|
29626
29626
|
const He = ie.clone(
|
|
29627
|
-
|
|
29627
|
+
$
|
|
29628
29628
|
);
|
|
29629
29629
|
He.sync({
|
|
29630
29630
|
parentRelationType: et.OrDataTypeGroup
|
|
@@ -29642,16 +29642,16 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
29642
29642
|
andChildrenGroup: [],
|
|
29643
29643
|
orChildrenGroup: [],
|
|
29644
29644
|
parentRelationType: et.OrDataTypeGroup,
|
|
29645
|
-
parent:
|
|
29645
|
+
parent: $.toReference()
|
|
29646
29646
|
}, Tt = b(
|
|
29647
29647
|
He,
|
|
29648
29648
|
this.project
|
|
29649
29649
|
);
|
|
29650
|
-
Tt.setParent(
|
|
29650
|
+
Tt.setParent($), Tt.initChildren(), Tt.addSelfToProject(), t.push(Tt);
|
|
29651
29651
|
}
|
|
29652
29652
|
});
|
|
29653
29653
|
} else {
|
|
29654
|
-
const
|
|
29654
|
+
const F = {
|
|
29655
29655
|
id: B.UUID.uuid(),
|
|
29656
29656
|
version: 1,
|
|
29657
29657
|
type: i.DataType,
|
|
@@ -29664,10 +29664,10 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
29664
29664
|
orChildrenGroup: [],
|
|
29665
29665
|
parent: I.toReference()
|
|
29666
29666
|
}, z = b(
|
|
29667
|
-
|
|
29667
|
+
F,
|
|
29668
29668
|
this.project
|
|
29669
29669
|
);
|
|
29670
|
-
z.setParent(I), z.initChildren(), z.addSelfToProject(),
|
|
29670
|
+
z.setParent(I), z.initChildren(), z.addSelfToProject(), $ = z;
|
|
29671
29671
|
const ae = R.getDataType();
|
|
29672
29672
|
(((u = ae == null ? void 0 : ae.entity) == null ? void 0 : u.properties) || []).forEach((He) => {
|
|
29673
29673
|
const Tt = He.getDataType();
|
|
@@ -29740,14 +29740,14 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
29740
29740
|
M[i.Loop]["string-loop"].inputs.string.id
|
|
29741
29741
|
);
|
|
29742
29742
|
g && (!E.implements || E.implements.id !== g.id) && (E.setImplements(g), e.push(E));
|
|
29743
|
-
let
|
|
29744
|
-
if (
|
|
29745
|
-
const
|
|
29743
|
+
let $ = E.getDataType();
|
|
29744
|
+
if ($) {
|
|
29745
|
+
const F = this.project.getBuiltIn(
|
|
29746
29746
|
M["primitive-entity"].string.id
|
|
29747
29747
|
);
|
|
29748
|
-
((h =
|
|
29748
|
+
((h = $.entity) == null ? void 0 : h.id) !== F.id && ($.setEntity(F), e.push($));
|
|
29749
29749
|
} else {
|
|
29750
|
-
const
|
|
29750
|
+
const F = {
|
|
29751
29751
|
id: B.UUID.uuid(),
|
|
29752
29752
|
version: 1,
|
|
29753
29753
|
type: i.DataType,
|
|
@@ -29760,10 +29760,10 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
29760
29760
|
orChildrenGroup: [],
|
|
29761
29761
|
parent: I.toReference()
|
|
29762
29762
|
}, z = b(
|
|
29763
|
-
|
|
29763
|
+
F,
|
|
29764
29764
|
this.project
|
|
29765
29765
|
);
|
|
29766
|
-
z.setParent(I), z.initChildren(), z.addSelfToProject(), t.push(z),
|
|
29766
|
+
z.setParent(I), z.initChildren(), z.addSelfToProject(), t.push(z), $ = z;
|
|
29767
29767
|
}
|
|
29768
29768
|
} else {
|
|
29769
29769
|
const I = {
|
|
@@ -30111,10 +30111,10 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
30111
30111
|
e.push(...R), t.push(...g), n.push(...I);
|
|
30112
30112
|
const {
|
|
30113
30113
|
updated: S,
|
|
30114
|
-
added:
|
|
30115
|
-
removed:
|
|
30114
|
+
added: $,
|
|
30115
|
+
removed: F
|
|
30116
30116
|
} = this.syncBodyInputIndexes();
|
|
30117
|
-
e.push(...S), t.push(
|
|
30117
|
+
e.push(...S), t.push(...$), n.push(...F);
|
|
30118
30118
|
const {
|
|
30119
30119
|
updated: z,
|
|
30120
30120
|
added: ae,
|
|
@@ -31764,7 +31764,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
31764
31764
|
return this.defaultValue = e, this;
|
|
31765
31765
|
}
|
|
31766
31766
|
clone(e = null, t = null, n = !0) {
|
|
31767
|
-
var I, S,
|
|
31767
|
+
var I, S, $, F, z;
|
|
31768
31768
|
let a = Ye(e, this);
|
|
31769
31769
|
const s = this.toJSON(), o = t || De(
|
|
31770
31770
|
C(this, this.project),
|
|
@@ -31781,7 +31781,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
31781
31781
|
e ? c.setParent(e) : c.setParent(this.parent), n && c.subscribe(), c.initChildren();
|
|
31782
31782
|
const y = (I = this.dataType) == null ? void 0 : I.clone(
|
|
31783
31783
|
c,
|
|
31784
|
-
|
|
31784
|
+
B.UUID.uuid(),
|
|
31785
31785
|
n
|
|
31786
31786
|
);
|
|
31787
31787
|
c.dataType = y || null;
|
|
@@ -31791,7 +31791,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
31791
31791
|
n
|
|
31792
31792
|
);
|
|
31793
31793
|
c.defaultValue = h || null;
|
|
31794
|
-
const E = (
|
|
31794
|
+
const E = ($ = this.inputs) == null ? void 0 : $.map(
|
|
31795
31795
|
(ae, ie) => ae.clone(
|
|
31796
31796
|
c,
|
|
31797
31797
|
u + "-input-map-" + ie + "-id",
|
|
@@ -31799,7 +31799,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
31799
31799
|
)
|
|
31800
31800
|
);
|
|
31801
31801
|
c.inputs = E;
|
|
31802
|
-
const R = (
|
|
31802
|
+
const R = (F = this.outputs) == null ? void 0 : F.map(
|
|
31803
31803
|
(ae, ie) => ae.clone(
|
|
31804
31804
|
c,
|
|
31805
31805
|
u + "-output-map-" + ie + "-id",
|
|
@@ -32836,7 +32836,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
32836
32836
|
return this.defaultValue = e, this;
|
|
32837
32837
|
}
|
|
32838
32838
|
clone(e = null, t = null, n = !0) {
|
|
32839
|
-
var g, I, S,
|
|
32839
|
+
var g, I, S, $;
|
|
32840
32840
|
let a = Ye(e, this);
|
|
32841
32841
|
const s = this.toJSON(), o = t || De(
|
|
32842
32842
|
C(this, this.project),
|
|
@@ -32858,7 +32858,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
32858
32858
|
);
|
|
32859
32859
|
c.defaultValue = y || null;
|
|
32860
32860
|
const h = (I = this.inputs) == null ? void 0 : I.map(
|
|
32861
|
-
(
|
|
32861
|
+
(F, z) => F.clone(
|
|
32862
32862
|
c,
|
|
32863
32863
|
u + "-input-map-" + z + "-id",
|
|
32864
32864
|
n
|
|
@@ -32866,15 +32866,15 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
32866
32866
|
);
|
|
32867
32867
|
c.inputs = h;
|
|
32868
32868
|
const E = (S = this.outputs) == null ? void 0 : S.map(
|
|
32869
|
-
(
|
|
32869
|
+
(F, z) => F.clone(
|
|
32870
32870
|
c,
|
|
32871
32871
|
u + "-output-map-" + z + "-id",
|
|
32872
32872
|
n
|
|
32873
32873
|
)
|
|
32874
32874
|
);
|
|
32875
32875
|
c.outputs = E;
|
|
32876
|
-
const R = (
|
|
32877
|
-
(
|
|
32876
|
+
const R = ($ = this.internalCalls) == null ? void 0 : $.map(
|
|
32877
|
+
(F, z) => F.clone(
|
|
32878
32878
|
c,
|
|
32879
32879
|
u + "-internal-call-" + z + "-id",
|
|
32880
32880
|
n
|
|
@@ -33246,22 +33246,22 @@ ${au}`,
|
|
|
33246
33246
|
const h = y.implements;
|
|
33247
33247
|
if (h) {
|
|
33248
33248
|
const E = h.outputs.find(
|
|
33249
|
-
(
|
|
33250
|
-
), R = h.outputs.filter((
|
|
33251
|
-
(ae) => ae.type === i.ReturnDeclaration && ae.name ===
|
|
33249
|
+
(F) => F.name === n.name
|
|
33250
|
+
), R = h.outputs.filter((F) => !c.outputs.find(
|
|
33251
|
+
(ae) => ae.type === i.ReturnDeclaration && ae.name === F.name
|
|
33252
33252
|
)), g = c.outputs.filter(
|
|
33253
|
-
(
|
|
33253
|
+
(F) => F.type === i.ReturnDeclaration
|
|
33254
33254
|
), I = g.find(
|
|
33255
|
-
(
|
|
33255
|
+
(F) => F.name === n.name
|
|
33256
33256
|
), S = g.length ? `The parent entity already implements the following return declarations: ${k(
|
|
33257
33257
|
g.map(
|
|
33258
|
-
(
|
|
33258
|
+
(F) => `'${F.id}' (${F.name})`
|
|
33259
33259
|
),
|
|
33260
33260
|
", ",
|
|
33261
33261
|
" and "
|
|
33262
|
-
)}.` : "The parent entity does not yet have any implemented return declarations.",
|
|
33262
|
+
)}.` : "The parent entity does not yet have any implemented return declarations.", $ = R.length ? `The parent entity is still missing the following returns in the implementation: ${k(
|
|
33263
33263
|
R.map(
|
|
33264
|
-
(
|
|
33264
|
+
(F) => `'${F.id}' (${F.name})`
|
|
33265
33265
|
),
|
|
33266
33266
|
", ",
|
|
33267
33267
|
" and "
|
|
@@ -33274,7 +33274,7 @@ ${au}`,
|
|
|
33274
33274
|
message: `Entity of type '${i.ReturnDeclaration}' with id '${n.id}' should not exist in a parent entity of type '${c.type}' with id '${c.id}' that implements a ${i.ActionDescriptor} with fixed outputs.
|
|
33275
33275
|
Adding a new return would make the implementation invalid. An return with the same name already exists in the parent entity.
|
|
33276
33276
|
${S}
|
|
33277
|
-
${
|
|
33277
|
+
${$}`,
|
|
33278
33278
|
issue: null
|
|
33279
33279
|
})
|
|
33280
33280
|
) : a.push(
|
|
@@ -33285,7 +33285,7 @@ ${L}`,
|
|
|
33285
33285
|
message: `Entity of type '${i.ReturnDeclaration}' with id '${n.id}' should not exist in a parent entity of type '${c.type}' with id '${c.id}' that implements a ${i.ActionDescriptor} with fixed outputs.
|
|
33286
33286
|
Adding a new return would make the implementation invalid. There are no returns in the descriptor with the same name.
|
|
33287
33287
|
${S}
|
|
33288
|
-
${
|
|
33288
|
+
${$}`,
|
|
33289
33289
|
issue: null
|
|
33290
33290
|
})
|
|
33291
33291
|
);
|
|
@@ -33678,7 +33678,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
33678
33678
|
e ? c.setParent(e) : c.setParent(this.parent), n && c.subscribe(), c.initChildren();
|
|
33679
33679
|
const y = (E = this.dataType) == null ? void 0 : E.clone(
|
|
33680
33680
|
c,
|
|
33681
|
-
|
|
33681
|
+
B.UUID.uuid(),
|
|
33682
33682
|
n
|
|
33683
33683
|
);
|
|
33684
33684
|
c.dataType = y || null;
|
|
@@ -34517,7 +34517,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
34517
34517
|
return this.errors;
|
|
34518
34518
|
}
|
|
34519
34519
|
clone(e = null, t = null, n = !0) {
|
|
34520
|
-
var g, I, S,
|
|
34520
|
+
var g, I, S, $;
|
|
34521
34521
|
let a = Ye(e, this);
|
|
34522
34522
|
const s = this.toJSON(), o = t || De(
|
|
34523
34523
|
C(this, this.project),
|
|
@@ -34533,7 +34533,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
34533
34533
|
);
|
|
34534
34534
|
e ? c.setParent(e) : c.setParent(this.parent), n && c.subscribe(), c.initChildren();
|
|
34535
34535
|
const y = (g = this.inputsDeclarations) == null ? void 0 : g.map(
|
|
34536
|
-
(
|
|
34536
|
+
(F, z) => F.clone(
|
|
34537
34537
|
this,
|
|
34538
34538
|
u + "-input-declaration-" + z + "-id",
|
|
34539
34539
|
n
|
|
@@ -34541,7 +34541,7 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
34541
34541
|
);
|
|
34542
34542
|
c.inputsDeclarations = y;
|
|
34543
34543
|
const h = (I = this.outputsDeclarations) == null ? void 0 : I.map(
|
|
34544
|
-
(
|
|
34544
|
+
(F, z) => F.clone(
|
|
34545
34545
|
this,
|
|
34546
34546
|
u + "-output-declaration-" + z + "-id",
|
|
34547
34547
|
n
|
|
@@ -34549,15 +34549,15 @@ You shouldn't have to manually update a 'parent' property. The equivalent result
|
|
|
34549
34549
|
);
|
|
34550
34550
|
c.outputsDeclarations = h;
|
|
34551
34551
|
const E = (S = this.inputs) == null ? void 0 : S.map(
|
|
34552
|
-
(
|
|
34552
|
+
(F, z) => F.clone(
|
|
34553
34553
|
c,
|
|
34554
34554
|
u + "-input-map-" + z + "-id",
|
|
34555
34555
|
n
|
|
34556
34556
|
)
|
|
34557
34557
|
);
|
|
34558
34558
|
c.inputs = E;
|
|
34559
|
-
const R = (
|
|
34560
|
-
(
|
|
34559
|
+
const R = ($ = this.outputs) == null ? void 0 : $.map(
|
|
34560
|
+
(F, z) => F.clone(
|
|
34561
34561
|
c,
|
|
34562
34562
|
u + "-output-map-" + z + "-id",
|
|
34563
34563
|
n
|
|
@@ -36665,27 +36665,25 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
36665
36665
|
return this.defaultValue = e, this;
|
|
36666
36666
|
}
|
|
36667
36667
|
clone(e = null, t = null, n = !0) {
|
|
36668
|
-
var
|
|
36668
|
+
var c;
|
|
36669
36669
|
let a = Ye(e, this);
|
|
36670
36670
|
const s = this.toJSON(), o = t || De(
|
|
36671
36671
|
C(this, this.project),
|
|
36672
36672
|
i.InputMap,
|
|
36673
36673
|
a
|
|
36674
36674
|
);
|
|
36675
|
-
s.defaultValue = null;
|
|
36676
|
-
const l =
|
|
36677
|
-
s.id = o;
|
|
36678
|
-
const c = je(
|
|
36675
|
+
s.defaultValue = null, s.id = o;
|
|
36676
|
+
const l = je(
|
|
36679
36677
|
s,
|
|
36680
36678
|
a
|
|
36681
36679
|
);
|
|
36682
|
-
e ?
|
|
36683
|
-
const
|
|
36684
|
-
|
|
36685
|
-
|
|
36680
|
+
e ? l.setParent(e) : l.setParent(this.parent), n && l.subscribe(), l.initChildren();
|
|
36681
|
+
const u = (c = this.defaultValue) == null ? void 0 : c.clone(
|
|
36682
|
+
l,
|
|
36683
|
+
B.UUID.uuid(),
|
|
36686
36684
|
n
|
|
36687
36685
|
);
|
|
36688
|
-
return
|
|
36686
|
+
return l.defaultValue = u || null, l;
|
|
36689
36687
|
}
|
|
36690
36688
|
/*
|
|
36691
36689
|
Check that it belongs to a variable with inferred data type,
|
|
@@ -37287,7 +37285,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
37287
37285
|
e ? c.setParent(e) : c.setParent(this.parent), n && c.subscribe(), c.initChildren();
|
|
37288
37286
|
const y = (E = this.dataType) == null ? void 0 : E.clone(
|
|
37289
37287
|
c,
|
|
37290
|
-
|
|
37288
|
+
B.UUID.uuid(),
|
|
37291
37289
|
n
|
|
37292
37290
|
);
|
|
37293
37291
|
c.dataType = y || null;
|
|
@@ -37483,10 +37481,10 @@ const ve = class ve {
|
|
|
37483
37481
|
(I) => I.name === n.name
|
|
37484
37482
|
), y = u.inputs.filter((I) => !l.inputs.find(
|
|
37485
37483
|
// @ts-ignore
|
|
37486
|
-
(
|
|
37484
|
+
($) => (
|
|
37487
37485
|
// @ts-ignore
|
|
37488
|
-
|
|
37489
|
-
|
|
37486
|
+
$.type === i.ArgumentDeclaration && // @ts-ignore
|
|
37487
|
+
$.name === I.name
|
|
37490
37488
|
)
|
|
37491
37489
|
)), h = (
|
|
37492
37490
|
// @ts-ignore
|
|
@@ -37904,7 +37902,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
37904
37902
|
e ? c.setParent(e) : c.setParent(this.parent), n && c.subscribe(), c.initChildren();
|
|
37905
37903
|
const y = (E = this.dataType) == null ? void 0 : E.clone(
|
|
37906
37904
|
c,
|
|
37907
|
-
|
|
37905
|
+
B.UUID.uuid(),
|
|
37908
37906
|
n
|
|
37909
37907
|
);
|
|
37910
37908
|
c.dataType = y || null;
|
|
@@ -40471,7 +40469,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
40471
40469
|
entityId: e
|
|
40472
40470
|
};
|
|
40473
40471
|
return {
|
|
40474
|
-
id:
|
|
40472
|
+
id: B.UUID.uuid(),
|
|
40475
40473
|
version: o.version,
|
|
40476
40474
|
type: i.ArgumentDeclaration,
|
|
40477
40475
|
name: o.name,
|
|
@@ -40498,7 +40496,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
40498
40496
|
entityType: i.ReturnStatement
|
|
40499
40497
|
};
|
|
40500
40498
|
return {
|
|
40501
|
-
id:
|
|
40499
|
+
id: B.UUID.uuid(),
|
|
40502
40500
|
version: y.version,
|
|
40503
40501
|
type: i.ReturnDeclaration,
|
|
40504
40502
|
name: y.name,
|
|
@@ -40525,7 +40523,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
40525
40523
|
entityType: i.FunctionDeclaration,
|
|
40526
40524
|
entityId: e
|
|
40527
40525
|
}, c = {
|
|
40528
|
-
id:
|
|
40526
|
+
id: B.UUID.uuid(),
|
|
40529
40527
|
version: this.version,
|
|
40530
40528
|
type: i.ReturnStatement,
|
|
40531
40529
|
outputs: o,
|
|
@@ -40559,7 +40557,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
40559
40557
|
}
|
|
40560
40558
|
// This function returns an instance of an loop, which is an implementation of this loop declaration
|
|
40561
40559
|
implementAsLoop(e) {
|
|
40562
|
-
const t = e || this.project, n =
|
|
40560
|
+
const t = e || this.project, n = B.UUID.uuid(), a = {
|
|
40563
40561
|
id: n,
|
|
40564
40562
|
version: this.version,
|
|
40565
40563
|
type: i.Loop,
|
|
@@ -40582,8 +40580,8 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
40582
40580
|
parent: t.toReference()
|
|
40583
40581
|
};
|
|
40584
40582
|
this.inputs.forEach((l, u) => {
|
|
40585
|
-
const
|
|
40586
|
-
id:
|
|
40583
|
+
const c = {
|
|
40584
|
+
id: B.UUID.uuid(),
|
|
40587
40585
|
version: this.version,
|
|
40588
40586
|
type: i.InputMap,
|
|
40589
40587
|
name: null,
|
|
@@ -40599,10 +40597,10 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
40599
40597
|
entityType: i.Loop
|
|
40600
40598
|
}
|
|
40601
40599
|
};
|
|
40602
|
-
a.inputs.push(
|
|
40600
|
+
a.inputs.push(c);
|
|
40603
40601
|
}), this.outputs.forEach((l, u) => {
|
|
40604
|
-
const
|
|
40605
|
-
id:
|
|
40602
|
+
const c = {
|
|
40603
|
+
id: B.UUID.uuid(),
|
|
40606
40604
|
version: this.version,
|
|
40607
40605
|
type: i.OutputMap,
|
|
40608
40606
|
declaration: l,
|
|
@@ -40616,10 +40614,10 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
40616
40614
|
entityType: i.Loop
|
|
40617
40615
|
}
|
|
40618
40616
|
};
|
|
40619
|
-
a.outputs.push(
|
|
40617
|
+
a.outputs.push(c);
|
|
40620
40618
|
});
|
|
40621
40619
|
const s = {
|
|
40622
|
-
id:
|
|
40620
|
+
id: B.UUID.uuid(),
|
|
40623
40621
|
version: this.version,
|
|
40624
40622
|
type: i.FunctionDeclaration,
|
|
40625
40623
|
name: "body",
|
|
@@ -40690,7 +40688,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
40690
40688
|
}
|
|
40691
40689
|
// This function returns an instance of an operation, which is an implementation of this operation declaration
|
|
40692
40690
|
implementAsOperation(e, t) {
|
|
40693
|
-
const n = e || this.project, a = t ||
|
|
40691
|
+
const n = e || this.project, a = t || B.UUID.uuid(), s = {
|
|
40694
40692
|
id: a,
|
|
40695
40693
|
version: this.version,
|
|
40696
40694
|
type: i.Operation,
|
|
@@ -40745,8 +40743,8 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
40745
40743
|
};
|
|
40746
40744
|
s.outputs.push(c);
|
|
40747
40745
|
}), this.error) {
|
|
40748
|
-
const
|
|
40749
|
-
id:
|
|
40746
|
+
const l = {
|
|
40747
|
+
id: B.UUID.uuid(),
|
|
40750
40748
|
version: this.version,
|
|
40751
40749
|
type: i.OutputMap,
|
|
40752
40750
|
declaration: this.error,
|
|
@@ -40760,7 +40758,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
40760
40758
|
entityType: i.Operation
|
|
40761
40759
|
}
|
|
40762
40760
|
};
|
|
40763
|
-
s.error =
|
|
40761
|
+
s.error = l;
|
|
40764
40762
|
}
|
|
40765
40763
|
const o = b(
|
|
40766
40764
|
s,
|
|
@@ -40769,7 +40767,7 @@ This is likely an incorrect strategy, either the '${this.type}' entity doesn't n
|
|
|
40769
40767
|
return o.setParent(n), o.initChildren(), o;
|
|
40770
40768
|
}
|
|
40771
40769
|
implementAsCondition(e) {
|
|
40772
|
-
const t = e || this.project, n =
|
|
40770
|
+
const t = e || this.project, n = B.UUID.uuid(), a = {
|
|
40773
40771
|
id: n,
|
|
40774
40772
|
version: this.version,
|
|
40775
40773
|
type: i.Condition,
|
|
@@ -44993,15 +44991,15 @@ function Ac(r, e, t) {
|
|
|
44993
44991
|
type: i.GenericReference,
|
|
44994
44992
|
entityId: n,
|
|
44995
44993
|
entityType: i.DefinitionEntity
|
|
44996
|
-
},
|
|
44994
|
+
}, $ = {
|
|
44997
44995
|
...I,
|
|
44998
44996
|
implements: R,
|
|
44999
44997
|
parent: S
|
|
45000
|
-
},
|
|
45001
|
-
|
|
44998
|
+
}, F = b(
|
|
44999
|
+
$,
|
|
45002
45000
|
r.project
|
|
45003
45001
|
);
|
|
45004
|
-
return c.addMethod(
|
|
45002
|
+
return c.addMethod(F), F.setParent(c), F.initChildren(), F.implements = R, F;
|
|
45005
45003
|
}
|
|
45006
45004
|
);
|
|
45007
45005
|
o.properties = y, o.methods = h;
|
|
@@ -45030,7 +45028,7 @@ function cT(r, e) {
|
|
|
45030
45028
|
}
|
|
45031
45029
|
function T2(r, e, t = et.OrDataTypeGroup) {
|
|
45032
45030
|
const n = [], a = [], s = [], l = {
|
|
45033
|
-
id:
|
|
45031
|
+
id: B.UUID.uuid(),
|
|
45034
45032
|
version: 1,
|
|
45035
45033
|
type: i.DataType,
|
|
45036
45034
|
entity: r.toJSON(),
|
|
@@ -45133,18 +45131,18 @@ function uT(r, e, t, n) {
|
|
|
45133
45131
|
else {
|
|
45134
45132
|
const h = [];
|
|
45135
45133
|
let E = !1;
|
|
45136
|
-
c.forEach((g
|
|
45134
|
+
c.forEach((g) => {
|
|
45137
45135
|
if (Array.isArray(g) && (E = !0), typeof g == "object" && !Array.isArray(g) && g !== null) {
|
|
45138
|
-
const
|
|
45136
|
+
const I = _o(
|
|
45139
45137
|
g,
|
|
45140
45138
|
e.project,
|
|
45141
45139
|
{
|
|
45142
45140
|
...t,
|
|
45143
|
-
id:
|
|
45141
|
+
id: B.UUID.uuid()
|
|
45144
45142
|
},
|
|
45145
45143
|
n
|
|
45146
45144
|
);
|
|
45147
|
-
|
|
45145
|
+
I.hasCreated && h.push(I.changeSet.self), a.push(...I.changeSet.updated), s.push(...I.changeSet.added), o.push(...I.changeSet.removed);
|
|
45148
45146
|
}
|
|
45149
45147
|
});
|
|
45150
45148
|
const R = f(
|
|
@@ -45202,23 +45200,23 @@ function uT(r, e, t, n) {
|
|
|
45202
45200
|
});
|
|
45203
45201
|
break;
|
|
45204
45202
|
} else
|
|
45205
|
-
R.length === 1 && !E ? e.setEntity(R[0]) : c.forEach((g
|
|
45203
|
+
R.length === 1 && !E ? e.setEntity(R[0]) : c.forEach((g) => {
|
|
45206
45204
|
if (typeof g == "object" && !Array.isArray(g) && g !== null) {
|
|
45207
|
-
const
|
|
45205
|
+
const I = cT(
|
|
45208
45206
|
Object.keys(g),
|
|
45209
45207
|
e.project
|
|
45210
45208
|
);
|
|
45211
|
-
if (
|
|
45212
|
-
const
|
|
45213
|
-
|
|
45209
|
+
if (I) {
|
|
45210
|
+
const S = T2(
|
|
45211
|
+
I || R[0],
|
|
45214
45212
|
e,
|
|
45215
45213
|
et.OrDataTypeGroup
|
|
45216
45214
|
);
|
|
45217
|
-
a.push(...
|
|
45215
|
+
a.push(...S.updated), s.push(...S.added), o.push(...S.removed);
|
|
45218
45216
|
}
|
|
45219
45217
|
} else {
|
|
45220
|
-
const
|
|
45221
|
-
id:
|
|
45218
|
+
const I = {
|
|
45219
|
+
id: B.UUID.uuid(),
|
|
45222
45220
|
version: 1,
|
|
45223
45221
|
type: i.DataType,
|
|
45224
45222
|
entity: null,
|
|
@@ -45230,17 +45228,17 @@ function uT(r, e, t, n) {
|
|
|
45230
45228
|
inferred: !1,
|
|
45231
45229
|
parentRelationType: et.OrDataTypeGroup,
|
|
45232
45230
|
parent: e.toReference()
|
|
45233
|
-
},
|
|
45234
|
-
|
|
45231
|
+
}, S = b(
|
|
45232
|
+
I,
|
|
45235
45233
|
e.project
|
|
45236
45234
|
);
|
|
45237
|
-
|
|
45235
|
+
S.setParent(e), S.initChildren(), S.addSelfToProject();
|
|
45238
45236
|
const $ = uT(
|
|
45239
45237
|
g,
|
|
45240
|
-
|
|
45238
|
+
S,
|
|
45241
45239
|
{
|
|
45242
45240
|
...t,
|
|
45243
|
-
id:
|
|
45241
|
+
id: B.UUID.uuid()
|
|
45244
45242
|
},
|
|
45245
45243
|
n
|
|
45246
45244
|
);
|
|
@@ -45313,12 +45311,12 @@ function _o(r, e, t, n) {
|
|
|
45313
45311
|
e
|
|
45314
45312
|
);
|
|
45315
45313
|
return E.setParent(e), E.initChildren(), E.addSelfToProject(), s.push(E), l.forEach((R, g) => {
|
|
45316
|
-
const
|
|
45317
|
-
|
|
45318
|
-
|
|
45319
|
-
|
|
45320
|
-
|
|
45321
|
-
|
|
45314
|
+
const S = {
|
|
45315
|
+
id: De(
|
|
45316
|
+
c + " " + R,
|
|
45317
|
+
i.Property,
|
|
45318
|
+
e
|
|
45319
|
+
),
|
|
45322
45320
|
version: 1,
|
|
45323
45321
|
name: R,
|
|
45324
45322
|
type: i.Property,
|
|
@@ -45334,13 +45332,13 @@ function _o(r, e, t, n) {
|
|
|
45334
45332
|
private: !1,
|
|
45335
45333
|
required: !0,
|
|
45336
45334
|
parent: E.toReference()
|
|
45337
|
-
},
|
|
45335
|
+
}, $ = b(
|
|
45338
45336
|
S,
|
|
45339
45337
|
e
|
|
45340
45338
|
);
|
|
45341
|
-
|
|
45342
|
-
const
|
|
45343
|
-
id:
|
|
45339
|
+
$.setParent(E), $.initChildren(), $.addSelfToProject(), s.push($);
|
|
45340
|
+
const F = r[R], ae = {
|
|
45341
|
+
id: B.UUID.uuid(),
|
|
45344
45342
|
version: 1,
|
|
45345
45343
|
type: i.DataType,
|
|
45346
45344
|
entity: null,
|
|
@@ -45350,19 +45348,19 @@ function _o(r, e, t, n) {
|
|
|
45350
45348
|
orChildrenGroup: null,
|
|
45351
45349
|
like: !0,
|
|
45352
45350
|
inferred: !1,
|
|
45353
|
-
parent:
|
|
45351
|
+
parent: $.toReference()
|
|
45354
45352
|
}, ie = b(
|
|
45355
45353
|
ae,
|
|
45356
45354
|
e
|
|
45357
45355
|
);
|
|
45358
|
-
ie.setParent(
|
|
45356
|
+
ie.setParent($), ie.initChildren(), ie.addSelfToProject(), s.push(ie);
|
|
45359
45357
|
const He = uT(
|
|
45360
|
-
|
|
45358
|
+
F,
|
|
45361
45359
|
ie,
|
|
45362
45360
|
{
|
|
45363
45361
|
...t,
|
|
45364
45362
|
name: R,
|
|
45365
|
-
id:
|
|
45363
|
+
id: B.UUID.uuid()
|
|
45366
45364
|
},
|
|
45367
45365
|
n || E
|
|
45368
45366
|
);
|
|
@@ -47990,17 +47988,17 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
47990
47988
|
);
|
|
47991
47989
|
c.properties = y;
|
|
47992
47990
|
const h = (g = this.methods) == null ? void 0 : g.map(
|
|
47993
|
-
(S,
|
|
47991
|
+
(S, $) => S.clone(
|
|
47994
47992
|
c,
|
|
47995
|
-
u + "-method-" +
|
|
47993
|
+
u + "-method-" + $ + "-id",
|
|
47996
47994
|
n
|
|
47997
47995
|
)
|
|
47998
47996
|
);
|
|
47999
47997
|
c.methods = h;
|
|
48000
47998
|
const E = (I = this.abstractMethods) == null ? void 0 : I.map(
|
|
48001
|
-
(S,
|
|
47999
|
+
(S, $) => S.clone(
|
|
48002
48000
|
c,
|
|
48003
|
-
u + "-abstract-method-" +
|
|
48001
|
+
u + "-abstract-method-" + $ + "-id",
|
|
48004
48002
|
n
|
|
48005
48003
|
)
|
|
48006
48004
|
);
|
|
@@ -48053,7 +48051,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
48053
48051
|
u
|
|
48054
48052
|
), y = c == null ? void 0 : c.clone(
|
|
48055
48053
|
o,
|
|
48056
|
-
|
|
48054
|
+
B.UUID.uuid(),
|
|
48057
48055
|
!0
|
|
48058
48056
|
);
|
|
48059
48057
|
y && o.setDataType(y), s.setDeclaration(o);
|
|
@@ -48115,7 +48113,7 @@ Alternatively you can update the parent data-type entity with 'update' action to
|
|
|
48115
48113
|
y
|
|
48116
48114
|
), E = h == null ? void 0 : h.clone(
|
|
48117
48115
|
u,
|
|
48118
|
-
|
|
48116
|
+
B.UUID.uuid(),
|
|
48119
48117
|
!0
|
|
48120
48118
|
);
|
|
48121
48119
|
return E && u.setDataType(E), this.addProperty(u), s.setDeclaration(u), u;
|
|
@@ -50338,7 +50336,7 @@ class w7 extends se {
|
|
|
50338
50336
|
return null;
|
|
50339
50337
|
if (!t.dataType) {
|
|
50340
50338
|
const l = {
|
|
50341
|
-
id:
|
|
50339
|
+
id: B.UUID.uuid(),
|
|
50342
50340
|
version: 1,
|
|
50343
50341
|
type: i.DataType,
|
|
50344
50342
|
isList: !1,
|
|
@@ -50374,7 +50372,7 @@ class w7 extends se {
|
|
|
50374
50372
|
return null;
|
|
50375
50373
|
if (!t.dataType) {
|
|
50376
50374
|
const c = {
|
|
50377
|
-
id:
|
|
50375
|
+
id: B.UUID.uuid(),
|
|
50378
50376
|
version: 1,
|
|
50379
50377
|
type: i.DataType,
|
|
50380
50378
|
isList: !1,
|
|
@@ -50412,7 +50410,7 @@ class w7 extends se {
|
|
|
50412
50410
|
return null;
|
|
50413
50411
|
if (!t.dataType) {
|
|
50414
50412
|
const c = {
|
|
50415
|
-
id:
|
|
50413
|
+
id: B.UUID.uuid(),
|
|
50416
50414
|
version: 1,
|
|
50417
50415
|
type: i.DataType,
|
|
50418
50416
|
isList: !1,
|