@nxtedition/types 23.0.39 → 23.0.41

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.
Files changed (243) hide show
  1. package/dist/app.d.ts +0 -51
  2. package/dist/app.js +1 -823
  3. package/dist/common/block.d.ts +6 -13
  4. package/dist/common/block.js +597 -1607
  5. package/dist/common/clone.d.ts +0 -19
  6. package/dist/common/clone.js +1 -602
  7. package/dist/common/date.d.ts +0 -7
  8. package/dist/common/date.js +1 -59
  9. package/dist/common/error.d.ts +0 -7
  10. package/dist/common/error.js +1 -404
  11. package/dist/common/file.d.ts +1 -21
  12. package/dist/common/file.js +782 -2521
  13. package/dist/common/index.d.ts +20 -26
  14. package/dist/common/index.js +20 -134
  15. package/dist/common/location.d.ts +0 -6
  16. package/dist/common/location.js +73 -238
  17. package/dist/common/lock.d.ts +1 -8
  18. package/dist/common/lock.js +1 -211
  19. package/dist/common/media.d.ts +0 -7
  20. package/dist/common/media.js +1 -83
  21. package/dist/common/nxtpression.d.ts +2 -9
  22. package/dist/common/nxtpression.js +1 -277
  23. package/dist/common/pipeline.d.ts +0 -7
  24. package/dist/common/pipeline.js +1 -97
  25. package/dist/common/promoted-tag.d.ts +0 -7
  26. package/dist/common/promoted-tag.js +1 -147
  27. package/dist/common/render-preset.d.ts +2 -15
  28. package/dist/common/render-preset.js +1 -1202
  29. package/dist/common/render-profile.d.ts +0 -19
  30. package/dist/common/render-profile.js +1 -1052
  31. package/dist/common/render-query.d.ts +2 -9
  32. package/dist/common/render-query.js +1 -1754
  33. package/dist/common/render-scene.d.ts +2 -15
  34. package/dist/common/render-scene.js +1 -2230
  35. package/dist/common/rule.d.ts +1 -7
  36. package/dist/common/rule.js +84 -254
  37. package/dist/common/search.d.ts +0 -25
  38. package/dist/common/search.js +1 -1591
  39. package/dist/common/settings.d.ts +128 -121
  40. package/dist/common/settings.js +1 -6936
  41. package/dist/common/subtitle-style.d.ts +25 -0
  42. package/dist/common/user-notification.d.ts +0 -7
  43. package/dist/common/user-notification.js +1 -85
  44. package/dist/index.d.ts +5 -85
  45. package/dist/index.js +5 -187
  46. package/dist/nxtpression.d.ts +732 -344
  47. package/dist/nxtpression.js +1 -323
  48. package/dist/records/domains/asset.d.ts +106 -0
  49. package/dist/records/domains/bundle.d.ts +12 -0
  50. package/dist/records/domains/bundle.js +1 -0
  51. package/dist/records/domains/clone.d.ts +7 -0
  52. package/dist/records/domains/clone.js +1 -0
  53. package/dist/records/domains/comment-reaction.d.ts +8 -0
  54. package/dist/records/domains/comment-reaction.js +1 -0
  55. package/dist/records/domains/comment-read-mark.d.ts +8 -0
  56. package/dist/records/domains/comment-read-mark.js +1 -0
  57. package/dist/records/domains/comment.d.ts +81 -0
  58. package/dist/records/domains/comment.js +19 -0
  59. package/dist/records/domains/connection.d.ts +77 -0
  60. package/dist/records/domains/connection.js +1 -0
  61. package/dist/records/domains/contact.d.ts +9 -0
  62. package/dist/records/domains/contact.js +1 -0
  63. package/dist/records/domains/deepstream.d.ts +7 -0
  64. package/dist/records/domains/deepstream.js +1 -0
  65. package/dist/records/domains/design.d.ts +11 -0
  66. package/dist/records/domains/design.js +1 -0
  67. package/dist/records/domains/edit.d.ts +10 -0
  68. package/dist/records/domains/edit.js +1 -0
  69. package/dist/records/domains/event.d.ts +66 -0
  70. package/dist/records/domains/event.js +1 -0
  71. package/dist/records/domains/file.d.ts +26 -0
  72. package/dist/records/domains/file.js +1 -0
  73. package/dist/records/domains/general.d.ts +41 -0
  74. package/dist/records/domains/general.js +1 -0
  75. package/dist/records/domains/index.d.ts +77 -0
  76. package/dist/records/domains/index.js +38 -0
  77. package/dist/records/domains/media.d.ts +64 -0
  78. package/dist/records/domains/media.js +1 -0
  79. package/dist/records/domains/monitor.d.ts +116 -0
  80. package/dist/records/domains/monitor.js +1 -0
  81. package/dist/records/domains/panel.d.ts +55 -0
  82. package/dist/records/domains/panel.js +1 -0
  83. package/dist/records/domains/permission.d.ts +25 -0
  84. package/dist/records/domains/permission.js +2 -0
  85. package/dist/records/domains/pipeline-preset.d.ts +10 -0
  86. package/dist/records/domains/pipeline-preset.js +1 -0
  87. package/dist/records/domains/pipeline.d.ts +17 -0
  88. package/dist/records/domains/pipeline.js +1 -0
  89. package/dist/records/domains/planning.d.ts +14 -0
  90. package/dist/records/domains/planning.js +1 -0
  91. package/dist/records/domains/prompter.d.ts +18 -0
  92. package/dist/records/domains/prompter.js +1 -0
  93. package/dist/records/domains/publish.d.ts +145 -0
  94. package/dist/records/domains/publish.js +1 -0
  95. package/dist/records/domains/published.d.ts +12 -0
  96. package/dist/records/domains/published.js +1 -0
  97. package/dist/records/domains/render-preset.d.ts +5 -0
  98. package/dist/records/domains/render-preset.js +1 -0
  99. package/dist/records/domains/render.d.ts +115 -0
  100. package/dist/records/domains/render.js +1 -0
  101. package/dist/records/domains/revs.d.ts +6 -0
  102. package/dist/records/domains/revs.js +1 -0
  103. package/dist/records/domains/role.d.ts +6 -0
  104. package/dist/records/domains/role.js +1 -0
  105. package/dist/records/domains/script.d.ts +101 -0
  106. package/dist/records/domains/script.js +1 -0
  107. package/dist/records/domains/search.d.ts +9 -0
  108. package/dist/records/domains/search.js +1 -0
  109. package/dist/records/domains/settings.d.ts +5 -0
  110. package/dist/records/domains/settings.js +1 -0
  111. package/dist/records/domains/storyboard.d.ts +10 -0
  112. package/dist/records/domains/storyboard.js +1 -0
  113. package/dist/records/domains/subtitle-style.d.ts +13 -0
  114. package/dist/records/domains/subtitle-style.js +1 -0
  115. package/dist/records/domains/subtitle.d.ts +12 -0
  116. package/dist/records/domains/subtitle.js +1 -0
  117. package/dist/records/domains/template.d.ts +10 -0
  118. package/dist/records/domains/template.js +1 -0
  119. package/dist/records/domains/user-notification-status.d.ts +30 -0
  120. package/dist/records/domains/user-notification-status.js +1 -0
  121. package/dist/records/domains/user-notification.d.ts +69 -0
  122. package/dist/records/domains/user-notification.js +1 -0
  123. package/dist/records/domains/user.d.ts +23 -0
  124. package/dist/records/domains/user.js +1 -0
  125. package/dist/records/exact/asset.d.ts +83 -0
  126. package/dist/records/exact/asset.js +1 -0
  127. package/dist/records/exact/index.d.ts +36 -0
  128. package/dist/records/exact/index.js +4 -0
  129. package/dist/records/exact/media.d.ts +52 -0
  130. package/dist/records/exact/media.js +1 -0
  131. package/dist/records/exact/monitor.d.ts +46 -0
  132. package/dist/records/exact/monitor.js +1 -0
  133. package/dist/records/exact/storage.d.ts +32 -0
  134. package/dist/records/exact/storage.js +1 -0
  135. package/dist/records/index.d.ts +10 -0
  136. package/dist/records/index.js +2 -0
  137. package/dist/records/utils.d.ts +7 -0
  138. package/dist/records/utils.js +1 -0
  139. package/dist/records/utils.tds.d.ts +1 -0
  140. package/dist/records/utils.tds.js +7 -0
  141. package/dist/records/validate/assert-guard.d.ts +4 -0
  142. package/dist/records/validate/assert-guard.js +15861 -0
  143. package/dist/records/validate/assert.d.ts +4 -0
  144. package/dist/records/validate/assert.js +15990 -0
  145. package/dist/records/validate/is.d.ts +4 -0
  146. package/dist/records/validate/is.js +1017 -0
  147. package/dist/records/validate/schemas.d.ts +9 -0
  148. package/dist/records/validate/schemas.js +12613 -0
  149. package/dist/records/validate/stringify.d.ts +4 -0
  150. package/dist/records/validate/stringify.js +1904 -0
  151. package/dist/records/validate/utils.d.ts +15 -0
  152. package/dist/records/validate/utils.js +18 -0
  153. package/dist/records/validate/utils.test.d.ts +1 -0
  154. package/dist/records/validate/utils.test.js +35 -0
  155. package/dist/records/validate/validate.d.ts +5 -0
  156. package/dist/records/validate/validate.js +14943 -0
  157. package/dist/rpc.d.ts +13 -14
  158. package/dist/rpc.js +126 -511
  159. package/dist/tsdoc-metadata.json +1 -1
  160. package/package.json +26 -15
  161. package/dist/asset.d.ts +0 -72
  162. package/dist/domains/asset.d.ts +0 -227
  163. package/dist/domains/asset.js +0 -2672
  164. package/dist/domains/bundle.d.ts +0 -25
  165. package/dist/domains/bundle.js +0 -512
  166. package/dist/domains/clone.d.ts +0 -14
  167. package/dist/domains/clone.js +0 -192
  168. package/dist/domains/comment-reaction.d.ts +0 -15
  169. package/dist/domains/comment-reaction.js +0 -115
  170. package/dist/domains/comment-read-mark.d.ts +0 -15
  171. package/dist/domains/comment-read-mark.js +0 -115
  172. package/dist/domains/comment.d.ts +0 -153
  173. package/dist/domains/comment.js +0 -5906
  174. package/dist/domains/connection.d.ts +0 -141
  175. package/dist/domains/connection.js +0 -5860
  176. package/dist/domains/contact.d.ts +0 -16
  177. package/dist/domains/contact.js +0 -149
  178. package/dist/domains/deepstream.d.ts +0 -14
  179. package/dist/domains/deepstream.js +0 -139
  180. package/dist/domains/design.d.ts +0 -24
  181. package/dist/domains/design.js +0 -303
  182. package/dist/domains/edit.d.ts +0 -17
  183. package/dist/domains/edit.js +0 -224
  184. package/dist/domains/event.d.ts +0 -42
  185. package/dist/domains/event.js +0 -754
  186. package/dist/domains/file.d.ts +0 -51
  187. package/dist/domains/file.js +0 -2506
  188. package/dist/domains/general.d.ts +0 -84
  189. package/dist/domains/general.js +0 -906
  190. package/dist/domains/index.d.ts +0 -75
  191. package/dist/domains/index.js +0 -37
  192. package/dist/domains/media.d.ts +0 -113
  193. package/dist/domains/media.js +0 -4553
  194. package/dist/domains/monitor.d.ts +0 -416
  195. package/dist/domains/monitor.js +0 -6382
  196. package/dist/domains/panel.d.ts +0 -371
  197. package/dist/domains/panel.js +0 -3198
  198. package/dist/domains/permission.d.ts +0 -61
  199. package/dist/domains/permission.js +0 -1926
  200. package/dist/domains/pipeline-preset.d.ts +0 -17
  201. package/dist/domains/pipeline-preset.js +0 -236
  202. package/dist/domains/pipeline.d.ts +0 -30
  203. package/dist/domains/pipeline.js +0 -460
  204. package/dist/domains/planning.d.ts +0 -33
  205. package/dist/domains/planning.js +0 -324
  206. package/dist/domains/publish.d.ts +0 -1397
  207. package/dist/domains/publish.js +0 -34436
  208. package/dist/domains/published.d.ts +0 -19
  209. package/dist/domains/published.js +0 -204
  210. package/dist/domains/render-preset.d.ts +0 -4
  211. package/dist/domains/render.d.ts +0 -172
  212. package/dist/domains/render.js +0 -4783
  213. package/dist/domains/revs.d.ts +0 -13
  214. package/dist/domains/revs.js +0 -125
  215. package/dist/domains/role.d.ts +0 -13
  216. package/dist/domains/role.js +0 -119
  217. package/dist/domains/script.d.ts +0 -13
  218. package/dist/domains/script.js +0 -125
  219. package/dist/domains/search.d.ts +0 -16
  220. package/dist/domains/search.js +0 -168
  221. package/dist/domains/settings.d.ts +0 -12
  222. package/dist/domains/settings.js +0 -6624
  223. package/dist/domains/storyboard.d.ts +0 -14
  224. package/dist/domains/storyboard.js +0 -125
  225. package/dist/domains/subtitle-style.d.ts +0 -37
  226. package/dist/domains/subtitle-style.js +0 -485
  227. package/dist/domains/subtitle.d.ts +0 -19
  228. package/dist/domains/subtitle.js +0 -212
  229. package/dist/domains/template.d.ts +0 -23
  230. package/dist/domains/template.js +0 -372
  231. package/dist/domains/user-notification-status.d.ts +0 -55
  232. package/dist/domains/user-notification-status.js +0 -715
  233. package/dist/domains/user-notification.d.ts +0 -118
  234. package/dist/domains/user-notification.js +0 -3040
  235. package/dist/domains/user.d.ts +0 -48
  236. package/dist/domains/user.js +0 -481
  237. package/dist/monitor.d.ts +0 -71
  238. package/dist/monitor.js +0 -1942
  239. package/dist/schema.json +0 -9075
  240. package/dist/storage.d.ts +0 -51
  241. package/dist/storage.js +0 -1036
  242. /package/dist/{asset.js → common/subtitle-style.js} +0 -0
  243. /package/dist/{domains/render-preset.js → records/domains/asset.js} +0 -0
