@nxtedition/types 23.1.9 → 23.1.10
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/common/settings.d.ts +9 -0
- package/dist/nxtpression.d.ts +71 -1
- package/dist/records/domains/event.d.ts +22 -0
- package/dist/records/domains/index.d.ts +3 -1
- package/dist/records/domains/index.js +1 -0
- package/dist/records/domains/media.d.ts +4 -0
- package/dist/records/domains/monitor.d.ts +13 -0
- package/dist/records/domains/story.d.ts +14 -0
- package/dist/records/domains/story.js +1 -0
- package/dist/records/validate/assert-guard.js +405 -38
- package/dist/records/validate/assert.js +409 -38
- package/dist/records/validate/is.js +29 -7
- package/dist/records/validate/schemas.js +307 -11
- package/dist/records/validate/stringify.js +34 -10
- package/dist/records/validate/utils.js +1 -1
- package/dist/records/validate/validate-equals.js +634 -44
- package/dist/records/validate/validate.js +398 -38
- package/dist/rpc.d.ts +1 -1
- package/dist/rpc.js +3 -3
- package/package.json +2 -2
|
@@ -3098,7 +3098,7 @@ function _validateEqualsExactRecord(name, input) {
|
|
|
3098
3098
|
if (undefined === value)
|
|
3099
3099
|
return true;
|
|
3100
3100
|
return "string" === typeof value;
|
|
3101
|
-
}); const _io2 = (input, _exceptionable = true) => "string" === typeof input.family && (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.weight || "
|
|
3101
|
+
}); const _io2 = (input, _exceptionable = true) => "string" === typeof input.family && (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.weight || "normal" === input.weight || "bold" === input.weight) && (undefined === input.style || "normal" === input.style || "italic" === input.style) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
3102
3102
|
if (["family", "asset", "weight", "style"].some(prop => key === prop))
|
|
3103
3103
|
return true;
|
|
3104
3104
|
const value = input[key];
|
|
@@ -3166,11 +3166,11 @@ function _validateEqualsExactRecord(name, input) {
|
|
|
3166
3166
|
path: _path + ".asset",
|
|
3167
3167
|
expected: "(string | undefined)",
|
|
3168
3168
|
value: input.asset
|
|
3169
|
-
}), undefined === input.weight || "
|
|
3169
|
+
}), undefined === input.weight || "normal" === input.weight || "bold" === input.weight || _report(_exceptionable, {
|
|
3170
3170
|
path: _path + ".weight",
|
|
3171
3171
|
expected: "(\"bold\" | \"normal\" | undefined)",
|
|
3172
3172
|
value: input.weight
|
|
3173
|
-
}), undefined === input.style || "
|
|
3173
|
+
}), undefined === input.style || "normal" === input.style || "italic" === input.style || _report(_exceptionable, {
|
|
3174
3174
|
path: _path + ".style",
|
|
3175
3175
|
expected: "(\"italic\" | \"normal\" | undefined)",
|
|
3176
3176
|
value: input.style
|
|
@@ -3232,7 +3232,7 @@ function _validateEqualsExactRecord(name, input) {
|
|
|
3232
3232
|
if (undefined === value)
|
|
3233
3233
|
return true;
|
|
3234
3234
|
return "string" === typeof value;
|
|
3235
|
-
}); const _io2 = (input, _exceptionable = true) => "string" === typeof input.family && (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.weight || "
|
|
3235
|
+
}); const _io2 = (input, _exceptionable = true) => "string" === typeof input.family && (undefined === input.asset || "string" === typeof input.asset) && (undefined === input.weight || "normal" === input.weight || "bold" === input.weight) && (undefined === input.style || "normal" === input.style || "italic" === input.style) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
3236
3236
|
if (["family", "asset", "weight", "style"].some(prop => key === prop))
|
|
3237
3237
|
return true;
|
|
3238
3238
|
const value = input[key];
|
|
@@ -3300,11 +3300,11 @@ function _validateEqualsExactRecord(name, input) {
|
|
|
3300
3300
|
path: _path + ".asset",
|
|
3301
3301
|
expected: "(string | undefined)",
|
|
3302
3302
|
value: input.asset
|
|
3303
|
-
}), undefined === input.weight || "
|
|
3303
|
+
}), undefined === input.weight || "normal" === input.weight || "bold" === input.weight || _report(_exceptionable, {
|
|
3304
3304
|
path: _path + ".weight",
|
|
3305
3305
|
expected: "(\"bold\" | \"normal\" | undefined)",
|
|
3306
3306
|
value: input.weight
|
|
3307
|
-
}), undefined === input.style || "
|
|
3307
|
+
}), undefined === input.style || "normal" === input.style || "italic" === input.style || _report(_exceptionable, {
|
|
3308
3308
|
path: _path + ".style",
|
|
3309
3309
|
expected: "(\"italic\" | \"normal\" | undefined)",
|
|
3310
3310
|
value: input.style
|
|
@@ -4319,7 +4319,7 @@ function _validateEqualsExactRecord(name, input) {
|
|
|
4319
4319
|
if (undefined === value)
|
|
4320
4320
|
return true;
|
|
4321
4321
|
return false;
|
|
4322
|
-
})); const _io1 = (input, _exceptionable = true) => "string" === typeof input.name && "string" === typeof input.family && "string" === typeof input.asset && "string" === typeof input.url && "number" === typeof input.weight && ("
|
|
4322
|
+
})); const _io1 = (input, _exceptionable = true) => "string" === typeof input.name && "string" === typeof input.family && "string" === typeof input.asset && "string" === typeof input.url && "number" === typeof input.weight && ("normal" === input.style || "italic" === input.style) && (Array.isArray(input.ranges) && input.ranges.every((elem, _index3) => Array.isArray(elem) && (elem.length === 2 && "number" === typeof elem[0] && "number" === typeof elem[1]))) && (7 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
4323
4323
|
if (["name", "family", "asset", "url", "weight", "style", "ranges"].some(prop => key === prop))
|
|
4324
4324
|
return true;
|
|
4325
4325
|
const value = input[key];
|
|
@@ -4390,7 +4390,7 @@ function _validateEqualsExactRecord(name, input) {
|
|
|
4390
4390
|
path: _path + ".weight",
|
|
4391
4391
|
expected: "number",
|
|
4392
4392
|
value: input.weight
|
|
4393
|
-
}), "
|
|
4393
|
+
}), "normal" === input.style || "italic" === input.style || _report(_exceptionable, {
|
|
4394
4394
|
path: _path + ".style",
|
|
4395
4395
|
expected: "(\"italic\" | \"normal\")",
|
|
4396
4396
|
value: input.style
|
|
@@ -15821,6 +15821,230 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
15821
15821
|
};
|
|
15822
15822
|
}; })()(input);
|
|
15823
15823
|
}
|
|
15824
|
+
case ":event.status?": {
|
|
15825
|
+
return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.messages || Array.isArray(input.messages) && input.messages.every((elem, _index1) => "object" === typeof elem && null !== elem && _io1(elem, true && _exceptionable))) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
15826
|
+
if (["messages"].some(prop => key === prop))
|
|
15827
|
+
return true;
|
|
15828
|
+
const value = input[key];
|
|
15829
|
+
if (undefined === value)
|
|
15830
|
+
return true;
|
|
15831
|
+
return false;
|
|
15832
|
+
})); const _io1 = (input, _exceptionable = true) => "string" === typeof input.id && "string" === typeof input.msg && "number" === typeof input.level && (undefined === input.code || "string" === typeof input.code) && (null === input.expose || undefined === input.expose || "boolean" === typeof input.expose) && (null === input.index || undefined === input.index || "number" === typeof input.index) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && _io2(input.data, true && _exceptionable)) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
15833
|
+
if (["id", "msg", "level", "code", "expose", "index", "data"].some(prop => key === prop))
|
|
15834
|
+
return true;
|
|
15835
|
+
const value = input[key];
|
|
15836
|
+
if (undefined === value)
|
|
15837
|
+
return true;
|
|
15838
|
+
return false;
|
|
15839
|
+
})); const _io2 = (input, _exceptionable = true) => (null === input.progress || undefined === input.progress || "number" === typeof input.progress) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
15840
|
+
if (["progress"].some(prop => key === prop))
|
|
15841
|
+
return true;
|
|
15842
|
+
const value = input[key];
|
|
15843
|
+
if (undefined === value)
|
|
15844
|
+
return true;
|
|
15845
|
+
return false;
|
|
15846
|
+
})); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.messages || (Array.isArray(input.messages) || _report(_exceptionable, {
|
|
15847
|
+
path: _path + ".messages",
|
|
15848
|
+
expected: "(Array<__type> | undefined)",
|
|
15849
|
+
value: input.messages
|
|
15850
|
+
})) && input.messages.map((elem, _index2) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
15851
|
+
path: _path + ".messages[" + _index2 + "]",
|
|
15852
|
+
expected: "__type",
|
|
15853
|
+
value: elem
|
|
15854
|
+
})) && _vo1(elem, _path + ".messages[" + _index2 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
15855
|
+
path: _path + ".messages[" + _index2 + "]",
|
|
15856
|
+
expected: "__type",
|
|
15857
|
+
value: elem
|
|
15858
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
15859
|
+
path: _path + ".messages",
|
|
15860
|
+
expected: "(Array<__type> | undefined)",
|
|
15861
|
+
value: input.messages
|
|
15862
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
15863
|
+
if (["messages"].some(prop => key === prop))
|
|
15864
|
+
return true;
|
|
15865
|
+
const value = input[key];
|
|
15866
|
+
if (undefined === value)
|
|
15867
|
+
return true;
|
|
15868
|
+
return _report(_exceptionable, {
|
|
15869
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
15870
|
+
expected: "undefined",
|
|
15871
|
+
value: value,
|
|
15872
|
+
description: [
|
|
15873
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
15874
|
+
"",
|
|
15875
|
+
"Please remove the property next time."
|
|
15876
|
+
].join("\n")
|
|
15877
|
+
});
|
|
15878
|
+
}).every(flag => flag))].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
|
|
15879
|
+
path: _path + ".id",
|
|
15880
|
+
expected: "string",
|
|
15881
|
+
value: input.id
|
|
15882
|
+
}), "string" === typeof input.msg || _report(_exceptionable, {
|
|
15883
|
+
path: _path + ".msg",
|
|
15884
|
+
expected: "string",
|
|
15885
|
+
value: input.msg
|
|
15886
|
+
}), "number" === typeof input.level || _report(_exceptionable, {
|
|
15887
|
+
path: _path + ".level",
|
|
15888
|
+
expected: "number",
|
|
15889
|
+
value: input.level
|
|
15890
|
+
}), undefined === input.code || "string" === typeof input.code || _report(_exceptionable, {
|
|
15891
|
+
path: _path + ".code",
|
|
15892
|
+
expected: "(string | undefined)",
|
|
15893
|
+
value: input.code
|
|
15894
|
+
}), null === input.expose || undefined === input.expose || "boolean" === typeof input.expose || _report(_exceptionable, {
|
|
15895
|
+
path: _path + ".expose",
|
|
15896
|
+
expected: "(boolean | null | undefined)",
|
|
15897
|
+
value: input.expose
|
|
15898
|
+
}), null === input.index || undefined === input.index || "number" === typeof input.index || _report(_exceptionable, {
|
|
15899
|
+
path: _path + ".index",
|
|
15900
|
+
expected: "(null | number | undefined)",
|
|
15901
|
+
value: input.index
|
|
15902
|
+
}), undefined === input.data || ("object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) || _report(_exceptionable, {
|
|
15903
|
+
path: _path + ".data",
|
|
15904
|
+
expected: "(__type.o1 | undefined)",
|
|
15905
|
+
value: input.data
|
|
15906
|
+
})) && _vo2(input.data, _path + ".data", true && _exceptionable) || _report(_exceptionable, {
|
|
15907
|
+
path: _path + ".data",
|
|
15908
|
+
expected: "(__type.o1 | undefined)",
|
|
15909
|
+
value: input.data
|
|
15910
|
+
}), 3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
15911
|
+
if (["id", "msg", "level", "code", "expose", "index", "data"].some(prop => key === prop))
|
|
15912
|
+
return true;
|
|
15913
|
+
const value = input[key];
|
|
15914
|
+
if (undefined === value)
|
|
15915
|
+
return true;
|
|
15916
|
+
return _report(_exceptionable, {
|
|
15917
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
15918
|
+
expected: "undefined",
|
|
15919
|
+
value: value,
|
|
15920
|
+
description: [
|
|
15921
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
15922
|
+
"",
|
|
15923
|
+
"Please remove the property next time."
|
|
15924
|
+
].join("\n")
|
|
15925
|
+
});
|
|
15926
|
+
}).every(flag => flag))].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => [null === input.progress || undefined === input.progress || "number" === typeof input.progress || _report(_exceptionable, {
|
|
15927
|
+
path: _path + ".progress",
|
|
15928
|
+
expected: "(null | number | undefined)",
|
|
15929
|
+
value: input.progress
|
|
15930
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
15931
|
+
if (["progress"].some(prop => key === prop))
|
|
15932
|
+
return true;
|
|
15933
|
+
const value = input[key];
|
|
15934
|
+
if (undefined === value)
|
|
15935
|
+
return true;
|
|
15936
|
+
return _report(_exceptionable, {
|
|
15937
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
15938
|
+
expected: "undefined",
|
|
15939
|
+
value: value,
|
|
15940
|
+
description: [
|
|
15941
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
15942
|
+
"",
|
|
15943
|
+
"Please remove the property next time."
|
|
15944
|
+
].join("\n")
|
|
15945
|
+
});
|
|
15946
|
+
}).every(flag => flag))].every(flag => flag); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input, true); let errors; let _report; return input => {
|
|
15947
|
+
if (false === __is(input)) {
|
|
15948
|
+
errors = [];
|
|
15949
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
15950
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
15951
|
+
path: _path + "",
|
|
15952
|
+
expected: "EventStatusRecord",
|
|
15953
|
+
value: input
|
|
15954
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
15955
|
+
path: _path + "",
|
|
15956
|
+
expected: "EventStatusRecord",
|
|
15957
|
+
value: input
|
|
15958
|
+
}))(input, "$input", true);
|
|
15959
|
+
const success = 0 === errors.length;
|
|
15960
|
+
return success ? {
|
|
15961
|
+
success,
|
|
15962
|
+
data: input
|
|
15963
|
+
} : {
|
|
15964
|
+
success,
|
|
15965
|
+
errors,
|
|
15966
|
+
data: input
|
|
15967
|
+
};
|
|
15968
|
+
}
|
|
15969
|
+
return {
|
|
15970
|
+
success: true,
|
|
15971
|
+
data: input
|
|
15972
|
+
};
|
|
15973
|
+
}; })()(input);
|
|
15974
|
+
}
|
|
15975
|
+
case ":event.schedule?": {
|
|
15976
|
+
return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.startTime || "number" === typeof input.startTime) && (undefined === input.transition || "boolean" === typeof input.transition) && (undefined === input.transitionTime || "number" === typeof input.transitionTime) && (undefined === input.transitionDuration || "number" === typeof input.transitionDuration) && (undefined === input.endTime || "number" === typeof input.endTime) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
15977
|
+
if (["startTime", "transition", "transitionTime", "transitionDuration", "endTime"].some(prop => key === prop))
|
|
15978
|
+
return true;
|
|
15979
|
+
const value = input[key];
|
|
15980
|
+
if (undefined === value)
|
|
15981
|
+
return true;
|
|
15982
|
+
return false;
|
|
15983
|
+
})); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.startTime || "number" === typeof input.startTime || _report(_exceptionable, {
|
|
15984
|
+
path: _path + ".startTime",
|
|
15985
|
+
expected: "(number | undefined)",
|
|
15986
|
+
value: input.startTime
|
|
15987
|
+
}), undefined === input.transition || "boolean" === typeof input.transition || _report(_exceptionable, {
|
|
15988
|
+
path: _path + ".transition",
|
|
15989
|
+
expected: "(boolean | undefined)",
|
|
15990
|
+
value: input.transition
|
|
15991
|
+
}), undefined === input.transitionTime || "number" === typeof input.transitionTime || _report(_exceptionable, {
|
|
15992
|
+
path: _path + ".transitionTime",
|
|
15993
|
+
expected: "(number | undefined)",
|
|
15994
|
+
value: input.transitionTime
|
|
15995
|
+
}), undefined === input.transitionDuration || "number" === typeof input.transitionDuration || _report(_exceptionable, {
|
|
15996
|
+
path: _path + ".transitionDuration",
|
|
15997
|
+
expected: "(number | undefined)",
|
|
15998
|
+
value: input.transitionDuration
|
|
15999
|
+
}), undefined === input.endTime || "number" === typeof input.endTime || _report(_exceptionable, {
|
|
16000
|
+
path: _path + ".endTime",
|
|
16001
|
+
expected: "(number | undefined)",
|
|
16002
|
+
value: input.endTime
|
|
16003
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
16004
|
+
if (["startTime", "transition", "transitionTime", "transitionDuration", "endTime"].some(prop => key === prop))
|
|
16005
|
+
return true;
|
|
16006
|
+
const value = input[key];
|
|
16007
|
+
if (undefined === value)
|
|
16008
|
+
return true;
|
|
16009
|
+
return _report(_exceptionable, {
|
|
16010
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
16011
|
+
expected: "undefined",
|
|
16012
|
+
value: value,
|
|
16013
|
+
description: [
|
|
16014
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
16015
|
+
"",
|
|
16016
|
+
"Please remove the property next time."
|
|
16017
|
+
].join("\n")
|
|
16018
|
+
});
|
|
16019
|
+
}).every(flag => flag))].every(flag => flag); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input, true); let errors; let _report; return input => {
|
|
16020
|
+
if (false === __is(input)) {
|
|
16021
|
+
errors = [];
|
|
16022
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
16023
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
16024
|
+
path: _path + "",
|
|
16025
|
+
expected: "EventScheduleRecord",
|
|
16026
|
+
value: input
|
|
16027
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
16028
|
+
path: _path + "",
|
|
16029
|
+
expected: "EventScheduleRecord",
|
|
16030
|
+
value: input
|
|
16031
|
+
}))(input, "$input", true);
|
|
16032
|
+
const success = 0 === errors.length;
|
|
16033
|
+
return success ? {
|
|
16034
|
+
success,
|
|
16035
|
+
data: input
|
|
16036
|
+
} : {
|
|
16037
|
+
success,
|
|
16038
|
+
errors,
|
|
16039
|
+
data: input
|
|
16040
|
+
};
|
|
16041
|
+
}
|
|
16042
|
+
return {
|
|
16043
|
+
success: true,
|
|
16044
|
+
data: input
|
|
16045
|
+
};
|
|
16046
|
+
}; })()(input);
|
|
16047
|
+
}
|
|
15824
16048
|
case ":event.readDuration?": {
|
|
15825
16049
|
return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.numChars || "number" === typeof input.numChars) && (undefined === input.numWords || "number" === typeof input.numWords) && (undefined === input.readRate || "number" === typeof input.readRate) && (undefined === input.readDuration || "number" === typeof input.readDuration) && (undefined === input.readType || "characters" === input.readType || "words" === input.readType || "wordsPerMinute" === input.readType) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
15826
16050
|
if (["numChars", "numWords", "readRate", "readDuration", "readType"].some(prop => key === prop))
|
|
@@ -18845,6 +19069,63 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
18845
19069
|
};
|
|
18846
19070
|
}; })()(input);
|
|
18847
19071
|
}
|
|
19072
|
+
case ":media.placeholder": {
|
|
19073
|
+
return (() => { const _io0 = (input, _exceptionable = true) => "string" === typeof input.asset && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
19074
|
+
if (["asset"].some(prop => key === prop))
|
|
19075
|
+
return true;
|
|
19076
|
+
const value = input[key];
|
|
19077
|
+
if (undefined === value)
|
|
19078
|
+
return true;
|
|
19079
|
+
return false;
|
|
19080
|
+
})); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.asset || _report(_exceptionable, {
|
|
19081
|
+
path: _path + ".asset",
|
|
19082
|
+
expected: "string",
|
|
19083
|
+
value: input.asset
|
|
19084
|
+
}), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
19085
|
+
if (["asset"].some(prop => key === prop))
|
|
19086
|
+
return true;
|
|
19087
|
+
const value = input[key];
|
|
19088
|
+
if (undefined === value)
|
|
19089
|
+
return true;
|
|
19090
|
+
return _report(_exceptionable, {
|
|
19091
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
19092
|
+
expected: "undefined",
|
|
19093
|
+
value: value,
|
|
19094
|
+
description: [
|
|
19095
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
19096
|
+
"",
|
|
19097
|
+
"Please remove the property next time."
|
|
19098
|
+
].join("\n")
|
|
19099
|
+
});
|
|
19100
|
+
}).every(flag => flag))].every(flag => flag); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _io0(input, true); let errors; let _report; return input => {
|
|
19101
|
+
if (false === __is(input)) {
|
|
19102
|
+
errors = [];
|
|
19103
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
19104
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
19105
|
+
path: _path + "",
|
|
19106
|
+
expected: "MediaPlaceholderRecord",
|
|
19107
|
+
value: input
|
|
19108
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
19109
|
+
path: _path + "",
|
|
19110
|
+
expected: "MediaPlaceholderRecord",
|
|
19111
|
+
value: input
|
|
19112
|
+
}))(input, "$input", true);
|
|
19113
|
+
const success = 0 === errors.length;
|
|
19114
|
+
return success ? {
|
|
19115
|
+
success,
|
|
19116
|
+
data: input
|
|
19117
|
+
} : {
|
|
19118
|
+
success,
|
|
19119
|
+
errors,
|
|
19120
|
+
data: input
|
|
19121
|
+
};
|
|
19122
|
+
}
|
|
19123
|
+
return {
|
|
19124
|
+
success: true,
|
|
19125
|
+
data: input
|
|
19126
|
+
};
|
|
19127
|
+
}; })()(input);
|
|
19128
|
+
}
|
|
18848
19129
|
case ":media.consolidate": {
|
|
18849
19130
|
return (() => { const _io0 = (input, _exceptionable = true) => true && true && (null !== input.preset && (undefined === input.preset || "string" === typeof input.preset || "object" === typeof input.preset && null !== input.preset && false === Array.isArray(input.preset) && _io1(input.preset, true && _exceptionable))) && true && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
18850
19131
|
if (["source", "target", "preset", "error"].some(prop => key === prop))
|
|
@@ -21079,8 +21360,8 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
21079
21360
|
}; })()(input);
|
|
21080
21361
|
}
|
|
21081
21362
|
case ":monitor.stats?": {
|
|
21082
|
-
return (() => { const _io0 = (input, _exceptionable = true) => true && ("object" === typeof input.proc && null !== input.proc && _io1(input.proc, true && _exceptionable)) && ("object" === typeof input.buddyinfo && null !== input.buddyinfo && _io3(input.buddyinfo, true && _exceptionable)) && ("object" === typeof input.meminfo && null !== input.meminfo && false === Array.isArray(input.meminfo) && _io4(input.meminfo, true && _exceptionable)) && ("object" === typeof input.net && null !== input.net && _io5(input.net, true && _exceptionable)) && ("object" === typeof input["var"] && null !== input["var"] && _io12(input["var"], true && _exceptionable)) && (
|
|
21083
|
-
if (["gpu", "proc", "buddyinfo", "meminfo", "net", "var"].some(prop => key === prop))
|
|
21363
|
+
return (() => { const _io0 = (input, _exceptionable = true) => true && ("object" === typeof input.proc && null !== input.proc && _io1(input.proc, true && _exceptionable)) && ("object" === typeof input.buddyinfo && null !== input.buddyinfo && _io3(input.buddyinfo, true && _exceptionable)) && ("object" === typeof input.meminfo && null !== input.meminfo && false === Array.isArray(input.meminfo) && _io4(input.meminfo, true && _exceptionable)) && ("object" === typeof input.net && null !== input.net && _io5(input.net, true && _exceptionable)) && ("object" === typeof input["var"] && null !== input["var"] && _io12(input["var"], true && _exceptionable)) && ("object" === typeof input.hostBridge && null !== input.hostBridge && _io13(input.hostBridge, true && _exceptionable)) && (7 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
21364
|
+
if (["gpu", "proc", "buddyinfo", "meminfo", "net", "var", "hostBridge"].some(prop => key === prop))
|
|
21084
21365
|
return true;
|
|
21085
21366
|
const value = input[key];
|
|
21086
21367
|
if (undefined === value)
|
|
@@ -21164,6 +21445,25 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
21164
21445
|
if (undefined === value)
|
|
21165
21446
|
return true;
|
|
21166
21447
|
return false;
|
|
21448
|
+
})); const _io13 = (input, _exceptionable = true) => "object" === typeof input.types && null !== input.types && false === Array.isArray(input.types) && _io14(input.types, true && _exceptionable) && (Array.isArray(input.messages) && input.messages.every((elem, _index10) => "object" === typeof elem && null !== elem && _io15(elem, true && _exceptionable))) && "number" === typeof input.timestamp && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
21449
|
+
if (["types", "messages", "timestamp"].some(prop => key === prop))
|
|
21450
|
+
return true;
|
|
21451
|
+
const value = input[key];
|
|
21452
|
+
if (undefined === value)
|
|
21453
|
+
return true;
|
|
21454
|
+
return false;
|
|
21455
|
+
})); const _io14 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
21456
|
+
const value = input[key];
|
|
21457
|
+
if (undefined === value)
|
|
21458
|
+
return true;
|
|
21459
|
+
return "string" === typeof value;
|
|
21460
|
+
}); const _io15 = (input, _exceptionable = true) => "string" === typeof input.type && "string" === typeof input.id && "number" === typeof input.level && "string" === typeof input.title && "string" === typeof input.msg && (5 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
21461
|
+
if (["type", "id", "level", "title", "msg"].some(prop => key === prop))
|
|
21462
|
+
return true;
|
|
21463
|
+
const value = input[key];
|
|
21464
|
+
if (undefined === value)
|
|
21465
|
+
return true;
|
|
21466
|
+
return false;
|
|
21167
21467
|
})); const _vo0 = (input, _path, _exceptionable = true) => [true, ("object" === typeof input.proc && null !== input.proc || _report(_exceptionable, {
|
|
21168
21468
|
path: _path + ".proc",
|
|
21169
21469
|
expected: "MonitorStatsProcInfo",
|
|
@@ -21204,8 +21504,16 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
21204
21504
|
path: _path + "[\"var\"]",
|
|
21205
21505
|
expected: "__type.o5",
|
|
21206
21506
|
value: input["var"]
|
|
21207
|
-
}),
|
|
21208
|
-
|
|
21507
|
+
}), ("object" === typeof input.hostBridge && null !== input.hostBridge || _report(_exceptionable, {
|
|
21508
|
+
path: _path + ".hostBridge",
|
|
21509
|
+
expected: "MonitorStatsHostBridge",
|
|
21510
|
+
value: input.hostBridge
|
|
21511
|
+
})) && _vo13(input.hostBridge, _path + ".hostBridge", true && _exceptionable) || _report(_exceptionable, {
|
|
21512
|
+
path: _path + ".hostBridge",
|
|
21513
|
+
expected: "MonitorStatsHostBridge",
|
|
21514
|
+
value: input.hostBridge
|
|
21515
|
+
}), 7 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
21516
|
+
if (["gpu", "proc", "buddyinfo", "meminfo", "net", "var", "hostBridge"].some(prop => key === prop))
|
|
21209
21517
|
return true;
|
|
21210
21518
|
const value = input[key];
|
|
21211
21519
|
if (undefined === value)
|
|
@@ -21232,12 +21540,12 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
21232
21540
|
path: _path + ".cpus",
|
|
21233
21541
|
expected: "(Array<MonitorStatsProcInfoCpu> | undefined)",
|
|
21234
21542
|
value: input.cpus
|
|
21235
|
-
})) && input.cpus.map((elem,
|
|
21236
|
-
path: _path + ".cpus[" +
|
|
21543
|
+
})) && input.cpus.map((elem, _index11) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
21544
|
+
path: _path + ".cpus[" + _index11 + "]",
|
|
21237
21545
|
expected: "MonitorStatsProcInfoCpu",
|
|
21238
21546
|
value: elem
|
|
21239
|
-
})) && _vo2(elem, _path + ".cpus[" +
|
|
21240
|
-
path: _path + ".cpus[" +
|
|
21547
|
+
})) && _vo2(elem, _path + ".cpus[" + _index11 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
21548
|
+
path: _path + ".cpus[" + _index11 + "]",
|
|
21241
21549
|
expected: "MonitorStatsProcInfoCpu",
|
|
21242
21550
|
value: elem
|
|
21243
21551
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -21252,8 +21560,8 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
21252
21560
|
path: _path + ".load",
|
|
21253
21561
|
expected: "(Array<number> | null)",
|
|
21254
21562
|
value: input.load
|
|
21255
|
-
})) && input.load.map((elem,
|
|
21256
|
-
path: _path + ".load[" +
|
|
21563
|
+
})) && input.load.map((elem, _index12) => "number" === typeof elem || _report(_exceptionable, {
|
|
21564
|
+
path: _path + ".load[" + _index12 + "]",
|
|
21257
21565
|
expected: "number",
|
|
21258
21566
|
value: elem
|
|
21259
21567
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -21264,8 +21572,8 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
21264
21572
|
path: _path + ".interrupts",
|
|
21265
21573
|
expected: "(Array<number> | null | undefined)",
|
|
21266
21574
|
value: input.interrupts
|
|
21267
|
-
})) && input.interrupts.map((elem,
|
|
21268
|
-
path: _path + ".interrupts[" +
|
|
21575
|
+
})) && input.interrupts.map((elem, _index13) => "number" === typeof elem || _report(_exceptionable, {
|
|
21576
|
+
path: _path + ".interrupts[" + _index13 + "]",
|
|
21269
21577
|
expected: "number",
|
|
21270
21578
|
value: elem
|
|
21271
21579
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -21341,8 +21649,8 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
21341
21649
|
path: _path + ".normal",
|
|
21342
21650
|
expected: "(Array<number> | undefined)",
|
|
21343
21651
|
value: input.normal
|
|
21344
|
-
})) && input.normal.map((elem,
|
|
21345
|
-
path: _path + ".normal[" +
|
|
21652
|
+
})) && input.normal.map((elem, _index14) => "number" === typeof elem || _report(_exceptionable, {
|
|
21653
|
+
path: _path + ".normal[" + _index14 + "]",
|
|
21346
21654
|
expected: "number",
|
|
21347
21655
|
value: elem
|
|
21348
21656
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -21353,8 +21661,8 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
21353
21661
|
path: _path + ".high",
|
|
21354
21662
|
expected: "(Array<number> | undefined)",
|
|
21355
21663
|
value: input.high
|
|
21356
|
-
})) && input.high.map((elem,
|
|
21357
|
-
path: _path + ".high[" +
|
|
21664
|
+
})) && input.high.map((elem, _index15) => "number" === typeof elem || _report(_exceptionable, {
|
|
21665
|
+
path: _path + ".high[" + _index15 + "]",
|
|
21358
21666
|
expected: "number",
|
|
21359
21667
|
value: elem
|
|
21360
21668
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -21410,12 +21718,12 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
21410
21718
|
path: _path + ".bonding",
|
|
21411
21719
|
expected: "Array<NetworkInterfaceInfo & { [key: string]: unknown; slaves: string[]; name: string; }>",
|
|
21412
21720
|
value: input.bonding
|
|
21413
|
-
})) && input.bonding.map((elem,
|
|
21414
|
-
path: _path + ".bonding[" +
|
|
21721
|
+
})) && input.bonding.map((elem, _index16) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
21722
|
+
path: _path + ".bonding[" + _index16 + "]",
|
|
21415
21723
|
expected: "NetworkInterfaceInfo & { [key: string]: unknown; slaves: string[]; name: string; }",
|
|
21416
21724
|
value: elem
|
|
21417
|
-
})) && _vo10(elem, _path + ".bonding[" +
|
|
21418
|
-
path: _path + ".bonding[" +
|
|
21725
|
+
})) && _vo10(elem, _path + ".bonding[" + _index16 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
21726
|
+
path: _path + ".bonding[" + _index16 + "]",
|
|
21419
21727
|
expected: "NetworkInterfaceInfo & { [key: string]: unknown; slaves: string[]; name: string; }",
|
|
21420
21728
|
value: elem
|
|
21421
21729
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -21426,12 +21734,12 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
21426
21734
|
path: _path + ".eth",
|
|
21427
21735
|
expected: "Array<NetworkInterfaceInfo & { [key: string]: unknown; speed?: number | undefined; rxUnicastBytes?: number | undefined; rxMulticastBytes?: number | undefined; rxBroadcastBytes?: number | undefined; }>",
|
|
21428
21736
|
value: input.eth
|
|
21429
|
-
})) && input.eth.map((elem,
|
|
21430
|
-
path: _path + ".eth[" +
|
|
21737
|
+
})) && input.eth.map((elem, _index17) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
21738
|
+
path: _path + ".eth[" + _index17 + "]",
|
|
21431
21739
|
expected: "NetworkInterfaceInfo & { [key: string]: unknown; speed?: number | undefined; rxUnicastBytes?: number | undefined; rxMulticastBytes?: number | undefined; rxBroadcastBytes?: number | undefined; }",
|
|
21432
21740
|
value: elem
|
|
21433
|
-
})) && _vo11(elem, _path + ".eth[" +
|
|
21434
|
-
path: _path + ".eth[" +
|
|
21741
|
+
})) && _vo11(elem, _path + ".eth[" + _index17 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
21742
|
+
path: _path + ".eth[" + _index17 + "]",
|
|
21435
21743
|
expected: "NetworkInterfaceInfo & { [key: string]: unknown; speed?: number | undefined; rxUnicastBytes?: number | undefined; rxMulticastBytes?: number | undefined; rxBroadcastBytes?: number | undefined; }",
|
|
21436
21744
|
value: elem
|
|
21437
21745
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -21490,12 +21798,12 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
21490
21798
|
path: _path + ".cpus",
|
|
21491
21799
|
expected: "Array<__type>",
|
|
21492
21800
|
value: input.cpus
|
|
21493
|
-
})) && input.cpus.map((elem,
|
|
21494
|
-
path: _path + ".cpus[" +
|
|
21801
|
+
})) && input.cpus.map((elem, _index18) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
21802
|
+
path: _path + ".cpus[" + _index18 + "]",
|
|
21495
21803
|
expected: "__type.o1",
|
|
21496
21804
|
value: elem
|
|
21497
|
-
})) && _vo7(elem, _path + ".cpus[" +
|
|
21498
|
-
path: _path + ".cpus[" +
|
|
21805
|
+
})) && _vo7(elem, _path + ".cpus[" + _index18 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
21806
|
+
path: _path + ".cpus[" + _index18 + "]",
|
|
21499
21807
|
expected: "__type.o1",
|
|
21500
21808
|
value: elem
|
|
21501
21809
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -21747,8 +22055,8 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
21747
22055
|
path: _path + ".slaves",
|
|
21748
22056
|
expected: "Array<string>",
|
|
21749
22057
|
value: input.slaves
|
|
21750
|
-
})) && input.slaves.map((elem,
|
|
21751
|
-
path: _path + ".slaves[" +
|
|
22058
|
+
})) && input.slaves.map((elem, _index19) => "string" === typeof elem || _report(_exceptionable, {
|
|
22059
|
+
path: _path + ".slaves[" + _index19 + "]",
|
|
21752
22060
|
expected: "string",
|
|
21753
22061
|
value: elem
|
|
21754
22062
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -21933,6 +22241,95 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
21933
22241
|
"Please remove the property next time."
|
|
21934
22242
|
].join("\n")
|
|
21935
22243
|
});
|
|
22244
|
+
}).every(flag => flag))].every(flag => flag); const _vo13 = (input, _path, _exceptionable = true) => [("object" === typeof input.types && null !== input.types && false === Array.isArray(input.types) || _report(_exceptionable, {
|
|
22245
|
+
path: _path + ".types",
|
|
22246
|
+
expected: "Record<string, string>",
|
|
22247
|
+
value: input.types
|
|
22248
|
+
})) && _vo14(input.types, _path + ".types", true && _exceptionable) || _report(_exceptionable, {
|
|
22249
|
+
path: _path + ".types",
|
|
22250
|
+
expected: "Record<string, string>",
|
|
22251
|
+
value: input.types
|
|
22252
|
+
}), (Array.isArray(input.messages) || _report(_exceptionable, {
|
|
22253
|
+
path: _path + ".messages",
|
|
22254
|
+
expected: "Array<MonitorStatsHostBridgeMessage>",
|
|
22255
|
+
value: input.messages
|
|
22256
|
+
})) && input.messages.map((elem, _index20) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
22257
|
+
path: _path + ".messages[" + _index20 + "]",
|
|
22258
|
+
expected: "MonitorStatsHostBridgeMessage",
|
|
22259
|
+
value: elem
|
|
22260
|
+
})) && _vo15(elem, _path + ".messages[" + _index20 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
22261
|
+
path: _path + ".messages[" + _index20 + "]",
|
|
22262
|
+
expected: "MonitorStatsHostBridgeMessage",
|
|
22263
|
+
value: elem
|
|
22264
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
22265
|
+
path: _path + ".messages",
|
|
22266
|
+
expected: "Array<MonitorStatsHostBridgeMessage>",
|
|
22267
|
+
value: input.messages
|
|
22268
|
+
}), "number" === typeof input.timestamp || _report(_exceptionable, {
|
|
22269
|
+
path: _path + ".timestamp",
|
|
22270
|
+
expected: "number",
|
|
22271
|
+
value: input.timestamp
|
|
22272
|
+
}), 3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
22273
|
+
if (["types", "messages", "timestamp"].some(prop => key === prop))
|
|
22274
|
+
return true;
|
|
22275
|
+
const value = input[key];
|
|
22276
|
+
if (undefined === value)
|
|
22277
|
+
return true;
|
|
22278
|
+
return _report(_exceptionable, {
|
|
22279
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
22280
|
+
expected: "undefined",
|
|
22281
|
+
value: value,
|
|
22282
|
+
description: [
|
|
22283
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
22284
|
+
"",
|
|
22285
|
+
"Please remove the property next time."
|
|
22286
|
+
].join("\n")
|
|
22287
|
+
});
|
|
22288
|
+
}).every(flag => flag))].every(flag => flag); const _vo14 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
22289
|
+
const value = input[key];
|
|
22290
|
+
if (undefined === value)
|
|
22291
|
+
return true;
|
|
22292
|
+
return "string" === typeof value || _report(_exceptionable, {
|
|
22293
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
22294
|
+
expected: "string",
|
|
22295
|
+
value: value
|
|
22296
|
+
});
|
|
22297
|
+
}).every(flag => flag)].every(flag => flag); const _vo15 = (input, _path, _exceptionable = true) => ["string" === typeof input.type || _report(_exceptionable, {
|
|
22298
|
+
path: _path + ".type",
|
|
22299
|
+
expected: "string",
|
|
22300
|
+
value: input.type
|
|
22301
|
+
}), "string" === typeof input.id || _report(_exceptionable, {
|
|
22302
|
+
path: _path + ".id",
|
|
22303
|
+
expected: "string",
|
|
22304
|
+
value: input.id
|
|
22305
|
+
}), "number" === typeof input.level || _report(_exceptionable, {
|
|
22306
|
+
path: _path + ".level",
|
|
22307
|
+
expected: "number",
|
|
22308
|
+
value: input.level
|
|
22309
|
+
}), "string" === typeof input.title || _report(_exceptionable, {
|
|
22310
|
+
path: _path + ".title",
|
|
22311
|
+
expected: "string",
|
|
22312
|
+
value: input.title
|
|
22313
|
+
}), "string" === typeof input.msg || _report(_exceptionable, {
|
|
22314
|
+
path: _path + ".msg",
|
|
22315
|
+
expected: "string",
|
|
22316
|
+
value: input.msg
|
|
22317
|
+
}), 5 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
22318
|
+
if (["type", "id", "level", "title", "msg"].some(prop => key === prop))
|
|
22319
|
+
return true;
|
|
22320
|
+
const value = input[key];
|
|
22321
|
+
if (undefined === value)
|
|
22322
|
+
return true;
|
|
22323
|
+
return _report(_exceptionable, {
|
|
22324
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
22325
|
+
expected: "undefined",
|
|
22326
|
+
value: value,
|
|
22327
|
+
description: [
|
|
22328
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
22329
|
+
"",
|
|
22330
|
+
"Please remove the property next time."
|
|
22331
|
+
].join("\n")
|
|
22332
|
+
});
|
|
21936
22333
|
}).every(flag => flag))].every(flag => flag); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && _io0(input, true); let errors; let _report; return input => {
|
|
21937
22334
|
if (false === __is(input)) {
|
|
21938
22335
|
errors = [];
|
|
@@ -35579,8 +35976,8 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
35579
35976
|
if (undefined === value)
|
|
35580
35977
|
return true;
|
|
35581
35978
|
return false;
|
|
35582
|
-
})); const _io31 = (input, _exceptionable = true) => (undefined === input.eventThumbnails || "boolean" === typeof input.eventThumbnails) && ("folded" === input.scriptEventFolding || "unfoldedUntilFolded" === input.scriptEventFolding) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
35583
|
-
if (["eventThumbnails", "scriptEventFolding"].some(prop => key === prop))
|
|
35979
|
+
})); const _io31 = (input, _exceptionable = true) => (undefined === input.eventThumbnails || "boolean" === typeof input.eventThumbnails) && ("folded" === input.scriptEventFolding || "unfoldedUntilFolded" === input.scriptEventFolding) && (undefined === input.stickyHeaders || "boolean" === typeof input.stickyHeaders) && (undefined === input.triggersColumn || "title" === input.triggersColumn || "triggers" === input.triggersColumn) && (undefined === input.density || "normal" === input.density || "compact" === input.density || "spacious" === input.density) && (undefined === input.showEvents || "boolean" === typeof input.showEvents) && (undefined === input.showTriggers || "boolean" === typeof input.showTriggers) && (undefined === input.showReferenceDuration || "boolean" === typeof input.showReferenceDuration) && (undefined === input.showSettingsColumn || "boolean" === typeof input.showSettingsColumn) && (undefined === input.thumbnailColumnWidth || "number" === typeof input.thumbnailColumnWidth) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
35980
|
+
if (["eventThumbnails", "scriptEventFolding", "stickyHeaders", "triggersColumn", "density", "showEvents", "showTriggers", "showReferenceDuration", "showSettingsColumn", "thumbnailColumnWidth"].some(prop => key === prop))
|
|
35584
35981
|
return true;
|
|
35585
35982
|
const value = input[key];
|
|
35586
35983
|
if (undefined === value)
|
|
@@ -35923,8 +36320,8 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
35923
36320
|
if (undefined === value)
|
|
35924
36321
|
return true;
|
|
35925
36322
|
return false;
|
|
35926
|
-
})); const _io81 = (input, _exceptionable = true) => (undefined === input.utils || "boolean" === typeof input.utils) && (undefined === input.utilsAssetEditor || "boolean" === typeof input.utilsAssetEditor) && (undefined === input.utilsAssetPanel || "boolean" === typeof input.utilsAssetPanel) && (undefined === input.history || "boolean" === typeof input.history) && (undefined === input.refs || "boolean" === typeof input.refs) && (undefined === input.access || "boolean" === typeof input.access) && (undefined === input.files || "boolean" === typeof input.files) && (undefined === input["export"] || "boolean" === typeof input["export"]) && (undefined === input.json || "boolean" === typeof input.json) && (undefined === input.hlsjs || "boolean" === typeof input.hlsjs) && (undefined === input.resetRenders || "boolean" === typeof input.resetRenders) && (undefined === input.resetReplicas || "boolean" === typeof input.resetReplicas) && (undefined === input.assetStatus || "boolean" === typeof input.assetStatus) && (undefined === input.consolidateMedia || "boolean" === typeof input.consolidateMedia) && (undefined === input.hideInAssetMenu || "boolean" === typeof input.hideInAssetMenu) && (undefined === input.assetRoute || "boolean" === typeof input.assetRoute) && (undefined === input.devWarnings || "boolean" === typeof input.devWarnings) && (undefined === input.downloadFiles || "boolean" === typeof input.downloadFiles) && (undefined === input.supportPortal || "boolean" === typeof input.supportPortal) && (undefined === input.multiplexWebSockets || "boolean" === typeof input.multiplexWebSockets) && (undefined === input.systemHealth || "boolean" === typeof input.systemHealth) && (undefined === input.systemHealthIgnore || "boolean" === typeof input.systemHealthIgnore) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
35927
|
-
if (["utils", "utilsAssetEditor", "utilsAssetPanel", "history", "refs", "access", "files", "export", "json", "hlsjs", "resetRenders", "resetReplicas", "assetStatus", "consolidateMedia", "hideInAssetMenu", "assetRoute", "devWarnings", "downloadFiles", "supportPortal", "multiplexWebSockets", "systemHealth", "systemHealthIgnore"].some(prop => key === prop))
|
|
36323
|
+
})); const _io81 = (input, _exceptionable = true) => (undefined === input.utils || "boolean" === typeof input.utils) && (undefined === input.utilsAssetEditor || "boolean" === typeof input.utilsAssetEditor) && (undefined === input.utilsAssetPanel || "boolean" === typeof input.utilsAssetPanel) && (undefined === input.history || "boolean" === typeof input.history) && (undefined === input.refs || "boolean" === typeof input.refs) && (undefined === input.access || "boolean" === typeof input.access) && (undefined === input.files || "boolean" === typeof input.files) && (undefined === input["export"] || "boolean" === typeof input["export"]) && (undefined === input.json || "boolean" === typeof input.json) && (undefined === input.hlsjs || "boolean" === typeof input.hlsjs) && (undefined === input.resetRenders || "boolean" === typeof input.resetRenders) && (undefined === input.resetReplicas || "boolean" === typeof input.resetReplicas) && (undefined === input.assetStatus || "boolean" === typeof input.assetStatus) && (undefined === input.consolidateMedia || "boolean" === typeof input.consolidateMedia) && (undefined === input.hideInAssetMenu || "boolean" === typeof input.hideInAssetMenu) && (undefined === input.assetRoute || "boolean" === typeof input.assetRoute) && (undefined === input.devWarnings || "boolean" === typeof input.devWarnings) && (undefined === input.downloadFiles || "boolean" === typeof input.downloadFiles) && (undefined === input.supportPortal || "boolean" === typeof input.supportPortal) && (undefined === input.multiplexWebSockets || "boolean" === typeof input.multiplexWebSockets) && (undefined === input.systemHealth || "boolean" === typeof input.systemHealth) && (undefined === input.systemHealthIgnore || "boolean" === typeof input.systemHealthIgnore) && (undefined === input.systemHealthDebugLevel || "boolean" === typeof input.systemHealthDebugLevel) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
36324
|
+
if (["utils", "utilsAssetEditor", "utilsAssetPanel", "history", "refs", "access", "files", "export", "json", "hlsjs", "resetRenders", "resetReplicas", "assetStatus", "consolidateMedia", "hideInAssetMenu", "assetRoute", "devWarnings", "downloadFiles", "supportPortal", "multiplexWebSockets", "systemHealth", "systemHealthIgnore", "systemHealthDebugLevel"].some(prop => key === prop))
|
|
35928
36325
|
return true;
|
|
35929
36326
|
const value = input[key];
|
|
35930
36327
|
if (undefined === value)
|
|
@@ -37359,8 +37756,40 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
37359
37756
|
path: _path + ".scriptEventFolding",
|
|
37360
37757
|
expected: "(\"folded\" | \"unfoldedUntilFolded\")",
|
|
37361
37758
|
value: input.scriptEventFolding
|
|
37759
|
+
}), undefined === input.stickyHeaders || "boolean" === typeof input.stickyHeaders || _report(_exceptionable, {
|
|
37760
|
+
path: _path + ".stickyHeaders",
|
|
37761
|
+
expected: "(boolean | undefined)",
|
|
37762
|
+
value: input.stickyHeaders
|
|
37763
|
+
}), undefined === input.triggersColumn || "title" === input.triggersColumn || "triggers" === input.triggersColumn || _report(_exceptionable, {
|
|
37764
|
+
path: _path + ".triggersColumn",
|
|
37765
|
+
expected: "(\"title\" | \"triggers\" | undefined)",
|
|
37766
|
+
value: input.triggersColumn
|
|
37767
|
+
}), undefined === input.density || "normal" === input.density || "compact" === input.density || "spacious" === input.density || _report(_exceptionable, {
|
|
37768
|
+
path: _path + ".density",
|
|
37769
|
+
expected: "(\"compact\" | \"normal\" | \"spacious\" | undefined)",
|
|
37770
|
+
value: input.density
|
|
37771
|
+
}), undefined === input.showEvents || "boolean" === typeof input.showEvents || _report(_exceptionable, {
|
|
37772
|
+
path: _path + ".showEvents",
|
|
37773
|
+
expected: "(boolean | undefined)",
|
|
37774
|
+
value: input.showEvents
|
|
37775
|
+
}), undefined === input.showTriggers || "boolean" === typeof input.showTriggers || _report(_exceptionable, {
|
|
37776
|
+
path: _path + ".showTriggers",
|
|
37777
|
+
expected: "(boolean | undefined)",
|
|
37778
|
+
value: input.showTriggers
|
|
37779
|
+
}), undefined === input.showReferenceDuration || "boolean" === typeof input.showReferenceDuration || _report(_exceptionable, {
|
|
37780
|
+
path: _path + ".showReferenceDuration",
|
|
37781
|
+
expected: "(boolean | undefined)",
|
|
37782
|
+
value: input.showReferenceDuration
|
|
37783
|
+
}), undefined === input.showSettingsColumn || "boolean" === typeof input.showSettingsColumn || _report(_exceptionable, {
|
|
37784
|
+
path: _path + ".showSettingsColumn",
|
|
37785
|
+
expected: "(boolean | undefined)",
|
|
37786
|
+
value: input.showSettingsColumn
|
|
37787
|
+
}), undefined === input.thumbnailColumnWidth || "number" === typeof input.thumbnailColumnWidth || _report(_exceptionable, {
|
|
37788
|
+
path: _path + ".thumbnailColumnWidth",
|
|
37789
|
+
expected: "(number | undefined)",
|
|
37790
|
+
value: input.thumbnailColumnWidth
|
|
37362
37791
|
}), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
37363
|
-
if (["eventThumbnails", "scriptEventFolding"].some(prop => key === prop))
|
|
37792
|
+
if (["eventThumbnails", "scriptEventFolding", "stickyHeaders", "triggersColumn", "density", "showEvents", "showTriggers", "showReferenceDuration", "showSettingsColumn", "thumbnailColumnWidth"].some(prop => key === prop))
|
|
37364
37793
|
return true;
|
|
37365
37794
|
const value = input[key];
|
|
37366
37795
|
if (undefined === value)
|
|
@@ -39301,8 +39730,12 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
39301
39730
|
path: _path + ".systemHealthIgnore",
|
|
39302
39731
|
expected: "(boolean | undefined)",
|
|
39303
39732
|
value: input.systemHealthIgnore
|
|
39733
|
+
}), undefined === input.systemHealthDebugLevel || "boolean" === typeof input.systemHealthDebugLevel || _report(_exceptionable, {
|
|
39734
|
+
path: _path + ".systemHealthDebugLevel",
|
|
39735
|
+
expected: "(boolean | undefined)",
|
|
39736
|
+
value: input.systemHealthDebugLevel
|
|
39304
39737
|
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
39305
|
-
if (["utils", "utilsAssetEditor", "utilsAssetPanel", "history", "refs", "access", "files", "export", "json", "hlsjs", "resetRenders", "resetReplicas", "assetStatus", "consolidateMedia", "hideInAssetMenu", "assetRoute", "devWarnings", "downloadFiles", "supportPortal", "multiplexWebSockets", "systemHealth", "systemHealthIgnore"].some(prop => key === prop))
|
|
39738
|
+
if (["utils", "utilsAssetEditor", "utilsAssetPanel", "history", "refs", "access", "files", "export", "json", "hlsjs", "resetRenders", "resetReplicas", "assetStatus", "consolidateMedia", "hideInAssetMenu", "assetRoute", "devWarnings", "downloadFiles", "supportPortal", "multiplexWebSockets", "systemHealth", "systemHealthIgnore", "systemHealthDebugLevel"].some(prop => key === prop))
|
|
39306
39739
|
return true;
|
|
39307
39740
|
const value = input[key];
|
|
39308
39741
|
if (undefined === value)
|
|
@@ -40717,6 +41150,163 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
40717
41150
|
};
|
|
40718
41151
|
}; })()(input);
|
|
40719
41152
|
}
|
|
41153
|
+
case ":story.editor": {
|
|
41154
|
+
return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.value || "object" === typeof input.value && null !== input.value && false === Array.isArray(input.value) && _io1(input.value, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
41155
|
+
if (["value"].some(prop => key === prop))
|
|
41156
|
+
return true;
|
|
41157
|
+
const value = input[key];
|
|
41158
|
+
if (undefined === value)
|
|
41159
|
+
return true;
|
|
41160
|
+
return false;
|
|
41161
|
+
})); const _io1 = (input, _exceptionable = true) => (undefined === input.object || "string" === typeof input.object) && (undefined === input.document || "object" === typeof input.document && null !== input.document && false === Array.isArray(input.document) && _io2(input.document, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
41162
|
+
if (["object", "document"].some(prop => key === prop))
|
|
41163
|
+
return true;
|
|
41164
|
+
const value = input[key];
|
|
41165
|
+
if (undefined === value)
|
|
41166
|
+
return true;
|
|
41167
|
+
return false;
|
|
41168
|
+
})); const _io2 = (input, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type) && (undefined === input.data || "object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) && _io3(input.data, true && _exceptionable)) && (undefined === input.nodes || Array.isArray(input.nodes) && input.nodes.every((elem, _index1) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io2(elem, true && _exceptionable))) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
41169
|
+
if (["type", "data", "nodes"].some(prop => key === prop))
|
|
41170
|
+
return true;
|
|
41171
|
+
const value = input[key];
|
|
41172
|
+
if (undefined === value)
|
|
41173
|
+
return true;
|
|
41174
|
+
return false;
|
|
41175
|
+
})); const _io3 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
41176
|
+
const value = input[key];
|
|
41177
|
+
if (undefined === value)
|
|
41178
|
+
return true;
|
|
41179
|
+
return true;
|
|
41180
|
+
}); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.value || ("object" === typeof input.value && null !== input.value && false === Array.isArray(input.value) || _report(_exceptionable, {
|
|
41181
|
+
path: _path + ".value",
|
|
41182
|
+
expected: "(__type | undefined)",
|
|
41183
|
+
value: input.value
|
|
41184
|
+
})) && _vo1(input.value, _path + ".value", true && _exceptionable) || _report(_exceptionable, {
|
|
41185
|
+
path: _path + ".value",
|
|
41186
|
+
expected: "(__type | undefined)",
|
|
41187
|
+
value: input.value
|
|
41188
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
41189
|
+
if (["value"].some(prop => key === prop))
|
|
41190
|
+
return true;
|
|
41191
|
+
const value = input[key];
|
|
41192
|
+
if (undefined === value)
|
|
41193
|
+
return true;
|
|
41194
|
+
return _report(_exceptionable, {
|
|
41195
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
41196
|
+
expected: "undefined",
|
|
41197
|
+
value: value,
|
|
41198
|
+
description: [
|
|
41199
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
41200
|
+
"",
|
|
41201
|
+
"Please remove the property next time."
|
|
41202
|
+
].join("\n")
|
|
41203
|
+
});
|
|
41204
|
+
}).every(flag => flag))].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [undefined === input.object || "string" === typeof input.object || _report(_exceptionable, {
|
|
41205
|
+
path: _path + ".object",
|
|
41206
|
+
expected: "(string | undefined)",
|
|
41207
|
+
value: input.object
|
|
41208
|
+
}), undefined === input.document || ("object" === typeof input.document && null !== input.document && false === Array.isArray(input.document) || _report(_exceptionable, {
|
|
41209
|
+
path: _path + ".document",
|
|
41210
|
+
expected: "(StoryDomainEditorRecordNode | undefined)",
|
|
41211
|
+
value: input.document
|
|
41212
|
+
})) && _vo2(input.document, _path + ".document", true && _exceptionable) || _report(_exceptionable, {
|
|
41213
|
+
path: _path + ".document",
|
|
41214
|
+
expected: "(StoryDomainEditorRecordNode | undefined)",
|
|
41215
|
+
value: input.document
|
|
41216
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
41217
|
+
if (["object", "document"].some(prop => key === prop))
|
|
41218
|
+
return true;
|
|
41219
|
+
const value = input[key];
|
|
41220
|
+
if (undefined === value)
|
|
41221
|
+
return true;
|
|
41222
|
+
return _report(_exceptionable, {
|
|
41223
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
41224
|
+
expected: "undefined",
|
|
41225
|
+
value: value,
|
|
41226
|
+
description: [
|
|
41227
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
41228
|
+
"",
|
|
41229
|
+
"Please remove the property next time."
|
|
41230
|
+
].join("\n")
|
|
41231
|
+
});
|
|
41232
|
+
}).every(flag => flag))].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => [undefined === input.type || "string" === typeof input.type || _report(_exceptionable, {
|
|
41233
|
+
path: _path + ".type",
|
|
41234
|
+
expected: "(string | undefined)",
|
|
41235
|
+
value: input.type
|
|
41236
|
+
}), undefined === input.data || ("object" === typeof input.data && null !== input.data && false === Array.isArray(input.data) || _report(_exceptionable, {
|
|
41237
|
+
path: _path + ".data",
|
|
41238
|
+
expected: "(Record<string, unknown> | undefined)",
|
|
41239
|
+
value: input.data
|
|
41240
|
+
})) && _vo3(input.data, _path + ".data", true && _exceptionable) || _report(_exceptionable, {
|
|
41241
|
+
path: _path + ".data",
|
|
41242
|
+
expected: "(Record<string, unknown> | undefined)",
|
|
41243
|
+
value: input.data
|
|
41244
|
+
}), undefined === input.nodes || (Array.isArray(input.nodes) || _report(_exceptionable, {
|
|
41245
|
+
path: _path + ".nodes",
|
|
41246
|
+
expected: "(Array<StoryDomainEditorRecordNode> | undefined)",
|
|
41247
|
+
value: input.nodes
|
|
41248
|
+
})) && input.nodes.map((elem, _index2) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
41249
|
+
path: _path + ".nodes[" + _index2 + "]",
|
|
41250
|
+
expected: "StoryDomainEditorRecordNode",
|
|
41251
|
+
value: elem
|
|
41252
|
+
})) && _vo2(elem, _path + ".nodes[" + _index2 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
41253
|
+
path: _path + ".nodes[" + _index2 + "]",
|
|
41254
|
+
expected: "StoryDomainEditorRecordNode",
|
|
41255
|
+
value: elem
|
|
41256
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
41257
|
+
path: _path + ".nodes",
|
|
41258
|
+
expected: "(Array<StoryDomainEditorRecordNode> | undefined)",
|
|
41259
|
+
value: input.nodes
|
|
41260
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
41261
|
+
if (["type", "data", "nodes"].some(prop => key === prop))
|
|
41262
|
+
return true;
|
|
41263
|
+
const value = input[key];
|
|
41264
|
+
if (undefined === value)
|
|
41265
|
+
return true;
|
|
41266
|
+
return _report(_exceptionable, {
|
|
41267
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
41268
|
+
expected: "undefined",
|
|
41269
|
+
value: value,
|
|
41270
|
+
description: [
|
|
41271
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
41272
|
+
"",
|
|
41273
|
+
"Please remove the property next time."
|
|
41274
|
+
].join("\n")
|
|
41275
|
+
});
|
|
41276
|
+
}).every(flag => flag))].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
41277
|
+
const value = input[key];
|
|
41278
|
+
if (undefined === value)
|
|
41279
|
+
return true;
|
|
41280
|
+
return true;
|
|
41281
|
+
}).every(flag => flag)].every(flag => flag); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input, true); let errors; let _report; return input => {
|
|
41282
|
+
if (false === __is(input)) {
|
|
41283
|
+
errors = [];
|
|
41284
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
41285
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
41286
|
+
path: _path + "",
|
|
41287
|
+
expected: "StoryDomainEditorRecord",
|
|
41288
|
+
value: input
|
|
41289
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
41290
|
+
path: _path + "",
|
|
41291
|
+
expected: "StoryDomainEditorRecord",
|
|
41292
|
+
value: input
|
|
41293
|
+
}))(input, "$input", true);
|
|
41294
|
+
const success = 0 === errors.length;
|
|
41295
|
+
return success ? {
|
|
41296
|
+
success,
|
|
41297
|
+
data: input
|
|
41298
|
+
} : {
|
|
41299
|
+
success,
|
|
41300
|
+
errors,
|
|
41301
|
+
data: input
|
|
41302
|
+
};
|
|
41303
|
+
}
|
|
41304
|
+
return {
|
|
41305
|
+
success: true,
|
|
41306
|
+
data: input
|
|
41307
|
+
};
|
|
41308
|
+
}; })()(input);
|
|
41309
|
+
}
|
|
40720
41310
|
case ":storyboard": {
|
|
40721
41311
|
return (() => { const _io0 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
40722
41312
|
const value = input[key];
|