@nxtedition/types 23.0.40 → 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 -33
  2. package/dist/app.js +1 -655
  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 -1843
  33. package/dist/common/render-scene.d.ts +2 -15
  34. package/dist/common/render-scene.js +1 -2408
  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 +113 -125
  40. package/dist/common/settings.js +1 -7504
  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 -108
  45. package/dist/index.js +5 -469
  46. package/dist/nxtpression.d.ts +507 -331
  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 +5 -15
  158. package/dist/rpc.js +126 -511
  159. package/dist/tsdoc-metadata.json +1 -1
  160. package/package.json +25 -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 -170
  185. package/dist/domains/event.js +0 -2779
  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 -4642
  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 -1452
  207. package/dist/domains/publish.js +0 -35415
  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 -158
  212. package/dist/domains/render.js +0 -4452
  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 -263
  218. package/dist/domains/script.js +0 -6777
  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 -7180
  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 -42
  226. package/dist/domains/subtitle-style.js +0 -574
  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 -9836
  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,574 +0,0 @@
1
- import __typia from "typia";
2
- export const isSubtitleStyleDomainRecord = input => {
3
- const $io0 = input => (undefined === input.name || "string" === typeof input.name) && (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) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.scaledBorderAndShadow || "boolean" === typeof input.scaledBorderAndShadow) && (undefined === input.futureWordWrapping || "boolean" === typeof input.futureWordWrapping) && (undefined === input.previewSettings || "object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) && $io1(input.previewSettings));
4
- const $io1 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
5
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
6
- };
7
- export const assertSubtitleStyleDomainRecord = (input, errorFactory) => {
8
- const __is = input => {
9
- const $io0 = input => (undefined === input.name || "string" === typeof input.name) && (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) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.scaledBorderAndShadow || "boolean" === typeof input.scaledBorderAndShadow) && (undefined === input.futureWordWrapping || "boolean" === typeof input.futureWordWrapping) && (undefined === input.previewSettings || "object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) && $io1(input.previewSettings));
10
- const $io1 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
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.name || "string" === typeof input.name || $guard(_exceptionable, {
17
- path: _path + ".name",
18
- expected: "(string | undefined)",
19
- value: input.name
20
- }, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
21
- path: _path + ".fontname",
22
- expected: "(string | undefined)",
23
- value: input.fontname
24
- }, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
25
- path: _path + ".fontsize",
26
- expected: "(string | undefined)",
27
- value: input.fontsize
28
- }, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
29
- path: _path + ".primaryColour",
30
- expected: "(string | undefined)",
31
- value: input.primaryColour
32
- }, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
33
- path: _path + ".secondaryColour",
34
- expected: "(string | undefined)",
35
- value: input.secondaryColour
36
- }, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
37
- path: _path + ".outlineColour",
38
- expected: "(string | undefined)",
39
- value: input.outlineColour
40
- }, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
41
- path: _path + ".backColour",
42
- expected: "(string | undefined)",
43
- value: input.backColour
44
- }, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
45
- path: _path + ".bold",
46
- expected: "(string | undefined)",
47
- value: input.bold
48
- }, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
49
- path: _path + ".italic",
50
- expected: "(string | undefined)",
51
- value: input.italic
52
- }, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
53
- path: _path + ".underline",
54
- expected: "(string | undefined)",
55
- value: input.underline
56
- }, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
57
- path: _path + ".strikeOut",
58
- expected: "(string | undefined)",
59
- value: input.strikeOut
60
- }, errorFactory)) && (undefined === input.scaleX || "string" === typeof input.scaleX || $guard(_exceptionable, {
61
- path: _path + ".scaleX",
62
- expected: "(string | undefined)",
63
- value: input.scaleX
64
- }, errorFactory)) && (undefined === input.scaleY || "string" === typeof input.scaleY || $guard(_exceptionable, {
65
- path: _path + ".scaleY",
66
- expected: "(string | undefined)",
67
- value: input.scaleY
68
- }, errorFactory)) && (undefined === input.spacing || "string" === typeof input.spacing || $guard(_exceptionable, {
69
- path: _path + ".spacing",
70
- expected: "(string | undefined)",
71
- value: input.spacing
72
- }, errorFactory)) && (undefined === input.angle || "string" === typeof input.angle || $guard(_exceptionable, {
73
- path: _path + ".angle",
74
- expected: "(string | undefined)",
75
- value: input.angle
76
- }, errorFactory)) && (undefined === input.borderStyle || "string" === typeof input.borderStyle || $guard(_exceptionable, {
77
- path: _path + ".borderStyle",
78
- expected: "(string | undefined)",
79
- value: input.borderStyle
80
- }, errorFactory)) && (undefined === input.outline || "string" === typeof input.outline || $guard(_exceptionable, {
81
- path: _path + ".outline",
82
- expected: "(string | undefined)",
83
- value: input.outline
84
- }, errorFactory)) && (undefined === input.shadow || "string" === typeof input.shadow || $guard(_exceptionable, {
85
- path: _path + ".shadow",
86
- expected: "(string | undefined)",
87
- value: input.shadow
88
- }, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
89
- path: _path + ".alignment",
90
- expected: "(string | undefined)",
91
- value: input.alignment
92
- }, errorFactory)) && (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
93
- path: _path + ".marginL",
94
- expected: "(string | undefined)",
95
- value: input.marginL
96
- }, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
97
- path: _path + ".marginR",
98
- expected: "(string | undefined)",
99
- value: input.marginR
100
- }, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
101
- path: _path + ".marginV",
102
- expected: "(string | undefined)",
103
- value: input.marginV
104
- }, errorFactory)) && (undefined === input.encoding || "string" === typeof input.encoding || $guard(_exceptionable, {
105
- path: _path + ".encoding",
106
- expected: "(string | undefined)",
107
- value: input.encoding
108
- }, errorFactory)) && (undefined === input.scaledBorderAndShadow || "boolean" === typeof input.scaledBorderAndShadow || $guard(_exceptionable, {
109
- path: _path + ".scaledBorderAndShadow",
110
- expected: "(boolean | undefined)",
111
- value: input.scaledBorderAndShadow
112
- }, errorFactory)) && (undefined === input.futureWordWrapping || "boolean" === typeof input.futureWordWrapping || $guard(_exceptionable, {
113
- path: _path + ".futureWordWrapping",
114
- expected: "(boolean | undefined)",
115
- value: input.futureWordWrapping
116
- }, errorFactory)) && (undefined === input.previewSettings || ("object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) || $guard(_exceptionable, {
117
- path: _path + ".previewSettings",
118
- expected: "(__type | undefined)",
119
- value: input.previewSettings
120
- }, errorFactory)) && $ao1(input.previewSettings, _path + ".previewSettings", true && _exceptionable) || $guard(_exceptionable, {
121
- path: _path + ".previewSettings",
122
- expected: "(__type | undefined)",
123
- value: input.previewSettings
124
- }, errorFactory));
125
- const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio || $guard(_exceptionable, {
126
- path: _path + ".aspectRatio",
127
- expected: "(string | undefined)",
128
- value: input.aspectRatio
129
- }, errorFactory)) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId || $guard(_exceptionable, {
130
- path: _path + ".backgroundAssetId",
131
- expected: "(string | undefined)",
132
- value: input.backgroundAssetId
133
- }, errorFactory)) && (undefined === input.text || "string" === typeof input.text || $guard(_exceptionable, {
134
- path: _path + ".text",
135
- expected: "(string | undefined)",
136
- value: input.text
137
- }, errorFactory));
138
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
139
- path: _path + "",
140
- expected: "SubtitleStyleDomainRecord",
141
- value: input
142
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
143
- path: _path + "",
144
- expected: "SubtitleStyleDomainRecord",
145
- value: input
146
- }, errorFactory);
147
- })(input, "$input", true);
148
- return input;
149
- };
150
- export const randomSubtitleStyleDomainRecord = generator => {
151
- const $generator = __typia.createRandom.generator;
152
- const $pick = __typia.createRandom.pick;
153
- const $ro0 = (_recursive = false, _depth = 0) => ({
154
- name: $pick([
155
- () => undefined,
156
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
157
- ])(),
158
- fontname: $pick([
159
- () => undefined,
160
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
161
- ])(),
162
- fontsize: $pick([
163
- () => undefined,
164
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
165
- ])(),
166
- primaryColour: $pick([
167
- () => undefined,
168
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
169
- ])(),
170
- secondaryColour: $pick([
171
- () => undefined,
172
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
173
- ])(),
174
- outlineColour: $pick([
175
- () => undefined,
176
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
177
- ])(),
178
- backColour: $pick([
179
- () => undefined,
180
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
181
- ])(),
182
- bold: $pick([
183
- () => undefined,
184
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
185
- ])(),
186
- italic: $pick([
187
- () => undefined,
188
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
189
- ])(),
190
- underline: $pick([
191
- () => undefined,
192
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
193
- ])(),
194
- strikeOut: $pick([
195
- () => undefined,
196
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
197
- ])(),
198
- scaleX: $pick([
199
- () => undefined,
200
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
201
- ])(),
202
- scaleY: $pick([
203
- () => undefined,
204
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
205
- ])(),
206
- spacing: $pick([
207
- () => undefined,
208
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
209
- ])(),
210
- angle: $pick([
211
- () => undefined,
212
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
213
- ])(),
214
- borderStyle: $pick([
215
- () => undefined,
216
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
217
- ])(),
218
- outline: $pick([
219
- () => undefined,
220
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
221
- ])(),
222
- shadow: $pick([
223
- () => undefined,
224
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
225
- ])(),
226
- alignment: $pick([
227
- () => undefined,
228
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
229
- ])(),
230
- marginL: $pick([
231
- () => undefined,
232
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
233
- ])(),
234
- marginR: $pick([
235
- () => undefined,
236
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
237
- ])(),
238
- marginV: $pick([
239
- () => undefined,
240
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
241
- ])(),
242
- encoding: $pick([
243
- () => undefined,
244
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
245
- ])(),
246
- scaledBorderAndShadow: $pick([
247
- () => undefined,
248
- () => (generator?.boolean ?? $generator.boolean)()
249
- ])(),
250
- futureWordWrapping: $pick([
251
- () => undefined,
252
- () => (generator?.boolean ?? $generator.boolean)()
253
- ])(),
254
- previewSettings: $pick([
255
- () => undefined,
256
- () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
257
- ])()
258
- });
259
- const $ro1 = (_recursive = false, _depth = 0) => ({
260
- aspectRatio: $pick([
261
- () => undefined,
262
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
263
- ])(),
264
- backgroundAssetId: $pick([
265
- () => undefined,
266
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
267
- ])(),
268
- text: $pick([
269
- () => undefined,
270
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
271
- ])()
272
- });
273
- return $ro0();
274
- };
275
- export const assertGuardSubtitleStyleDomainRecord = (input, errorFactory) => {
276
- const __is = input => {
277
- const $io0 = input => (undefined === input.name || "string" === typeof input.name) && (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) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.scaledBorderAndShadow || "boolean" === typeof input.scaledBorderAndShadow) && (undefined === input.futureWordWrapping || "boolean" === typeof input.futureWordWrapping) && (undefined === input.previewSettings || "object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) && $io1(input.previewSettings));
278
- const $io1 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
279
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
280
- };
281
- if (false === __is(input))
282
- ((input, _path, _exceptionable = true) => {
283
- const $guard = __typia.createAssertGuard.guard;
284
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
285
- path: _path + ".name",
286
- expected: "(string | undefined)",
287
- value: input.name
288
- }, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
289
- path: _path + ".fontname",
290
- expected: "(string | undefined)",
291
- value: input.fontname
292
- }, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
293
- path: _path + ".fontsize",
294
- expected: "(string | undefined)",
295
- value: input.fontsize
296
- }, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
297
- path: _path + ".primaryColour",
298
- expected: "(string | undefined)",
299
- value: input.primaryColour
300
- }, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
301
- path: _path + ".secondaryColour",
302
- expected: "(string | undefined)",
303
- value: input.secondaryColour
304
- }, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
305
- path: _path + ".outlineColour",
306
- expected: "(string | undefined)",
307
- value: input.outlineColour
308
- }, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
309
- path: _path + ".backColour",
310
- expected: "(string | undefined)",
311
- value: input.backColour
312
- }, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
313
- path: _path + ".bold",
314
- expected: "(string | undefined)",
315
- value: input.bold
316
- }, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
317
- path: _path + ".italic",
318
- expected: "(string | undefined)",
319
- value: input.italic
320
- }, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
321
- path: _path + ".underline",
322
- expected: "(string | undefined)",
323
- value: input.underline
324
- }, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
325
- path: _path + ".strikeOut",
326
- expected: "(string | undefined)",
327
- value: input.strikeOut
328
- }, errorFactory)) && (undefined === input.scaleX || "string" === typeof input.scaleX || $guard(_exceptionable, {
329
- path: _path + ".scaleX",
330
- expected: "(string | undefined)",
331
- value: input.scaleX
332
- }, errorFactory)) && (undefined === input.scaleY || "string" === typeof input.scaleY || $guard(_exceptionable, {
333
- path: _path + ".scaleY",
334
- expected: "(string | undefined)",
335
- value: input.scaleY
336
- }, errorFactory)) && (undefined === input.spacing || "string" === typeof input.spacing || $guard(_exceptionable, {
337
- path: _path + ".spacing",
338
- expected: "(string | undefined)",
339
- value: input.spacing
340
- }, errorFactory)) && (undefined === input.angle || "string" === typeof input.angle || $guard(_exceptionable, {
341
- path: _path + ".angle",
342
- expected: "(string | undefined)",
343
- value: input.angle
344
- }, errorFactory)) && (undefined === input.borderStyle || "string" === typeof input.borderStyle || $guard(_exceptionable, {
345
- path: _path + ".borderStyle",
346
- expected: "(string | undefined)",
347
- value: input.borderStyle
348
- }, errorFactory)) && (undefined === input.outline || "string" === typeof input.outline || $guard(_exceptionable, {
349
- path: _path + ".outline",
350
- expected: "(string | undefined)",
351
- value: input.outline
352
- }, errorFactory)) && (undefined === input.shadow || "string" === typeof input.shadow || $guard(_exceptionable, {
353
- path: _path + ".shadow",
354
- expected: "(string | undefined)",
355
- value: input.shadow
356
- }, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
357
- path: _path + ".alignment",
358
- expected: "(string | undefined)",
359
- value: input.alignment
360
- }, errorFactory)) && (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
361
- path: _path + ".marginL",
362
- expected: "(string | undefined)",
363
- value: input.marginL
364
- }, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
365
- path: _path + ".marginR",
366
- expected: "(string | undefined)",
367
- value: input.marginR
368
- }, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
369
- path: _path + ".marginV",
370
- expected: "(string | undefined)",
371
- value: input.marginV
372
- }, errorFactory)) && (undefined === input.encoding || "string" === typeof input.encoding || $guard(_exceptionable, {
373
- path: _path + ".encoding",
374
- expected: "(string | undefined)",
375
- value: input.encoding
376
- }, errorFactory)) && (undefined === input.scaledBorderAndShadow || "boolean" === typeof input.scaledBorderAndShadow || $guard(_exceptionable, {
377
- path: _path + ".scaledBorderAndShadow",
378
- expected: "(boolean | undefined)",
379
- value: input.scaledBorderAndShadow
380
- }, errorFactory)) && (undefined === input.futureWordWrapping || "boolean" === typeof input.futureWordWrapping || $guard(_exceptionable, {
381
- path: _path + ".futureWordWrapping",
382
- expected: "(boolean | undefined)",
383
- value: input.futureWordWrapping
384
- }, errorFactory)) && (undefined === input.previewSettings || ("object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) || $guard(_exceptionable, {
385
- path: _path + ".previewSettings",
386
- expected: "(__type | undefined)",
387
- value: input.previewSettings
388
- }, errorFactory)) && $ao1(input.previewSettings, _path + ".previewSettings", true && _exceptionable) || $guard(_exceptionable, {
389
- path: _path + ".previewSettings",
390
- expected: "(__type | undefined)",
391
- value: input.previewSettings
392
- }, errorFactory));
393
- const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio || $guard(_exceptionable, {
394
- path: _path + ".aspectRatio",
395
- expected: "(string | undefined)",
396
- value: input.aspectRatio
397
- }, errorFactory)) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId || $guard(_exceptionable, {
398
- path: _path + ".backgroundAssetId",
399
- expected: "(string | undefined)",
400
- value: input.backgroundAssetId
401
- }, errorFactory)) && (undefined === input.text || "string" === typeof input.text || $guard(_exceptionable, {
402
- path: _path + ".text",
403
- expected: "(string | undefined)",
404
- value: input.text
405
- }, errorFactory));
406
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
407
- path: _path + "",
408
- expected: "SubtitleStyleDomainRecord",
409
- value: input
410
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
411
- path: _path + "",
412
- expected: "SubtitleStyleDomainRecord",
413
- value: input
414
- }, errorFactory);
415
- })(input, "$input", true);
416
- };
417
- export const stringifySubtitleStyleDomainRecord = input => {
418
- const $io1 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
419
- const $string = __typia.json.createStringify.string;
420
- const $tail = __typia.json.createStringify.tail;
421
- const $so0 = input => `{${$tail(`${undefined === input.name ? "" : `"name":${undefined !== input.name ? $string(input.name) : 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},`}${undefined === input.scaleX ? "" : `"scaleX":${undefined !== input.scaleX ? $string(input.scaleX) : undefined},`}${undefined === input.scaleY ? "" : `"scaleY":${undefined !== input.scaleY ? $string(input.scaleY) : undefined},`}${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? $string(input.spacing) : undefined},`}${undefined === input.angle ? "" : `"angle":${undefined !== input.angle ? $string(input.angle) : undefined},`}${undefined === input.borderStyle ? "" : `"borderStyle":${undefined !== input.borderStyle ? $string(input.borderStyle) : undefined},`}${undefined === input.outline ? "" : `"outline":${undefined !== input.outline ? $string(input.outline) : undefined},`}${undefined === input.shadow ? "" : `"shadow":${undefined !== input.shadow ? $string(input.shadow) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? $string(input.alignment) : undefined},`}${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.encoding ? "" : `"encoding":${undefined !== input.encoding ? $string(input.encoding) : undefined},`}${undefined === input.scaledBorderAndShadow ? "" : `"scaledBorderAndShadow":${undefined !== input.scaledBorderAndShadow ? input.scaledBorderAndShadow : undefined},`}${undefined === input.futureWordWrapping ? "" : `"futureWordWrapping":${undefined !== input.futureWordWrapping ? input.futureWordWrapping : undefined},`}${undefined === input.previewSettings ? "" : `"previewSettings":${undefined !== input.previewSettings ? $so1(input.previewSettings) : undefined}`}`)}}`;
422
- const $so1 = input => `{${$tail(`${undefined === input.aspectRatio ? "" : `"aspectRatio":${undefined !== input.aspectRatio ? $string(input.aspectRatio) : undefined},`}${undefined === input.backgroundAssetId ? "" : `"backgroundAssetId":${undefined !== input.backgroundAssetId ? $string(input.backgroundAssetId) : undefined},`}${undefined === input.text ? "" : `"text":${undefined !== input.text ? $string(input.text) : undefined}`}`)}}`;
423
- return $so0(input);
424
- };
425
- export const assertStringifySubtitleStyleDomainRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
426
- const __is = input => {
427
- const $io0 = input => (undefined === input.name || "string" === typeof input.name) && (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) && (undefined === input.scaleX || "string" === typeof input.scaleX) && (undefined === input.scaleY || "string" === typeof input.scaleY) && (undefined === input.spacing || "string" === typeof input.spacing) && (undefined === input.angle || "string" === typeof input.angle) && (undefined === input.borderStyle || "string" === typeof input.borderStyle) && (undefined === input.outline || "string" === typeof input.outline) && (undefined === input.shadow || "string" === typeof input.shadow) && (undefined === input.alignment || "string" === typeof input.alignment) && (undefined === input.marginL || "string" === typeof input.marginL) && (undefined === input.marginR || "string" === typeof input.marginR) && (undefined === input.marginV || "string" === typeof input.marginV) && (undefined === input.encoding || "string" === typeof input.encoding) && (undefined === input.scaledBorderAndShadow || "boolean" === typeof input.scaledBorderAndShadow) && (undefined === input.futureWordWrapping || "boolean" === typeof input.futureWordWrapping) && (undefined === input.previewSettings || "object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) && $io1(input.previewSettings));
428
- const $io1 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
429
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
430
- };
431
- if (false === __is(input))
432
- ((input, _path, _exceptionable = true) => {
433
- const $guard = __typia.json.createAssertStringify.guard;
434
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
435
- path: _path + ".name",
436
- expected: "(string | undefined)",
437
- value: input.name
438
- }, errorFactory)) && (undefined === input.fontname || "string" === typeof input.fontname || $guard(_exceptionable, {
439
- path: _path + ".fontname",
440
- expected: "(string | undefined)",
441
- value: input.fontname
442
- }, errorFactory)) && (undefined === input.fontsize || "string" === typeof input.fontsize || $guard(_exceptionable, {
443
- path: _path + ".fontsize",
444
- expected: "(string | undefined)",
445
- value: input.fontsize
446
- }, errorFactory)) && (undefined === input.primaryColour || "string" === typeof input.primaryColour || $guard(_exceptionable, {
447
- path: _path + ".primaryColour",
448
- expected: "(string | undefined)",
449
- value: input.primaryColour
450
- }, errorFactory)) && (undefined === input.secondaryColour || "string" === typeof input.secondaryColour || $guard(_exceptionable, {
451
- path: _path + ".secondaryColour",
452
- expected: "(string | undefined)",
453
- value: input.secondaryColour
454
- }, errorFactory)) && (undefined === input.outlineColour || "string" === typeof input.outlineColour || $guard(_exceptionable, {
455
- path: _path + ".outlineColour",
456
- expected: "(string | undefined)",
457
- value: input.outlineColour
458
- }, errorFactory)) && (undefined === input.backColour || "string" === typeof input.backColour || $guard(_exceptionable, {
459
- path: _path + ".backColour",
460
- expected: "(string | undefined)",
461
- value: input.backColour
462
- }, errorFactory)) && (undefined === input.bold || "string" === typeof input.bold || $guard(_exceptionable, {
463
- path: _path + ".bold",
464
- expected: "(string | undefined)",
465
- value: input.bold
466
- }, errorFactory)) && (undefined === input.italic || "string" === typeof input.italic || $guard(_exceptionable, {
467
- path: _path + ".italic",
468
- expected: "(string | undefined)",
469
- value: input.italic
470
- }, errorFactory)) && (undefined === input.underline || "string" === typeof input.underline || $guard(_exceptionable, {
471
- path: _path + ".underline",
472
- expected: "(string | undefined)",
473
- value: input.underline
474
- }, errorFactory)) && (undefined === input.strikeOut || "string" === typeof input.strikeOut || $guard(_exceptionable, {
475
- path: _path + ".strikeOut",
476
- expected: "(string | undefined)",
477
- value: input.strikeOut
478
- }, errorFactory)) && (undefined === input.scaleX || "string" === typeof input.scaleX || $guard(_exceptionable, {
479
- path: _path + ".scaleX",
480
- expected: "(string | undefined)",
481
- value: input.scaleX
482
- }, errorFactory)) && (undefined === input.scaleY || "string" === typeof input.scaleY || $guard(_exceptionable, {
483
- path: _path + ".scaleY",
484
- expected: "(string | undefined)",
485
- value: input.scaleY
486
- }, errorFactory)) && (undefined === input.spacing || "string" === typeof input.spacing || $guard(_exceptionable, {
487
- path: _path + ".spacing",
488
- expected: "(string | undefined)",
489
- value: input.spacing
490
- }, errorFactory)) && (undefined === input.angle || "string" === typeof input.angle || $guard(_exceptionable, {
491
- path: _path + ".angle",
492
- expected: "(string | undefined)",
493
- value: input.angle
494
- }, errorFactory)) && (undefined === input.borderStyle || "string" === typeof input.borderStyle || $guard(_exceptionable, {
495
- path: _path + ".borderStyle",
496
- expected: "(string | undefined)",
497
- value: input.borderStyle
498
- }, errorFactory)) && (undefined === input.outline || "string" === typeof input.outline || $guard(_exceptionable, {
499
- path: _path + ".outline",
500
- expected: "(string | undefined)",
501
- value: input.outline
502
- }, errorFactory)) && (undefined === input.shadow || "string" === typeof input.shadow || $guard(_exceptionable, {
503
- path: _path + ".shadow",
504
- expected: "(string | undefined)",
505
- value: input.shadow
506
- }, errorFactory)) && (undefined === input.alignment || "string" === typeof input.alignment || $guard(_exceptionable, {
507
- path: _path + ".alignment",
508
- expected: "(string | undefined)",
509
- value: input.alignment
510
- }, errorFactory)) && (undefined === input.marginL || "string" === typeof input.marginL || $guard(_exceptionable, {
511
- path: _path + ".marginL",
512
- expected: "(string | undefined)",
513
- value: input.marginL
514
- }, errorFactory)) && (undefined === input.marginR || "string" === typeof input.marginR || $guard(_exceptionable, {
515
- path: _path + ".marginR",
516
- expected: "(string | undefined)",
517
- value: input.marginR
518
- }, errorFactory)) && (undefined === input.marginV || "string" === typeof input.marginV || $guard(_exceptionable, {
519
- path: _path + ".marginV",
520
- expected: "(string | undefined)",
521
- value: input.marginV
522
- }, errorFactory)) && (undefined === input.encoding || "string" === typeof input.encoding || $guard(_exceptionable, {
523
- path: _path + ".encoding",
524
- expected: "(string | undefined)",
525
- value: input.encoding
526
- }, errorFactory)) && (undefined === input.scaledBorderAndShadow || "boolean" === typeof input.scaledBorderAndShadow || $guard(_exceptionable, {
527
- path: _path + ".scaledBorderAndShadow",
528
- expected: "(boolean | undefined)",
529
- value: input.scaledBorderAndShadow
530
- }, errorFactory)) && (undefined === input.futureWordWrapping || "boolean" === typeof input.futureWordWrapping || $guard(_exceptionable, {
531
- path: _path + ".futureWordWrapping",
532
- expected: "(boolean | undefined)",
533
- value: input.futureWordWrapping
534
- }, errorFactory)) && (undefined === input.previewSettings || ("object" === typeof input.previewSettings && null !== input.previewSettings && false === Array.isArray(input.previewSettings) || $guard(_exceptionable, {
535
- path: _path + ".previewSettings",
536
- expected: "(__type | undefined)",
537
- value: input.previewSettings
538
- }, errorFactory)) && $ao1(input.previewSettings, _path + ".previewSettings", true && _exceptionable) || $guard(_exceptionable, {
539
- path: _path + ".previewSettings",
540
- expected: "(__type | undefined)",
541
- value: input.previewSettings
542
- }, errorFactory));
543
- const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio || $guard(_exceptionable, {
544
- path: _path + ".aspectRatio",
545
- expected: "(string | undefined)",
546
- value: input.aspectRatio
547
- }, errorFactory)) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId || $guard(_exceptionable, {
548
- path: _path + ".backgroundAssetId",
549
- expected: "(string | undefined)",
550
- value: input.backgroundAssetId
551
- }, errorFactory)) && (undefined === input.text || "string" === typeof input.text || $guard(_exceptionable, {
552
- path: _path + ".text",
553
- expected: "(string | undefined)",
554
- value: input.text
555
- }, errorFactory));
556
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
557
- path: _path + "",
558
- expected: "SubtitleStyleDomainRecord",
559
- value: input
560
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
561
- path: _path + "",
562
- expected: "SubtitleStyleDomainRecord",
563
- value: input
564
- }, errorFactory);
565
- })(input, "$input", true);
566
- return input;
567
- }; const stringify = input => {
568
- const $io1 = input => (undefined === input.aspectRatio || "string" === typeof input.aspectRatio) && (undefined === input.backgroundAssetId || "string" === typeof input.backgroundAssetId) && (undefined === input.text || "string" === typeof input.text);
569
- const $string = __typia.json.createAssertStringify.string;
570
- const $tail = __typia.json.createAssertStringify.tail;
571
- const $so0 = input => `{${$tail(`${undefined === input.name ? "" : `"name":${undefined !== input.name ? $string(input.name) : 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},`}${undefined === input.scaleX ? "" : `"scaleX":${undefined !== input.scaleX ? $string(input.scaleX) : undefined},`}${undefined === input.scaleY ? "" : `"scaleY":${undefined !== input.scaleY ? $string(input.scaleY) : undefined},`}${undefined === input.spacing ? "" : `"spacing":${undefined !== input.spacing ? $string(input.spacing) : undefined},`}${undefined === input.angle ? "" : `"angle":${undefined !== input.angle ? $string(input.angle) : undefined},`}${undefined === input.borderStyle ? "" : `"borderStyle":${undefined !== input.borderStyle ? $string(input.borderStyle) : undefined},`}${undefined === input.outline ? "" : `"outline":${undefined !== input.outline ? $string(input.outline) : undefined},`}${undefined === input.shadow ? "" : `"shadow":${undefined !== input.shadow ? $string(input.shadow) : undefined},`}${undefined === input.alignment ? "" : `"alignment":${undefined !== input.alignment ? $string(input.alignment) : undefined},`}${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.encoding ? "" : `"encoding":${undefined !== input.encoding ? $string(input.encoding) : undefined},`}${undefined === input.scaledBorderAndShadow ? "" : `"scaledBorderAndShadow":${undefined !== input.scaledBorderAndShadow ? input.scaledBorderAndShadow : undefined},`}${undefined === input.futureWordWrapping ? "" : `"futureWordWrapping":${undefined !== input.futureWordWrapping ? input.futureWordWrapping : undefined},`}${undefined === input.previewSettings ? "" : `"previewSettings":${undefined !== input.previewSettings ? $so1(input.previewSettings) : undefined}`}`)}}`;
572
- const $so1 = input => `{${$tail(`${undefined === input.aspectRatio ? "" : `"aspectRatio":${undefined !== input.aspectRatio ? $string(input.aspectRatio) : undefined},`}${undefined === input.backgroundAssetId ? "" : `"backgroundAssetId":${undefined !== input.backgroundAssetId ? $string(input.backgroundAssetId) : undefined},`}${undefined === input.text ? "" : `"text":${undefined !== input.text ? $string(input.text) : undefined}`}`)}}`;
573
- return $so0(input);
574
- }; return stringify(assert(input, errorFactory)); };
@@ -1,19 +0,0 @@
1
- import { type AssertionGuard as __AssertionGuard } from "typia";
2
- export interface SubtitleDomainRecords {
3
- ":subtitle": SubtitleDomainRecord;
4
- }
5
- export interface SubtitleDomainRecord {
6
- value?: Array<{
7
- lang?: string;
8
- start: number;
9
- end: number;
10
- text?: string;
11
- }>;
12
- style?: unknown;
13
- }
14
- export declare const isSubtitleDomainRecord: (input: unknown) => input is SubtitleDomainRecord;
15
- export declare const assertSubtitleDomainRecord: (input: unknown) => SubtitleDomainRecord;
16
- export declare const randomSubtitleDomainRecord: () => SubtitleDomainRecord;
17
- export declare const assertGuardSubtitleDomainRecord: __AssertionGuard<SubtitleDomainRecord>;
18
- export declare const stringifySubtitleDomainRecord: (input: SubtitleDomainRecord) => string;
19
- export declare const assertStringifySubtitleDomainRecord: (input: unknown) => string;