@@ -1,754 +0,0 @@
1
- import __typia from "typia";
2
- export const isEventRecord = input => {
3
- const $io0 = input => (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.duration || "number" === typeof input.duration) && (undefined === input.text || "string" === typeof input.text) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io1(input.styleOverrides));
4
- const $io1 = input => (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut);
5
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
6
- };
7
- export const assertEventRecord = (input, errorFactory) => {
8
- const __is = input => {
9
- const $io0 = input => (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.duration || "number" === typeof input.duration) && (undefined === input.text || "string" === typeof input.text) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io1(input.styleOverrides));
10
- const $io1 = input => (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut);
11
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
12
- };
13
- if (false === __is(input))
14
- ((input, _path, _exceptionable = true) => {
15
- const $guard = __typia.createAssert.guard;
16
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
17
- path: _path + ".start",
18
- expected: "(number | undefined)",
19
- value: input.start
20
- }, errorFactory)) && (undefined === input.end || "number" === typeof input.end || $guard(_exceptionable, {
21
- path: _path + ".end",
22
- expected: "(number | undefined)",
23
- value: input.end
24
- }, errorFactory)) && (undefined === input.duration || "number" === typeof input.duration || $guard(_exceptionable, {
25
- path: _path + ".duration",
26
- expected: "(number | undefined)",
27
- value: input.duration
28
- }, errorFactory)) && (undefined === input.text || "string" === typeof input.text || $guard(_exceptionable, {
29
- path: _path + ".text",
30
- expected: "(string | undefined)",
31
- value: input.text
32
- }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
33
- path: _path + ".lang",
34
- expected: "(string | undefined)",
35
- value: input.lang
36
- }, errorFactory)) && (undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
37
- path: _path + ".style",
38
- expected: "(string | undefined)",
39
- value: input.style
40
- }, errorFactory)) && (undefined === input.styleOverrides || ("object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) || $guard(_exceptionable, {
41
- path: _path + ".styleOverrides",
42
- expected: "(SubtitleEventStyleOverrides | undefined)",
43
- value: input.styleOverrides
44
- }, errorFactory)) && $ao1(input.styleOverrides, _path + ".styleOverrides", true && _exceptionable) || $guard(_exceptionable, {
45
- path: _path + ".styleOverrides",
46
- expected: "(SubtitleEventStyleOverrides | undefined)",
47
- value: input.styleOverrides
48
- }, errorFactory));
49
- const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
50
- path: _path + ".marginL",
51
- expected: "(string | undefined)",
52
- value: input.marginL
53
- }, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
54
- path: _path + ".marginR",
55
- expected: "(string | undefined)",
56
- value: input.marginR
57
- }, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
58
- path: _path + ".marginV",
59
- expected: "(string | undefined)",
60
- value: input.marginV
61
- }, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
62
- path: _path + ".alignment",
63
- expected: "(string | undefined)",
64
- value: input.alignment
65
- }, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
66
- path: _path + ".fontname",
67
- expected: "(string | undefined)",
68
- value: input.fontname
69
- }, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
70
- path: _path + ".fontsize",
71
- expected: "(string | undefined)",
72
- value: input.fontsize
73
- }, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
74
- path: _path + ".primaryColour",
75
- expected: "(string | undefined)",
76
- value: input.primaryColour
77
- }, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
78
- path: _path + ".secondaryColour",
79
- expected: "(string | undefined)",
80
- value: input.secondaryColour
81
- }, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
82
- path: _path + ".outlineColour",
83
- expected: "(string | undefined)",
84
- value: input.outlineColour
85
- }, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
86
- path: _path + ".backColour",
87
- expected: "(string | undefined)",
88
- value: input.backColour
89
- }, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
90
- path: _path + ".bold",
91
- expected: "(string | undefined)",
92
- value: input.bold
93
- }, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
94
- path: _path + ".italic",
95
- expected: "(string | undefined)",
96
- value: input.italic
97
- }, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
98
- path: _path + ".underline",
99
- expected: "(string | undefined)",
100
- value: input.underline
101
- }, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
102
- path: _path + ".strikeOut",
103
- expected: "(string | undefined)",
104
- value: input.strikeOut
105
- }, errorFactory));
106
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
107
- path: _path + "",
108
- expected: "EventRecord",
109
- value: input
110
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
111
- path: _path + "",
112
- expected: "EventRecord",
113
- value: input
114
- }, errorFactory);
115
- })(input, "$input", true);
116
- return input;
117
- };
118
- export const randomEventRecord = generator => {
119
- const $generator = __typia.createRandom.generator;
120
- const $pick = __typia.createRandom.pick;
121
- const $ro0 = (_recursive = false, _depth = 0) => ({
122
- start: $pick([
123
- () => undefined,
124
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
125
- ])(),
126
- end: $pick([
127
- () => undefined,
128
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
129
- ])(),
130
- duration: $pick([
131
- () => undefined,
132
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
133
- ])(),
134
- text: $pick([
135
- () => undefined,
136
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
137
- ])(),
138
- lang: $pick([
139
- () => undefined,
140
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
141
- ])(),
142
- style: $pick([
143
- () => undefined,
144
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
145
- ])(),
146
- styleOverrides: $pick([
147
- () => undefined,
148
- () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
149
- ])()
150
- });
151
- const $ro1 = (_recursive = false, _depth = 0) => ({
152
- marginL: $pick([
153
- () => undefined,
154
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
155
- ])(),
156
- marginR: $pick([
157
- () => undefined,
158
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
159
- ])(),
160
- marginV: $pick([
161
- () => undefined,
162
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
163
- ])(),
164
- alignment: $pick([
165
- () => undefined,
166
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
167
- ])(),
168
- fontname: $pick([
169
- () => undefined,
170
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
171
- ])(),
172
- fontsize: $pick([
173
- () => undefined,
174
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
175
- ])(),
176
- primaryColour: $pick([
177
- () => undefined,
178
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
179
- ])(),
180
- secondaryColour: $pick([
181
- () => undefined,
182
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
183
- ])(),
184
- outlineColour: $pick([
185
- () => undefined,
186
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
187
- ])(),
188
- backColour: $pick([
189
- () => undefined,
190
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
191
- ])(),
192
- bold: $pick([
193
- () => undefined,
194
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
195
- ])(),
196
- italic: $pick([
197
- () => undefined,
198
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
199
- ])(),
200
- underline: $pick([
201
- () => undefined,
202
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
203
- ])(),
204
- strikeOut: $pick([
205
- () => undefined,
206
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
207
- ])()
208
- });
209
- return $ro0();
210
- };
211
- export const assertGuardEventRecord = (input, errorFactory) => {
212
- const __is = input => {
213
- const $io0 = input => (undefined === input.start || "number" === typeof input.start) && (undefined === input.end || "number" === typeof input.end) && (undefined === input.duration || "number" === typeof input.duration) && (undefined === input.text || "string" === typeof input.text) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io1(input.styleOverrides));
214
- const $io1 = input => (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut);
215
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
216
- };
217
- if (false === __is(input))
218
- ((input, _path, _exceptionable = true) => {
219
- const $guard = __typia.createAssertGuard.guard;
220
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.start || "number" === typeof input.start || $guard(_exceptionable, {
221
- path: _path + ".start",
222
- expected: "(number | undefined)",
223
- value: input.start
224
- }, errorFactory)) && (undefined === input.end || "number" === typeof input.end || $guard(_exceptionable, {
225
- path: _path + ".end",
226
- expected: "(number | undefined)",
227
- value: input.end
228
- }, errorFactory)) && (undefined === input.duration || "number" === typeof input.duration || $guard(_exceptionable, {
229
- path: _path + ".duration",
230
- expected: "(number | undefined)",
231
- value: input.duration
232
- }, errorFactory)) && (undefined === input.text || "string" === typeof input.text || $guard(_exceptionable, {
233
- path: _path + ".text",
234
- expected: "(string | undefined)",
235
- value: input.text
236
- }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
237
- path: _path + ".lang",
238
- expected: "(string | undefined)",
239
- value: input.lang
240
- }, errorFactory)) && (undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
241
- path: _path + ".style",
242
- expected: "(string | undefined)",
243
- value: input.style
244
- }, errorFactory)) && (undefined === input.styleOverrides || ("object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) || $guard(_exceptionable, {
245
- path: _path + ".styleOverrides",
246
- expected: "(SubtitleEventStyleOverrides | undefined)",
247
- value: input.styleOverrides
248
- }, errorFactory)) && $ao1(input.styleOverrides, _path + ".styleOverrides", true && _exceptionable) || $guard(_exceptionable, {
249
- path: _path + ".styleOverrides",
250
- expected: "(SubtitleEventStyleOverrides | undefined)",
251
- value: input.styleOverrides
252
- }, errorFactory));
253
- const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
254
- path: _path + ".marginL",
255
- expected: "(string | undefined)",
256
- value: input.marginL
257
- }, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
258
- path: _path + ".marginR",
259
- expected: "(string | undefined)",
260
- value: input.marginR
261
- }, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
262
- path: _path + ".marginV",
263
- expected: "(string | undefined)",
264
- value: input.marginV
265
- }, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
266
- path: _path + ".alignment",
267
- expected: "(string | undefined)",
268
- value: input.alignment
269
- }, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
270
- path: _path + ".fontname",
271
- expected: "(string | undefined)",
272
- value: input.fontname
273
- }, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
274
- path: _path + ".fontsize",
275
- expected: "(string | undefined)",
276
- value: input.fontsize
277
- }, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
278
- path: _path + ".primaryColour",
279
- expected: "(string | undefined)",
280
- value: input.primaryColour
281
- }, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
282
- path: _path + ".secondaryColour",
283
- expected: "(string | undefined)",
284
- value: input.secondaryColour
285
- }, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
286
- path: _path + ".outlineColour",
287
- expected: "(string | undefined)",
288
- value: input.outlineColour
289
- }, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
290
- path: _path + ".backColour",
291
- expected: "(string | undefined)",
292
- value: input.backColour
293
- }, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
294
- path: _path + ".bold",
295
- expected: "(string | undefined)",
296
- value: input.bold
297
- }, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
298
- path: _path + ".italic",
299
- expected: "(string | undefined)",
300
- value: input.italic
301
- }, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
302
- path: _path + ".underline",
303
- expected: "(string | undefined)",
304
- value: input.underline
305
- }, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
306
- path: _path + ".strikeOut",
307
- expected: "(string | undefined)",
308
- value: input.strikeOut
309
- }, errorFactory));
310
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
311
- path: _path + "",
312
- expected: "EventRecord",
313
- value: input
314
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
315
- path: _path + "",
316
- expected: "EventRecord",
317
- value: input
318
- }, errorFactory);
319
- })(input, "$input", true);
320
- };
321
- export const stringifyEventRecord = input => {
322
- const $io1 = input => (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut);
323
- const $string = __typia.json.createStringify.string;
324
- const $tail = __typia.json.createStringify.tail;
325
- const $so0 = input => `{${$tail(`${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.duration ? "" : `"duration":${undefined !== input.duration ? input.duration : undefined},`}${undefined === input.text ? "" : `"text":${undefined !== input.text ? $string(input.text) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? $string(input.style) : undefined},`}${undefined === input.styleOverrides ? "" : `"styleOverrides":${undefined !== input.styleOverrides ? $so1(input.styleOverrides) : undefined}`}`)}}`;
326
- const $so1 = input => `{${$tail(`${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? $string(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? $string(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? $string(input.marginV) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? $string(input.alignment) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? $string(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? $string(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? $string(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? $string(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? $string(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? $string(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? $string(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? $string(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? $string(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? $string(input.strikeOut) : undefined}`}`)}}`;
327
- return $so0(input);
328
- };
329
- export const assertStringifyEventRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
330
- const __is = input => {
331
- const $io0 = input => (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end)) && (undefined === input.duration || "number" === typeof input.duration && !Number.isNaN(input.duration)) && (undefined === input.text || "string" === typeof input.text) && (undefined === input.lang || "string" === typeof input.lang) && (undefined === input.style || "string" === typeof input.style) && (undefined === input.styleOverrides || "object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) && $io1(input.styleOverrides));
332
- const $io1 = input => (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut);
333
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
334
- };
335
- if (false === __is(input))
336
- ((input, _path, _exceptionable = true) => {
337
- const $guard = __typia.json.createAssertStringify.guard;
338
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.start || "number" === typeof input.start && !Number.isNaN(input.start) || $guard(_exceptionable, {
339
- path: _path + ".start",
340
- expected: "(number | undefined)",
341
- value: input.start
342
- }, errorFactory)) && (undefined === input.end || "number" === typeof input.end && !Number.isNaN(input.end) || $guard(_exceptionable, {
343
- path: _path + ".end",
344
- expected: "(number | undefined)",
345
- value: input.end
346
- }, errorFactory)) && (undefined === input.duration || "number" === typeof input.duration && !Number.isNaN(input.duration) || $guard(_exceptionable, {
347
- path: _path + ".duration",
348
- expected: "(number | undefined)",
349
- value: input.duration
350
- }, errorFactory)) && (undefined === input.text || "string" === typeof input.text || $guard(_exceptionable, {
351
- path: _path + ".text",
352
- expected: "(string | undefined)",
353
- value: input.text
354
- }, errorFactory)) && (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
355
- path: _path + ".lang",
356
- expected: "(string | undefined)",
357
- value: input.lang
358
- }, errorFactory)) && (undefined === input.style || "string" === typeof input.style || $guard(_exceptionable, {
359
- path: _path + ".style",
360
- expected: "(string | undefined)",
361
- value: input.style
362
- }, errorFactory)) && (undefined === input.styleOverrides || ("object" === typeof input.styleOverrides && null !== input.styleOverrides && false === Array.isArray(input.styleOverrides) || $guard(_exceptionable, {
363
- path: _path + ".styleOverrides",
364
- expected: "(SubtitleEventStyleOverrides | undefined)",
365
- value: input.styleOverrides
366
- }, errorFactory)) && $ao1(input.styleOverrides, _path + ".styleOverrides", true && _exceptionable) || $guard(_exceptionable, {
367
- path: _path + ".styleOverrides",
368
- expected: "(SubtitleEventStyleOverrides | undefined)",
369
- value: input.styleOverrides
370
- }, errorFactory));
371
- const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
372
- path: _path + ".marginL",
373
- expected: "(string | undefined)",
374
- value: input.marginL
375
- }, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
376
- path: _path + ".marginR",
377
- expected: "(string | undefined)",
378
- value: input.marginR
379
- }, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
380
- path: _path + ".marginV",
381
- expected: "(string | undefined)",
382
- value: input.marginV
383
- }, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
384
- path: _path + ".alignment",
385
- expected: "(string | undefined)",
386
- value: input.alignment
387
- }, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
388
- path: _path + ".fontname",
389
- expected: "(string | undefined)",
390
- value: input.fontname
391
- }, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
392
- path: _path + ".fontsize",
393
- expected: "(string | undefined)",
394
- value: input.fontsize
395
- }, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
396
- path: _path + ".primaryColour",
397
- expected: "(string | undefined)",
398
- value: input.primaryColour
399
- }, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
400
- path: _path + ".secondaryColour",
401
- expected: "(string | undefined)",
402
- value: input.secondaryColour
403
- }, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
404
- path: _path + ".outlineColour",
405
- expected: "(string | undefined)",
406
- value: input.outlineColour
407
- }, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
408
- path: _path + ".backColour",
409
- expected: "(string | undefined)",
410
- value: input.backColour
411
- }, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
412
- path: _path + ".bold",
413
- expected: "(string | undefined)",
414
- value: input.bold
415
- }, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
416
- path: _path + ".italic",
417
- expected: "(string | undefined)",
418
- value: input.italic
419
- }, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
420
- path: _path + ".underline",
421
- expected: "(string | undefined)",
422
- value: input.underline
423
- }, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
424
- path: _path + ".strikeOut",
425
- expected: "(string | undefined)",
426
- value: input.strikeOut
427
- }, errorFactory));
428
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
429
- path: _path + "",
430
- expected: "EventRecord",
431
- value: input
432
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
433
- path: _path + "",
434
- expected: "EventRecord",
435
- value: input
436
- }, errorFactory);
437
- })(input, "$input", true);
438
- return input;
439
- }; const stringify = input => {
440
- const $io1 = input => (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut);
441
- const $string = __typia.json.createAssertStringify.string;
442
- const $tail = __typia.json.createAssertStringify.tail;
443
- const $so0 = input => `{${$tail(`${undefined === input.start ? "" : `"start":${undefined !== input.start ? input.start : undefined},`}${undefined === input.end ? "" : `"end":${undefined !== input.end ? input.end : undefined},`}${undefined === input.duration ? "" : `"duration":${undefined !== input.duration ? input.duration : undefined},`}${undefined === input.text ? "" : `"text":${undefined !== input.text ? $string(input.text) : undefined},`}${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.style ? "" : `"style":${undefined !== input.style ? $string(input.style) : undefined},`}${undefined === input.styleOverrides ? "" : `"styleOverrides":${undefined !== input.styleOverrides ? $so1(input.styleOverrides) : undefined}`}`)}}`;
444
- const $so1 = input => `{${$tail(`${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? $string(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? $string(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? $string(input.marginV) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? $string(input.alignment) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? $string(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? $string(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? $string(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? $string(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? $string(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? $string(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? $string(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? $string(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? $string(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? $string(input.strikeOut) : undefined}`}`)}}`;
445
- return $so0(input);
446
- }; return stringify(assert(input, errorFactory)); };
447
- export const isSubtitleEventStyleOverrides = input => {
448
- const $io0 = input => (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut);
449
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
450
- };
451
- export const assertSubtitleEventStyleOverrides = (input, errorFactory) => {
452
- const __is = input => {
453
- const $io0 = input => (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut);
454
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
455
- };
456
- if (false === __is(input))
457
- ((input, _path, _exceptionable = true) => {
458
- const $guard = __typia.createAssert.guard;
459
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
460
- path: _path + ".marginL",
461
- expected: "(string | undefined)",
462
- value: input.marginL
463
- }, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
464
- path: _path + ".marginR",
465
- expected: "(string | undefined)",
466
- value: input.marginR
467
- }, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
468
- path: _path + ".marginV",
469
- expected: "(string | undefined)",
470
- value: input.marginV
471
- }, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
472
- path: _path + ".alignment",
473
- expected: "(string | undefined)",
474
- value: input.alignment
475
- }, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
476
- path: _path + ".fontname",
477
- expected: "(string | undefined)",
478
- value: input.fontname
479
- }, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
480
- path: _path + ".fontsize",
481
- expected: "(string | undefined)",
482
- value: input.fontsize
483
- }, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
484
- path: _path + ".primaryColour",
485
- expected: "(string | undefined)",
486
- value: input.primaryColour
487
- }, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
488
- path: _path + ".secondaryColour",
489
- expected: "(string | undefined)",
490
- value: input.secondaryColour
491
- }, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
492
- path: _path + ".outlineColour",
493
- expected: "(string | undefined)",
494
- value: input.outlineColour
495
- }, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
496
- path: _path + ".backColour",
497
- expected: "(string | undefined)",
498
- value: input.backColour
499
- }, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
500
- path: _path + ".bold",
501
- expected: "(string | undefined)",
502
- value: input.bold
503
- }, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
504
- path: _path + ".italic",
505
- expected: "(string | undefined)",
506
- value: input.italic
507
- }, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
508
- path: _path + ".underline",
509
- expected: "(string | undefined)",
510
- value: input.underline
511
- }, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
512
- path: _path + ".strikeOut",
513
- expected: "(string | undefined)",
514
- value: input.strikeOut
515
- }, errorFactory));
516
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
517
- path: _path + "",
518
- expected: "SubtitleEventStyleOverrides",
519
- value: input
520
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
521
- path: _path + "",
522
- expected: "SubtitleEventStyleOverrides",
523
- value: input
524
- }, errorFactory);
525
- })(input, "$input", true);
526
- return input;
527
- };
528
- export const randomSubtitleEventStyleOverrides = generator => {
529
- const $generator = __typia.createRandom.generator;
530
- const $pick = __typia.createRandom.pick;
531
- const $ro0 = (_recursive = false, _depth = 0) => ({
532
- marginL: $pick([
533
- () => undefined,
534
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
535
- ])(),
536
- marginR: $pick([
537
- () => undefined,
538
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
539
- ])(),
540
- marginV: $pick([
541
- () => undefined,
542
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
543
- ])(),
544
- alignment: $pick([
545
- () => undefined,
546
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
547
- ])(),
548
- fontname: $pick([
549
- () => undefined,
550
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
551
- ])(),
552
- fontsize: $pick([
553
- () => undefined,
554
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
555
- ])(),
556
- primaryColour: $pick([
557
- () => undefined,
558
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
559
- ])(),
560
- secondaryColour: $pick([
561
- () => undefined,
562
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
563
- ])(),
564
- outlineColour: $pick([
565
- () => undefined,
566
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
567
- ])(),
568
- backColour: $pick([
569
- () => undefined,
570
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
571
- ])(),
572
- bold: $pick([
573
- () => undefined,
574
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
575
- ])(),
576
- italic: $pick([
577
- () => undefined,
578
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
579
- ])(),
580
- underline: $pick([
581
- () => undefined,
582
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
583
- ])(),
584
- strikeOut: $pick([
585
- () => undefined,
586
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
587
- ])()
588
- });
589
- return $ro0();
590
- };
591
- export const assertGuardSubtitleEventStyleOverrides = (input, errorFactory) => {
592
- const __is = input => {
593
- const $io0 = input => (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut);
594
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
595
- };
596
- if (false === __is(input))
597
- ((input, _path, _exceptionable = true) => {
598
- const $guard = __typia.createAssertGuard.guard;
599
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
600
- path: _path + ".marginL",
601
- expected: "(string | undefined)",
602
- value: input.marginL
603
- }, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
604
- path: _path + ".marginR",
605
- expected: "(string | undefined)",
606
- value: input.marginR
607
- }, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
608
- path: _path + ".marginV",
609
- expected: "(string | undefined)",
610
- value: input.marginV
611
- }, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
612
- path: _path + ".alignment",
613
- expected: "(string | undefined)",
614
- value: input.alignment
615
- }, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
616
- path: _path + ".fontname",
617
- expected: "(string | undefined)",
618
- value: input.fontname
619
- }, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
620
- path: _path + ".fontsize",
621
- expected: "(string | undefined)",
622
- value: input.fontsize
623
- }, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
624
- path: _path + ".primaryColour",
625
- expected: "(string | undefined)",
626
- value: input.primaryColour
627
- }, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
628
- path: _path + ".secondaryColour",
629
- expected: "(string | undefined)",
630
- value: input.secondaryColour
631
- }, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
632
- path: _path + ".outlineColour",
633
- expected: "(string | undefined)",
634
- value: input.outlineColour
635
- }, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
636
- path: _path + ".backColour",
637
- expected: "(string | undefined)",
638
- value: input.backColour
639
- }, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
640
- path: _path + ".bold",
641
- expected: "(string | undefined)",
642
- value: input.bold
643
- }, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
644
- path: _path + ".italic",
645
- expected: "(string | undefined)",
646
- value: input.italic
647
- }, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
648
- path: _path + ".underline",
649
- expected: "(string | undefined)",
650
- value: input.underline
651
- }, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
652
- path: _path + ".strikeOut",
653
- expected: "(string | undefined)",
654
- value: input.strikeOut
655
- }, errorFactory));
656
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
657
- path: _path + "",
658
- expected: "SubtitleEventStyleOverrides",
659
- value: input
660
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
661
- path: _path + "",
662
- expected: "SubtitleEventStyleOverrides",
663
- value: input
664
- }, errorFactory);
665
- })(input, "$input", true);
666
- };
667
- export const stringifySubtitleEventStyleOverrides = input => {
668
- const $string = __typia.json.createStringify.string;
669
- const $tail = __typia.json.createStringify.tail;
670
- const $so0 = input => `{${$tail(`${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? $string(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? $string(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? $string(input.marginV) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? $string(input.alignment) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? $string(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? $string(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? $string(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? $string(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? $string(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? $string(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? $string(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? $string(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? $string(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? $string(input.strikeOut) : undefined}`}`)}}`;
671
- return $so0(input);
672
- };
673
- export const assertStringifySubtitleEventStyleOverrides = (input, errorFactory) => { const assert = (input, errorFactory) => {
674
- const __is = input => {
675
- const $io0 = input => (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.fontname || "string" === typeof input.fontname) && (undefined === input.fontsize || "string" === typeof input.fontsize) && (undefined === input.primaryColour || "string" === typeof input.primaryColour) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour) && (undefined === input.outlineColour || "string" === typeof input.outlineColour) && (undefined === input.backColour || "string" === typeof input.backColour) && (undefined === input.bold || "string" === typeof input.bold) && (undefined === input.italic || "string" === typeof input.italic) && (undefined === input.underline || "string" === typeof input.underline) && (undefined === input.strikeOut || "string" === typeof input.strikeOut);
676
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
677
- };
678
- if (false === __is(input))
679
- ((input, _path, _exceptionable = true) => {
680
- const $guard = __typia.json.createAssertStringify.guard;
681
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
682
- path: _path + ".marginL",
683
- expected: "(string | undefined)",
684
- value: input.marginL
685
- }, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
686
- path: _path + ".marginR",
687
- expected: "(string | undefined)",
688
- value: input.marginR
689
- }, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
690
- path: _path + ".marginV",
691
- expected: "(string | undefined)",
692
- value: input.marginV
693
- }, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
694
- path: _path + ".alignment",
695
- expected: "(string | undefined)",
696
- value: input.alignment
697
- }, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
698
- path: _path + ".fontname",
699
- expected: "(string | undefined)",
700
- value: input.fontname
701
- }, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
702
- path: _path + ".fontsize",
703
- expected: "(string | undefined)",
704
- value: input.fontsize
705
- }, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
706
- path: _path + ".primaryColour",
707
- expected: "(string | undefined)",
708
- value: input.primaryColour
709
- }, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
710
- path: _path + ".secondaryColour",
711
- expected: "(string | undefined)",
712
- value: input.secondaryColour
713
- }, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
714
- path: _path + ".outlineColour",
715
- expected: "(string | undefined)",
716
- value: input.outlineColour
717
- }, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
718
- path: _path + ".backColour",
719
- expected: "(string | undefined)",
720
- value: input.backColour
721
- }, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
722
- path: _path + ".bold",
723
- expected: "(string | undefined)",
724
- value: input.bold
725
- }, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
726
- path: _path + ".italic",
727
- expected: "(string | undefined)",
728
- value: input.italic
729
- }, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
730
- path: _path + ".underline",
731
- expected: "(string | undefined)",
732
- value: input.underline
733
- }, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
734
- path: _path + ".strikeOut",
735
- expected: "(string | undefined)",
736
- value: input.strikeOut
737
- }, errorFactory));
738
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
739
- path: _path + "",
740
- expected: "SubtitleEventStyleOverrides",
741
- value: input
742
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
743
- path: _path + "",
744
- expected: "SubtitleEventStyleOverrides",
745
- value: input
746
- }, errorFactory);
747
- })(input, "$input", true);
748
- return input;
749
- }; const stringify = input => {
750
- const $string = __typia.json.createAssertStringify.string;
751
- const $tail = __typia.json.createAssertStringify.tail;
752
- const $so0 = input => `{${$tail(`${undefined === input.marginL ? "" : `"marginL":${undefined !== input.marginL ? $string(input.marginL) : undefined},`}${undefined === input.marginR ? "" : `"marginR":${undefined !== input.marginR ? $string(input.marginR) : undefined},`}${undefined === input.marginV ? "" : `"marginV":${undefined !== input.marginV ? $string(input.marginV) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? $string(input.alignment) : undefined},`}${undefined === input.fontname ? "" : `"fontname":${undefined !== input.fontname ? $string(input.fontname) : undefined},`}${undefined === input.fontsize ? "" : `"fontsize":${undefined !== input.fontsize ? $string(input.fontsize) : undefined},`}${undefined === input.primaryColour ? "" : `"primaryColour":${undefined !== input.primaryColour ? $string(input.primaryColour) : undefined},`}${undefined === input.secondaryColour ? "" : `"secondaryColour":${undefined !== input.secondaryColour ? $string(input.secondaryColour) : undefined},`}${undefined === input.outlineColour ? "" : `"outlineColour":${undefined !== input.outlineColour ? $string(input.outlineColour) : undefined},`}${undefined === input.backColour ? "" : `"backColour":${undefined !== input.backColour ? $string(input.backColour) : undefined},`}${undefined === input.bold ? "" : `"bold":${undefined !== input.bold ? $string(input.bold) : undefined},`}${undefined === input.italic ? "" : `"italic":${undefined !== input.italic ? $string(input.italic) : undefined},`}${undefined === input.underline ? "" : `"underline":${undefined !== input.underline ? $string(input.underline) : undefined},`}${undefined === input.strikeOut ? "" : `"strikeOut":${undefined !== input.strikeOut ? $string(input.strikeOut) : undefined}`}`)}}`;
753
- return $so0(input);
754
- }; return stringify(assert(input, errorFactory)); };