@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,3198 +0,0 @@
1
- import __typia from "typia";
2
- export const isPanelDomainPanelRecord = input => {
3
- const $io0 = input => (undefined === input.title || "string" === typeof input.title) && (null !== input.supports && (undefined === input.supports || "string" === typeof input.supports || Array.isArray(input.supports) && input.supports.every(elem => "string" === typeof elem))) && (undefined === input.priority || "number" === typeof input.priority) && (undefined === input.editorPriority || "number" === typeof input.editorPriority) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io1(input.properties)) && (undefined === input.layout || "object" === typeof input.layout && null !== input.layout && false === Array.isArray(input.layout) && $io4(input.layout)) && (null !== input.filter && (undefined === input.filter || "string" === typeof input.filter || "object" === typeof input.filter && null !== input.filter && $io8(input.filter))) && (null !== input.expand && (undefined === input.expand || "string" === typeof input.expand || "object" === typeof input.expand && null !== input.expand && $io8(input.expand)));
4
- const $io1 = input => Object.keys(input).every(key => {
5
- const value = input[key];
6
- if (undefined === value)
7
- return true;
8
- return "object" === typeof value && null !== value && $io2(value);
9
- });
10
- const $io2 = input => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.path || "string" === typeof input.path) && true && (undefined === input.index || "object" === typeof input.index && null !== input.index && $io3(input.index)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf));
11
- const $io3 = input => "string" === typeof input.label && "string" === typeof input.path;
12
- const $io4 = input => null !== input.panel && (undefined === input.panel || "string" === typeof input.panel || (Array.isArray(input.panel) && ($ia0(input.panel) || false) || "object" === typeof input.panel && null !== input.panel && $iu0(input.panel))) && (null !== input.editor && (undefined === input.editor || "string" === typeof input.editor || (Array.isArray(input.editor) && ($ia0(input.editor) || false) || "object" === typeof input.editor && null !== input.editor && $iu0(input.editor))));
13
- const $io5 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
14
- const $io6 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io7(input.widget)));
15
- const $io7 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
16
- const $io8 = input => "number" === typeof input.length && ("object" === typeof input.__context && null !== input.__context && true) && "string" === typeof input.__returnValue && Object.keys(input).every(key => {
17
- if (["length", "__context", "__returnValue"].some(prop => key === prop))
18
- return true;
19
- const value = input[key];
20
- if (undefined === value)
21
- return true;
22
- if ("number" === typeof Number(key))
23
- return "string" === typeof value;
24
- return true;
25
- });
26
- const $iu0 = input => (() => {
27
- if (undefined !== input.type)
28
- return $io5(input);
29
- else if (undefined !== input.property)
30
- return $io6(input);
31
- else
32
- return false;
33
- })();
34
- const $ia0 = input => input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || (Array.isArray(elem) && ($ia0(elem) || false) || "object" === typeof elem && null !== elem && $iu0(elem))));
35
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
36
- };
37
- export const assertPanelDomainPanelRecord = (input, errorFactory) => {
38
- const __is = input => {
39
- const $io0 = input => (undefined === input.title || "string" === typeof input.title) && (null !== input.supports && (undefined === input.supports || "string" === typeof input.supports || Array.isArray(input.supports) && input.supports.every(elem => "string" === typeof elem))) && (undefined === input.priority || "number" === typeof input.priority) && (undefined === input.editorPriority || "number" === typeof input.editorPriority) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io1(input.properties)) && (undefined === input.layout || "object" === typeof input.layout && null !== input.layout && false === Array.isArray(input.layout) && $io4(input.layout)) && (null !== input.filter && (undefined === input.filter || "string" === typeof input.filter || "object" === typeof input.filter && null !== input.filter && $io8(input.filter))) && (null !== input.expand && (undefined === input.expand || "string" === typeof input.expand || "object" === typeof input.expand && null !== input.expand && $io8(input.expand)));
40
- const $io1 = input => Object.keys(input).every(key => {
41
- const value = input[key];
42
- if (undefined === value)
43
- return true;
44
- return "object" === typeof value && null !== value && $io2(value);
45
- });
46
- const $io2 = input => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.path || "string" === typeof input.path) && true && (undefined === input.index || "object" === typeof input.index && null !== input.index && $io3(input.index)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf));
47
- const $io3 = input => "string" === typeof input.label && "string" === typeof input.path;
48
- const $io4 = input => null !== input.panel && (undefined === input.panel || "string" === typeof input.panel || (Array.isArray(input.panel) && ($ia0(input.panel) || false) || "object" === typeof input.panel && null !== input.panel && $iu0(input.panel))) && (null !== input.editor && (undefined === input.editor || "string" === typeof input.editor || (Array.isArray(input.editor) && ($ia0(input.editor) || false) || "object" === typeof input.editor && null !== input.editor && $iu0(input.editor))));
49
- const $io5 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
50
- const $io6 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io7(input.widget)));
51
- const $io7 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
52
- const $io8 = input => "number" === typeof input.length && ("object" === typeof input.__context && null !== input.__context && true) && "string" === typeof input.__returnValue && Object.keys(input).every(key => {
53
- if (["length", "__context", "__returnValue"].some(prop => key === prop))
54
- return true;
55
- const value = input[key];
56
- if (undefined === value)
57
- return true;
58
- if ("number" === typeof Number(key))
59
- return "string" === typeof value;
60
- return true;
61
- });
62
- const $iu0 = input => (() => {
63
- if (undefined !== input.type)
64
- return $io5(input);
65
- else if (undefined !== input.property)
66
- return $io6(input);
67
- else
68
- return false;
69
- })();
70
- const $ia0 = input => input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || (Array.isArray(elem) && ($ia0(elem) || false) || "object" === typeof elem && null !== elem && $iu0(elem))));
71
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
72
- };
73
- if (false === __is(input))
74
- ((input, _path, _exceptionable = true) => {
75
- const $guard = __typia.createAssert.guard;
76
- const $join = __typia.createAssert.join;
77
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
78
- path: _path + ".title",
79
- expected: "(string | undefined)",
80
- value: input.title
81
- }, errorFactory)) && ((null !== input.supports || $guard(_exceptionable, {
82
- path: _path + ".supports",
83
- expected: "(Array<string> | string | undefined)",
84
- value: input.supports
85
- }, errorFactory)) && (undefined === input.supports || "string" === typeof input.supports || (Array.isArray(input.supports) || $guard(_exceptionable, {
86
- path: _path + ".supports",
87
- expected: "(Array<string> | string | undefined)",
88
- value: input.supports
89
- }, errorFactory)) && input.supports.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
90
- path: _path + ".supports[" + _index1 + "]",
91
- expected: "string",
92
- value: elem
93
- }, errorFactory)) || $guard(_exceptionable, {
94
- path: _path + ".supports",
95
- expected: "(Array<string> | string | undefined)",
96
- value: input.supports
97
- }, errorFactory))) && (undefined === input.priority || "number" === typeof input.priority || $guard(_exceptionable, {
98
- path: _path + ".priority",
99
- expected: "(number | undefined)",
100
- value: input.priority
101
- }, errorFactory)) && (undefined === input.editorPriority || "number" === typeof input.editorPriority || $guard(_exceptionable, {
102
- path: _path + ".editorPriority",
103
- expected: "(number | undefined)",
104
- value: input.editorPriority
105
- }, errorFactory)) && (undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || $guard(_exceptionable, {
106
- path: _path + ".properties",
107
- expected: "(__type | undefined)",
108
- value: input.properties
109
- }, errorFactory)) && $ao1(input.properties, _path + ".properties", true && _exceptionable) || $guard(_exceptionable, {
110
- path: _path + ".properties",
111
- expected: "(__type | undefined)",
112
- value: input.properties
113
- }, errorFactory)) && (undefined === input.layout || ("object" === typeof input.layout && null !== input.layout && false === Array.isArray(input.layout) || $guard(_exceptionable, {
114
- path: _path + ".layout",
115
- expected: "(__type.o2 | undefined)",
116
- value: input.layout
117
- }, errorFactory)) && $ao4(input.layout, _path + ".layout", true && _exceptionable) || $guard(_exceptionable, {
118
- path: _path + ".layout",
119
- expected: "(__type.o2 | undefined)",
120
- value: input.layout
121
- }, errorFactory)) && ((null !== input.filter || $guard(_exceptionable, {
122
- path: _path + ".filter",
123
- expected: "(String & { __context: object; __returnValue: string; } | string | undefined)",
124
- value: input.filter
125
- }, errorFactory)) && (undefined === input.filter || "string" === typeof input.filter || ("object" === typeof input.filter && null !== input.filter || $guard(_exceptionable, {
126
- path: _path + ".filter",
127
- expected: "(String & { __context: object; __returnValue: string; } | string | undefined)",
128
- value: input.filter
129
- }, errorFactory)) && $ao8(input.filter, _path + ".filter", true && _exceptionable) || $guard(_exceptionable, {
130
- path: _path + ".filter",
131
- expected: "(String & { __context: object; __returnValue: string; } | string | undefined)",
132
- value: input.filter
133
- }, errorFactory))) && ((null !== input.expand || $guard(_exceptionable, {
134
- path: _path + ".expand",
135
- expected: "(String & { __context: object; __returnValue: string; } | string | undefined)",
136
- value: input.expand
137
- }, errorFactory)) && (undefined === input.expand || "string" === typeof input.expand || ("object" === typeof input.expand && null !== input.expand || $guard(_exceptionable, {
138
- path: _path + ".expand",
139
- expected: "(String & { __context: object; __returnValue: string; } | string | undefined)",
140
- value: input.expand
141
- }, errorFactory)) && $ao8(input.expand, _path + ".expand", true && _exceptionable) || $guard(_exceptionable, {
142
- path: _path + ".expand",
143
- expected: "(String & { __context: object; __returnValue: string; } | string | undefined)",
144
- value: input.expand
145
- }, errorFactory)));
146
- const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
147
- const value = input[key];
148
- if (undefined === value)
149
- return true;
150
- return ("object" === typeof value && null !== value || $guard(_exceptionable, {
151
- path: _path + $join(key),
152
- expected: "PanelProperty",
153
- value: value
154
- }, errorFactory)) && $ao2(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
155
- path: _path + $join(key),
156
- expected: "PanelProperty",
157
- value: value
158
- }, errorFactory);
159
- });
160
- const $ao2 = (input, _path, _exceptionable = true) => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type || $guard(_exceptionable, {
161
- path: _path + ".type",
162
- expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\")",
163
- value: input.type
164
- }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
165
- path: _path + ".title",
166
- expected: "(string | undefined)",
167
- value: input.title
168
- }, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
169
- path: _path + ".description",
170
- expected: "(string | undefined)",
171
- value: input.description
172
- }, errorFactory)) && (undefined === input.domain || "string" === typeof input.domain || $guard(_exceptionable, {
173
- path: _path + ".domain",
174
- expected: "(string | undefined)",
175
- value: input.domain
176
- }, errorFactory)) && (undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
177
- path: _path + ".path",
178
- expected: "(string | undefined)",
179
- value: input.path
180
- }, errorFactory)) && true && (undefined === input.index || ("object" === typeof input.index && null !== input.index || $guard(_exceptionable, {
181
- path: _path + ".index",
182
- expected: "(__type.o1 | undefined)",
183
- value: input.index
184
- }, errorFactory)) && $ao3(input.index, _path + ".index", true && _exceptionable) || $guard(_exceptionable, {
185
- path: _path + ".index",
186
- expected: "(__type.o1 | undefined)",
187
- value: input.index
188
- }, errorFactory)) && (undefined === input.required || "boolean" === typeof input.required || $guard(_exceptionable, {
189
- path: _path + ".required",
190
- expected: "(boolean | undefined)",
191
- value: input.required
192
- }, errorFactory)) && (undefined === input.oneOf || Array.isArray(input.oneOf) || $guard(_exceptionable, {
193
- path: _path + ".oneOf",
194
- expected: "(Array<unknown> | undefined)",
195
- value: input.oneOf
196
- }, errorFactory));
197
- const $ao3 = (input, _path, _exceptionable = true) => ("string" === typeof input.label || $guard(_exceptionable, {
198
- path: _path + ".label",
199
- expected: "string",
200
- value: input.label
201
- }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
202
- path: _path + ".path",
203
- expected: "string",
204
- value: input.path
205
- }, errorFactory));
206
- const $ao4 = (input, _path, _exceptionable = true) => (null !== input.panel || $guard(_exceptionable, {
207
- path: _path + ".panel",
208
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
209
- value: input.panel
210
- }, errorFactory)) && (undefined === input.panel || "string" === typeof input.panel || (Array.isArray(input.panel) && ($aa0(input.panel, _path + ".panel", true && _exceptionable) || $guard(_exceptionable, {
211
- path: _path + ".panel",
212
- expected: "Array<PanelLayout>",
213
- value: input.panel
214
- }, errorFactory)) || "object" === typeof input.panel && null !== input.panel && $au0(input.panel, _path + ".panel", true && _exceptionable) || $guard(_exceptionable, {
215
- path: _path + ".panel",
216
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
217
- value: input.panel
218
- }, errorFactory)) || $guard(_exceptionable, {
219
- path: _path + ".panel",
220
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
221
- value: input.panel
222
- }, errorFactory)) && ((null !== input.editor || $guard(_exceptionable, {
223
- path: _path + ".editor",
224
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
225
- value: input.editor
226
- }, errorFactory)) && (undefined === input.editor || "string" === typeof input.editor || (Array.isArray(input.editor) && ($aa0(input.editor, _path + ".editor", true && _exceptionable) || $guard(_exceptionable, {
227
- path: _path + ".editor",
228
- expected: "Array<PanelLayout>",
229
- value: input.editor
230
- }, errorFactory)) || "object" === typeof input.editor && null !== input.editor && $au0(input.editor, _path + ".editor", true && _exceptionable) || $guard(_exceptionable, {
231
- path: _path + ".editor",
232
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
233
- value: input.editor
234
- }, errorFactory)) || $guard(_exceptionable, {
235
- path: _path + ".editor",
236
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
237
- value: input.editor
238
- }, errorFactory)));
239
- const $ao5 = (input, _path, _exceptionable = true) => ("divider" === input.type || $guard(_exceptionable, {
240
- path: _path + ".type",
241
- expected: "\"divider\"",
242
- value: input.type
243
- }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
244
- path: _path + ".title",
245
- expected: "(string | undefined)",
246
- value: input.title
247
- }, errorFactory));
248
- const $ao6 = (input, _path, _exceptionable = true) => ("string" === typeof input.property || $guard(_exceptionable, {
249
- path: _path + ".property",
250
- expected: "string",
251
- value: input.property
252
- }, errorFactory)) && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width || $guard(_exceptionable, {
253
- path: _path + ".width",
254
- expected: "(number | string | undefined)",
255
- value: input.width
256
- }, errorFactory)) && ((null !== input.widget || $guard(_exceptionable, {
257
- path: _path + ".widget",
258
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
259
- value: input.widget
260
- }, errorFactory)) && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || ("object" === typeof input.widget && null !== input.widget || $guard(_exceptionable, {
261
- path: _path + ".widget",
262
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
263
- value: input.widget
264
- }, errorFactory)) && $ao7(input.widget, _path + ".widget", true && _exceptionable) || $guard(_exceptionable, {
265
- path: _path + ".widget",
266
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
267
- value: input.widget
268
- }, errorFactory)));
269
- const $ao7 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
270
- path: _path + ".type",
271
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
272
- value: input.type
273
- }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
274
- path: _path + ".readOnly",
275
- expected: "(boolean | undefined)",
276
- value: input.readOnly
277
- }, errorFactory));
278
- const $ao8 = (input, _path, _exceptionable = true) => ("number" === typeof input.length || $guard(_exceptionable, {
279
- path: _path + ".length",
280
- expected: "number",
281
- value: input.length
282
- }, errorFactory)) && (("object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) || $guard(_exceptionable, {
283
- path: _path + ".__context",
284
- expected: "object",
285
- value: input.__context
286
- }, errorFactory)) && $ao9(input.__context, _path + ".__context", true && _exceptionable) || $guard(_exceptionable, {
287
- path: _path + ".__context",
288
- expected: "object",
289
- value: input.__context
290
- }, errorFactory)) && ("string" === typeof input.__returnValue || $guard(_exceptionable, {
291
- path: _path + ".__returnValue",
292
- expected: "string",
293
- value: input.__returnValue
294
- }, errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
295
- if (["length", "__context", "__returnValue"].some(prop => key === prop))
296
- return true;
297
- const value = input[key];
298
- if (undefined === value)
299
- return true;
300
- if ("number" === typeof Number(key))
301
- return "string" === typeof value || $guard(_exceptionable, {
302
- path: _path + $join(key),
303
- expected: "string",
304
- value: value
305
- }, errorFactory);
306
- return true;
307
- }));
308
- const $ao9 = (input, _path, _exceptionable = true) => true;
309
- const $au0 = (input, _path, _exceptionable = true) => (() => {
310
- if (undefined !== input.type)
311
- return $ao5(input, _path, true && _exceptionable);
312
- else if (undefined !== input.property)
313
- return $ao6(input, _path, true && _exceptionable);
314
- else
315
- return $guard(_exceptionable, {
316
- path: _path,
317
- expected: "(PanelLayoutDivider | PanelLayoutItem)",
318
- value: input
319
- }, errorFactory);
320
- })();
321
- const $aa0 = (input, _path, _exceptionable = true) => input.every((elem, _index2) => (null !== elem || $guard(_exceptionable, {
322
- path: _path + "[" + _index2 + "]",
323
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
324
- value: elem
325
- }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
326
- path: _path + "[" + _index2 + "]",
327
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
328
- value: elem
329
- }, errorFactory)) && ("string" === typeof elem || (Array.isArray(elem) && ($aa0(elem, _path + "[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
330
- path: _path + "[" + _index2 + "]",
331
- expected: "Array<PanelLayout>",
332
- value: elem
333
- }, errorFactory)) || "object" === typeof elem && null !== elem && $au0(elem, _path + "[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
334
- path: _path + "[" + _index2 + "]",
335
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
336
- value: elem
337
- }, errorFactory)) || $guard(_exceptionable, {
338
- path: _path + "[" + _index2 + "]",
339
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
340
- value: elem
341
- }, errorFactory)));
342
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
343
- path: _path + "",
344
- expected: "PanelDomainPanelRecord",
345
- value: input
346
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
347
- path: _path + "",
348
- expected: "PanelDomainPanelRecord",
349
- value: input
350
- }, errorFactory);
351
- })(input, "$input", true);
352
- return input;
353
- };
354
- export const randomPanelDomainPanelRecord = generator => {
355
- const $generator = __typia.createRandom.generator;
356
- const $pick = __typia.createRandom.pick;
357
- const $ro0 = (_recursive = false, _depth = 0) => ({
358
- title: $pick([
359
- () => undefined,
360
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
361
- ])(),
362
- supports: $pick([
363
- () => undefined,
364
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
365
- () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
366
- ])(),
367
- priority: $pick([
368
- () => undefined,
369
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
370
- ])(),
371
- editorPriority: $pick([
372
- () => undefined,
373
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
374
- ])(),
375
- properties: $pick([
376
- () => undefined,
377
- () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
378
- ])(),
379
- layout: $pick([
380
- () => undefined,
381
- () => $ro4(_recursive, _recursive ? 1 + _depth : _depth)
382
- ])(),
383
- filter: $pick([
384
- () => undefined,
385
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
386
- () => $ro8(_recursive, _recursive ? 1 + _depth : _depth)
387
- ])(),
388
- expand: $pick([
389
- () => undefined,
390
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
391
- () => $ro8(_recursive, _recursive ? 1 + _depth : _depth)
392
- ])()
393
- });
394
- const $ro1 = (_recursive = false, _depth = 0) => {
395
- const output = {};
396
- (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = $ro2(_recursive, _recursive ? 1 + _depth : _depth), (generator?.integer ?? $generator.integer)(0, 3));
397
- return output;
398
- };
399
- const $ro2 = (_recursive = false, _depth = 0) => ({
400
- type: $pick([
401
- () => "string",
402
- () => "number",
403
- () => "boolean",
404
- () => "object",
405
- () => "array",
406
- () => "asset",
407
- () => "datetime",
408
- () => "rpc"
409
- ])(),
410
- title: $pick([
411
- () => undefined,
412
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
413
- ])(),
414
- description: $pick([
415
- () => undefined,
416
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
417
- ])(),
418
- domain: $pick([
419
- () => undefined,
420
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
421
- ])(),
422
- path: $pick([
423
- () => undefined,
424
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
425
- ])(),
426
- computed: $pick([
427
- () => "any type used...",
428
- () => undefined
429
- ])(),
430
- index: $pick([
431
- () => undefined,
432
- () => $ro3(_recursive, _recursive ? 1 + _depth : _depth)
433
- ])(),
434
- required: $pick([
435
- () => undefined,
436
- () => (generator?.boolean ?? $generator.boolean)()
437
- ])(),
438
- oneOf: $pick([
439
- () => undefined,
440
- () => (generator?.array ?? $generator.array)(() => "any type used...")
441
- ])()
442
- });
443
- const $ro3 = (_recursive = false, _depth = 0) => ({
444
- label: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
445
- path: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
446
- });
447
- const $ro4 = (_recursive = false, _depth = 0) => ({
448
- panel: $pick([
449
- () => undefined,
450
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
451
- () => $ra0(generator?.length ?? $generator.length, false, true, 0),
452
- () => $ro5(_recursive, _recursive ? 1 + _depth : _depth),
453
- () => $ro6(_recursive, _recursive ? 1 + _depth : _depth)
454
- ])(),
455
- editor: $pick([
456
- () => undefined,
457
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
458
- () => $ra0(generator?.length ?? $generator.length, false, true, 0),
459
- () => $ro5(_recursive, _recursive ? 1 + _depth : _depth),
460
- () => $ro6(_recursive, _recursive ? 1 + _depth : _depth)
461
- ])()
462
- });
463
- const $ro5 = (_recursive = false, _depth = 0) => ({
464
- type: "divider",
465
- title: $pick([
466
- () => undefined,
467
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
468
- ])()
469
- });
470
- const $ro6 = (_recursive = false, _depth = 0) => ({
471
- property: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
472
- width: $pick([
473
- () => undefined,
474
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
475
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
476
- ])(),
477
- widget: $pick([
478
- () => undefined,
479
- () => "default",
480
- () => "assetTypes",
481
- () => "assetTags",
482
- () => "geopoint",
483
- () => "poster",
484
- () => "textarea",
485
- () => "tags",
486
- () => $ro7(_recursive, _recursive ? 1 + _depth : _depth)
487
- ])()
488
- });
489
- const $ro7 = (_recursive = false, _depth = 0) => ({
490
- type: $pick([
491
- () => "default",
492
- () => "assetTypes",
493
- () => "assetTags",
494
- () => "geopoint",
495
- () => "poster",
496
- () => "textarea",
497
- () => "tags"
498
- ])(),
499
- readOnly: $pick([
500
- () => undefined,
501
- () => (generator?.boolean ?? $generator.boolean)()
502
- ])()
503
- });
504
- const $ro8 = (_recursive = false, _depth = 0) => {
505
- const output = {
506
- length: (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100),
507
- __context: $ro9(_recursive, _recursive ? 1 + _depth : _depth),
508
- __returnValue: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
509
- };
510
- (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)] = (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(), (generator?.integer ?? $generator.integer)(0, 3));
511
- return output;
512
- };
513
- const $ro9 = (_recursive = false, _depth = 0) => {};
514
- const $ra0 = (length, unique, _recursive = true, _depth = 0) => 5 >= _depth ? (generator?.array ?? $generator.array)(() => $pick([
515
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
516
- () => $ra0(generator?.length ?? $generator.length, false, true, 1 + _depth),
517
- () => $ro5(true, _recursive ? 1 + _depth : _depth),
518
- () => $ro6(true, _recursive ? 1 + _depth : _depth)
519
- ])(), length, unique) : [];
520
- return $ro0();
521
- };
522
- export const assertGuardPanelDomainPanelRecord = (input, errorFactory) => {
523
- const __is = input => {
524
- const $io0 = input => (undefined === input.title || "string" === typeof input.title) && (null !== input.supports && (undefined === input.supports || "string" === typeof input.supports || Array.isArray(input.supports) && input.supports.every(elem => "string" === typeof elem))) && (undefined === input.priority || "number" === typeof input.priority) && (undefined === input.editorPriority || "number" === typeof input.editorPriority) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io1(input.properties)) && (undefined === input.layout || "object" === typeof input.layout && null !== input.layout && false === Array.isArray(input.layout) && $io4(input.layout)) && (null !== input.filter && (undefined === input.filter || "string" === typeof input.filter || "object" === typeof input.filter && null !== input.filter && $io8(input.filter))) && (null !== input.expand && (undefined === input.expand || "string" === typeof input.expand || "object" === typeof input.expand && null !== input.expand && $io8(input.expand)));
525
- const $io1 = input => Object.keys(input).every(key => {
526
- const value = input[key];
527
- if (undefined === value)
528
- return true;
529
- return "object" === typeof value && null !== value && $io2(value);
530
- });
531
- const $io2 = input => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.path || "string" === typeof input.path) && true && (undefined === input.index || "object" === typeof input.index && null !== input.index && $io3(input.index)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf));
532
- const $io3 = input => "string" === typeof input.label && "string" === typeof input.path;
533
- const $io4 = input => null !== input.panel && (undefined === input.panel || "string" === typeof input.panel || (Array.isArray(input.panel) && ($ia0(input.panel) || false) || "object" === typeof input.panel && null !== input.panel && $iu0(input.panel))) && (null !== input.editor && (undefined === input.editor || "string" === typeof input.editor || (Array.isArray(input.editor) && ($ia0(input.editor) || false) || "object" === typeof input.editor && null !== input.editor && $iu0(input.editor))));
534
- const $io5 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
535
- const $io6 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io7(input.widget)));
536
- const $io7 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
537
- const $io8 = input => "number" === typeof input.length && ("object" === typeof input.__context && null !== input.__context && true) && "string" === typeof input.__returnValue && Object.keys(input).every(key => {
538
- if (["length", "__context", "__returnValue"].some(prop => key === prop))
539
- return true;
540
- const value = input[key];
541
- if (undefined === value)
542
- return true;
543
- if ("number" === typeof Number(key))
544
- return "string" === typeof value;
545
- return true;
546
- });
547
- const $iu0 = input => (() => {
548
- if (undefined !== input.type)
549
- return $io5(input);
550
- else if (undefined !== input.property)
551
- return $io6(input);
552
- else
553
- return false;
554
- })();
555
- const $ia0 = input => input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || (Array.isArray(elem) && ($ia0(elem) || false) || "object" === typeof elem && null !== elem && $iu0(elem))));
556
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
557
- };
558
- if (false === __is(input))
559
- ((input, _path, _exceptionable = true) => {
560
- const $guard = __typia.createAssertGuard.guard;
561
- const $join = __typia.createAssertGuard.join;
562
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
563
- path: _path + ".title",
564
- expected: "(string | undefined)",
565
- value: input.title
566
- }, errorFactory)) && ((null !== input.supports || $guard(_exceptionable, {
567
- path: _path + ".supports",
568
- expected: "(Array<string> | string | undefined)",
569
- value: input.supports
570
- }, errorFactory)) && (undefined === input.supports || "string" === typeof input.supports || (Array.isArray(input.supports) || $guard(_exceptionable, {
571
- path: _path + ".supports",
572
- expected: "(Array<string> | string | undefined)",
573
- value: input.supports
574
- }, errorFactory)) && input.supports.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
575
- path: _path + ".supports[" + _index1 + "]",
576
- expected: "string",
577
- value: elem
578
- }, errorFactory)) || $guard(_exceptionable, {
579
- path: _path + ".supports",
580
- expected: "(Array<string> | string | undefined)",
581
- value: input.supports
582
- }, errorFactory))) && (undefined === input.priority || "number" === typeof input.priority || $guard(_exceptionable, {
583
- path: _path + ".priority",
584
- expected: "(number | undefined)",
585
- value: input.priority
586
- }, errorFactory)) && (undefined === input.editorPriority || "number" === typeof input.editorPriority || $guard(_exceptionable, {
587
- path: _path + ".editorPriority",
588
- expected: "(number | undefined)",
589
- value: input.editorPriority
590
- }, errorFactory)) && (undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || $guard(_exceptionable, {
591
- path: _path + ".properties",
592
- expected: "(__type | undefined)",
593
- value: input.properties
594
- }, errorFactory)) && $ao1(input.properties, _path + ".properties", true && _exceptionable) || $guard(_exceptionable, {
595
- path: _path + ".properties",
596
- expected: "(__type | undefined)",
597
- value: input.properties
598
- }, errorFactory)) && (undefined === input.layout || ("object" === typeof input.layout && null !== input.layout && false === Array.isArray(input.layout) || $guard(_exceptionable, {
599
- path: _path + ".layout",
600
- expected: "(__type.o2 | undefined)",
601
- value: input.layout
602
- }, errorFactory)) && $ao4(input.layout, _path + ".layout", true && _exceptionable) || $guard(_exceptionable, {
603
- path: _path + ".layout",
604
- expected: "(__type.o2 | undefined)",
605
- value: input.layout
606
- }, errorFactory)) && ((null !== input.filter || $guard(_exceptionable, {
607
- path: _path + ".filter",
608
- expected: "(String & { __context: object; __returnValue: string; } | string | undefined)",
609
- value: input.filter
610
- }, errorFactory)) && (undefined === input.filter || "string" === typeof input.filter || ("object" === typeof input.filter && null !== input.filter || $guard(_exceptionable, {
611
- path: _path + ".filter",
612
- expected: "(String & { __context: object; __returnValue: string; } | string | undefined)",
613
- value: input.filter
614
- }, errorFactory)) && $ao8(input.filter, _path + ".filter", true && _exceptionable) || $guard(_exceptionable, {
615
- path: _path + ".filter",
616
- expected: "(String & { __context: object; __returnValue: string; } | string | undefined)",
617
- value: input.filter
618
- }, errorFactory))) && ((null !== input.expand || $guard(_exceptionable, {
619
- path: _path + ".expand",
620
- expected: "(String & { __context: object; __returnValue: string; } | string | undefined)",
621
- value: input.expand
622
- }, errorFactory)) && (undefined === input.expand || "string" === typeof input.expand || ("object" === typeof input.expand && null !== input.expand || $guard(_exceptionable, {
623
- path: _path + ".expand",
624
- expected: "(String & { __context: object; __returnValue: string; } | string | undefined)",
625
- value: input.expand
626
- }, errorFactory)) && $ao8(input.expand, _path + ".expand", true && _exceptionable) || $guard(_exceptionable, {
627
- path: _path + ".expand",
628
- expected: "(String & { __context: object; __returnValue: string; } | string | undefined)",
629
- value: input.expand
630
- }, errorFactory)));
631
- const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
632
- const value = input[key];
633
- if (undefined === value)
634
- return true;
635
- return ("object" === typeof value && null !== value || $guard(_exceptionable, {
636
- path: _path + $join(key),
637
- expected: "PanelProperty",
638
- value: value
639
- }, errorFactory)) && $ao2(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
640
- path: _path + $join(key),
641
- expected: "PanelProperty",
642
- value: value
643
- }, errorFactory);
644
- });
645
- const $ao2 = (input, _path, _exceptionable = true) => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type || $guard(_exceptionable, {
646
- path: _path + ".type",
647
- expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\")",
648
- value: input.type
649
- }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
650
- path: _path + ".title",
651
- expected: "(string | undefined)",
652
- value: input.title
653
- }, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
654
- path: _path + ".description",
655
- expected: "(string | undefined)",
656
- value: input.description
657
- }, errorFactory)) && (undefined === input.domain || "string" === typeof input.domain || $guard(_exceptionable, {
658
- path: _path + ".domain",
659
- expected: "(string | undefined)",
660
- value: input.domain
661
- }, errorFactory)) && (undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
662
- path: _path + ".path",
663
- expected: "(string | undefined)",
664
- value: input.path
665
- }, errorFactory)) && true && (undefined === input.index || ("object" === typeof input.index && null !== input.index || $guard(_exceptionable, {
666
- path: _path + ".index",
667
- expected: "(__type.o1 | undefined)",
668
- value: input.index
669
- }, errorFactory)) && $ao3(input.index, _path + ".index", true && _exceptionable) || $guard(_exceptionable, {
670
- path: _path + ".index",
671
- expected: "(__type.o1 | undefined)",
672
- value: input.index
673
- }, errorFactory)) && (undefined === input.required || "boolean" === typeof input.required || $guard(_exceptionable, {
674
- path: _path + ".required",
675
- expected: "(boolean | undefined)",
676
- value: input.required
677
- }, errorFactory)) && (undefined === input.oneOf || Array.isArray(input.oneOf) || $guard(_exceptionable, {
678
- path: _path + ".oneOf",
679
- expected: "(Array<unknown> | undefined)",
680
- value: input.oneOf
681
- }, errorFactory));
682
- const $ao3 = (input, _path, _exceptionable = true) => ("string" === typeof input.label || $guard(_exceptionable, {
683
- path: _path + ".label",
684
- expected: "string",
685
- value: input.label
686
- }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
687
- path: _path + ".path",
688
- expected: "string",
689
- value: input.path
690
- }, errorFactory));
691
- const $ao4 = (input, _path, _exceptionable = true) => (null !== input.panel || $guard(_exceptionable, {
692
- path: _path + ".panel",
693
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
694
- value: input.panel
695
- }, errorFactory)) && (undefined === input.panel || "string" === typeof input.panel || (Array.isArray(input.panel) && ($aa0(input.panel, _path + ".panel", true && _exceptionable) || $guard(_exceptionable, {
696
- path: _path + ".panel",
697
- expected: "Array<PanelLayout>",
698
- value: input.panel
699
- }, errorFactory)) || "object" === typeof input.panel && null !== input.panel && $au0(input.panel, _path + ".panel", true && _exceptionable) || $guard(_exceptionable, {
700
- path: _path + ".panel",
701
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
702
- value: input.panel
703
- }, errorFactory)) || $guard(_exceptionable, {
704
- path: _path + ".panel",
705
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
706
- value: input.panel
707
- }, errorFactory)) && ((null !== input.editor || $guard(_exceptionable, {
708
- path: _path + ".editor",
709
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
710
- value: input.editor
711
- }, errorFactory)) && (undefined === input.editor || "string" === typeof input.editor || (Array.isArray(input.editor) && ($aa0(input.editor, _path + ".editor", true && _exceptionable) || $guard(_exceptionable, {
712
- path: _path + ".editor",
713
- expected: "Array<PanelLayout>",
714
- value: input.editor
715
- }, errorFactory)) || "object" === typeof input.editor && null !== input.editor && $au0(input.editor, _path + ".editor", true && _exceptionable) || $guard(_exceptionable, {
716
- path: _path + ".editor",
717
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
718
- value: input.editor
719
- }, errorFactory)) || $guard(_exceptionable, {
720
- path: _path + ".editor",
721
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
722
- value: input.editor
723
- }, errorFactory)));
724
- const $ao5 = (input, _path, _exceptionable = true) => ("divider" === input.type || $guard(_exceptionable, {
725
- path: _path + ".type",
726
- expected: "\"divider\"",
727
- value: input.type
728
- }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
729
- path: _path + ".title",
730
- expected: "(string | undefined)",
731
- value: input.title
732
- }, errorFactory));
733
- const $ao6 = (input, _path, _exceptionable = true) => ("string" === typeof input.property || $guard(_exceptionable, {
734
- path: _path + ".property",
735
- expected: "string",
736
- value: input.property
737
- }, errorFactory)) && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width || $guard(_exceptionable, {
738
- path: _path + ".width",
739
- expected: "(number | string | undefined)",
740
- value: input.width
741
- }, errorFactory)) && ((null !== input.widget || $guard(_exceptionable, {
742
- path: _path + ".widget",
743
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
744
- value: input.widget
745
- }, errorFactory)) && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || ("object" === typeof input.widget && null !== input.widget || $guard(_exceptionable, {
746
- path: _path + ".widget",
747
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
748
- value: input.widget
749
- }, errorFactory)) && $ao7(input.widget, _path + ".widget", true && _exceptionable) || $guard(_exceptionable, {
750
- path: _path + ".widget",
751
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
752
- value: input.widget
753
- }, errorFactory)));
754
- const $ao7 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
755
- path: _path + ".type",
756
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
757
- value: input.type
758
- }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
759
- path: _path + ".readOnly",
760
- expected: "(boolean | undefined)",
761
- value: input.readOnly
762
- }, errorFactory));
763
- const $ao8 = (input, _path, _exceptionable = true) => ("number" === typeof input.length || $guard(_exceptionable, {
764
- path: _path + ".length",
765
- expected: "number",
766
- value: input.length
767
- }, errorFactory)) && (("object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) || $guard(_exceptionable, {
768
- path: _path + ".__context",
769
- expected: "object",
770
- value: input.__context
771
- }, errorFactory)) && $ao9(input.__context, _path + ".__context", true && _exceptionable) || $guard(_exceptionable, {
772
- path: _path + ".__context",
773
- expected: "object",
774
- value: input.__context
775
- }, errorFactory)) && ("string" === typeof input.__returnValue || $guard(_exceptionable, {
776
- path: _path + ".__returnValue",
777
- expected: "string",
778
- value: input.__returnValue
779
- }, errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
780
- if (["length", "__context", "__returnValue"].some(prop => key === prop))
781
- return true;
782
- const value = input[key];
783
- if (undefined === value)
784
- return true;
785
- if ("number" === typeof Number(key))
786
- return "string" === typeof value || $guard(_exceptionable, {
787
- path: _path + $join(key),
788
- expected: "string",
789
- value: value
790
- }, errorFactory);
791
- return true;
792
- }));
793
- const $ao9 = (input, _path, _exceptionable = true) => true;
794
- const $au0 = (input, _path, _exceptionable = true) => (() => {
795
- if (undefined !== input.type)
796
- return $ao5(input, _path, true && _exceptionable);
797
- else if (undefined !== input.property)
798
- return $ao6(input, _path, true && _exceptionable);
799
- else
800
- return $guard(_exceptionable, {
801
- path: _path,
802
- expected: "(PanelLayoutDivider | PanelLayoutItem)",
803
- value: input
804
- }, errorFactory);
805
- })();
806
- const $aa0 = (input, _path, _exceptionable = true) => input.every((elem, _index2) => (null !== elem || $guard(_exceptionable, {
807
- path: _path + "[" + _index2 + "]",
808
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
809
- value: elem
810
- }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
811
- path: _path + "[" + _index2 + "]",
812
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
813
- value: elem
814
- }, errorFactory)) && ("string" === typeof elem || (Array.isArray(elem) && ($aa0(elem, _path + "[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
815
- path: _path + "[" + _index2 + "]",
816
- expected: "Array<PanelLayout>",
817
- value: elem
818
- }, errorFactory)) || "object" === typeof elem && null !== elem && $au0(elem, _path + "[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
819
- path: _path + "[" + _index2 + "]",
820
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
821
- value: elem
822
- }, errorFactory)) || $guard(_exceptionable, {
823
- path: _path + "[" + _index2 + "]",
824
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
825
- value: elem
826
- }, errorFactory)));
827
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
828
- path: _path + "",
829
- expected: "PanelDomainPanelRecord",
830
- value: input
831
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
832
- path: _path + "",
833
- expected: "PanelDomainPanelRecord",
834
- value: input
835
- }, errorFactory);
836
- })(input, "$input", true);
837
- };
838
- export const stringifyPanelDomainPanelRecord = input => {
839
- const $io1 = input => Object.keys(input).every(key => {
840
- const value = input[key];
841
- if (undefined === value)
842
- return true;
843
- return "object" === typeof value && null !== value && $io2(value);
844
- });
845
- const $io2 = input => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.path || "string" === typeof input.path) && true && (undefined === input.index || "object" === typeof input.index && null !== input.index && $io3(input.index)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf));
846
- const $io3 = input => "string" === typeof input.label && "string" === typeof input.path;
847
- const $io4 = input => null !== input.panel && (undefined === input.panel || "string" === typeof input.panel || (Array.isArray(input.panel) && ($ia0(input.panel) || false) || "object" === typeof input.panel && null !== input.panel && $iu0(input.panel))) && (null !== input.editor && (undefined === input.editor || "string" === typeof input.editor || (Array.isArray(input.editor) && ($ia0(input.editor) || false) || "object" === typeof input.editor && null !== input.editor && $iu0(input.editor))));
848
- const $io5 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
849
- const $io6 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io7(input.widget)));
850
- const $io7 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
851
- const $io8 = input => "number" === typeof input.length && ("object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && $io9(input.__context)) && "string" === typeof input.__returnValue && Object.keys(input).every(key => {
852
- if (["length", "__context", "__returnValue"].some(prop => key === prop))
853
- return true;
854
- const value = input[key];
855
- if (undefined === value)
856
- return true;
857
- if ("number" === typeof Number(key))
858
- return "string" === typeof value;
859
- return true;
860
- });
861
- const $io9 = input => true;
862
- const $iu0 = input => (() => {
863
- if (undefined !== input.type)
864
- return $io5(input);
865
- else if (undefined !== input.property)
866
- return $io6(input);
867
- else
868
- return false;
869
- })();
870
- const $ia0 = input => input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || (Array.isArray(elem) && ($ia0(elem) || false) || "object" === typeof elem && null !== elem && $iu0(elem))));
871
- const $string = __typia.json.createStringify.string;
872
- const $throws = __typia.json.createStringify.throws;
873
- const $tail = __typia.json.createStringify.tail;
874
- const $so0 = input => `{${$tail(`${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}${undefined === input.supports ? "" : `"supports":${undefined !== input.supports ? (() => {
875
- if ("string" === typeof input.supports)
876
- return $string(input.supports);
877
- if (Array.isArray(input.supports))
878
- return `[${input.supports.map(elem => $string(elem)).join(",")}]`;
879
- $throws({
880
- expected: "(Array<string> | string | undefined)",
881
- value: input.supports
882
- });
883
- })() : undefined},`}${undefined === input.priority ? "" : `"priority":${undefined !== input.priority ? input.priority : undefined},`}${undefined === input.editorPriority ? "" : `"editorPriority":${undefined !== input.editorPriority ? input.editorPriority : undefined},`}${undefined === input.properties ? "" : `"properties":${undefined !== input.properties ? $so1(input.properties) : undefined},`}${undefined === input.layout ? "" : `"layout":${undefined !== input.layout ? $so4(input.layout) : undefined},`}${undefined === input.filter ? "" : `"filter":${undefined !== input.filter ? (() => {
884
- if ("string" === typeof input.filter)
885
- return $string(input.filter);
886
- if ("object" === typeof input.filter && null !== input.filter)
887
- return $so8(input.filter);
888
- $throws({
889
- expected: "(String & { __context: object; __returnValue: string; } | string | undefined)",
890
- value: input.filter
891
- });
892
- })() : undefined},`}${undefined === input.expand ? "" : `"expand":${undefined !== input.expand ? (() => {
893
- if ("string" === typeof input.expand)
894
- return $string(input.expand);
895
- if ("object" === typeof input.expand && null !== input.expand)
896
- return $so8(input.expand);
897
- $throws({
898
- expected: "(String & { __context: object; __returnValue: string; } | string | undefined)",
899
- value: input.expand
900
- });
901
- })() : undefined}`}`)}}`;
902
- const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
903
- return ""; return `${JSON.stringify(key)}:${$so2(value)}`; }).filter(str => "" !== str).join(",")}}`;
904
- const $so2 = input => `{${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? $string(input.description) : undefined},`}${undefined === input.domain ? "" : `"domain":${undefined !== input.domain ? $string(input.domain) : undefined},`}${undefined === input.path ? "" : `"path":${undefined !== input.path ? $string(input.path) : undefined},`}${undefined === input.computed || "function" === typeof input.computed ? "" : `"computed":${undefined !== input.computed ? JSON.stringify(input.computed) : undefined},`}${undefined === input.index ? "" : `"index":${undefined !== input.index ? `{"label":${$string(input.index.label)},"path":${$string(input.index.path)}}` : undefined},`}${undefined === input.required ? "" : `"required":${undefined !== input.required ? input.required : undefined},`}${undefined === input.oneOf ? "" : `"oneOf":${undefined !== input.oneOf ? `[${input.oneOf.map(elem => undefined !== elem ? JSON.stringify(elem) : "null").join(",")}]` : undefined},`}"type":${(() => {
905
- if ("string" === typeof input.type)
906
- return $string(input.type);
907
- if ("string" === typeof input.type)
908
- return "\"" + input.type + "\"";
909
- $throws({
910
- expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\")",
911
- value: input.type
912
- });
913
- })()}}`;
914
- const $so4 = input => `{${$tail(`${undefined === input.panel ? "" : `"panel":${undefined !== input.panel ? (() => {
915
- if ("string" === typeof input.panel)
916
- return $string(input.panel);
917
- if (Array.isArray(input.panel))
918
- return $sa0(input.panel);
919
- if ("object" === typeof input.panel && null !== input.panel)
920
- return $su0(input.panel);
921
- $throws({
922
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
923
- value: input.panel
924
- });
925
- })() : undefined},`}${undefined === input.editor ? "" : `"editor":${undefined !== input.editor ? (() => {
926
- if ("string" === typeof input.editor)
927
- return $string(input.editor);
928
- if (Array.isArray(input.editor))
929
- return $sa0(input.editor);
930
- if ("object" === typeof input.editor && null !== input.editor)
931
- return $su0(input.editor);
932
- $throws({
933
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
934
- value: input.editor
935
- });
936
- })() : undefined}`}`)}}`;
937
- const $so5 = input => `{${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}"type":${(() => {
938
- if ("string" === typeof input.type)
939
- return $string(input.type);
940
- if ("string" === typeof input.type)
941
- return "\"" + input.type + "\"";
942
- $throws({
943
- expected: "\"divider\"",
944
- value: input.type
945
- });
946
- })()}}`;
947
- const $so6 = input => `{${undefined === input.width ? "" : `"width":${undefined !== input.width ? (() => {
948
- if ("string" === typeof input.width)
949
- return $string(input.width);
950
- if ("number" === typeof input.width)
951
- return input.width;
952
- $throws({
953
- expected: "(number | string | undefined)",
954
- value: input.width
955
- });
956
- })() : undefined},`}${undefined === input.widget ? "" : `"widget":${undefined !== input.widget ? (() => {
957
- if ("string" === typeof input.widget)
958
- return $string(input.widget);
959
- if ("string" === typeof input.widget)
960
- return "\"" + input.widget + "\"";
961
- if ("object" === typeof input.widget && null !== input.widget)
962
- return $so7(input.widget);
963
- $throws({
964
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
965
- value: input.widget
966
- });
967
- })() : undefined},`}"property":${$string(input.property)}}`;
968
- const $so7 = input => `{${undefined === input.readOnly ? "" : `"readOnly":${undefined !== input.readOnly ? input.readOnly : undefined},`}"type":${(() => {
969
- if ("string" === typeof input.type)
970
- return $string(input.type);
971
- if ("string" === typeof input.type)
972
- return "\"" + input.type + "\"";
973
- $throws({
974
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
975
- value: input.type
976
- });
977
- })()}}`;
978
- const $so8 = input => `{${$tail(`"length":${input.length},"__context":{},"__returnValue":${$string(input.__returnValue)},${Object.entries(input).map(([key, value]) => { if (undefined === value)
979
- return ""; if (["length", "__context", "__returnValue"].some(regular => regular === key))
980
- return ""; if (RegExp(/^[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(key))
981
- return `${JSON.stringify(key)}:${$string(value)}`; return ""; }).filter(str => "" !== str).join(",")}`)}}`;
982
- const $su0 = input => (() => {
983
- if (undefined !== input.type)
984
- return $so5(input);
985
- else if (undefined !== input.property)
986
- return $so6(input);
987
- else
988
- $throws({
989
- expected: "(PanelLayoutDivider | PanelLayoutItem)",
990
- value: input
991
- });
992
- })();
993
- const $sa0 = input => `[${input.map(elem => (() => {
994
- if ("string" === typeof elem)
995
- return $string(elem);
996
- if (Array.isArray(elem))
997
- return $sa0(elem);
998
- if ("object" === typeof elem && null !== elem)
999
- return $su0(elem);
1000
- $throws({
1001
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
1002
- value: elem
1003
- });
1004
- })()).join(",")}]`;
1005
- return $so0(input);
1006
- };
1007
- export const assertStringifyPanelDomainPanelRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
1008
- const __is = input => {
1009
- const $io0 = input => (undefined === input.title || "string" === typeof input.title) && (null !== input.supports && (undefined === input.supports || "string" === typeof input.supports || Array.isArray(input.supports) && input.supports.every(elem => "string" === typeof elem))) && (undefined === input.priority || "number" === typeof input.priority && !Number.isNaN(input.priority)) && (undefined === input.editorPriority || "number" === typeof input.editorPriority && !Number.isNaN(input.editorPriority)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io1(input.properties)) && (undefined === input.layout || "object" === typeof input.layout && null !== input.layout && false === Array.isArray(input.layout) && $io4(input.layout)) && (null !== input.filter && (undefined === input.filter || "string" === typeof input.filter || "object" === typeof input.filter && null !== input.filter && $io8(input.filter))) && (null !== input.expand && (undefined === input.expand || "string" === typeof input.expand || "object" === typeof input.expand && null !== input.expand && $io8(input.expand)));
1010
- const $io1 = input => Object.keys(input).every(key => {
1011
- const value = input[key];
1012
- if (undefined === value)
1013
- return true;
1014
- return "object" === typeof value && null !== value && $io2(value);
1015
- });
1016
- const $io2 = input => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.path || "string" === typeof input.path) && true && (undefined === input.index || "object" === typeof input.index && null !== input.index && $io3(input.index)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf));
1017
- const $io3 = input => "string" === typeof input.label && "string" === typeof input.path;
1018
- const $io4 = input => null !== input.panel && (undefined === input.panel || "string" === typeof input.panel || (Array.isArray(input.panel) && ($ia0(input.panel) || false) || "object" === typeof input.panel && null !== input.panel && $iu0(input.panel))) && (null !== input.editor && (undefined === input.editor || "string" === typeof input.editor || (Array.isArray(input.editor) && ($ia0(input.editor) || false) || "object" === typeof input.editor && null !== input.editor && $iu0(input.editor))));
1019
- const $io5 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
1020
- const $io6 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width && !Number.isNaN(input.width)) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io7(input.widget)));
1021
- const $io7 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
1022
- const $io8 = input => "number" === typeof input.length && !Number.isNaN(input.length) && ("object" === typeof input.__context && null !== input.__context && true) && "string" === typeof input.__returnValue && Object.keys(input).every(key => {
1023
- if (["length", "__context", "__returnValue"].some(prop => key === prop))
1024
- return true;
1025
- const value = input[key];
1026
- if (undefined === value)
1027
- return true;
1028
- if ("number" === typeof Number(key) && !Number.isNaN(Number(key)))
1029
- return "string" === typeof value;
1030
- return true;
1031
- });
1032
- const $iu0 = input => (() => {
1033
- if (undefined !== input.type)
1034
- return $io5(input);
1035
- else if (undefined !== input.property)
1036
- return $io6(input);
1037
- else
1038
- return false;
1039
- })();
1040
- const $ia0 = input => input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || (Array.isArray(elem) && ($ia0(elem) || false) || "object" === typeof elem && null !== elem && $iu0(elem))));
1041
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
1042
- };
1043
- if (false === __is(input))
1044
- ((input, _path, _exceptionable = true) => {
1045
- const $guard = __typia.json.createAssertStringify.guard;
1046
- const $join = __typia.json.createAssertStringify.join;
1047
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
1048
- path: _path + ".title",
1049
- expected: "(string | undefined)",
1050
- value: input.title
1051
- }, errorFactory)) && ((null !== input.supports || $guard(_exceptionable, {
1052
- path: _path + ".supports",
1053
- expected: "(Array<string> | string | undefined)",
1054
- value: input.supports
1055
- }, errorFactory)) && (undefined === input.supports || "string" === typeof input.supports || (Array.isArray(input.supports) || $guard(_exceptionable, {
1056
- path: _path + ".supports",
1057
- expected: "(Array<string> | string | undefined)",
1058
- value: input.supports
1059
- }, errorFactory)) && input.supports.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
1060
- path: _path + ".supports[" + _index1 + "]",
1061
- expected: "string",
1062
- value: elem
1063
- }, errorFactory)) || $guard(_exceptionable, {
1064
- path: _path + ".supports",
1065
- expected: "(Array<string> | string | undefined)",
1066
- value: input.supports
1067
- }, errorFactory))) && (undefined === input.priority || "number" === typeof input.priority && !Number.isNaN(input.priority) || $guard(_exceptionable, {
1068
- path: _path + ".priority",
1069
- expected: "(number | undefined)",
1070
- value: input.priority
1071
- }, errorFactory)) && (undefined === input.editorPriority || "number" === typeof input.editorPriority && !Number.isNaN(input.editorPriority) || $guard(_exceptionable, {
1072
- path: _path + ".editorPriority",
1073
- expected: "(number | undefined)",
1074
- value: input.editorPriority
1075
- }, errorFactory)) && (undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || $guard(_exceptionable, {
1076
- path: _path + ".properties",
1077
- expected: "(__type | undefined)",
1078
- value: input.properties
1079
- }, errorFactory)) && $ao1(input.properties, _path + ".properties", true && _exceptionable) || $guard(_exceptionable, {
1080
- path: _path + ".properties",
1081
- expected: "(__type | undefined)",
1082
- value: input.properties
1083
- }, errorFactory)) && (undefined === input.layout || ("object" === typeof input.layout && null !== input.layout && false === Array.isArray(input.layout) || $guard(_exceptionable, {
1084
- path: _path + ".layout",
1085
- expected: "(__type.o2 | undefined)",
1086
- value: input.layout
1087
- }, errorFactory)) && $ao4(input.layout, _path + ".layout", true && _exceptionable) || $guard(_exceptionable, {
1088
- path: _path + ".layout",
1089
- expected: "(__type.o2 | undefined)",
1090
- value: input.layout
1091
- }, errorFactory)) && ((null !== input.filter || $guard(_exceptionable, {
1092
- path: _path + ".filter",
1093
- expected: "(String & { __context: object; __returnValue: string; } | string | undefined)",
1094
- value: input.filter
1095
- }, errorFactory)) && (undefined === input.filter || "string" === typeof input.filter || ("object" === typeof input.filter && null !== input.filter || $guard(_exceptionable, {
1096
- path: _path + ".filter",
1097
- expected: "(String & { __context: object; __returnValue: string; } | string | undefined)",
1098
- value: input.filter
1099
- }, errorFactory)) && $ao8(input.filter, _path + ".filter", true && _exceptionable) || $guard(_exceptionable, {
1100
- path: _path + ".filter",
1101
- expected: "(String & { __context: object; __returnValue: string; } | string | undefined)",
1102
- value: input.filter
1103
- }, errorFactory))) && ((null !== input.expand || $guard(_exceptionable, {
1104
- path: _path + ".expand",
1105
- expected: "(String & { __context: object; __returnValue: string; } | string | undefined)",
1106
- value: input.expand
1107
- }, errorFactory)) && (undefined === input.expand || "string" === typeof input.expand || ("object" === typeof input.expand && null !== input.expand || $guard(_exceptionable, {
1108
- path: _path + ".expand",
1109
- expected: "(String & { __context: object; __returnValue: string; } | string | undefined)",
1110
- value: input.expand
1111
- }, errorFactory)) && $ao8(input.expand, _path + ".expand", true && _exceptionable) || $guard(_exceptionable, {
1112
- path: _path + ".expand",
1113
- expected: "(String & { __context: object; __returnValue: string; } | string | undefined)",
1114
- value: input.expand
1115
- }, errorFactory)));
1116
- const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
1117
- const value = input[key];
1118
- if (undefined === value)
1119
- return true;
1120
- return ("object" === typeof value && null !== value || $guard(_exceptionable, {
1121
- path: _path + $join(key),
1122
- expected: "PanelProperty",
1123
- value: value
1124
- }, errorFactory)) && $ao2(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
1125
- path: _path + $join(key),
1126
- expected: "PanelProperty",
1127
- value: value
1128
- }, errorFactory);
1129
- });
1130
- const $ao2 = (input, _path, _exceptionable = true) => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type || $guard(_exceptionable, {
1131
- path: _path + ".type",
1132
- expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\")",
1133
- value: input.type
1134
- }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
1135
- path: _path + ".title",
1136
- expected: "(string | undefined)",
1137
- value: input.title
1138
- }, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
1139
- path: _path + ".description",
1140
- expected: "(string | undefined)",
1141
- value: input.description
1142
- }, errorFactory)) && (undefined === input.domain || "string" === typeof input.domain || $guard(_exceptionable, {
1143
- path: _path + ".domain",
1144
- expected: "(string | undefined)",
1145
- value: input.domain
1146
- }, errorFactory)) && (undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
1147
- path: _path + ".path",
1148
- expected: "(string | undefined)",
1149
- value: input.path
1150
- }, errorFactory)) && true && (undefined === input.index || ("object" === typeof input.index && null !== input.index || $guard(_exceptionable, {
1151
- path: _path + ".index",
1152
- expected: "(__type.o1 | undefined)",
1153
- value: input.index
1154
- }, errorFactory)) && $ao3(input.index, _path + ".index", true && _exceptionable) || $guard(_exceptionable, {
1155
- path: _path + ".index",
1156
- expected: "(__type.o1 | undefined)",
1157
- value: input.index
1158
- }, errorFactory)) && (undefined === input.required || "boolean" === typeof input.required || $guard(_exceptionable, {
1159
- path: _path + ".required",
1160
- expected: "(boolean | undefined)",
1161
- value: input.required
1162
- }, errorFactory)) && (undefined === input.oneOf || Array.isArray(input.oneOf) || $guard(_exceptionable, {
1163
- path: _path + ".oneOf",
1164
- expected: "(Array<unknown> | undefined)",
1165
- value: input.oneOf
1166
- }, errorFactory));
1167
- const $ao3 = (input, _path, _exceptionable = true) => ("string" === typeof input.label || $guard(_exceptionable, {
1168
- path: _path + ".label",
1169
- expected: "string",
1170
- value: input.label
1171
- }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1172
- path: _path + ".path",
1173
- expected: "string",
1174
- value: input.path
1175
- }, errorFactory));
1176
- const $ao4 = (input, _path, _exceptionable = true) => (null !== input.panel || $guard(_exceptionable, {
1177
- path: _path + ".panel",
1178
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
1179
- value: input.panel
1180
- }, errorFactory)) && (undefined === input.panel || "string" === typeof input.panel || (Array.isArray(input.panel) && ($aa0(input.panel, _path + ".panel", true && _exceptionable) || $guard(_exceptionable, {
1181
- path: _path + ".panel",
1182
- expected: "Array<PanelLayout>",
1183
- value: input.panel
1184
- }, errorFactory)) || "object" === typeof input.panel && null !== input.panel && $au0(input.panel, _path + ".panel", true && _exceptionable) || $guard(_exceptionable, {
1185
- path: _path + ".panel",
1186
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
1187
- value: input.panel
1188
- }, errorFactory)) || $guard(_exceptionable, {
1189
- path: _path + ".panel",
1190
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
1191
- value: input.panel
1192
- }, errorFactory)) && ((null !== input.editor || $guard(_exceptionable, {
1193
- path: _path + ".editor",
1194
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
1195
- value: input.editor
1196
- }, errorFactory)) && (undefined === input.editor || "string" === typeof input.editor || (Array.isArray(input.editor) && ($aa0(input.editor, _path + ".editor", true && _exceptionable) || $guard(_exceptionable, {
1197
- path: _path + ".editor",
1198
- expected: "Array<PanelLayout>",
1199
- value: input.editor
1200
- }, errorFactory)) || "object" === typeof input.editor && null !== input.editor && $au0(input.editor, _path + ".editor", true && _exceptionable) || $guard(_exceptionable, {
1201
- path: _path + ".editor",
1202
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
1203
- value: input.editor
1204
- }, errorFactory)) || $guard(_exceptionable, {
1205
- path: _path + ".editor",
1206
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
1207
- value: input.editor
1208
- }, errorFactory)));
1209
- const $ao5 = (input, _path, _exceptionable = true) => ("divider" === input.type || $guard(_exceptionable, {
1210
- path: _path + ".type",
1211
- expected: "\"divider\"",
1212
- value: input.type
1213
- }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
1214
- path: _path + ".title",
1215
- expected: "(string | undefined)",
1216
- value: input.title
1217
- }, errorFactory));
1218
- const $ao6 = (input, _path, _exceptionable = true) => ("string" === typeof input.property || $guard(_exceptionable, {
1219
- path: _path + ".property",
1220
- expected: "string",
1221
- value: input.property
1222
- }, errorFactory)) && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width && !Number.isNaN(input.width) || $guard(_exceptionable, {
1223
- path: _path + ".width",
1224
- expected: "(number | string | undefined)",
1225
- value: input.width
1226
- }, errorFactory)) && ((null !== input.widget || $guard(_exceptionable, {
1227
- path: _path + ".widget",
1228
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
1229
- value: input.widget
1230
- }, errorFactory)) && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || ("object" === typeof input.widget && null !== input.widget || $guard(_exceptionable, {
1231
- path: _path + ".widget",
1232
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
1233
- value: input.widget
1234
- }, errorFactory)) && $ao7(input.widget, _path + ".widget", true && _exceptionable) || $guard(_exceptionable, {
1235
- path: _path + ".widget",
1236
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
1237
- value: input.widget
1238
- }, errorFactory)));
1239
- const $ao7 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
1240
- path: _path + ".type",
1241
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
1242
- value: input.type
1243
- }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
1244
- path: _path + ".readOnly",
1245
- expected: "(boolean | undefined)",
1246
- value: input.readOnly
1247
- }, errorFactory));
1248
- const $ao8 = (input, _path, _exceptionable = true) => ("number" === typeof input.length && !Number.isNaN(input.length) || $guard(_exceptionable, {
1249
- path: _path + ".length",
1250
- expected: "number",
1251
- value: input.length
1252
- }, errorFactory)) && (("object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) || $guard(_exceptionable, {
1253
- path: _path + ".__context",
1254
- expected: "object",
1255
- value: input.__context
1256
- }, errorFactory)) && $ao9(input.__context, _path + ".__context", true && _exceptionable) || $guard(_exceptionable, {
1257
- path: _path + ".__context",
1258
- expected: "object",
1259
- value: input.__context
1260
- }, errorFactory)) && ("string" === typeof input.__returnValue || $guard(_exceptionable, {
1261
- path: _path + ".__returnValue",
1262
- expected: "string",
1263
- value: input.__returnValue
1264
- }, errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
1265
- if (["length", "__context", "__returnValue"].some(prop => key === prop))
1266
- return true;
1267
- const value = input[key];
1268
- if (undefined === value)
1269
- return true;
1270
- if ("number" === typeof Number(key) && !Number.isNaN(Number(key)))
1271
- return "string" === typeof value || $guard(_exceptionable, {
1272
- path: _path + $join(key),
1273
- expected: "string",
1274
- value: value
1275
- }, errorFactory);
1276
- return true;
1277
- }));
1278
- const $ao9 = (input, _path, _exceptionable = true) => true;
1279
- const $au0 = (input, _path, _exceptionable = true) => (() => {
1280
- if (undefined !== input.type)
1281
- return $ao5(input, _path, true && _exceptionable);
1282
- else if (undefined !== input.property)
1283
- return $ao6(input, _path, true && _exceptionable);
1284
- else
1285
- return $guard(_exceptionable, {
1286
- path: _path,
1287
- expected: "(PanelLayoutDivider | PanelLayoutItem)",
1288
- value: input
1289
- }, errorFactory);
1290
- })();
1291
- const $aa0 = (input, _path, _exceptionable = true) => input.every((elem, _index2) => (null !== elem || $guard(_exceptionable, {
1292
- path: _path + "[" + _index2 + "]",
1293
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
1294
- value: elem
1295
- }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
1296
- path: _path + "[" + _index2 + "]",
1297
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
1298
- value: elem
1299
- }, errorFactory)) && ("string" === typeof elem || (Array.isArray(elem) && ($aa0(elem, _path + "[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
1300
- path: _path + "[" + _index2 + "]",
1301
- expected: "Array<PanelLayout>",
1302
- value: elem
1303
- }, errorFactory)) || "object" === typeof elem && null !== elem && $au0(elem, _path + "[" + _index2 + "]", true && _exceptionable) || $guard(_exceptionable, {
1304
- path: _path + "[" + _index2 + "]",
1305
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
1306
- value: elem
1307
- }, errorFactory)) || $guard(_exceptionable, {
1308
- path: _path + "[" + _index2 + "]",
1309
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
1310
- value: elem
1311
- }, errorFactory)));
1312
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
1313
- path: _path + "",
1314
- expected: "PanelDomainPanelRecord",
1315
- value: input
1316
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1317
- path: _path + "",
1318
- expected: "PanelDomainPanelRecord",
1319
- value: input
1320
- }, errorFactory);
1321
- })(input, "$input", true);
1322
- return input;
1323
- }; const stringify = input => {
1324
- const $io1 = input => Object.keys(input).every(key => {
1325
- const value = input[key];
1326
- if (undefined === value)
1327
- return true;
1328
- return "object" === typeof value && null !== value && $io2(value);
1329
- });
1330
- const $io2 = input => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.path || "string" === typeof input.path) && true && (undefined === input.index || "object" === typeof input.index && null !== input.index && $io3(input.index)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf));
1331
- const $io3 = input => "string" === typeof input.label && "string" === typeof input.path;
1332
- const $io4 = input => null !== input.panel && (undefined === input.panel || "string" === typeof input.panel || (Array.isArray(input.panel) && ($ia0(input.panel) || false) || "object" === typeof input.panel && null !== input.panel && $iu0(input.panel))) && (null !== input.editor && (undefined === input.editor || "string" === typeof input.editor || (Array.isArray(input.editor) && ($ia0(input.editor) || false) || "object" === typeof input.editor && null !== input.editor && $iu0(input.editor))));
1333
- const $io5 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
1334
- const $io6 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io7(input.widget)));
1335
- const $io7 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
1336
- const $io8 = input => "number" === typeof input.length && ("object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) && $io9(input.__context)) && "string" === typeof input.__returnValue && Object.keys(input).every(key => {
1337
- if (["length", "__context", "__returnValue"].some(prop => key === prop))
1338
- return true;
1339
- const value = input[key];
1340
- if (undefined === value)
1341
- return true;
1342
- if ("number" === typeof Number(key))
1343
- return "string" === typeof value;
1344
- return true;
1345
- });
1346
- const $io9 = input => true;
1347
- const $iu0 = input => (() => {
1348
- if (undefined !== input.type)
1349
- return $io5(input);
1350
- else if (undefined !== input.property)
1351
- return $io6(input);
1352
- else
1353
- return false;
1354
- })();
1355
- const $ia0 = input => input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || (Array.isArray(elem) && ($ia0(elem) || false) || "object" === typeof elem && null !== elem && $iu0(elem))));
1356
- const $string = __typia.json.createAssertStringify.string;
1357
- const $throws = __typia.json.createAssertStringify.throws;
1358
- const $tail = __typia.json.createAssertStringify.tail;
1359
- const $so0 = input => `{${$tail(`${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}${undefined === input.supports ? "" : `"supports":${undefined !== input.supports ? (() => {
1360
- if ("string" === typeof input.supports)
1361
- return $string(input.supports);
1362
- if (Array.isArray(input.supports))
1363
- return `[${input.supports.map(elem => $string(elem)).join(",")}]`;
1364
- $throws({
1365
- expected: "(Array<string> | string | undefined)",
1366
- value: input.supports
1367
- });
1368
- })() : undefined},`}${undefined === input.priority ? "" : `"priority":${undefined !== input.priority ? input.priority : undefined},`}${undefined === input.editorPriority ? "" : `"editorPriority":${undefined !== input.editorPriority ? input.editorPriority : undefined},`}${undefined === input.properties ? "" : `"properties":${undefined !== input.properties ? $so1(input.properties) : undefined},`}${undefined === input.layout ? "" : `"layout":${undefined !== input.layout ? $so4(input.layout) : undefined},`}${undefined === input.filter ? "" : `"filter":${undefined !== input.filter ? (() => {
1369
- if ("string" === typeof input.filter)
1370
- return $string(input.filter);
1371
- if ("object" === typeof input.filter && null !== input.filter)
1372
- return $so8(input.filter);
1373
- $throws({
1374
- expected: "(String & { __context: object; __returnValue: string; } | string | undefined)",
1375
- value: input.filter
1376
- });
1377
- })() : undefined},`}${undefined === input.expand ? "" : `"expand":${undefined !== input.expand ? (() => {
1378
- if ("string" === typeof input.expand)
1379
- return $string(input.expand);
1380
- if ("object" === typeof input.expand && null !== input.expand)
1381
- return $so8(input.expand);
1382
- $throws({
1383
- expected: "(String & { __context: object; __returnValue: string; } | string | undefined)",
1384
- value: input.expand
1385
- });
1386
- })() : undefined}`}`)}}`;
1387
- const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
1388
- return ""; return `${JSON.stringify(key)}:${$so2(value)}`; }).filter(str => "" !== str).join(",")}}`;
1389
- const $so2 = input => `{${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? $string(input.description) : undefined},`}${undefined === input.domain ? "" : `"domain":${undefined !== input.domain ? $string(input.domain) : undefined},`}${undefined === input.path ? "" : `"path":${undefined !== input.path ? $string(input.path) : undefined},`}${undefined === input.computed || "function" === typeof input.computed ? "" : `"computed":${undefined !== input.computed ? JSON.stringify(input.computed) : undefined},`}${undefined === input.index ? "" : `"index":${undefined !== input.index ? `{"label":${$string(input.index.label)},"path":${$string(input.index.path)}}` : undefined},`}${undefined === input.required ? "" : `"required":${undefined !== input.required ? input.required : undefined},`}${undefined === input.oneOf ? "" : `"oneOf":${undefined !== input.oneOf ? `[${input.oneOf.map(elem => undefined !== elem ? JSON.stringify(elem) : "null").join(",")}]` : undefined},`}"type":${(() => {
1390
- if ("string" === typeof input.type)
1391
- return $string(input.type);
1392
- if ("string" === typeof input.type)
1393
- return "\"" + input.type + "\"";
1394
- $throws({
1395
- expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\")",
1396
- value: input.type
1397
- });
1398
- })()}}`;
1399
- const $so4 = input => `{${$tail(`${undefined === input.panel ? "" : `"panel":${undefined !== input.panel ? (() => {
1400
- if ("string" === typeof input.panel)
1401
- return $string(input.panel);
1402
- if (Array.isArray(input.panel))
1403
- return $sa0(input.panel);
1404
- if ("object" === typeof input.panel && null !== input.panel)
1405
- return $su0(input.panel);
1406
- $throws({
1407
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
1408
- value: input.panel
1409
- });
1410
- })() : undefined},`}${undefined === input.editor ? "" : `"editor":${undefined !== input.editor ? (() => {
1411
- if ("string" === typeof input.editor)
1412
- return $string(input.editor);
1413
- if (Array.isArray(input.editor))
1414
- return $sa0(input.editor);
1415
- if ("object" === typeof input.editor && null !== input.editor)
1416
- return $su0(input.editor);
1417
- $throws({
1418
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string | undefined)",
1419
- value: input.editor
1420
- });
1421
- })() : undefined}`}`)}}`;
1422
- const $so5 = input => `{${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}"type":${(() => {
1423
- if ("string" === typeof input.type)
1424
- return $string(input.type);
1425
- if ("string" === typeof input.type)
1426
- return "\"" + input.type + "\"";
1427
- $throws({
1428
- expected: "\"divider\"",
1429
- value: input.type
1430
- });
1431
- })()}}`;
1432
- const $so6 = input => `{${undefined === input.width ? "" : `"width":${undefined !== input.width ? (() => {
1433
- if ("string" === typeof input.width)
1434
- return $string(input.width);
1435
- if ("number" === typeof input.width)
1436
- return input.width;
1437
- $throws({
1438
- expected: "(number | string | undefined)",
1439
- value: input.width
1440
- });
1441
- })() : undefined},`}${undefined === input.widget ? "" : `"widget":${undefined !== input.widget ? (() => {
1442
- if ("string" === typeof input.widget)
1443
- return $string(input.widget);
1444
- if ("string" === typeof input.widget)
1445
- return "\"" + input.widget + "\"";
1446
- if ("object" === typeof input.widget && null !== input.widget)
1447
- return $so7(input.widget);
1448
- $throws({
1449
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
1450
- value: input.widget
1451
- });
1452
- })() : undefined},`}"property":${$string(input.property)}}`;
1453
- const $so7 = input => `{${undefined === input.readOnly ? "" : `"readOnly":${undefined !== input.readOnly ? input.readOnly : undefined},`}"type":${(() => {
1454
- if ("string" === typeof input.type)
1455
- return $string(input.type);
1456
- if ("string" === typeof input.type)
1457
- return "\"" + input.type + "\"";
1458
- $throws({
1459
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
1460
- value: input.type
1461
- });
1462
- })()}}`;
1463
- const $so8 = input => `{${$tail(`"length":${input.length},"__context":{},"__returnValue":${$string(input.__returnValue)},${Object.entries(input).map(([key, value]) => { if (undefined === value)
1464
- return ""; if (["length", "__context", "__returnValue"].some(regular => regular === key))
1465
- return ""; if (RegExp(/^[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(key))
1466
- return `${JSON.stringify(key)}:${$string(value)}`; return ""; }).filter(str => "" !== str).join(",")}`)}}`;
1467
- const $su0 = input => (() => {
1468
- if (undefined !== input.type)
1469
- return $so5(input);
1470
- else if (undefined !== input.property)
1471
- return $so6(input);
1472
- else
1473
- $throws({
1474
- expected: "(PanelLayoutDivider | PanelLayoutItem)",
1475
- value: input
1476
- });
1477
- })();
1478
- const $sa0 = input => `[${input.map(elem => (() => {
1479
- if ("string" === typeof elem)
1480
- return $string(elem);
1481
- if (Array.isArray(elem))
1482
- return $sa0(elem);
1483
- if ("object" === typeof elem && null !== elem)
1484
- return $su0(elem);
1485
- $throws({
1486
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
1487
- value: elem
1488
- });
1489
- })()).join(",")}]`;
1490
- return $so0(input);
1491
- }; return stringify(assert(input, errorFactory)); };
1492
- export const isPanelProperty = input => {
1493
- const $io0 = input => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.path || "string" === typeof input.path) && true && (undefined === input.index || "object" === typeof input.index && null !== input.index && $io1(input.index)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf));
1494
- const $io1 = input => "string" === typeof input.label && "string" === typeof input.path;
1495
- return "object" === typeof input && null !== input && $io0(input);
1496
- };
1497
- export const assertPanelProperty = (input, errorFactory) => {
1498
- const __is = input => {
1499
- const $io0 = input => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.path || "string" === typeof input.path) && true && (undefined === input.index || "object" === typeof input.index && null !== input.index && $io1(input.index)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf));
1500
- const $io1 = input => "string" === typeof input.label && "string" === typeof input.path;
1501
- return "object" === typeof input && null !== input && $io0(input);
1502
- };
1503
- if (false === __is(input))
1504
- ((input, _path, _exceptionable = true) => {
1505
- const $guard = __typia.createAssert.guard;
1506
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type || $guard(_exceptionable, {
1507
- path: _path + ".type",
1508
- expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\")",
1509
- value: input.type
1510
- }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
1511
- path: _path + ".title",
1512
- expected: "(string | undefined)",
1513
- value: input.title
1514
- }, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
1515
- path: _path + ".description",
1516
- expected: "(string | undefined)",
1517
- value: input.description
1518
- }, errorFactory)) && (undefined === input.domain || "string" === typeof input.domain || $guard(_exceptionable, {
1519
- path: _path + ".domain",
1520
- expected: "(string | undefined)",
1521
- value: input.domain
1522
- }, errorFactory)) && (undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
1523
- path: _path + ".path",
1524
- expected: "(string | undefined)",
1525
- value: input.path
1526
- }, errorFactory)) && true && (undefined === input.index || ("object" === typeof input.index && null !== input.index || $guard(_exceptionable, {
1527
- path: _path + ".index",
1528
- expected: "(__type | undefined)",
1529
- value: input.index
1530
- }, errorFactory)) && $ao1(input.index, _path + ".index", true && _exceptionable) || $guard(_exceptionable, {
1531
- path: _path + ".index",
1532
- expected: "(__type | undefined)",
1533
- value: input.index
1534
- }, errorFactory)) && (undefined === input.required || "boolean" === typeof input.required || $guard(_exceptionable, {
1535
- path: _path + ".required",
1536
- expected: "(boolean | undefined)",
1537
- value: input.required
1538
- }, errorFactory)) && (undefined === input.oneOf || Array.isArray(input.oneOf) || $guard(_exceptionable, {
1539
- path: _path + ".oneOf",
1540
- expected: "(Array<unknown> | undefined)",
1541
- value: input.oneOf
1542
- }, errorFactory));
1543
- const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.label || $guard(_exceptionable, {
1544
- path: _path + ".label",
1545
- expected: "string",
1546
- value: input.label
1547
- }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1548
- path: _path + ".path",
1549
- expected: "string",
1550
- value: input.path
1551
- }, errorFactory));
1552
- return ("object" === typeof input && null !== input || $guard(true, {
1553
- path: _path + "",
1554
- expected: "PanelProperty",
1555
- value: input
1556
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1557
- path: _path + "",
1558
- expected: "PanelProperty",
1559
- value: input
1560
- }, errorFactory);
1561
- })(input, "$input", true);
1562
- return input;
1563
- };
1564
- export const randomPanelProperty = generator => {
1565
- const $pick = __typia.createRandom.pick;
1566
- const $generator = __typia.createRandom.generator;
1567
- const $ro0 = (_recursive = false, _depth = 0) => ({
1568
- type: $pick([
1569
- () => "string",
1570
- () => "number",
1571
- () => "boolean",
1572
- () => "object",
1573
- () => "array",
1574
- () => "asset",
1575
- () => "datetime",
1576
- () => "rpc"
1577
- ])(),
1578
- title: $pick([
1579
- () => undefined,
1580
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1581
- ])(),
1582
- description: $pick([
1583
- () => undefined,
1584
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1585
- ])(),
1586
- domain: $pick([
1587
- () => undefined,
1588
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1589
- ])(),
1590
- path: $pick([
1591
- () => undefined,
1592
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1593
- ])(),
1594
- computed: $pick([
1595
- () => "any type used...",
1596
- () => undefined
1597
- ])(),
1598
- index: $pick([
1599
- () => undefined,
1600
- () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
1601
- ])(),
1602
- required: $pick([
1603
- () => undefined,
1604
- () => (generator?.boolean ?? $generator.boolean)()
1605
- ])(),
1606
- oneOf: $pick([
1607
- () => undefined,
1608
- () => (generator?.array ?? $generator.array)(() => "any type used...")
1609
- ])()
1610
- });
1611
- const $ro1 = (_recursive = false, _depth = 0) => ({
1612
- label: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1613
- path: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1614
- });
1615
- return $ro0();
1616
- };
1617
- export const assertGuardPanelProperty = (input, errorFactory) => {
1618
- const __is = input => {
1619
- const $io0 = input => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.path || "string" === typeof input.path) && true && (undefined === input.index || "object" === typeof input.index && null !== input.index && $io1(input.index)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf));
1620
- const $io1 = input => "string" === typeof input.label && "string" === typeof input.path;
1621
- return "object" === typeof input && null !== input && $io0(input);
1622
- };
1623
- if (false === __is(input))
1624
- ((input, _path, _exceptionable = true) => {
1625
- const $guard = __typia.createAssertGuard.guard;
1626
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type || $guard(_exceptionable, {
1627
- path: _path + ".type",
1628
- expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\")",
1629
- value: input.type
1630
- }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
1631
- path: _path + ".title",
1632
- expected: "(string | undefined)",
1633
- value: input.title
1634
- }, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
1635
- path: _path + ".description",
1636
- expected: "(string | undefined)",
1637
- value: input.description
1638
- }, errorFactory)) && (undefined === input.domain || "string" === typeof input.domain || $guard(_exceptionable, {
1639
- path: _path + ".domain",
1640
- expected: "(string | undefined)",
1641
- value: input.domain
1642
- }, errorFactory)) && (undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
1643
- path: _path + ".path",
1644
- expected: "(string | undefined)",
1645
- value: input.path
1646
- }, errorFactory)) && true && (undefined === input.index || ("object" === typeof input.index && null !== input.index || $guard(_exceptionable, {
1647
- path: _path + ".index",
1648
- expected: "(__type | undefined)",
1649
- value: input.index
1650
- }, errorFactory)) && $ao1(input.index, _path + ".index", true && _exceptionable) || $guard(_exceptionable, {
1651
- path: _path + ".index",
1652
- expected: "(__type | undefined)",
1653
- value: input.index
1654
- }, errorFactory)) && (undefined === input.required || "boolean" === typeof input.required || $guard(_exceptionable, {
1655
- path: _path + ".required",
1656
- expected: "(boolean | undefined)",
1657
- value: input.required
1658
- }, errorFactory)) && (undefined === input.oneOf || Array.isArray(input.oneOf) || $guard(_exceptionable, {
1659
- path: _path + ".oneOf",
1660
- expected: "(Array<unknown> | undefined)",
1661
- value: input.oneOf
1662
- }, errorFactory));
1663
- const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.label || $guard(_exceptionable, {
1664
- path: _path + ".label",
1665
- expected: "string",
1666
- value: input.label
1667
- }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1668
- path: _path + ".path",
1669
- expected: "string",
1670
- value: input.path
1671
- }, errorFactory));
1672
- return ("object" === typeof input && null !== input || $guard(true, {
1673
- path: _path + "",
1674
- expected: "PanelProperty",
1675
- value: input
1676
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1677
- path: _path + "",
1678
- expected: "PanelProperty",
1679
- value: input
1680
- }, errorFactory);
1681
- })(input, "$input", true);
1682
- };
1683
- export const stringifyPanelProperty = input => {
1684
- const $io1 = input => "string" === typeof input.label && "string" === typeof input.path;
1685
- const $string = __typia.json.createStringify.string;
1686
- const $throws = __typia.json.createStringify.throws;
1687
- const $so0 = input => `{${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? $string(input.description) : undefined},`}${undefined === input.domain ? "" : `"domain":${undefined !== input.domain ? $string(input.domain) : undefined},`}${undefined === input.path ? "" : `"path":${undefined !== input.path ? $string(input.path) : undefined},`}${undefined === input.computed || "function" === typeof input.computed ? "" : `"computed":${undefined !== input.computed ? JSON.stringify(input.computed) : undefined},`}${undefined === input.index ? "" : `"index":${undefined !== input.index ? `{"label":${$string(input.index.label)},"path":${$string(input.index.path)}}` : undefined},`}${undefined === input.required ? "" : `"required":${undefined !== input.required ? input.required : undefined},`}${undefined === input.oneOf ? "" : `"oneOf":${undefined !== input.oneOf ? `[${input.oneOf.map(elem => undefined !== elem ? JSON.stringify(elem) : "null").join(",")}]` : undefined},`}"type":${(() => {
1688
- if ("string" === typeof input.type)
1689
- return $string(input.type);
1690
- if ("string" === typeof input.type)
1691
- return "\"" + input.type + "\"";
1692
- $throws({
1693
- expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\")",
1694
- value: input.type
1695
- });
1696
- })()}}`;
1697
- return $so0(input);
1698
- };
1699
- export const assertStringifyPanelProperty = (input, errorFactory) => { const assert = (input, errorFactory) => {
1700
- const __is = input => {
1701
- const $io0 = input => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.domain || "string" === typeof input.domain) && (undefined === input.path || "string" === typeof input.path) && true && (undefined === input.index || "object" === typeof input.index && null !== input.index && $io1(input.index)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.oneOf || Array.isArray(input.oneOf));
1702
- const $io1 = input => "string" === typeof input.label && "string" === typeof input.path;
1703
- return "object" === typeof input && null !== input && $io0(input);
1704
- };
1705
- if (false === __is(input))
1706
- ((input, _path, _exceptionable = true) => {
1707
- const $guard = __typia.json.createAssertStringify.guard;
1708
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === input.type || "number" === input.type || "boolean" === input.type || "object" === input.type || "array" === input.type || "asset" === input.type || "datetime" === input.type || "rpc" === input.type || $guard(_exceptionable, {
1709
- path: _path + ".type",
1710
- expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\")",
1711
- value: input.type
1712
- }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
1713
- path: _path + ".title",
1714
- expected: "(string | undefined)",
1715
- value: input.title
1716
- }, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
1717
- path: _path + ".description",
1718
- expected: "(string | undefined)",
1719
- value: input.description
1720
- }, errorFactory)) && (undefined === input.domain || "string" === typeof input.domain || $guard(_exceptionable, {
1721
- path: _path + ".domain",
1722
- expected: "(string | undefined)",
1723
- value: input.domain
1724
- }, errorFactory)) && (undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
1725
- path: _path + ".path",
1726
- expected: "(string | undefined)",
1727
- value: input.path
1728
- }, errorFactory)) && true && (undefined === input.index || ("object" === typeof input.index && null !== input.index || $guard(_exceptionable, {
1729
- path: _path + ".index",
1730
- expected: "(__type | undefined)",
1731
- value: input.index
1732
- }, errorFactory)) && $ao1(input.index, _path + ".index", true && _exceptionable) || $guard(_exceptionable, {
1733
- path: _path + ".index",
1734
- expected: "(__type | undefined)",
1735
- value: input.index
1736
- }, errorFactory)) && (undefined === input.required || "boolean" === typeof input.required || $guard(_exceptionable, {
1737
- path: _path + ".required",
1738
- expected: "(boolean | undefined)",
1739
- value: input.required
1740
- }, errorFactory)) && (undefined === input.oneOf || Array.isArray(input.oneOf) || $guard(_exceptionable, {
1741
- path: _path + ".oneOf",
1742
- expected: "(Array<unknown> | undefined)",
1743
- value: input.oneOf
1744
- }, errorFactory));
1745
- const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.label || $guard(_exceptionable, {
1746
- path: _path + ".label",
1747
- expected: "string",
1748
- value: input.label
1749
- }, errorFactory)) && ("string" === typeof input.path || $guard(_exceptionable, {
1750
- path: _path + ".path",
1751
- expected: "string",
1752
- value: input.path
1753
- }, errorFactory));
1754
- return ("object" === typeof input && null !== input || $guard(true, {
1755
- path: _path + "",
1756
- expected: "PanelProperty",
1757
- value: input
1758
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
1759
- path: _path + "",
1760
- expected: "PanelProperty",
1761
- value: input
1762
- }, errorFactory);
1763
- })(input, "$input", true);
1764
- return input;
1765
- }; const stringify = input => {
1766
- const $io1 = input => "string" === typeof input.label && "string" === typeof input.path;
1767
- const $string = __typia.json.createAssertStringify.string;
1768
- const $throws = __typia.json.createAssertStringify.throws;
1769
- const $so0 = input => `{${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? $string(input.description) : undefined},`}${undefined === input.domain ? "" : `"domain":${undefined !== input.domain ? $string(input.domain) : undefined},`}${undefined === input.path ? "" : `"path":${undefined !== input.path ? $string(input.path) : undefined},`}${undefined === input.computed || "function" === typeof input.computed ? "" : `"computed":${undefined !== input.computed ? JSON.stringify(input.computed) : undefined},`}${undefined === input.index ? "" : `"index":${undefined !== input.index ? `{"label":${$string(input.index.label)},"path":${$string(input.index.path)}}` : undefined},`}${undefined === input.required ? "" : `"required":${undefined !== input.required ? input.required : undefined},`}${undefined === input.oneOf ? "" : `"oneOf":${undefined !== input.oneOf ? `[${input.oneOf.map(elem => undefined !== elem ? JSON.stringify(elem) : "null").join(",")}]` : undefined},`}"type":${(() => {
1770
- if ("string" === typeof input.type)
1771
- return $string(input.type);
1772
- if ("string" === typeof input.type)
1773
- return "\"" + input.type + "\"";
1774
- $throws({
1775
- expected: "(\"array\" | \"asset\" | \"boolean\" | \"datetime\" | \"number\" | \"object\" | \"rpc\" | \"string\")",
1776
- value: input.type
1777
- });
1778
- })()}}`;
1779
- return $so0(input);
1780
- }; return stringify(assert(input, errorFactory)); };
1781
- export const isPanelLayout = input => {
1782
- const $io0 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
1783
- const $io1 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io2(input.widget)));
1784
- const $io2 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
1785
- const $iu0 = input => (() => {
1786
- if (undefined !== input.type)
1787
- return $io0(input);
1788
- else if (undefined !== input.property)
1789
- return $io1(input);
1790
- else
1791
- return false;
1792
- })();
1793
- const $ia0 = input => input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || (Array.isArray(elem) && ($ia0(elem) || false) || "object" === typeof elem && null !== elem && $iu0(elem))));
1794
- return null !== input && undefined !== input && ("string" === typeof input || (Array.isArray(input) && ($ia0(input) || false) || "object" === typeof input && null !== input && $iu0(input)));
1795
- };
1796
- export const assertPanelLayout = (input, errorFactory) => {
1797
- const __is = input => {
1798
- const $io0 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
1799
- const $io1 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io2(input.widget)));
1800
- const $io2 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
1801
- const $iu0 = input => (() => {
1802
- if (undefined !== input.type)
1803
- return $io0(input);
1804
- else if (undefined !== input.property)
1805
- return $io1(input);
1806
- else
1807
- return false;
1808
- })();
1809
- const $ia0 = input => input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || (Array.isArray(elem) && ($ia0(elem) || false) || "object" === typeof elem && null !== elem && $iu0(elem))));
1810
- return null !== input && undefined !== input && ("string" === typeof input || (Array.isArray(input) && ($ia0(input) || false) || "object" === typeof input && null !== input && $iu0(input)));
1811
- };
1812
- if (false === __is(input))
1813
- ((input, _path, _exceptionable = true) => {
1814
- const $guard = __typia.createAssert.guard;
1815
- const $ao0 = (input, _path, _exceptionable = true) => ("divider" === input.type || $guard(_exceptionable, {
1816
- path: _path + ".type",
1817
- expected: "\"divider\"",
1818
- value: input.type
1819
- }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
1820
- path: _path + ".title",
1821
- expected: "(string | undefined)",
1822
- value: input.title
1823
- }, errorFactory));
1824
- const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.property || $guard(_exceptionable, {
1825
- path: _path + ".property",
1826
- expected: "string",
1827
- value: input.property
1828
- }, errorFactory)) && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width || $guard(_exceptionable, {
1829
- path: _path + ".width",
1830
- expected: "(number | string | undefined)",
1831
- value: input.width
1832
- }, errorFactory)) && ((null !== input.widget || $guard(_exceptionable, {
1833
- path: _path + ".widget",
1834
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
1835
- value: input.widget
1836
- }, errorFactory)) && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || ("object" === typeof input.widget && null !== input.widget || $guard(_exceptionable, {
1837
- path: _path + ".widget",
1838
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
1839
- value: input.widget
1840
- }, errorFactory)) && $ao2(input.widget, _path + ".widget", true && _exceptionable) || $guard(_exceptionable, {
1841
- path: _path + ".widget",
1842
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
1843
- value: input.widget
1844
- }, errorFactory)));
1845
- const $ao2 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
1846
- path: _path + ".type",
1847
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
1848
- value: input.type
1849
- }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
1850
- path: _path + ".readOnly",
1851
- expected: "(boolean | undefined)",
1852
- value: input.readOnly
1853
- }, errorFactory));
1854
- const $au0 = (input, _path, _exceptionable = true) => (() => {
1855
- if (undefined !== input.type)
1856
- return $ao0(input, _path, true && _exceptionable);
1857
- else if (undefined !== input.property)
1858
- return $ao1(input, _path, true && _exceptionable);
1859
- else
1860
- return $guard(_exceptionable, {
1861
- path: _path,
1862
- expected: "(PanelLayoutDivider | PanelLayoutItem)",
1863
- value: input
1864
- }, errorFactory);
1865
- })();
1866
- const $aa0 = (input, _path, _exceptionable = true) => input.every((elem, _index1) => (null !== elem || $guard(_exceptionable, {
1867
- path: _path + "[" + _index1 + "]",
1868
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
1869
- value: elem
1870
- }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
1871
- path: _path + "[" + _index1 + "]",
1872
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
1873
- value: elem
1874
- }, errorFactory)) && ("string" === typeof elem || (Array.isArray(elem) && ($aa0(elem, _path + "[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
1875
- path: _path + "[" + _index1 + "]",
1876
- expected: "Array<PanelLayout>",
1877
- value: elem
1878
- }, errorFactory)) || "object" === typeof elem && null !== elem && $au0(elem, _path + "[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
1879
- path: _path + "[" + _index1 + "]",
1880
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
1881
- value: elem
1882
- }, errorFactory)) || $guard(_exceptionable, {
1883
- path: _path + "[" + _index1 + "]",
1884
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
1885
- value: elem
1886
- }, errorFactory)));
1887
- return (null !== input || $guard(true, {
1888
- path: _path + "",
1889
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
1890
- value: input
1891
- }, errorFactory)) && (undefined !== input || $guard(true, {
1892
- path: _path + "",
1893
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
1894
- value: input
1895
- }, errorFactory)) && ("string" === typeof input || (Array.isArray(input) && ($aa0(input, _path + "", true && _exceptionable) || $guard(_exceptionable, {
1896
- path: _path + "",
1897
- expected: "Array<PanelLayout>",
1898
- value: input
1899
- }, errorFactory)) || "object" === typeof input && null !== input && $au0(input, _path + "", true) || $guard(true, {
1900
- path: _path + "",
1901
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
1902
- value: input
1903
- }, errorFactory)) || $guard(true, {
1904
- path: _path + "",
1905
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
1906
- value: input
1907
- }, errorFactory));
1908
- })(input, "$input", true);
1909
- return input;
1910
- };
1911
- export const randomPanelLayout = generator => {
1912
- const $generator = __typia.createRandom.generator;
1913
- const $pick = __typia.createRandom.pick;
1914
- const $ro0 = (_recursive = false, _depth = 0) => ({
1915
- type: "divider",
1916
- title: $pick([
1917
- () => undefined,
1918
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
1919
- ])()
1920
- });
1921
- const $ro1 = (_recursive = false, _depth = 0) => ({
1922
- property: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1923
- width: $pick([
1924
- () => undefined,
1925
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1926
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
1927
- ])(),
1928
- widget: $pick([
1929
- () => undefined,
1930
- () => "default",
1931
- () => "assetTypes",
1932
- () => "assetTags",
1933
- () => "geopoint",
1934
- () => "poster",
1935
- () => "textarea",
1936
- () => "tags",
1937
- () => $ro2(_recursive, _recursive ? 1 + _depth : _depth)
1938
- ])()
1939
- });
1940
- const $ro2 = (_recursive = false, _depth = 0) => ({
1941
- type: $pick([
1942
- () => "default",
1943
- () => "assetTypes",
1944
- () => "assetTags",
1945
- () => "geopoint",
1946
- () => "poster",
1947
- () => "textarea",
1948
- () => "tags"
1949
- ])(),
1950
- readOnly: $pick([
1951
- () => undefined,
1952
- () => (generator?.boolean ?? $generator.boolean)()
1953
- ])()
1954
- });
1955
- const $ra0 = (length, unique, _recursive = true, _depth = 0) => 5 >= _depth ? (generator?.array ?? $generator.array)(() => $pick([
1956
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1957
- () => $ra0(generator?.length ?? $generator.length, false, true, 1 + _depth),
1958
- () => $ro0(true, _recursive ? 1 + _depth : _depth),
1959
- () => $ro1(true, _recursive ? 1 + _depth : _depth)
1960
- ])(), length, unique) : [];
1961
- return $pick([
1962
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
1963
- () => $ra0(generator?.length ?? $generator.length, false, true, 0),
1964
- () => $ro0(),
1965
- () => $ro1()
1966
- ])();
1967
- };
1968
- export const assertGuardPanelLayout = (input, errorFactory) => {
1969
- const __is = input => {
1970
- const $io0 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
1971
- const $io1 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io2(input.widget)));
1972
- const $io2 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
1973
- const $iu0 = input => (() => {
1974
- if (undefined !== input.type)
1975
- return $io0(input);
1976
- else if (undefined !== input.property)
1977
- return $io1(input);
1978
- else
1979
- return false;
1980
- })();
1981
- const $ia0 = input => input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || (Array.isArray(elem) && ($ia0(elem) || false) || "object" === typeof elem && null !== elem && $iu0(elem))));
1982
- return null !== input && undefined !== input && ("string" === typeof input || (Array.isArray(input) && ($ia0(input) || false) || "object" === typeof input && null !== input && $iu0(input)));
1983
- };
1984
- if (false === __is(input))
1985
- ((input, _path, _exceptionable = true) => {
1986
- const $guard = __typia.createAssertGuard.guard;
1987
- const $ao0 = (input, _path, _exceptionable = true) => ("divider" === input.type || $guard(_exceptionable, {
1988
- path: _path + ".type",
1989
- expected: "\"divider\"",
1990
- value: input.type
1991
- }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
1992
- path: _path + ".title",
1993
- expected: "(string | undefined)",
1994
- value: input.title
1995
- }, errorFactory));
1996
- const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.property || $guard(_exceptionable, {
1997
- path: _path + ".property",
1998
- expected: "string",
1999
- value: input.property
2000
- }, errorFactory)) && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width || $guard(_exceptionable, {
2001
- path: _path + ".width",
2002
- expected: "(number | string | undefined)",
2003
- value: input.width
2004
- }, errorFactory)) && ((null !== input.widget || $guard(_exceptionable, {
2005
- path: _path + ".widget",
2006
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2007
- value: input.widget
2008
- }, errorFactory)) && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || ("object" === typeof input.widget && null !== input.widget || $guard(_exceptionable, {
2009
- path: _path + ".widget",
2010
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2011
- value: input.widget
2012
- }, errorFactory)) && $ao2(input.widget, _path + ".widget", true && _exceptionable) || $guard(_exceptionable, {
2013
- path: _path + ".widget",
2014
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2015
- value: input.widget
2016
- }, errorFactory)));
2017
- const $ao2 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
2018
- path: _path + ".type",
2019
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
2020
- value: input.type
2021
- }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
2022
- path: _path + ".readOnly",
2023
- expected: "(boolean | undefined)",
2024
- value: input.readOnly
2025
- }, errorFactory));
2026
- const $au0 = (input, _path, _exceptionable = true) => (() => {
2027
- if (undefined !== input.type)
2028
- return $ao0(input, _path, true && _exceptionable);
2029
- else if (undefined !== input.property)
2030
- return $ao1(input, _path, true && _exceptionable);
2031
- else
2032
- return $guard(_exceptionable, {
2033
- path: _path,
2034
- expected: "(PanelLayoutDivider | PanelLayoutItem)",
2035
- value: input
2036
- }, errorFactory);
2037
- })();
2038
- const $aa0 = (input, _path, _exceptionable = true) => input.every((elem, _index1) => (null !== elem || $guard(_exceptionable, {
2039
- path: _path + "[" + _index1 + "]",
2040
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2041
- value: elem
2042
- }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
2043
- path: _path + "[" + _index1 + "]",
2044
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2045
- value: elem
2046
- }, errorFactory)) && ("string" === typeof elem || (Array.isArray(elem) && ($aa0(elem, _path + "[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
2047
- path: _path + "[" + _index1 + "]",
2048
- expected: "Array<PanelLayout>",
2049
- value: elem
2050
- }, errorFactory)) || "object" === typeof elem && null !== elem && $au0(elem, _path + "[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
2051
- path: _path + "[" + _index1 + "]",
2052
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2053
- value: elem
2054
- }, errorFactory)) || $guard(_exceptionable, {
2055
- path: _path + "[" + _index1 + "]",
2056
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2057
- value: elem
2058
- }, errorFactory)));
2059
- return (null !== input || $guard(true, {
2060
- path: _path + "",
2061
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2062
- value: input
2063
- }, errorFactory)) && (undefined !== input || $guard(true, {
2064
- path: _path + "",
2065
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2066
- value: input
2067
- }, errorFactory)) && ("string" === typeof input || (Array.isArray(input) && ($aa0(input, _path + "", true && _exceptionable) || $guard(_exceptionable, {
2068
- path: _path + "",
2069
- expected: "Array<PanelLayout>",
2070
- value: input
2071
- }, errorFactory)) || "object" === typeof input && null !== input && $au0(input, _path + "", true) || $guard(true, {
2072
- path: _path + "",
2073
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2074
- value: input
2075
- }, errorFactory)) || $guard(true, {
2076
- path: _path + "",
2077
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2078
- value: input
2079
- }, errorFactory));
2080
- })(input, "$input", true);
2081
- };
2082
- export const stringifyPanelLayout = input => {
2083
- const $io0 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
2084
- const $io1 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io2(input.widget)));
2085
- const $io2 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
2086
- const $iu0 = input => (() => {
2087
- if (undefined !== input.type)
2088
- return $io0(input);
2089
- else if (undefined !== input.property)
2090
- return $io1(input);
2091
- else
2092
- return false;
2093
- })();
2094
- const $ia0 = input => input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || (Array.isArray(elem) && ($ia0(elem) || false) || "object" === typeof elem && null !== elem && $iu0(elem))));
2095
- const $string = __typia.json.createStringify.string;
2096
- const $throws = __typia.json.createStringify.throws;
2097
- const $so0 = input => `{${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}"type":${(() => {
2098
- if ("string" === typeof input.type)
2099
- return $string(input.type);
2100
- if ("string" === typeof input.type)
2101
- return "\"" + input.type + "\"";
2102
- $throws({
2103
- expected: "\"divider\"",
2104
- value: input.type
2105
- });
2106
- })()}}`;
2107
- const $so1 = input => `{${undefined === input.width ? "" : `"width":${undefined !== input.width ? (() => {
2108
- if ("string" === typeof input.width)
2109
- return $string(input.width);
2110
- if ("number" === typeof input.width)
2111
- return input.width;
2112
- $throws({
2113
- expected: "(number | string | undefined)",
2114
- value: input.width
2115
- });
2116
- })() : undefined},`}${undefined === input.widget ? "" : `"widget":${undefined !== input.widget ? (() => {
2117
- if ("string" === typeof input.widget)
2118
- return $string(input.widget);
2119
- if ("string" === typeof input.widget)
2120
- return "\"" + input.widget + "\"";
2121
- if ("object" === typeof input.widget && null !== input.widget)
2122
- return $so2(input.widget);
2123
- $throws({
2124
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2125
- value: input.widget
2126
- });
2127
- })() : undefined},`}"property":${$string(input.property)}}`;
2128
- const $so2 = input => `{${undefined === input.readOnly ? "" : `"readOnly":${undefined !== input.readOnly ? input.readOnly : undefined},`}"type":${(() => {
2129
- if ("string" === typeof input.type)
2130
- return $string(input.type);
2131
- if ("string" === typeof input.type)
2132
- return "\"" + input.type + "\"";
2133
- $throws({
2134
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
2135
- value: input.type
2136
- });
2137
- })()}}`;
2138
- const $su0 = input => (() => {
2139
- if (undefined !== input.type)
2140
- return $so0(input);
2141
- else if (undefined !== input.property)
2142
- return $so1(input);
2143
- else
2144
- $throws({
2145
- expected: "(PanelLayoutDivider | PanelLayoutItem)",
2146
- value: input
2147
- });
2148
- })();
2149
- const $sa0 = input => `[${input.map(elem => (() => {
2150
- if ("string" === typeof elem)
2151
- return $string(elem);
2152
- if (Array.isArray(elem))
2153
- return $sa0(elem);
2154
- if ("object" === typeof elem && null !== elem)
2155
- return $su0(elem);
2156
- $throws({
2157
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2158
- value: elem
2159
- });
2160
- })()).join(",")}]`;
2161
- return (() => {
2162
- if ("string" === typeof input)
2163
- return $string(input);
2164
- if (Array.isArray(input))
2165
- return $sa0(input);
2166
- if ("object" === typeof input && null !== input)
2167
- return $su0(input);
2168
- $throws({
2169
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2170
- value: input
2171
- });
2172
- })();
2173
- };
2174
- export const assertStringifyPanelLayout = (input, errorFactory) => { const assert = (input, errorFactory) => {
2175
- const __is = input => {
2176
- const $io0 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
2177
- const $io1 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width && !Number.isNaN(input.width)) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io2(input.widget)));
2178
- const $io2 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
2179
- const $iu0 = input => (() => {
2180
- if (undefined !== input.type)
2181
- return $io0(input);
2182
- else if (undefined !== input.property)
2183
- return $io1(input);
2184
- else
2185
- return false;
2186
- })();
2187
- const $ia0 = input => input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || (Array.isArray(elem) && ($ia0(elem) || false) || "object" === typeof elem && null !== elem && $iu0(elem))));
2188
- return null !== input && undefined !== input && ("string" === typeof input || (Array.isArray(input) && ($ia0(input) || false) || "object" === typeof input && null !== input && $iu0(input)));
2189
- };
2190
- if (false === __is(input))
2191
- ((input, _path, _exceptionable = true) => {
2192
- const $guard = __typia.json.createAssertStringify.guard;
2193
- const $ao0 = (input, _path, _exceptionable = true) => ("divider" === input.type || $guard(_exceptionable, {
2194
- path: _path + ".type",
2195
- expected: "\"divider\"",
2196
- value: input.type
2197
- }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
2198
- path: _path + ".title",
2199
- expected: "(string | undefined)",
2200
- value: input.title
2201
- }, errorFactory));
2202
- const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.property || $guard(_exceptionable, {
2203
- path: _path + ".property",
2204
- expected: "string",
2205
- value: input.property
2206
- }, errorFactory)) && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width && !Number.isNaN(input.width) || $guard(_exceptionable, {
2207
- path: _path + ".width",
2208
- expected: "(number | string | undefined)",
2209
- value: input.width
2210
- }, errorFactory)) && ((null !== input.widget || $guard(_exceptionable, {
2211
- path: _path + ".widget",
2212
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2213
- value: input.widget
2214
- }, errorFactory)) && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || ("object" === typeof input.widget && null !== input.widget || $guard(_exceptionable, {
2215
- path: _path + ".widget",
2216
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2217
- value: input.widget
2218
- }, errorFactory)) && $ao2(input.widget, _path + ".widget", true && _exceptionable) || $guard(_exceptionable, {
2219
- path: _path + ".widget",
2220
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2221
- value: input.widget
2222
- }, errorFactory)));
2223
- const $ao2 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
2224
- path: _path + ".type",
2225
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
2226
- value: input.type
2227
- }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
2228
- path: _path + ".readOnly",
2229
- expected: "(boolean | undefined)",
2230
- value: input.readOnly
2231
- }, errorFactory));
2232
- const $au0 = (input, _path, _exceptionable = true) => (() => {
2233
- if (undefined !== input.type)
2234
- return $ao0(input, _path, true && _exceptionable);
2235
- else if (undefined !== input.property)
2236
- return $ao1(input, _path, true && _exceptionable);
2237
- else
2238
- return $guard(_exceptionable, {
2239
- path: _path,
2240
- expected: "(PanelLayoutDivider | PanelLayoutItem)",
2241
- value: input
2242
- }, errorFactory);
2243
- })();
2244
- const $aa0 = (input, _path, _exceptionable = true) => input.every((elem, _index1) => (null !== elem || $guard(_exceptionable, {
2245
- path: _path + "[" + _index1 + "]",
2246
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2247
- value: elem
2248
- }, errorFactory)) && (undefined !== elem || $guard(_exceptionable, {
2249
- path: _path + "[" + _index1 + "]",
2250
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2251
- value: elem
2252
- }, errorFactory)) && ("string" === typeof elem || (Array.isArray(elem) && ($aa0(elem, _path + "[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
2253
- path: _path + "[" + _index1 + "]",
2254
- expected: "Array<PanelLayout>",
2255
- value: elem
2256
- }, errorFactory)) || "object" === typeof elem && null !== elem && $au0(elem, _path + "[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
2257
- path: _path + "[" + _index1 + "]",
2258
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2259
- value: elem
2260
- }, errorFactory)) || $guard(_exceptionable, {
2261
- path: _path + "[" + _index1 + "]",
2262
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2263
- value: elem
2264
- }, errorFactory)));
2265
- return (null !== input || $guard(true, {
2266
- path: _path + "",
2267
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2268
- value: input
2269
- }, errorFactory)) && (undefined !== input || $guard(true, {
2270
- path: _path + "",
2271
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2272
- value: input
2273
- }, errorFactory)) && ("string" === typeof input || (Array.isArray(input) && ($aa0(input, _path + "", true && _exceptionable) || $guard(_exceptionable, {
2274
- path: _path + "",
2275
- expected: "Array<PanelLayout>",
2276
- value: input
2277
- }, errorFactory)) || "object" === typeof input && null !== input && $au0(input, _path + "", true) || $guard(true, {
2278
- path: _path + "",
2279
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2280
- value: input
2281
- }, errorFactory)) || $guard(true, {
2282
- path: _path + "",
2283
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2284
- value: input
2285
- }, errorFactory));
2286
- })(input, "$input", true);
2287
- return input;
2288
- }; const stringify = input => {
2289
- const $io0 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
2290
- const $io1 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io2(input.widget)));
2291
- const $io2 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
2292
- const $iu0 = input => (() => {
2293
- if (undefined !== input.type)
2294
- return $io0(input);
2295
- else if (undefined !== input.property)
2296
- return $io1(input);
2297
- else
2298
- return false;
2299
- })();
2300
- const $ia0 = input => input.every(elem => null !== elem && undefined !== elem && ("string" === typeof elem || (Array.isArray(elem) && ($ia0(elem) || false) || "object" === typeof elem && null !== elem && $iu0(elem))));
2301
- const $string = __typia.json.createAssertStringify.string;
2302
- const $throws = __typia.json.createAssertStringify.throws;
2303
- const $so0 = input => `{${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}"type":${(() => {
2304
- if ("string" === typeof input.type)
2305
- return $string(input.type);
2306
- if ("string" === typeof input.type)
2307
- return "\"" + input.type + "\"";
2308
- $throws({
2309
- expected: "\"divider\"",
2310
- value: input.type
2311
- });
2312
- })()}}`;
2313
- const $so1 = input => `{${undefined === input.width ? "" : `"width":${undefined !== input.width ? (() => {
2314
- if ("string" === typeof input.width)
2315
- return $string(input.width);
2316
- if ("number" === typeof input.width)
2317
- return input.width;
2318
- $throws({
2319
- expected: "(number | string | undefined)",
2320
- value: input.width
2321
- });
2322
- })() : undefined},`}${undefined === input.widget ? "" : `"widget":${undefined !== input.widget ? (() => {
2323
- if ("string" === typeof input.widget)
2324
- return $string(input.widget);
2325
- if ("string" === typeof input.widget)
2326
- return "\"" + input.widget + "\"";
2327
- if ("object" === typeof input.widget && null !== input.widget)
2328
- return $so2(input.widget);
2329
- $throws({
2330
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2331
- value: input.widget
2332
- });
2333
- })() : undefined},`}"property":${$string(input.property)}}`;
2334
- const $so2 = input => `{${undefined === input.readOnly ? "" : `"readOnly":${undefined !== input.readOnly ? input.readOnly : undefined},`}"type":${(() => {
2335
- if ("string" === typeof input.type)
2336
- return $string(input.type);
2337
- if ("string" === typeof input.type)
2338
- return "\"" + input.type + "\"";
2339
- $throws({
2340
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
2341
- value: input.type
2342
- });
2343
- })()}}`;
2344
- const $su0 = input => (() => {
2345
- if (undefined !== input.type)
2346
- return $so0(input);
2347
- else if (undefined !== input.property)
2348
- return $so1(input);
2349
- else
2350
- $throws({
2351
- expected: "(PanelLayoutDivider | PanelLayoutItem)",
2352
- value: input
2353
- });
2354
- })();
2355
- const $sa0 = input => `[${input.map(elem => (() => {
2356
- if ("string" === typeof elem)
2357
- return $string(elem);
2358
- if (Array.isArray(elem))
2359
- return $sa0(elem);
2360
- if ("object" === typeof elem && null !== elem)
2361
- return $su0(elem);
2362
- $throws({
2363
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2364
- value: elem
2365
- });
2366
- })()).join(",")}]`;
2367
- return (() => {
2368
- if ("string" === typeof input)
2369
- return $string(input);
2370
- if (Array.isArray(input))
2371
- return $sa0(input);
2372
- if ("object" === typeof input && null !== input)
2373
- return $su0(input);
2374
- $throws({
2375
- expected: "(Array<PanelLayout> | PanelLayoutDivider | PanelLayoutItem | string)",
2376
- value: input
2377
- });
2378
- })();
2379
- }; return stringify(assert(input, errorFactory)); };
2380
- export const isPanelLayoutItem = input => {
2381
- const $io0 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io1(input.widget)));
2382
- const $io1 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
2383
- return "object" === typeof input && null !== input && $io0(input);
2384
- };
2385
- export const assertPanelLayoutItem = (input, errorFactory) => {
2386
- const __is = input => {
2387
- const $io0 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io1(input.widget)));
2388
- const $io1 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
2389
- return "object" === typeof input && null !== input && $io0(input);
2390
- };
2391
- if (false === __is(input))
2392
- ((input, _path, _exceptionable = true) => {
2393
- const $guard = __typia.createAssert.guard;
2394
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.property || $guard(_exceptionable, {
2395
- path: _path + ".property",
2396
- expected: "string",
2397
- value: input.property
2398
- }, errorFactory)) && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width || $guard(_exceptionable, {
2399
- path: _path + ".width",
2400
- expected: "(number | string | undefined)",
2401
- value: input.width
2402
- }, errorFactory)) && ((null !== input.widget || $guard(_exceptionable, {
2403
- path: _path + ".widget",
2404
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2405
- value: input.widget
2406
- }, errorFactory)) && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || ("object" === typeof input.widget && null !== input.widget || $guard(_exceptionable, {
2407
- path: _path + ".widget",
2408
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2409
- value: input.widget
2410
- }, errorFactory)) && $ao1(input.widget, _path + ".widget", true && _exceptionable) || $guard(_exceptionable, {
2411
- path: _path + ".widget",
2412
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2413
- value: input.widget
2414
- }, errorFactory)));
2415
- const $ao1 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
2416
- path: _path + ".type",
2417
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
2418
- value: input.type
2419
- }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
2420
- path: _path + ".readOnly",
2421
- expected: "(boolean | undefined)",
2422
- value: input.readOnly
2423
- }, errorFactory));
2424
- return ("object" === typeof input && null !== input || $guard(true, {
2425
- path: _path + "",
2426
- expected: "PanelLayoutItem",
2427
- value: input
2428
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
2429
- path: _path + "",
2430
- expected: "PanelLayoutItem",
2431
- value: input
2432
- }, errorFactory);
2433
- })(input, "$input", true);
2434
- return input;
2435
- };
2436
- export const randomPanelLayoutItem = generator => {
2437
- const $generator = __typia.createRandom.generator;
2438
- const $pick = __typia.createRandom.pick;
2439
- const $ro0 = (_recursive = false, _depth = 0) => ({
2440
- property: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
2441
- width: $pick([
2442
- () => undefined,
2443
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
2444
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
2445
- ])(),
2446
- widget: $pick([
2447
- () => undefined,
2448
- () => "default",
2449
- () => "assetTypes",
2450
- () => "assetTags",
2451
- () => "geopoint",
2452
- () => "poster",
2453
- () => "textarea",
2454
- () => "tags",
2455
- () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
2456
- ])()
2457
- });
2458
- const $ro1 = (_recursive = false, _depth = 0) => ({
2459
- type: $pick([
2460
- () => "default",
2461
- () => "assetTypes",
2462
- () => "assetTags",
2463
- () => "geopoint",
2464
- () => "poster",
2465
- () => "textarea",
2466
- () => "tags"
2467
- ])(),
2468
- readOnly: $pick([
2469
- () => undefined,
2470
- () => (generator?.boolean ?? $generator.boolean)()
2471
- ])()
2472
- });
2473
- return $ro0();
2474
- };
2475
- export const assertGuardPanelLayoutItem = (input, errorFactory) => {
2476
- const __is = input => {
2477
- const $io0 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io1(input.widget)));
2478
- const $io1 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
2479
- return "object" === typeof input && null !== input && $io0(input);
2480
- };
2481
- if (false === __is(input))
2482
- ((input, _path, _exceptionable = true) => {
2483
- const $guard = __typia.createAssertGuard.guard;
2484
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.property || $guard(_exceptionable, {
2485
- path: _path + ".property",
2486
- expected: "string",
2487
- value: input.property
2488
- }, errorFactory)) && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width || $guard(_exceptionable, {
2489
- path: _path + ".width",
2490
- expected: "(number | string | undefined)",
2491
- value: input.width
2492
- }, errorFactory)) && ((null !== input.widget || $guard(_exceptionable, {
2493
- path: _path + ".widget",
2494
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2495
- value: input.widget
2496
- }, errorFactory)) && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || ("object" === typeof input.widget && null !== input.widget || $guard(_exceptionable, {
2497
- path: _path + ".widget",
2498
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2499
- value: input.widget
2500
- }, errorFactory)) && $ao1(input.widget, _path + ".widget", true && _exceptionable) || $guard(_exceptionable, {
2501
- path: _path + ".widget",
2502
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2503
- value: input.widget
2504
- }, errorFactory)));
2505
- const $ao1 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
2506
- path: _path + ".type",
2507
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
2508
- value: input.type
2509
- }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
2510
- path: _path + ".readOnly",
2511
- expected: "(boolean | undefined)",
2512
- value: input.readOnly
2513
- }, errorFactory));
2514
- return ("object" === typeof input && null !== input || $guard(true, {
2515
- path: _path + "",
2516
- expected: "PanelLayoutItem",
2517
- value: input
2518
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
2519
- path: _path + "",
2520
- expected: "PanelLayoutItem",
2521
- value: input
2522
- }, errorFactory);
2523
- })(input, "$input", true);
2524
- };
2525
- export const stringifyPanelLayoutItem = input => {
2526
- const $io1 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
2527
- const $string = __typia.json.createStringify.string;
2528
- const $throws = __typia.json.createStringify.throws;
2529
- const $so0 = input => `{${undefined === input.width ? "" : `"width":${undefined !== input.width ? (() => {
2530
- if ("string" === typeof input.width)
2531
- return $string(input.width);
2532
- if ("number" === typeof input.width)
2533
- return input.width;
2534
- $throws({
2535
- expected: "(number | string | undefined)",
2536
- value: input.width
2537
- });
2538
- })() : undefined},`}${undefined === input.widget ? "" : `"widget":${undefined !== input.widget ? (() => {
2539
- if ("string" === typeof input.widget)
2540
- return $string(input.widget);
2541
- if ("string" === typeof input.widget)
2542
- return "\"" + input.widget + "\"";
2543
- if ("object" === typeof input.widget && null !== input.widget)
2544
- return $so1(input.widget);
2545
- $throws({
2546
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2547
- value: input.widget
2548
- });
2549
- })() : undefined},`}"property":${$string(input.property)}}`;
2550
- const $so1 = input => `{${undefined === input.readOnly ? "" : `"readOnly":${undefined !== input.readOnly ? input.readOnly : undefined},`}"type":${(() => {
2551
- if ("string" === typeof input.type)
2552
- return $string(input.type);
2553
- if ("string" === typeof input.type)
2554
- return "\"" + input.type + "\"";
2555
- $throws({
2556
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
2557
- value: input.type
2558
- });
2559
- })()}}`;
2560
- return $so0(input);
2561
- };
2562
- export const assertStringifyPanelLayoutItem = (input, errorFactory) => { const assert = (input, errorFactory) => {
2563
- const __is = input => {
2564
- const $io0 = input => "string" === typeof input.property && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width && !Number.isNaN(input.width)) && (null !== input.widget && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || "object" === typeof input.widget && null !== input.widget && $io1(input.widget)));
2565
- const $io1 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
2566
- return "object" === typeof input && null !== input && $io0(input);
2567
- };
2568
- if (false === __is(input))
2569
- ((input, _path, _exceptionable = true) => {
2570
- const $guard = __typia.json.createAssertStringify.guard;
2571
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.property || $guard(_exceptionable, {
2572
- path: _path + ".property",
2573
- expected: "string",
2574
- value: input.property
2575
- }, errorFactory)) && (undefined === input.width || "string" === typeof input.width || "number" === typeof input.width && !Number.isNaN(input.width) || $guard(_exceptionable, {
2576
- path: _path + ".width",
2577
- expected: "(number | string | undefined)",
2578
- value: input.width
2579
- }, errorFactory)) && ((null !== input.widget || $guard(_exceptionable, {
2580
- path: _path + ".widget",
2581
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2582
- value: input.widget
2583
- }, errorFactory)) && (undefined === input.widget || "default" === input.widget || "assetTypes" === input.widget || "assetTags" === input.widget || "geopoint" === input.widget || "poster" === input.widget || "textarea" === input.widget || "tags" === input.widget || ("object" === typeof input.widget && null !== input.widget || $guard(_exceptionable, {
2584
- path: _path + ".widget",
2585
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2586
- value: input.widget
2587
- }, errorFactory)) && $ao1(input.widget, _path + ".widget", true && _exceptionable) || $guard(_exceptionable, {
2588
- path: _path + ".widget",
2589
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2590
- value: input.widget
2591
- }, errorFactory)));
2592
- const $ao1 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
2593
- path: _path + ".type",
2594
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
2595
- value: input.type
2596
- }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
2597
- path: _path + ".readOnly",
2598
- expected: "(boolean | undefined)",
2599
- value: input.readOnly
2600
- }, errorFactory));
2601
- return ("object" === typeof input && null !== input || $guard(true, {
2602
- path: _path + "",
2603
- expected: "PanelLayoutItem",
2604
- value: input
2605
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
2606
- path: _path + "",
2607
- expected: "PanelLayoutItem",
2608
- value: input
2609
- }, errorFactory);
2610
- })(input, "$input", true);
2611
- return input;
2612
- }; const stringify = input => {
2613
- const $io1 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
2614
- const $string = __typia.json.createAssertStringify.string;
2615
- const $throws = __typia.json.createAssertStringify.throws;
2616
- const $so0 = input => `{${undefined === input.width ? "" : `"width":${undefined !== input.width ? (() => {
2617
- if ("string" === typeof input.width)
2618
- return $string(input.width);
2619
- if ("number" === typeof input.width)
2620
- return input.width;
2621
- $throws({
2622
- expected: "(number | string | undefined)",
2623
- value: input.width
2624
- });
2625
- })() : undefined},`}${undefined === input.widget ? "" : `"widget":${undefined !== input.widget ? (() => {
2626
- if ("string" === typeof input.widget)
2627
- return $string(input.widget);
2628
- if ("string" === typeof input.widget)
2629
- return "\"" + input.widget + "\"";
2630
- if ("object" === typeof input.widget && null !== input.widget)
2631
- return $so1(input.widget);
2632
- $throws({
2633
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem | undefined)",
2634
- value: input.widget
2635
- });
2636
- })() : undefined},`}"property":${$string(input.property)}}`;
2637
- const $so1 = input => `{${undefined === input.readOnly ? "" : `"readOnly":${undefined !== input.readOnly ? input.readOnly : undefined},`}"type":${(() => {
2638
- if ("string" === typeof input.type)
2639
- return $string(input.type);
2640
- if ("string" === typeof input.type)
2641
- return "\"" + input.type + "\"";
2642
- $throws({
2643
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
2644
- value: input.type
2645
- });
2646
- })()}}`;
2647
- return $so0(input);
2648
- }; return stringify(assert(input, errorFactory)); };
2649
- export const isPanelLayoutDivider = input => {
2650
- const $io0 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
2651
- return "object" === typeof input && null !== input && $io0(input);
2652
- };
2653
- export const assertPanelLayoutDivider = (input, errorFactory) => {
2654
- const __is = input => {
2655
- const $io0 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
2656
- return "object" === typeof input && null !== input && $io0(input);
2657
- };
2658
- if (false === __is(input))
2659
- ((input, _path, _exceptionable = true) => {
2660
- const $guard = __typia.createAssert.guard;
2661
- const $ao0 = (input, _path, _exceptionable = true) => ("divider" === input.type || $guard(_exceptionable, {
2662
- path: _path + ".type",
2663
- expected: "\"divider\"",
2664
- value: input.type
2665
- }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
2666
- path: _path + ".title",
2667
- expected: "(string | undefined)",
2668
- value: input.title
2669
- }, errorFactory));
2670
- return ("object" === typeof input && null !== input || $guard(true, {
2671
- path: _path + "",
2672
- expected: "PanelLayoutDivider",
2673
- value: input
2674
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
2675
- path: _path + "",
2676
- expected: "PanelLayoutDivider",
2677
- value: input
2678
- }, errorFactory);
2679
- })(input, "$input", true);
2680
- return input;
2681
- };
2682
- export const randomPanelLayoutDivider = generator => {
2683
- const $generator = __typia.createRandom.generator;
2684
- const $pick = __typia.createRandom.pick;
2685
- const $ro0 = (_recursive = false, _depth = 0) => ({
2686
- type: "divider",
2687
- title: $pick([
2688
- () => undefined,
2689
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
2690
- ])()
2691
- });
2692
- return $ro0();
2693
- };
2694
- export const assertGuardPanelLayoutDivider = (input, errorFactory) => {
2695
- const __is = input => {
2696
- const $io0 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
2697
- return "object" === typeof input && null !== input && $io0(input);
2698
- };
2699
- if (false === __is(input))
2700
- ((input, _path, _exceptionable = true) => {
2701
- const $guard = __typia.createAssertGuard.guard;
2702
- const $ao0 = (input, _path, _exceptionable = true) => ("divider" === input.type || $guard(_exceptionable, {
2703
- path: _path + ".type",
2704
- expected: "\"divider\"",
2705
- value: input.type
2706
- }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
2707
- path: _path + ".title",
2708
- expected: "(string | undefined)",
2709
- value: input.title
2710
- }, errorFactory));
2711
- return ("object" === typeof input && null !== input || $guard(true, {
2712
- path: _path + "",
2713
- expected: "PanelLayoutDivider",
2714
- value: input
2715
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
2716
- path: _path + "",
2717
- expected: "PanelLayoutDivider",
2718
- value: input
2719
- }, errorFactory);
2720
- })(input, "$input", true);
2721
- };
2722
- export const stringifyPanelLayoutDivider = input => {
2723
- const $string = __typia.json.createStringify.string;
2724
- const $throws = __typia.json.createStringify.throws;
2725
- const $so0 = input => `{${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}"type":${(() => {
2726
- if ("string" === typeof input.type)
2727
- return $string(input.type);
2728
- if ("string" === typeof input.type)
2729
- return "\"" + input.type + "\"";
2730
- $throws({
2731
- expected: "\"divider\"",
2732
- value: input.type
2733
- });
2734
- })()}}`;
2735
- return $so0(input);
2736
- };
2737
- export const assertStringifyPanelLayoutDivider = (input, errorFactory) => { const assert = (input, errorFactory) => {
2738
- const __is = input => {
2739
- const $io0 = input => "divider" === input.type && (undefined === input.title || "string" === typeof input.title);
2740
- return "object" === typeof input && null !== input && $io0(input);
2741
- };
2742
- if (false === __is(input))
2743
- ((input, _path, _exceptionable = true) => {
2744
- const $guard = __typia.json.createAssertStringify.guard;
2745
- const $ao0 = (input, _path, _exceptionable = true) => ("divider" === input.type || $guard(_exceptionable, {
2746
- path: _path + ".type",
2747
- expected: "\"divider\"",
2748
- value: input.type
2749
- }, errorFactory)) && (undefined === input.title || "string" === typeof input.title || $guard(_exceptionable, {
2750
- path: _path + ".title",
2751
- expected: "(string | undefined)",
2752
- value: input.title
2753
- }, errorFactory));
2754
- return ("object" === typeof input && null !== input || $guard(true, {
2755
- path: _path + "",
2756
- expected: "PanelLayoutDivider",
2757
- value: input
2758
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
2759
- path: _path + "",
2760
- expected: "PanelLayoutDivider",
2761
- value: input
2762
- }, errorFactory);
2763
- })(input, "$input", true);
2764
- return input;
2765
- }; const stringify = input => {
2766
- const $string = __typia.json.createAssertStringify.string;
2767
- const $throws = __typia.json.createAssertStringify.throws;
2768
- const $so0 = input => `{${undefined === input.title ? "" : `"title":${undefined !== input.title ? $string(input.title) : undefined},`}"type":${(() => {
2769
- if ("string" === typeof input.type)
2770
- return $string(input.type);
2771
- if ("string" === typeof input.type)
2772
- return "\"" + input.type + "\"";
2773
- $throws({
2774
- expected: "\"divider\"",
2775
- value: input.type
2776
- });
2777
- })()}}`;
2778
- return $so0(input);
2779
- }; return stringify(assert(input, errorFactory)); };
2780
- export const isLayoutWidget = input => {
2781
- const $io0 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
2782
- return null !== input && undefined !== input && ("default" === input || "assetTypes" === input || "assetTags" === input || "geopoint" === input || "poster" === input || "textarea" === input || "tags" === input || "object" === typeof input && null !== input && $io0(input));
2783
- };
2784
- export const assertLayoutWidget = (input, errorFactory) => {
2785
- const __is = input => {
2786
- const $io0 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
2787
- return null !== input && undefined !== input && ("default" === input || "assetTypes" === input || "assetTags" === input || "geopoint" === input || "poster" === input || "textarea" === input || "tags" === input || "object" === typeof input && null !== input && $io0(input));
2788
- };
2789
- if (false === __is(input))
2790
- ((input, _path, _exceptionable = true) => {
2791
- const $guard = __typia.createAssert.guard;
2792
- const $ao0 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
2793
- path: _path + ".type",
2794
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
2795
- value: input.type
2796
- }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
2797
- path: _path + ".readOnly",
2798
- expected: "(boolean | undefined)",
2799
- value: input.readOnly
2800
- }, errorFactory));
2801
- return (null !== input || $guard(true, {
2802
- path: _path + "",
2803
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem)",
2804
- value: input
2805
- }, errorFactory)) && (undefined !== input || $guard(true, {
2806
- path: _path + "",
2807
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem)",
2808
- value: input
2809
- }, errorFactory)) && ("default" === input || "assetTypes" === input || "assetTags" === input || "geopoint" === input || "poster" === input || "textarea" === input || "tags" === input || ("object" === typeof input && null !== input || $guard(true, {
2810
- path: _path + "",
2811
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem)",
2812
- value: input
2813
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
2814
- path: _path + "",
2815
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem)",
2816
- value: input
2817
- }, errorFactory));
2818
- })(input, "$input", true);
2819
- return input;
2820
- };
2821
- export const randomLayoutWidget = generator => {
2822
- const $pick = __typia.createRandom.pick;
2823
- const $generator = __typia.createRandom.generator;
2824
- const $ro0 = (_recursive = false, _depth = 0) => ({
2825
- type: $pick([
2826
- () => "default",
2827
- () => "assetTypes",
2828
- () => "assetTags",
2829
- () => "geopoint",
2830
- () => "poster",
2831
- () => "textarea",
2832
- () => "tags"
2833
- ])(),
2834
- readOnly: $pick([
2835
- () => undefined,
2836
- () => (generator?.boolean ?? $generator.boolean)()
2837
- ])()
2838
- });
2839
- return $pick([
2840
- () => "default",
2841
- () => "assetTypes",
2842
- () => "assetTags",
2843
- () => "geopoint",
2844
- () => "poster",
2845
- () => "textarea",
2846
- () => "tags",
2847
- () => $ro0()
2848
- ])();
2849
- };
2850
- export const assertGuardLayoutWidget = (input, errorFactory) => {
2851
- const __is = input => {
2852
- const $io0 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
2853
- return null !== input && undefined !== input && ("default" === input || "assetTypes" === input || "assetTags" === input || "geopoint" === input || "poster" === input || "textarea" === input || "tags" === input || "object" === typeof input && null !== input && $io0(input));
2854
- };
2855
- if (false === __is(input))
2856
- ((input, _path, _exceptionable = true) => {
2857
- const $guard = __typia.createAssertGuard.guard;
2858
- const $ao0 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
2859
- path: _path + ".type",
2860
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
2861
- value: input.type
2862
- }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
2863
- path: _path + ".readOnly",
2864
- expected: "(boolean | undefined)",
2865
- value: input.readOnly
2866
- }, errorFactory));
2867
- return (null !== input || $guard(true, {
2868
- path: _path + "",
2869
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem)",
2870
- value: input
2871
- }, errorFactory)) && (undefined !== input || $guard(true, {
2872
- path: _path + "",
2873
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem)",
2874
- value: input
2875
- }, errorFactory)) && ("default" === input || "assetTypes" === input || "assetTags" === input || "geopoint" === input || "poster" === input || "textarea" === input || "tags" === input || ("object" === typeof input && null !== input || $guard(true, {
2876
- path: _path + "",
2877
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem)",
2878
- value: input
2879
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
2880
- path: _path + "",
2881
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem)",
2882
- value: input
2883
- }, errorFactory));
2884
- })(input, "$input", true);
2885
- };
2886
- export const stringifyLayoutWidget = input => {
2887
- const $string = __typia.json.createStringify.string;
2888
- const $throws = __typia.json.createStringify.throws;
2889
- const $so0 = input => `{${undefined === input.readOnly ? "" : `"readOnly":${undefined !== input.readOnly ? input.readOnly : undefined},`}"type":${(() => {
2890
- if ("string" === typeof input.type)
2891
- return $string(input.type);
2892
- if ("string" === typeof input.type)
2893
- return "\"" + input.type + "\"";
2894
- $throws({
2895
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
2896
- value: input.type
2897
- });
2898
- })()}}`;
2899
- return (() => {
2900
- if ("string" === typeof input)
2901
- return $string(input);
2902
- if ("string" === typeof input)
2903
- return "\"" + input + "\"";
2904
- if ("object" === typeof input && null !== input)
2905
- return $so0(input);
2906
- $throws({
2907
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem)",
2908
- value: input
2909
- });
2910
- })();
2911
- };
2912
- export const assertStringifyLayoutWidget = (input, errorFactory) => { const assert = (input, errorFactory) => {
2913
- const __is = input => {
2914
- const $io0 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
2915
- return null !== input && undefined !== input && ("default" === input || "assetTypes" === input || "assetTags" === input || "geopoint" === input || "poster" === input || "textarea" === input || "tags" === input || "object" === typeof input && null !== input && $io0(input));
2916
- };
2917
- if (false === __is(input))
2918
- ((input, _path, _exceptionable = true) => {
2919
- const $guard = __typia.json.createAssertStringify.guard;
2920
- const $ao0 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
2921
- path: _path + ".type",
2922
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
2923
- value: input.type
2924
- }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
2925
- path: _path + ".readOnly",
2926
- expected: "(boolean | undefined)",
2927
- value: input.readOnly
2928
- }, errorFactory));
2929
- return (null !== input || $guard(true, {
2930
- path: _path + "",
2931
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem)",
2932
- value: input
2933
- }, errorFactory)) && (undefined !== input || $guard(true, {
2934
- path: _path + "",
2935
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem)",
2936
- value: input
2937
- }, errorFactory)) && ("default" === input || "assetTypes" === input || "assetTags" === input || "geopoint" === input || "poster" === input || "textarea" === input || "tags" === input || ("object" === typeof input && null !== input || $guard(true, {
2938
- path: _path + "",
2939
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem)",
2940
- value: input
2941
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
2942
- path: _path + "",
2943
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem)",
2944
- value: input
2945
- }, errorFactory));
2946
- })(input, "$input", true);
2947
- return input;
2948
- }; const stringify = input => {
2949
- const $string = __typia.json.createAssertStringify.string;
2950
- const $throws = __typia.json.createAssertStringify.throws;
2951
- const $so0 = input => `{${undefined === input.readOnly ? "" : `"readOnly":${undefined !== input.readOnly ? input.readOnly : undefined},`}"type":${(() => {
2952
- if ("string" === typeof input.type)
2953
- return $string(input.type);
2954
- if ("string" === typeof input.type)
2955
- return "\"" + input.type + "\"";
2956
- $throws({
2957
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
2958
- value: input.type
2959
- });
2960
- })()}}`;
2961
- return (() => {
2962
- if ("string" === typeof input)
2963
- return $string(input);
2964
- if ("string" === typeof input)
2965
- return "\"" + input + "\"";
2966
- if ("object" === typeof input && null !== input)
2967
- return $so0(input);
2968
- $throws({
2969
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\" | WidgetItem)",
2970
- value: input
2971
- });
2972
- })();
2973
- }; return stringify(assert(input, errorFactory)); };
2974
- export const isWidgetType = input => {
2975
- return "default" === input || "assetTypes" === input || "assetTags" === input || "geopoint" === input || "poster" === input || "textarea" === input || "tags" === input;
2976
- };
2977
- export const assertWidgetType = (input, errorFactory) => {
2978
- const __is = input => {
2979
- return "default" === input || "assetTypes" === input || "assetTags" === input || "geopoint" === input || "poster" === input || "textarea" === input || "tags" === input;
2980
- };
2981
- if (false === __is(input))
2982
- ((input, _path, _exceptionable = true) => {
2983
- const $guard = __typia.createAssert.guard;
2984
- return "default" === input || "assetTypes" === input || "assetTags" === input || "geopoint" === input || "poster" === input || "textarea" === input || "tags" === input || $guard(true, {
2985
- path: _path + "",
2986
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
2987
- value: input
2988
- }, errorFactory);
2989
- })(input, "$input", true);
2990
- return input;
2991
- };
2992
- export const randomWidgetType = generator => {
2993
- const $pick = __typia.createRandom.pick;
2994
- return $pick([
2995
- () => "default",
2996
- () => "assetTypes",
2997
- () => "assetTags",
2998
- () => "geopoint",
2999
- () => "poster",
3000
- () => "textarea",
3001
- () => "tags"
3002
- ])();
3003
- };
3004
- export const assertGuardWidgetType = (input, errorFactory) => {
3005
- const __is = input => {
3006
- return "default" === input || "assetTypes" === input || "assetTags" === input || "geopoint" === input || "poster" === input || "textarea" === input || "tags" === input;
3007
- };
3008
- if (false === __is(input))
3009
- ((input, _path, _exceptionable = true) => {
3010
- const $guard = __typia.createAssertGuard.guard;
3011
- return "default" === input || "assetTypes" === input || "assetTags" === input || "geopoint" === input || "poster" === input || "textarea" === input || "tags" === input || $guard(true, {
3012
- path: _path + "",
3013
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
3014
- value: input
3015
- }, errorFactory);
3016
- })(input, "$input", true);
3017
- };
3018
- export const stringifyWidgetType = input => {
3019
- const $string = __typia.json.createStringify.string;
3020
- const $throws = __typia.json.createStringify.throws;
3021
- return (() => {
3022
- if ("string" === typeof input)
3023
- return $string(input);
3024
- if ("string" === typeof input)
3025
- return "\"" + input + "\"";
3026
- $throws({
3027
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
3028
- value: input
3029
- });
3030
- })();
3031
- };
3032
- export const assertStringifyWidgetType = (input, errorFactory) => { const assert = (input, errorFactory) => {
3033
- const __is = input => {
3034
- return "default" === input || "assetTypes" === input || "assetTags" === input || "geopoint" === input || "poster" === input || "textarea" === input || "tags" === input;
3035
- };
3036
- if (false === __is(input))
3037
- ((input, _path, _exceptionable = true) => {
3038
- const $guard = __typia.json.createAssertStringify.guard;
3039
- return "default" === input || "assetTypes" === input || "assetTags" === input || "geopoint" === input || "poster" === input || "textarea" === input || "tags" === input || $guard(true, {
3040
- path: _path + "",
3041
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
3042
- value: input
3043
- }, errorFactory);
3044
- })(input, "$input", true);
3045
- return input;
3046
- }; const stringify = input => {
3047
- const $string = __typia.json.createAssertStringify.string;
3048
- const $throws = __typia.json.createAssertStringify.throws;
3049
- return (() => {
3050
- if ("string" === typeof input)
3051
- return $string(input);
3052
- if ("string" === typeof input)
3053
- return "\"" + input + "\"";
3054
- $throws({
3055
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
3056
- value: input
3057
- });
3058
- })();
3059
- }; return stringify(assert(input, errorFactory)); };
3060
- export const isWidgetItem = input => {
3061
- const $io0 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
3062
- return "object" === typeof input && null !== input && $io0(input);
3063
- };
3064
- export const assertWidgetItem = (input, errorFactory) => {
3065
- const __is = input => {
3066
- const $io0 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
3067
- return "object" === typeof input && null !== input && $io0(input);
3068
- };
3069
- if (false === __is(input))
3070
- ((input, _path, _exceptionable = true) => {
3071
- const $guard = __typia.createAssert.guard;
3072
- const $ao0 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
3073
- path: _path + ".type",
3074
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
3075
- value: input.type
3076
- }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
3077
- path: _path + ".readOnly",
3078
- expected: "(boolean | undefined)",
3079
- value: input.readOnly
3080
- }, errorFactory));
3081
- return ("object" === typeof input && null !== input || $guard(true, {
3082
- path: _path + "",
3083
- expected: "WidgetItem",
3084
- value: input
3085
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
3086
- path: _path + "",
3087
- expected: "WidgetItem",
3088
- value: input
3089
- }, errorFactory);
3090
- })(input, "$input", true);
3091
- return input;
3092
- };
3093
- export const randomWidgetItem = generator => {
3094
- const $pick = __typia.createRandom.pick;
3095
- const $generator = __typia.createRandom.generator;
3096
- const $ro0 = (_recursive = false, _depth = 0) => ({
3097
- type: $pick([
3098
- () => "default",
3099
- () => "assetTypes",
3100
- () => "assetTags",
3101
- () => "geopoint",
3102
- () => "poster",
3103
- () => "textarea",
3104
- () => "tags"
3105
- ])(),
3106
- readOnly: $pick([
3107
- () => undefined,
3108
- () => (generator?.boolean ?? $generator.boolean)()
3109
- ])()
3110
- });
3111
- return $ro0();
3112
- };
3113
- export const assertGuardWidgetItem = (input, errorFactory) => {
3114
- const __is = input => {
3115
- const $io0 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
3116
- return "object" === typeof input && null !== input && $io0(input);
3117
- };
3118
- if (false === __is(input))
3119
- ((input, _path, _exceptionable = true) => {
3120
- const $guard = __typia.createAssertGuard.guard;
3121
- const $ao0 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
3122
- path: _path + ".type",
3123
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
3124
- value: input.type
3125
- }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
3126
- path: _path + ".readOnly",
3127
- expected: "(boolean | undefined)",
3128
- value: input.readOnly
3129
- }, errorFactory));
3130
- return ("object" === typeof input && null !== input || $guard(true, {
3131
- path: _path + "",
3132
- expected: "WidgetItem",
3133
- value: input
3134
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
3135
- path: _path + "",
3136
- expected: "WidgetItem",
3137
- value: input
3138
- }, errorFactory);
3139
- })(input, "$input", true);
3140
- };
3141
- export const stringifyWidgetItem = input => {
3142
- const $string = __typia.json.createStringify.string;
3143
- const $throws = __typia.json.createStringify.throws;
3144
- const $so0 = input => `{${undefined === input.readOnly ? "" : `"readOnly":${undefined !== input.readOnly ? input.readOnly : undefined},`}"type":${(() => {
3145
- if ("string" === typeof input.type)
3146
- return $string(input.type);
3147
- if ("string" === typeof input.type)
3148
- return "\"" + input.type + "\"";
3149
- $throws({
3150
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
3151
- value: input.type
3152
- });
3153
- })()}}`;
3154
- return $so0(input);
3155
- };
3156
- export const assertStringifyWidgetItem = (input, errorFactory) => { const assert = (input, errorFactory) => {
3157
- const __is = input => {
3158
- const $io0 = input => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type) && (undefined === input.readOnly || "boolean" === typeof input.readOnly);
3159
- return "object" === typeof input && null !== input && $io0(input);
3160
- };
3161
- if (false === __is(input))
3162
- ((input, _path, _exceptionable = true) => {
3163
- const $guard = __typia.json.createAssertStringify.guard;
3164
- const $ao0 = (input, _path, _exceptionable = true) => ("default" === input.type || "assetTypes" === input.type || "assetTags" === input.type || "geopoint" === input.type || "poster" === input.type || "textarea" === input.type || "tags" === input.type || $guard(_exceptionable, {
3165
- path: _path + ".type",
3166
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
3167
- value: input.type
3168
- }, errorFactory)) && (undefined === input.readOnly || "boolean" === typeof input.readOnly || $guard(_exceptionable, {
3169
- path: _path + ".readOnly",
3170
- expected: "(boolean | undefined)",
3171
- value: input.readOnly
3172
- }, errorFactory));
3173
- return ("object" === typeof input && null !== input || $guard(true, {
3174
- path: _path + "",
3175
- expected: "WidgetItem",
3176
- value: input
3177
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
3178
- path: _path + "",
3179
- expected: "WidgetItem",
3180
- value: input
3181
- }, errorFactory);
3182
- })(input, "$input", true);
3183
- return input;
3184
- }; const stringify = input => {
3185
- const $string = __typia.json.createAssertStringify.string;
3186
- const $throws = __typia.json.createAssertStringify.throws;
3187
- const $so0 = input => `{${undefined === input.readOnly ? "" : `"readOnly":${undefined !== input.readOnly ? input.readOnly : undefined},`}"type":${(() => {
3188
- if ("string" === typeof input.type)
3189
- return $string(input.type);
3190
- if ("string" === typeof input.type)
3191
- return "\"" + input.type + "\"";
3192
- $throws({
3193
- expected: "(\"assetTags\" | \"assetTypes\" | \"default\" | \"geopoint\" | \"poster\" | \"tags\" | \"textarea\")",
3194
- value: input.type
3195
- });
3196
- })()}}`;
3197
- return $so0(input);
3198
- }; return stringify(assert(input, errorFactory)); };