@nxtedition/types 23.0.59 → 23.0.61
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/asset-indexer.d.ts +98 -0
- package/dist/common/asset-indexer.js +1 -0
- package/dist/common/index.d.ts +3 -0
- package/dist/common/index.js +3 -0
- package/dist/common/panel-property.d.ts +29 -0
- package/dist/common/panel-property.js +1 -0
- package/dist/common/schema-property.d.ts +12 -0
- package/dist/common/schema-property.js +1 -0
- package/dist/common/settings.d.ts +7 -0
- package/dist/nxtpression.d.ts +232 -6
- package/dist/records/domains/asset.d.ts +10 -1
- package/dist/records/domains/device.d.ts +16 -0
- package/dist/records/domains/device.js +1 -0
- package/dist/records/domains/index.d.ts +7 -1
- package/dist/records/domains/index.js +3 -0
- package/dist/records/domains/ingestschedule.d.ts +45 -0
- package/dist/records/domains/ingestschedule.js +1 -0
- package/dist/records/domains/note.d.ts +6 -0
- package/dist/records/domains/note.js +1 -0
- package/dist/records/domains/panel.d.ts +1 -28
- package/dist/records/exact/asset.d.ts +18 -1
- package/dist/records/utils.d.ts +4 -1
- package/dist/records/utils.tds.js +11 -8
- package/dist/records/validate/assert-guard.js +1281 -11
- package/dist/records/validate/assert.js +1478 -201
- package/dist/records/validate/is.js +42 -4
- package/dist/records/validate/schemas.js +1092 -173
- package/dist/records/validate/stringify.js +74 -7
- package/dist/records/validate/utils.js +2 -2
- package/dist/records/validate/validate-equals.js +2145 -212
- package/dist/records/validate/validate.js +1310 -178
- package/package.json +1 -1
|
@@ -634,58 +634,216 @@ function _validateEqualsExactRecord(name, input) {
|
|
|
634
634
|
};
|
|
635
635
|
}; })()(input);
|
|
636
636
|
}
|
|
637
|
-
case "asset.
|
|
638
|
-
return (() => { const _io0 = (input, _exceptionable = true) =>
|
|
639
|
-
if (["value"
|
|
637
|
+
case "asset.dynamicProperties?": {
|
|
638
|
+
return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.value || Array.isArray(input.value) && input.value.every((elem, _index1) => "object" === typeof elem && null !== elem && _io1(elem, true && _exceptionable))) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
639
|
+
if (["value"].some(prop => key === prop))
|
|
640
640
|
return true;
|
|
641
641
|
const value = input[key];
|
|
642
642
|
if (undefined === value)
|
|
643
643
|
return true;
|
|
644
644
|
return false;
|
|
645
|
-
})); const _io1 = (input, _exceptionable = true) => "object" === typeof input.
|
|
645
|
+
})); const _io1 = (input, _exceptionable = true) => (undefined === input.panel || "string" === typeof input.panel) && (undefined === input.schema || "string" === typeof input.schema) && (Array.isArray(input.supports) && input.supports.every((elem, _index2) => "string" === typeof elem)) && "string" === typeof input.path && ("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.index || "object" === typeof input.index && null !== input.index && _io2(input.index, true && _exceptionable)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.domain || "string" === typeof input.domain) && true && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf) && input.oneOf.every((elem, _index3) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io3(elem, true && _exceptionable))) && (undefined === input.anyOf || Array.isArray(input.anyOf) && input.anyOf.every((elem, _index4) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io4(elem, true && _exceptionable))) && (undefined === input["enum"] || Array.isArray(input["enum"])) && true && (null !== input.recordName && (undefined === input.recordName || "string" === typeof input.recordName || "object" === typeof input.recordName && null !== input.recordName && _io5(input.recordName, true && _exceptionable))) && (null !== input.setter && (undefined === input.setter || "function" === typeof input.setter || "string" === typeof input.setter || "object" === typeof input.setter && null !== input.setter && _io7(input.setter, true && _exceptionable))) && true && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
646
|
+
if (["panel", "schema", "supports", "path", "type", "index", "title", "description", "domain", "computed", "required", "oneOf", "anyOf", "enum", "default", "recordName", "setter", "const"].some(prop => key === prop))
|
|
647
|
+
return true;
|
|
648
|
+
const value = input[key];
|
|
649
|
+
if (undefined === value)
|
|
650
|
+
return true;
|
|
651
|
+
return false;
|
|
652
|
+
})); const _io2 = (input, _exceptionable = true) => "string" === typeof input.label && "string" === typeof input.path && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
653
|
+
if (["label", "path"].some(prop => key === prop))
|
|
654
|
+
return true;
|
|
655
|
+
const value = input[key];
|
|
656
|
+
if (undefined === value)
|
|
657
|
+
return true;
|
|
658
|
+
return false;
|
|
659
|
+
})); const _io3 = (input, _exceptionable = true) => true && (undefined === input.title || "string" === typeof input.title) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
660
|
+
if (["const", "title"].some(prop => key === prop))
|
|
661
|
+
return true;
|
|
662
|
+
const value = input[key];
|
|
663
|
+
if (undefined === value)
|
|
664
|
+
return true;
|
|
665
|
+
return false;
|
|
666
|
+
})); const _io4 = (input, _exceptionable = true) => true && (undefined === input.title || "string" === typeof input.title) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
667
|
+
if (["const", "title"].some(prop => key === prop))
|
|
668
|
+
return true;
|
|
669
|
+
const value = input[key];
|
|
670
|
+
if (undefined === value)
|
|
671
|
+
return true;
|
|
672
|
+
return false;
|
|
673
|
+
})); const _io5 = (input, _exceptionable = true) => "object" === typeof input.__context && null !== input.__context && _io6(input.__context, true && _exceptionable) && "string" === typeof input.__returnValue && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
646
674
|
if (["__context", "__returnValue"].some(prop => key === prop))
|
|
647
675
|
return true;
|
|
648
676
|
const value = input[key];
|
|
649
677
|
if (undefined === value)
|
|
650
678
|
return true;
|
|
651
679
|
return false;
|
|
652
|
-
})); const
|
|
680
|
+
})); const _io6 = (input, _exceptionable = true) => "string" === typeof input.id && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
653
681
|
if (["id"].some(prop => key === prop))
|
|
654
682
|
return true;
|
|
655
683
|
const value = input[key];
|
|
656
684
|
if (undefined === value)
|
|
657
685
|
return true;
|
|
658
686
|
return false;
|
|
659
|
-
})); const
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
687
|
+
})); const _io7 = (input, _exceptionable = true) => "object" === typeof input.__context && null !== input.__context && _io8(input.__context, true && _exceptionable) && true && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
688
|
+
if (["__context", "__returnValue"].some(prop => key === prop))
|
|
689
|
+
return true;
|
|
690
|
+
const value = input[key];
|
|
691
|
+
if (undefined === value)
|
|
692
|
+
return true;
|
|
693
|
+
return false;
|
|
694
|
+
})); const _io8 = (input, _exceptionable = true) => "string" === typeof input.id && true && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
695
|
+
if (["id", "value"].some(prop => key === prop))
|
|
696
|
+
return true;
|
|
697
|
+
const value = input[key];
|
|
698
|
+
if (undefined === value)
|
|
699
|
+
return true;
|
|
700
|
+
return false;
|
|
701
|
+
})); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.value || (Array.isArray(input.value) || _report(_exceptionable, {
|
|
664
702
|
path: _path + ".value",
|
|
665
|
-
expected: "(
|
|
703
|
+
expected: "(Array<DynamicProperty> | undefined)",
|
|
666
704
|
value: input.value
|
|
667
|
-
})) &&
|
|
705
|
+
})) && input.value.map((elem, _index5) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
706
|
+
path: _path + ".value[" + _index5 + "]",
|
|
707
|
+
expected: "DynamicProperty",
|
|
708
|
+
value: elem
|
|
709
|
+
})) && _vo1(elem, _path + ".value[" + _index5 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
710
|
+
path: _path + ".value[" + _index5 + "]",
|
|
711
|
+
expected: "DynamicProperty",
|
|
712
|
+
value: elem
|
|
713
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
668
714
|
path: _path + ".value",
|
|
669
|
-
expected: "(
|
|
715
|
+
expected: "(Array<DynamicProperty> | undefined)",
|
|
670
716
|
value: input.value
|
|
671
|
-
})
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
value
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
717
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
718
|
+
if (["value"].some(prop => key === prop))
|
|
719
|
+
return true;
|
|
720
|
+
const value = input[key];
|
|
721
|
+
if (undefined === value)
|
|
722
|
+
return true;
|
|
723
|
+
return _report(_exceptionable, {
|
|
724
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
725
|
+
expected: "undefined",
|
|
726
|
+
value: value,
|
|
727
|
+
description: [
|
|
728
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
729
|
+
"",
|
|
730
|
+
"Please remove the property next time."
|
|
731
|
+
].join("\n")
|
|
732
|
+
});
|
|
733
|
+
}).every(flag => flag))].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [undefined === input.panel || "string" === typeof input.panel || _report(_exceptionable, {
|
|
734
|
+
path: _path + ".panel",
|
|
735
|
+
expected: "(string | undefined)",
|
|
736
|
+
value: input.panel
|
|
737
|
+
}), undefined === input.schema || "string" === typeof input.schema || _report(_exceptionable, {
|
|
738
|
+
path: _path + ".schema",
|
|
739
|
+
expected: "(string | undefined)",
|
|
740
|
+
value: input.schema
|
|
741
|
+
}), (Array.isArray(input.supports) || _report(_exceptionable, {
|
|
742
|
+
path: _path + ".supports",
|
|
743
|
+
expected: "Array<string>",
|
|
744
|
+
value: input.supports
|
|
745
|
+
})) && input.supports.map((elem, _index6) => "string" === typeof elem || _report(_exceptionable, {
|
|
746
|
+
path: _path + ".supports[" + _index6 + "]",
|
|
681
747
|
expected: "string",
|
|
682
748
|
value: elem
|
|
683
749
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
684
|
-
path: _path + ".
|
|
685
|
-
expected: "
|
|
686
|
-
value: input.
|
|
687
|
-
})
|
|
688
|
-
|
|
750
|
+
path: _path + ".supports",
|
|
751
|
+
expected: "Array<string>",
|
|
752
|
+
value: input.supports
|
|
753
|
+
}), "string" === typeof input.path || _report(_exceptionable, {
|
|
754
|
+
path: _path + ".path",
|
|
755
|
+
expected: "string",
|
|
756
|
+
value: input.path
|
|
757
|
+
}), "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, {
|
|
758
|
+
path: _path + ".type",
|
|
759
|
+
expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\")",
|
|
760
|
+
value: input.type
|
|
761
|
+
}), undefined === input.index || ("object" === typeof input.index && null !== input.index || _report(_exceptionable, {
|
|
762
|
+
path: _path + ".index",
|
|
763
|
+
expected: "(__type | undefined)",
|
|
764
|
+
value: input.index
|
|
765
|
+
})) && _vo2(input.index, _path + ".index", true && _exceptionable) || _report(_exceptionable, {
|
|
766
|
+
path: _path + ".index",
|
|
767
|
+
expected: "(__type | undefined)",
|
|
768
|
+
value: input.index
|
|
769
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
770
|
+
path: _path + ".title",
|
|
771
|
+
expected: "(string | undefined)",
|
|
772
|
+
value: input.title
|
|
773
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
774
|
+
path: _path + ".description",
|
|
775
|
+
expected: "(string | undefined)",
|
|
776
|
+
value: input.description
|
|
777
|
+
}), undefined === input.domain || "string" === typeof input.domain || _report(_exceptionable, {
|
|
778
|
+
path: _path + ".domain",
|
|
779
|
+
expected: "(string | undefined)",
|
|
780
|
+
value: input.domain
|
|
781
|
+
}), true, undefined === input.required || "boolean" === typeof input.required || _report(_exceptionable, {
|
|
782
|
+
path: _path + ".required",
|
|
783
|
+
expected: "(boolean | undefined)",
|
|
784
|
+
value: input.required
|
|
785
|
+
}), undefined === input.oneOf || (Array.isArray(input.oneOf) || _report(_exceptionable, {
|
|
786
|
+
path: _path + ".oneOf",
|
|
787
|
+
expected: "(Array<__type> | undefined)",
|
|
788
|
+
value: input.oneOf
|
|
789
|
+
})) && input.oneOf.map((elem, _index7) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
790
|
+
path: _path + ".oneOf[" + _index7 + "]",
|
|
791
|
+
expected: "__type.o1",
|
|
792
|
+
value: elem
|
|
793
|
+
})) && _vo3(elem, _path + ".oneOf[" + _index7 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
794
|
+
path: _path + ".oneOf[" + _index7 + "]",
|
|
795
|
+
expected: "__type.o1",
|
|
796
|
+
value: elem
|
|
797
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
798
|
+
path: _path + ".oneOf",
|
|
799
|
+
expected: "(Array<__type> | undefined)",
|
|
800
|
+
value: input.oneOf
|
|
801
|
+
}), undefined === input.anyOf || (Array.isArray(input.anyOf) || _report(_exceptionable, {
|
|
802
|
+
path: _path + ".anyOf",
|
|
803
|
+
expected: "(Array<__type>.o1 | undefined)",
|
|
804
|
+
value: input.anyOf
|
|
805
|
+
})) && input.anyOf.map((elem, _index8) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
806
|
+
path: _path + ".anyOf[" + _index8 + "]",
|
|
807
|
+
expected: "__type.o2",
|
|
808
|
+
value: elem
|
|
809
|
+
})) && _vo4(elem, _path + ".anyOf[" + _index8 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
810
|
+
path: _path + ".anyOf[" + _index8 + "]",
|
|
811
|
+
expected: "__type.o2",
|
|
812
|
+
value: elem
|
|
813
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
814
|
+
path: _path + ".anyOf",
|
|
815
|
+
expected: "(Array<__type>.o1 | undefined)",
|
|
816
|
+
value: input.anyOf
|
|
817
|
+
}), undefined === input["enum"] || Array.isArray(input["enum"]) || _report(_exceptionable, {
|
|
818
|
+
path: _path + "[\"enum\"]",
|
|
819
|
+
expected: "(Array<unknown> | undefined)",
|
|
820
|
+
value: input["enum"]
|
|
821
|
+
}), true, (null !== input.recordName || _report(_exceptionable, {
|
|
822
|
+
path: _path + ".recordName",
|
|
823
|
+
expected: "(__type.o3 | string | undefined)",
|
|
824
|
+
value: input.recordName
|
|
825
|
+
})) && (undefined === input.recordName || "string" === typeof input.recordName || ("object" === typeof input.recordName && null !== input.recordName || _report(_exceptionable, {
|
|
826
|
+
path: _path + ".recordName",
|
|
827
|
+
expected: "(__type.o3 | string | undefined)",
|
|
828
|
+
value: input.recordName
|
|
829
|
+
})) && _vo5(input.recordName, _path + ".recordName", true && _exceptionable) || _report(_exceptionable, {
|
|
830
|
+
path: _path + ".recordName",
|
|
831
|
+
expected: "(__type.o3 | string | undefined)",
|
|
832
|
+
value: input.recordName
|
|
833
|
+
})), (null !== input.setter || _report(_exceptionable, {
|
|
834
|
+
path: _path + ".setter",
|
|
835
|
+
expected: "(__type.o5 | string | undefined)",
|
|
836
|
+
value: input.setter
|
|
837
|
+
})) && (undefined === input.setter || "function" === typeof input.setter || "string" === typeof input.setter || ("object" === typeof input.setter && null !== input.setter || _report(_exceptionable, {
|
|
838
|
+
path: _path + ".setter",
|
|
839
|
+
expected: "(__type.o5 | string | undefined)",
|
|
840
|
+
value: input.setter
|
|
841
|
+
})) && _vo7(input.setter, _path + ".setter", true && _exceptionable) || _report(_exceptionable, {
|
|
842
|
+
path: _path + ".setter",
|
|
843
|
+
expected: "(__type.o5 | string | undefined)",
|
|
844
|
+
value: input.setter
|
|
845
|
+
})), true, 3 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
846
|
+
if (["panel", "schema", "supports", "path", "type", "index", "title", "description", "domain", "computed", "required", "oneOf", "anyOf", "enum", "default", "recordName", "setter", "const"].some(prop => key === prop))
|
|
689
847
|
return true;
|
|
690
848
|
const value = input[key];
|
|
691
849
|
if (undefined === value)
|
|
@@ -700,13 +858,77 @@ function _validateEqualsExactRecord(name, input) {
|
|
|
700
858
|
"Please remove the property next time."
|
|
701
859
|
].join("\n")
|
|
702
860
|
});
|
|
703
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
861
|
+
}).every(flag => flag))].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.label || _report(_exceptionable, {
|
|
862
|
+
path: _path + ".label",
|
|
863
|
+
expected: "string",
|
|
864
|
+
value: input.label
|
|
865
|
+
}), "string" === typeof input.path || _report(_exceptionable, {
|
|
866
|
+
path: _path + ".path",
|
|
867
|
+
expected: "string",
|
|
868
|
+
value: input.path
|
|
869
|
+
}), 2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
870
|
+
if (["label", "path"].some(prop => key === prop))
|
|
871
|
+
return true;
|
|
872
|
+
const value = input[key];
|
|
873
|
+
if (undefined === value)
|
|
874
|
+
return true;
|
|
875
|
+
return _report(_exceptionable, {
|
|
876
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
877
|
+
expected: "undefined",
|
|
878
|
+
value: value,
|
|
879
|
+
description: [
|
|
880
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
881
|
+
"",
|
|
882
|
+
"Please remove the property next time."
|
|
883
|
+
].join("\n")
|
|
884
|
+
});
|
|
885
|
+
}).every(flag => flag))].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => [true, undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
886
|
+
path: _path + ".title",
|
|
887
|
+
expected: "(string | undefined)",
|
|
888
|
+
value: input.title
|
|
889
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
890
|
+
if (["const", "title"].some(prop => key === prop))
|
|
891
|
+
return true;
|
|
892
|
+
const value = input[key];
|
|
893
|
+
if (undefined === value)
|
|
894
|
+
return true;
|
|
895
|
+
return _report(_exceptionable, {
|
|
896
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
897
|
+
expected: "undefined",
|
|
898
|
+
value: value,
|
|
899
|
+
description: [
|
|
900
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
901
|
+
"",
|
|
902
|
+
"Please remove the property next time."
|
|
903
|
+
].join("\n")
|
|
904
|
+
});
|
|
905
|
+
}).every(flag => flag))].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [true, undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
906
|
+
path: _path + ".title",
|
|
907
|
+
expected: "(string | undefined)",
|
|
908
|
+
value: input.title
|
|
909
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
910
|
+
if (["const", "title"].some(prop => key === prop))
|
|
911
|
+
return true;
|
|
912
|
+
const value = input[key];
|
|
913
|
+
if (undefined === value)
|
|
914
|
+
return true;
|
|
915
|
+
return _report(_exceptionable, {
|
|
916
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
917
|
+
expected: "undefined",
|
|
918
|
+
value: value,
|
|
919
|
+
description: [
|
|
920
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
921
|
+
"",
|
|
922
|
+
"Please remove the property next time."
|
|
923
|
+
].join("\n")
|
|
924
|
+
});
|
|
925
|
+
}).every(flag => flag))].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => [("object" === typeof input.__context && null !== input.__context || _report(_exceptionable, {
|
|
704
926
|
path: _path + ".__context",
|
|
705
|
-
expected: "__type.
|
|
927
|
+
expected: "__type.o4",
|
|
706
928
|
value: input.__context
|
|
707
|
-
})) &&
|
|
929
|
+
})) && _vo6(input.__context, _path + ".__context", true && _exceptionable) || _report(_exceptionable, {
|
|
708
930
|
path: _path + ".__context",
|
|
709
|
-
expected: "__type.
|
|
931
|
+
expected: "__type.o4",
|
|
710
932
|
value: input.__context
|
|
711
933
|
}), "string" === typeof input.__returnValue || _report(_exceptionable, {
|
|
712
934
|
path: _path + ".__returnValue",
|
|
@@ -728,7 +950,7 @@ function _validateEqualsExactRecord(name, input) {
|
|
|
728
950
|
"Please remove the property next time."
|
|
729
951
|
].join("\n")
|
|
730
952
|
});
|
|
731
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
953
|
+
}).every(flag => flag))].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
|
|
732
954
|
path: _path + ".id",
|
|
733
955
|
expected: "string",
|
|
734
956
|
value: input.id
|
|
@@ -748,45 +970,236 @@ function _validateEqualsExactRecord(name, input) {
|
|
|
748
970
|
"Please remove the property next time."
|
|
749
971
|
].join("\n")
|
|
750
972
|
});
|
|
751
|
-
}).every(flag => flag))].every(flag => flag); const
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
973
|
+
}).every(flag => flag))].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => [("object" === typeof input.__context && null !== input.__context || _report(_exceptionable, {
|
|
974
|
+
path: _path + ".__context",
|
|
975
|
+
expected: "__type.o6",
|
|
976
|
+
value: input.__context
|
|
977
|
+
})) && _vo8(input.__context, _path + ".__context", true && _exceptionable) || _report(_exceptionable, {
|
|
978
|
+
path: _path + ".__context",
|
|
979
|
+
expected: "__type.o6",
|
|
980
|
+
value: input.__context
|
|
981
|
+
}), true || _report(_exceptionable, {
|
|
982
|
+
path: _path + ".__returnValue",
|
|
983
|
+
expected: "unknown",
|
|
984
|
+
value: input.__returnValue
|
|
985
|
+
}), 2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
986
|
+
if (["__context", "__returnValue"].some(prop => key === prop))
|
|
987
|
+
return true;
|
|
988
|
+
const value = input[key];
|
|
989
|
+
if (undefined === value)
|
|
990
|
+
return true;
|
|
991
|
+
return _report(_exceptionable, {
|
|
992
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
993
|
+
expected: "undefined",
|
|
994
|
+
value: value,
|
|
995
|
+
description: [
|
|
996
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
997
|
+
"",
|
|
998
|
+
"Please remove the property next time."
|
|
999
|
+
].join("\n")
|
|
1000
|
+
});
|
|
1001
|
+
}).every(flag => flag))].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
|
|
1002
|
+
path: _path + ".id",
|
|
1003
|
+
expected: "string",
|
|
1004
|
+
value: input.id
|
|
1005
|
+
}), true, 2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
1006
|
+
if (["id", "value"].some(prop => key === prop))
|
|
1007
|
+
return true;
|
|
1008
|
+
const value = input[key];
|
|
1009
|
+
if (undefined === value)
|
|
1010
|
+
return true;
|
|
1011
|
+
return _report(_exceptionable, {
|
|
1012
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1013
|
+
expected: "undefined",
|
|
1014
|
+
value: value,
|
|
1015
|
+
description: [
|
|
1016
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
1017
|
+
"",
|
|
1018
|
+
"Please remove the property next time."
|
|
1019
|
+
].join("\n")
|
|
1020
|
+
});
|
|
1021
|
+
}).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 => {
|
|
1022
|
+
if (false === __is(input)) {
|
|
1023
|
+
errors = [];
|
|
1024
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
1025
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
1026
|
+
path: _path + "",
|
|
1027
|
+
expected: "AssetDynamicPropertiesProvidedRecord",
|
|
1028
|
+
value: input
|
|
1029
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
1030
|
+
path: _path + "",
|
|
1031
|
+
expected: "AssetDynamicPropertiesProvidedRecord",
|
|
1032
|
+
value: input
|
|
1033
|
+
}))(input, "$input", true);
|
|
1034
|
+
const success = 0 === errors.length;
|
|
1035
|
+
return success ? {
|
|
1036
|
+
success,
|
|
1037
|
+
data: input
|
|
1038
|
+
} : {
|
|
1039
|
+
success,
|
|
1040
|
+
errors,
|
|
1041
|
+
data: input
|
|
1042
|
+
};
|
|
1043
|
+
}
|
|
1044
|
+
return {
|
|
1045
|
+
success: true,
|
|
1046
|
+
data: input
|
|
1047
|
+
};
|
|
1048
|
+
}; })()(input);
|
|
1049
|
+
}
|
|
1050
|
+
case "asset.embedding": {
|
|
1051
|
+
return (() => { const _io0 = (input, _exceptionable = true) => null !== input.value && (undefined === input.value || "string" === typeof input.value || "object" === typeof input.value && null !== input.value && _io1(input.value, true && _exceptionable)) && (null !== input.dynamic && (undefined === input.dynamic || false === input.dynamic || Array.isArray(input.dynamic) && input.dynamic.every((elem, _index1) => "string" === typeof elem))) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
1052
|
+
if (["value", "dynamic"].some(prop => key === prop))
|
|
1053
|
+
return true;
|
|
1054
|
+
const value = input[key];
|
|
1055
|
+
if (undefined === value)
|
|
1056
|
+
return true;
|
|
1057
|
+
return false;
|
|
1058
|
+
})); const _io1 = (input, _exceptionable = true) => "object" === typeof input.__context && null !== input.__context && _io2(input.__context, true && _exceptionable) && "string" === typeof input.__returnValue && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
1059
|
+
if (["__context", "__returnValue"].some(prop => key === prop))
|
|
1060
|
+
return true;
|
|
1061
|
+
const value = input[key];
|
|
1062
|
+
if (undefined === value)
|
|
1063
|
+
return true;
|
|
1064
|
+
return false;
|
|
1065
|
+
})); const _io2 = (input, _exceptionable = true) => "string" === typeof input.id && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
1066
|
+
if (["id"].some(prop => key === prop))
|
|
1067
|
+
return true;
|
|
1068
|
+
const value = input[key];
|
|
1069
|
+
if (undefined === value)
|
|
1070
|
+
return true;
|
|
1071
|
+
return false;
|
|
1072
|
+
})); const _vo0 = (input, _path, _exceptionable = true) => [(null !== input.value || _report(_exceptionable, {
|
|
1073
|
+
path: _path + ".value",
|
|
1074
|
+
expected: "(__type | string | undefined)",
|
|
1075
|
+
value: input.value
|
|
1076
|
+
})) && (undefined === input.value || "string" === typeof input.value || ("object" === typeof input.value && null !== input.value || _report(_exceptionable, {
|
|
1077
|
+
path: _path + ".value",
|
|
1078
|
+
expected: "(__type | string | undefined)",
|
|
1079
|
+
value: input.value
|
|
1080
|
+
})) && _vo1(input.value, _path + ".value", true && _exceptionable) || _report(_exceptionable, {
|
|
1081
|
+
path: _path + ".value",
|
|
1082
|
+
expected: "(__type | string | undefined)",
|
|
1083
|
+
value: input.value
|
|
1084
|
+
})), (null !== input.dynamic || _report(_exceptionable, {
|
|
1085
|
+
path: _path + ".dynamic",
|
|
1086
|
+
expected: "(Array<string> | false | undefined)",
|
|
1087
|
+
value: input.dynamic
|
|
1088
|
+
})) && (undefined === input.dynamic || false === input.dynamic || (Array.isArray(input.dynamic) || _report(_exceptionable, {
|
|
1089
|
+
path: _path + ".dynamic",
|
|
1090
|
+
expected: "(Array<string> | false | undefined)",
|
|
1091
|
+
value: input.dynamic
|
|
1092
|
+
})) && input.dynamic.map((elem, _index2) => "string" === typeof elem || _report(_exceptionable, {
|
|
1093
|
+
path: _path + ".dynamic[" + _index2 + "]",
|
|
1094
|
+
expected: "string",
|
|
1095
|
+
value: elem
|
|
1096
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
1097
|
+
path: _path + ".dynamic",
|
|
1098
|
+
expected: "(Array<string> | false | undefined)",
|
|
1099
|
+
value: input.dynamic
|
|
1100
|
+
})), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
1101
|
+
if (["value", "dynamic"].some(prop => key === prop))
|
|
1102
|
+
return true;
|
|
1103
|
+
const value = input[key];
|
|
1104
|
+
if (undefined === value)
|
|
1105
|
+
return true;
|
|
1106
|
+
return _report(_exceptionable, {
|
|
1107
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1108
|
+
expected: "undefined",
|
|
1109
|
+
value: value,
|
|
1110
|
+
description: [
|
|
1111
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
1112
|
+
"",
|
|
1113
|
+
"Please remove the property next time."
|
|
1114
|
+
].join("\n")
|
|
1115
|
+
});
|
|
1116
|
+
}).every(flag => flag))].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [("object" === typeof input.__context && null !== input.__context || _report(_exceptionable, {
|
|
1117
|
+
path: _path + ".__context",
|
|
1118
|
+
expected: "__type.o1",
|
|
1119
|
+
value: input.__context
|
|
1120
|
+
})) && _vo2(input.__context, _path + ".__context", true && _exceptionable) || _report(_exceptionable, {
|
|
1121
|
+
path: _path + ".__context",
|
|
1122
|
+
expected: "__type.o1",
|
|
1123
|
+
value: input.__context
|
|
1124
|
+
}), "string" === typeof input.__returnValue || _report(_exceptionable, {
|
|
1125
|
+
path: _path + ".__returnValue",
|
|
1126
|
+
expected: "string",
|
|
1127
|
+
value: input.__returnValue
|
|
1128
|
+
}), 2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
1129
|
+
if (["__context", "__returnValue"].some(prop => key === prop))
|
|
1130
|
+
return true;
|
|
1131
|
+
const value = input[key];
|
|
1132
|
+
if (undefined === value)
|
|
1133
|
+
return true;
|
|
1134
|
+
return _report(_exceptionable, {
|
|
1135
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1136
|
+
expected: "undefined",
|
|
1137
|
+
value: value,
|
|
1138
|
+
description: [
|
|
1139
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
1140
|
+
"",
|
|
1141
|
+
"Please remove the property next time."
|
|
1142
|
+
].join("\n")
|
|
1143
|
+
});
|
|
1144
|
+
}).every(flag => flag))].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
|
|
1145
|
+
path: _path + ".id",
|
|
1146
|
+
expected: "string",
|
|
1147
|
+
value: input.id
|
|
1148
|
+
}), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
1149
|
+
if (["id"].some(prop => key === prop))
|
|
1150
|
+
return true;
|
|
1151
|
+
const value = input[key];
|
|
1152
|
+
if (undefined === value)
|
|
1153
|
+
return true;
|
|
1154
|
+
return _report(_exceptionable, {
|
|
1155
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
1156
|
+
expected: "undefined",
|
|
1157
|
+
value: value,
|
|
1158
|
+
description: [
|
|
1159
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
1160
|
+
"",
|
|
1161
|
+
"Please remove the property next time."
|
|
1162
|
+
].join("\n")
|
|
1163
|
+
});
|
|
1164
|
+
}).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 => {
|
|
1165
|
+
if (false === __is(input)) {
|
|
1166
|
+
errors = [];
|
|
1167
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
1168
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
1169
|
+
path: _path + "",
|
|
1170
|
+
expected: "AssetEmbeddingRecord",
|
|
1171
|
+
value: input
|
|
1172
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
1173
|
+
path: _path + "",
|
|
1174
|
+
expected: "AssetEmbeddingRecord",
|
|
1175
|
+
value: input
|
|
1176
|
+
}))(input, "$input", true);
|
|
1177
|
+
const success = 0 === errors.length;
|
|
1178
|
+
return success ? {
|
|
1179
|
+
success,
|
|
1180
|
+
data: input
|
|
1181
|
+
} : {
|
|
1182
|
+
success,
|
|
1183
|
+
errors,
|
|
1184
|
+
data: input
|
|
1185
|
+
};
|
|
1186
|
+
}
|
|
1187
|
+
return {
|
|
1188
|
+
success: true,
|
|
1189
|
+
data: input
|
|
1190
|
+
};
|
|
1191
|
+
}; })()(input);
|
|
1192
|
+
}
|
|
1193
|
+
case "asset.icon": {
|
|
1194
|
+
return (() => { const _io0 = (input, _exceptionable = true) => null !== input.value && (undefined === input.value || "string" === typeof input.value || "object" === typeof input.value && null !== input.value && _io1(input.value, true && _exceptionable)) && (null !== input.dynamic && (undefined === input.dynamic || false === input.dynamic || Array.isArray(input.dynamic) && input.dynamic.every((elem, _index1) => "string" === typeof elem))) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
1195
|
+
if (["value", "dynamic"].some(prop => key === prop))
|
|
1196
|
+
return true;
|
|
1197
|
+
const value = input[key];
|
|
1198
|
+
if (undefined === value)
|
|
1199
|
+
return true;
|
|
1200
|
+
return false;
|
|
1201
|
+
})); const _io1 = (input, _exceptionable = true) => "object" === typeof input.__context && null !== input.__context && _io2(input.__context, true && _exceptionable) && "string" === typeof input.__returnValue && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
1202
|
+
if (["__context", "__returnValue"].some(prop => key === prop))
|
|
790
1203
|
return true;
|
|
791
1204
|
const value = input[key];
|
|
792
1205
|
if (undefined === value)
|
|
@@ -4927,11 +5340,860 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
4927
5340
|
expected: "string",
|
|
4928
5341
|
value: elem
|
|
4929
5342
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
4930
|
-
path: _path + ".value",
|
|
4931
|
-
expected: "(Array<string> | undefined)",
|
|
4932
|
-
value: input.value
|
|
4933
|
-
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
4934
|
-
if (["value"].some(prop => key === prop))
|
|
5343
|
+
path: _path + ".value",
|
|
5344
|
+
expected: "(Array<string> | undefined)",
|
|
5345
|
+
value: input.value
|
|
5346
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
5347
|
+
if (["value"].some(prop => key === prop))
|
|
5348
|
+
return true;
|
|
5349
|
+
const value = input[key];
|
|
5350
|
+
if (undefined === value)
|
|
5351
|
+
return true;
|
|
5352
|
+
return _report(_exceptionable, {
|
|
5353
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
5354
|
+
expected: "undefined",
|
|
5355
|
+
value: value,
|
|
5356
|
+
description: [
|
|
5357
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
5358
|
+
"",
|
|
5359
|
+
"Please remove the property next time."
|
|
5360
|
+
].join("\n")
|
|
5361
|
+
});
|
|
5362
|
+
}).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 => {
|
|
5363
|
+
if (false === __is(input)) {
|
|
5364
|
+
errors = [];
|
|
5365
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
5366
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
5367
|
+
path: _path + "",
|
|
5368
|
+
expected: "AssetCommentsRecord",
|
|
5369
|
+
value: input
|
|
5370
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
5371
|
+
path: _path + "",
|
|
5372
|
+
expected: "AssetCommentsRecord",
|
|
5373
|
+
value: input
|
|
5374
|
+
}))(input, "$input", true);
|
|
5375
|
+
const success = 0 === errors.length;
|
|
5376
|
+
return success ? {
|
|
5377
|
+
success,
|
|
5378
|
+
data: input
|
|
5379
|
+
} : {
|
|
5380
|
+
success,
|
|
5381
|
+
errors,
|
|
5382
|
+
data: input
|
|
5383
|
+
};
|
|
5384
|
+
}
|
|
5385
|
+
return {
|
|
5386
|
+
success: true,
|
|
5387
|
+
data: input
|
|
5388
|
+
};
|
|
5389
|
+
}; })()(input);
|
|
5390
|
+
}
|
|
5391
|
+
case ":asset.record?": {
|
|
5392
|
+
return (() => { const _io0 = (input, _exceptionable = true) => "string" === typeof input.id && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.created || "string" === typeof input.created) && (undefined === input.createdBy || "string" === typeof input.createdBy) && (undefined === input.createdByTitle || "string" === typeof input.createdByTitle) && (undefined === input.origin || "string" === typeof input.origin) && (undefined === input.modified || "string" === typeof input.modified) && (undefined === input.modifiedBy || "string" === typeof input.modifiedBy) && (undefined === input.modifiedByAll || Array.isArray(input.modifiedByAll) && input.modifiedByAll.every((elem, _index1) => "string" === typeof elem)) && (undefined === input.modifiedByTitle || "string" === typeof input.modifiedByTitle) && (undefined === input.duration || "number" === typeof input.duration) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every((elem, _index2) => "string" === typeof elem)) && (undefined === input.deadlines || Array.isArray(input.deadlines) && input.deadlines.every((elem, _index3) => "string" === typeof elem)) && (undefined === input.deadlinesCount || "number" === typeof input.deadlinesCount) && (undefined === input.deadlines_date_range || Array.isArray(input.deadlines_date_range) && input.deadlines_date_range.every((elem, _index4) => "object" === typeof elem && null !== elem && _io1(elem, true && _exceptionable))) && (undefined === input.assignees || Array.isArray(input.assignees) && input.assignees.every((elem, _index5) => "string" === typeof elem)) && (undefined === input.assigneesCount || "number" === typeof input.assigneesCount) && (undefined === input.locations || Array.isArray(input.locations) && input.locations.every((elem, _index6) => "object" === typeof elem && null !== elem && _io2(elem, true && _exceptionable))) && (undefined === input.locationsCount || "number" === typeof input.locationsCount) && (undefined === input.types || Array.isArray(input.types) && input.types.every((elem, _index7) => "string" === typeof elem)) && (undefined === input.primaryType || "string" === typeof input.primaryType) && (undefined === input.rawTypes || Array.isArray(input.rawTypes) && input.rawTypes.every((elem, _index8) => "string" === typeof elem)) && (undefined === input.status || "object" === typeof input.status && null !== input.status && false === Array.isArray(input.status) && _io3(input.status, true && _exceptionable)) && (undefined === input.published || Array.isArray(input.published) && input.published.every((elem, _index9) => "string" === typeof elem)) && (undefined === input.publishedCount || "number" === typeof input.publishedCount) && (undefined === input.storage || "object" === typeof input.storage && null !== input.storage && false === Array.isArray(input.storage) && _io5(input.storage, true && _exceptionable)) && (undefined === input.refs || "number" === typeof input.refs) && (undefined === input.refsByType || "object" === typeof input.refsByType && null !== input.refsByType && false === Array.isArray(input.refsByType) && _io6(input.refsByType, true && _exceptionable)) && (undefined === input.recurrence_date_range || "object" === typeof input.recurrence_date_range && null !== input.recurrence_date_range && _io7(input.recurrence_date_range, true && _exceptionable)) && (undefined === input.media_date_range || "object" === typeof input.media_date_range && null !== input.media_date_range && _io8(input.media_date_range, true && _exceptionable)) && (undefined === input.ingestschedule_date_range || "object" === typeof input.ingestschedule_date_range && null !== input.ingestschedule_date_range && _io9(input.ingestschedule_date_range, true && _exceptionable)) && (undefined === input.ingestschedule || "object" === typeof input.ingestschedule && null !== input.ingestschedule && false === Array.isArray(input.ingestschedule) && _io10(input.ingestschedule, true && _exceptionable)) && (undefined === input.username || "string" === typeof input.username) && (undefined === input.user || "string" === typeof input.user) && (undefined === input["note.text"] || "string" === typeof input["note.text"]) && (undefined === input.subtitles || "string" === typeof input.subtitles) && (undefined === input.graphics || "string" === typeof input.graphics) && (undefined === input.story || "object" === typeof input.story && null !== input.story && false === Array.isArray(input.story) && _io11(input.story, true && _exceptionable)) && (undefined === input.storyboard || "object" === typeof input.storyboard && null !== input.storyboard && false === Array.isArray(input.storyboard) && _io12(input.storyboard, true && _exceptionable)) && (undefined === input.media || "object" === typeof input.media && null !== input.media && false === Array.isArray(input.media) && _io13(input.media, true && _exceptionable)) && (undefined === input.embedding || Array.isArray(input.embedding) && input.embedding.every((elem, _index10) => "object" === typeof elem && null !== elem && _io14(elem, true && _exceptionable))) && Object.keys(input).every(key => {
|
|
5393
|
+
if (["id", "title", "description", "created", "createdBy", "createdByTitle", "origin", "modified", "modifiedBy", "modifiedByAll", "modifiedByTitle", "duration", "tags", "deadlines", "deadlinesCount", "deadlines_date_range", "assignees", "assigneesCount", "locations", "locationsCount", "types", "primaryType", "rawTypes", "status", "published", "publishedCount", "storage", "refs", "refsByType", "recurrence_date_range", "media_date_range", "ingestschedule_date_range", "ingestschedule", "username", "user", "note.text", "subtitles", "graphics", "story", "storyboard", "media", "embedding"].some(prop => key === prop))
|
|
5394
|
+
return true;
|
|
5395
|
+
const value = input[key];
|
|
5396
|
+
if (undefined === value)
|
|
5397
|
+
return true;
|
|
5398
|
+
return true;
|
|
5399
|
+
}); const _io1 = (input, _exceptionable = true) => "string" === typeof input.gte && "string" === typeof input.lte && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
5400
|
+
if (["gte", "lte"].some(prop => key === prop))
|
|
5401
|
+
return true;
|
|
5402
|
+
const value = input[key];
|
|
5403
|
+
if (undefined === value)
|
|
5404
|
+
return true;
|
|
5405
|
+
return false;
|
|
5406
|
+
})); const _io2 = (input, _exceptionable = true) => "number" === typeof input.lat && "number" === typeof input.lon && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
5407
|
+
if (["lat", "lon"].some(prop => key === prop))
|
|
5408
|
+
return true;
|
|
5409
|
+
const value = input[key];
|
|
5410
|
+
if (undefined === value)
|
|
5411
|
+
return true;
|
|
5412
|
+
return false;
|
|
5413
|
+
})); const _io3 = (input, _exceptionable = true) => (undefined === input.messages || Array.isArray(input.messages) && input.messages.every((elem, _index11) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io4(elem, true && _exceptionable))) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
5414
|
+
if (["messages"].some(prop => key === prop))
|
|
5415
|
+
return true;
|
|
5416
|
+
const value = input[key];
|
|
5417
|
+
if (undefined === value)
|
|
5418
|
+
return true;
|
|
5419
|
+
return false;
|
|
5420
|
+
})); const _io4 = (input, _exceptionable = true) => (undefined === input.code || "string" === typeof input.code) && (undefined === input.level || "number" === typeof input.level) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
5421
|
+
if (["code", "level"].some(prop => key === prop))
|
|
5422
|
+
return true;
|
|
5423
|
+
const value = input[key];
|
|
5424
|
+
if (undefined === value)
|
|
5425
|
+
return true;
|
|
5426
|
+
return false;
|
|
5427
|
+
})); const _io5 = (input, _exceptionable = true) => (undefined === input.files || Array.isArray(input.files) && input.files.every((elem, _index12) => "string" === typeof elem)) && (undefined === input.replicas || Array.isArray(input.replicas) && input.replicas.every((elem, _index13) => "string" === typeof elem)) && (undefined === input.locations || Array.isArray(input.locations) && input.locations.every((elem, _index14) => "string" === typeof elem)) && (undefined === input.zones || Array.isArray(input.zones) && input.zones.every((elem, _index15) => "string" === typeof elem)) && (undefined === input.uploading || "boolean" === typeof input.uploading) && (undefined === input.size || "number" === typeof input.size) && (undefined === input.filesCount || "number" === typeof input.filesCount) && (undefined === input.replicasCount || "number" === typeof input.replicasCount) && (undefined === input.locationsCount || "number" === typeof input.locationsCount) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
5428
|
+
if (["files", "replicas", "locations", "zones", "uploading", "size", "filesCount", "replicasCount", "locationsCount"].some(prop => key === prop))
|
|
5429
|
+
return true;
|
|
5430
|
+
const value = input[key];
|
|
5431
|
+
if (undefined === value)
|
|
5432
|
+
return true;
|
|
5433
|
+
return false;
|
|
5434
|
+
})); const _io6 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
5435
|
+
const value = input[key];
|
|
5436
|
+
if (undefined === value)
|
|
5437
|
+
return true;
|
|
5438
|
+
return "number" === typeof value;
|
|
5439
|
+
}); const _io7 = (input, _exceptionable = true) => "string" === typeof input.gte && (null === input.lte || "string" === typeof input.lte) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
5440
|
+
if (["gte", "lte"].some(prop => key === prop))
|
|
5441
|
+
return true;
|
|
5442
|
+
const value = input[key];
|
|
5443
|
+
if (undefined === value)
|
|
5444
|
+
return true;
|
|
5445
|
+
return false;
|
|
5446
|
+
})); const _io8 = (input, _exceptionable = true) => "string" === typeof input.gte && "string" === typeof input.lte && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
5447
|
+
if (["gte", "lte"].some(prop => key === prop))
|
|
5448
|
+
return true;
|
|
5449
|
+
const value = input[key];
|
|
5450
|
+
if (undefined === value)
|
|
5451
|
+
return true;
|
|
5452
|
+
return false;
|
|
5453
|
+
})); const _io9 = (input, _exceptionable = true) => "string" === typeof input.gte && (null === input.lte || "string" === typeof input.lte) && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
5454
|
+
if (["gte", "lte"].some(prop => key === prop))
|
|
5455
|
+
return true;
|
|
5456
|
+
const value = input[key];
|
|
5457
|
+
if (undefined === value)
|
|
5458
|
+
return true;
|
|
5459
|
+
return false;
|
|
5460
|
+
})); const _io10 = (input, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type) && (undefined === input.sources || Array.isArray(input.sources) && input.sources.every((elem, _index16) => "string" === typeof elem)) && (undefined === input.routes || Array.isArray(input.routes) && input.routes.every((elem, _index17) => "string" === typeof elem)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
5461
|
+
if (["type", "sources", "routes"].some(prop => key === prop))
|
|
5462
|
+
return true;
|
|
5463
|
+
const value = input[key];
|
|
5464
|
+
if (undefined === value)
|
|
5465
|
+
return true;
|
|
5466
|
+
return false;
|
|
5467
|
+
})); const _io11 = (input, _exceptionable = true) => (undefined === input.content || "string" === typeof input.content) && (undefined === input.graphics || Array.isArray(input.graphics) && input.graphics.every((elem, _index18) => "string" === typeof elem)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
5468
|
+
if (["content", "graphics"].some(prop => key === prop))
|
|
5469
|
+
return true;
|
|
5470
|
+
const value = input[key];
|
|
5471
|
+
if (undefined === value)
|
|
5472
|
+
return true;
|
|
5473
|
+
return false;
|
|
5474
|
+
})); const _io12 = (input, _exceptionable = true) => (undefined === input.content || Array.isArray(input.content)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
5475
|
+
if (["content"].some(prop => key === prop))
|
|
5476
|
+
return true;
|
|
5477
|
+
const value = input[key];
|
|
5478
|
+
if (undefined === value)
|
|
5479
|
+
return true;
|
|
5480
|
+
return false;
|
|
5481
|
+
})); const _io13 = (input, _exceptionable = true) => true && true && true && true && true && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
5482
|
+
if (["audio", "video", "timecode", "language", "transcribe"].some(prop => key === prop))
|
|
5483
|
+
return true;
|
|
5484
|
+
const value = input[key];
|
|
5485
|
+
if (undefined === value)
|
|
5486
|
+
return true;
|
|
5487
|
+
return false;
|
|
5488
|
+
})); const _io14 = (input, _exceptionable = true) => Array.isArray(input.vector) && input.vector.every((elem, _index19) => "number" === typeof elem) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
5489
|
+
if (["vector"].some(prop => key === prop))
|
|
5490
|
+
return true;
|
|
5491
|
+
const value = input[key];
|
|
5492
|
+
if (undefined === value)
|
|
5493
|
+
return true;
|
|
5494
|
+
return false;
|
|
5495
|
+
})); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || _report(_exceptionable, {
|
|
5496
|
+
path: _path + ".id",
|
|
5497
|
+
expected: "string",
|
|
5498
|
+
value: input.id
|
|
5499
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
5500
|
+
path: _path + ".title",
|
|
5501
|
+
expected: "(string | undefined)",
|
|
5502
|
+
value: input.title
|
|
5503
|
+
}), undefined === input.description || "string" === typeof input.description || _report(_exceptionable, {
|
|
5504
|
+
path: _path + ".description",
|
|
5505
|
+
expected: "(string | undefined)",
|
|
5506
|
+
value: input.description
|
|
5507
|
+
}), undefined === input.created || "string" === typeof input.created || _report(_exceptionable, {
|
|
5508
|
+
path: _path + ".created",
|
|
5509
|
+
expected: "(string | undefined)",
|
|
5510
|
+
value: input.created
|
|
5511
|
+
}), undefined === input.createdBy || "string" === typeof input.createdBy || _report(_exceptionable, {
|
|
5512
|
+
path: _path + ".createdBy",
|
|
5513
|
+
expected: "(string | undefined)",
|
|
5514
|
+
value: input.createdBy
|
|
5515
|
+
}), undefined === input.createdByTitle || "string" === typeof input.createdByTitle || _report(_exceptionable, {
|
|
5516
|
+
path: _path + ".createdByTitle",
|
|
5517
|
+
expected: "(string | undefined)",
|
|
5518
|
+
value: input.createdByTitle
|
|
5519
|
+
}), undefined === input.origin || "string" === typeof input.origin || _report(_exceptionable, {
|
|
5520
|
+
path: _path + ".origin",
|
|
5521
|
+
expected: "(string | undefined)",
|
|
5522
|
+
value: input.origin
|
|
5523
|
+
}), undefined === input.modified || "string" === typeof input.modified || _report(_exceptionable, {
|
|
5524
|
+
path: _path + ".modified",
|
|
5525
|
+
expected: "(string | undefined)",
|
|
5526
|
+
value: input.modified
|
|
5527
|
+
}), undefined === input.modifiedBy || "string" === typeof input.modifiedBy || _report(_exceptionable, {
|
|
5528
|
+
path: _path + ".modifiedBy",
|
|
5529
|
+
expected: "(string | undefined)",
|
|
5530
|
+
value: input.modifiedBy
|
|
5531
|
+
}), undefined === input.modifiedByAll || (Array.isArray(input.modifiedByAll) || _report(_exceptionable, {
|
|
5532
|
+
path: _path + ".modifiedByAll",
|
|
5533
|
+
expected: "(Array<string> | undefined)",
|
|
5534
|
+
value: input.modifiedByAll
|
|
5535
|
+
})) && input.modifiedByAll.map((elem, _index20) => "string" === typeof elem || _report(_exceptionable, {
|
|
5536
|
+
path: _path + ".modifiedByAll[" + _index20 + "]",
|
|
5537
|
+
expected: "string",
|
|
5538
|
+
value: elem
|
|
5539
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
5540
|
+
path: _path + ".modifiedByAll",
|
|
5541
|
+
expected: "(Array<string> | undefined)",
|
|
5542
|
+
value: input.modifiedByAll
|
|
5543
|
+
}), undefined === input.modifiedByTitle || "string" === typeof input.modifiedByTitle || _report(_exceptionable, {
|
|
5544
|
+
path: _path + ".modifiedByTitle",
|
|
5545
|
+
expected: "(string | undefined)",
|
|
5546
|
+
value: input.modifiedByTitle
|
|
5547
|
+
}), undefined === input.duration || "number" === typeof input.duration || _report(_exceptionable, {
|
|
5548
|
+
path: _path + ".duration",
|
|
5549
|
+
expected: "(number | undefined)",
|
|
5550
|
+
value: input.duration
|
|
5551
|
+
}), undefined === input.tags || (Array.isArray(input.tags) || _report(_exceptionable, {
|
|
5552
|
+
path: _path + ".tags",
|
|
5553
|
+
expected: "(Array<string> | undefined)",
|
|
5554
|
+
value: input.tags
|
|
5555
|
+
})) && input.tags.map((elem, _index21) => "string" === typeof elem || _report(_exceptionable, {
|
|
5556
|
+
path: _path + ".tags[" + _index21 + "]",
|
|
5557
|
+
expected: "string",
|
|
5558
|
+
value: elem
|
|
5559
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
5560
|
+
path: _path + ".tags",
|
|
5561
|
+
expected: "(Array<string> | undefined)",
|
|
5562
|
+
value: input.tags
|
|
5563
|
+
}), undefined === input.deadlines || (Array.isArray(input.deadlines) || _report(_exceptionable, {
|
|
5564
|
+
path: _path + ".deadlines",
|
|
5565
|
+
expected: "(Array<string> | undefined)",
|
|
5566
|
+
value: input.deadlines
|
|
5567
|
+
})) && input.deadlines.map((elem, _index22) => "string" === typeof elem || _report(_exceptionable, {
|
|
5568
|
+
path: _path + ".deadlines[" + _index22 + "]",
|
|
5569
|
+
expected: "string",
|
|
5570
|
+
value: elem
|
|
5571
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
5572
|
+
path: _path + ".deadlines",
|
|
5573
|
+
expected: "(Array<string> | undefined)",
|
|
5574
|
+
value: input.deadlines
|
|
5575
|
+
}), undefined === input.deadlinesCount || "number" === typeof input.deadlinesCount || _report(_exceptionable, {
|
|
5576
|
+
path: _path + ".deadlinesCount",
|
|
5577
|
+
expected: "(number | undefined)",
|
|
5578
|
+
value: input.deadlinesCount
|
|
5579
|
+
}), undefined === input.deadlines_date_range || (Array.isArray(input.deadlines_date_range) || _report(_exceptionable, {
|
|
5580
|
+
path: _path + ".deadlines_date_range",
|
|
5581
|
+
expected: "(Array<__type> | undefined)",
|
|
5582
|
+
value: input.deadlines_date_range
|
|
5583
|
+
})) && input.deadlines_date_range.map((elem, _index23) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5584
|
+
path: _path + ".deadlines_date_range[" + _index23 + "]",
|
|
5585
|
+
expected: "__type",
|
|
5586
|
+
value: elem
|
|
5587
|
+
})) && _vo1(elem, _path + ".deadlines_date_range[" + _index23 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
5588
|
+
path: _path + ".deadlines_date_range[" + _index23 + "]",
|
|
5589
|
+
expected: "__type",
|
|
5590
|
+
value: elem
|
|
5591
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
5592
|
+
path: _path + ".deadlines_date_range",
|
|
5593
|
+
expected: "(Array<__type> | undefined)",
|
|
5594
|
+
value: input.deadlines_date_range
|
|
5595
|
+
}), undefined === input.assignees || (Array.isArray(input.assignees) || _report(_exceptionable, {
|
|
5596
|
+
path: _path + ".assignees",
|
|
5597
|
+
expected: "(Array<string> | undefined)",
|
|
5598
|
+
value: input.assignees
|
|
5599
|
+
})) && input.assignees.map((elem, _index24) => "string" === typeof elem || _report(_exceptionable, {
|
|
5600
|
+
path: _path + ".assignees[" + _index24 + "]",
|
|
5601
|
+
expected: "string",
|
|
5602
|
+
value: elem
|
|
5603
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
5604
|
+
path: _path + ".assignees",
|
|
5605
|
+
expected: "(Array<string> | undefined)",
|
|
5606
|
+
value: input.assignees
|
|
5607
|
+
}), undefined === input.assigneesCount || "number" === typeof input.assigneesCount || _report(_exceptionable, {
|
|
5608
|
+
path: _path + ".assigneesCount",
|
|
5609
|
+
expected: "(number | undefined)",
|
|
5610
|
+
value: input.assigneesCount
|
|
5611
|
+
}), undefined === input.locations || (Array.isArray(input.locations) || _report(_exceptionable, {
|
|
5612
|
+
path: _path + ".locations",
|
|
5613
|
+
expected: "(Array<__type>.o1 | undefined)",
|
|
5614
|
+
value: input.locations
|
|
5615
|
+
})) && input.locations.map((elem, _index25) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5616
|
+
path: _path + ".locations[" + _index25 + "]",
|
|
5617
|
+
expected: "__type.o1",
|
|
5618
|
+
value: elem
|
|
5619
|
+
})) && _vo2(elem, _path + ".locations[" + _index25 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
5620
|
+
path: _path + ".locations[" + _index25 + "]",
|
|
5621
|
+
expected: "__type.o1",
|
|
5622
|
+
value: elem
|
|
5623
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
5624
|
+
path: _path + ".locations",
|
|
5625
|
+
expected: "(Array<__type>.o1 | undefined)",
|
|
5626
|
+
value: input.locations
|
|
5627
|
+
}), undefined === input.locationsCount || "number" === typeof input.locationsCount || _report(_exceptionable, {
|
|
5628
|
+
path: _path + ".locationsCount",
|
|
5629
|
+
expected: "(number | undefined)",
|
|
5630
|
+
value: input.locationsCount
|
|
5631
|
+
}), undefined === input.types || (Array.isArray(input.types) || _report(_exceptionable, {
|
|
5632
|
+
path: _path + ".types",
|
|
5633
|
+
expected: "(Array<string> | undefined)",
|
|
5634
|
+
value: input.types
|
|
5635
|
+
})) && input.types.map((elem, _index26) => "string" === typeof elem || _report(_exceptionable, {
|
|
5636
|
+
path: _path + ".types[" + _index26 + "]",
|
|
5637
|
+
expected: "string",
|
|
5638
|
+
value: elem
|
|
5639
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
5640
|
+
path: _path + ".types",
|
|
5641
|
+
expected: "(Array<string> | undefined)",
|
|
5642
|
+
value: input.types
|
|
5643
|
+
}), undefined === input.primaryType || "string" === typeof input.primaryType || _report(_exceptionable, {
|
|
5644
|
+
path: _path + ".primaryType",
|
|
5645
|
+
expected: "(string | undefined)",
|
|
5646
|
+
value: input.primaryType
|
|
5647
|
+
}), undefined === input.rawTypes || (Array.isArray(input.rawTypes) || _report(_exceptionable, {
|
|
5648
|
+
path: _path + ".rawTypes",
|
|
5649
|
+
expected: "(Array<string> | undefined)",
|
|
5650
|
+
value: input.rawTypes
|
|
5651
|
+
})) && input.rawTypes.map((elem, _index27) => "string" === typeof elem || _report(_exceptionable, {
|
|
5652
|
+
path: _path + ".rawTypes[" + _index27 + "]",
|
|
5653
|
+
expected: "string",
|
|
5654
|
+
value: elem
|
|
5655
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
5656
|
+
path: _path + ".rawTypes",
|
|
5657
|
+
expected: "(Array<string> | undefined)",
|
|
5658
|
+
value: input.rawTypes
|
|
5659
|
+
}), undefined === input.status || ("object" === typeof input.status && null !== input.status && false === Array.isArray(input.status) || _report(_exceptionable, {
|
|
5660
|
+
path: _path + ".status",
|
|
5661
|
+
expected: "(__type.o2 | undefined)",
|
|
5662
|
+
value: input.status
|
|
5663
|
+
})) && _vo3(input.status, _path + ".status", true && _exceptionable) || _report(_exceptionable, {
|
|
5664
|
+
path: _path + ".status",
|
|
5665
|
+
expected: "(__type.o2 | undefined)",
|
|
5666
|
+
value: input.status
|
|
5667
|
+
}), undefined === input.published || (Array.isArray(input.published) || _report(_exceptionable, {
|
|
5668
|
+
path: _path + ".published",
|
|
5669
|
+
expected: "(Array<string> | undefined)",
|
|
5670
|
+
value: input.published
|
|
5671
|
+
})) && input.published.map((elem, _index28) => "string" === typeof elem || _report(_exceptionable, {
|
|
5672
|
+
path: _path + ".published[" + _index28 + "]",
|
|
5673
|
+
expected: "string",
|
|
5674
|
+
value: elem
|
|
5675
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
5676
|
+
path: _path + ".published",
|
|
5677
|
+
expected: "(Array<string> | undefined)",
|
|
5678
|
+
value: input.published
|
|
5679
|
+
}), undefined === input.publishedCount || "number" === typeof input.publishedCount || _report(_exceptionable, {
|
|
5680
|
+
path: _path + ".publishedCount",
|
|
5681
|
+
expected: "(number | undefined)",
|
|
5682
|
+
value: input.publishedCount
|
|
5683
|
+
}), undefined === input.storage || ("object" === typeof input.storage && null !== input.storage && false === Array.isArray(input.storage) || _report(_exceptionable, {
|
|
5684
|
+
path: _path + ".storage",
|
|
5685
|
+
expected: "(__type.o4 | undefined)",
|
|
5686
|
+
value: input.storage
|
|
5687
|
+
})) && _vo5(input.storage, _path + ".storage", true && _exceptionable) || _report(_exceptionable, {
|
|
5688
|
+
path: _path + ".storage",
|
|
5689
|
+
expected: "(__type.o4 | undefined)",
|
|
5690
|
+
value: input.storage
|
|
5691
|
+
}), undefined === input.refs || "number" === typeof input.refs || _report(_exceptionable, {
|
|
5692
|
+
path: _path + ".refs",
|
|
5693
|
+
expected: "(number | undefined)",
|
|
5694
|
+
value: input.refs
|
|
5695
|
+
}), undefined === input.refsByType || ("object" === typeof input.refsByType && null !== input.refsByType && false === Array.isArray(input.refsByType) || _report(_exceptionable, {
|
|
5696
|
+
path: _path + ".refsByType",
|
|
5697
|
+
expected: "(Record<string, number> | undefined)",
|
|
5698
|
+
value: input.refsByType
|
|
5699
|
+
})) && _vo6(input.refsByType, _path + ".refsByType", true && _exceptionable) || _report(_exceptionable, {
|
|
5700
|
+
path: _path + ".refsByType",
|
|
5701
|
+
expected: "(Record<string, number> | undefined)",
|
|
5702
|
+
value: input.refsByType
|
|
5703
|
+
}), undefined === input.recurrence_date_range || ("object" === typeof input.recurrence_date_range && null !== input.recurrence_date_range || _report(_exceptionable, {
|
|
5704
|
+
path: _path + ".recurrence_date_range",
|
|
5705
|
+
expected: "(__type.o5 | undefined)",
|
|
5706
|
+
value: input.recurrence_date_range
|
|
5707
|
+
})) && _vo7(input.recurrence_date_range, _path + ".recurrence_date_range", true && _exceptionable) || _report(_exceptionable, {
|
|
5708
|
+
path: _path + ".recurrence_date_range",
|
|
5709
|
+
expected: "(__type.o5 | undefined)",
|
|
5710
|
+
value: input.recurrence_date_range
|
|
5711
|
+
}), undefined === input.media_date_range || ("object" === typeof input.media_date_range && null !== input.media_date_range || _report(_exceptionable, {
|
|
5712
|
+
path: _path + ".media_date_range",
|
|
5713
|
+
expected: "(__type.o6 | undefined)",
|
|
5714
|
+
value: input.media_date_range
|
|
5715
|
+
})) && _vo8(input.media_date_range, _path + ".media_date_range", true && _exceptionable) || _report(_exceptionable, {
|
|
5716
|
+
path: _path + ".media_date_range",
|
|
5717
|
+
expected: "(__type.o6 | undefined)",
|
|
5718
|
+
value: input.media_date_range
|
|
5719
|
+
}), undefined === input.ingestschedule_date_range || ("object" === typeof input.ingestschedule_date_range && null !== input.ingestschedule_date_range || _report(_exceptionable, {
|
|
5720
|
+
path: _path + ".ingestschedule_date_range",
|
|
5721
|
+
expected: "(__type.o7 | undefined)",
|
|
5722
|
+
value: input.ingestschedule_date_range
|
|
5723
|
+
})) && _vo9(input.ingestschedule_date_range, _path + ".ingestschedule_date_range", true && _exceptionable) || _report(_exceptionable, {
|
|
5724
|
+
path: _path + ".ingestschedule_date_range",
|
|
5725
|
+
expected: "(__type.o7 | undefined)",
|
|
5726
|
+
value: input.ingestschedule_date_range
|
|
5727
|
+
}), undefined === input.ingestschedule || ("object" === typeof input.ingestschedule && null !== input.ingestschedule && false === Array.isArray(input.ingestschedule) || _report(_exceptionable, {
|
|
5728
|
+
path: _path + ".ingestschedule",
|
|
5729
|
+
expected: "(__type.o8 | undefined)",
|
|
5730
|
+
value: input.ingestschedule
|
|
5731
|
+
})) && _vo10(input.ingestschedule, _path + ".ingestschedule", true && _exceptionable) || _report(_exceptionable, {
|
|
5732
|
+
path: _path + ".ingestschedule",
|
|
5733
|
+
expected: "(__type.o8 | undefined)",
|
|
5734
|
+
value: input.ingestschedule
|
|
5735
|
+
}), undefined === input.username || "string" === typeof input.username || _report(_exceptionable, {
|
|
5736
|
+
path: _path + ".username",
|
|
5737
|
+
expected: "(string | undefined)",
|
|
5738
|
+
value: input.username
|
|
5739
|
+
}), undefined === input.user || "string" === typeof input.user || _report(_exceptionable, {
|
|
5740
|
+
path: _path + ".user",
|
|
5741
|
+
expected: "(string | undefined)",
|
|
5742
|
+
value: input.user
|
|
5743
|
+
}), undefined === input["note.text"] || "string" === typeof input["note.text"] || _report(_exceptionable, {
|
|
5744
|
+
path: _path + "[\"note.text\"]",
|
|
5745
|
+
expected: "(string | undefined)",
|
|
5746
|
+
value: input["note.text"]
|
|
5747
|
+
}), undefined === input.subtitles || "string" === typeof input.subtitles || _report(_exceptionable, {
|
|
5748
|
+
path: _path + ".subtitles",
|
|
5749
|
+
expected: "(string | undefined)",
|
|
5750
|
+
value: input.subtitles
|
|
5751
|
+
}), undefined === input.graphics || "string" === typeof input.graphics || _report(_exceptionable, {
|
|
5752
|
+
path: _path + ".graphics",
|
|
5753
|
+
expected: "(string | undefined)",
|
|
5754
|
+
value: input.graphics
|
|
5755
|
+
}), undefined === input.story || ("object" === typeof input.story && null !== input.story && false === Array.isArray(input.story) || _report(_exceptionable, {
|
|
5756
|
+
path: _path + ".story",
|
|
5757
|
+
expected: "(__type.o9 | undefined)",
|
|
5758
|
+
value: input.story
|
|
5759
|
+
})) && _vo11(input.story, _path + ".story", true && _exceptionable) || _report(_exceptionable, {
|
|
5760
|
+
path: _path + ".story",
|
|
5761
|
+
expected: "(__type.o9 | undefined)",
|
|
5762
|
+
value: input.story
|
|
5763
|
+
}), undefined === input.storyboard || ("object" === typeof input.storyboard && null !== input.storyboard && false === Array.isArray(input.storyboard) || _report(_exceptionable, {
|
|
5764
|
+
path: _path + ".storyboard",
|
|
5765
|
+
expected: "(__type.o10 | undefined)",
|
|
5766
|
+
value: input.storyboard
|
|
5767
|
+
})) && _vo12(input.storyboard, _path + ".storyboard", true && _exceptionable) || _report(_exceptionable, {
|
|
5768
|
+
path: _path + ".storyboard",
|
|
5769
|
+
expected: "(__type.o10 | undefined)",
|
|
5770
|
+
value: input.storyboard
|
|
5771
|
+
}), undefined === input.media || ("object" === typeof input.media && null !== input.media && false === Array.isArray(input.media) || _report(_exceptionable, {
|
|
5772
|
+
path: _path + ".media",
|
|
5773
|
+
expected: "(__type.o11 | undefined)",
|
|
5774
|
+
value: input.media
|
|
5775
|
+
})) && _vo13(input.media, _path + ".media", true && _exceptionable) || _report(_exceptionable, {
|
|
5776
|
+
path: _path + ".media",
|
|
5777
|
+
expected: "(__type.o11 | undefined)",
|
|
5778
|
+
value: input.media
|
|
5779
|
+
}), undefined === input.embedding || (Array.isArray(input.embedding) || _report(_exceptionable, {
|
|
5780
|
+
path: _path + ".embedding",
|
|
5781
|
+
expected: "(Array<__type>.o3 | undefined)",
|
|
5782
|
+
value: input.embedding
|
|
5783
|
+
})) && input.embedding.map((elem, _index29) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
5784
|
+
path: _path + ".embedding[" + _index29 + "]",
|
|
5785
|
+
expected: "__type.o12",
|
|
5786
|
+
value: elem
|
|
5787
|
+
})) && _vo14(elem, _path + ".embedding[" + _index29 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
5788
|
+
path: _path + ".embedding[" + _index29 + "]",
|
|
5789
|
+
expected: "__type.o12",
|
|
5790
|
+
value: elem
|
|
5791
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
5792
|
+
path: _path + ".embedding",
|
|
5793
|
+
expected: "(Array<__type>.o3 | undefined)",
|
|
5794
|
+
value: input.embedding
|
|
5795
|
+
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
5796
|
+
if (["id", "title", "description", "created", "createdBy", "createdByTitle", "origin", "modified", "modifiedBy", "modifiedByAll", "modifiedByTitle", "duration", "tags", "deadlines", "deadlinesCount", "deadlines_date_range", "assignees", "assigneesCount", "locations", "locationsCount", "types", "primaryType", "rawTypes", "status", "published", "publishedCount", "storage", "refs", "refsByType", "recurrence_date_range", "media_date_range", "ingestschedule_date_range", "ingestschedule", "username", "user", "note.text", "subtitles", "graphics", "story", "storyboard", "media", "embedding"].some(prop => key === prop))
|
|
5797
|
+
return true;
|
|
5798
|
+
const value = input[key];
|
|
5799
|
+
if (undefined === value)
|
|
5800
|
+
return true;
|
|
5801
|
+
return true;
|
|
5802
|
+
}).every(flag => flag)].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.gte || _report(_exceptionable, {
|
|
5803
|
+
path: _path + ".gte",
|
|
5804
|
+
expected: "string",
|
|
5805
|
+
value: input.gte
|
|
5806
|
+
}), "string" === typeof input.lte || _report(_exceptionable, {
|
|
5807
|
+
path: _path + ".lte",
|
|
5808
|
+
expected: "string",
|
|
5809
|
+
value: input.lte
|
|
5810
|
+
}), 2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
5811
|
+
if (["gte", "lte"].some(prop => key === prop))
|
|
5812
|
+
return true;
|
|
5813
|
+
const value = input[key];
|
|
5814
|
+
if (undefined === value)
|
|
5815
|
+
return true;
|
|
5816
|
+
return _report(_exceptionable, {
|
|
5817
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
5818
|
+
expected: "undefined",
|
|
5819
|
+
value: value,
|
|
5820
|
+
description: [
|
|
5821
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
5822
|
+
"",
|
|
5823
|
+
"Please remove the property next time."
|
|
5824
|
+
].join("\n")
|
|
5825
|
+
});
|
|
5826
|
+
}).every(flag => flag))].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["number" === typeof input.lat || _report(_exceptionable, {
|
|
5827
|
+
path: _path + ".lat",
|
|
5828
|
+
expected: "number",
|
|
5829
|
+
value: input.lat
|
|
5830
|
+
}), "number" === typeof input.lon || _report(_exceptionable, {
|
|
5831
|
+
path: _path + ".lon",
|
|
5832
|
+
expected: "number",
|
|
5833
|
+
value: input.lon
|
|
5834
|
+
}), 2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
5835
|
+
if (["lat", "lon"].some(prop => key === prop))
|
|
5836
|
+
return true;
|
|
5837
|
+
const value = input[key];
|
|
5838
|
+
if (undefined === value)
|
|
5839
|
+
return true;
|
|
5840
|
+
return _report(_exceptionable, {
|
|
5841
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
5842
|
+
expected: "undefined",
|
|
5843
|
+
value: value,
|
|
5844
|
+
description: [
|
|
5845
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
5846
|
+
"",
|
|
5847
|
+
"Please remove the property next time."
|
|
5848
|
+
].join("\n")
|
|
5849
|
+
});
|
|
5850
|
+
}).every(flag => flag))].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => [undefined === input.messages || (Array.isArray(input.messages) || _report(_exceptionable, {
|
|
5851
|
+
path: _path + ".messages",
|
|
5852
|
+
expected: "(Array<__type>.o2 | undefined)",
|
|
5853
|
+
value: input.messages
|
|
5854
|
+
})) && input.messages.map((elem, _index30) => ("object" === typeof elem && null !== elem && false === Array.isArray(elem) || _report(_exceptionable, {
|
|
5855
|
+
path: _path + ".messages[" + _index30 + "]",
|
|
5856
|
+
expected: "__type.o3",
|
|
5857
|
+
value: elem
|
|
5858
|
+
})) && _vo4(elem, _path + ".messages[" + _index30 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
5859
|
+
path: _path + ".messages[" + _index30 + "]",
|
|
5860
|
+
expected: "__type.o3",
|
|
5861
|
+
value: elem
|
|
5862
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
5863
|
+
path: _path + ".messages",
|
|
5864
|
+
expected: "(Array<__type>.o2 | undefined)",
|
|
5865
|
+
value: input.messages
|
|
5866
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
5867
|
+
if (["messages"].some(prop => key === prop))
|
|
5868
|
+
return true;
|
|
5869
|
+
const value = input[key];
|
|
5870
|
+
if (undefined === value)
|
|
5871
|
+
return true;
|
|
5872
|
+
return _report(_exceptionable, {
|
|
5873
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
5874
|
+
expected: "undefined",
|
|
5875
|
+
value: value,
|
|
5876
|
+
description: [
|
|
5877
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
5878
|
+
"",
|
|
5879
|
+
"Please remove the property next time."
|
|
5880
|
+
].join("\n")
|
|
5881
|
+
});
|
|
5882
|
+
}).every(flag => flag))].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [undefined === input.code || "string" === typeof input.code || _report(_exceptionable, {
|
|
5883
|
+
path: _path + ".code",
|
|
5884
|
+
expected: "(string | undefined)",
|
|
5885
|
+
value: input.code
|
|
5886
|
+
}), undefined === input.level || "number" === typeof input.level || _report(_exceptionable, {
|
|
5887
|
+
path: _path + ".level",
|
|
5888
|
+
expected: "(number | undefined)",
|
|
5889
|
+
value: input.level
|
|
5890
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
5891
|
+
if (["code", "level"].some(prop => key === prop))
|
|
5892
|
+
return true;
|
|
5893
|
+
const value = input[key];
|
|
5894
|
+
if (undefined === value)
|
|
5895
|
+
return true;
|
|
5896
|
+
return _report(_exceptionable, {
|
|
5897
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
5898
|
+
expected: "undefined",
|
|
5899
|
+
value: value,
|
|
5900
|
+
description: [
|
|
5901
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
5902
|
+
"",
|
|
5903
|
+
"Please remove the property next time."
|
|
5904
|
+
].join("\n")
|
|
5905
|
+
});
|
|
5906
|
+
}).every(flag => flag))].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => [undefined === input.files || (Array.isArray(input.files) || _report(_exceptionable, {
|
|
5907
|
+
path: _path + ".files",
|
|
5908
|
+
expected: "(Array<string> | undefined)",
|
|
5909
|
+
value: input.files
|
|
5910
|
+
})) && input.files.map((elem, _index31) => "string" === typeof elem || _report(_exceptionable, {
|
|
5911
|
+
path: _path + ".files[" + _index31 + "]",
|
|
5912
|
+
expected: "string",
|
|
5913
|
+
value: elem
|
|
5914
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
5915
|
+
path: _path + ".files",
|
|
5916
|
+
expected: "(Array<string> | undefined)",
|
|
5917
|
+
value: input.files
|
|
5918
|
+
}), undefined === input.replicas || (Array.isArray(input.replicas) || _report(_exceptionable, {
|
|
5919
|
+
path: _path + ".replicas",
|
|
5920
|
+
expected: "(Array<string> | undefined)",
|
|
5921
|
+
value: input.replicas
|
|
5922
|
+
})) && input.replicas.map((elem, _index32) => "string" === typeof elem || _report(_exceptionable, {
|
|
5923
|
+
path: _path + ".replicas[" + _index32 + "]",
|
|
5924
|
+
expected: "string",
|
|
5925
|
+
value: elem
|
|
5926
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
5927
|
+
path: _path + ".replicas",
|
|
5928
|
+
expected: "(Array<string> | undefined)",
|
|
5929
|
+
value: input.replicas
|
|
5930
|
+
}), undefined === input.locations || (Array.isArray(input.locations) || _report(_exceptionable, {
|
|
5931
|
+
path: _path + ".locations",
|
|
5932
|
+
expected: "(Array<string> | undefined)",
|
|
5933
|
+
value: input.locations
|
|
5934
|
+
})) && input.locations.map((elem, _index33) => "string" === typeof elem || _report(_exceptionable, {
|
|
5935
|
+
path: _path + ".locations[" + _index33 + "]",
|
|
5936
|
+
expected: "string",
|
|
5937
|
+
value: elem
|
|
5938
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
5939
|
+
path: _path + ".locations",
|
|
5940
|
+
expected: "(Array<string> | undefined)",
|
|
5941
|
+
value: input.locations
|
|
5942
|
+
}), undefined === input.zones || (Array.isArray(input.zones) || _report(_exceptionable, {
|
|
5943
|
+
path: _path + ".zones",
|
|
5944
|
+
expected: "(Array<string> | undefined)",
|
|
5945
|
+
value: input.zones
|
|
5946
|
+
})) && input.zones.map((elem, _index34) => "string" === typeof elem || _report(_exceptionable, {
|
|
5947
|
+
path: _path + ".zones[" + _index34 + "]",
|
|
5948
|
+
expected: "string",
|
|
5949
|
+
value: elem
|
|
5950
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
5951
|
+
path: _path + ".zones",
|
|
5952
|
+
expected: "(Array<string> | undefined)",
|
|
5953
|
+
value: input.zones
|
|
5954
|
+
}), undefined === input.uploading || "boolean" === typeof input.uploading || _report(_exceptionable, {
|
|
5955
|
+
path: _path + ".uploading",
|
|
5956
|
+
expected: "(boolean | undefined)",
|
|
5957
|
+
value: input.uploading
|
|
5958
|
+
}), undefined === input.size || "number" === typeof input.size || _report(_exceptionable, {
|
|
5959
|
+
path: _path + ".size",
|
|
5960
|
+
expected: "(number | undefined)",
|
|
5961
|
+
value: input.size
|
|
5962
|
+
}), undefined === input.filesCount || "number" === typeof input.filesCount || _report(_exceptionable, {
|
|
5963
|
+
path: _path + ".filesCount",
|
|
5964
|
+
expected: "(number | undefined)",
|
|
5965
|
+
value: input.filesCount
|
|
5966
|
+
}), undefined === input.replicasCount || "number" === typeof input.replicasCount || _report(_exceptionable, {
|
|
5967
|
+
path: _path + ".replicasCount",
|
|
5968
|
+
expected: "(number | undefined)",
|
|
5969
|
+
value: input.replicasCount
|
|
5970
|
+
}), undefined === input.locationsCount || "number" === typeof input.locationsCount || _report(_exceptionable, {
|
|
5971
|
+
path: _path + ".locationsCount",
|
|
5972
|
+
expected: "(number | undefined)",
|
|
5973
|
+
value: input.locationsCount
|
|
5974
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
5975
|
+
if (["files", "replicas", "locations", "zones", "uploading", "size", "filesCount", "replicasCount", "locationsCount"].some(prop => key === prop))
|
|
5976
|
+
return true;
|
|
5977
|
+
const value = input[key];
|
|
5978
|
+
if (undefined === value)
|
|
5979
|
+
return true;
|
|
5980
|
+
return _report(_exceptionable, {
|
|
5981
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
5982
|
+
expected: "undefined",
|
|
5983
|
+
value: value,
|
|
5984
|
+
description: [
|
|
5985
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
5986
|
+
"",
|
|
5987
|
+
"Please remove the property next time."
|
|
5988
|
+
].join("\n")
|
|
5989
|
+
});
|
|
5990
|
+
}).every(flag => flag))].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
5991
|
+
const value = input[key];
|
|
5992
|
+
if (undefined === value)
|
|
5993
|
+
return true;
|
|
5994
|
+
return "number" === typeof value || _report(_exceptionable, {
|
|
5995
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
5996
|
+
expected: "number",
|
|
5997
|
+
value: value
|
|
5998
|
+
});
|
|
5999
|
+
}).every(flag => flag)].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.gte || _report(_exceptionable, {
|
|
6000
|
+
path: _path + ".gte",
|
|
6001
|
+
expected: "string",
|
|
6002
|
+
value: input.gte
|
|
6003
|
+
}), null === input.lte || "string" === typeof input.lte || _report(_exceptionable, {
|
|
6004
|
+
path: _path + ".lte",
|
|
6005
|
+
expected: "(null | string)",
|
|
6006
|
+
value: input.lte
|
|
6007
|
+
}), 2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
6008
|
+
if (["gte", "lte"].some(prop => key === prop))
|
|
6009
|
+
return true;
|
|
6010
|
+
const value = input[key];
|
|
6011
|
+
if (undefined === value)
|
|
6012
|
+
return true;
|
|
6013
|
+
return _report(_exceptionable, {
|
|
6014
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
6015
|
+
expected: "undefined",
|
|
6016
|
+
value: value,
|
|
6017
|
+
description: [
|
|
6018
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
6019
|
+
"",
|
|
6020
|
+
"Please remove the property next time."
|
|
6021
|
+
].join("\n")
|
|
6022
|
+
});
|
|
6023
|
+
}).every(flag => flag))].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.gte || _report(_exceptionable, {
|
|
6024
|
+
path: _path + ".gte",
|
|
6025
|
+
expected: "string",
|
|
6026
|
+
value: input.gte
|
|
6027
|
+
}), "string" === typeof input.lte || _report(_exceptionable, {
|
|
6028
|
+
path: _path + ".lte",
|
|
6029
|
+
expected: "string",
|
|
6030
|
+
value: input.lte
|
|
6031
|
+
}), 2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
6032
|
+
if (["gte", "lte"].some(prop => key === prop))
|
|
6033
|
+
return true;
|
|
6034
|
+
const value = input[key];
|
|
6035
|
+
if (undefined === value)
|
|
6036
|
+
return true;
|
|
6037
|
+
return _report(_exceptionable, {
|
|
6038
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
6039
|
+
expected: "undefined",
|
|
6040
|
+
value: value,
|
|
6041
|
+
description: [
|
|
6042
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
6043
|
+
"",
|
|
6044
|
+
"Please remove the property next time."
|
|
6045
|
+
].join("\n")
|
|
6046
|
+
});
|
|
6047
|
+
}).every(flag => flag))].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => ["string" === typeof input.gte || _report(_exceptionable, {
|
|
6048
|
+
path: _path + ".gte",
|
|
6049
|
+
expected: "string",
|
|
6050
|
+
value: input.gte
|
|
6051
|
+
}), null === input.lte || "string" === typeof input.lte || _report(_exceptionable, {
|
|
6052
|
+
path: _path + ".lte",
|
|
6053
|
+
expected: "(null | string)",
|
|
6054
|
+
value: input.lte
|
|
6055
|
+
}), 2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
6056
|
+
if (["gte", "lte"].some(prop => key === prop))
|
|
6057
|
+
return true;
|
|
6058
|
+
const value = input[key];
|
|
6059
|
+
if (undefined === value)
|
|
6060
|
+
return true;
|
|
6061
|
+
return _report(_exceptionable, {
|
|
6062
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
6063
|
+
expected: "undefined",
|
|
6064
|
+
value: value,
|
|
6065
|
+
description: [
|
|
6066
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
6067
|
+
"",
|
|
6068
|
+
"Please remove the property next time."
|
|
6069
|
+
].join("\n")
|
|
6070
|
+
});
|
|
6071
|
+
}).every(flag => flag))].every(flag => flag); const _vo10 = (input, _path, _exceptionable = true) => [undefined === input.type || "string" === typeof input.type || _report(_exceptionable, {
|
|
6072
|
+
path: _path + ".type",
|
|
6073
|
+
expected: "(string | undefined)",
|
|
6074
|
+
value: input.type
|
|
6075
|
+
}), undefined === input.sources || (Array.isArray(input.sources) || _report(_exceptionable, {
|
|
6076
|
+
path: _path + ".sources",
|
|
6077
|
+
expected: "(Array<string> | undefined)",
|
|
6078
|
+
value: input.sources
|
|
6079
|
+
})) && input.sources.map((elem, _index35) => "string" === typeof elem || _report(_exceptionable, {
|
|
6080
|
+
path: _path + ".sources[" + _index35 + "]",
|
|
6081
|
+
expected: "string",
|
|
6082
|
+
value: elem
|
|
6083
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
6084
|
+
path: _path + ".sources",
|
|
6085
|
+
expected: "(Array<string> | undefined)",
|
|
6086
|
+
value: input.sources
|
|
6087
|
+
}), undefined === input.routes || (Array.isArray(input.routes) || _report(_exceptionable, {
|
|
6088
|
+
path: _path + ".routes",
|
|
6089
|
+
expected: "(Array<string> | undefined)",
|
|
6090
|
+
value: input.routes
|
|
6091
|
+
})) && input.routes.map((elem, _index36) => "string" === typeof elem || _report(_exceptionable, {
|
|
6092
|
+
path: _path + ".routes[" + _index36 + "]",
|
|
6093
|
+
expected: "string",
|
|
6094
|
+
value: elem
|
|
6095
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
6096
|
+
path: _path + ".routes",
|
|
6097
|
+
expected: "(Array<string> | undefined)",
|
|
6098
|
+
value: input.routes
|
|
6099
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
6100
|
+
if (["type", "sources", "routes"].some(prop => key === prop))
|
|
6101
|
+
return true;
|
|
6102
|
+
const value = input[key];
|
|
6103
|
+
if (undefined === value)
|
|
6104
|
+
return true;
|
|
6105
|
+
return _report(_exceptionable, {
|
|
6106
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
6107
|
+
expected: "undefined",
|
|
6108
|
+
value: value,
|
|
6109
|
+
description: [
|
|
6110
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
6111
|
+
"",
|
|
6112
|
+
"Please remove the property next time."
|
|
6113
|
+
].join("\n")
|
|
6114
|
+
});
|
|
6115
|
+
}).every(flag => flag))].every(flag => flag); const _vo11 = (input, _path, _exceptionable = true) => [undefined === input.content || "string" === typeof input.content || _report(_exceptionable, {
|
|
6116
|
+
path: _path + ".content",
|
|
6117
|
+
expected: "(string | undefined)",
|
|
6118
|
+
value: input.content
|
|
6119
|
+
}), undefined === input.graphics || (Array.isArray(input.graphics) || _report(_exceptionable, {
|
|
6120
|
+
path: _path + ".graphics",
|
|
6121
|
+
expected: "(Array<string> | undefined)",
|
|
6122
|
+
value: input.graphics
|
|
6123
|
+
})) && input.graphics.map((elem, _index37) => "string" === typeof elem || _report(_exceptionable, {
|
|
6124
|
+
path: _path + ".graphics[" + _index37 + "]",
|
|
6125
|
+
expected: "string",
|
|
6126
|
+
value: elem
|
|
6127
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
6128
|
+
path: _path + ".graphics",
|
|
6129
|
+
expected: "(Array<string> | undefined)",
|
|
6130
|
+
value: input.graphics
|
|
6131
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
6132
|
+
if (["content", "graphics"].some(prop => key === prop))
|
|
6133
|
+
return true;
|
|
6134
|
+
const value = input[key];
|
|
6135
|
+
if (undefined === value)
|
|
6136
|
+
return true;
|
|
6137
|
+
return _report(_exceptionable, {
|
|
6138
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
6139
|
+
expected: "undefined",
|
|
6140
|
+
value: value,
|
|
6141
|
+
description: [
|
|
6142
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
6143
|
+
"",
|
|
6144
|
+
"Please remove the property next time."
|
|
6145
|
+
].join("\n")
|
|
6146
|
+
});
|
|
6147
|
+
}).every(flag => flag))].every(flag => flag); const _vo12 = (input, _path, _exceptionable = true) => [undefined === input.content || Array.isArray(input.content) || _report(_exceptionable, {
|
|
6148
|
+
path: _path + ".content",
|
|
6149
|
+
expected: "(Array<unknown> | undefined)",
|
|
6150
|
+
value: input.content
|
|
6151
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
6152
|
+
if (["content"].some(prop => key === prop))
|
|
6153
|
+
return true;
|
|
6154
|
+
const value = input[key];
|
|
6155
|
+
if (undefined === value)
|
|
6156
|
+
return true;
|
|
6157
|
+
return _report(_exceptionable, {
|
|
6158
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
6159
|
+
expected: "undefined",
|
|
6160
|
+
value: value,
|
|
6161
|
+
description: [
|
|
6162
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
6163
|
+
"",
|
|
6164
|
+
"Please remove the property next time."
|
|
6165
|
+
].join("\n")
|
|
6166
|
+
});
|
|
6167
|
+
}).every(flag => flag))].every(flag => flag); const _vo13 = (input, _path, _exceptionable = true) => [true, true, true, true, true, 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
6168
|
+
if (["audio", "video", "timecode", "language", "transcribe"].some(prop => key === prop))
|
|
6169
|
+
return true;
|
|
6170
|
+
const value = input[key];
|
|
6171
|
+
if (undefined === value)
|
|
6172
|
+
return true;
|
|
6173
|
+
return _report(_exceptionable, {
|
|
6174
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
6175
|
+
expected: "undefined",
|
|
6176
|
+
value: value,
|
|
6177
|
+
description: [
|
|
6178
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
6179
|
+
"",
|
|
6180
|
+
"Please remove the property next time."
|
|
6181
|
+
].join("\n")
|
|
6182
|
+
});
|
|
6183
|
+
}).every(flag => flag))].every(flag => flag); const _vo14 = (input, _path, _exceptionable = true) => [(Array.isArray(input.vector) || _report(_exceptionable, {
|
|
6184
|
+
path: _path + ".vector",
|
|
6185
|
+
expected: "Array<number>",
|
|
6186
|
+
value: input.vector
|
|
6187
|
+
})) && input.vector.map((elem, _index38) => "number" === typeof elem || _report(_exceptionable, {
|
|
6188
|
+
path: _path + ".vector[" + _index38 + "]",
|
|
6189
|
+
expected: "number",
|
|
6190
|
+
value: elem
|
|
6191
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
6192
|
+
path: _path + ".vector",
|
|
6193
|
+
expected: "Array<number>",
|
|
6194
|
+
value: input.vector
|
|
6195
|
+
}), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
6196
|
+
if (["vector"].some(prop => key === prop))
|
|
4935
6197
|
return true;
|
|
4936
6198
|
const value = input[key];
|
|
4937
6199
|
if (undefined === value)
|
|
@@ -4946,17 +6208,17 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
4946
6208
|
"Please remove the property next time."
|
|
4947
6209
|
].join("\n")
|
|
4948
6210
|
});
|
|
4949
|
-
}).every(flag => flag))].every(flag => flag); const __is = (input, _exceptionable = true) => "object" === typeof input && null !== input &&
|
|
6211
|
+
}).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 => {
|
|
4950
6212
|
if (false === __is(input)) {
|
|
4951
6213
|
errors = [];
|
|
4952
6214
|
_report = __typia_transform__validateReport._validateReport(errors);
|
|
4953
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input
|
|
6215
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
4954
6216
|
path: _path + "",
|
|
4955
|
-
expected: "
|
|
6217
|
+
expected: "AssetRecordProvidedRecord",
|
|
4956
6218
|
value: input
|
|
4957
6219
|
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
4958
6220
|
path: _path + "",
|
|
4959
|
-
expected: "
|
|
6221
|
+
expected: "AssetRecordProvidedRecord",
|
|
4960
6222
|
value: input
|
|
4961
6223
|
}))(input, "$input", true);
|
|
4962
6224
|
const success = 0 === errors.length;
|
|
@@ -10643,6 +11905,167 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
10643
11905
|
};
|
|
10644
11906
|
}; })()(input);
|
|
10645
11907
|
}
|
|
11908
|
+
case ":device": {
|
|
11909
|
+
return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.type || "display" === input.type) && (undefined === input.display || "object" === typeof input.display && null !== input.display && false === Array.isArray(input.display) && _io1(input.display, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
11910
|
+
if (["type", "display"].some(prop => key === prop))
|
|
11911
|
+
return true;
|
|
11912
|
+
const value = input[key];
|
|
11913
|
+
if (undefined === value)
|
|
11914
|
+
return true;
|
|
11915
|
+
return false;
|
|
11916
|
+
})); const _io1 = (input, _exceptionable = true) => (undefined === input.activeAsset || "string" === typeof input.activeAsset) && (undefined === input.editor || "string" === typeof input.editor) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
11917
|
+
if (["activeAsset", "editor"].some(prop => key === prop))
|
|
11918
|
+
return true;
|
|
11919
|
+
const value = input[key];
|
|
11920
|
+
if (undefined === value)
|
|
11921
|
+
return true;
|
|
11922
|
+
return false;
|
|
11923
|
+
})); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.type || "display" === input.type || _report(_exceptionable, {
|
|
11924
|
+
path: _path + ".type",
|
|
11925
|
+
expected: "(\"display\" | undefined)",
|
|
11926
|
+
value: input.type
|
|
11927
|
+
}), undefined === input.display || ("object" === typeof input.display && null !== input.display && false === Array.isArray(input.display) || _report(_exceptionable, {
|
|
11928
|
+
path: _path + ".display",
|
|
11929
|
+
expected: "(__type | undefined)",
|
|
11930
|
+
value: input.display
|
|
11931
|
+
})) && _vo1(input.display, _path + ".display", true && _exceptionable) || _report(_exceptionable, {
|
|
11932
|
+
path: _path + ".display",
|
|
11933
|
+
expected: "(__type | undefined)",
|
|
11934
|
+
value: input.display
|
|
11935
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
11936
|
+
if (["type", "display"].some(prop => key === prop))
|
|
11937
|
+
return true;
|
|
11938
|
+
const value = input[key];
|
|
11939
|
+
if (undefined === value)
|
|
11940
|
+
return true;
|
|
11941
|
+
return _report(_exceptionable, {
|
|
11942
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
11943
|
+
expected: "undefined",
|
|
11944
|
+
value: value,
|
|
11945
|
+
description: [
|
|
11946
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
11947
|
+
"",
|
|
11948
|
+
"Please remove the property next time."
|
|
11949
|
+
].join("\n")
|
|
11950
|
+
});
|
|
11951
|
+
}).every(flag => flag))].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [undefined === input.activeAsset || "string" === typeof input.activeAsset || _report(_exceptionable, {
|
|
11952
|
+
path: _path + ".activeAsset",
|
|
11953
|
+
expected: "(string | undefined)",
|
|
11954
|
+
value: input.activeAsset
|
|
11955
|
+
}), undefined === input.editor || "string" === typeof input.editor || _report(_exceptionable, {
|
|
11956
|
+
path: _path + ".editor",
|
|
11957
|
+
expected: "(string | undefined)",
|
|
11958
|
+
value: input.editor
|
|
11959
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
11960
|
+
if (["activeAsset", "editor"].some(prop => key === prop))
|
|
11961
|
+
return true;
|
|
11962
|
+
const value = input[key];
|
|
11963
|
+
if (undefined === value)
|
|
11964
|
+
return true;
|
|
11965
|
+
return _report(_exceptionable, {
|
|
11966
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
11967
|
+
expected: "undefined",
|
|
11968
|
+
value: value,
|
|
11969
|
+
description: [
|
|
11970
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
11971
|
+
"",
|
|
11972
|
+
"Please remove the property next time."
|
|
11973
|
+
].join("\n")
|
|
11974
|
+
});
|
|
11975
|
+
}).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 => {
|
|
11976
|
+
if (false === __is(input)) {
|
|
11977
|
+
errors = [];
|
|
11978
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
11979
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
11980
|
+
path: _path + "",
|
|
11981
|
+
expected: "DeviceDomainRecord",
|
|
11982
|
+
value: input
|
|
11983
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
11984
|
+
path: _path + "",
|
|
11985
|
+
expected: "DeviceDomainRecord",
|
|
11986
|
+
value: input
|
|
11987
|
+
}))(input, "$input", true);
|
|
11988
|
+
const success = 0 === errors.length;
|
|
11989
|
+
return success ? {
|
|
11990
|
+
success,
|
|
11991
|
+
data: input
|
|
11992
|
+
} : {
|
|
11993
|
+
success,
|
|
11994
|
+
errors,
|
|
11995
|
+
data: input
|
|
11996
|
+
};
|
|
11997
|
+
}
|
|
11998
|
+
return {
|
|
11999
|
+
success: true,
|
|
12000
|
+
data: input
|
|
12001
|
+
};
|
|
12002
|
+
}; })()(input);
|
|
12003
|
+
}
|
|
12004
|
+
case ":device.status?": {
|
|
12005
|
+
return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.since || "string" === typeof input.since) && (undefined === input.heartbeat || "string" === typeof input.heartbeat) && (undefined === input.version || "string" === typeof input.version) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
12006
|
+
if (["since", "heartbeat", "version"].some(prop => key === prop))
|
|
12007
|
+
return true;
|
|
12008
|
+
const value = input[key];
|
|
12009
|
+
if (undefined === value)
|
|
12010
|
+
return true;
|
|
12011
|
+
return false;
|
|
12012
|
+
})); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.since || "string" === typeof input.since || _report(_exceptionable, {
|
|
12013
|
+
path: _path + ".since",
|
|
12014
|
+
expected: "(string | undefined)",
|
|
12015
|
+
value: input.since
|
|
12016
|
+
}), undefined === input.heartbeat || "string" === typeof input.heartbeat || _report(_exceptionable, {
|
|
12017
|
+
path: _path + ".heartbeat",
|
|
12018
|
+
expected: "(string | undefined)",
|
|
12019
|
+
value: input.heartbeat
|
|
12020
|
+
}), undefined === input.version || "string" === typeof input.version || _report(_exceptionable, {
|
|
12021
|
+
path: _path + ".version",
|
|
12022
|
+
expected: "(string | undefined)",
|
|
12023
|
+
value: input.version
|
|
12024
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
12025
|
+
if (["since", "heartbeat", "version"].some(prop => key === prop))
|
|
12026
|
+
return true;
|
|
12027
|
+
const value = input[key];
|
|
12028
|
+
if (undefined === value)
|
|
12029
|
+
return true;
|
|
12030
|
+
return _report(_exceptionable, {
|
|
12031
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
12032
|
+
expected: "undefined",
|
|
12033
|
+
value: value,
|
|
12034
|
+
description: [
|
|
12035
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
12036
|
+
"",
|
|
12037
|
+
"Please remove the property next time."
|
|
12038
|
+
].join("\n")
|
|
12039
|
+
});
|
|
12040
|
+
}).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 => {
|
|
12041
|
+
if (false === __is(input)) {
|
|
12042
|
+
errors = [];
|
|
12043
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
12044
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
12045
|
+
path: _path + "",
|
|
12046
|
+
expected: "DeviceDomainStatusRecord",
|
|
12047
|
+
value: input
|
|
12048
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
12049
|
+
path: _path + "",
|
|
12050
|
+
expected: "DeviceDomainStatusRecord",
|
|
12051
|
+
value: input
|
|
12052
|
+
}))(input, "$input", true);
|
|
12053
|
+
const success = 0 === errors.length;
|
|
12054
|
+
return success ? {
|
|
12055
|
+
success,
|
|
12056
|
+
data: input
|
|
12057
|
+
} : {
|
|
12058
|
+
success,
|
|
12059
|
+
errors,
|
|
12060
|
+
data: input
|
|
12061
|
+
};
|
|
12062
|
+
}
|
|
12063
|
+
return {
|
|
12064
|
+
success: true,
|
|
12065
|
+
data: input
|
|
12066
|
+
};
|
|
12067
|
+
}; })()(input);
|
|
12068
|
+
}
|
|
10646
12069
|
case ":edit": {
|
|
10647
12070
|
return (() => { const _io0 = (input, _exceptionable = true) => "object" === typeof input.nodes && null !== input.nodes && false === Array.isArray(input.nodes) && _io1(input.nodes, true && _exceptionable) && (Array.isArray(input.tracks) && input.tracks.every((elem, _index1) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io1(elem, true && _exceptionable))) && ("object" === typeof input.transitions && null !== input.transitions && false === Array.isArray(input.transitions) && _io1(input.transitions, true && _exceptionable)) && (undefined === input.active || "boolean" === typeof input.active) && (undefined === input.changeId || "string" === typeof input.changeId) && (3 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
10648
12071
|
if (["nodes", "tracks", "transitions", "active", "changeId"].some(prop => key === prop))
|
|
@@ -12771,7 +14194,132 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
12771
14194
|
expected: "(string | undefined)",
|
|
12772
14195
|
value: input.storage
|
|
12773
14196
|
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
12774
|
-
if (["title", "tags", "media", "duration", "deadlines", "assignees", "locations", "status", "storage"].some(prop => key === prop))
|
|
14197
|
+
if (["title", "tags", "media", "duration", "deadlines", "assignees", "locations", "status", "storage"].some(prop => key === prop))
|
|
14198
|
+
return true;
|
|
14199
|
+
const value = input[key];
|
|
14200
|
+
if (undefined === value)
|
|
14201
|
+
return true;
|
|
14202
|
+
return _report(_exceptionable, {
|
|
14203
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14204
|
+
expected: "undefined",
|
|
14205
|
+
value: value,
|
|
14206
|
+
description: [
|
|
14207
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
14208
|
+
"",
|
|
14209
|
+
"Please remove the property next time."
|
|
14210
|
+
].join("\n")
|
|
14211
|
+
});
|
|
14212
|
+
}).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 => {
|
|
14213
|
+
if (false === __is(input)) {
|
|
14214
|
+
errors = [];
|
|
14215
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
14216
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
14217
|
+
path: _path + "",
|
|
14218
|
+
expected: "GeneralAssetRecord",
|
|
14219
|
+
value: input
|
|
14220
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
14221
|
+
path: _path + "",
|
|
14222
|
+
expected: "GeneralAssetRecord",
|
|
14223
|
+
value: input
|
|
14224
|
+
}))(input, "$input", true);
|
|
14225
|
+
const success = 0 === errors.length;
|
|
14226
|
+
return success ? {
|
|
14227
|
+
success,
|
|
14228
|
+
data: input
|
|
14229
|
+
} : {
|
|
14230
|
+
success,
|
|
14231
|
+
errors,
|
|
14232
|
+
data: input
|
|
14233
|
+
};
|
|
14234
|
+
}
|
|
14235
|
+
return {
|
|
14236
|
+
success: true,
|
|
14237
|
+
data: input
|
|
14238
|
+
};
|
|
14239
|
+
}; })()(input);
|
|
14240
|
+
}
|
|
14241
|
+
case ":general._embedding": {
|
|
14242
|
+
return (() => { const _io0 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
14243
|
+
const value = input[key];
|
|
14244
|
+
if (undefined === value)
|
|
14245
|
+
return true;
|
|
14246
|
+
return null === value || "string" === typeof value;
|
|
14247
|
+
}); const _vo0 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
14248
|
+
const value = input[key];
|
|
14249
|
+
if (undefined === value)
|
|
14250
|
+
return true;
|
|
14251
|
+
return null === value || "string" === typeof value || _report(_exceptionable, {
|
|
14252
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14253
|
+
expected: "(null | string)",
|
|
14254
|
+
value: value
|
|
14255
|
+
});
|
|
14256
|
+
}).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 => {
|
|
14257
|
+
if (false === __is(input)) {
|
|
14258
|
+
errors = [];
|
|
14259
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
14260
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
14261
|
+
path: _path + "",
|
|
14262
|
+
expected: "GeneralEmbeddingRecord",
|
|
14263
|
+
value: input
|
|
14264
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
14265
|
+
path: _path + "",
|
|
14266
|
+
expected: "GeneralEmbeddingRecord",
|
|
14267
|
+
value: input
|
|
14268
|
+
}))(input, "$input", true);
|
|
14269
|
+
const success = 0 === errors.length;
|
|
14270
|
+
return success ? {
|
|
14271
|
+
success,
|
|
14272
|
+
data: input
|
|
14273
|
+
} : {
|
|
14274
|
+
success,
|
|
14275
|
+
errors,
|
|
14276
|
+
data: input
|
|
14277
|
+
};
|
|
14278
|
+
}
|
|
14279
|
+
return {
|
|
14280
|
+
success: true,
|
|
14281
|
+
data: input
|
|
14282
|
+
};
|
|
14283
|
+
}; })()(input);
|
|
14284
|
+
}
|
|
14285
|
+
case ":harvest": {
|
|
14286
|
+
return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.active || "boolean" === typeof input.active) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every((elem, _index1) => "string" === typeof elem)) && (undefined === input.revisions || "boolean" === typeof input.revisions) && (undefined === input.concurrency || "number" === typeof input.concurrency) && (undefined === input.throttle || "number" === typeof input.throttle) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
14287
|
+
if (["active", "tags", "revisions", "concurrency", "throttle"].some(prop => key === prop))
|
|
14288
|
+
return true;
|
|
14289
|
+
const value = input[key];
|
|
14290
|
+
if (undefined === value)
|
|
14291
|
+
return true;
|
|
14292
|
+
return false;
|
|
14293
|
+
})); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.active || "boolean" === typeof input.active || _report(_exceptionable, {
|
|
14294
|
+
path: _path + ".active",
|
|
14295
|
+
expected: "(boolean | undefined)",
|
|
14296
|
+
value: input.active
|
|
14297
|
+
}), undefined === input.tags || (Array.isArray(input.tags) || _report(_exceptionable, {
|
|
14298
|
+
path: _path + ".tags",
|
|
14299
|
+
expected: "(Array<string> | undefined)",
|
|
14300
|
+
value: input.tags
|
|
14301
|
+
})) && input.tags.map((elem, _index2) => "string" === typeof elem || _report(_exceptionable, {
|
|
14302
|
+
path: _path + ".tags[" + _index2 + "]",
|
|
14303
|
+
expected: "string",
|
|
14304
|
+
value: elem
|
|
14305
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
14306
|
+
path: _path + ".tags",
|
|
14307
|
+
expected: "(Array<string> | undefined)",
|
|
14308
|
+
value: input.tags
|
|
14309
|
+
}), undefined === input.revisions || "boolean" === typeof input.revisions || _report(_exceptionable, {
|
|
14310
|
+
path: _path + ".revisions",
|
|
14311
|
+
expected: "(boolean | undefined)",
|
|
14312
|
+
value: input.revisions
|
|
14313
|
+
}), undefined === input.concurrency || "number" === typeof input.concurrency || _report(_exceptionable, {
|
|
14314
|
+
path: _path + ".concurrency",
|
|
14315
|
+
expected: "(number | undefined)",
|
|
14316
|
+
value: input.concurrency
|
|
14317
|
+
}), undefined === input.throttle || "number" === typeof input.throttle || _report(_exceptionable, {
|
|
14318
|
+
path: _path + ".throttle",
|
|
14319
|
+
expected: "(number | undefined)",
|
|
14320
|
+
value: input.throttle
|
|
14321
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
14322
|
+
if (["active", "tags", "revisions", "concurrency", "throttle"].some(prop => key === prop))
|
|
12775
14323
|
return true;
|
|
12776
14324
|
const value = input[key];
|
|
12777
14325
|
if (undefined === value)
|
|
@@ -12792,11 +14340,11 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
12792
14340
|
_report = __typia_transform__validateReport._validateReport(errors);
|
|
12793
14341
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
12794
14342
|
path: _path + "",
|
|
12795
|
-
expected: "
|
|
14343
|
+
expected: "HarvestDomainRecord",
|
|
12796
14344
|
value: input
|
|
12797
14345
|
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
12798
14346
|
path: _path + "",
|
|
12799
|
-
expected: "
|
|
14347
|
+
expected: "HarvestDomainRecord",
|
|
12800
14348
|
value: input
|
|
12801
14349
|
}))(input, "$input", true);
|
|
12802
14350
|
const success = 0 === errors.length;
|
|
@@ -12815,32 +14363,105 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
12815
14363
|
};
|
|
12816
14364
|
}; })()(input);
|
|
12817
14365
|
}
|
|
12818
|
-
case ":
|
|
12819
|
-
return (() => { const _io0 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
14366
|
+
case ":ingestclip": {
|
|
14367
|
+
return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.time || "number" === typeof input.time) && (undefined === input.duration || "number" === typeof input.duration) && (undefined === input.type || "string" === typeof input.type) && (undefined === input.record || "string" === typeof input.record) && (undefined === input.data || "boolean" === typeof input.data) && (undefined === input.gallery || "string" === typeof input.gallery) && (undefined === input.rundown || "string" === typeof input.rundown) && (undefined === input.segment || "string" === typeof input.segment) && (undefined === input.story || "string" === typeof input.story) && (undefined === input.event || "string" === typeof input.event) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.channel || "string" === typeof input.channel) && (undefined === input.schedule || "string" === typeof input.schedule) && (undefined === input.parent || "string" === typeof input.parent) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
14368
|
+
if (["time", "duration", "type", "record", "data", "gallery", "rundown", "segment", "story", "event", "title", "start", "end", "channel", "schedule", "parent"].some(prop => key === prop))
|
|
14369
|
+
return true;
|
|
12820
14370
|
const value = input[key];
|
|
12821
14371
|
if (undefined === value)
|
|
12822
14372
|
return true;
|
|
12823
|
-
return
|
|
12824
|
-
}); const _vo0 = (input, _path, _exceptionable = true) => [
|
|
14373
|
+
return false;
|
|
14374
|
+
})); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.time || "number" === typeof input.time || _report(_exceptionable, {
|
|
14375
|
+
path: _path + ".time",
|
|
14376
|
+
expected: "(number | undefined)",
|
|
14377
|
+
value: input.time
|
|
14378
|
+
}), undefined === input.duration || "number" === typeof input.duration || _report(_exceptionable, {
|
|
14379
|
+
path: _path + ".duration",
|
|
14380
|
+
expected: "(number | undefined)",
|
|
14381
|
+
value: input.duration
|
|
14382
|
+
}), undefined === input.type || "string" === typeof input.type || _report(_exceptionable, {
|
|
14383
|
+
path: _path + ".type",
|
|
14384
|
+
expected: "(string | undefined)",
|
|
14385
|
+
value: input.type
|
|
14386
|
+
}), undefined === input.record || "string" === typeof input.record || _report(_exceptionable, {
|
|
14387
|
+
path: _path + ".record",
|
|
14388
|
+
expected: "(string | undefined)",
|
|
14389
|
+
value: input.record
|
|
14390
|
+
}), undefined === input.data || "boolean" === typeof input.data || _report(_exceptionable, {
|
|
14391
|
+
path: _path + ".data",
|
|
14392
|
+
expected: "(boolean | undefined)",
|
|
14393
|
+
value: input.data
|
|
14394
|
+
}), undefined === input.gallery || "string" === typeof input.gallery || _report(_exceptionable, {
|
|
14395
|
+
path: _path + ".gallery",
|
|
14396
|
+
expected: "(string | undefined)",
|
|
14397
|
+
value: input.gallery
|
|
14398
|
+
}), undefined === input.rundown || "string" === typeof input.rundown || _report(_exceptionable, {
|
|
14399
|
+
path: _path + ".rundown",
|
|
14400
|
+
expected: "(string | undefined)",
|
|
14401
|
+
value: input.rundown
|
|
14402
|
+
}), undefined === input.segment || "string" === typeof input.segment || _report(_exceptionable, {
|
|
14403
|
+
path: _path + ".segment",
|
|
14404
|
+
expected: "(string | undefined)",
|
|
14405
|
+
value: input.segment
|
|
14406
|
+
}), undefined === input.story || "string" === typeof input.story || _report(_exceptionable, {
|
|
14407
|
+
path: _path + ".story",
|
|
14408
|
+
expected: "(string | undefined)",
|
|
14409
|
+
value: input.story
|
|
14410
|
+
}), undefined === input.event || "string" === typeof input.event || _report(_exceptionable, {
|
|
14411
|
+
path: _path + ".event",
|
|
14412
|
+
expected: "(string | undefined)",
|
|
14413
|
+
value: input.event
|
|
14414
|
+
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
14415
|
+
path: _path + ".title",
|
|
14416
|
+
expected: "(string | undefined)",
|
|
14417
|
+
value: input.title
|
|
14418
|
+
}), undefined === input.start || "number" === typeof input.start || _report(_exceptionable, {
|
|
14419
|
+
path: _path + ".start",
|
|
14420
|
+
expected: "(number | undefined)",
|
|
14421
|
+
value: input.start
|
|
14422
|
+
}), undefined === input.end || "number" === typeof input.end || _report(_exceptionable, {
|
|
14423
|
+
path: _path + ".end",
|
|
14424
|
+
expected: "(number | undefined)",
|
|
14425
|
+
value: input.end
|
|
14426
|
+
}), undefined === input.channel || "string" === typeof input.channel || _report(_exceptionable, {
|
|
14427
|
+
path: _path + ".channel",
|
|
14428
|
+
expected: "(string | undefined)",
|
|
14429
|
+
value: input.channel
|
|
14430
|
+
}), undefined === input.schedule || "string" === typeof input.schedule || _report(_exceptionable, {
|
|
14431
|
+
path: _path + ".schedule",
|
|
14432
|
+
expected: "(string | undefined)",
|
|
14433
|
+
value: input.schedule
|
|
14434
|
+
}), undefined === input.parent || "string" === typeof input.parent || _report(_exceptionable, {
|
|
14435
|
+
path: _path + ".parent",
|
|
14436
|
+
expected: "(string | undefined)",
|
|
14437
|
+
value: input.parent
|
|
14438
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
14439
|
+
if (["time", "duration", "type", "record", "data", "gallery", "rundown", "segment", "story", "event", "title", "start", "end", "channel", "schedule", "parent"].some(prop => key === prop))
|
|
14440
|
+
return true;
|
|
12825
14441
|
const value = input[key];
|
|
12826
14442
|
if (undefined === value)
|
|
12827
14443
|
return true;
|
|
12828
|
-
return
|
|
14444
|
+
return _report(_exceptionable, {
|
|
12829
14445
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
12830
|
-
expected: "
|
|
12831
|
-
value: value
|
|
14446
|
+
expected: "undefined",
|
|
14447
|
+
value: value,
|
|
14448
|
+
description: [
|
|
14449
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
14450
|
+
"",
|
|
14451
|
+
"Please remove the property next time."
|
|
14452
|
+
].join("\n")
|
|
12832
14453
|
});
|
|
12833
|
-
}).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 => {
|
|
14454
|
+
}).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 => {
|
|
12834
14455
|
if (false === __is(input)) {
|
|
12835
14456
|
errors = [];
|
|
12836
14457
|
_report = __typia_transform__validateReport._validateReport(errors);
|
|
12837
14458
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
12838
14459
|
path: _path + "",
|
|
12839
|
-
expected: "
|
|
14460
|
+
expected: "IngestclipDomainRecord",
|
|
12840
14461
|
value: input
|
|
12841
14462
|
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
12842
14463
|
path: _path + "",
|
|
12843
|
-
expected: "
|
|
14464
|
+
expected: "IngestclipDomainRecord",
|
|
12844
14465
|
value: input
|
|
12845
14466
|
}))(input, "$input", true);
|
|
12846
14467
|
const success = 0 === errors.length;
|
|
@@ -12859,44 +14480,281 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
12859
14480
|
};
|
|
12860
14481
|
}; })()(input);
|
|
12861
14482
|
}
|
|
12862
|
-
case ":
|
|
12863
|
-
return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.
|
|
12864
|
-
if (["
|
|
14483
|
+
case ":ingestschedule": {
|
|
14484
|
+
return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.io || "object" === typeof input.io && null !== input.io && false === Array.isArray(input.io) && _io1(input.io, true && _exceptionable)) && (undefined === input.sourcesHint || "string" === typeof input.sourcesHint) && (undefined === input.enabled || "boolean" === typeof input.enabled) && (null !== input.clipname && (undefined === input.clipname || "string" === typeof input.clipname || "object" === typeof input.clipname && null !== input.clipname && _io3(input.clipname, true && _exceptionable))) && (undefined === input.autoTags || Array.isArray(input.autoTags) && input.autoTags.every((elem, _index1) => "string" === typeof elem)) && (null === input.storyboard || undefined === input.storyboard || "string" === typeof input.storyboard) && (null === input.pipeline || undefined === input.pipeline || "string" === typeof input.pipeline) && (undefined === input.type || "instant" === input.type || "repeat" === input.type || "salami" === input.type) && (undefined === input.salami || "object" === typeof input.salami && null !== input.salami && false === Array.isArray(input.salami) && _io5(input.salami, true && _exceptionable)) && (undefined === input.repeat || "object" === typeof input.repeat && null !== input.repeat && false === Array.isArray(input.repeat) && _io6(input.repeat, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
14485
|
+
if (["io", "sourcesHint", "enabled", "clipname", "autoTags", "storyboard", "pipeline", "type", "salami", "repeat"].some(prop => key === prop))
|
|
12865
14486
|
return true;
|
|
12866
14487
|
const value = input[key];
|
|
12867
14488
|
if (undefined === value)
|
|
12868
14489
|
return true;
|
|
12869
14490
|
return false;
|
|
12870
|
-
})); const
|
|
12871
|
-
|
|
14491
|
+
})); const _io1 = (input, _exceptionable = true) => Object.keys(input).every(key => {
|
|
14492
|
+
const value = input[key];
|
|
14493
|
+
if (undefined === value)
|
|
14494
|
+
return true;
|
|
14495
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io2(value, true && _exceptionable);
|
|
14496
|
+
}); const _io2 = (input, _exceptionable = true) => (undefined === input.route || "string" === typeof input.route) && (undefined === input.publish || Array.isArray(input.publish) && input.publish.every((elem, _index2) => "string" === typeof elem)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
14497
|
+
if (["route", "publish"].some(prop => key === prop))
|
|
14498
|
+
return true;
|
|
14499
|
+
const value = input[key];
|
|
14500
|
+
if (undefined === value)
|
|
14501
|
+
return true;
|
|
14502
|
+
return false;
|
|
14503
|
+
})); const _io3 = (input, _exceptionable = true) => "object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && _io4(input.__context, true && _exceptionable) && "string" === typeof input.__returnValue && (2 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
14504
|
+
if (["__context", "__returnValue"].some(prop => key === prop))
|
|
14505
|
+
return true;
|
|
14506
|
+
const value = input[key];
|
|
14507
|
+
if (undefined === value)
|
|
14508
|
+
return true;
|
|
14509
|
+
return false;
|
|
14510
|
+
})); const _io4 = (input, _exceptionable = true) => 0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
14511
|
+
const value = input[key];
|
|
14512
|
+
if (undefined === value)
|
|
14513
|
+
return true;
|
|
14514
|
+
return false;
|
|
14515
|
+
}); const _io5 = (input, _exceptionable = true) => (null === input.gallery || undefined === input.gallery || "string" === typeof input.gallery) && (undefined === input.tag || "string" === typeof input.tag) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
14516
|
+
if (["gallery", "tag"].some(prop => key === prop))
|
|
14517
|
+
return true;
|
|
14518
|
+
const value = input[key];
|
|
14519
|
+
if (undefined === value)
|
|
14520
|
+
return true;
|
|
14521
|
+
return false;
|
|
14522
|
+
})); const _io6 = (input, _exceptionable = true) => (undefined === input.freq || 0 === input.freq || 2 === input.freq || 3 === input.freq) && (undefined === input.until || "string" === typeof input.until) && (undefined === input.start || "string" === typeof input.start) && (undefined === input.tzid || "string" === typeof input.tzid) && (undefined === input.duration || "number" === typeof input.duration) && (undefined === input.byweekday || Array.isArray(input.byweekday) && input.byweekday.every((elem, _index3) => "number" === typeof elem)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
14523
|
+
if (["freq", "until", "start", "tzid", "duration", "byweekday"].some(prop => key === prop))
|
|
14524
|
+
return true;
|
|
14525
|
+
const value = input[key];
|
|
14526
|
+
if (undefined === value)
|
|
14527
|
+
return true;
|
|
14528
|
+
return false;
|
|
14529
|
+
})); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.io || ("object" === typeof input.io && null !== input.io && false === Array.isArray(input.io) || _report(_exceptionable, {
|
|
14530
|
+
path: _path + ".io",
|
|
14531
|
+
expected: "(__type | undefined)",
|
|
14532
|
+
value: input.io
|
|
14533
|
+
})) && _vo1(input.io, _path + ".io", true && _exceptionable) || _report(_exceptionable, {
|
|
14534
|
+
path: _path + ".io",
|
|
14535
|
+
expected: "(__type | undefined)",
|
|
14536
|
+
value: input.io
|
|
14537
|
+
}), undefined === input.sourcesHint || "string" === typeof input.sourcesHint || _report(_exceptionable, {
|
|
14538
|
+
path: _path + ".sourcesHint",
|
|
14539
|
+
expected: "(string | undefined)",
|
|
14540
|
+
value: input.sourcesHint
|
|
14541
|
+
}), undefined === input.enabled || "boolean" === typeof input.enabled || _report(_exceptionable, {
|
|
14542
|
+
path: _path + ".enabled",
|
|
12872
14543
|
expected: "(boolean | undefined)",
|
|
12873
|
-
value: input.
|
|
12874
|
-
}),
|
|
12875
|
-
path: _path + ".
|
|
14544
|
+
value: input.enabled
|
|
14545
|
+
}), (null !== input.clipname || _report(_exceptionable, {
|
|
14546
|
+
path: _path + ".clipname",
|
|
14547
|
+
expected: "(__type.o1 | string | undefined)",
|
|
14548
|
+
value: input.clipname
|
|
14549
|
+
})) && (undefined === input.clipname || "string" === typeof input.clipname || ("object" === typeof input.clipname && null !== input.clipname || _report(_exceptionable, {
|
|
14550
|
+
path: _path + ".clipname",
|
|
14551
|
+
expected: "(__type.o1 | string | undefined)",
|
|
14552
|
+
value: input.clipname
|
|
14553
|
+
})) && _vo3(input.clipname, _path + ".clipname", true && _exceptionable) || _report(_exceptionable, {
|
|
14554
|
+
path: _path + ".clipname",
|
|
14555
|
+
expected: "(__type.o1 | string | undefined)",
|
|
14556
|
+
value: input.clipname
|
|
14557
|
+
})), undefined === input.autoTags || (Array.isArray(input.autoTags) || _report(_exceptionable, {
|
|
14558
|
+
path: _path + ".autoTags",
|
|
12876
14559
|
expected: "(Array<string> | undefined)",
|
|
12877
|
-
value: input.
|
|
12878
|
-
})) && input.
|
|
12879
|
-
path: _path + ".
|
|
14560
|
+
value: input.autoTags
|
|
14561
|
+
})) && input.autoTags.map((elem, _index4) => "string" === typeof elem || _report(_exceptionable, {
|
|
14562
|
+
path: _path + ".autoTags[" + _index4 + "]",
|
|
14563
|
+
expected: "string",
|
|
14564
|
+
value: elem
|
|
14565
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
14566
|
+
path: _path + ".autoTags",
|
|
14567
|
+
expected: "(Array<string> | undefined)",
|
|
14568
|
+
value: input.autoTags
|
|
14569
|
+
}), null === input.storyboard || undefined === input.storyboard || "string" === typeof input.storyboard || _report(_exceptionable, {
|
|
14570
|
+
path: _path + ".storyboard",
|
|
14571
|
+
expected: "(null | string | undefined)",
|
|
14572
|
+
value: input.storyboard
|
|
14573
|
+
}), null === input.pipeline || undefined === input.pipeline || "string" === typeof input.pipeline || _report(_exceptionable, {
|
|
14574
|
+
path: _path + ".pipeline",
|
|
14575
|
+
expected: "(null | string | undefined)",
|
|
14576
|
+
value: input.pipeline
|
|
14577
|
+
}), undefined === input.type || "instant" === input.type || "repeat" === input.type || "salami" === input.type || _report(_exceptionable, {
|
|
14578
|
+
path: _path + ".type",
|
|
14579
|
+
expected: "(\"instant\" | \"repeat\" | \"salami\" | undefined)",
|
|
14580
|
+
value: input.type
|
|
14581
|
+
}), undefined === input.salami || ("object" === typeof input.salami && null !== input.salami && false === Array.isArray(input.salami) || _report(_exceptionable, {
|
|
14582
|
+
path: _path + ".salami",
|
|
14583
|
+
expected: "(__type.o2 | undefined)",
|
|
14584
|
+
value: input.salami
|
|
14585
|
+
})) && _vo5(input.salami, _path + ".salami", true && _exceptionable) || _report(_exceptionable, {
|
|
14586
|
+
path: _path + ".salami",
|
|
14587
|
+
expected: "(__type.o2 | undefined)",
|
|
14588
|
+
value: input.salami
|
|
14589
|
+
}), undefined === input.repeat || ("object" === typeof input.repeat && null !== input.repeat && false === Array.isArray(input.repeat) || _report(_exceptionable, {
|
|
14590
|
+
path: _path + ".repeat",
|
|
14591
|
+
expected: "(IngestScheduleRepeat | undefined)",
|
|
14592
|
+
value: input.repeat
|
|
14593
|
+
})) && _vo6(input.repeat, _path + ".repeat", true && _exceptionable) || _report(_exceptionable, {
|
|
14594
|
+
path: _path + ".repeat",
|
|
14595
|
+
expected: "(IngestScheduleRepeat | undefined)",
|
|
14596
|
+
value: input.repeat
|
|
14597
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
14598
|
+
if (["io", "sourcesHint", "enabled", "clipname", "autoTags", "storyboard", "pipeline", "type", "salami", "repeat"].some(prop => key === prop))
|
|
14599
|
+
return true;
|
|
14600
|
+
const value = input[key];
|
|
14601
|
+
if (undefined === value)
|
|
14602
|
+
return true;
|
|
14603
|
+
return _report(_exceptionable, {
|
|
14604
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14605
|
+
expected: "undefined",
|
|
14606
|
+
value: value,
|
|
14607
|
+
description: [
|
|
14608
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
14609
|
+
"",
|
|
14610
|
+
"Please remove the property next time."
|
|
14611
|
+
].join("\n")
|
|
14612
|
+
});
|
|
14613
|
+
}).every(flag => flag))].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
14614
|
+
const value = input[key];
|
|
14615
|
+
if (undefined === value)
|
|
14616
|
+
return true;
|
|
14617
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
|
14618
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14619
|
+
expected: "IngestIo",
|
|
14620
|
+
value: value
|
|
14621
|
+
})) && _vo2(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
14622
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14623
|
+
expected: "IngestIo",
|
|
14624
|
+
value: value
|
|
14625
|
+
});
|
|
14626
|
+
}).every(flag => flag)].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => [undefined === input.route || "string" === typeof input.route || _report(_exceptionable, {
|
|
14627
|
+
path: _path + ".route",
|
|
14628
|
+
expected: "(string | undefined)",
|
|
14629
|
+
value: input.route
|
|
14630
|
+
}), undefined === input.publish || (Array.isArray(input.publish) || _report(_exceptionable, {
|
|
14631
|
+
path: _path + ".publish",
|
|
14632
|
+
expected: "(Array<string> | undefined)",
|
|
14633
|
+
value: input.publish
|
|
14634
|
+
})) && input.publish.map((elem, _index5) => "string" === typeof elem || _report(_exceptionable, {
|
|
14635
|
+
path: _path + ".publish[" + _index5 + "]",
|
|
14636
|
+
expected: "string",
|
|
14637
|
+
value: elem
|
|
14638
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
14639
|
+
path: _path + ".publish",
|
|
14640
|
+
expected: "(Array<string> | undefined)",
|
|
14641
|
+
value: input.publish
|
|
14642
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
14643
|
+
if (["route", "publish"].some(prop => key === prop))
|
|
14644
|
+
return true;
|
|
14645
|
+
const value = input[key];
|
|
14646
|
+
if (undefined === value)
|
|
14647
|
+
return true;
|
|
14648
|
+
return _report(_exceptionable, {
|
|
14649
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14650
|
+
expected: "undefined",
|
|
14651
|
+
value: value,
|
|
14652
|
+
description: [
|
|
14653
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
14654
|
+
"",
|
|
14655
|
+
"Please remove the property next time."
|
|
14656
|
+
].join("\n")
|
|
14657
|
+
});
|
|
14658
|
+
}).every(flag => flag))].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => [("object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) || _report(_exceptionable, {
|
|
14659
|
+
path: _path + ".__context",
|
|
14660
|
+
expected: "object",
|
|
14661
|
+
value: input.__context
|
|
14662
|
+
})) && _vo4(input.__context, _path + ".__context", true && _exceptionable) || _report(_exceptionable, {
|
|
14663
|
+
path: _path + ".__context",
|
|
14664
|
+
expected: "object",
|
|
14665
|
+
value: input.__context
|
|
14666
|
+
}), "string" === typeof input.__returnValue || _report(_exceptionable, {
|
|
14667
|
+
path: _path + ".__returnValue",
|
|
12880
14668
|
expected: "string",
|
|
14669
|
+
value: input.__returnValue
|
|
14670
|
+
}), 2 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
14671
|
+
if (["__context", "__returnValue"].some(prop => key === prop))
|
|
14672
|
+
return true;
|
|
14673
|
+
const value = input[key];
|
|
14674
|
+
if (undefined === value)
|
|
14675
|
+
return true;
|
|
14676
|
+
return _report(_exceptionable, {
|
|
14677
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14678
|
+
expected: "undefined",
|
|
14679
|
+
value: value,
|
|
14680
|
+
description: [
|
|
14681
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
14682
|
+
"",
|
|
14683
|
+
"Please remove the property next time."
|
|
14684
|
+
].join("\n")
|
|
14685
|
+
});
|
|
14686
|
+
}).every(flag => flag))].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
14687
|
+
const value = input[key];
|
|
14688
|
+
if (undefined === value)
|
|
14689
|
+
return true;
|
|
14690
|
+
return _report(_exceptionable, {
|
|
14691
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14692
|
+
expected: "undefined",
|
|
14693
|
+
value: value,
|
|
14694
|
+
description: [
|
|
14695
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
14696
|
+
"",
|
|
14697
|
+
"Please remove the property next time."
|
|
14698
|
+
].join("\n")
|
|
14699
|
+
});
|
|
14700
|
+
}).every(flag => flag))].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => [null === input.gallery || undefined === input.gallery || "string" === typeof input.gallery || _report(_exceptionable, {
|
|
14701
|
+
path: _path + ".gallery",
|
|
14702
|
+
expected: "(null | string | undefined)",
|
|
14703
|
+
value: input.gallery
|
|
14704
|
+
}), undefined === input.tag || "string" === typeof input.tag || _report(_exceptionable, {
|
|
14705
|
+
path: _path + ".tag",
|
|
14706
|
+
expected: "(string | undefined)",
|
|
14707
|
+
value: input.tag
|
|
14708
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
14709
|
+
if (["gallery", "tag"].some(prop => key === prop))
|
|
14710
|
+
return true;
|
|
14711
|
+
const value = input[key];
|
|
14712
|
+
if (undefined === value)
|
|
14713
|
+
return true;
|
|
14714
|
+
return _report(_exceptionable, {
|
|
14715
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
14716
|
+
expected: "undefined",
|
|
14717
|
+
value: value,
|
|
14718
|
+
description: [
|
|
14719
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
14720
|
+
"",
|
|
14721
|
+
"Please remove the property next time."
|
|
14722
|
+
].join("\n")
|
|
14723
|
+
});
|
|
14724
|
+
}).every(flag => flag))].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => [undefined === input.freq || 0 === input.freq || 2 === input.freq || 3 === input.freq || _report(_exceptionable, {
|
|
14725
|
+
path: _path + ".freq",
|
|
14726
|
+
expected: "(0 | 2 | 3 | undefined)",
|
|
14727
|
+
value: input.freq
|
|
14728
|
+
}), undefined === input.until || "string" === typeof input.until || _report(_exceptionable, {
|
|
14729
|
+
path: _path + ".until",
|
|
14730
|
+
expected: "(string | undefined)",
|
|
14731
|
+
value: input.until
|
|
14732
|
+
}), undefined === input.start || "string" === typeof input.start || _report(_exceptionable, {
|
|
14733
|
+
path: _path + ".start",
|
|
14734
|
+
expected: "(string | undefined)",
|
|
14735
|
+
value: input.start
|
|
14736
|
+
}), undefined === input.tzid || "string" === typeof input.tzid || _report(_exceptionable, {
|
|
14737
|
+
path: _path + ".tzid",
|
|
14738
|
+
expected: "(string | undefined)",
|
|
14739
|
+
value: input.tzid
|
|
14740
|
+
}), undefined === input.duration || "number" === typeof input.duration || _report(_exceptionable, {
|
|
14741
|
+
path: _path + ".duration",
|
|
14742
|
+
expected: "(number | undefined)",
|
|
14743
|
+
value: input.duration
|
|
14744
|
+
}), undefined === input.byweekday || (Array.isArray(input.byweekday) || _report(_exceptionable, {
|
|
14745
|
+
path: _path + ".byweekday",
|
|
14746
|
+
expected: "(Array<number> | undefined)",
|
|
14747
|
+
value: input.byweekday
|
|
14748
|
+
})) && input.byweekday.map((elem, _index6) => "number" === typeof elem || _report(_exceptionable, {
|
|
14749
|
+
path: _path + ".byweekday[" + _index6 + "]",
|
|
14750
|
+
expected: "number",
|
|
12881
14751
|
value: elem
|
|
12882
14752
|
})).every(flag => flag) || _report(_exceptionable, {
|
|
12883
|
-
path: _path + ".
|
|
12884
|
-
expected: "(Array<
|
|
12885
|
-
value: input.
|
|
12886
|
-
}), undefined === input.revisions || "boolean" === typeof input.revisions || _report(_exceptionable, {
|
|
12887
|
-
path: _path + ".revisions",
|
|
12888
|
-
expected: "(boolean | undefined)",
|
|
12889
|
-
value: input.revisions
|
|
12890
|
-
}), undefined === input.concurrency || "number" === typeof input.concurrency || _report(_exceptionable, {
|
|
12891
|
-
path: _path + ".concurrency",
|
|
12892
|
-
expected: "(number | undefined)",
|
|
12893
|
-
value: input.concurrency
|
|
12894
|
-
}), undefined === input.throttle || "number" === typeof input.throttle || _report(_exceptionable, {
|
|
12895
|
-
path: _path + ".throttle",
|
|
12896
|
-
expected: "(number | undefined)",
|
|
12897
|
-
value: input.throttle
|
|
14753
|
+
path: _path + ".byweekday",
|
|
14754
|
+
expected: "(Array<number> | undefined)",
|
|
14755
|
+
value: input.byweekday
|
|
12898
14756
|
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
12899
|
-
if (["
|
|
14757
|
+
if (["freq", "until", "start", "tzid", "duration", "byweekday"].some(prop => key === prop))
|
|
12900
14758
|
return true;
|
|
12901
14759
|
const value = input[key];
|
|
12902
14760
|
if (undefined === value)
|
|
@@ -12917,11 +14775,11 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
12917
14775
|
_report = __typia_transform__validateReport._validateReport(errors);
|
|
12918
14776
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
12919
14777
|
path: _path + "",
|
|
12920
|
-
expected: "
|
|
14778
|
+
expected: "IngestScheduleDomainRecord",
|
|
12921
14779
|
value: input
|
|
12922
14780
|
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
12923
14781
|
path: _path + "",
|
|
12924
|
-
expected: "
|
|
14782
|
+
expected: "IngestScheduleDomainRecord",
|
|
12925
14783
|
value: input
|
|
12926
14784
|
}))(input, "$input", true);
|
|
12927
14785
|
const success = 0 === errors.length;
|
|
@@ -12940,80 +14798,16 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
12940
14798
|
};
|
|
12941
14799
|
}; })()(input);
|
|
12942
14800
|
}
|
|
12943
|
-
case ":
|
|
12944
|
-
return (() => { const _io0 = (input, _exceptionable = true) =>
|
|
12945
|
-
if (["
|
|
14801
|
+
case ":ingestschedule.stats?": {
|
|
14802
|
+
return (() => { const _io0 = (input, _exceptionable = true) => true && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
14803
|
+
if (["error"].some(prop => key === prop))
|
|
12946
14804
|
return true;
|
|
12947
14805
|
const value = input[key];
|
|
12948
14806
|
if (undefined === value)
|
|
12949
14807
|
return true;
|
|
12950
14808
|
return false;
|
|
12951
|
-
})); const _vo0 = (input, _path, _exceptionable = true) => [
|
|
12952
|
-
|
|
12953
|
-
expected: "(number | undefined)",
|
|
12954
|
-
value: input.time
|
|
12955
|
-
}), undefined === input.duration || "number" === typeof input.duration || _report(_exceptionable, {
|
|
12956
|
-
path: _path + ".duration",
|
|
12957
|
-
expected: "(number | undefined)",
|
|
12958
|
-
value: input.duration
|
|
12959
|
-
}), undefined === input.type || "string" === typeof input.type || _report(_exceptionable, {
|
|
12960
|
-
path: _path + ".type",
|
|
12961
|
-
expected: "(string | undefined)",
|
|
12962
|
-
value: input.type
|
|
12963
|
-
}), undefined === input.record || "string" === typeof input.record || _report(_exceptionable, {
|
|
12964
|
-
path: _path + ".record",
|
|
12965
|
-
expected: "(string | undefined)",
|
|
12966
|
-
value: input.record
|
|
12967
|
-
}), undefined === input.data || "boolean" === typeof input.data || _report(_exceptionable, {
|
|
12968
|
-
path: _path + ".data",
|
|
12969
|
-
expected: "(boolean | undefined)",
|
|
12970
|
-
value: input.data
|
|
12971
|
-
}), undefined === input.gallery || "string" === typeof input.gallery || _report(_exceptionable, {
|
|
12972
|
-
path: _path + ".gallery",
|
|
12973
|
-
expected: "(string | undefined)",
|
|
12974
|
-
value: input.gallery
|
|
12975
|
-
}), undefined === input.rundown || "string" === typeof input.rundown || _report(_exceptionable, {
|
|
12976
|
-
path: _path + ".rundown",
|
|
12977
|
-
expected: "(string | undefined)",
|
|
12978
|
-
value: input.rundown
|
|
12979
|
-
}), undefined === input.segment || "string" === typeof input.segment || _report(_exceptionable, {
|
|
12980
|
-
path: _path + ".segment",
|
|
12981
|
-
expected: "(string | undefined)",
|
|
12982
|
-
value: input.segment
|
|
12983
|
-
}), undefined === input.story || "string" === typeof input.story || _report(_exceptionable, {
|
|
12984
|
-
path: _path + ".story",
|
|
12985
|
-
expected: "(string | undefined)",
|
|
12986
|
-
value: input.story
|
|
12987
|
-
}), undefined === input.event || "string" === typeof input.event || _report(_exceptionable, {
|
|
12988
|
-
path: _path + ".event",
|
|
12989
|
-
expected: "(string | undefined)",
|
|
12990
|
-
value: input.event
|
|
12991
|
-
}), undefined === input.title || "string" === typeof input.title || _report(_exceptionable, {
|
|
12992
|
-
path: _path + ".title",
|
|
12993
|
-
expected: "(string | undefined)",
|
|
12994
|
-
value: input.title
|
|
12995
|
-
}), undefined === input.start || "number" === typeof input.start || _report(_exceptionable, {
|
|
12996
|
-
path: _path + ".start",
|
|
12997
|
-
expected: "(number | undefined)",
|
|
12998
|
-
value: input.start
|
|
12999
|
-
}), undefined === input.end || "number" === typeof input.end || _report(_exceptionable, {
|
|
13000
|
-
path: _path + ".end",
|
|
13001
|
-
expected: "(number | undefined)",
|
|
13002
|
-
value: input.end
|
|
13003
|
-
}), undefined === input.channel || "string" === typeof input.channel || _report(_exceptionable, {
|
|
13004
|
-
path: _path + ".channel",
|
|
13005
|
-
expected: "(string | undefined)",
|
|
13006
|
-
value: input.channel
|
|
13007
|
-
}), undefined === input.schedule || "string" === typeof input.schedule || _report(_exceptionable, {
|
|
13008
|
-
path: _path + ".schedule",
|
|
13009
|
-
expected: "(string | undefined)",
|
|
13010
|
-
value: input.schedule
|
|
13011
|
-
}), undefined === input.parent || "string" === typeof input.parent || _report(_exceptionable, {
|
|
13012
|
-
path: _path + ".parent",
|
|
13013
|
-
expected: "(string | undefined)",
|
|
13014
|
-
value: input.parent
|
|
13015
|
-
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
13016
|
-
if (["time", "duration", "type", "record", "data", "gallery", "rundown", "segment", "story", "event", "title", "start", "end", "channel", "schedule", "parent"].some(prop => key === prop))
|
|
14809
|
+
})); const _vo0 = (input, _path, _exceptionable = true) => [true, 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
14810
|
+
if (["error"].some(prop => key === prop))
|
|
13017
14811
|
return true;
|
|
13018
14812
|
const value = input[key];
|
|
13019
14813
|
if (undefined === value)
|
|
@@ -13034,11 +14828,11 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
13034
14828
|
_report = __typia_transform__validateReport._validateReport(errors);
|
|
13035
14829
|
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
13036
14830
|
path: _path + "",
|
|
13037
|
-
expected: "
|
|
14831
|
+
expected: "IngestScheduleDomainStatsRecord",
|
|
13038
14832
|
value: input
|
|
13039
14833
|
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
13040
14834
|
path: _path + "",
|
|
13041
|
-
expected: "
|
|
14835
|
+
expected: "IngestScheduleDomainStatsRecord",
|
|
13042
14836
|
value: input
|
|
13043
14837
|
}))(input, "$input", true);
|
|
13044
14838
|
const success = 0 === errors.length;
|
|
@@ -15576,6 +17370,63 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
15576
17370
|
};
|
|
15577
17371
|
}; })()(input);
|
|
15578
17372
|
}
|
|
17373
|
+
case ":note": {
|
|
17374
|
+
return (() => { const _io0 = (input, _exceptionable = true) => "string" === typeof input.value && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
17375
|
+
if (["value"].some(prop => key === prop))
|
|
17376
|
+
return true;
|
|
17377
|
+
const value = input[key];
|
|
17378
|
+
if (undefined === value)
|
|
17379
|
+
return true;
|
|
17380
|
+
return false;
|
|
17381
|
+
})); const _vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.value || _report(_exceptionable, {
|
|
17382
|
+
path: _path + ".value",
|
|
17383
|
+
expected: "string",
|
|
17384
|
+
value: input.value
|
|
17385
|
+
}), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
17386
|
+
if (["value"].some(prop => key === prop))
|
|
17387
|
+
return true;
|
|
17388
|
+
const value = input[key];
|
|
17389
|
+
if (undefined === value)
|
|
17390
|
+
return true;
|
|
17391
|
+
return _report(_exceptionable, {
|
|
17392
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
17393
|
+
expected: "undefined",
|
|
17394
|
+
value: value,
|
|
17395
|
+
description: [
|
|
17396
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
17397
|
+
"",
|
|
17398
|
+
"Please remove the property next time."
|
|
17399
|
+
].join("\n")
|
|
17400
|
+
});
|
|
17401
|
+
}).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 => {
|
|
17402
|
+
if (false === __is(input)) {
|
|
17403
|
+
errors = [];
|
|
17404
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
17405
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
17406
|
+
path: _path + "",
|
|
17407
|
+
expected: "NoteDomainRecord",
|
|
17408
|
+
value: input
|
|
17409
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
17410
|
+
path: _path + "",
|
|
17411
|
+
expected: "NoteDomainRecord",
|
|
17412
|
+
value: input
|
|
17413
|
+
}))(input, "$input", true);
|
|
17414
|
+
const success = 0 === errors.length;
|
|
17415
|
+
return success ? {
|
|
17416
|
+
success,
|
|
17417
|
+
data: input
|
|
17418
|
+
} : {
|
|
17419
|
+
success,
|
|
17420
|
+
errors,
|
|
17421
|
+
data: input
|
|
17422
|
+
};
|
|
17423
|
+
}
|
|
17424
|
+
return {
|
|
17425
|
+
success: true,
|
|
17426
|
+
data: input
|
|
17427
|
+
};
|
|
17428
|
+
}; })()(input);
|
|
17429
|
+
}
|
|
15579
17430
|
case ":panel": {
|
|
15580
17431
|
return (() => { const _io0 = (input, _exceptionable = true) => (undefined === input.title || "string" === typeof input.title) && (null !== input.supports && (undefined === input.supports || "string" === typeof input.supports || Array.isArray(input.supports) && input.supports.every((elem, _index1) => "string" === typeof elem))) && (undefined === input.priority || "number" === typeof input.priority) && (undefined === input.editorPriority || "number" === typeof input.editorPriority) && (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) && _io6(input.layout, true && _exceptionable)) && true && true && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
15581
17432
|
if (["title", "supports", "priority", "editorPriority", "properties", "layout", "filter", "expand"].some(prop => key === prop))
|
|
@@ -15589,8 +17440,8 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
15589
17440
|
if (undefined === value)
|
|
15590
17441
|
return true;
|
|
15591
17442
|
return "object" === typeof value && null !== value && _io2(value, true && _exceptionable);
|
|
15592
|
-
}); const _io2 = (input, _exceptionable = true) => ("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.domain || "string" === typeof input.domain) && (undefined === input.path || "string" === typeof input.path) && true && (undefined === input.index || "object" === typeof input.index && null !== input.index && _io3(input.index, true && _exceptionable)) && (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) && _io4(elem, true && _exceptionable))) && (undefined === input.anyOf || Array.isArray(input.anyOf) && input.anyOf.every((elem, _index3) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io5(elem, true && _exceptionable))) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
15593
|
-
if (["type", "title", "description", "domain", "path", "computed", "index", "required", "oneOf", "anyOf"].some(prop => key === prop))
|
|
17443
|
+
}); const _io2 = (input, _exceptionable = true) => ("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.domain || "string" === typeof input.domain) && (undefined === input.path || "string" === typeof input.path) && true && (undefined === input.index || "object" === typeof input.index && null !== input.index && _io3(input.index, true && _exceptionable)) && (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) && _io4(elem, true && _exceptionable))) && (undefined === input.anyOf || Array.isArray(input.anyOf) && input.anyOf.every((elem, _index3) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io5(elem, true && _exceptionable))) && (undefined === input["enum"] || Array.isArray(input["enum"])) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
17444
|
+
if (["type", "title", "description", "domain", "path", "computed", "index", "required", "oneOf", "anyOf", "enum"].some(prop => key === prop))
|
|
15594
17445
|
return true;
|
|
15595
17446
|
const value = input[key];
|
|
15596
17447
|
if (undefined === value)
|
|
@@ -15631,14 +17482,14 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
15631
17482
|
if (undefined === value)
|
|
15632
17483
|
return true;
|
|
15633
17484
|
return false;
|
|
15634
|
-
})); const _io8 = (input, _exceptionable = true) => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "
|
|
17485
|
+
})); const _io8 = (input, _exceptionable = true) => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "tags" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "object" === typeof input.widget && null !== input.widget && _io9(input.widget, true && _exceptionable))) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
15635
17486
|
if (["property", "width", "widget"].some(prop => key === prop))
|
|
15636
17487
|
return true;
|
|
15637
17488
|
const value = input[key];
|
|
15638
17489
|
if (undefined === value)
|
|
15639
17490
|
return true;
|
|
15640
17491
|
return false;
|
|
15641
|
-
})); const _io9 = (input, _exceptionable = true) => ("default" === input.type || "
|
|
17492
|
+
})); const _io9 = (input, _exceptionable = true) => ("default" === input.type || "tags" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly) && (1 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
15642
17493
|
if (["type", "readOnly"].some(prop => key === prop))
|
|
15643
17494
|
return true;
|
|
15644
17495
|
const value = input[key];
|
|
@@ -15718,11 +17569,11 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
15718
17569
|
return true;
|
|
15719
17570
|
return ("object" === typeof value && null !== value || _report(_exceptionable, {
|
|
15720
17571
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
15721
|
-
expected: "PanelProperty",
|
|
17572
|
+
expected: "PanelProperty<unknown>",
|
|
15722
17573
|
value: value
|
|
15723
17574
|
})) && _vo2(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
15724
17575
|
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
15725
|
-
expected: "PanelProperty",
|
|
17576
|
+
expected: "PanelProperty<unknown>",
|
|
15726
17577
|
value: value
|
|
15727
17578
|
});
|
|
15728
17579
|
}).every(flag => flag)].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["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, {
|
|
@@ -15789,8 +17640,12 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
15789
17640
|
path: _path + ".anyOf",
|
|
15790
17641
|
expected: "(Array<__type>.o1 | undefined)",
|
|
15791
17642
|
value: input.anyOf
|
|
17643
|
+
}), undefined === input["enum"] || Array.isArray(input["enum"]) || _report(_exceptionable, {
|
|
17644
|
+
path: _path + "[\"enum\"]",
|
|
17645
|
+
expected: "(Array<unknown> | undefined)",
|
|
17646
|
+
value: input["enum"]
|
|
15792
17647
|
}), 1 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
15793
|
-
if (["type", "title", "description", "domain", "path", "computed", "index", "required", "oneOf", "anyOf"].some(prop => key === prop))
|
|
17648
|
+
if (["type", "title", "description", "domain", "path", "computed", "index", "required", "oneOf", "anyOf", "enum"].some(prop => key === prop))
|
|
15794
17649
|
return true;
|
|
15795
17650
|
const value = input[key];
|
|
15796
17651
|
if (undefined === value)
|
|
@@ -15953,7 +17808,7 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
15953
17808
|
path: _path + ".widget",
|
|
15954
17809
|
expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
|
|
15955
17810
|
value: input.widget
|
|
15956
|
-
})) && (undefined === input.widget || "default" === input.widget || "
|
|
17811
|
+
})) && (undefined === input.widget || "default" === input.widget || "tags" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || ("object" === typeof input.widget && null !== input.widget || _report(_exceptionable, {
|
|
15957
17812
|
path: _path + ".widget",
|
|
15958
17813
|
expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
|
|
15959
17814
|
value: input.widget
|
|
@@ -15977,7 +17832,7 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
15977
17832
|
"Please remove the property next time."
|
|
15978
17833
|
].join("\n")
|
|
15979
17834
|
});
|
|
15980
|
-
}).every(flag => flag))].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => ["default" === input.type || "
|
|
17835
|
+
}).every(flag => flag))].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => ["default" === input.type || "tags" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || _report(_exceptionable, {
|
|
15981
17836
|
path: _path + ".type",
|
|
15982
17837
|
expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
|
|
15983
17838
|
value: input.type
|
|
@@ -24045,8 +25900,8 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
24045
25900
|
}; })()(input);
|
|
24046
25901
|
}
|
|
24047
25902
|
case ":settings": {
|
|
24048
|
-
return (() => { const _iv22 = new Set(["name", "fontname", "fontsize", "primaryColour", "secondaryColour", "outlineColour", "backColour", "bold", "italic", "underline", "strikeOut", "scaleX", "scaleY", "spacing", "angle", "borderStyle", "outline", "shadow", "alignment", "marginL", "marginR", "marginV", "encoding"]); const _iv26 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]); const _vv54 = new Set(["name", "fontname", "fontsize", "primaryColour", "secondaryColour", "outlineColour", "backColour", "bold", "italic", "underline", "strikeOut", "scaleX", "scaleY", "spacing", "angle", "borderStyle", "outline", "shadow", "alignment", "marginL", "marginR", "marginV", "encoding"]); const _vv58 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]); const _io0 = (input, _exceptionable = true) => (undefined === input.autoLogoutTime || "number" === typeof input.autoLogoutTime) && (undefined === input.permission || "object" === typeof input.permission && null !== input.permission && false === Array.isArray(input.permission) && _io1(input.permission, true && _exceptionable)) && (undefined === input["module"] || "object" === typeof input["module"] && null !== input["module"] && false === Array.isArray(input["module"]) && _io2(input["module"], true && _exceptionable)) && (undefined === input.upload || "object" === typeof input.upload && null !== input.upload && false === Array.isArray(input.upload) && _io6(input.upload, true && _exceptionable)) && (undefined === input.download || "object" === typeof input.download && null !== input.download && false === Array.isArray(input.download) && _io7(input.download, true && _exceptionable)) && (undefined === input.browser || "object" === typeof input.browser && null !== input.browser && false === Array.isArray(input.browser) && _io8(input.browser, true && _exceptionable)) && (undefined === input.toolbarTags || "object" === typeof input.toolbarTags && null !== input.toolbarTags && false === Array.isArray(input.toolbarTags) && _io12(input.toolbarTags, true && _exceptionable)) && (undefined === input.exclusiveTagGroups || Array.isArray(input.exclusiveTagGroups) && input.exclusiveTagGroups.every((elem, _index1) => Array.isArray(elem) && elem.every((elem, _index2) => "string" === typeof elem))) && (undefined === input.deadlines || "object" === typeof input.deadlines && null !== input.deadlines && false === Array.isArray(input.deadlines) && _io13(input.deadlines, true && _exceptionable)) && (undefined === input.assignees || "object" === typeof input.assignees && null !== input.assignees && false === Array.isArray(input.assignees) && _io14(input.assignees, true && _exceptionable)) && (undefined === input.comments || "object" === typeof input.comments && null !== input.comments && false === Array.isArray(input.comments) && _io15(input.comments, true && _exceptionable)) && (undefined === input.clock || "object" === typeof input.clock && null !== input.clock && false === Array.isArray(input.clock) && _io16(input.clock, true && _exceptionable)) && (undefined === input.swarm || "object" === typeof input.swarm && null !== input.swarm && false === Array.isArray(input.swarm) && _io17(input.swarm, true && _exceptionable)) && (undefined === input.dashboard || "object" === typeof input.dashboard && null !== input.dashboard && false === Array.isArray(input.dashboard) && _io18(input.dashboard, true && _exceptionable)) && (undefined === input.script || "object" === typeof input.script && null !== input.script && false === Array.isArray(input.script) && _io20(input.script, true && _exceptionable)) && (undefined === input.events || "object" === typeof input.events && null !== input.events && false === Array.isArray(input.events) && _io25(input.events, true && _exceptionable)) && (undefined === input.rundown || "object" === typeof input.rundown && null !== input.rundown && false === Array.isArray(input.rundown) && _io28(input.rundown, true && _exceptionable)) && (undefined === input.gallery || "object" === typeof input.gallery && null !== input.gallery && false === Array.isArray(input.gallery) && _io29(input.gallery, true && _exceptionable)) && (undefined === input.history || "boolean" === typeof input.history) && (undefined === input.keymap || "object" === typeof input.keymap && null !== input.keymap && false === Array.isArray(input.keymap) && _io30(input.keymap, true && _exceptionable)) && (undefined === input.media || "object" === typeof input.media && null !== input.media && false === Array.isArray(input.media) && _io43(input.media, true && _exceptionable)) && (undefined === input.edit || "object" === typeof input.edit && null !== input.edit && false === Array.isArray(input.edit) && _io56(input.edit, true && _exceptionable)) && (undefined === input.commands || Array.isArray(input.commands) && input.commands.every((elem, _index3) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io58(elem, true && _exceptionable))) && (undefined === input.predefinedTags || Array.isArray(input.predefinedTags) && input.predefinedTags.every((elem, _index4) => "string" === typeof elem)) && (undefined === input.storyboard || "object" === typeof input.storyboard && null !== input.storyboard && false === Array.isArray(input.storyboard) && _io59(input.storyboard, true && _exceptionable)) && (undefined === input.print || "object" === typeof input.print && null !== input.print && false === Array.isArray(input.print) && _io68(input.print, true && _exceptionable)) && (undefined === input.hiddenPreviews || Array.isArray(input.hiddenPreviews) && input.hiddenPreviews.every((elem, _index5) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io69(elem, true && _exceptionable))) && (undefined === input.plugins || "object" === typeof input.plugins && null !== input.plugins && false === Array.isArray(input.plugins) && _io70(input.plugins, true && _exceptionable)) && (undefined === input.crashScreen || "boolean" === typeof input.crashScreen) && (undefined === input.debug || "boolean" === typeof input.debug) && (undefined === input.featurePreview || "object" === typeof input.featurePreview && null !== input.featurePreview && false === Array.isArray(input.featurePreview) && _io73(input.featurePreview, true && _exceptionable)) && (undefined === input.flags || "object" === typeof input.flags && null !== input.flags && false === Array.isArray(input.flags) && _io74(input.flags, true && _exceptionable)) && (undefined === input.notifications || "object" === typeof input.notifications && null !== input.notifications && false === Array.isArray(input.notifications) && _io75(input.notifications, true && _exceptionable)) && (undefined === input.suppressDeleteAlert || "boolean" === typeof input.suppressDeleteAlert) && (undefined === input.clone || "object" === typeof input.clone && null !== input.clone && false === Array.isArray(input.clone) && _io78(input.clone, true && _exceptionable)) && (undefined === input.utilsAssetEditorPanel || "object" === typeof input.utilsAssetEditorPanel && null !== input.utilsAssetEditorPanel && false === Array.isArray(input.utilsAssetEditorPanel) && _io80(input.utilsAssetEditorPanel, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
24049
|
-
if (["autoLogoutTime", "permission", "module", "upload", "download", "browser", "toolbarTags", "exclusiveTagGroups", "deadlines", "assignees", "comments", "clock", "swarm", "dashboard", "script", "events", "rundown", "gallery", "history", "keymap", "media", "edit", "commands", "predefinedTags", "storyboard", "print", "hiddenPreviews", "plugins", "crashScreen", "debug", "featurePreview", "flags", "notifications", "suppressDeleteAlert", "clone", "utilsAssetEditorPanel"].some(prop => key === prop))
|
|
25903
|
+
return (() => { const _iv22 = new Set(["name", "fontname", "fontsize", "primaryColour", "secondaryColour", "outlineColour", "backColour", "bold", "italic", "underline", "strikeOut", "scaleX", "scaleY", "spacing", "angle", "borderStyle", "outline", "shadow", "alignment", "marginL", "marginR", "marginV", "encoding"]); const _iv26 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]); const _vv54 = new Set(["name", "fontname", "fontsize", "primaryColour", "secondaryColour", "outlineColour", "backColour", "bold", "italic", "underline", "strikeOut", "scaleX", "scaleY", "spacing", "angle", "borderStyle", "outline", "shadow", "alignment", "marginL", "marginR", "marginV", "encoding"]); const _vv58 = new Set(["default", "manual", "az", "za", "newest", "oldest", "mostrecent", "leastrecent", "earliestdeadline", "latestdeadline"]); const _io0 = (input, _exceptionable = true) => (undefined === input.autoLogoutTime || "number" === typeof input.autoLogoutTime) && (undefined === input.permission || "object" === typeof input.permission && null !== input.permission && false === Array.isArray(input.permission) && _io1(input.permission, true && _exceptionable)) && (undefined === input["module"] || "object" === typeof input["module"] && null !== input["module"] && false === Array.isArray(input["module"]) && _io2(input["module"], true && _exceptionable)) && (undefined === input.upload || "object" === typeof input.upload && null !== input.upload && false === Array.isArray(input.upload) && _io6(input.upload, true && _exceptionable)) && (undefined === input.download || "object" === typeof input.download && null !== input.download && false === Array.isArray(input.download) && _io7(input.download, true && _exceptionable)) && (undefined === input.browser || "object" === typeof input.browser && null !== input.browser && false === Array.isArray(input.browser) && _io8(input.browser, true && _exceptionable)) && (undefined === input.toolbarTags || "object" === typeof input.toolbarTags && null !== input.toolbarTags && false === Array.isArray(input.toolbarTags) && _io12(input.toolbarTags, true && _exceptionable)) && (undefined === input.exclusiveTagGroups || Array.isArray(input.exclusiveTagGroups) && input.exclusiveTagGroups.every((elem, _index1) => Array.isArray(elem) && elem.every((elem, _index2) => "string" === typeof elem))) && (undefined === input.deadlines || "object" === typeof input.deadlines && null !== input.deadlines && false === Array.isArray(input.deadlines) && _io13(input.deadlines, true && _exceptionable)) && (undefined === input.assignees || "object" === typeof input.assignees && null !== input.assignees && false === Array.isArray(input.assignees) && _io14(input.assignees, true && _exceptionable)) && (undefined === input.comments || "object" === typeof input.comments && null !== input.comments && false === Array.isArray(input.comments) && _io15(input.comments, true && _exceptionable)) && (undefined === input.clock || "object" === typeof input.clock && null !== input.clock && false === Array.isArray(input.clock) && _io16(input.clock, true && _exceptionable)) && (undefined === input.swarm || "object" === typeof input.swarm && null !== input.swarm && false === Array.isArray(input.swarm) && _io17(input.swarm, true && _exceptionable)) && (undefined === input.dashboard || "object" === typeof input.dashboard && null !== input.dashboard && false === Array.isArray(input.dashboard) && _io18(input.dashboard, true && _exceptionable)) && (undefined === input.script || "object" === typeof input.script && null !== input.script && false === Array.isArray(input.script) && _io20(input.script, true && _exceptionable)) && (undefined === input.events || "object" === typeof input.events && null !== input.events && false === Array.isArray(input.events) && _io25(input.events, true && _exceptionable)) && (undefined === input.rundown || "object" === typeof input.rundown && null !== input.rundown && false === Array.isArray(input.rundown) && _io28(input.rundown, true && _exceptionable)) && (undefined === input.gallery || "object" === typeof input.gallery && null !== input.gallery && false === Array.isArray(input.gallery) && _io29(input.gallery, true && _exceptionable)) && (undefined === input.history || "boolean" === typeof input.history) && (undefined === input.keymap || "object" === typeof input.keymap && null !== input.keymap && false === Array.isArray(input.keymap) && _io30(input.keymap, true && _exceptionable)) && (undefined === input.media || "object" === typeof input.media && null !== input.media && false === Array.isArray(input.media) && _io43(input.media, true && _exceptionable)) && (undefined === input.edit || "object" === typeof input.edit && null !== input.edit && false === Array.isArray(input.edit) && _io56(input.edit, true && _exceptionable)) && (undefined === input.commands || Array.isArray(input.commands) && input.commands.every((elem, _index3) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io58(elem, true && _exceptionable))) && (undefined === input.predefinedTags || Array.isArray(input.predefinedTags) && input.predefinedTags.every((elem, _index4) => "string" === typeof elem)) && (undefined === input.storyboard || "object" === typeof input.storyboard && null !== input.storyboard && false === Array.isArray(input.storyboard) && _io59(input.storyboard, true && _exceptionable)) && (undefined === input.print || "object" === typeof input.print && null !== input.print && false === Array.isArray(input.print) && _io68(input.print, true && _exceptionable)) && (undefined === input.hiddenPreviews || Array.isArray(input.hiddenPreviews) && input.hiddenPreviews.every((elem, _index5) => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && _io69(elem, true && _exceptionable))) && (undefined === input.plugins || "object" === typeof input.plugins && null !== input.plugins && false === Array.isArray(input.plugins) && _io70(input.plugins, true && _exceptionable)) && (undefined === input.crashScreen || "boolean" === typeof input.crashScreen) && (undefined === input.debug || "boolean" === typeof input.debug) && (undefined === input.featurePreview || "object" === typeof input.featurePreview && null !== input.featurePreview && false === Array.isArray(input.featurePreview) && _io73(input.featurePreview, true && _exceptionable)) && (undefined === input.flags || "object" === typeof input.flags && null !== input.flags && false === Array.isArray(input.flags) && _io74(input.flags, true && _exceptionable)) && (undefined === input.notifications || "object" === typeof input.notifications && null !== input.notifications && false === Array.isArray(input.notifications) && _io75(input.notifications, true && _exceptionable)) && (undefined === input.suppressDeleteAlert || "boolean" === typeof input.suppressDeleteAlert) && (undefined === input.clone || "object" === typeof input.clone && null !== input.clone && false === Array.isArray(input.clone) && _io78(input.clone, true && _exceptionable)) && (undefined === input.utilsAssetEditorPanel || "object" === typeof input.utilsAssetEditorPanel && null !== input.utilsAssetEditorPanel && false === Array.isArray(input.utilsAssetEditorPanel) && _io80(input.utilsAssetEditorPanel, true && _exceptionable)) && (undefined === input.display || "object" === typeof input.display && null !== input.display && false === Array.isArray(input.display) && _io81(input.display, true && _exceptionable)) && (undefined === input.bookmarks || "object" === typeof input.bookmarks && null !== input.bookmarks && false === Array.isArray(input.bookmarks) && _io82(input.bookmarks, true && _exceptionable)) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
25904
|
+
if (["autoLogoutTime", "permission", "module", "upload", "download", "browser", "toolbarTags", "exclusiveTagGroups", "deadlines", "assignees", "comments", "clock", "swarm", "dashboard", "script", "events", "rundown", "gallery", "history", "keymap", "media", "edit", "commands", "predefinedTags", "storyboard", "print", "hiddenPreviews", "plugins", "crashScreen", "debug", "featurePreview", "flags", "notifications", "suppressDeleteAlert", "clone", "utilsAssetEditorPanel", "display", "bookmarks"].some(prop => key === prop))
|
|
24050
25905
|
return true;
|
|
24051
25906
|
const value = input[key];
|
|
24052
25907
|
if (undefined === value)
|
|
@@ -24073,15 +25928,15 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
24073
25928
|
if (undefined === value)
|
|
24074
25929
|
return true;
|
|
24075
25930
|
return undefined === value || "object" === typeof value && null !== value && false === Array.isArray(value) && _io5(value, true && _exceptionable);
|
|
24076
|
-
}); const _io4 = (input, _exceptionable = true) => (undefined === input.activeSectionIndex || "number" === typeof input.activeSectionIndex) && (null === input.activeTab || undefined === input.activeTab || "string" === typeof input.activeTab) && (undefined === input.priority || "number" === typeof input.priority) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
24077
|
-
if (["activeSectionIndex", "activeTab", "priority"].some(prop => key === prop))
|
|
25931
|
+
}); const _io4 = (input, _exceptionable = true) => (undefined === input.activeSectionIndex || "number" === typeof input.activeSectionIndex) && (null === input.activeTab || undefined === input.activeTab || "string" === typeof input.activeTab) && (undefined === input.priority || "number" === typeof input.priority) && (null === input.height || undefined === input.height || "number" === typeof input.height) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
25932
|
+
if (["activeSectionIndex", "activeTab", "priority", "height"].some(prop => key === prop))
|
|
24078
25933
|
return true;
|
|
24079
25934
|
const value = input[key];
|
|
24080
25935
|
if (undefined === value)
|
|
24081
25936
|
return true;
|
|
24082
25937
|
return false;
|
|
24083
|
-
})); const _io5 = (input, _exceptionable = true) => (null === input.activeTab || undefined === input.activeTab || "string" === typeof input.activeTab) && (undefined === input.priority || "number" === typeof input.priority) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
24084
|
-
if (["activeTab", "priority"].some(prop => key === prop))
|
|
25938
|
+
})); const _io5 = (input, _exceptionable = true) => (null === input.activeTab || undefined === input.activeTab || "string" === typeof input.activeTab) && (undefined === input.priority || "number" === typeof input.priority) && (null === input.height || undefined === input.height || "number" === typeof input.height) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
25939
|
+
if (["activeTab", "priority", "height"].some(prop => key === prop))
|
|
24085
25940
|
return true;
|
|
24086
25941
|
const value = input[key];
|
|
24087
25942
|
if (undefined === value)
|
|
@@ -24584,6 +26439,20 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
24584
26439
|
if (undefined === value)
|
|
24585
26440
|
return true;
|
|
24586
26441
|
return false;
|
|
26442
|
+
})); const _io81 = (input, _exceptionable = true) => (undefined === input.disableHotArea || "boolean" === typeof input.disableHotArea) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
26443
|
+
if (["disableHotArea"].some(prop => key === prop))
|
|
26444
|
+
return true;
|
|
26445
|
+
const value = input[key];
|
|
26446
|
+
if (undefined === value)
|
|
26447
|
+
return true;
|
|
26448
|
+
return false;
|
|
26449
|
+
})); const _io82 = (input, _exceptionable = true) => (undefined === input.refreshInterval || "number" === typeof input.refreshInterval) && (0 === Object.keys(input).length || Object.keys(input).every(key => {
|
|
26450
|
+
if (["refreshInterval"].some(prop => key === prop))
|
|
26451
|
+
return true;
|
|
26452
|
+
const value = input[key];
|
|
26453
|
+
if (undefined === value)
|
|
26454
|
+
return true;
|
|
26455
|
+
return false;
|
|
24587
26456
|
})); const _vo0 = (input, _path, _exceptionable = true) => [undefined === input.autoLogoutTime || "number" === typeof input.autoLogoutTime || _report(_exceptionable, {
|
|
24588
26457
|
path: _path + ".autoLogoutTime",
|
|
24589
26458
|
expected: "(number | undefined)",
|
|
@@ -24884,8 +26753,24 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
24884
26753
|
path: _path + ".utilsAssetEditorPanel",
|
|
24885
26754
|
expected: "(__type.o73 | undefined)",
|
|
24886
26755
|
value: input.utilsAssetEditorPanel
|
|
26756
|
+
}), undefined === input.display || ("object" === typeof input.display && null !== input.display && false === Array.isArray(input.display) || _report(_exceptionable, {
|
|
26757
|
+
path: _path + ".display",
|
|
26758
|
+
expected: "(__type.o74 | undefined)",
|
|
26759
|
+
value: input.display
|
|
26760
|
+
})) && _vo81(input.display, _path + ".display", true && _exceptionable) || _report(_exceptionable, {
|
|
26761
|
+
path: _path + ".display",
|
|
26762
|
+
expected: "(__type.o74 | undefined)",
|
|
26763
|
+
value: input.display
|
|
26764
|
+
}), undefined === input.bookmarks || ("object" === typeof input.bookmarks && null !== input.bookmarks && false === Array.isArray(input.bookmarks) || _report(_exceptionable, {
|
|
26765
|
+
path: _path + ".bookmarks",
|
|
26766
|
+
expected: "(__type.o75 | undefined)",
|
|
26767
|
+
value: input.bookmarks
|
|
26768
|
+
})) && _vo82(input.bookmarks, _path + ".bookmarks", true && _exceptionable) || _report(_exceptionable, {
|
|
26769
|
+
path: _path + ".bookmarks",
|
|
26770
|
+
expected: "(__type.o75 | undefined)",
|
|
26771
|
+
value: input.bookmarks
|
|
24887
26772
|
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
24888
|
-
if (["autoLogoutTime", "permission", "module", "upload", "download", "browser", "toolbarTags", "exclusiveTagGroups", "deadlines", "assignees", "comments", "clock", "swarm", "dashboard", "script", "events", "rundown", "gallery", "history", "keymap", "media", "edit", "commands", "predefinedTags", "storyboard", "print", "hiddenPreviews", "plugins", "crashScreen", "debug", "featurePreview", "flags", "notifications", "suppressDeleteAlert", "clone", "utilsAssetEditorPanel"].some(prop => key === prop))
|
|
26773
|
+
if (["autoLogoutTime", "permission", "module", "upload", "download", "browser", "toolbarTags", "exclusiveTagGroups", "deadlines", "assignees", "comments", "clock", "swarm", "dashboard", "script", "events", "rundown", "gallery", "history", "keymap", "media", "edit", "commands", "predefinedTags", "storyboard", "print", "hiddenPreviews", "plugins", "crashScreen", "debug", "featurePreview", "flags", "notifications", "suppressDeleteAlert", "clone", "utilsAssetEditorPanel", "display", "bookmarks"].some(prop => key === prop))
|
|
24889
26774
|
return true;
|
|
24890
26775
|
const value = input[key];
|
|
24891
26776
|
if (undefined === value)
|
|
@@ -24987,8 +26872,12 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
24987
26872
|
path: _path + ".priority",
|
|
24988
26873
|
expected: "(number | undefined)",
|
|
24989
26874
|
value: input.priority
|
|
26875
|
+
}), null === input.height || undefined === input.height || "number" === typeof input.height || _report(_exceptionable, {
|
|
26876
|
+
path: _path + ".height",
|
|
26877
|
+
expected: "(null | number | undefined)",
|
|
26878
|
+
value: input.height
|
|
24990
26879
|
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
24991
|
-
if (["activeSectionIndex", "activeTab", "priority"].some(prop => key === prop))
|
|
26880
|
+
if (["activeSectionIndex", "activeTab", "priority", "height"].some(prop => key === prop))
|
|
24992
26881
|
return true;
|
|
24993
26882
|
const value = input[key];
|
|
24994
26883
|
if (undefined === value)
|
|
@@ -25011,8 +26900,12 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
25011
26900
|
path: _path + ".priority",
|
|
25012
26901
|
expected: "(number | undefined)",
|
|
25013
26902
|
value: input.priority
|
|
26903
|
+
}), null === input.height || undefined === input.height || "number" === typeof input.height || _report(_exceptionable, {
|
|
26904
|
+
path: _path + ".height",
|
|
26905
|
+
expected: "(null | number | undefined)",
|
|
26906
|
+
value: input.height
|
|
25014
26907
|
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
25015
|
-
if (["activeTab", "priority"].some(prop => key === prop))
|
|
26908
|
+
if (["activeTab", "priority", "height"].some(prop => key === prop))
|
|
25016
26909
|
return true;
|
|
25017
26910
|
const value = input[key];
|
|
25018
26911
|
if (undefined === value)
|
|
@@ -27345,6 +29238,46 @@ function _validateEqualsDomainRecord(domain, input) {
|
|
|
27345
29238
|
"Please remove the property next time."
|
|
27346
29239
|
].join("\n")
|
|
27347
29240
|
});
|
|
29241
|
+
}).every(flag => flag))].every(flag => flag); const _vo81 = (input, _path, _exceptionable = true) => [undefined === input.disableHotArea || "boolean" === typeof input.disableHotArea || _report(_exceptionable, {
|
|
29242
|
+
path: _path + ".disableHotArea",
|
|
29243
|
+
expected: "(boolean | undefined)",
|
|
29244
|
+
value: input.disableHotArea
|
|
29245
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
29246
|
+
if (["disableHotArea"].some(prop => key === prop))
|
|
29247
|
+
return true;
|
|
29248
|
+
const value = input[key];
|
|
29249
|
+
if (undefined === value)
|
|
29250
|
+
return true;
|
|
29251
|
+
return _report(_exceptionable, {
|
|
29252
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
29253
|
+
expected: "undefined",
|
|
29254
|
+
value: value,
|
|
29255
|
+
description: [
|
|
29256
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
29257
|
+
"",
|
|
29258
|
+
"Please remove the property next time."
|
|
29259
|
+
].join("\n")
|
|
29260
|
+
});
|
|
29261
|
+
}).every(flag => flag))].every(flag => flag); const _vo82 = (input, _path, _exceptionable = true) => [undefined === input.refreshInterval || "number" === typeof input.refreshInterval || _report(_exceptionable, {
|
|
29262
|
+
path: _path + ".refreshInterval",
|
|
29263
|
+
expected: "(number | undefined)",
|
|
29264
|
+
value: input.refreshInterval
|
|
29265
|
+
}), 0 === Object.keys(input).length || (false === _exceptionable || Object.keys(input).map(key => {
|
|
29266
|
+
if (["refreshInterval"].some(prop => key === prop))
|
|
29267
|
+
return true;
|
|
29268
|
+
const value = input[key];
|
|
29269
|
+
if (undefined === value)
|
|
29270
|
+
return true;
|
|
29271
|
+
return _report(_exceptionable, {
|
|
29272
|
+
path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
|
|
29273
|
+
expected: "undefined",
|
|
29274
|
+
value: value,
|
|
29275
|
+
description: [
|
|
29276
|
+
`The property \`${key}\` is not defined in the object type.`,
|
|
29277
|
+
"",
|
|
29278
|
+
"Please remove the property next time."
|
|
29279
|
+
].join("\n")
|
|
29280
|
+
});
|
|
27348
29281
|
}).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 => {
|
|
27349
29282
|
if (false === __is(input)) {
|
|
27350
29283
|
errors = [];
|