@nxtedition/types 23.1.8 → 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 +10 -0
- package/dist/nxtpression.d.ts +82 -25
- package/dist/records/domains/event.d.ts +24 -1
- package/dist/records/domains/index.d.ts +3 -1
- package/dist/records/domains/index.js +1 -0
- package/dist/records/domains/media.d.ts +12 -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/domains/template.d.ts +2 -22
- package/dist/records/validate/assert-guard.js +1996 -667
- package/dist/records/validate/assert.js +2003 -670
- package/dist/records/validate/is.js +96 -23
- package/dist/records/validate/schemas.js +1384 -420
- package/dist/records/validate/stringify.js +176 -29
- package/dist/records/validate/utils.js +1 -1
- package/dist/records/validate/validate-equals.js +2351 -867
- package/dist/records/validate/validate.js +1752 -602
- 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
|
|
@@ -13565,6 +13565,512 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
13565
13565
|
};
|
|
13566
13566
|
}; })()(input);
|
|
13567
13567
|
}
|
|
13568
|
+
case ":template": {
|
|
13569
|
+
return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.source || "string" === typeof input.source) && (undefined === input.controller || "string" === typeof input.controller) && (undefined === input.type || "string" === typeof input.type) && (undefined === input.mixin || Array.isArray(input.mixin) && input.mixin.every((elem, _index1) => "string" === typeof elem)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io1(input.properties, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
13570
|
+
if (["source", "controller", "type", "mixin", "properties"].some(prop => key === prop))
|
|
13571
|
+
return true;
|
|
13572
|
+
const value = input[key];
|
|
13573
|
+
if (undefined === value)
|
|
13574
|
+
return true;
|
|
13575
|
+
return false;
|
|
13576
|
+
})); const _io1 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
13577
|
+
const value = input[key];
|
|
13578
|
+
if (undefined === value)
|
|
13579
|
+
return true;
|
|
13580
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io2(value, true && _exceptionable);
|
|
13581
|
+
}); const _io2 = (input, _exceptionable = true) => (undefined === input.path || "string" === typeof input.path) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io3(input.render, true && _exceptionable)) && (undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf) && input.oneOf.every((elem, _index2) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io6(elem, true && _exceptionable))) && (undefined === input.anyOf || Array.isArray(input.anyOf) && input.anyOf.every((elem, _index3) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io6(elem, true && _exceptionable))) && (undefined === input["enum"] || Array.isArray(input["enum"])) && (undefined === input.minItems || "number" === typeof input.minItems) && (undefined === input.maxItems || "number" === typeof input.maxItems) && (undefined === input.items || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _io6(input.items, true && _exceptionable)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io7(input.properties, true && _exceptionable)) && true && true && (null !== input.widget && (undefined === input.widget || "string" === typeof input.widget || "object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) && _io8(input.widget, true && _exceptionable))) && (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.helpText || "string" === typeof input.helpText) && (undefined === input.invalid || "boolean" === typeof input.invalid) && true && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
13582
|
+
if (["path", "render", "type", "title", "description", "required", "oneOf", "anyOf", "enum", "minItems", "maxItems", "items", "properties", "default", "const", "widget", "placeholder", "helpText", "invalid", "emptyValue"].some(prop => key === prop))
|
|
13583
|
+
return true;
|
|
13584
|
+
const value = input[key];
|
|
13585
|
+
if (undefined === value)
|
|
13586
|
+
return true;
|
|
13587
|
+
return false;
|
|
13588
|
+
})); const _io3 = (input, _exceptionable = true) => "image" === input.type && (undefined === input.profile || "object" === typeof input.profile && null !== input.profile && false === Array.isArray(input.profile) && _io4(input.profile, true && _exceptionable)) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
13589
|
+
if (["type", "profile"].some(prop => key === prop))
|
|
13590
|
+
return true;
|
|
13591
|
+
const value = input[key];
|
|
13592
|
+
if (undefined === value)
|
|
13593
|
+
return true;
|
|
13594
|
+
return false;
|
|
13595
|
+
})); const _io4 = (input, _exceptionable = true) => (undefined === input.format || "string" === typeof input.format) && (undefined === input.video || "object" === typeof input.video && null !== input.video && _io5(input.video, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
13596
|
+
if (["format", "video"].some(prop => key === prop))
|
|
13597
|
+
return true;
|
|
13598
|
+
const value = input[key];
|
|
13599
|
+
if (undefined === value)
|
|
13600
|
+
return true;
|
|
13601
|
+
return false;
|
|
13602
|
+
})); const _io5 = (input, _exceptionable = true) => "number" === typeof input.width && "number" === typeof input.height && "cover" === input.fit && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
13603
|
+
if (["width", "height", "fit"].some(prop => key === prop))
|
|
13604
|
+
return true;
|
|
13605
|
+
const value = input[key];
|
|
13606
|
+
if (undefined === value)
|
|
13607
|
+
return true;
|
|
13608
|
+
return false;
|
|
13609
|
+
})); const _io6 = (input, _exceptionable = true) => (undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf) && input.oneOf.every((elem, _index4) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io6(elem, true && _exceptionable))) && (undefined === input.anyOf || Array.isArray(input.anyOf) && input.anyOf.every((elem, _index5) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io6(elem, true && _exceptionable))) && (undefined === input["enum"] || Array.isArray(input["enum"])) && (undefined === input.minItems || "number" === typeof input.minItems) && (undefined === input.maxItems || "number" === typeof input.maxItems) && (undefined === input.items || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _io6(input.items, true && _exceptionable)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io7(input.properties, true && _exceptionable)) && true && true && (null !== input.widget && (undefined === input.widget || "string" === typeof input.widget || "object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) && _io8(input.widget, true && _exceptionable))) && (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.helpText || "string" === typeof input.helpText) && (undefined === input.invalid || "boolean" === typeof input.invalid) && true && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
13610
|
+
if (["type", "title", "description", "required", "oneOf", "anyOf", "enum", "minItems", "maxItems", "items", "properties", "default", "const", "widget", "placeholder", "helpText", "invalid", "emptyValue"].some(prop => key === prop))
|
|
13611
|
+
return true;
|
|
13612
|
+
const value = input[key];
|
|
13613
|
+
if (undefined === value)
|
|
13614
|
+
return true;
|
|
13615
|
+
return false;
|
|
13616
|
+
})); const _io7 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
13617
|
+
const value = input[key];
|
|
13618
|
+
if (undefined === value)
|
|
13619
|
+
return true;
|
|
13620
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io6(value, true && _exceptionable);
|
|
13621
|
+
}); const _io8 = (input, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && Object.keys(input).every(key => {
|
|
13622
|
+
if (["type", "readOnly"].some(prop => key === prop))
|
|
13623
|
+
return true;
|
|
13624
|
+
const value = input[key];
|
|
13625
|
+
if (undefined === value)
|
|
13626
|
+
return true;
|
|
13627
|
+
return true;
|
|
13628
|
+
}); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.source || "string" === typeof input.source || _report(_exceptionable, {
|
|
13629
|
+
path: _path + ".source",
|
|
13630
|
+
expected: "(string | undefined)",
|
|
13631
|
+
value: input.source
|
|
13632
|
+
}), undefined === input.controller || "string" === typeof input.controller || _report(_exceptionable, {
|
|
13633
|
+
path: _path + ".controller",
|
|
13634
|
+
expected: "(string | undefined)",
|
|
13635
|
+
value: input.controller
|
|
13636
|
+
}), undefined === input.type || "string" === typeof input.type || _report(_exceptionable, {
|
|
13637
|
+
path: _path + ".type",
|
|
13638
|
+
expected: "(string | undefined)",
|
|
13639
|
+
value: input.type
|
|
13640
|
+
}), undefined === input.mixin || (Array.isArray(input.mixin) || _report(_exceptionable, {
|
|
13641
|
+
path: _path + ".mixin",
|
|
13642
|
+
expected: "(Array<string> | undefined)",
|
|
13643
|
+
value: input.mixin
|
|
13644
|
+
})) && input.mixin.map((elem, _index6) => "string" === typeof elem || _report(_exceptionable, {
|
|
13645
|
+
path: _path + ".mixin[" + _index6 + "]",
|
|
13646
|
+
expected: "string",
|
|
13647
|
+
value: elem
|
|
13648
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
13649
|
+
path: _path + ".mixin",
|
|
13650
|
+
expected: "(Array<string> | undefined)",
|
|
13651
|
+
value: input.mixin
|
|
13652
|
+
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
13653
|
+
path: _path + ".properties",
|
|
13654
|
+
expected: "(Record<string, TemplateProperty> | undefined)",
|
|
13655
|
+
value: input.properties
|
|
13656
|
+
})) && _vo1(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
13657
|
+
path: _path + ".properties",
|
|
13658
|
+
expected: "(Record<string, TemplateProperty> | undefined)",
|
|
13659
|
+
value: input.properties
|
|
13660
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
13661
|
+
if (["source", "controller", "type", "mixin", "properties"].some(prop => key === prop))
|
|
13662
|
+
return true;
|
|
13663
|
+
const value = input[key];
|
|
13664
|
+
if (undefined === value)
|
|
13665
|
+
return true;
|
|
13666
|
+
return _report(_exceptionable, {
|
|
13667
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
13668
|
+
expected: "undefined",
|
|
13669
|
+
value: value,
|
|
13670
|
+
description: [
|
|
13671
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
13672
|
+
"",
|
|
13673
|
+
"Please remove the property next time."
|
|
13674
|
+
].join("\n")
|
|
13675
|
+
});
|
|
13676
|
+
}).every(flag => flag))].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
13677
|
+
const value = input[key];
|
|
13678
|
+
if (undefined === value)
|
|
13679
|
+
return true;
|
|
13680
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
|
13681
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
13682
|
+
expected: "TemplateProperty",
|
|
13683
|
+
value: value
|
|
13684
|
+
})) && _vo2(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
13685
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
13686
|
+
expected: "TemplateProperty",
|
|
13687
|
+
value: value
|
|
13688
|
+
});
|
|
13689
|
+
}).every(flag => flag)].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => [undefined === input.path || "string" === typeof input.path || _report(_exceptionable, {
|
|
13690
|
+
path: _path + ".path",
|
|
13691
|
+
expected: "(string | undefined)",
|
|
13692
|
+
value: input.path
|
|
13693
|
+
}), undefined === input.render || ("object" === typeof input.render && null !== input.render || _report(_exceptionable, {
|
|
13694
|
+
path: _path + ".render",
|
|
13695
|
+
expected: "(__type | undefined)",
|
|
13696
|
+
value: input.render
|
|
13697
|
+
})) && _vo3(input.render, _path + ".render", true && _exceptionable) || _report(_exceptionable, {
|
|
13698
|
+
path: _path + ".render",
|
|
13699
|
+
expected: "(__type | undefined)",
|
|
13700
|
+
value: input.render
|
|
13701
|
+
}), undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type || _report(_exceptionable, {
|
|
13702
|
+
path: _path + ".type",
|
|
13703
|
+
expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\" | undefined)",
|
|
13704
|
+
value: input.type
|
|
13705
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
13706
|
+
path: _path + ".title",
|
|
13707
|
+
expected: "(string | undefined)",
|
|
13708
|
+
value: input.title
|
|
13709
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
13710
|
+
path: _path + ".description",
|
|
13711
|
+
expected: "(string | undefined)",
|
|
13712
|
+
value: input.description
|
|
13713
|
+
}), undefined === input.required || "boolean" === typeof input.required || _report(_exceptionable, {
|
|
13714
|
+
path: _path + ".required",
|
|
13715
|
+
expected: "(boolean | undefined)",
|
|
13716
|
+
value: input.required
|
|
13717
|
+
}), undefined === input.oneOf || (Array.isArray(input.oneOf) || _report(_exceptionable, {
|
|
13718
|
+
path: _path + ".oneOf",
|
|
13719
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
13720
|
+
value: input.oneOf
|
|
13721
|
+
})) && input.oneOf.map((elem, _index7) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
13722
|
+
path: _path + ".oneOf[" + _index7 + "]",
|
|
13723
|
+
expected: "SchemaProperty<unknown>",
|
|
13724
|
+
value: elem
|
|
13725
|
+
})) && _vo6(elem, _path + ".oneOf[" + _index7 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
13726
|
+
path: _path + ".oneOf[" + _index7 + "]",
|
|
13727
|
+
expected: "SchemaProperty<unknown>",
|
|
13728
|
+
value: elem
|
|
13729
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
13730
|
+
path: _path + ".oneOf",
|
|
13731
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
13732
|
+
value: input.oneOf
|
|
13733
|
+
}), undefined === input.anyOf || (Array.isArray(input.anyOf) || _report(_exceptionable, {
|
|
13734
|
+
path: _path + ".anyOf",
|
|
13735
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
13736
|
+
value: input.anyOf
|
|
13737
|
+
})) && input.anyOf.map((elem, _index8) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
13738
|
+
path: _path + ".anyOf[" + _index8 + "]",
|
|
13739
|
+
expected: "SchemaProperty<unknown>",
|
|
13740
|
+
value: elem
|
|
13741
|
+
})) && _vo6(elem, _path + ".anyOf[" + _index8 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
13742
|
+
path: _path + ".anyOf[" + _index8 + "]",
|
|
13743
|
+
expected: "SchemaProperty<unknown>",
|
|
13744
|
+
value: elem
|
|
13745
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
13746
|
+
path: _path + ".anyOf",
|
|
13747
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
13748
|
+
value: input.anyOf
|
|
13749
|
+
}), undefined === input["enum"] || Array.isArray(input["enum"]) || _report(_exceptionable, {
|
|
13750
|
+
path: _path + "[\"enum\"]",
|
|
13751
|
+
expected: "(ReadonlyArray<unknown> | undefined)",
|
|
13752
|
+
value: input["enum"]
|
|
13753
|
+
}), undefined === input.minItems || "number" === typeof input.minItems || _report(_exceptionable, {
|
|
13754
|
+
path: _path + ".minItems",
|
|
13755
|
+
expected: "(number | undefined)",
|
|
13756
|
+
value: input.minItems
|
|
13757
|
+
}), undefined === input.maxItems || "number" === typeof input.maxItems || _report(_exceptionable, {
|
|
13758
|
+
path: _path + ".maxItems",
|
|
13759
|
+
expected: "(number | undefined)",
|
|
13760
|
+
value: input.maxItems
|
|
13761
|
+
}), undefined === input.items || ("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || _report(_exceptionable, {
|
|
13762
|
+
path: _path + ".items",
|
|
13763
|
+
expected: "(SchemaProperty<unknown> | undefined)",
|
|
13764
|
+
value: input.items
|
|
13765
|
+
})) && _vo6(input.items, _path + ".items", true && _exceptionable) || _report(_exceptionable, {
|
|
13766
|
+
path: _path + ".items",
|
|
13767
|
+
expected: "(SchemaProperty<unknown> | undefined)",
|
|
13768
|
+
value: input.items
|
|
13769
|
+
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
13770
|
+
path: _path + ".properties",
|
|
13771
|
+
expected: "(Record<string, SchemaProperty<unknown>> | undefined)",
|
|
13772
|
+
value: input.properties
|
|
13773
|
+
})) && _vo7(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
13774
|
+
path: _path + ".properties",
|
|
13775
|
+
expected: "(Record<string, SchemaProperty<unknown>> | undefined)",
|
|
13776
|
+
value: input.properties
|
|
13777
|
+
}), true, true, (null !== input.widget || _report(_exceptionable, {
|
|
13778
|
+
path: _path + ".widget",
|
|
13779
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
13780
|
+
value: input.widget
|
|
13781
|
+
})) && (undefined === input.widget || "string" === typeof input.widget || ("object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) || _report(_exceptionable, {
|
|
13782
|
+
path: _path + ".widget",
|
|
13783
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
13784
|
+
value: input.widget
|
|
13785
|
+
})) && _vo8(input.widget, _path + ".widget", true && _exceptionable) || _report(_exceptionable, {
|
|
13786
|
+
path: _path + ".widget",
|
|
13787
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
13788
|
+
value: input.widget
|
|
13789
|
+
})), undefined === input.placeholder || "string" === typeof input.placeholder || _report(_exceptionable, {
|
|
13790
|
+
path: _path + ".placeholder",
|
|
13791
|
+
expected: "(string | undefined)",
|
|
13792
|
+
value: input.placeholder
|
|
13793
|
+
}), undefined === input.helpText || "string" === typeof input.helpText || _report(_exceptionable, {
|
|
13794
|
+
path: _path + ".helpText",
|
|
13795
|
+
expected: "(string | undefined)",
|
|
13796
|
+
value: input.helpText
|
|
13797
|
+
}), undefined === input.invalid || "boolean" === typeof input.invalid || _report(_exceptionable, {
|
|
13798
|
+
path: _path + ".invalid",
|
|
13799
|
+
expected: "(boolean | undefined)",
|
|
13800
|
+
value: input.invalid
|
|
13801
|
+
}), true, 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
13802
|
+
if (["path", "render", "type", "title", "description", "required", "oneOf", "anyOf", "enum", "minItems", "maxItems", "items", "properties", "default", "const", "widget", "placeholder", "helpText", "invalid", "emptyValue"].some(prop => key === prop))
|
|
13803
|
+
return true;
|
|
13804
|
+
const value = input[key];
|
|
13805
|
+
if (undefined === value)
|
|
13806
|
+
return true;
|
|
13807
|
+
return _report(_exceptionable, {
|
|
13808
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
13809
|
+
expected: "undefined",
|
|
13810
|
+
value: value,
|
|
13811
|
+
description: [
|
|
13812
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
13813
|
+
"",
|
|
13814
|
+
"Please remove the property next time."
|
|
13815
|
+
].join("\n")
|
|
13816
|
+
});
|
|
13817
|
+
}).every(flag => flag))].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["image" === input.type || _report(_exceptionable, {
|
|
13818
|
+
path: _path + ".type",
|
|
13819
|
+
expected: "\"image\"",
|
|
13820
|
+
value: input.type
|
|
13821
|
+
}), undefined === input.profile || ("object" === typeof input.profile && null !== input.profile && false === Array.isArray(input.profile) || _report(_exceptionable, {
|
|
13822
|
+
path: _path + ".profile",
|
|
13823
|
+
expected: "(__type.o1 | undefined)",
|
|
13824
|
+
value: input.profile
|
|
13825
|
+
})) && _vo4(input.profile, _path + ".profile", true && _exceptionable) || _report(_exceptionable, {
|
|
13826
|
+
path: _path + ".profile",
|
|
13827
|
+
expected: "(__type.o1 | undefined)",
|
|
13828
|
+
value: input.profile
|
|
13829
|
+
}), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
13830
|
+
if (["type", "profile"].some(prop => key === prop))
|
|
13831
|
+
return true;
|
|
13832
|
+
const value = input[key];
|
|
13833
|
+
if (undefined === value)
|
|
13834
|
+
return true;
|
|
13835
|
+
return _report(_exceptionable, {
|
|
13836
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
13837
|
+
expected: "undefined",
|
|
13838
|
+
value: value,
|
|
13839
|
+
description: [
|
|
13840
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
13841
|
+
"",
|
|
13842
|
+
"Please remove the property next time."
|
|
13843
|
+
].join("\n")
|
|
13844
|
+
});
|
|
13845
|
+
}).every(flag => flag))].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
|
|
13846
|
+
path: _path + ".format",
|
|
13847
|
+
expected: "(string | undefined)",
|
|
13848
|
+
value: input.format
|
|
13849
|
+
}), undefined === input.video || ("object" === typeof input.video && null !== input.video || _report(_exceptionable, {
|
|
13850
|
+
path: _path + ".video",
|
|
13851
|
+
expected: "(__type.o2 | undefined)",
|
|
13852
|
+
value: input.video
|
|
13853
|
+
})) && _vo5(input.video, _path + ".video", true && _exceptionable) || _report(_exceptionable, {
|
|
13854
|
+
path: _path + ".video",
|
|
13855
|
+
expected: "(__type.o2 | undefined)",
|
|
13856
|
+
value: input.video
|
|
13857
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
13858
|
+
if (["format", "video"].some(prop => key === prop))
|
|
13859
|
+
return true;
|
|
13860
|
+
const value = input[key];
|
|
13861
|
+
if (undefined === value)
|
|
13862
|
+
return true;
|
|
13863
|
+
return _report(_exceptionable, {
|
|
13864
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
13865
|
+
expected: "undefined",
|
|
13866
|
+
value: value,
|
|
13867
|
+
description: [
|
|
13868
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
13869
|
+
"",
|
|
13870
|
+
"Please remove the property next time."
|
|
13871
|
+
].join("\n")
|
|
13872
|
+
});
|
|
13873
|
+
}).every(flag => flag))].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["number" === typeof input.width || _report(_exceptionable, {
|
|
13874
|
+
path: _path + ".width",
|
|
13875
|
+
expected: "number",
|
|
13876
|
+
value: input.width
|
|
13877
|
+
}), "number" === typeof input.height || _report(_exceptionable, {
|
|
13878
|
+
path: _path + ".height",
|
|
13879
|
+
expected: "number",
|
|
13880
|
+
value: input.height
|
|
13881
|
+
}), "cover" === input.fit || _report(_exceptionable, {
|
|
13882
|
+
path: _path + ".fit",
|
|
13883
|
+
expected: "\"cover\"",
|
|
13884
|
+
value: input.fit
|
|
13885
|
+
}), 3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
13886
|
+
if (["width", "height", "fit"].some(prop => key === prop))
|
|
13887
|
+
return true;
|
|
13888
|
+
const value = input[key];
|
|
13889
|
+
if (undefined === value)
|
|
13890
|
+
return true;
|
|
13891
|
+
return _report(_exceptionable, {
|
|
13892
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
13893
|
+
expected: "undefined",
|
|
13894
|
+
value: value,
|
|
13895
|
+
description: [
|
|
13896
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
13897
|
+
"",
|
|
13898
|
+
"Please remove the property next time."
|
|
13899
|
+
].join("\n")
|
|
13900
|
+
});
|
|
13901
|
+
}).every(flag => flag))].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => [undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type || _report(_exceptionable, {
|
|
13902
|
+
path: _path + ".type",
|
|
13903
|
+
expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\" | undefined)",
|
|
13904
|
+
value: input.type
|
|
13905
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
13906
|
+
path: _path + ".title",
|
|
13907
|
+
expected: "(string | undefined)",
|
|
13908
|
+
value: input.title
|
|
13909
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
13910
|
+
path: _path + ".description",
|
|
13911
|
+
expected: "(string | undefined)",
|
|
13912
|
+
value: input.description
|
|
13913
|
+
}), undefined === input.required || "boolean" === typeof input.required || _report(_exceptionable, {
|
|
13914
|
+
path: _path + ".required",
|
|
13915
|
+
expected: "(boolean | undefined)",
|
|
13916
|
+
value: input.required
|
|
13917
|
+
}), undefined === input.oneOf || (Array.isArray(input.oneOf) || _report(_exceptionable, {
|
|
13918
|
+
path: _path + ".oneOf",
|
|
13919
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
13920
|
+
value: input.oneOf
|
|
13921
|
+
})) && input.oneOf.map((elem, _index9) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
13922
|
+
path: _path + ".oneOf[" + _index9 + "]",
|
|
13923
|
+
expected: "SchemaProperty<unknown>",
|
|
13924
|
+
value: elem
|
|
13925
|
+
})) && _vo6(elem, _path + ".oneOf[" + _index9 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
13926
|
+
path: _path + ".oneOf[" + _index9 + "]",
|
|
13927
|
+
expected: "SchemaProperty<unknown>",
|
|
13928
|
+
value: elem
|
|
13929
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
13930
|
+
path: _path + ".oneOf",
|
|
13931
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
13932
|
+
value: input.oneOf
|
|
13933
|
+
}), undefined === input.anyOf || (Array.isArray(input.anyOf) || _report(_exceptionable, {
|
|
13934
|
+
path: _path + ".anyOf",
|
|
13935
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
13936
|
+
value: input.anyOf
|
|
13937
|
+
})) && input.anyOf.map((elem, _index10) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
13938
|
+
path: _path + ".anyOf[" + _index10 + "]",
|
|
13939
|
+
expected: "SchemaProperty<unknown>",
|
|
13940
|
+
value: elem
|
|
13941
|
+
})) && _vo6(elem, _path + ".anyOf[" + _index10 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
13942
|
+
path: _path + ".anyOf[" + _index10 + "]",
|
|
13943
|
+
expected: "SchemaProperty<unknown>",
|
|
13944
|
+
value: elem
|
|
13945
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
13946
|
+
path: _path + ".anyOf",
|
|
13947
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
13948
|
+
value: input.anyOf
|
|
13949
|
+
}), undefined === input["enum"] || Array.isArray(input["enum"]) || _report(_exceptionable, {
|
|
13950
|
+
path: _path + "[\"enum\"]",
|
|
13951
|
+
expected: "(ReadonlyArray<unknown> | undefined)",
|
|
13952
|
+
value: input["enum"]
|
|
13953
|
+
}), undefined === input.minItems || "number" === typeof input.minItems || _report(_exceptionable, {
|
|
13954
|
+
path: _path + ".minItems",
|
|
13955
|
+
expected: "(number | undefined)",
|
|
13956
|
+
value: input.minItems
|
|
13957
|
+
}), undefined === input.maxItems || "number" === typeof input.maxItems || _report(_exceptionable, {
|
|
13958
|
+
path: _path + ".maxItems",
|
|
13959
|
+
expected: "(number | undefined)",
|
|
13960
|
+
value: input.maxItems
|
|
13961
|
+
}), undefined === input.items || ("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || _report(_exceptionable, {
|
|
13962
|
+
path: _path + ".items",
|
|
13963
|
+
expected: "(SchemaProperty<unknown> | undefined)",
|
|
13964
|
+
value: input.items
|
|
13965
|
+
})) && _vo6(input.items, _path + ".items", true && _exceptionable) || _report(_exceptionable, {
|
|
13966
|
+
path: _path + ".items",
|
|
13967
|
+
expected: "(SchemaProperty<unknown> | undefined)",
|
|
13968
|
+
value: input.items
|
|
13969
|
+
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
13970
|
+
path: _path + ".properties",
|
|
13971
|
+
expected: "(Record<string, SchemaProperty<unknown>> | undefined)",
|
|
13972
|
+
value: input.properties
|
|
13973
|
+
})) && _vo7(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
13974
|
+
path: _path + ".properties",
|
|
13975
|
+
expected: "(Record<string, SchemaProperty<unknown>> | undefined)",
|
|
13976
|
+
value: input.properties
|
|
13977
|
+
}), true, true, (null !== input.widget || _report(_exceptionable, {
|
|
13978
|
+
path: _path + ".widget",
|
|
13979
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
13980
|
+
value: input.widget
|
|
13981
|
+
})) && (undefined === input.widget || "string" === typeof input.widget || ("object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) || _report(_exceptionable, {
|
|
13982
|
+
path: _path + ".widget",
|
|
13983
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
13984
|
+
value: input.widget
|
|
13985
|
+
})) && _vo8(input.widget, _path + ".widget", true && _exceptionable) || _report(_exceptionable, {
|
|
13986
|
+
path: _path + ".widget",
|
|
13987
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
13988
|
+
value: input.widget
|
|
13989
|
+
})), undefined === input.placeholder || "string" === typeof input.placeholder || _report(_exceptionable, {
|
|
13990
|
+
path: _path + ".placeholder",
|
|
13991
|
+
expected: "(string | undefined)",
|
|
13992
|
+
value: input.placeholder
|
|
13993
|
+
}), undefined === input.helpText || "string" === typeof input.helpText || _report(_exceptionable, {
|
|
13994
|
+
path: _path + ".helpText",
|
|
13995
|
+
expected: "(string | undefined)",
|
|
13996
|
+
value: input.helpText
|
|
13997
|
+
}), undefined === input.invalid || "boolean" === typeof input.invalid || _report(_exceptionable, {
|
|
13998
|
+
path: _path + ".invalid",
|
|
13999
|
+
expected: "(boolean | undefined)",
|
|
14000
|
+
value: input.invalid
|
|
14001
|
+
}), true, 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
14002
|
+
if (["type", "title", "description", "required", "oneOf", "anyOf", "enum", "minItems", "maxItems", "items", "properties", "default", "const", "widget", "placeholder", "helpText", "invalid", "emptyValue"].some(prop => key === prop))
|
|
14003
|
+
return true;
|
|
14004
|
+
const value = input[key];
|
|
14005
|
+
if (undefined === value)
|
|
14006
|
+
return true;
|
|
14007
|
+
return _report(_exceptionable, {
|
|
14008
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14009
|
+
expected: "undefined",
|
|
14010
|
+
value: value,
|
|
14011
|
+
description: [
|
|
14012
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
14013
|
+
"",
|
|
14014
|
+
"Please remove the property next time."
|
|
14015
|
+
].join("\n")
|
|
14016
|
+
});
|
|
14017
|
+
}).every(flag => flag))].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
14018
|
+
const value = input[key];
|
|
14019
|
+
if (undefined === value)
|
|
14020
|
+
return true;
|
|
14021
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
|
14022
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14023
|
+
expected: "SchemaProperty<unknown>",
|
|
14024
|
+
value: value
|
|
14025
|
+
})) && _vo6(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
14026
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14027
|
+
expected: "SchemaProperty<unknown>",
|
|
14028
|
+
value: value
|
|
14029
|
+
});
|
|
14030
|
+
}).every(flag => flag)].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => [undefined === input.type || "string" === typeof input.type || _report(_exceptionable, {
|
|
14031
|
+
path: _path + ".type",
|
|
14032
|
+
expected: "(string | undefined)",
|
|
14033
|
+
value: input.type
|
|
14034
|
+
}), undefined === input.readOnly || "boolean" === typeof input.readOnly || _report(_exceptionable, {
|
|
14035
|
+
path: _path + ".readOnly",
|
|
14036
|
+
expected: "(boolean | undefined)",
|
|
14037
|
+
value: input.readOnly
|
|
14038
|
+
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
14039
|
+
if (["type", "readOnly"].some(prop => key === prop))
|
|
14040
|
+
return true;
|
|
14041
|
+
const value = input[key];
|
|
14042
|
+
if (undefined === value)
|
|
14043
|
+
return true;
|
|
14044
|
+
return true;
|
|
14045
|
+
}).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 => {
|
|
14046
|
+
if (false === __is(input)) {
|
|
14047
|
+
errors = [];
|
|
14048
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
14049
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
14050
|
+
path: _path + "",
|
|
14051
|
+
expected: "TemplateRecord",
|
|
14052
|
+
value: input
|
|
14053
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
14054
|
+
path: _path + "",
|
|
14055
|
+
expected: "TemplateRecord",
|
|
14056
|
+
value: input
|
|
14057
|
+
}))(input, "$input", true);
|
|
14058
|
+
const success = 0 === errors.length;
|
|
14059
|
+
return success ? {
|
|
14060
|
+
success,
|
|
14061
|
+
data: input
|
|
14062
|
+
} : {
|
|
14063
|
+
success,
|
|
14064
|
+
errors,
|
|
14065
|
+
data: input
|
|
14066
|
+
};
|
|
14067
|
+
}
|
|
14068
|
+
return {
|
|
14069
|
+
success: true,
|
|
14070
|
+
data: input
|
|
14071
|
+
};
|
|
14072
|
+
}; })()(input);
|
|
14073
|
+
}
|
|
13568
14074
|
case ":event": {
|
|
13569
14075
|
return (() => { const _io0 = (input, _exceptionable = true) => (null === input.start || undefined === input.start || "number" === typeof input.start) && (null === input.end || undefined === input.end || "number" === typeof input.end) && (null === input.duration || undefined === input.duration || "number" === typeof input.duration) && (undefined === input.position || "string" === typeof input.position) && (undefined === input.text || "string" === typeof input.text) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && _io1(input.styleOverrides, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
13570
14076
|
if (["start", "end", "duration", "position", "text", "lang", "style", "styleOverrides"].some(prop => key === prop))
|
|
@@ -13734,55 +14240,102 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
13734
14240
|
}; })()(input);
|
|
13735
14241
|
}
|
|
13736
14242
|
case ":event._template?": {
|
|
13737
|
-
return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.mixin || Array.isArray(input.mixin) && input.mixin.every((elem, _index1) => "string" === typeof elem)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io1(input.properties, true && _exceptionable)) && (undefined === input.layout || "object" === typeof input.layout && null !== input.layout && false === Array.isArray(input.layout) &&
|
|
14243
|
+
return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.mixin || Array.isArray(input.mixin) && input.mixin.every((elem, _index1) => "string" === typeof elem)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io1(input.properties, true && _exceptionable)) && (undefined === input.layout || "object" === typeof input.layout && null !== input.layout && false === Array.isArray(input.layout) && _io9(input.layout, true && _exceptionable)) && (undefined === input.controller || "string" === typeof input.controller) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
13738
14244
|
if (["mixin", "properties", "layout", "controller"].some(prop => key === prop))
|
|
13739
14245
|
return true;
|
|
13740
14246
|
const value = input[key];
|
|
13741
14247
|
if (undefined === value)
|
|
13742
14248
|
return true;
|
|
13743
14249
|
return false;
|
|
13744
|
-
})); const _io1 = (input, _exceptionable = true) =>
|
|
14250
|
+
})); const _io1 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
14251
|
+
const value = input[key];
|
|
14252
|
+
if (undefined === value)
|
|
14253
|
+
return true;
|
|
14254
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io2(value, true && _exceptionable);
|
|
14255
|
+
}); const _io2 = (input, _exceptionable = true) => (undefined === input.path || "string" === typeof input.path) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io3(input.render, true && _exceptionable)) && (undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf) && input.oneOf.every((elem, _index2) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io6(elem, true && _exceptionable))) && (undefined === input.anyOf || Array.isArray(input.anyOf) && input.anyOf.every((elem, _index3) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io6(elem, true && _exceptionable))) && (undefined === input["enum"] || Array.isArray(input["enum"])) && (undefined === input.minItems || "number" === typeof input.minItems) && (undefined === input.maxItems || "number" === typeof input.maxItems) && (undefined === input.items || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _io6(input.items, true && _exceptionable)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io7(input.properties, true && _exceptionable)) && true && true && (null !== input.widget && (undefined === input.widget || "string" === typeof input.widget || "object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) && _io8(input.widget, true && _exceptionable))) && (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.helpText || "string" === typeof input.helpText) && (undefined === input.invalid || "boolean" === typeof input.invalid) && true && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
14256
|
+
if (["path", "render", "type", "title", "description", "required", "oneOf", "anyOf", "enum", "minItems", "maxItems", "items", "properties", "default", "const", "widget", "placeholder", "helpText", "invalid", "emptyValue"].some(prop => key === prop))
|
|
14257
|
+
return true;
|
|
13745
14258
|
const value = input[key];
|
|
13746
14259
|
if (undefined === value)
|
|
13747
14260
|
return true;
|
|
13748
14261
|
return false;
|
|
13749
|
-
}); const
|
|
13750
|
-
if (["
|
|
14262
|
+
})); const _io3 = (input, _exceptionable = true) => "image" === input.type && (undefined === input.profile || "object" === typeof input.profile && null !== input.profile && false === Array.isArray(input.profile) && _io4(input.profile, true && _exceptionable)) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
14263
|
+
if (["type", "profile"].some(prop => key === prop))
|
|
13751
14264
|
return true;
|
|
13752
14265
|
const value = input[key];
|
|
13753
14266
|
if (undefined === value)
|
|
13754
14267
|
return true;
|
|
13755
14268
|
return false;
|
|
13756
|
-
})); const
|
|
13757
|
-
|
|
13758
|
-
|
|
13759
|
-
|
|
13760
|
-
|
|
13761
|
-
|
|
13762
|
-
|
|
13763
|
-
|
|
13764
|
-
|
|
13765
|
-
|
|
13766
|
-
|
|
13767
|
-
|
|
13768
|
-
|
|
13769
|
-
|
|
13770
|
-
|
|
13771
|
-
|
|
13772
|
-
|
|
13773
|
-
|
|
13774
|
-
|
|
13775
|
-
|
|
13776
|
-
|
|
13777
|
-
|
|
13778
|
-
|
|
13779
|
-
|
|
13780
|
-
|
|
13781
|
-
|
|
13782
|
-
|
|
13783
|
-
|
|
13784
|
-
|
|
13785
|
-
|
|
14269
|
+
})); const _io4 = (input, _exceptionable = true) => (undefined === input.format || "string" === typeof input.format) && (undefined === input.video || "object" === typeof input.video && null !== input.video && _io5(input.video, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
14270
|
+
if (["format", "video"].some(prop => key === prop))
|
|
14271
|
+
return true;
|
|
14272
|
+
const value = input[key];
|
|
14273
|
+
if (undefined === value)
|
|
14274
|
+
return true;
|
|
14275
|
+
return false;
|
|
14276
|
+
})); const _io5 = (input, _exceptionable = true) => "number" === typeof input.width && "number" === typeof input.height && "cover" === input.fit && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
14277
|
+
if (["width", "height", "fit"].some(prop => key === prop))
|
|
14278
|
+
return true;
|
|
14279
|
+
const value = input[key];
|
|
14280
|
+
if (undefined === value)
|
|
14281
|
+
return true;
|
|
14282
|
+
return false;
|
|
14283
|
+
})); const _io6 = (input, _exceptionable = true) => (undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf) && input.oneOf.every((elem, _index4) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io6(elem, true && _exceptionable))) && (undefined === input.anyOf || Array.isArray(input.anyOf) && input.anyOf.every((elem, _index5) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io6(elem, true && _exceptionable))) && (undefined === input["enum"] || Array.isArray(input["enum"])) && (undefined === input.minItems || "number" === typeof input.minItems) && (undefined === input.maxItems || "number" === typeof input.maxItems) && (undefined === input.items || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _io6(input.items, true && _exceptionable)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io7(input.properties, true && _exceptionable)) && true && true && (null !== input.widget && (undefined === input.widget || "string" === typeof input.widget || "object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) && _io8(input.widget, true && _exceptionable))) && (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.helpText || "string" === typeof input.helpText) && (undefined === input.invalid || "boolean" === typeof input.invalid) && true && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
14284
|
+
if (["type", "title", "description", "required", "oneOf", "anyOf", "enum", "minItems", "maxItems", "items", "properties", "default", "const", "widget", "placeholder", "helpText", "invalid", "emptyValue"].some(prop => key === prop))
|
|
14285
|
+
return true;
|
|
14286
|
+
const value = input[key];
|
|
14287
|
+
if (undefined === value)
|
|
14288
|
+
return true;
|
|
14289
|
+
return false;
|
|
14290
|
+
})); const _io7 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
14291
|
+
const value = input[key];
|
|
14292
|
+
if (undefined === value)
|
|
14293
|
+
return true;
|
|
14294
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io6(value, true && _exceptionable);
|
|
14295
|
+
}); const _io8 = (input, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && Object.keys(input).every(key => {
|
|
14296
|
+
if (["type", "readOnly"].some(prop => key === prop))
|
|
14297
|
+
return true;
|
|
14298
|
+
const value = input[key];
|
|
14299
|
+
if (undefined === value)
|
|
14300
|
+
return true;
|
|
14301
|
+
return true;
|
|
14302
|
+
}); const _io9 = (input, _exceptionable = true) => (undefined === input.title || "string" === typeof input.title) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
14303
|
+
if (["title"].some(prop => key === prop))
|
|
14304
|
+
return true;
|
|
14305
|
+
const value = input[key];
|
|
14306
|
+
if (undefined === value)
|
|
14307
|
+
return true;
|
|
14308
|
+
return false;
|
|
14309
|
+
})); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.mixin || (Array.isArray(input.mixin) || _report(_exceptionable, {
|
|
14310
|
+
path: _path + ".mixin",
|
|
14311
|
+
expected: "(Array<string> | undefined)",
|
|
14312
|
+
value: input.mixin
|
|
14313
|
+
})) && input.mixin.map((elem, _index6) => "string" === typeof elem || _report(_exceptionable, {
|
|
14314
|
+
path: _path + ".mixin[" + _index6 + "]",
|
|
14315
|
+
expected: "string",
|
|
14316
|
+
value: elem
|
|
14317
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
14318
|
+
path: _path + ".mixin",
|
|
14319
|
+
expected: "(Array<string> | undefined)",
|
|
14320
|
+
value: input.mixin
|
|
14321
|
+
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
14322
|
+
path: _path + ".properties",
|
|
14323
|
+
expected: "(Record<string, TemplateProperty> | undefined)",
|
|
14324
|
+
value: input.properties
|
|
14325
|
+
})) && _vo1(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
14326
|
+
path: _path + ".properties",
|
|
14327
|
+
expected: "(Record<string, TemplateProperty> | undefined)",
|
|
14328
|
+
value: input.properties
|
|
14329
|
+
}), undefined === input.layout || ("object" === typeof input.layout && null !== input.layout && false === Array.isArray(input.layout) || _report(_exceptionable, {
|
|
14330
|
+
path: _path + ".layout",
|
|
14331
|
+
expected: "(__type.o3 | undefined)",
|
|
14332
|
+
value: input.layout
|
|
14333
|
+
})) && _vo9(input.layout, _path + ".layout", true && _exceptionable) || _report(_exceptionable, {
|
|
14334
|
+
path: _path + ".layout",
|
|
14335
|
+
expected: "(__type.o3 | undefined)",
|
|
14336
|
+
value: input.layout
|
|
14337
|
+
}), undefined === input.controller || "string" === typeof input.controller || _report(_exceptionable, {
|
|
14338
|
+
path: _path + ".controller",
|
|
13786
14339
|
expected: "(string | undefined)",
|
|
13787
14340
|
value: input.controller
|
|
13788
14341
|
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
@@ -13801,7 +14354,334 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
13801
14354
|
"Please remove the property next time."
|
|
13802
14355
|
].join("\n")
|
|
13803
14356
|
});
|
|
13804
|
-
}).every(flag => flag))].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [
|
|
14357
|
+
}).every(flag => flag))].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
14358
|
+
const value = input[key];
|
|
14359
|
+
if (undefined === value)
|
|
14360
|
+
return true;
|
|
14361
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
|
14362
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14363
|
+
expected: "TemplateProperty",
|
|
14364
|
+
value: value
|
|
14365
|
+
})) && _vo2(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
14366
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14367
|
+
expected: "TemplateProperty",
|
|
14368
|
+
value: value
|
|
14369
|
+
});
|
|
14370
|
+
}).every(flag => flag)].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => [undefined === input.path || "string" === typeof input.path || _report(_exceptionable, {
|
|
14371
|
+
path: _path + ".path",
|
|
14372
|
+
expected: "(string | undefined)",
|
|
14373
|
+
value: input.path
|
|
14374
|
+
}), undefined === input.render || ("object" === typeof input.render && null !== input.render || _report(_exceptionable, {
|
|
14375
|
+
path: _path + ".render",
|
|
14376
|
+
expected: "(__type | undefined)",
|
|
14377
|
+
value: input.render
|
|
14378
|
+
})) && _vo3(input.render, _path + ".render", true && _exceptionable) || _report(_exceptionable, {
|
|
14379
|
+
path: _path + ".render",
|
|
14380
|
+
expected: "(__type | undefined)",
|
|
14381
|
+
value: input.render
|
|
14382
|
+
}), undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type || _report(_exceptionable, {
|
|
14383
|
+
path: _path + ".type",
|
|
14384
|
+
expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\" | undefined)",
|
|
14385
|
+
value: input.type
|
|
14386
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
14387
|
+
path: _path + ".title",
|
|
14388
|
+
expected: "(string | undefined)",
|
|
14389
|
+
value: input.title
|
|
14390
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
14391
|
+
path: _path + ".description",
|
|
14392
|
+
expected: "(string | undefined)",
|
|
14393
|
+
value: input.description
|
|
14394
|
+
}), undefined === input.required || "boolean" === typeof input.required || _report(_exceptionable, {
|
|
14395
|
+
path: _path + ".required",
|
|
14396
|
+
expected: "(boolean | undefined)",
|
|
14397
|
+
value: input.required
|
|
14398
|
+
}), undefined === input.oneOf || (Array.isArray(input.oneOf) || _report(_exceptionable, {
|
|
14399
|
+
path: _path + ".oneOf",
|
|
14400
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
14401
|
+
value: input.oneOf
|
|
14402
|
+
})) && input.oneOf.map((elem, _index7) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
14403
|
+
path: _path + ".oneOf[" + _index7 + "]",
|
|
14404
|
+
expected: "SchemaProperty<unknown>",
|
|
14405
|
+
value: elem
|
|
14406
|
+
})) && _vo6(elem, _path + ".oneOf[" + _index7 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
14407
|
+
path: _path + ".oneOf[" + _index7 + "]",
|
|
14408
|
+
expected: "SchemaProperty<unknown>",
|
|
14409
|
+
value: elem
|
|
14410
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
14411
|
+
path: _path + ".oneOf",
|
|
14412
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
14413
|
+
value: input.oneOf
|
|
14414
|
+
}), undefined === input.anyOf || (Array.isArray(input.anyOf) || _report(_exceptionable, {
|
|
14415
|
+
path: _path + ".anyOf",
|
|
14416
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
14417
|
+
value: input.anyOf
|
|
14418
|
+
})) && input.anyOf.map((elem, _index8) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
14419
|
+
path: _path + ".anyOf[" + _index8 + "]",
|
|
14420
|
+
expected: "SchemaProperty<unknown>",
|
|
14421
|
+
value: elem
|
|
14422
|
+
})) && _vo6(elem, _path + ".anyOf[" + _index8 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
14423
|
+
path: _path + ".anyOf[" + _index8 + "]",
|
|
14424
|
+
expected: "SchemaProperty<unknown>",
|
|
14425
|
+
value: elem
|
|
14426
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
14427
|
+
path: _path + ".anyOf",
|
|
14428
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
14429
|
+
value: input.anyOf
|
|
14430
|
+
}), undefined === input["enum"] || Array.isArray(input["enum"]) || _report(_exceptionable, {
|
|
14431
|
+
path: _path + "[\"enum\"]",
|
|
14432
|
+
expected: "(ReadonlyArray<unknown> | undefined)",
|
|
14433
|
+
value: input["enum"]
|
|
14434
|
+
}), undefined === input.minItems || "number" === typeof input.minItems || _report(_exceptionable, {
|
|
14435
|
+
path: _path + ".minItems",
|
|
14436
|
+
expected: "(number | undefined)",
|
|
14437
|
+
value: input.minItems
|
|
14438
|
+
}), undefined === input.maxItems || "number" === typeof input.maxItems || _report(_exceptionable, {
|
|
14439
|
+
path: _path + ".maxItems",
|
|
14440
|
+
expected: "(number | undefined)",
|
|
14441
|
+
value: input.maxItems
|
|
14442
|
+
}), undefined === input.items || ("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || _report(_exceptionable, {
|
|
14443
|
+
path: _path + ".items",
|
|
14444
|
+
expected: "(SchemaProperty<unknown> | undefined)",
|
|
14445
|
+
value: input.items
|
|
14446
|
+
})) && _vo6(input.items, _path + ".items", true && _exceptionable) || _report(_exceptionable, {
|
|
14447
|
+
path: _path + ".items",
|
|
14448
|
+
expected: "(SchemaProperty<unknown> | undefined)",
|
|
14449
|
+
value: input.items
|
|
14450
|
+
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
14451
|
+
path: _path + ".properties",
|
|
14452
|
+
expected: "(Record<string, SchemaProperty<unknown>> | undefined)",
|
|
14453
|
+
value: input.properties
|
|
14454
|
+
})) && _vo7(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
14455
|
+
path: _path + ".properties",
|
|
14456
|
+
expected: "(Record<string, SchemaProperty<unknown>> | undefined)",
|
|
14457
|
+
value: input.properties
|
|
14458
|
+
}), true, true, (null !== input.widget || _report(_exceptionable, {
|
|
14459
|
+
path: _path + ".widget",
|
|
14460
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
14461
|
+
value: input.widget
|
|
14462
|
+
})) && (undefined === input.widget || "string" === typeof input.widget || ("object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) || _report(_exceptionable, {
|
|
14463
|
+
path: _path + ".widget",
|
|
14464
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
14465
|
+
value: input.widget
|
|
14466
|
+
})) && _vo8(input.widget, _path + ".widget", true && _exceptionable) || _report(_exceptionable, {
|
|
14467
|
+
path: _path + ".widget",
|
|
14468
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
14469
|
+
value: input.widget
|
|
14470
|
+
})), undefined === input.placeholder || "string" === typeof input.placeholder || _report(_exceptionable, {
|
|
14471
|
+
path: _path + ".placeholder",
|
|
14472
|
+
expected: "(string | undefined)",
|
|
14473
|
+
value: input.placeholder
|
|
14474
|
+
}), undefined === input.helpText || "string" === typeof input.helpText || _report(_exceptionable, {
|
|
14475
|
+
path: _path + ".helpText",
|
|
14476
|
+
expected: "(string | undefined)",
|
|
14477
|
+
value: input.helpText
|
|
14478
|
+
}), undefined === input.invalid || "boolean" === typeof input.invalid || _report(_exceptionable, {
|
|
14479
|
+
path: _path + ".invalid",
|
|
14480
|
+
expected: "(boolean | undefined)",
|
|
14481
|
+
value: input.invalid
|
|
14482
|
+
}), true, 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
14483
|
+
if (["path", "render", "type", "title", "description", "required", "oneOf", "anyOf", "enum", "minItems", "maxItems", "items", "properties", "default", "const", "widget", "placeholder", "helpText", "invalid", "emptyValue"].some(prop => key === prop))
|
|
14484
|
+
return true;
|
|
14485
|
+
const value = input[key];
|
|
14486
|
+
if (undefined === value)
|
|
14487
|
+
return true;
|
|
14488
|
+
return _report(_exceptionable, {
|
|
14489
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14490
|
+
expected: "undefined",
|
|
14491
|
+
value: value,
|
|
14492
|
+
description: [
|
|
14493
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
14494
|
+
"",
|
|
14495
|
+
"Please remove the property next time."
|
|
14496
|
+
].join("\n")
|
|
14497
|
+
});
|
|
14498
|
+
}).every(flag => flag))].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["image" === input.type || _report(_exceptionable, {
|
|
14499
|
+
path: _path + ".type",
|
|
14500
|
+
expected: "\"image\"",
|
|
14501
|
+
value: input.type
|
|
14502
|
+
}), undefined === input.profile || ("object" === typeof input.profile && null !== input.profile && false === Array.isArray(input.profile) || _report(_exceptionable, {
|
|
14503
|
+
path: _path + ".profile",
|
|
14504
|
+
expected: "(__type.o1 | undefined)",
|
|
14505
|
+
value: input.profile
|
|
14506
|
+
})) && _vo4(input.profile, _path + ".profile", true && _exceptionable) || _report(_exceptionable, {
|
|
14507
|
+
path: _path + ".profile",
|
|
14508
|
+
expected: "(__type.o1 | undefined)",
|
|
14509
|
+
value: input.profile
|
|
14510
|
+
}), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
14511
|
+
if (["type", "profile"].some(prop => key === prop))
|
|
14512
|
+
return true;
|
|
14513
|
+
const value = input[key];
|
|
14514
|
+
if (undefined === value)
|
|
14515
|
+
return true;
|
|
14516
|
+
return _report(_exceptionable, {
|
|
14517
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14518
|
+
expected: "undefined",
|
|
14519
|
+
value: value,
|
|
14520
|
+
description: [
|
|
14521
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
14522
|
+
"",
|
|
14523
|
+
"Please remove the property next time."
|
|
14524
|
+
].join("\n")
|
|
14525
|
+
});
|
|
14526
|
+
}).every(flag => flag))].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
|
|
14527
|
+
path: _path + ".format",
|
|
14528
|
+
expected: "(string | undefined)",
|
|
14529
|
+
value: input.format
|
|
14530
|
+
}), undefined === input.video || ("object" === typeof input.video && null !== input.video || _report(_exceptionable, {
|
|
14531
|
+
path: _path + ".video",
|
|
14532
|
+
expected: "(__type.o2 | undefined)",
|
|
14533
|
+
value: input.video
|
|
14534
|
+
})) && _vo5(input.video, _path + ".video", true && _exceptionable) || _report(_exceptionable, {
|
|
14535
|
+
path: _path + ".video",
|
|
14536
|
+
expected: "(__type.o2 | undefined)",
|
|
14537
|
+
value: input.video
|
|
14538
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
14539
|
+
if (["format", "video"].some(prop => key === prop))
|
|
14540
|
+
return true;
|
|
14541
|
+
const value = input[key];
|
|
14542
|
+
if (undefined === value)
|
|
14543
|
+
return true;
|
|
14544
|
+
return _report(_exceptionable, {
|
|
14545
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14546
|
+
expected: "undefined",
|
|
14547
|
+
value: value,
|
|
14548
|
+
description: [
|
|
14549
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
14550
|
+
"",
|
|
14551
|
+
"Please remove the property next time."
|
|
14552
|
+
].join("\n")
|
|
14553
|
+
});
|
|
14554
|
+
}).every(flag => flag))].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["number" === typeof input.width || _report(_exceptionable, {
|
|
14555
|
+
path: _path + ".width",
|
|
14556
|
+
expected: "number",
|
|
14557
|
+
value: input.width
|
|
14558
|
+
}), "number" === typeof input.height || _report(_exceptionable, {
|
|
14559
|
+
path: _path + ".height",
|
|
14560
|
+
expected: "number",
|
|
14561
|
+
value: input.height
|
|
14562
|
+
}), "cover" === input.fit || _report(_exceptionable, {
|
|
14563
|
+
path: _path + ".fit",
|
|
14564
|
+
expected: "\"cover\"",
|
|
14565
|
+
value: input.fit
|
|
14566
|
+
}), 3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
14567
|
+
if (["width", "height", "fit"].some(prop => key === prop))
|
|
14568
|
+
return true;
|
|
14569
|
+
const value = input[key];
|
|
14570
|
+
if (undefined === value)
|
|
14571
|
+
return true;
|
|
14572
|
+
return _report(_exceptionable, {
|
|
14573
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14574
|
+
expected: "undefined",
|
|
14575
|
+
value: value,
|
|
14576
|
+
description: [
|
|
14577
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
14578
|
+
"",
|
|
14579
|
+
"Please remove the property next time."
|
|
14580
|
+
].join("\n")
|
|
14581
|
+
});
|
|
14582
|
+
}).every(flag => flag))].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => [undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type || _report(_exceptionable, {
|
|
14583
|
+
path: _path + ".type",
|
|
14584
|
+
expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\" | undefined)",
|
|
14585
|
+
value: input.type
|
|
14586
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
14587
|
+
path: _path + ".title",
|
|
14588
|
+
expected: "(string | undefined)",
|
|
14589
|
+
value: input.title
|
|
14590
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
14591
|
+
path: _path + ".description",
|
|
14592
|
+
expected: "(string | undefined)",
|
|
14593
|
+
value: input.description
|
|
14594
|
+
}), undefined === input.required || "boolean" === typeof input.required || _report(_exceptionable, {
|
|
14595
|
+
path: _path + ".required",
|
|
14596
|
+
expected: "(boolean | undefined)",
|
|
14597
|
+
value: input.required
|
|
14598
|
+
}), undefined === input.oneOf || (Array.isArray(input.oneOf) || _report(_exceptionable, {
|
|
14599
|
+
path: _path + ".oneOf",
|
|
14600
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
14601
|
+
value: input.oneOf
|
|
14602
|
+
})) && input.oneOf.map((elem, _index9) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
14603
|
+
path: _path + ".oneOf[" + _index9 + "]",
|
|
14604
|
+
expected: "SchemaProperty<unknown>",
|
|
14605
|
+
value: elem
|
|
14606
|
+
})) && _vo6(elem, _path + ".oneOf[" + _index9 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
14607
|
+
path: _path + ".oneOf[" + _index9 + "]",
|
|
14608
|
+
expected: "SchemaProperty<unknown>",
|
|
14609
|
+
value: elem
|
|
14610
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
14611
|
+
path: _path + ".oneOf",
|
|
14612
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
14613
|
+
value: input.oneOf
|
|
14614
|
+
}), undefined === input.anyOf || (Array.isArray(input.anyOf) || _report(_exceptionable, {
|
|
14615
|
+
path: _path + ".anyOf",
|
|
14616
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
14617
|
+
value: input.anyOf
|
|
14618
|
+
})) && input.anyOf.map((elem, _index10) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
14619
|
+
path: _path + ".anyOf[" + _index10 + "]",
|
|
14620
|
+
expected: "SchemaProperty<unknown>",
|
|
14621
|
+
value: elem
|
|
14622
|
+
})) && _vo6(elem, _path + ".anyOf[" + _index10 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
14623
|
+
path: _path + ".anyOf[" + _index10 + "]",
|
|
14624
|
+
expected: "SchemaProperty<unknown>",
|
|
14625
|
+
value: elem
|
|
14626
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
14627
|
+
path: _path + ".anyOf",
|
|
14628
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
14629
|
+
value: input.anyOf
|
|
14630
|
+
}), undefined === input["enum"] || Array.isArray(input["enum"]) || _report(_exceptionable, {
|
|
14631
|
+
path: _path + "[\"enum\"]",
|
|
14632
|
+
expected: "(ReadonlyArray<unknown> | undefined)",
|
|
14633
|
+
value: input["enum"]
|
|
14634
|
+
}), undefined === input.minItems || "number" === typeof input.minItems || _report(_exceptionable, {
|
|
14635
|
+
path: _path + ".minItems",
|
|
14636
|
+
expected: "(number | undefined)",
|
|
14637
|
+
value: input.minItems
|
|
14638
|
+
}), undefined === input.maxItems || "number" === typeof input.maxItems || _report(_exceptionable, {
|
|
14639
|
+
path: _path + ".maxItems",
|
|
14640
|
+
expected: "(number | undefined)",
|
|
14641
|
+
value: input.maxItems
|
|
14642
|
+
}), undefined === input.items || ("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || _report(_exceptionable, {
|
|
14643
|
+
path: _path + ".items",
|
|
14644
|
+
expected: "(SchemaProperty<unknown> | undefined)",
|
|
14645
|
+
value: input.items
|
|
14646
|
+
})) && _vo6(input.items, _path + ".items", true && _exceptionable) || _report(_exceptionable, {
|
|
14647
|
+
path: _path + ".items",
|
|
14648
|
+
expected: "(SchemaProperty<unknown> | undefined)",
|
|
14649
|
+
value: input.items
|
|
14650
|
+
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
14651
|
+
path: _path + ".properties",
|
|
14652
|
+
expected: "(Record<string, SchemaProperty<unknown>> | undefined)",
|
|
14653
|
+
value: input.properties
|
|
14654
|
+
})) && _vo7(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
14655
|
+
path: _path + ".properties",
|
|
14656
|
+
expected: "(Record<string, SchemaProperty<unknown>> | undefined)",
|
|
14657
|
+
value: input.properties
|
|
14658
|
+
}), true, true, (null !== input.widget || _report(_exceptionable, {
|
|
14659
|
+
path: _path + ".widget",
|
|
14660
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
14661
|
+
value: input.widget
|
|
14662
|
+
})) && (undefined === input.widget || "string" === typeof input.widget || ("object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) || _report(_exceptionable, {
|
|
14663
|
+
path: _path + ".widget",
|
|
14664
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
14665
|
+
value: input.widget
|
|
14666
|
+
})) && _vo8(input.widget, _path + ".widget", true && _exceptionable) || _report(_exceptionable, {
|
|
14667
|
+
path: _path + ".widget",
|
|
14668
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
14669
|
+
value: input.widget
|
|
14670
|
+
})), undefined === input.placeholder || "string" === typeof input.placeholder || _report(_exceptionable, {
|
|
14671
|
+
path: _path + ".placeholder",
|
|
14672
|
+
expected: "(string | undefined)",
|
|
14673
|
+
value: input.placeholder
|
|
14674
|
+
}), undefined === input.helpText || "string" === typeof input.helpText || _report(_exceptionable, {
|
|
14675
|
+
path: _path + ".helpText",
|
|
14676
|
+
expected: "(string | undefined)",
|
|
14677
|
+
value: input.helpText
|
|
14678
|
+
}), undefined === input.invalid || "boolean" === typeof input.invalid || _report(_exceptionable, {
|
|
14679
|
+
path: _path + ".invalid",
|
|
14680
|
+
expected: "(boolean | undefined)",
|
|
14681
|
+
value: input.invalid
|
|
14682
|
+
}), true, 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
14683
|
+
if (["type", "title", "description", "required", "oneOf", "anyOf", "enum", "minItems", "maxItems", "items", "properties", "default", "const", "widget", "placeholder", "helpText", "invalid", "emptyValue"].some(prop => key === prop))
|
|
14684
|
+
return true;
|
|
13805
14685
|
const value = input[key];
|
|
13806
14686
|
if (undefined === value)
|
|
13807
14687
|
return true;
|
|
@@ -13815,7 +14695,35 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
13815
14695
|
"Please remove the property next time."
|
|
13816
14696
|
].join("\n")
|
|
13817
14697
|
});
|
|
13818
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
14698
|
+
}).every(flag => flag))].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
14699
|
+
const value = input[key];
|
|
14700
|
+
if (undefined === value)
|
|
14701
|
+
return true;
|
|
14702
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
|
14703
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14704
|
+
expected: "SchemaProperty<unknown>",
|
|
14705
|
+
value: value
|
|
14706
|
+
})) && _vo6(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
14707
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14708
|
+
expected: "SchemaProperty<unknown>",
|
|
14709
|
+
value: value
|
|
14710
|
+
});
|
|
14711
|
+
}).every(flag => flag)].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => [undefined === input.type || "string" === typeof input.type || _report(_exceptionable, {
|
|
14712
|
+
path: _path + ".type",
|
|
14713
|
+
expected: "(string | undefined)",
|
|
14714
|
+
value: input.type
|
|
14715
|
+
}), undefined === input.readOnly || "boolean" === typeof input.readOnly || _report(_exceptionable, {
|
|
14716
|
+
path: _path + ".readOnly",
|
|
14717
|
+
expected: "(boolean | undefined)",
|
|
14718
|
+
value: input.readOnly
|
|
14719
|
+
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
14720
|
+
if (["type", "readOnly"].some(prop => key === prop))
|
|
14721
|
+
return true;
|
|
14722
|
+
const value = input[key];
|
|
14723
|
+
if (undefined === value)
|
|
14724
|
+
return true;
|
|
14725
|
+
return true;
|
|
14726
|
+
}).every(flag => flag)].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => [undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
13819
14727
|
path: _path + ".title",
|
|
13820
14728
|
expected: "(string | undefined)",
|
|
13821
14729
|
value: input.title
|
|
@@ -13970,57 +14878,862 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
13970
14878
|
return true;
|
|
13971
14879
|
return (undefined !== value || _report(_exceptionable, {
|
|
13972
14880
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
13973
|
-
expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
|
|
14881
|
+
expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
|
|
14882
|
+
value: value
|
|
14883
|
+
})) && (null === value || "string" === typeof value || "number" === typeof value || "boolean" === typeof value || (Array.isArray(value) && (_va0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
14884
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14885
|
+
expected: "Array<JsonValue>",
|
|
14886
|
+
value: value
|
|
14887
|
+
})) || "object" === typeof value && null !== value && false === Array.isArray(value) && _vo3(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
14888
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14889
|
+
expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
|
|
14890
|
+
value: value
|
|
14891
|
+
})) || _report(_exceptionable, {
|
|
14892
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14893
|
+
expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
|
|
14894
|
+
value: value
|
|
14895
|
+
}));
|
|
14896
|
+
}).every(flag => flag)].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
14897
|
+
const value = input[key];
|
|
14898
|
+
if (undefined === value)
|
|
14899
|
+
return true;
|
|
14900
|
+
return (undefined !== value || _report(_exceptionable, {
|
|
14901
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14902
|
+
expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
|
|
14903
|
+
value: value
|
|
14904
|
+
})) && (null === value || "string" === typeof value || "number" === typeof value || "boolean" === typeof value || (Array.isArray(value) && (_va0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
14905
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14906
|
+
expected: "Array<JsonValue>",
|
|
14907
|
+
value: value
|
|
14908
|
+
})) || "object" === typeof value && null !== value && false === Array.isArray(value) && _vo3(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
14909
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14910
|
+
expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
|
|
14911
|
+
value: value
|
|
14912
|
+
})) || _report(_exceptionable, {
|
|
14913
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14914
|
+
expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
|
|
14915
|
+
value: value
|
|
14916
|
+
}));
|
|
14917
|
+
}).every(flag => flag)].every(flag => flag); const _va0 = (input, _path, _exceptionable = true) => input.map((elem, _index4) => (undefined !== elem || _report(_exceptionable, {
|
|
14918
|
+
path: _path + "[" + _index4 + "]",
|
|
14919
|
+
expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
|
|
14920
|
+
value: elem
|
|
14921
|
+
})) && (null === elem || "string" === typeof elem || "number" === typeof elem || "boolean" === typeof elem || (Array.isArray(elem) && (_va0(elem, _path + "[" + _index4 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
14922
|
+
path: _path + "[" + _index4 + "]",
|
|
14923
|
+
expected: "Array<JsonValue>",
|
|
14924
|
+
value: elem
|
|
14925
|
+
})) || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _vo3(elem, _path + "[" + _index4 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
14926
|
+
path: _path + "[" + _index4 + "]",
|
|
14927
|
+
expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
|
|
14928
|
+
value: elem
|
|
14929
|
+
})) || _report(_exceptionable, {
|
|
14930
|
+
path: _path + "[" + _index4 + "]",
|
|
14931
|
+
expected: "(Array<JsonValue> | __type.o1 | boolean | null | number | string)",
|
|
14932
|
+
value: elem
|
|
14933
|
+
}))).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 => {
|
|
14934
|
+
if (false === __is(input)) {
|
|
14935
|
+
errors = [];
|
|
14936
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
14937
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
14938
|
+
path: _path + "",
|
|
14939
|
+
expected: "EventOverlayRecord",
|
|
14940
|
+
value: input
|
|
14941
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
14942
|
+
path: _path + "",
|
|
14943
|
+
expected: "EventOverlayRecord",
|
|
14944
|
+
value: input
|
|
14945
|
+
}))(input, "$input", true);
|
|
14946
|
+
const success = 0 === errors.length;
|
|
14947
|
+
return success ? {
|
|
14948
|
+
success,
|
|
14949
|
+
data: input
|
|
14950
|
+
} : {
|
|
14951
|
+
success,
|
|
14952
|
+
errors,
|
|
14953
|
+
data: input
|
|
14954
|
+
};
|
|
14955
|
+
}
|
|
14956
|
+
return {
|
|
14957
|
+
success: true,
|
|
14958
|
+
data: input
|
|
14959
|
+
};
|
|
14960
|
+
}; })()(input);
|
|
14961
|
+
}
|
|
14962
|
+
case ":event.template?": {
|
|
14963
|
+
return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.mixin || Array.isArray(input.mixin) && input.mixin.every((elem, _index1) => "string" === typeof elem)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io1(input.properties, true && _exceptionable)) && (undefined === input.layout || "object" === typeof input.layout && null !== input.layout && false === Array.isArray(input.layout) && _io9(input.layout, true && _exceptionable)) && (undefined === input.controller || "string" === typeof input.controller) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
14964
|
+
if (["mixin", "properties", "layout", "controller"].some(prop => key === prop))
|
|
14965
|
+
return true;
|
|
14966
|
+
const value = input[key];
|
|
14967
|
+
if (undefined === value)
|
|
14968
|
+
return true;
|
|
14969
|
+
return false;
|
|
14970
|
+
})); const _io1 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
14971
|
+
const value = input[key];
|
|
14972
|
+
if (undefined === value)
|
|
14973
|
+
return true;
|
|
14974
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io2(value, true && _exceptionable);
|
|
14975
|
+
}); const _io2 = (input, _exceptionable = true) => (undefined === input.path || "string" === typeof input.path) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io3(input.render, true && _exceptionable)) && (undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf) && input.oneOf.every((elem, _index2) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io6(elem, true && _exceptionable))) && (undefined === input.anyOf || Array.isArray(input.anyOf) && input.anyOf.every((elem, _index3) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io6(elem, true && _exceptionable))) && (undefined === input["enum"] || Array.isArray(input["enum"])) && (undefined === input.minItems || "number" === typeof input.minItems) && (undefined === input.maxItems || "number" === typeof input.maxItems) && (undefined === input.items || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _io6(input.items, true && _exceptionable)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io7(input.properties, true && _exceptionable)) && true && true && (null !== input.widget && (undefined === input.widget || "string" === typeof input.widget || "object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) && _io8(input.widget, true && _exceptionable))) && (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.helpText || "string" === typeof input.helpText) && (undefined === input.invalid || "boolean" === typeof input.invalid) && true && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
14976
|
+
if (["path", "render", "type", "title", "description", "required", "oneOf", "anyOf", "enum", "minItems", "maxItems", "items", "properties", "default", "const", "widget", "placeholder", "helpText", "invalid", "emptyValue"].some(prop => key === prop))
|
|
14977
|
+
return true;
|
|
14978
|
+
const value = input[key];
|
|
14979
|
+
if (undefined === value)
|
|
14980
|
+
return true;
|
|
14981
|
+
return false;
|
|
14982
|
+
})); const _io3 = (input, _exceptionable = true) => "image" === input.type && (undefined === input.profile || "object" === typeof input.profile && null !== input.profile && false === Array.isArray(input.profile) && _io4(input.profile, true && _exceptionable)) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
14983
|
+
if (["type", "profile"].some(prop => key === prop))
|
|
14984
|
+
return true;
|
|
14985
|
+
const value = input[key];
|
|
14986
|
+
if (undefined === value)
|
|
14987
|
+
return true;
|
|
14988
|
+
return false;
|
|
14989
|
+
})); const _io4 = (input, _exceptionable = true) => (undefined === input.format || "string" === typeof input.format) && (undefined === input.video || "object" === typeof input.video && null !== input.video && _io5(input.video, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
14990
|
+
if (["format", "video"].some(prop => key === prop))
|
|
14991
|
+
return true;
|
|
14992
|
+
const value = input[key];
|
|
14993
|
+
if (undefined === value)
|
|
14994
|
+
return true;
|
|
14995
|
+
return false;
|
|
14996
|
+
})); const _io5 = (input, _exceptionable = true) => "number" === typeof input.width && "number" === typeof input.height && "cover" === input.fit && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
14997
|
+
if (["width", "height", "fit"].some(prop => key === prop))
|
|
14998
|
+
return true;
|
|
14999
|
+
const value = input[key];
|
|
15000
|
+
if (undefined === value)
|
|
15001
|
+
return true;
|
|
15002
|
+
return false;
|
|
15003
|
+
})); const _io6 = (input, _exceptionable = true) => (undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf) && input.oneOf.every((elem, _index4) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io6(elem, true && _exceptionable))) && (undefined === input.anyOf || Array.isArray(input.anyOf) && input.anyOf.every((elem, _index5) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io6(elem, true && _exceptionable))) && (undefined === input["enum"] || Array.isArray(input["enum"])) && (undefined === input.minItems || "number" === typeof input.minItems) && (undefined === input.maxItems || "number" === typeof input.maxItems) && (undefined === input.items || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _io6(input.items, true && _exceptionable)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io7(input.properties, true && _exceptionable)) && true && true && (null !== input.widget && (undefined === input.widget || "string" === typeof input.widget || "object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) && _io8(input.widget, true && _exceptionable))) && (undefined === input.placeholder || "string" === typeof input.placeholder) && (undefined === input.helpText || "string" === typeof input.helpText) && (undefined === input.invalid || "boolean" === typeof input.invalid) && true && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
15004
|
+
if (["type", "title", "description", "required", "oneOf", "anyOf", "enum", "minItems", "maxItems", "items", "properties", "default", "const", "widget", "placeholder", "helpText", "invalid", "emptyValue"].some(prop => key === prop))
|
|
15005
|
+
return true;
|
|
15006
|
+
const value = input[key];
|
|
15007
|
+
if (undefined === value)
|
|
15008
|
+
return true;
|
|
15009
|
+
return false;
|
|
15010
|
+
})); const _io7 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
15011
|
+
const value = input[key];
|
|
15012
|
+
if (undefined === value)
|
|
15013
|
+
return true;
|
|
15014
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io6(value, true && _exceptionable);
|
|
15015
|
+
}); const _io8 = (input, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && Object.keys(input).every(key => {
|
|
15016
|
+
if (["type", "readOnly"].some(prop => key === prop))
|
|
15017
|
+
return true;
|
|
15018
|
+
const value = input[key];
|
|
15019
|
+
if (undefined === value)
|
|
15020
|
+
return true;
|
|
15021
|
+
return true;
|
|
15022
|
+
}); const _io9 = (input, _exceptionable = true) => (undefined === input.title || "string" === typeof input.title) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
15023
|
+
if (["title"].some(prop => key === prop))
|
|
15024
|
+
return true;
|
|
15025
|
+
const value = input[key];
|
|
15026
|
+
if (undefined === value)
|
|
15027
|
+
return true;
|
|
15028
|
+
return false;
|
|
15029
|
+
})); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.mixin || (Array.isArray(input.mixin) || _report(_exceptionable, {
|
|
15030
|
+
path: _path + ".mixin",
|
|
15031
|
+
expected: "(Array<string> | undefined)",
|
|
15032
|
+
value: input.mixin
|
|
15033
|
+
})) && input.mixin.map((elem, _index6) => "string" === typeof elem || _report(_exceptionable, {
|
|
15034
|
+
path: _path + ".mixin[" + _index6 + "]",
|
|
15035
|
+
expected: "string",
|
|
15036
|
+
value: elem
|
|
15037
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
15038
|
+
path: _path + ".mixin",
|
|
15039
|
+
expected: "(Array<string> | undefined)",
|
|
15040
|
+
value: input.mixin
|
|
15041
|
+
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
15042
|
+
path: _path + ".properties",
|
|
15043
|
+
expected: "(Record<string, TemplateProperty> | undefined)",
|
|
15044
|
+
value: input.properties
|
|
15045
|
+
})) && _vo1(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
15046
|
+
path: _path + ".properties",
|
|
15047
|
+
expected: "(Record<string, TemplateProperty> | undefined)",
|
|
15048
|
+
value: input.properties
|
|
15049
|
+
}), undefined === input.layout || ("object" === typeof input.layout && null !== input.layout && false === Array.isArray(input.layout) || _report(_exceptionable, {
|
|
15050
|
+
path: _path + ".layout",
|
|
15051
|
+
expected: "(__type.o3 | undefined)",
|
|
15052
|
+
value: input.layout
|
|
15053
|
+
})) && _vo9(input.layout, _path + ".layout", true && _exceptionable) || _report(_exceptionable, {
|
|
15054
|
+
path: _path + ".layout",
|
|
15055
|
+
expected: "(__type.o3 | undefined)",
|
|
15056
|
+
value: input.layout
|
|
15057
|
+
}), undefined === input.controller || "string" === typeof input.controller || _report(_exceptionable, {
|
|
15058
|
+
path: _path + ".controller",
|
|
15059
|
+
expected: "(string | undefined)",
|
|
15060
|
+
value: input.controller
|
|
15061
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
15062
|
+
if (["mixin", "properties", "layout", "controller"].some(prop => key === prop))
|
|
15063
|
+
return true;
|
|
15064
|
+
const value = input[key];
|
|
15065
|
+
if (undefined === value)
|
|
15066
|
+
return true;
|
|
15067
|
+
return _report(_exceptionable, {
|
|
15068
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
15069
|
+
expected: "undefined",
|
|
15070
|
+
value: value,
|
|
15071
|
+
description: [
|
|
15072
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
15073
|
+
"",
|
|
15074
|
+
"Please remove the property next time."
|
|
15075
|
+
].join("\n")
|
|
15076
|
+
});
|
|
15077
|
+
}).every(flag => flag))].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
15078
|
+
const value = input[key];
|
|
15079
|
+
if (undefined === value)
|
|
15080
|
+
return true;
|
|
15081
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
|
15082
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
15083
|
+
expected: "TemplateProperty",
|
|
15084
|
+
value: value
|
|
15085
|
+
})) && _vo2(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
15086
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
15087
|
+
expected: "TemplateProperty",
|
|
15088
|
+
value: value
|
|
15089
|
+
});
|
|
15090
|
+
}).every(flag => flag)].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => [undefined === input.path || "string" === typeof input.path || _report(_exceptionable, {
|
|
15091
|
+
path: _path + ".path",
|
|
15092
|
+
expected: "(string | undefined)",
|
|
15093
|
+
value: input.path
|
|
15094
|
+
}), undefined === input.render || ("object" === typeof input.render && null !== input.render || _report(_exceptionable, {
|
|
15095
|
+
path: _path + ".render",
|
|
15096
|
+
expected: "(__type | undefined)",
|
|
15097
|
+
value: input.render
|
|
15098
|
+
})) && _vo3(input.render, _path + ".render", true && _exceptionable) || _report(_exceptionable, {
|
|
15099
|
+
path: _path + ".render",
|
|
15100
|
+
expected: "(__type | undefined)",
|
|
15101
|
+
value: input.render
|
|
15102
|
+
}), undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type || _report(_exceptionable, {
|
|
15103
|
+
path: _path + ".type",
|
|
15104
|
+
expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\" | undefined)",
|
|
15105
|
+
value: input.type
|
|
15106
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
15107
|
+
path: _path + ".title",
|
|
15108
|
+
expected: "(string | undefined)",
|
|
15109
|
+
value: input.title
|
|
15110
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
15111
|
+
path: _path + ".description",
|
|
15112
|
+
expected: "(string | undefined)",
|
|
15113
|
+
value: input.description
|
|
15114
|
+
}), undefined === input.required || "boolean" === typeof input.required || _report(_exceptionable, {
|
|
15115
|
+
path: _path + ".required",
|
|
15116
|
+
expected: "(boolean | undefined)",
|
|
15117
|
+
value: input.required
|
|
15118
|
+
}), undefined === input.oneOf || (Array.isArray(input.oneOf) || _report(_exceptionable, {
|
|
15119
|
+
path: _path + ".oneOf",
|
|
15120
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
15121
|
+
value: input.oneOf
|
|
15122
|
+
})) && input.oneOf.map((elem, _index7) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
15123
|
+
path: _path + ".oneOf[" + _index7 + "]",
|
|
15124
|
+
expected: "SchemaProperty<unknown>",
|
|
15125
|
+
value: elem
|
|
15126
|
+
})) && _vo6(elem, _path + ".oneOf[" + _index7 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
15127
|
+
path: _path + ".oneOf[" + _index7 + "]",
|
|
15128
|
+
expected: "SchemaProperty<unknown>",
|
|
15129
|
+
value: elem
|
|
15130
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
15131
|
+
path: _path + ".oneOf",
|
|
15132
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
15133
|
+
value: input.oneOf
|
|
15134
|
+
}), undefined === input.anyOf || (Array.isArray(input.anyOf) || _report(_exceptionable, {
|
|
15135
|
+
path: _path + ".anyOf",
|
|
15136
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
15137
|
+
value: input.anyOf
|
|
15138
|
+
})) && input.anyOf.map((elem, _index8) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
15139
|
+
path: _path + ".anyOf[" + _index8 + "]",
|
|
15140
|
+
expected: "SchemaProperty<unknown>",
|
|
15141
|
+
value: elem
|
|
15142
|
+
})) && _vo6(elem, _path + ".anyOf[" + _index8 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
15143
|
+
path: _path + ".anyOf[" + _index8 + "]",
|
|
15144
|
+
expected: "SchemaProperty<unknown>",
|
|
15145
|
+
value: elem
|
|
15146
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
15147
|
+
path: _path + ".anyOf",
|
|
15148
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
15149
|
+
value: input.anyOf
|
|
15150
|
+
}), undefined === input["enum"] || Array.isArray(input["enum"]) || _report(_exceptionable, {
|
|
15151
|
+
path: _path + "[\"enum\"]",
|
|
15152
|
+
expected: "(ReadonlyArray<unknown> | undefined)",
|
|
15153
|
+
value: input["enum"]
|
|
15154
|
+
}), undefined === input.minItems || "number" === typeof input.minItems || _report(_exceptionable, {
|
|
15155
|
+
path: _path + ".minItems",
|
|
15156
|
+
expected: "(number | undefined)",
|
|
15157
|
+
value: input.minItems
|
|
15158
|
+
}), undefined === input.maxItems || "number" === typeof input.maxItems || _report(_exceptionable, {
|
|
15159
|
+
path: _path + ".maxItems",
|
|
15160
|
+
expected: "(number | undefined)",
|
|
15161
|
+
value: input.maxItems
|
|
15162
|
+
}), undefined === input.items || ("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || _report(_exceptionable, {
|
|
15163
|
+
path: _path + ".items",
|
|
15164
|
+
expected: "(SchemaProperty<unknown> | undefined)",
|
|
15165
|
+
value: input.items
|
|
15166
|
+
})) && _vo6(input.items, _path + ".items", true && _exceptionable) || _report(_exceptionable, {
|
|
15167
|
+
path: _path + ".items",
|
|
15168
|
+
expected: "(SchemaProperty<unknown> | undefined)",
|
|
15169
|
+
value: input.items
|
|
15170
|
+
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
15171
|
+
path: _path + ".properties",
|
|
15172
|
+
expected: "(Record<string, SchemaProperty<unknown>> | undefined)",
|
|
15173
|
+
value: input.properties
|
|
15174
|
+
})) && _vo7(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
15175
|
+
path: _path + ".properties",
|
|
15176
|
+
expected: "(Record<string, SchemaProperty<unknown>> | undefined)",
|
|
15177
|
+
value: input.properties
|
|
15178
|
+
}), true, true, (null !== input.widget || _report(_exceptionable, {
|
|
15179
|
+
path: _path + ".widget",
|
|
15180
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
15181
|
+
value: input.widget
|
|
15182
|
+
})) && (undefined === input.widget || "string" === typeof input.widget || ("object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) || _report(_exceptionable, {
|
|
15183
|
+
path: _path + ".widget",
|
|
15184
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
15185
|
+
value: input.widget
|
|
15186
|
+
})) && _vo8(input.widget, _path + ".widget", true && _exceptionable) || _report(_exceptionable, {
|
|
15187
|
+
path: _path + ".widget",
|
|
15188
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
15189
|
+
value: input.widget
|
|
15190
|
+
})), undefined === input.placeholder || "string" === typeof input.placeholder || _report(_exceptionable, {
|
|
15191
|
+
path: _path + ".placeholder",
|
|
15192
|
+
expected: "(string | undefined)",
|
|
15193
|
+
value: input.placeholder
|
|
15194
|
+
}), undefined === input.helpText || "string" === typeof input.helpText || _report(_exceptionable, {
|
|
15195
|
+
path: _path + ".helpText",
|
|
15196
|
+
expected: "(string | undefined)",
|
|
15197
|
+
value: input.helpText
|
|
15198
|
+
}), undefined === input.invalid || "boolean" === typeof input.invalid || _report(_exceptionable, {
|
|
15199
|
+
path: _path + ".invalid",
|
|
15200
|
+
expected: "(boolean | undefined)",
|
|
15201
|
+
value: input.invalid
|
|
15202
|
+
}), true, 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
15203
|
+
if (["path", "render", "type", "title", "description", "required", "oneOf", "anyOf", "enum", "minItems", "maxItems", "items", "properties", "default", "const", "widget", "placeholder", "helpText", "invalid", "emptyValue"].some(prop => key === prop))
|
|
15204
|
+
return true;
|
|
15205
|
+
const value = input[key];
|
|
15206
|
+
if (undefined === value)
|
|
15207
|
+
return true;
|
|
15208
|
+
return _report(_exceptionable, {
|
|
15209
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
15210
|
+
expected: "undefined",
|
|
15211
|
+
value: value,
|
|
15212
|
+
description: [
|
|
15213
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
15214
|
+
"",
|
|
15215
|
+
"Please remove the property next time."
|
|
15216
|
+
].join("\n")
|
|
15217
|
+
});
|
|
15218
|
+
}).every(flag => flag))].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["image" === input.type || _report(_exceptionable, {
|
|
15219
|
+
path: _path + ".type",
|
|
15220
|
+
expected: "\"image\"",
|
|
15221
|
+
value: input.type
|
|
15222
|
+
}), undefined === input.profile || ("object" === typeof input.profile && null !== input.profile && false === Array.isArray(input.profile) || _report(_exceptionable, {
|
|
15223
|
+
path: _path + ".profile",
|
|
15224
|
+
expected: "(__type.o1 | undefined)",
|
|
15225
|
+
value: input.profile
|
|
15226
|
+
})) && _vo4(input.profile, _path + ".profile", true && _exceptionable) || _report(_exceptionable, {
|
|
15227
|
+
path: _path + ".profile",
|
|
15228
|
+
expected: "(__type.o1 | undefined)",
|
|
15229
|
+
value: input.profile
|
|
15230
|
+
}), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
15231
|
+
if (["type", "profile"].some(prop => key === prop))
|
|
15232
|
+
return true;
|
|
15233
|
+
const value = input[key];
|
|
15234
|
+
if (undefined === value)
|
|
15235
|
+
return true;
|
|
15236
|
+
return _report(_exceptionable, {
|
|
15237
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
15238
|
+
expected: "undefined",
|
|
15239
|
+
value: value,
|
|
15240
|
+
description: [
|
|
15241
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
15242
|
+
"",
|
|
15243
|
+
"Please remove the property next time."
|
|
15244
|
+
].join("\n")
|
|
15245
|
+
});
|
|
15246
|
+
}).every(flag => flag))].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
|
|
15247
|
+
path: _path + ".format",
|
|
15248
|
+
expected: "(string | undefined)",
|
|
15249
|
+
value: input.format
|
|
15250
|
+
}), undefined === input.video || ("object" === typeof input.video && null !== input.video || _report(_exceptionable, {
|
|
15251
|
+
path: _path + ".video",
|
|
15252
|
+
expected: "(__type.o2 | undefined)",
|
|
15253
|
+
value: input.video
|
|
15254
|
+
})) && _vo5(input.video, _path + ".video", true && _exceptionable) || _report(_exceptionable, {
|
|
15255
|
+
path: _path + ".video",
|
|
15256
|
+
expected: "(__type.o2 | undefined)",
|
|
15257
|
+
value: input.video
|
|
15258
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
15259
|
+
if (["format", "video"].some(prop => key === prop))
|
|
15260
|
+
return true;
|
|
15261
|
+
const value = input[key];
|
|
15262
|
+
if (undefined === value)
|
|
15263
|
+
return true;
|
|
15264
|
+
return _report(_exceptionable, {
|
|
15265
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
15266
|
+
expected: "undefined",
|
|
15267
|
+
value: value,
|
|
15268
|
+
description: [
|
|
15269
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
15270
|
+
"",
|
|
15271
|
+
"Please remove the property next time."
|
|
15272
|
+
].join("\n")
|
|
15273
|
+
});
|
|
15274
|
+
}).every(flag => flag))].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["number" === typeof input.width || _report(_exceptionable, {
|
|
15275
|
+
path: _path + ".width",
|
|
15276
|
+
expected: "number",
|
|
15277
|
+
value: input.width
|
|
15278
|
+
}), "number" === typeof input.height || _report(_exceptionable, {
|
|
15279
|
+
path: _path + ".height",
|
|
15280
|
+
expected: "number",
|
|
15281
|
+
value: input.height
|
|
15282
|
+
}), "cover" === input.fit || _report(_exceptionable, {
|
|
15283
|
+
path: _path + ".fit",
|
|
15284
|
+
expected: "\"cover\"",
|
|
15285
|
+
value: input.fit
|
|
15286
|
+
}), 3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
15287
|
+
if (["width", "height", "fit"].some(prop => key === prop))
|
|
15288
|
+
return true;
|
|
15289
|
+
const value = input[key];
|
|
15290
|
+
if (undefined === value)
|
|
15291
|
+
return true;
|
|
15292
|
+
return _report(_exceptionable, {
|
|
15293
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
15294
|
+
expected: "undefined",
|
|
15295
|
+
value: value,
|
|
15296
|
+
description: [
|
|
15297
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
15298
|
+
"",
|
|
15299
|
+
"Please remove the property next time."
|
|
15300
|
+
].join("\n")
|
|
15301
|
+
});
|
|
15302
|
+
}).every(flag => flag))].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => [undefined === input.type || "string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type || _report(_exceptionable, {
|
|
15303
|
+
path: _path + ".type",
|
|
15304
|
+
expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\" | undefined)",
|
|
15305
|
+
value: input.type
|
|
15306
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
15307
|
+
path: _path + ".title",
|
|
15308
|
+
expected: "(string | undefined)",
|
|
15309
|
+
value: input.title
|
|
15310
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
15311
|
+
path: _path + ".description",
|
|
15312
|
+
expected: "(string | undefined)",
|
|
15313
|
+
value: input.description
|
|
15314
|
+
}), undefined === input.required || "boolean" === typeof input.required || _report(_exceptionable, {
|
|
15315
|
+
path: _path + ".required",
|
|
15316
|
+
expected: "(boolean | undefined)",
|
|
15317
|
+
value: input.required
|
|
15318
|
+
}), undefined === input.oneOf || (Array.isArray(input.oneOf) || _report(_exceptionable, {
|
|
15319
|
+
path: _path + ".oneOf",
|
|
15320
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
15321
|
+
value: input.oneOf
|
|
15322
|
+
})) && input.oneOf.map((elem, _index9) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
15323
|
+
path: _path + ".oneOf[" + _index9 + "]",
|
|
15324
|
+
expected: "SchemaProperty<unknown>",
|
|
15325
|
+
value: elem
|
|
15326
|
+
})) && _vo6(elem, _path + ".oneOf[" + _index9 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
15327
|
+
path: _path + ".oneOf[" + _index9 + "]",
|
|
15328
|
+
expected: "SchemaProperty<unknown>",
|
|
15329
|
+
value: elem
|
|
15330
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
15331
|
+
path: _path + ".oneOf",
|
|
15332
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
15333
|
+
value: input.oneOf
|
|
15334
|
+
}), undefined === input.anyOf || (Array.isArray(input.anyOf) || _report(_exceptionable, {
|
|
15335
|
+
path: _path + ".anyOf",
|
|
15336
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
15337
|
+
value: input.anyOf
|
|
15338
|
+
})) && input.anyOf.map((elem, _index10) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
15339
|
+
path: _path + ".anyOf[" + _index10 + "]",
|
|
15340
|
+
expected: "SchemaProperty<unknown>",
|
|
15341
|
+
value: elem
|
|
15342
|
+
})) && _vo6(elem, _path + ".anyOf[" + _index10 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
15343
|
+
path: _path + ".anyOf[" + _index10 + "]",
|
|
15344
|
+
expected: "SchemaProperty<unknown>",
|
|
15345
|
+
value: elem
|
|
15346
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
15347
|
+
path: _path + ".anyOf",
|
|
15348
|
+
expected: "(Array<SchemaProperty<unknown>> | undefined)",
|
|
15349
|
+
value: input.anyOf
|
|
15350
|
+
}), undefined === input["enum"] || Array.isArray(input["enum"]) || _report(_exceptionable, {
|
|
15351
|
+
path: _path + "[\"enum\"]",
|
|
15352
|
+
expected: "(ReadonlyArray<unknown> | undefined)",
|
|
15353
|
+
value: input["enum"]
|
|
15354
|
+
}), undefined === input.minItems || "number" === typeof input.minItems || _report(_exceptionable, {
|
|
15355
|
+
path: _path + ".minItems",
|
|
15356
|
+
expected: "(number | undefined)",
|
|
15357
|
+
value: input.minItems
|
|
15358
|
+
}), undefined === input.maxItems || "number" === typeof input.maxItems || _report(_exceptionable, {
|
|
15359
|
+
path: _path + ".maxItems",
|
|
15360
|
+
expected: "(number | undefined)",
|
|
15361
|
+
value: input.maxItems
|
|
15362
|
+
}), undefined === input.items || ("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || _report(_exceptionable, {
|
|
15363
|
+
path: _path + ".items",
|
|
15364
|
+
expected: "(SchemaProperty<unknown> | undefined)",
|
|
15365
|
+
value: input.items
|
|
15366
|
+
})) && _vo6(input.items, _path + ".items", true && _exceptionable) || _report(_exceptionable, {
|
|
15367
|
+
path: _path + ".items",
|
|
15368
|
+
expected: "(SchemaProperty<unknown> | undefined)",
|
|
15369
|
+
value: input.items
|
|
15370
|
+
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
15371
|
+
path: _path + ".properties",
|
|
15372
|
+
expected: "(Record<string, SchemaProperty<unknown>> | undefined)",
|
|
15373
|
+
value: input.properties
|
|
15374
|
+
})) && _vo7(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
15375
|
+
path: _path + ".properties",
|
|
15376
|
+
expected: "(Record<string, SchemaProperty<unknown>> | undefined)",
|
|
15377
|
+
value: input.properties
|
|
15378
|
+
}), true, true, (null !== input.widget || _report(_exceptionable, {
|
|
15379
|
+
path: _path + ".widget",
|
|
15380
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
15381
|
+
value: input.widget
|
|
15382
|
+
})) && (undefined === input.widget || "string" === typeof input.widget || ("object" === typeof input.widget && null !== input.widget && false === Array.isArray(input.widget) || _report(_exceptionable, {
|
|
15383
|
+
path: _path + ".widget",
|
|
15384
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
15385
|
+
value: input.widget
|
|
15386
|
+
})) && _vo8(input.widget, _path + ".widget", true && _exceptionable) || _report(_exceptionable, {
|
|
15387
|
+
path: _path + ".widget",
|
|
15388
|
+
expected: "(WidgetOptions | string | undefined)",
|
|
15389
|
+
value: input.widget
|
|
15390
|
+
})), undefined === input.placeholder || "string" === typeof input.placeholder || _report(_exceptionable, {
|
|
15391
|
+
path: _path + ".placeholder",
|
|
15392
|
+
expected: "(string | undefined)",
|
|
15393
|
+
value: input.placeholder
|
|
15394
|
+
}), undefined === input.helpText || "string" === typeof input.helpText || _report(_exceptionable, {
|
|
15395
|
+
path: _path + ".helpText",
|
|
15396
|
+
expected: "(string | undefined)",
|
|
15397
|
+
value: input.helpText
|
|
15398
|
+
}), undefined === input.invalid || "boolean" === typeof input.invalid || _report(_exceptionable, {
|
|
15399
|
+
path: _path + ".invalid",
|
|
15400
|
+
expected: "(boolean | undefined)",
|
|
15401
|
+
value: input.invalid
|
|
15402
|
+
}), true, 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
15403
|
+
if (["type", "title", "description", "required", "oneOf", "anyOf", "enum", "minItems", "maxItems", "items", "properties", "default", "const", "widget", "placeholder", "helpText", "invalid", "emptyValue"].some(prop => key === prop))
|
|
15404
|
+
return true;
|
|
15405
|
+
const value = input[key];
|
|
15406
|
+
if (undefined === value)
|
|
15407
|
+
return true;
|
|
15408
|
+
return _report(_exceptionable, {
|
|
15409
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
15410
|
+
expected: "undefined",
|
|
15411
|
+
value: value,
|
|
15412
|
+
description: [
|
|
15413
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
15414
|
+
"",
|
|
15415
|
+
"Please remove the property next time."
|
|
15416
|
+
].join("\n")
|
|
15417
|
+
});
|
|
15418
|
+
}).every(flag => flag))].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
15419
|
+
const value = input[key];
|
|
15420
|
+
if (undefined === value)
|
|
15421
|
+
return true;
|
|
15422
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
|
15423
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
15424
|
+
expected: "SchemaProperty<unknown>",
|
|
15425
|
+
value: value
|
|
15426
|
+
})) && _vo6(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
15427
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
15428
|
+
expected: "SchemaProperty<unknown>",
|
|
15429
|
+
value: value
|
|
15430
|
+
});
|
|
15431
|
+
}).every(flag => flag)].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => [undefined === input.type || "string" === typeof input.type || _report(_exceptionable, {
|
|
15432
|
+
path: _path + ".type",
|
|
15433
|
+
expected: "(string | undefined)",
|
|
15434
|
+
value: input.type
|
|
15435
|
+
}), undefined === input.readOnly || "boolean" === typeof input.readOnly || _report(_exceptionable, {
|
|
15436
|
+
path: _path + ".readOnly",
|
|
15437
|
+
expected: "(boolean | undefined)",
|
|
15438
|
+
value: input.readOnly
|
|
15439
|
+
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
15440
|
+
if (["type", "readOnly"].some(prop => key === prop))
|
|
15441
|
+
return true;
|
|
15442
|
+
const value = input[key];
|
|
15443
|
+
if (undefined === value)
|
|
15444
|
+
return true;
|
|
15445
|
+
return true;
|
|
15446
|
+
}).every(flag => flag)].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => [undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
15447
|
+
path: _path + ".title",
|
|
15448
|
+
expected: "(string | undefined)",
|
|
15449
|
+
value: input.title
|
|
15450
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
15451
|
+
if (["title"].some(prop => key === prop))
|
|
15452
|
+
return true;
|
|
15453
|
+
const value = input[key];
|
|
15454
|
+
if (undefined === value)
|
|
15455
|
+
return true;
|
|
15456
|
+
return _report(_exceptionable, {
|
|
15457
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
15458
|
+
expected: "undefined",
|
|
15459
|
+
value: value,
|
|
15460
|
+
description: [
|
|
15461
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
15462
|
+
"",
|
|
15463
|
+
"Please remove the property next time."
|
|
15464
|
+
].join("\n")
|
|
15465
|
+
});
|
|
15466
|
+
}).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 => {
|
|
15467
|
+
if (false === __is(input)) {
|
|
15468
|
+
errors = [];
|
|
15469
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
15470
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
15471
|
+
path: _path + "",
|
|
15472
|
+
expected: "EventTemplateRecord",
|
|
15473
|
+
value: input
|
|
15474
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
15475
|
+
path: _path + "",
|
|
15476
|
+
expected: "EventTemplateRecord",
|
|
15477
|
+
value: input
|
|
15478
|
+
}))(input, "$input", true);
|
|
15479
|
+
const success = 0 === errors.length;
|
|
15480
|
+
return success ? {
|
|
15481
|
+
success,
|
|
15482
|
+
data: input
|
|
15483
|
+
} : {
|
|
15484
|
+
success,
|
|
15485
|
+
errors,
|
|
15486
|
+
data: input
|
|
15487
|
+
};
|
|
15488
|
+
}
|
|
15489
|
+
return {
|
|
15490
|
+
success: true,
|
|
15491
|
+
data: input
|
|
15492
|
+
};
|
|
15493
|
+
}; })()(input);
|
|
15494
|
+
}
|
|
15495
|
+
case ":event.duration?": {
|
|
15496
|
+
return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.scheduled || "number" === typeof input.scheduled) && (undefined === input.actual || "number" === typeof input.actual) && (undefined === input["in"] || "number" === typeof input["in"]) && (null === input.out || undefined === input.out || "number" === typeof input.out) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
15497
|
+
if (["scheduled", "actual", "in", "out"].some(prop => key === prop))
|
|
15498
|
+
return true;
|
|
15499
|
+
const value = input[key];
|
|
15500
|
+
if (undefined === value)
|
|
15501
|
+
return true;
|
|
15502
|
+
return false;
|
|
15503
|
+
})); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.scheduled || "number" === typeof input.scheduled || _report(_exceptionable, {
|
|
15504
|
+
path: _path + ".scheduled",
|
|
15505
|
+
expected: "(number | undefined)",
|
|
15506
|
+
value: input.scheduled
|
|
15507
|
+
}), undefined === input.actual || "number" === typeof input.actual || _report(_exceptionable, {
|
|
15508
|
+
path: _path + ".actual",
|
|
15509
|
+
expected: "(number | undefined)",
|
|
15510
|
+
value: input.actual
|
|
15511
|
+
}), undefined === input["in"] || "number" === typeof input["in"] || _report(_exceptionable, {
|
|
15512
|
+
path: _path + "[\"in\"]",
|
|
15513
|
+
expected: "(number | undefined)",
|
|
15514
|
+
value: input["in"]
|
|
15515
|
+
}), null === input.out || undefined === input.out || "number" === typeof input.out || _report(_exceptionable, {
|
|
15516
|
+
path: _path + ".out",
|
|
15517
|
+
expected: "(null | number | undefined)",
|
|
15518
|
+
value: input.out
|
|
15519
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
15520
|
+
if (["scheduled", "actual", "in", "out"].some(prop => key === prop))
|
|
15521
|
+
return true;
|
|
15522
|
+
const value = input[key];
|
|
15523
|
+
if (undefined === value)
|
|
15524
|
+
return true;
|
|
15525
|
+
return _report(_exceptionable, {
|
|
15526
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
15527
|
+
expected: "undefined",
|
|
15528
|
+
value: value,
|
|
15529
|
+
description: [
|
|
15530
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
15531
|
+
"",
|
|
15532
|
+
"Please remove the property next time."
|
|
15533
|
+
].join("\n")
|
|
15534
|
+
});
|
|
15535
|
+
}).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 => {
|
|
15536
|
+
if (false === __is(input)) {
|
|
15537
|
+
errors = [];
|
|
15538
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
15539
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
15540
|
+
path: _path + "",
|
|
15541
|
+
expected: "EventDurationRecord",
|
|
15542
|
+
value: input
|
|
15543
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
15544
|
+
path: _path + "",
|
|
15545
|
+
expected: "EventDurationRecord",
|
|
15546
|
+
value: input
|
|
15547
|
+
}))(input, "$input", true);
|
|
15548
|
+
const success = 0 === errors.length;
|
|
15549
|
+
return success ? {
|
|
15550
|
+
success,
|
|
15551
|
+
data: input
|
|
15552
|
+
} : {
|
|
15553
|
+
success,
|
|
15554
|
+
errors,
|
|
15555
|
+
data: input
|
|
15556
|
+
};
|
|
15557
|
+
}
|
|
15558
|
+
return {
|
|
15559
|
+
success: true,
|
|
15560
|
+
data: input
|
|
15561
|
+
};
|
|
15562
|
+
}; })()(input);
|
|
15563
|
+
}
|
|
15564
|
+
case ":event.children?": {
|
|
15565
|
+
return (() => { const _io0 = (input, _exceptionable = true) => Array.isArray(input.value) && input.value.every((elem, _index1) => "string" === typeof elem) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
15566
|
+
if (["value"].some(prop => key === prop))
|
|
15567
|
+
return true;
|
|
15568
|
+
const value = input[key];
|
|
15569
|
+
if (undefined === value)
|
|
15570
|
+
return true;
|
|
15571
|
+
return false;
|
|
15572
|
+
})); const _vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.value) || _report(_exceptionable, {
|
|
15573
|
+
path: _path + ".value",
|
|
15574
|
+
expected: "Array<string>",
|
|
15575
|
+
value: input.value
|
|
15576
|
+
})) && input.value.map((elem, _index2) => "string" === typeof elem || _report(_exceptionable, {
|
|
15577
|
+
path: _path + ".value[" + _index2 + "]",
|
|
15578
|
+
expected: "string",
|
|
15579
|
+
value: elem
|
|
15580
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
15581
|
+
path: _path + ".value",
|
|
15582
|
+
expected: "Array<string>",
|
|
15583
|
+
value: input.value
|
|
15584
|
+
}), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
15585
|
+
if (["value"].some(prop => key === prop))
|
|
15586
|
+
return true;
|
|
15587
|
+
const value = input[key];
|
|
15588
|
+
if (undefined === value)
|
|
15589
|
+
return true;
|
|
15590
|
+
return _report(_exceptionable, {
|
|
15591
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
15592
|
+
expected: "undefined",
|
|
15593
|
+
value: value,
|
|
15594
|
+
description: [
|
|
15595
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
15596
|
+
"",
|
|
15597
|
+
"Please remove the property next time."
|
|
15598
|
+
].join("\n")
|
|
15599
|
+
});
|
|
15600
|
+
}).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 => {
|
|
15601
|
+
if (false === __is(input)) {
|
|
15602
|
+
errors = [];
|
|
15603
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
15604
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
15605
|
+
path: _path + "",
|
|
15606
|
+
expected: "EventChildrenRecord",
|
|
15607
|
+
value: input
|
|
15608
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
15609
|
+
path: _path + "",
|
|
15610
|
+
expected: "EventChildrenRecord",
|
|
15611
|
+
value: input
|
|
15612
|
+
}))(input, "$input", true);
|
|
15613
|
+
const success = 0 === errors.length;
|
|
15614
|
+
return success ? {
|
|
15615
|
+
success,
|
|
15616
|
+
data: input
|
|
15617
|
+
} : {
|
|
15618
|
+
success,
|
|
15619
|
+
errors,
|
|
15620
|
+
data: input
|
|
15621
|
+
};
|
|
15622
|
+
}
|
|
15623
|
+
return {
|
|
15624
|
+
success: true,
|
|
15625
|
+
data: input
|
|
15626
|
+
};
|
|
15627
|
+
}; })()(input);
|
|
15628
|
+
}
|
|
15629
|
+
case ":event.props?": {
|
|
15630
|
+
return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.source || "string" === typeof input.source) && (undefined === input.cueCard || "string" === typeof input.cueCard || "boolean" === typeof input.cueCard) && (undefined === input.printRundownColor || "string" === typeof input.printRundownColor) && (undefined === input.startTime || "number" === typeof input.startTime) && (null !== input.shotboxGroup && (undefined === input.shotboxGroup || "string" === typeof input.shotboxGroup || Array.isArray(input.shotboxGroup) && input.shotboxGroup.every((elem, _index1) => "string" === typeof elem))) && (undefined === input.shotboxVisible || "boolean" === typeof input.shotboxVisible) && Object.keys(input).every(key => {
|
|
15631
|
+
if (["source", "cueCard", "printRundownColor", "startTime", "shotboxGroup", "shotboxVisible"].some(prop => key === prop))
|
|
15632
|
+
return true;
|
|
15633
|
+
const value = input[key];
|
|
15634
|
+
if (undefined === value)
|
|
15635
|
+
return true;
|
|
15636
|
+
return undefined !== value && (null === value || "string" === typeof value || "number" === typeof value || "boolean" === typeof value || (Array.isArray(value) && (_ia0(value, true && _exceptionable) || false) || "object" === typeof value && null !== value && false === Array.isArray(value) && _io1(value, true && _exceptionable)));
|
|
15637
|
+
}); const _io1 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
15638
|
+
const value = input[key];
|
|
15639
|
+
if (undefined === value)
|
|
15640
|
+
return true;
|
|
15641
|
+
return undefined !== value && (null === value || "string" === typeof value || "number" === typeof value || "boolean" === typeof value || (Array.isArray(value) && (_ia0(value, true && _exceptionable) || false) || "object" === typeof value && null !== value && false === Array.isArray(value) && _io1(value, true && _exceptionable)));
|
|
15642
|
+
}); const _ia0 = (input, _exceptionable = true) => input.every((elem, _index2) => undefined !== elem && (null === elem || "string" === typeof elem || "number" === typeof elem || "boolean" === typeof elem || (Array.isArray(elem) && (_ia0(elem, true && _exceptionable) || false) || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io1(elem, true && _exceptionable)))); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.source || "string" === typeof input.source || _report(_exceptionable, {
|
|
15643
|
+
path: _path + ".source",
|
|
15644
|
+
expected: "(string | undefined)",
|
|
15645
|
+
value: input.source
|
|
15646
|
+
}), undefined === input.cueCard || "string" === typeof input.cueCard || "boolean" === typeof input.cueCard || _report(_exceptionable, {
|
|
15647
|
+
path: _path + ".cueCard",
|
|
15648
|
+
expected: "(boolean | string | undefined)",
|
|
15649
|
+
value: input.cueCard
|
|
15650
|
+
}), undefined === input.printRundownColor || "string" === typeof input.printRundownColor || _report(_exceptionable, {
|
|
15651
|
+
path: _path + ".printRundownColor",
|
|
15652
|
+
expected: "(string | undefined)",
|
|
15653
|
+
value: input.printRundownColor
|
|
15654
|
+
}), undefined === input.startTime || "number" === typeof input.startTime || _report(_exceptionable, {
|
|
15655
|
+
path: _path + ".startTime",
|
|
15656
|
+
expected: "(number | undefined)",
|
|
15657
|
+
value: input.startTime
|
|
15658
|
+
}), (null !== input.shotboxGroup || _report(_exceptionable, {
|
|
15659
|
+
path: _path + ".shotboxGroup",
|
|
15660
|
+
expected: "(Array<string> | string | undefined)",
|
|
15661
|
+
value: input.shotboxGroup
|
|
15662
|
+
})) && (undefined === input.shotboxGroup || "string" === typeof input.shotboxGroup || (Array.isArray(input.shotboxGroup) || _report(_exceptionable, {
|
|
15663
|
+
path: _path + ".shotboxGroup",
|
|
15664
|
+
expected: "(Array<string> | string | undefined)",
|
|
15665
|
+
value: input.shotboxGroup
|
|
15666
|
+
})) && input.shotboxGroup.map((elem, _index3) => "string" === typeof elem || _report(_exceptionable, {
|
|
15667
|
+
path: _path + ".shotboxGroup[" + _index3 + "]",
|
|
15668
|
+
expected: "string",
|
|
15669
|
+
value: elem
|
|
15670
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
15671
|
+
path: _path + ".shotboxGroup",
|
|
15672
|
+
expected: "(Array<string> | string | undefined)",
|
|
15673
|
+
value: input.shotboxGroup
|
|
15674
|
+
})), undefined === input.shotboxVisible || "boolean" === typeof input.shotboxVisible || _report(_exceptionable, {
|
|
15675
|
+
path: _path + ".shotboxVisible",
|
|
15676
|
+
expected: "(boolean | undefined)",
|
|
15677
|
+
value: input.shotboxVisible
|
|
15678
|
+
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
15679
|
+
if (["source", "cueCard", "printRundownColor", "startTime", "shotboxGroup", "shotboxVisible"].some(prop => key === prop))
|
|
15680
|
+
return true;
|
|
15681
|
+
const value = input[key];
|
|
15682
|
+
if (undefined === value)
|
|
15683
|
+
return true;
|
|
15684
|
+
return (undefined !== value || _report(_exceptionable, {
|
|
15685
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
15686
|
+
expected: "(Array<JsonValue> | __type | boolean | null | number | string)",
|
|
13974
15687
|
value: value
|
|
13975
15688
|
})) && (null === value || "string" === typeof value || "number" === typeof value || "boolean" === typeof value || (Array.isArray(value) && (_va0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
13976
15689
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
13977
15690
|
expected: "Array<JsonValue>",
|
|
13978
15691
|
value: value
|
|
13979
|
-
})) || "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
15692
|
+
})) || "object" === typeof value && null !== value && false === Array.isArray(value) && _vo1(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
13980
15693
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
13981
|
-
expected: "(Array<JsonValue> | __type
|
|
15694
|
+
expected: "(Array<JsonValue> | __type | boolean | null | number | string)",
|
|
13982
15695
|
value: value
|
|
13983
15696
|
})) || _report(_exceptionable, {
|
|
13984
15697
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
13985
|
-
expected: "(Array<JsonValue> | __type
|
|
15698
|
+
expected: "(Array<JsonValue> | __type | boolean | null | number | string)",
|
|
13986
15699
|
value: value
|
|
13987
15700
|
}));
|
|
13988
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
15701
|
+
}).every(flag => flag)].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
13989
15702
|
const value = input[key];
|
|
13990
15703
|
if (undefined === value)
|
|
13991
15704
|
return true;
|
|
13992
15705
|
return (undefined !== value || _report(_exceptionable, {
|
|
13993
15706
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
13994
|
-
expected: "(Array<JsonValue> | __type
|
|
15707
|
+
expected: "(Array<JsonValue> | __type | boolean | null | number | string)",
|
|
13995
15708
|
value: value
|
|
13996
15709
|
})) && (null === value || "string" === typeof value || "number" === typeof value || "boolean" === typeof value || (Array.isArray(value) && (_va0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
13997
15710
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
13998
15711
|
expected: "Array<JsonValue>",
|
|
13999
15712
|
value: value
|
|
14000
|
-
})) || "object" === typeof value && null !== value && false === Array.isArray(value) &&
|
|
15713
|
+
})) || "object" === typeof value && null !== value && false === Array.isArray(value) && _vo1(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
14001
15714
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14002
|
-
expected: "(Array<JsonValue> | __type
|
|
15715
|
+
expected: "(Array<JsonValue> | __type | boolean | null | number | string)",
|
|
14003
15716
|
value: value
|
|
14004
15717
|
})) || _report(_exceptionable, {
|
|
14005
15718
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14006
|
-
expected: "(Array<JsonValue> | __type
|
|
15719
|
+
expected: "(Array<JsonValue> | __type | boolean | null | number | string)",
|
|
14007
15720
|
value: value
|
|
14008
15721
|
}));
|
|
14009
15722
|
}).every(flag => flag)].every(flag => flag); const _va0 = (input, _path, _exceptionable = true) => input.map((elem, _index4) => (undefined !== elem || _report(_exceptionable, {
|
|
14010
15723
|
path: _path + "[" + _index4 + "]",
|
|
14011
|
-
expected: "(Array<JsonValue> | __type
|
|
15724
|
+
expected: "(Array<JsonValue> | __type | boolean | null | number | string)",
|
|
14012
15725
|
value: elem
|
|
14013
15726
|
})) && (null === elem || "string" === typeof elem || "number" === typeof elem || "boolean" === typeof elem || (Array.isArray(elem) && (_va0(elem, _path + "[" + _index4 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
14014
15727
|
path: _path + "[" + _index4 + "]",
|
|
14015
15728
|
expected: "Array<JsonValue>",
|
|
14016
15729
|
value: elem
|
|
14017
|
-
})) || "object" === typeof elem && null !== elem && false === Array.isArray(elem) &&
|
|
15730
|
+
})) || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _vo1(elem, _path + "[" + _index4 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
14018
15731
|
path: _path + "[" + _index4 + "]",
|
|
14019
|
-
expected: "(Array<JsonValue> | __type
|
|
15732
|
+
expected: "(Array<JsonValue> | __type | boolean | null | number | string)",
|
|
14020
15733
|
value: elem
|
|
14021
15734
|
})) || _report(_exceptionable, {
|
|
14022
15735
|
path: _path + "[" + _index4 + "]",
|
|
14023
|
-
expected: "(Array<JsonValue> | __type
|
|
15736
|
+
expected: "(Array<JsonValue> | __type | boolean | null | number | string)",
|
|
14024
15737
|
value: elem
|
|
14025
15738
|
}))).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 => {
|
|
14026
15739
|
if (false === __is(input)) {
|
|
@@ -14028,11 +15741,11 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
14028
15741
|
_report = __typia_transform__validateReport._validateReport(errors);
|
|
14029
15742
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
14030
15743
|
path: _path + "",
|
|
14031
|
-
expected: "
|
|
15744
|
+
expected: "EventPropsRecord",
|
|
14032
15745
|
value: input
|
|
14033
15746
|
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
14034
15747
|
path: _path + "",
|
|
14035
|
-
expected: "
|
|
15748
|
+
expected: "EventPropsRecord",
|
|
14036
15749
|
value: input
|
|
14037
15750
|
}))(input, "$input", true);
|
|
14038
15751
|
const success = 0 === errors.length;
|
|
@@ -14051,94 +15764,20 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
14051
15764
|
};
|
|
14052
15765
|
}; })()(input);
|
|
14053
15766
|
}
|
|
14054
|
-
case ":event.
|
|
14055
|
-
return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.
|
|
14056
|
-
if (["
|
|
14057
|
-
return true;
|
|
14058
|
-
const value = input[key];
|
|
14059
|
-
if (undefined === value)
|
|
14060
|
-
return true;
|
|
14061
|
-
return false;
|
|
14062
|
-
})); const _io1 = (input, _exceptionable = true) => 0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
14063
|
-
const value = input[key];
|
|
14064
|
-
if (undefined === value)
|
|
14065
|
-
return true;
|
|
14066
|
-
return false;
|
|
14067
|
-
}); const _io2 = (input, _exceptionable = true) => (undefined === input.title || "string" === typeof input.title) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
14068
|
-
if (["title"].some(prop => key === prop))
|
|
15767
|
+
case ":event.stats?": {
|
|
15768
|
+
return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
15769
|
+
if (["type"].some(prop => key === prop))
|
|
14069
15770
|
return true;
|
|
14070
15771
|
const value = input[key];
|
|
14071
15772
|
if (undefined === value)
|
|
14072
15773
|
return true;
|
|
14073
15774
|
return false;
|
|
14074
|
-
})); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.
|
|
14075
|
-
path: _path + ".
|
|
14076
|
-
expected: "(Array<string> | undefined)",
|
|
14077
|
-
value: input.mixin
|
|
14078
|
-
})) && input.mixin.map((elem, _index2) => "string" === typeof elem || _report(_exceptionable, {
|
|
14079
|
-
path: _path + ".mixin[" + _index2 + "]",
|
|
14080
|
-
expected: "string",
|
|
14081
|
-
value: elem
|
|
14082
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
14083
|
-
path: _path + ".mixin",
|
|
14084
|
-
expected: "(Array<string> | undefined)",
|
|
14085
|
-
value: input.mixin
|
|
14086
|
-
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
14087
|
-
path: _path + ".properties",
|
|
14088
|
-
expected: "(object | undefined)",
|
|
14089
|
-
value: input.properties
|
|
14090
|
-
})) && _vo1(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
14091
|
-
path: _path + ".properties",
|
|
14092
|
-
expected: "(object | undefined)",
|
|
14093
|
-
value: input.properties
|
|
14094
|
-
}), undefined === input.layout || ("object" === typeof input.layout && null !== input.layout && false === Array.isArray(input.layout) || _report(_exceptionable, {
|
|
14095
|
-
path: _path + ".layout",
|
|
14096
|
-
expected: "(__type | undefined)",
|
|
14097
|
-
value: input.layout
|
|
14098
|
-
})) && _vo2(input.layout, _path + ".layout", true && _exceptionable) || _report(_exceptionable, {
|
|
14099
|
-
path: _path + ".layout",
|
|
14100
|
-
expected: "(__type | undefined)",
|
|
14101
|
-
value: input.layout
|
|
14102
|
-
}), undefined === input.controller || "string" === typeof input.controller || _report(_exceptionable, {
|
|
14103
|
-
path: _path + ".controller",
|
|
14104
|
-
expected: "(string | undefined)",
|
|
14105
|
-
value: input.controller
|
|
14106
|
-
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
14107
|
-
if (["mixin", "properties", "layout", "controller"].some(prop => key === prop))
|
|
14108
|
-
return true;
|
|
14109
|
-
const value = input[key];
|
|
14110
|
-
if (undefined === value)
|
|
14111
|
-
return true;
|
|
14112
|
-
return _report(_exceptionable, {
|
|
14113
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14114
|
-
expected: "undefined",
|
|
14115
|
-
value: value,
|
|
14116
|
-
description: [
|
|
14117
|
-
`The property \`${key}\` is not defined in the object type.`,
|
|
14118
|
-
"",
|
|
14119
|
-
"Please remove the property next time."
|
|
14120
|
-
].join("\n")
|
|
14121
|
-
});
|
|
14122
|
-
}).every(flag => flag))].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
14123
|
-
const value = input[key];
|
|
14124
|
-
if (undefined === value)
|
|
14125
|
-
return true;
|
|
14126
|
-
return _report(_exceptionable, {
|
|
14127
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14128
|
-
expected: "undefined",
|
|
14129
|
-
value: value,
|
|
14130
|
-
description: [
|
|
14131
|
-
`The property \`${key}\` is not defined in the object type.`,
|
|
14132
|
-
"",
|
|
14133
|
-
"Please remove the property next time."
|
|
14134
|
-
].join("\n")
|
|
14135
|
-
});
|
|
14136
|
-
}).every(flag => flag))].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => [undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
14137
|
-
path: _path + ".title",
|
|
15775
|
+
})); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.type || "string" === typeof input.type || _report(_exceptionable, {
|
|
15776
|
+
path: _path + ".type",
|
|
14138
15777
|
expected: "(string | undefined)",
|
|
14139
|
-
value: input.
|
|
15778
|
+
value: input.type
|
|
14140
15779
|
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
14141
|
-
if (["
|
|
15780
|
+
if (["type"].some(prop => key === prop))
|
|
14142
15781
|
return true;
|
|
14143
15782
|
const value = input[key];
|
|
14144
15783
|
if (undefined === value)
|
|
@@ -14159,11 +15798,11 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
14159
15798
|
_report = __typia_transform__validateReport._validateReport(errors);
|
|
14160
15799
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
14161
15800
|
path: _path + "",
|
|
14162
|
-
expected: "
|
|
15801
|
+
expected: "EventStatsRecord",
|
|
14163
15802
|
value: input
|
|
14164
15803
|
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
14165
15804
|
path: _path + "",
|
|
14166
|
-
expected: "
|
|
15805
|
+
expected: "EventStatsRecord",
|
|
14167
15806
|
value: input
|
|
14168
15807
|
}))(input, "$input", true);
|
|
14169
15808
|
const success = 0 === errors.length;
|
|
@@ -14182,32 +15821,46 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
14182
15821
|
};
|
|
14183
15822
|
}; })()(input);
|
|
14184
15823
|
}
|
|
14185
|
-
case ":event.
|
|
14186
|
-
return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.
|
|
14187
|
-
if (["
|
|
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))
|
|
14188
15827
|
return true;
|
|
14189
15828
|
const value = input[key];
|
|
14190
15829
|
if (undefined === value)
|
|
14191
15830
|
return true;
|
|
14192
15831
|
return false;
|
|
14193
|
-
})); const
|
|
14194
|
-
|
|
14195
|
-
|
|
14196
|
-
|
|
14197
|
-
|
|
14198
|
-
|
|
14199
|
-
|
|
14200
|
-
|
|
14201
|
-
|
|
14202
|
-
|
|
14203
|
-
|
|
14204
|
-
|
|
14205
|
-
|
|
14206
|
-
|
|
14207
|
-
|
|
14208
|
-
|
|
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
|
|
14209
15862
|
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
14210
|
-
if (["
|
|
15863
|
+
if (["messages"].some(prop => key === prop))
|
|
14211
15864
|
return true;
|
|
14212
15865
|
const value = input[key];
|
|
14213
15866
|
if (undefined === value)
|
|
@@ -14222,57 +15875,40 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
14222
15875
|
"Please remove the property next time."
|
|
14223
15876
|
].join("\n")
|
|
14224
15877
|
});
|
|
14225
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
14226
|
-
|
|
14227
|
-
errors = [];
|
|
14228
|
-
_report = __typia_transform__validateReport._validateReport(errors);
|
|
14229
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
14230
|
-
path: _path + "",
|
|
14231
|
-
expected: "EventDurationRecord",
|
|
14232
|
-
value: input
|
|
14233
|
-
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
14234
|
-
path: _path + "",
|
|
14235
|
-
expected: "EventDurationRecord",
|
|
14236
|
-
value: input
|
|
14237
|
-
}))(input, "$input", true);
|
|
14238
|
-
const success = 0 === errors.length;
|
|
14239
|
-
return success ? {
|
|
14240
|
-
success,
|
|
14241
|
-
data: input
|
|
14242
|
-
} : {
|
|
14243
|
-
success,
|
|
14244
|
-
errors,
|
|
14245
|
-
data: input
|
|
14246
|
-
};
|
|
14247
|
-
}
|
|
14248
|
-
return {
|
|
14249
|
-
success: true,
|
|
14250
|
-
data: input
|
|
14251
|
-
};
|
|
14252
|
-
}; })()(input);
|
|
14253
|
-
}
|
|
14254
|
-
case ":event.children?": {
|
|
14255
|
-
return (() => { const _io0 = (input, _exceptionable = true) => Array.isArray(input.value) && input.value.every((elem, _index1) => "string" === typeof elem) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
14256
|
-
if (["value"].some(prop => key === prop))
|
|
14257
|
-
return true;
|
|
14258
|
-
const value = input[key];
|
|
14259
|
-
if (undefined === value)
|
|
14260
|
-
return true;
|
|
14261
|
-
return false;
|
|
14262
|
-
})); const _vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.value) || _report(_exceptionable, {
|
|
14263
|
-
path: _path + ".value",
|
|
14264
|
-
expected: "Array<string>",
|
|
14265
|
-
value: input.value
|
|
14266
|
-
})) && input.value.map((elem, _index2) => "string" === typeof elem || _report(_exceptionable, {
|
|
14267
|
-
path: _path + ".value[" + _index2 + "]",
|
|
15878
|
+
}).every(flag => flag))].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
|
|
15879
|
+
path: _path + ".id",
|
|
14268
15880
|
expected: "string",
|
|
14269
|
-
value:
|
|
14270
|
-
})
|
|
14271
|
-
path: _path + ".
|
|
14272
|
-
expected: "
|
|
14273
|
-
value: input.
|
|
14274
|
-
}),
|
|
14275
|
-
|
|
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))
|
|
14276
15912
|
return true;
|
|
14277
15913
|
const value = input[key];
|
|
14278
15914
|
if (undefined === value)
|
|
@@ -14287,155 +15923,37 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
14287
15923
|
"Please remove the property next time."
|
|
14288
15924
|
].join("\n")
|
|
14289
15925
|
});
|
|
14290
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
14291
|
-
|
|
14292
|
-
|
|
14293
|
-
|
|
14294
|
-
|
|
14295
|
-
|
|
14296
|
-
expected: "EventChildrenRecord",
|
|
14297
|
-
value: input
|
|
14298
|
-
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
14299
|
-
path: _path + "",
|
|
14300
|
-
expected: "EventChildrenRecord",
|
|
14301
|
-
value: input
|
|
14302
|
-
}))(input, "$input", true);
|
|
14303
|
-
const success = 0 === errors.length;
|
|
14304
|
-
return success ? {
|
|
14305
|
-
success,
|
|
14306
|
-
data: input
|
|
14307
|
-
} : {
|
|
14308
|
-
success,
|
|
14309
|
-
errors,
|
|
14310
|
-
data: input
|
|
14311
|
-
};
|
|
14312
|
-
}
|
|
14313
|
-
return {
|
|
14314
|
-
success: true,
|
|
14315
|
-
data: input
|
|
14316
|
-
};
|
|
14317
|
-
}; })()(input);
|
|
14318
|
-
}
|
|
14319
|
-
case ":event.props?": {
|
|
14320
|
-
return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.source || "string" === typeof input.source) && (undefined === input.cueCard || "string" === typeof input.cueCard || "boolean" === typeof input.cueCard) && (undefined === input.printRundownColor || "string" === typeof input.printRundownColor) && (undefined === input.startTime || "number" === typeof input.startTime) && (null !== input.shotboxGroup && (undefined === input.shotboxGroup || "string" === typeof input.shotboxGroup || Array.isArray(input.shotboxGroup) && input.shotboxGroup.every((elem, _index1) => "string" === typeof elem))) && (undefined === input.shotboxVisible || "boolean" === typeof input.shotboxVisible) && Object.keys(input).every(key => {
|
|
14321
|
-
if (["source", "cueCard", "printRundownColor", "startTime", "shotboxGroup", "shotboxVisible"].some(prop => key === prop))
|
|
14322
|
-
return true;
|
|
14323
|
-
const value = input[key];
|
|
14324
|
-
if (undefined === value)
|
|
14325
|
-
return true;
|
|
14326
|
-
return undefined !== value && (null === value || "string" === typeof value || "number" === typeof value || "boolean" === typeof value || (Array.isArray(value) && (_ia0(value, true && _exceptionable) || false) || "object" === typeof value && null !== value && false === Array.isArray(value) && _io1(value, true && _exceptionable)));
|
|
14327
|
-
}); const _io1 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
14328
|
-
const value = input[key];
|
|
14329
|
-
if (undefined === value)
|
|
14330
|
-
return true;
|
|
14331
|
-
return undefined !== value && (null === value || "string" === typeof value || "number" === typeof value || "boolean" === typeof value || (Array.isArray(value) && (_ia0(value, true && _exceptionable) || false) || "object" === typeof value && null !== value && false === Array.isArray(value) && _io1(value, true && _exceptionable)));
|
|
14332
|
-
}); const _ia0 = (input, _exceptionable = true) => input.every((elem, _index2) => undefined !== elem && (null === elem || "string" === typeof elem || "number" === typeof elem || "boolean" === typeof elem || (Array.isArray(elem) && (_ia0(elem, true && _exceptionable) || false) || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io1(elem, true && _exceptionable)))); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.source || "string" === typeof input.source || _report(_exceptionable, {
|
|
14333
|
-
path: _path + ".source",
|
|
14334
|
-
expected: "(string | undefined)",
|
|
14335
|
-
value: input.source
|
|
14336
|
-
}), undefined === input.cueCard || "string" === typeof input.cueCard || "boolean" === typeof input.cueCard || _report(_exceptionable, {
|
|
14337
|
-
path: _path + ".cueCard",
|
|
14338
|
-
expected: "(boolean | string | undefined)",
|
|
14339
|
-
value: input.cueCard
|
|
14340
|
-
}), undefined === input.printRundownColor || "string" === typeof input.printRundownColor || _report(_exceptionable, {
|
|
14341
|
-
path: _path + ".printRundownColor",
|
|
14342
|
-
expected: "(string | undefined)",
|
|
14343
|
-
value: input.printRundownColor
|
|
14344
|
-
}), undefined === input.startTime || "number" === typeof input.startTime || _report(_exceptionable, {
|
|
14345
|
-
path: _path + ".startTime",
|
|
14346
|
-
expected: "(number | undefined)",
|
|
14347
|
-
value: input.startTime
|
|
14348
|
-
}), (null !== input.shotboxGroup || _report(_exceptionable, {
|
|
14349
|
-
path: _path + ".shotboxGroup",
|
|
14350
|
-
expected: "(Array<string> | string | undefined)",
|
|
14351
|
-
value: input.shotboxGroup
|
|
14352
|
-
})) && (undefined === input.shotboxGroup || "string" === typeof input.shotboxGroup || (Array.isArray(input.shotboxGroup) || _report(_exceptionable, {
|
|
14353
|
-
path: _path + ".shotboxGroup",
|
|
14354
|
-
expected: "(Array<string> | string | undefined)",
|
|
14355
|
-
value: input.shotboxGroup
|
|
14356
|
-
})) && input.shotboxGroup.map((elem, _index3) => "string" === typeof elem || _report(_exceptionable, {
|
|
14357
|
-
path: _path + ".shotboxGroup[" + _index3 + "]",
|
|
14358
|
-
expected: "string",
|
|
14359
|
-
value: elem
|
|
14360
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
14361
|
-
path: _path + ".shotboxGroup",
|
|
14362
|
-
expected: "(Array<string> | string | undefined)",
|
|
14363
|
-
value: input.shotboxGroup
|
|
14364
|
-
})), undefined === input.shotboxVisible || "boolean" === typeof input.shotboxVisible || _report(_exceptionable, {
|
|
14365
|
-
path: _path + ".shotboxVisible",
|
|
14366
|
-
expected: "(boolean | undefined)",
|
|
14367
|
-
value: input.shotboxVisible
|
|
14368
|
-
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
14369
|
-
if (["source", "cueCard", "printRundownColor", "startTime", "shotboxGroup", "shotboxVisible"].some(prop => key === prop))
|
|
14370
|
-
return true;
|
|
14371
|
-
const value = input[key];
|
|
14372
|
-
if (undefined === value)
|
|
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))
|
|
14373
15932
|
return true;
|
|
14374
|
-
return (undefined !== value || _report(_exceptionable, {
|
|
14375
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14376
|
-
expected: "(Array<JsonValue> | __type | boolean | null | number | string)",
|
|
14377
|
-
value: value
|
|
14378
|
-
})) && (null === value || "string" === typeof value || "number" === typeof value || "boolean" === typeof value || (Array.isArray(value) && (_va0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
14379
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14380
|
-
expected: "Array<JsonValue>",
|
|
14381
|
-
value: value
|
|
14382
|
-
})) || "object" === typeof value && null !== value && false === Array.isArray(value) && _vo1(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
14383
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14384
|
-
expected: "(Array<JsonValue> | __type | boolean | null | number | string)",
|
|
14385
|
-
value: value
|
|
14386
|
-
})) || _report(_exceptionable, {
|
|
14387
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14388
|
-
expected: "(Array<JsonValue> | __type | boolean | null | number | string)",
|
|
14389
|
-
value: value
|
|
14390
|
-
}));
|
|
14391
|
-
}).every(flag => flag)].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
14392
15933
|
const value = input[key];
|
|
14393
15934
|
if (undefined === value)
|
|
14394
15935
|
return true;
|
|
14395
|
-
return
|
|
14396
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14397
|
-
expected: "(Array<JsonValue> | __type | boolean | null | number | string)",
|
|
14398
|
-
value: value
|
|
14399
|
-
})) && (null === value || "string" === typeof value || "number" === typeof value || "boolean" === typeof value || (Array.isArray(value) && (_va0(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
14400
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14401
|
-
expected: "Array<JsonValue>",
|
|
14402
|
-
value: value
|
|
14403
|
-
})) || "object" === typeof value && null !== value && false === Array.isArray(value) && _vo1(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
14404
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14405
|
-
expected: "(Array<JsonValue> | __type | boolean | null | number | string)",
|
|
14406
|
-
value: value
|
|
14407
|
-
})) || _report(_exceptionable, {
|
|
15936
|
+
return _report(_exceptionable, {
|
|
14408
15937
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14409
|
-
expected: "
|
|
14410
|
-
value: value
|
|
14411
|
-
|
|
14412
|
-
|
|
14413
|
-
|
|
14414
|
-
|
|
14415
|
-
|
|
14416
|
-
|
|
14417
|
-
|
|
14418
|
-
expected: "Array<JsonValue>",
|
|
14419
|
-
value: elem
|
|
14420
|
-
})) || "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _vo1(elem, _path + "[" + _index4 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
14421
|
-
path: _path + "[" + _index4 + "]",
|
|
14422
|
-
expected: "(Array<JsonValue> | __type | boolean | null | number | string)",
|
|
14423
|
-
value: elem
|
|
14424
|
-
})) || _report(_exceptionable, {
|
|
14425
|
-
path: _path + "[" + _index4 + "]",
|
|
14426
|
-
expected: "(Array<JsonValue> | __type | boolean | null | number | string)",
|
|
14427
|
-
value: elem
|
|
14428
|
-
}))).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 => {
|
|
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 => {
|
|
14429
15947
|
if (false === __is(input)) {
|
|
14430
15948
|
errors = [];
|
|
14431
15949
|
_report = __typia_transform__validateReport._validateReport(errors);
|
|
14432
15950
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
14433
15951
|
path: _path + "",
|
|
14434
|
-
expected: "
|
|
15952
|
+
expected: "EventStatusRecord",
|
|
14435
15953
|
value: input
|
|
14436
15954
|
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
14437
15955
|
path: _path + "",
|
|
14438
|
-
expected: "
|
|
15956
|
+
expected: "EventStatusRecord",
|
|
14439
15957
|
value: input
|
|
14440
15958
|
}))(input, "$input", true);
|
|
14441
15959
|
const success = 0 === errors.length;
|
|
@@ -14454,20 +15972,36 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
14454
15972
|
};
|
|
14455
15973
|
}; })()(input);
|
|
14456
15974
|
}
|
|
14457
|
-
case ":event.
|
|
14458
|
-
return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.
|
|
14459
|
-
if (["
|
|
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))
|
|
14460
15978
|
return true;
|
|
14461
15979
|
const value = input[key];
|
|
14462
15980
|
if (undefined === value)
|
|
14463
15981
|
return true;
|
|
14464
15982
|
return false;
|
|
14465
|
-
})); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.
|
|
14466
|
-
path: _path + ".
|
|
14467
|
-
expected: "(
|
|
14468
|
-
value: input.
|
|
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
|
|
14469
16003
|
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
14470
|
-
if (["
|
|
16004
|
+
if (["startTime", "transition", "transitionTime", "transitionDuration", "endTime"].some(prop => key === prop))
|
|
14471
16005
|
return true;
|
|
14472
16006
|
const value = input[key];
|
|
14473
16007
|
if (undefined === value)
|
|
@@ -14488,11 +16022,11 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
14488
16022
|
_report = __typia_transform__validateReport._validateReport(errors);
|
|
14489
16023
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
14490
16024
|
path: _path + "",
|
|
14491
|
-
expected: "
|
|
16025
|
+
expected: "EventScheduleRecord",
|
|
14492
16026
|
value: input
|
|
14493
16027
|
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
14494
16028
|
path: _path + "",
|
|
14495
|
-
expected: "
|
|
16029
|
+
expected: "EventScheduleRecord",
|
|
14496
16030
|
value: input
|
|
14497
16031
|
}))(input, "$input", true);
|
|
14498
16032
|
const success = 0 === errors.length;
|
|
@@ -17535,6 +19069,63 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
17535
19069
|
};
|
|
17536
19070
|
}; })()(input);
|
|
17537
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
|
+
}
|
|
17538
19129
|
case ":media.consolidate": {
|
|
17539
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 => {
|
|
17540
19131
|
if (["source", "target", "preset", "error"].some(prop => key === prop))
|
|
@@ -18115,8 +19706,8 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
18115
19706
|
if (undefined === value)
|
|
18116
19707
|
return true;
|
|
18117
19708
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io1(value, true && _exceptionable);
|
|
18118
|
-
}); const _io1 = (input, _exceptionable = true) => (undefined === input.patch || Array.isArray(input.patch) && input.patch.every((elem, _index1) => "object" === typeof elem && null !== elem && _iu0(elem, true && _exceptionable))) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
18119
|
-
if (["patch"].some(prop => key === prop))
|
|
19709
|
+
}); const _io1 = (input, _exceptionable = true) => (undefined === input.patch || Array.isArray(input.patch) && input.patch.every((elem, _index1) => "object" === typeof elem && null !== elem && _iu0(elem, true && _exceptionable))) && (undefined === input.speakerLabels || "object" === typeof input.speakerLabels && null !== input.speakerLabels && false === Array.isArray(input.speakerLabels) && _io8(input.speakerLabels, true && _exceptionable)) && (undefined === input.speakerRemaps || "object" === typeof input.speakerRemaps && null !== input.speakerRemaps && false === Array.isArray(input.speakerRemaps) && _io9(input.speakerRemaps, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
19710
|
+
if (["patch", "speakerLabels", "speakerRemaps"].some(prop => key === prop))
|
|
18120
19711
|
return true;
|
|
18121
19712
|
const value = input[key];
|
|
18122
19713
|
if (undefined === value)
|
|
@@ -18164,7 +19755,17 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
18164
19755
|
if (undefined === value)
|
|
18165
19756
|
return true;
|
|
18166
19757
|
return false;
|
|
18167
|
-
})); const
|
|
19758
|
+
})); const _io8 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
19759
|
+
const value = input[key];
|
|
19760
|
+
if (undefined === value)
|
|
19761
|
+
return true;
|
|
19762
|
+
return "string" === typeof value;
|
|
19763
|
+
}); const _io9 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
19764
|
+
const value = input[key];
|
|
19765
|
+
if (undefined === value)
|
|
19766
|
+
return true;
|
|
19767
|
+
return "string" === typeof value;
|
|
19768
|
+
}); const _iu0 = (input, _exceptionable = true) => (() => {
|
|
18168
19769
|
if ("add" === input.op)
|
|
18169
19770
|
return _io2(input, true && _exceptionable);
|
|
18170
19771
|
else if ("remove" === input.op)
|
|
@@ -18208,8 +19809,24 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
18208
19809
|
path: _path + ".patch",
|
|
18209
19810
|
expected: "(Array<Operation> | undefined)",
|
|
18210
19811
|
value: input.patch
|
|
19812
|
+
}), undefined === input.speakerLabels || ("object" === typeof input.speakerLabels && null !== input.speakerLabels && false === Array.isArray(input.speakerLabels) || _report(_exceptionable, {
|
|
19813
|
+
path: _path + ".speakerLabels",
|
|
19814
|
+
expected: "(__type | undefined)",
|
|
19815
|
+
value: input.speakerLabels
|
|
19816
|
+
})) && _vo8(input.speakerLabels, _path + ".speakerLabels", true && _exceptionable) || _report(_exceptionable, {
|
|
19817
|
+
path: _path + ".speakerLabels",
|
|
19818
|
+
expected: "(__type | undefined)",
|
|
19819
|
+
value: input.speakerLabels
|
|
19820
|
+
}), undefined === input.speakerRemaps || ("object" === typeof input.speakerRemaps && null !== input.speakerRemaps && false === Array.isArray(input.speakerRemaps) || _report(_exceptionable, {
|
|
19821
|
+
path: _path + ".speakerRemaps",
|
|
19822
|
+
expected: "(__type.o1 | undefined)",
|
|
19823
|
+
value: input.speakerRemaps
|
|
19824
|
+
})) && _vo9(input.speakerRemaps, _path + ".speakerRemaps", true && _exceptionable) || _report(_exceptionable, {
|
|
19825
|
+
path: _path + ".speakerRemaps",
|
|
19826
|
+
expected: "(__type.o1 | undefined)",
|
|
19827
|
+
value: input.speakerRemaps
|
|
18211
19828
|
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
18212
|
-
if (["patch"].some(prop => key === prop))
|
|
19829
|
+
if (["patch", "speakerLabels", "speakerRemaps"].some(prop => key === prop))
|
|
18213
19830
|
return true;
|
|
18214
19831
|
const value = input[key];
|
|
18215
19832
|
if (undefined === value)
|
|
@@ -18376,7 +19993,25 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
18376
19993
|
"Please remove the property next time."
|
|
18377
19994
|
].join("\n")
|
|
18378
19995
|
});
|
|
18379
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
19996
|
+
}).every(flag => flag))].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
19997
|
+
const value = input[key];
|
|
19998
|
+
if (undefined === value)
|
|
19999
|
+
return true;
|
|
20000
|
+
return "string" === typeof value || _report(_exceptionable, {
|
|
20001
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
20002
|
+
expected: "string",
|
|
20003
|
+
value: value
|
|
20004
|
+
});
|
|
20005
|
+
}).every(flag => flag)].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
20006
|
+
const value = input[key];
|
|
20007
|
+
if (undefined === value)
|
|
20008
|
+
return true;
|
|
20009
|
+
return "string" === typeof value || _report(_exceptionable, {
|
|
20010
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
20011
|
+
expected: "string",
|
|
20012
|
+
value: value
|
|
20013
|
+
});
|
|
20014
|
+
}).every(flag => flag)].every(flag => flag); const _vu0 = (input, _path, _exceptionable = true) => (() => {
|
|
18380
20015
|
if ("add" === input.op)
|
|
18381
20016
|
return _vo2(input, _path, true && _exceptionable);
|
|
18382
20017
|
else if ("remove" === input.op)
|
|
@@ -19725,8 +21360,8 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
19725
21360
|
}; })()(input);
|
|
19726
21361
|
}
|
|
19727
21362
|
case ":monitor.stats?": {
|
|
19728
|
-
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)) && (
|
|
19729
|
-
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))
|
|
19730
21365
|
return true;
|
|
19731
21366
|
const value = input[key];
|
|
19732
21367
|
if (undefined === value)
|
|
@@ -19810,6 +21445,25 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
19810
21445
|
if (undefined === value)
|
|
19811
21446
|
return true;
|
|
19812
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;
|
|
19813
21467
|
})); const _vo0 = (input, _path, _exceptionable = true) => [true, ("object" === typeof input.proc && null !== input.proc || _report(_exceptionable, {
|
|
19814
21468
|
path: _path + ".proc",
|
|
19815
21469
|
expected: "MonitorStatsProcInfo",
|
|
@@ -19850,8 +21504,16 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
19850
21504
|
path: _path + "[\"var\"]",
|
|
19851
21505
|
expected: "__type.o5",
|
|
19852
21506
|
value: input["var"]
|
|
19853
|
-
}),
|
|
19854
|
-
|
|
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))
|
|
19855
21517
|
return true;
|
|
19856
21518
|
const value = input[key];
|
|
19857
21519
|
if (undefined === value)
|
|
@@ -19878,12 +21540,12 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
19878
21540
|
path: _path + ".cpus",
|
|
19879
21541
|
expected: "(Array<MonitorStatsProcInfoCpu> | undefined)",
|
|
19880
21542
|
value: input.cpus
|
|
19881
|
-
})) && input.cpus.map((elem,
|
|
19882
|
-
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 + "]",
|
|
19883
21545
|
expected: "MonitorStatsProcInfoCpu",
|
|
19884
21546
|
value: elem
|
|
19885
|
-
})) && _vo2(elem, _path + ".cpus[" +
|
|
19886
|
-
path: _path + ".cpus[" +
|
|
21547
|
+
})) && _vo2(elem, _path + ".cpus[" + _index11 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
21548
|
+
path: _path + ".cpus[" + _index11 + "]",
|
|
19887
21549
|
expected: "MonitorStatsProcInfoCpu",
|
|
19888
21550
|
value: elem
|
|
19889
21551
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -19898,8 +21560,8 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
19898
21560
|
path: _path + ".load",
|
|
19899
21561
|
expected: "(Array<number> | null)",
|
|
19900
21562
|
value: input.load
|
|
19901
|
-
})) && input.load.map((elem,
|
|
19902
|
-
path: _path + ".load[" +
|
|
21563
|
+
})) && input.load.map((elem, _index12) => "number" === typeof elem || _report(_exceptionable, {
|
|
21564
|
+
path: _path + ".load[" + _index12 + "]",
|
|
19903
21565
|
expected: "number",
|
|
19904
21566
|
value: elem
|
|
19905
21567
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -19910,8 +21572,8 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
19910
21572
|
path: _path + ".interrupts",
|
|
19911
21573
|
expected: "(Array<number> | null | undefined)",
|
|
19912
21574
|
value: input.interrupts
|
|
19913
|
-
})) && input.interrupts.map((elem,
|
|
19914
|
-
path: _path + ".interrupts[" +
|
|
21575
|
+
})) && input.interrupts.map((elem, _index13) => "number" === typeof elem || _report(_exceptionable, {
|
|
21576
|
+
path: _path + ".interrupts[" + _index13 + "]",
|
|
19915
21577
|
expected: "number",
|
|
19916
21578
|
value: elem
|
|
19917
21579
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -19987,8 +21649,8 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
19987
21649
|
path: _path + ".normal",
|
|
19988
21650
|
expected: "(Array<number> | undefined)",
|
|
19989
21651
|
value: input.normal
|
|
19990
|
-
})) && input.normal.map((elem,
|
|
19991
|
-
path: _path + ".normal[" +
|
|
21652
|
+
})) && input.normal.map((elem, _index14) => "number" === typeof elem || _report(_exceptionable, {
|
|
21653
|
+
path: _path + ".normal[" + _index14 + "]",
|
|
19992
21654
|
expected: "number",
|
|
19993
21655
|
value: elem
|
|
19994
21656
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -19999,8 +21661,8 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
19999
21661
|
path: _path + ".high",
|
|
20000
21662
|
expected: "(Array<number> | undefined)",
|
|
20001
21663
|
value: input.high
|
|
20002
|
-
})) && input.high.map((elem,
|
|
20003
|
-
path: _path + ".high[" +
|
|
21664
|
+
})) && input.high.map((elem, _index15) => "number" === typeof elem || _report(_exceptionable, {
|
|
21665
|
+
path: _path + ".high[" + _index15 + "]",
|
|
20004
21666
|
expected: "number",
|
|
20005
21667
|
value: elem
|
|
20006
21668
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -20056,12 +21718,12 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
20056
21718
|
path: _path + ".bonding",
|
|
20057
21719
|
expected: "Array<NetworkInterfaceInfo & { [key: string]: unknown; slaves: string[]; name: string; }>",
|
|
20058
21720
|
value: input.bonding
|
|
20059
|
-
})) && input.bonding.map((elem,
|
|
20060
|
-
path: _path + ".bonding[" +
|
|
21721
|
+
})) && input.bonding.map((elem, _index16) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
21722
|
+
path: _path + ".bonding[" + _index16 + "]",
|
|
20061
21723
|
expected: "NetworkInterfaceInfo & { [key: string]: unknown; slaves: string[]; name: string; }",
|
|
20062
21724
|
value: elem
|
|
20063
|
-
})) && _vo10(elem, _path + ".bonding[" +
|
|
20064
|
-
path: _path + ".bonding[" +
|
|
21725
|
+
})) && _vo10(elem, _path + ".bonding[" + _index16 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
21726
|
+
path: _path + ".bonding[" + _index16 + "]",
|
|
20065
21727
|
expected: "NetworkInterfaceInfo & { [key: string]: unknown; slaves: string[]; name: string; }",
|
|
20066
21728
|
value: elem
|
|
20067
21729
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -20072,12 +21734,12 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
20072
21734
|
path: _path + ".eth",
|
|
20073
21735
|
expected: "Array<NetworkInterfaceInfo & { [key: string]: unknown; speed?: number | undefined; rxUnicastBytes?: number | undefined; rxMulticastBytes?: number | undefined; rxBroadcastBytes?: number | undefined; }>",
|
|
20074
21736
|
value: input.eth
|
|
20075
|
-
})) && input.eth.map((elem,
|
|
20076
|
-
path: _path + ".eth[" +
|
|
21737
|
+
})) && input.eth.map((elem, _index17) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
21738
|
+
path: _path + ".eth[" + _index17 + "]",
|
|
20077
21739
|
expected: "NetworkInterfaceInfo & { [key: string]: unknown; speed?: number | undefined; rxUnicastBytes?: number | undefined; rxMulticastBytes?: number | undefined; rxBroadcastBytes?: number | undefined; }",
|
|
20078
21740
|
value: elem
|
|
20079
|
-
})) && _vo11(elem, _path + ".eth[" +
|
|
20080
|
-
path: _path + ".eth[" +
|
|
21741
|
+
})) && _vo11(elem, _path + ".eth[" + _index17 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
21742
|
+
path: _path + ".eth[" + _index17 + "]",
|
|
20081
21743
|
expected: "NetworkInterfaceInfo & { [key: string]: unknown; speed?: number | undefined; rxUnicastBytes?: number | undefined; rxMulticastBytes?: number | undefined; rxBroadcastBytes?: number | undefined; }",
|
|
20082
21744
|
value: elem
|
|
20083
21745
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -20136,12 +21798,12 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
20136
21798
|
path: _path + ".cpus",
|
|
20137
21799
|
expected: "Array<__type>",
|
|
20138
21800
|
value: input.cpus
|
|
20139
|
-
})) && input.cpus.map((elem,
|
|
20140
|
-
path: _path + ".cpus[" +
|
|
21801
|
+
})) && input.cpus.map((elem, _index18) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
21802
|
+
path: _path + ".cpus[" + _index18 + "]",
|
|
20141
21803
|
expected: "__type.o1",
|
|
20142
21804
|
value: elem
|
|
20143
|
-
})) && _vo7(elem, _path + ".cpus[" +
|
|
20144
|
-
path: _path + ".cpus[" +
|
|
21805
|
+
})) && _vo7(elem, _path + ".cpus[" + _index18 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
21806
|
+
path: _path + ".cpus[" + _index18 + "]",
|
|
20145
21807
|
expected: "__type.o1",
|
|
20146
21808
|
value: elem
|
|
20147
21809
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -20393,8 +22055,8 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
20393
22055
|
path: _path + ".slaves",
|
|
20394
22056
|
expected: "Array<string>",
|
|
20395
22057
|
value: input.slaves
|
|
20396
|
-
})) && input.slaves.map((elem,
|
|
20397
|
-
path: _path + ".slaves[" +
|
|
22058
|
+
})) && input.slaves.map((elem, _index19) => "string" === typeof elem || _report(_exceptionable, {
|
|
22059
|
+
path: _path + ".slaves[" + _index19 + "]",
|
|
20398
22060
|
expected: "string",
|
|
20399
22061
|
value: elem
|
|
20400
22062
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
@@ -20579,6 +22241,95 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
20579
22241
|
"Please remove the property next time."
|
|
20580
22242
|
].join("\n")
|
|
20581
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
|
+
});
|
|
20582
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 => {
|
|
20583
22334
|
if (false === __is(input)) {
|
|
20584
22335
|
errors = [];
|
|
@@ -34225,8 +35976,8 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
34225
35976
|
if (undefined === value)
|
|
34226
35977
|
return true;
|
|
34227
35978
|
return false;
|
|
34228
|
-
})); 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 => {
|
|
34229
|
-
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))
|
|
34230
35981
|
return true;
|
|
34231
35982
|
const value = input[key];
|
|
34232
35983
|
if (undefined === value)
|
|
@@ -34324,8 +36075,8 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
34324
36075
|
if (undefined === value)
|
|
34325
36076
|
return true;
|
|
34326
36077
|
return false;
|
|
34327
|
-
})); const _io46 = (input, _exceptionable = true) => (undefined === input.subtitleDisclaimer || "object" === typeof input.subtitleDisclaimer && null !== input.subtitleDisclaimer && false === Array.isArray(input.subtitleDisclaimer) && _io47(input.subtitleDisclaimer, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
34328
|
-
if (["subtitleDisclaimer"].some(prop => key === prop))
|
|
36078
|
+
})); const _io46 = (input, _exceptionable = true) => (undefined === input.showSpeakers || "boolean" === typeof input.showSpeakers) && (undefined === input.subtitleDisclaimer || "object" === typeof input.subtitleDisclaimer && null !== input.subtitleDisclaimer && false === Array.isArray(input.subtitleDisclaimer) && _io47(input.subtitleDisclaimer, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
36079
|
+
if (["showSpeakers", "subtitleDisclaimer"].some(prop => key === prop))
|
|
34329
36080
|
return true;
|
|
34330
36081
|
const value = input[key];
|
|
34331
36082
|
if (undefined === value)
|
|
@@ -34569,8 +36320,8 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
34569
36320
|
if (undefined === value)
|
|
34570
36321
|
return true;
|
|
34571
36322
|
return false;
|
|
34572
|
-
})); 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 => {
|
|
34573
|
-
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))
|
|
34574
36325
|
return true;
|
|
34575
36326
|
const value = input[key];
|
|
34576
36327
|
if (undefined === value)
|
|
@@ -36005,8 +37756,40 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
36005
37756
|
path: _path + ".scriptEventFolding",
|
|
36006
37757
|
expected: "(\"folded\" | \"unfoldedUntilFolded\")",
|
|
36007
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
|
|
36008
37791
|
}), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
36009
|
-
if (["eventThumbnails", "scriptEventFolding"].some(prop => key === prop))
|
|
37792
|
+
if (["eventThumbnails", "scriptEventFolding", "stickyHeaders", "triggersColumn", "density", "showEvents", "showTriggers", "showReferenceDuration", "showSettingsColumn", "thumbnailColumnWidth"].some(prop => key === prop))
|
|
36010
37793
|
return true;
|
|
36011
37794
|
const value = input[key];
|
|
36012
37795
|
if (undefined === value)
|
|
@@ -36607,7 +38390,11 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
36607
38390
|
"Please remove the property next time."
|
|
36608
38391
|
].join("\n")
|
|
36609
38392
|
});
|
|
36610
|
-
}).every(flag => flag))].every(flag => flag); const _vo46 = (input, _path, _exceptionable = true) => [undefined === input.
|
|
38393
|
+
}).every(flag => flag))].every(flag => flag); const _vo46 = (input, _path, _exceptionable = true) => [undefined === input.showSpeakers || "boolean" === typeof input.showSpeakers || _report(_exceptionable, {
|
|
38394
|
+
path: _path + ".showSpeakers",
|
|
38395
|
+
expected: "(boolean | undefined)",
|
|
38396
|
+
value: input.showSpeakers
|
|
38397
|
+
}), undefined === input.subtitleDisclaimer || ("object" === typeof input.subtitleDisclaimer && null !== input.subtitleDisclaimer && false === Array.isArray(input.subtitleDisclaimer) || _report(_exceptionable, {
|
|
36611
38398
|
path: _path + ".subtitleDisclaimer",
|
|
36612
38399
|
expected: "(__type.o37 | undefined)",
|
|
36613
38400
|
value: input.subtitleDisclaimer
|
|
@@ -36616,7 +38403,7 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
36616
38403
|
expected: "(__type.o37 | undefined)",
|
|
36617
38404
|
value: input.subtitleDisclaimer
|
|
36618
38405
|
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
36619
|
-
if (["subtitleDisclaimer"].some(prop => key === prop))
|
|
38406
|
+
if (["showSpeakers", "subtitleDisclaimer"].some(prop => key === prop))
|
|
36620
38407
|
return true;
|
|
36621
38408
|
const value = input[key];
|
|
36622
38409
|
if (undefined === value)
|
|
@@ -37943,8 +39730,12 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
37943
39730
|
path: _path + ".systemHealthIgnore",
|
|
37944
39731
|
expected: "(boolean | undefined)",
|
|
37945
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
|
|
37946
39737
|
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
37947
|
-
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))
|
|
37948
39739
|
return true;
|
|
37949
39740
|
const value = input[key];
|
|
37950
39741
|
if (undefined === value)
|
|
@@ -39359,6 +41150,163 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
39359
41150
|
};
|
|
39360
41151
|
}; })()(input);
|
|
39361
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
|
+
}
|
|
39362
41310
|
case ":storyboard": {
|
|
39363
41311
|
return (() => { const _io0 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
39364
41312
|
const value = input[key];
|
|
@@ -40676,470 +42624,6 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
40676
42624
|
};
|
|
40677
42625
|
}; })()(input);
|
|
40678
42626
|
}
|
|
40679
|
-
case ":template": {
|
|
40680
|
-
return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.source || "string" === typeof input.source) && (undefined === input.controller || "string" === typeof input.controller) && (undefined === input.type || "string" === typeof input.type) && (undefined === input.mixin || Array.isArray(input.mixin) && input.mixin.every((elem, _index1) => "string" === typeof elem)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io1(input.properties, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
40681
|
-
if (["source", "controller", "type", "mixin", "properties"].some(prop => key === prop))
|
|
40682
|
-
return true;
|
|
40683
|
-
const value = input[key];
|
|
40684
|
-
if (undefined === value)
|
|
40685
|
-
return true;
|
|
40686
|
-
return false;
|
|
40687
|
-
})); const _io1 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
40688
|
-
const value = input[key];
|
|
40689
|
-
if (undefined === value)
|
|
40690
|
-
return true;
|
|
40691
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io2(value, true && _exceptionable);
|
|
40692
|
-
}); const _io2 = (input, _exceptionable = true) => (undefined === input.path || "string" === typeof input.path) && (undefined === input.type || "string" === typeof input.type) && (undefined === input.label || "string" === typeof input.label) && (undefined === input.defaultValue || "string" === typeof input.defaultValue) && (undefined === input.widget || "object" === typeof input.widget && null !== input.widget && _io3(input.widget, true && _exceptionable)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io4(input.properties, true && _exceptionable)) && (undefined === input.items || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _io5(input.items, true && _exceptionable)) && (undefined === input.render || "object" === typeof input.render && null !== input.render && _io9(input.render, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
40693
|
-
if (["path", "type", "label", "defaultValue", "widget", "properties", "items", "render"].some(prop => key === prop))
|
|
40694
|
-
return true;
|
|
40695
|
-
const value = input[key];
|
|
40696
|
-
if (undefined === value)
|
|
40697
|
-
return true;
|
|
40698
|
-
return false;
|
|
40699
|
-
})); const _io3 = (input, _exceptionable = true) => "string" === typeof input.type && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
40700
|
-
if (["type"].some(prop => key === prop))
|
|
40701
|
-
return true;
|
|
40702
|
-
const value = input[key];
|
|
40703
|
-
if (undefined === value)
|
|
40704
|
-
return true;
|
|
40705
|
-
return false;
|
|
40706
|
-
})); const _io4 = (input, _exceptionable = true) => 0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
40707
|
-
const value = input[key];
|
|
40708
|
-
if (undefined === value)
|
|
40709
|
-
return true;
|
|
40710
|
-
return false;
|
|
40711
|
-
}); const _io5 = (input, _exceptionable = true) => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io6(input.properties, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
40712
|
-
if (["properties"].some(prop => key === prop))
|
|
40713
|
-
return true;
|
|
40714
|
-
const value = input[key];
|
|
40715
|
-
if (undefined === value)
|
|
40716
|
-
return true;
|
|
40717
|
-
return false;
|
|
40718
|
-
})); const _io6 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
40719
|
-
const value = input[key];
|
|
40720
|
-
if (undefined === value)
|
|
40721
|
-
return true;
|
|
40722
|
-
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io7(value, true && _exceptionable);
|
|
40723
|
-
}); const _io7 = (input, _exceptionable = true) => (undefined === input.path || "string" === typeof input.path) && (undefined === input.type || "string" === typeof input.type) && (undefined === input.label || "string" === typeof input.label) && (undefined === input.defaultValue || "string" === typeof input.defaultValue) && (undefined === input.widget || "object" === typeof input.widget && null !== input.widget && _io8(input.widget, true && _exceptionable)) && (undefined === input.items || "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && _io7(input.items, true && _exceptionable)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && _io6(input.properties, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
40724
|
-
if (["path", "type", "label", "defaultValue", "widget", "items", "properties"].some(prop => key === prop))
|
|
40725
|
-
return true;
|
|
40726
|
-
const value = input[key];
|
|
40727
|
-
if (undefined === value)
|
|
40728
|
-
return true;
|
|
40729
|
-
return false;
|
|
40730
|
-
})); const _io8 = (input, _exceptionable = true) => "string" === typeof input.type && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
40731
|
-
if (["type"].some(prop => key === prop))
|
|
40732
|
-
return true;
|
|
40733
|
-
const value = input[key];
|
|
40734
|
-
if (undefined === value)
|
|
40735
|
-
return true;
|
|
40736
|
-
return false;
|
|
40737
|
-
})); const _io9 = (input, _exceptionable = true) => "image" === input.type && (undefined === input.profile || "object" === typeof input.profile && null !== input.profile && false === Array.isArray(input.profile) && _io10(input.profile, true && _exceptionable)) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
40738
|
-
if (["type", "profile"].some(prop => key === prop))
|
|
40739
|
-
return true;
|
|
40740
|
-
const value = input[key];
|
|
40741
|
-
if (undefined === value)
|
|
40742
|
-
return true;
|
|
40743
|
-
return false;
|
|
40744
|
-
})); const _io10 = (input, _exceptionable = true) => (undefined === input.format || "string" === typeof input.format) && (undefined === input.video || "object" === typeof input.video && null !== input.video && _io11(input.video, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
40745
|
-
if (["format", "video"].some(prop => key === prop))
|
|
40746
|
-
return true;
|
|
40747
|
-
const value = input[key];
|
|
40748
|
-
if (undefined === value)
|
|
40749
|
-
return true;
|
|
40750
|
-
return false;
|
|
40751
|
-
})); const _io11 = (input, _exceptionable = true) => "number" === typeof input.width && "number" === typeof input.height && "cover" === input.fit && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
40752
|
-
if (["width", "height", "fit"].some(prop => key === prop))
|
|
40753
|
-
return true;
|
|
40754
|
-
const value = input[key];
|
|
40755
|
-
if (undefined === value)
|
|
40756
|
-
return true;
|
|
40757
|
-
return false;
|
|
40758
|
-
})); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.source || "string" === typeof input.source || _report(_exceptionable, {
|
|
40759
|
-
path: _path + ".source",
|
|
40760
|
-
expected: "(string | undefined)",
|
|
40761
|
-
value: input.source
|
|
40762
|
-
}), undefined === input.controller || "string" === typeof input.controller || _report(_exceptionable, {
|
|
40763
|
-
path: _path + ".controller",
|
|
40764
|
-
expected: "(string | undefined)",
|
|
40765
|
-
value: input.controller
|
|
40766
|
-
}), undefined === input.type || "string" === typeof input.type || _report(_exceptionable, {
|
|
40767
|
-
path: _path + ".type",
|
|
40768
|
-
expected: "(string | undefined)",
|
|
40769
|
-
value: input.type
|
|
40770
|
-
}), undefined === input.mixin || (Array.isArray(input.mixin) || _report(_exceptionable, {
|
|
40771
|
-
path: _path + ".mixin",
|
|
40772
|
-
expected: "(Array<string> | undefined)",
|
|
40773
|
-
value: input.mixin
|
|
40774
|
-
})) && input.mixin.map((elem, _index2) => "string" === typeof elem || _report(_exceptionable, {
|
|
40775
|
-
path: _path + ".mixin[" + _index2 + "]",
|
|
40776
|
-
expected: "string",
|
|
40777
|
-
value: elem
|
|
40778
|
-
})).every(flag => flag) || _report(_exceptionable, {
|
|
40779
|
-
path: _path + ".mixin",
|
|
40780
|
-
expected: "(Array<string> | undefined)",
|
|
40781
|
-
value: input.mixin
|
|
40782
|
-
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
40783
|
-
path: _path + ".properties",
|
|
40784
|
-
expected: "(Record<string, TemplateProperty> | undefined)",
|
|
40785
|
-
value: input.properties
|
|
40786
|
-
})) && _vo1(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
40787
|
-
path: _path + ".properties",
|
|
40788
|
-
expected: "(Record<string, TemplateProperty> | undefined)",
|
|
40789
|
-
value: input.properties
|
|
40790
|
-
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
40791
|
-
if (["source", "controller", "type", "mixin", "properties"].some(prop => key === prop))
|
|
40792
|
-
return true;
|
|
40793
|
-
const value = input[key];
|
|
40794
|
-
if (undefined === value)
|
|
40795
|
-
return true;
|
|
40796
|
-
return _report(_exceptionable, {
|
|
40797
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
40798
|
-
expected: "undefined",
|
|
40799
|
-
value: value,
|
|
40800
|
-
description: [
|
|
40801
|
-
`The property \`${key}\` is not defined in the object type.`,
|
|
40802
|
-
"",
|
|
40803
|
-
"Please remove the property next time."
|
|
40804
|
-
].join("\n")
|
|
40805
|
-
});
|
|
40806
|
-
}).every(flag => flag))].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
40807
|
-
const value = input[key];
|
|
40808
|
-
if (undefined === value)
|
|
40809
|
-
return true;
|
|
40810
|
-
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
|
40811
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
40812
|
-
expected: "TemplateProperty",
|
|
40813
|
-
value: value
|
|
40814
|
-
})) && _vo2(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
40815
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
40816
|
-
expected: "TemplateProperty",
|
|
40817
|
-
value: value
|
|
40818
|
-
});
|
|
40819
|
-
}).every(flag => flag)].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => [undefined === input.path || "string" === typeof input.path || _report(_exceptionable, {
|
|
40820
|
-
path: _path + ".path",
|
|
40821
|
-
expected: "(string | undefined)",
|
|
40822
|
-
value: input.path
|
|
40823
|
-
}), undefined === input.type || "string" === typeof input.type || _report(_exceptionable, {
|
|
40824
|
-
path: _path + ".type",
|
|
40825
|
-
expected: "(string | undefined)",
|
|
40826
|
-
value: input.type
|
|
40827
|
-
}), undefined === input.label || "string" === typeof input.label || _report(_exceptionable, {
|
|
40828
|
-
path: _path + ".label",
|
|
40829
|
-
expected: "(string | undefined)",
|
|
40830
|
-
value: input.label
|
|
40831
|
-
}), undefined === input.defaultValue || "string" === typeof input.defaultValue || _report(_exceptionable, {
|
|
40832
|
-
path: _path + ".defaultValue",
|
|
40833
|
-
expected: "(string | undefined)",
|
|
40834
|
-
value: input.defaultValue
|
|
40835
|
-
}), undefined === input.widget || ("object" === typeof input.widget && null !== input.widget || _report(_exceptionable, {
|
|
40836
|
-
path: _path + ".widget",
|
|
40837
|
-
expected: "(__type | undefined)",
|
|
40838
|
-
value: input.widget
|
|
40839
|
-
})) && _vo3(input.widget, _path + ".widget", true && _exceptionable) || _report(_exceptionable, {
|
|
40840
|
-
path: _path + ".widget",
|
|
40841
|
-
expected: "(__type | undefined)",
|
|
40842
|
-
value: input.widget
|
|
40843
|
-
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
40844
|
-
path: _path + ".properties",
|
|
40845
|
-
expected: "(object | undefined)",
|
|
40846
|
-
value: input.properties
|
|
40847
|
-
})) && _vo4(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
40848
|
-
path: _path + ".properties",
|
|
40849
|
-
expected: "(object | undefined)",
|
|
40850
|
-
value: input.properties
|
|
40851
|
-
}), undefined === input.items || ("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || _report(_exceptionable, {
|
|
40852
|
-
path: _path + ".items",
|
|
40853
|
-
expected: "(__type.o1 | undefined)",
|
|
40854
|
-
value: input.items
|
|
40855
|
-
})) && _vo5(input.items, _path + ".items", true && _exceptionable) || _report(_exceptionable, {
|
|
40856
|
-
path: _path + ".items",
|
|
40857
|
-
expected: "(__type.o1 | undefined)",
|
|
40858
|
-
value: input.items
|
|
40859
|
-
}), undefined === input.render || ("object" === typeof input.render && null !== input.render || _report(_exceptionable, {
|
|
40860
|
-
path: _path + ".render",
|
|
40861
|
-
expected: "(__type.o3 | undefined)",
|
|
40862
|
-
value: input.render
|
|
40863
|
-
})) && _vo9(input.render, _path + ".render", true && _exceptionable) || _report(_exceptionable, {
|
|
40864
|
-
path: _path + ".render",
|
|
40865
|
-
expected: "(__type.o3 | undefined)",
|
|
40866
|
-
value: input.render
|
|
40867
|
-
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
40868
|
-
if (["path", "type", "label", "defaultValue", "widget", "properties", "items", "render"].some(prop => key === prop))
|
|
40869
|
-
return true;
|
|
40870
|
-
const value = input[key];
|
|
40871
|
-
if (undefined === value)
|
|
40872
|
-
return true;
|
|
40873
|
-
return _report(_exceptionable, {
|
|
40874
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
40875
|
-
expected: "undefined",
|
|
40876
|
-
value: value,
|
|
40877
|
-
description: [
|
|
40878
|
-
`The property \`${key}\` is not defined in the object type.`,
|
|
40879
|
-
"",
|
|
40880
|
-
"Please remove the property next time."
|
|
40881
|
-
].join("\n")
|
|
40882
|
-
});
|
|
40883
|
-
}).every(flag => flag))].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.type || _report(_exceptionable, {
|
|
40884
|
-
path: _path + ".type",
|
|
40885
|
-
expected: "string",
|
|
40886
|
-
value: input.type
|
|
40887
|
-
}), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
40888
|
-
if (["type"].some(prop => key === prop))
|
|
40889
|
-
return true;
|
|
40890
|
-
const value = input[key];
|
|
40891
|
-
if (undefined === value)
|
|
40892
|
-
return true;
|
|
40893
|
-
return _report(_exceptionable, {
|
|
40894
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
40895
|
-
expected: "undefined",
|
|
40896
|
-
value: value,
|
|
40897
|
-
description: [
|
|
40898
|
-
`The property \`${key}\` is not defined in the object type.`,
|
|
40899
|
-
"",
|
|
40900
|
-
"Please remove the property next time."
|
|
40901
|
-
].join("\n")
|
|
40902
|
-
});
|
|
40903
|
-
}).every(flag => flag))].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
40904
|
-
const value = input[key];
|
|
40905
|
-
if (undefined === value)
|
|
40906
|
-
return true;
|
|
40907
|
-
return _report(_exceptionable, {
|
|
40908
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
40909
|
-
expected: "undefined",
|
|
40910
|
-
value: value,
|
|
40911
|
-
description: [
|
|
40912
|
-
`The property \`${key}\` is not defined in the object type.`,
|
|
40913
|
-
"",
|
|
40914
|
-
"Please remove the property next time."
|
|
40915
|
-
].join("\n")
|
|
40916
|
-
});
|
|
40917
|
-
}).every(flag => flag))].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => [undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
40918
|
-
path: _path + ".properties",
|
|
40919
|
-
expected: "(Record<string, TemplatePropertySchema> | undefined)",
|
|
40920
|
-
value: input.properties
|
|
40921
|
-
})) && _vo6(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
40922
|
-
path: _path + ".properties",
|
|
40923
|
-
expected: "(Record<string, TemplatePropertySchema> | undefined)",
|
|
40924
|
-
value: input.properties
|
|
40925
|
-
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
40926
|
-
if (["properties"].some(prop => key === prop))
|
|
40927
|
-
return true;
|
|
40928
|
-
const value = input[key];
|
|
40929
|
-
if (undefined === value)
|
|
40930
|
-
return true;
|
|
40931
|
-
return _report(_exceptionable, {
|
|
40932
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
40933
|
-
expected: "undefined",
|
|
40934
|
-
value: value,
|
|
40935
|
-
description: [
|
|
40936
|
-
`The property \`${key}\` is not defined in the object type.`,
|
|
40937
|
-
"",
|
|
40938
|
-
"Please remove the property next time."
|
|
40939
|
-
].join("\n")
|
|
40940
|
-
});
|
|
40941
|
-
}).every(flag => flag))].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
40942
|
-
const value = input[key];
|
|
40943
|
-
if (undefined === value)
|
|
40944
|
-
return true;
|
|
40945
|
-
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
|
40946
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
40947
|
-
expected: "TemplatePropertySchema",
|
|
40948
|
-
value: value
|
|
40949
|
-
})) && _vo7(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
40950
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
40951
|
-
expected: "TemplatePropertySchema",
|
|
40952
|
-
value: value
|
|
40953
|
-
});
|
|
40954
|
-
}).every(flag => flag)].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [undefined === input.path || "string" === typeof input.path || _report(_exceptionable, {
|
|
40955
|
-
path: _path + ".path",
|
|
40956
|
-
expected: "(string | undefined)",
|
|
40957
|
-
value: input.path
|
|
40958
|
-
}), undefined === input.type || "string" === typeof input.type || _report(_exceptionable, {
|
|
40959
|
-
path: _path + ".type",
|
|
40960
|
-
expected: "(string | undefined)",
|
|
40961
|
-
value: input.type
|
|
40962
|
-
}), undefined === input.label || "string" === typeof input.label || _report(_exceptionable, {
|
|
40963
|
-
path: _path + ".label",
|
|
40964
|
-
expected: "(string | undefined)",
|
|
40965
|
-
value: input.label
|
|
40966
|
-
}), undefined === input.defaultValue || "string" === typeof input.defaultValue || _report(_exceptionable, {
|
|
40967
|
-
path: _path + ".defaultValue",
|
|
40968
|
-
expected: "(string | undefined)",
|
|
40969
|
-
value: input.defaultValue
|
|
40970
|
-
}), undefined === input.widget || ("object" === typeof input.widget && null !== input.widget || _report(_exceptionable, {
|
|
40971
|
-
path: _path + ".widget",
|
|
40972
|
-
expected: "(__type.o2 | undefined)",
|
|
40973
|
-
value: input.widget
|
|
40974
|
-
})) && _vo8(input.widget, _path + ".widget", true && _exceptionable) || _report(_exceptionable, {
|
|
40975
|
-
path: _path + ".widget",
|
|
40976
|
-
expected: "(__type.o2 | undefined)",
|
|
40977
|
-
value: input.widget
|
|
40978
|
-
}), undefined === input.items || ("object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) || _report(_exceptionable, {
|
|
40979
|
-
path: _path + ".items",
|
|
40980
|
-
expected: "(TemplatePropertySchema | undefined)",
|
|
40981
|
-
value: input.items
|
|
40982
|
-
})) && _vo7(input.items, _path + ".items", true && _exceptionable) || _report(_exceptionable, {
|
|
40983
|
-
path: _path + ".items",
|
|
40984
|
-
expected: "(TemplatePropertySchema | undefined)",
|
|
40985
|
-
value: input.items
|
|
40986
|
-
}), undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || _report(_exceptionable, {
|
|
40987
|
-
path: _path + ".properties",
|
|
40988
|
-
expected: "(Record<string, TemplatePropertySchema> | undefined)",
|
|
40989
|
-
value: input.properties
|
|
40990
|
-
})) && _vo6(input.properties, _path + ".properties", true && _exceptionable) || _report(_exceptionable, {
|
|
40991
|
-
path: _path + ".properties",
|
|
40992
|
-
expected: "(Record<string, TemplatePropertySchema> | undefined)",
|
|
40993
|
-
value: input.properties
|
|
40994
|
-
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
40995
|
-
if (["path", "type", "label", "defaultValue", "widget", "items", "properties"].some(prop => key === prop))
|
|
40996
|
-
return true;
|
|
40997
|
-
const value = input[key];
|
|
40998
|
-
if (undefined === value)
|
|
40999
|
-
return true;
|
|
41000
|
-
return _report(_exceptionable, {
|
|
41001
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
41002
|
-
expected: "undefined",
|
|
41003
|
-
value: value,
|
|
41004
|
-
description: [
|
|
41005
|
-
`The property \`${key}\` is not defined in the object type.`,
|
|
41006
|
-
"",
|
|
41007
|
-
"Please remove the property next time."
|
|
41008
|
-
].join("\n")
|
|
41009
|
-
});
|
|
41010
|
-
}).every(flag => flag))].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.type || _report(_exceptionable, {
|
|
41011
|
-
path: _path + ".type",
|
|
41012
|
-
expected: "string",
|
|
41013
|
-
value: input.type
|
|
41014
|
-
}), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
41015
|
-
if (["type"].some(prop => key === prop))
|
|
41016
|
-
return true;
|
|
41017
|
-
const value = input[key];
|
|
41018
|
-
if (undefined === value)
|
|
41019
|
-
return true;
|
|
41020
|
-
return _report(_exceptionable, {
|
|
41021
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
41022
|
-
expected: "undefined",
|
|
41023
|
-
value: value,
|
|
41024
|
-
description: [
|
|
41025
|
-
`The property \`${key}\` is not defined in the object type.`,
|
|
41026
|
-
"",
|
|
41027
|
-
"Please remove the property next time."
|
|
41028
|
-
].join("\n")
|
|
41029
|
-
});
|
|
41030
|
-
}).every(flag => flag))].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => ["image" === input.type || _report(_exceptionable, {
|
|
41031
|
-
path: _path + ".type",
|
|
41032
|
-
expected: "\"image\"",
|
|
41033
|
-
value: input.type
|
|
41034
|
-
}), undefined === input.profile || ("object" === typeof input.profile && null !== input.profile && false === Array.isArray(input.profile) || _report(_exceptionable, {
|
|
41035
|
-
path: _path + ".profile",
|
|
41036
|
-
expected: "(__type.o4 | undefined)",
|
|
41037
|
-
value: input.profile
|
|
41038
|
-
})) && _vo10(input.profile, _path + ".profile", true && _exceptionable) || _report(_exceptionable, {
|
|
41039
|
-
path: _path + ".profile",
|
|
41040
|
-
expected: "(__type.o4 | undefined)",
|
|
41041
|
-
value: input.profile
|
|
41042
|
-
}), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
41043
|
-
if (["type", "profile"].some(prop => key === prop))
|
|
41044
|
-
return true;
|
|
41045
|
-
const value = input[key];
|
|
41046
|
-
if (undefined === value)
|
|
41047
|
-
return true;
|
|
41048
|
-
return _report(_exceptionable, {
|
|
41049
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
41050
|
-
expected: "undefined",
|
|
41051
|
-
value: value,
|
|
41052
|
-
description: [
|
|
41053
|
-
`The property \`${key}\` is not defined in the object type.`,
|
|
41054
|
-
"",
|
|
41055
|
-
"Please remove the property next time."
|
|
41056
|
-
].join("\n")
|
|
41057
|
-
});
|
|
41058
|
-
}).every(flag => flag))].every(flag => flag); const _vo10 = (input, _path, _exceptionable = true) => [undefined === input.format || "string" === typeof input.format || _report(_exceptionable, {
|
|
41059
|
-
path: _path + ".format",
|
|
41060
|
-
expected: "(string | undefined)",
|
|
41061
|
-
value: input.format
|
|
41062
|
-
}), undefined === input.video || ("object" === typeof input.video && null !== input.video || _report(_exceptionable, {
|
|
41063
|
-
path: _path + ".video",
|
|
41064
|
-
expected: "(__type.o5 | undefined)",
|
|
41065
|
-
value: input.video
|
|
41066
|
-
})) && _vo11(input.video, _path + ".video", true && _exceptionable) || _report(_exceptionable, {
|
|
41067
|
-
path: _path + ".video",
|
|
41068
|
-
expected: "(__type.o5 | undefined)",
|
|
41069
|
-
value: input.video
|
|
41070
|
-
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
41071
|
-
if (["format", "video"].some(prop => key === prop))
|
|
41072
|
-
return true;
|
|
41073
|
-
const value = input[key];
|
|
41074
|
-
if (undefined === value)
|
|
41075
|
-
return true;
|
|
41076
|
-
return _report(_exceptionable, {
|
|
41077
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
41078
|
-
expected: "undefined",
|
|
41079
|
-
value: value,
|
|
41080
|
-
description: [
|
|
41081
|
-
`The property \`${key}\` is not defined in the object type.`,
|
|
41082
|
-
"",
|
|
41083
|
-
"Please remove the property next time."
|
|
41084
|
-
].join("\n")
|
|
41085
|
-
});
|
|
41086
|
-
}).every(flag => flag))].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => ["number" === typeof input.width || _report(_exceptionable, {
|
|
41087
|
-
path: _path + ".width",
|
|
41088
|
-
expected: "number",
|
|
41089
|
-
value: input.width
|
|
41090
|
-
}), "number" === typeof input.height || _report(_exceptionable, {
|
|
41091
|
-
path: _path + ".height",
|
|
41092
|
-
expected: "number",
|
|
41093
|
-
value: input.height
|
|
41094
|
-
}), "cover" === input.fit || _report(_exceptionable, {
|
|
41095
|
-
path: _path + ".fit",
|
|
41096
|
-
expected: "\"cover\"",
|
|
41097
|
-
value: input.fit
|
|
41098
|
-
}), 3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
41099
|
-
if (["width", "height", "fit"].some(prop => key === prop))
|
|
41100
|
-
return true;
|
|
41101
|
-
const value = input[key];
|
|
41102
|
-
if (undefined === value)
|
|
41103
|
-
return true;
|
|
41104
|
-
return _report(_exceptionable, {
|
|
41105
|
-
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
41106
|
-
expected: "undefined",
|
|
41107
|
-
value: value,
|
|
41108
|
-
description: [
|
|
41109
|
-
`The property \`${key}\` is not defined in the object type.`,
|
|
41110
|
-
"",
|
|
41111
|
-
"Please remove the property next time."
|
|
41112
|
-
].join("\n")
|
|
41113
|
-
});
|
|
41114
|
-
}).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 => {
|
|
41115
|
-
if (false === __is(input)) {
|
|
41116
|
-
errors = [];
|
|
41117
|
-
_report = __typia_transform__validateReport._validateReport(errors);
|
|
41118
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
41119
|
-
path: _path + "",
|
|
41120
|
-
expected: "TemplateRecord",
|
|
41121
|
-
value: input
|
|
41122
|
-
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
41123
|
-
path: _path + "",
|
|
41124
|
-
expected: "TemplateRecord",
|
|
41125
|
-
value: input
|
|
41126
|
-
}))(input, "$input", true);
|
|
41127
|
-
const success = 0 === errors.length;
|
|
41128
|
-
return success ? {
|
|
41129
|
-
success,
|
|
41130
|
-
data: input
|
|
41131
|
-
} : {
|
|
41132
|
-
success,
|
|
41133
|
-
errors,
|
|
41134
|
-
data: input
|
|
41135
|
-
};
|
|
41136
|
-
}
|
|
41137
|
-
return {
|
|
41138
|
-
success: true,
|
|
41139
|
-
data: input
|
|
41140
|
-
};
|
|
41141
|
-
}; })()(input);
|
|
41142
|
-
}
|
|
41143
42627
|
case ":_user-notification-status": {
|
|
41144
42628
|
return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.assignee || "object" === typeof input.assignee && null !== input.assignee && false === Array.isArray(input.assignee) && _io1(input.assignee, true && _exceptionable)) && (undefined === input.published || "object" === typeof input.published && null !== input.published && false === Array.isArray(input.published) && _io2(input.published, true && _exceptionable)) && (undefined === input.comment || "object" === typeof input.comment && null !== input.comment && false === Array.isArray(input.comment) && _io3(input.comment, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
41145
42629
|
if (["assignee", "published", "comment"].some(prop => key === prop))
|