@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,715 +0,0 @@
1
- import __typia from "typia";
2
- export const isUserNotificationStatusDomainRecord = input => {
3
- const $io0 = input => (undefined === input.assignee || "object" === typeof input.assignee && null !== input.assignee && false === Array.isArray(input.assignee) && $io1(input.assignee)) && (undefined === input.published || "object" === typeof input.published && null !== input.published && false === Array.isArray(input.published) && $io2(input.published)) && (undefined === input.comment || "object" === typeof input.comment && null !== input.comment && false === Array.isArray(input.comment) && $io3(input.comment));
4
- const $io1 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
5
- const $io2 = input => undefined === input.value || true === input.value;
6
- const $io3 = input => null !== input.value && (undefined === input.value || true === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem));
7
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
8
- };
9
- export const assertUserNotificationStatusDomainRecord = (input, errorFactory) => {
10
- const __is = input => {
11
- const $io0 = input => (undefined === input.assignee || "object" === typeof input.assignee && null !== input.assignee && false === Array.isArray(input.assignee) && $io1(input.assignee)) && (undefined === input.published || "object" === typeof input.published && null !== input.published && false === Array.isArray(input.published) && $io2(input.published)) && (undefined === input.comment || "object" === typeof input.comment && null !== input.comment && false === Array.isArray(input.comment) && $io3(input.comment));
12
- const $io1 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
13
- const $io2 = input => undefined === input.value || true === input.value;
14
- const $io3 = input => null !== input.value && (undefined === input.value || true === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem));
15
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
16
- };
17
- if (false === __is(input))
18
- ((input, _path, _exceptionable = true) => {
19
- const $guard = __typia.createAssert.guard;
20
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.assignee || ("object" === typeof input.assignee && null !== input.assignee && false === Array.isArray(input.assignee) || $guard(_exceptionable, {
21
- path: _path + ".assignee",
22
- expected: "(UserNotificationStatusAssignee | undefined)",
23
- value: input.assignee
24
- }, errorFactory)) && $ao1(input.assignee, _path + ".assignee", true && _exceptionable) || $guard(_exceptionable, {
25
- path: _path + ".assignee",
26
- expected: "(UserNotificationStatusAssignee | undefined)",
27
- value: input.assignee
28
- }, errorFactory)) && (undefined === input.published || ("object" === typeof input.published && null !== input.published && false === Array.isArray(input.published) || $guard(_exceptionable, {
29
- path: _path + ".published",
30
- expected: "(UserNotificationStatusPublished | undefined)",
31
- value: input.published
32
- }, errorFactory)) && $ao2(input.published, _path + ".published", true && _exceptionable) || $guard(_exceptionable, {
33
- path: _path + ".published",
34
- expected: "(UserNotificationStatusPublished | undefined)",
35
- value: input.published
36
- }, errorFactory)) && (undefined === input.comment || ("object" === typeof input.comment && null !== input.comment && false === Array.isArray(input.comment) || $guard(_exceptionable, {
37
- path: _path + ".comment",
38
- expected: "(UserNotificationStatusComment | undefined)",
39
- value: input.comment
40
- }, errorFactory)) && $ao3(input.comment, _path + ".comment", true && _exceptionable) || $guard(_exceptionable, {
41
- path: _path + ".comment",
42
- expected: "(UserNotificationStatusComment | undefined)",
43
- value: input.comment
44
- }, errorFactory));
45
- const $ao1 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
46
- path: _path + ".value",
47
- expected: "(Array<string> | undefined)",
48
- value: input.value
49
- }, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
50
- path: _path + ".value[" + _index1 + "]",
51
- expected: "string",
52
- value: elem
53
- }, errorFactory)) || $guard(_exceptionable, {
54
- path: _path + ".value",
55
- expected: "(Array<string> | undefined)",
56
- value: input.value
57
- }, errorFactory);
58
- const $ao2 = (input, _path, _exceptionable = true) => undefined === input.value || true === input.value || $guard(_exceptionable, {
59
- path: _path + ".value",
60
- expected: "(true | undefined)",
61
- value: input.value
62
- }, errorFactory);
63
- const $ao3 = (input, _path, _exceptionable = true) => (null !== input.value || $guard(_exceptionable, {
64
- path: _path + ".value",
65
- expected: "(Array<string> | true | undefined)",
66
- value: input.value
67
- }, errorFactory)) && (undefined === input.value || true === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
68
- path: _path + ".value",
69
- expected: "(Array<string> | true | undefined)",
70
- value: input.value
71
- }, errorFactory)) && input.value.every((elem, _index2) => "string" === typeof elem || $guard(_exceptionable, {
72
- path: _path + ".value[" + _index2 + "]",
73
- expected: "string",
74
- value: elem
75
- }, errorFactory)) || $guard(_exceptionable, {
76
- path: _path + ".value",
77
- expected: "(Array<string> | true | undefined)",
78
- value: input.value
79
- }, errorFactory));
80
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
81
- path: _path + "",
82
- expected: "UserNotificationStatusDomainRecord",
83
- value: input
84
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
85
- path: _path + "",
86
- expected: "UserNotificationStatusDomainRecord",
87
- value: input
88
- }, errorFactory);
89
- })(input, "$input", true);
90
- return input;
91
- };
92
- export const randomUserNotificationStatusDomainRecord = generator => {
93
- const $pick = __typia.createRandom.pick;
94
- const $generator = __typia.createRandom.generator;
95
- const $ro0 = (_recursive = false, _depth = 0) => ({
96
- assignee: $pick([
97
- () => undefined,
98
- () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
99
- ])(),
100
- published: $pick([
101
- () => undefined,
102
- () => $ro2(_recursive, _recursive ? 1 + _depth : _depth)
103
- ])(),
104
- comment: $pick([
105
- () => undefined,
106
- () => $ro3(_recursive, _recursive ? 1 + _depth : _depth)
107
- ])()
108
- });
109
- const $ro1 = (_recursive = false, _depth = 0) => ({
110
- value: $pick([
111
- () => undefined,
112
- () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
113
- ])()
114
- });
115
- const $ro2 = (_recursive = false, _depth = 0) => ({
116
- value: $pick([
117
- () => undefined,
118
- () => true
119
- ])()
120
- });
121
- const $ro3 = (_recursive = false, _depth = 0) => ({
122
- value: $pick([
123
- () => undefined,
124
- () => true,
125
- () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
126
- ])()
127
- });
128
- return $ro0();
129
- };
130
- export const assertGuardUserNotificationStatusDomainRecord = (input, errorFactory) => {
131
- const __is = input => {
132
- const $io0 = input => (undefined === input.assignee || "object" === typeof input.assignee && null !== input.assignee && false === Array.isArray(input.assignee) && $io1(input.assignee)) && (undefined === input.published || "object" === typeof input.published && null !== input.published && false === Array.isArray(input.published) && $io2(input.published)) && (undefined === input.comment || "object" === typeof input.comment && null !== input.comment && false === Array.isArray(input.comment) && $io3(input.comment));
133
- const $io1 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
134
- const $io2 = input => undefined === input.value || true === input.value;
135
- const $io3 = input => null !== input.value && (undefined === input.value || true === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem));
136
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
137
- };
138
- if (false === __is(input))
139
- ((input, _path, _exceptionable = true) => {
140
- const $guard = __typia.createAssertGuard.guard;
141
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.assignee || ("object" === typeof input.assignee && null !== input.assignee && false === Array.isArray(input.assignee) || $guard(_exceptionable, {
142
- path: _path + ".assignee",
143
- expected: "(UserNotificationStatusAssignee | undefined)",
144
- value: input.assignee
145
- }, errorFactory)) && $ao1(input.assignee, _path + ".assignee", true && _exceptionable) || $guard(_exceptionable, {
146
- path: _path + ".assignee",
147
- expected: "(UserNotificationStatusAssignee | undefined)",
148
- value: input.assignee
149
- }, errorFactory)) && (undefined === input.published || ("object" === typeof input.published && null !== input.published && false === Array.isArray(input.published) || $guard(_exceptionable, {
150
- path: _path + ".published",
151
- expected: "(UserNotificationStatusPublished | undefined)",
152
- value: input.published
153
- }, errorFactory)) && $ao2(input.published, _path + ".published", true && _exceptionable) || $guard(_exceptionable, {
154
- path: _path + ".published",
155
- expected: "(UserNotificationStatusPublished | undefined)",
156
- value: input.published
157
- }, errorFactory)) && (undefined === input.comment || ("object" === typeof input.comment && null !== input.comment && false === Array.isArray(input.comment) || $guard(_exceptionable, {
158
- path: _path + ".comment",
159
- expected: "(UserNotificationStatusComment | undefined)",
160
- value: input.comment
161
- }, errorFactory)) && $ao3(input.comment, _path + ".comment", true && _exceptionable) || $guard(_exceptionable, {
162
- path: _path + ".comment",
163
- expected: "(UserNotificationStatusComment | undefined)",
164
- value: input.comment
165
- }, errorFactory));
166
- const $ao1 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
167
- path: _path + ".value",
168
- expected: "(Array<string> | undefined)",
169
- value: input.value
170
- }, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
171
- path: _path + ".value[" + _index1 + "]",
172
- expected: "string",
173
- value: elem
174
- }, errorFactory)) || $guard(_exceptionable, {
175
- path: _path + ".value",
176
- expected: "(Array<string> | undefined)",
177
- value: input.value
178
- }, errorFactory);
179
- const $ao2 = (input, _path, _exceptionable = true) => undefined === input.value || true === input.value || $guard(_exceptionable, {
180
- path: _path + ".value",
181
- expected: "(true | undefined)",
182
- value: input.value
183
- }, errorFactory);
184
- const $ao3 = (input, _path, _exceptionable = true) => (null !== input.value || $guard(_exceptionable, {
185
- path: _path + ".value",
186
- expected: "(Array<string> | true | undefined)",
187
- value: input.value
188
- }, errorFactory)) && (undefined === input.value || true === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
189
- path: _path + ".value",
190
- expected: "(Array<string> | true | undefined)",
191
- value: input.value
192
- }, errorFactory)) && input.value.every((elem, _index2) => "string" === typeof elem || $guard(_exceptionable, {
193
- path: _path + ".value[" + _index2 + "]",
194
- expected: "string",
195
- value: elem
196
- }, errorFactory)) || $guard(_exceptionable, {
197
- path: _path + ".value",
198
- expected: "(Array<string> | true | undefined)",
199
- value: input.value
200
- }, errorFactory));
201
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
202
- path: _path + "",
203
- expected: "UserNotificationStatusDomainRecord",
204
- value: input
205
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
206
- path: _path + "",
207
- expected: "UserNotificationStatusDomainRecord",
208
- value: input
209
- }, errorFactory);
210
- })(input, "$input", true);
211
- };
212
- export const stringifyUserNotificationStatusDomainRecord = input => {
213
- const $io1 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
214
- const $io2 = input => undefined === input.value || true === input.value;
215
- const $io3 = input => null !== input.value && (undefined === input.value || true === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem));
216
- const $tail = __typia.json.createStringify.tail;
217
- const $string = __typia.json.createStringify.string;
218
- const $throws = __typia.json.createStringify.throws;
219
- const $so0 = input => `{${$tail(`${undefined === input.assignee ? "" : `"assignee":${undefined !== input.assignee ? $so1(input.assignee) : undefined},`}${undefined === input.published ? "" : `"published":${undefined !== input.published ? $so2(input.published) : undefined},`}${undefined === input.comment ? "" : `"comment":${undefined !== input.comment ? $so3(input.comment) : undefined}`}`)}}`;
220
- const $so1 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
221
- const $so2 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? input.value : undefined}`}`)}}`;
222
- const $so3 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? (() => {
223
- if ("boolean" === typeof input.value)
224
- return input.value;
225
- if (Array.isArray(input.value))
226
- return `[${input.value.map(elem => $string(elem)).join(",")}]`;
227
- $throws({
228
- expected: "(Array<string> | true | undefined)",
229
- value: input.value
230
- });
231
- })() : undefined}`}`)}}`;
232
- return $so0(input);
233
- };
234
- export const assertStringifyUserNotificationStatusDomainRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
235
- const __is = input => {
236
- const $io0 = input => (undefined === input.assignee || "object" === typeof input.assignee && null !== input.assignee && false === Array.isArray(input.assignee) && $io1(input.assignee)) && (undefined === input.published || "object" === typeof input.published && null !== input.published && false === Array.isArray(input.published) && $io2(input.published)) && (undefined === input.comment || "object" === typeof input.comment && null !== input.comment && false === Array.isArray(input.comment) && $io3(input.comment));
237
- const $io1 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
238
- const $io2 = input => undefined === input.value || true === input.value;
239
- const $io3 = input => null !== input.value && (undefined === input.value || true === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem));
240
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
241
- };
242
- if (false === __is(input))
243
- ((input, _path, _exceptionable = true) => {
244
- const $guard = __typia.json.createAssertStringify.guard;
245
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.assignee || ("object" === typeof input.assignee && null !== input.assignee && false === Array.isArray(input.assignee) || $guard(_exceptionable, {
246
- path: _path + ".assignee",
247
- expected: "(UserNotificationStatusAssignee | undefined)",
248
- value: input.assignee
249
- }, errorFactory)) && $ao1(input.assignee, _path + ".assignee", true && _exceptionable) || $guard(_exceptionable, {
250
- path: _path + ".assignee",
251
- expected: "(UserNotificationStatusAssignee | undefined)",
252
- value: input.assignee
253
- }, errorFactory)) && (undefined === input.published || ("object" === typeof input.published && null !== input.published && false === Array.isArray(input.published) || $guard(_exceptionable, {
254
- path: _path + ".published",
255
- expected: "(UserNotificationStatusPublished | undefined)",
256
- value: input.published
257
- }, errorFactory)) && $ao2(input.published, _path + ".published", true && _exceptionable) || $guard(_exceptionable, {
258
- path: _path + ".published",
259
- expected: "(UserNotificationStatusPublished | undefined)",
260
- value: input.published
261
- }, errorFactory)) && (undefined === input.comment || ("object" === typeof input.comment && null !== input.comment && false === Array.isArray(input.comment) || $guard(_exceptionable, {
262
- path: _path + ".comment",
263
- expected: "(UserNotificationStatusComment | undefined)",
264
- value: input.comment
265
- }, errorFactory)) && $ao3(input.comment, _path + ".comment", true && _exceptionable) || $guard(_exceptionable, {
266
- path: _path + ".comment",
267
- expected: "(UserNotificationStatusComment | undefined)",
268
- value: input.comment
269
- }, errorFactory));
270
- const $ao1 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
271
- path: _path + ".value",
272
- expected: "(Array<string> | undefined)",
273
- value: input.value
274
- }, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
275
- path: _path + ".value[" + _index1 + "]",
276
- expected: "string",
277
- value: elem
278
- }, errorFactory)) || $guard(_exceptionable, {
279
- path: _path + ".value",
280
- expected: "(Array<string> | undefined)",
281
- value: input.value
282
- }, errorFactory);
283
- const $ao2 = (input, _path, _exceptionable = true) => undefined === input.value || true === input.value || $guard(_exceptionable, {
284
- path: _path + ".value",
285
- expected: "(true | undefined)",
286
- value: input.value
287
- }, errorFactory);
288
- const $ao3 = (input, _path, _exceptionable = true) => (null !== input.value || $guard(_exceptionable, {
289
- path: _path + ".value",
290
- expected: "(Array<string> | true | undefined)",
291
- value: input.value
292
- }, errorFactory)) && (undefined === input.value || true === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
293
- path: _path + ".value",
294
- expected: "(Array<string> | true | undefined)",
295
- value: input.value
296
- }, errorFactory)) && input.value.every((elem, _index2) => "string" === typeof elem || $guard(_exceptionable, {
297
- path: _path + ".value[" + _index2 + "]",
298
- expected: "string",
299
- value: elem
300
- }, errorFactory)) || $guard(_exceptionable, {
301
- path: _path + ".value",
302
- expected: "(Array<string> | true | undefined)",
303
- value: input.value
304
- }, errorFactory));
305
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
306
- path: _path + "",
307
- expected: "UserNotificationStatusDomainRecord",
308
- value: input
309
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
310
- path: _path + "",
311
- expected: "UserNotificationStatusDomainRecord",
312
- value: input
313
- }, errorFactory);
314
- })(input, "$input", true);
315
- return input;
316
- }; const stringify = input => {
317
- const $io1 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
318
- const $io2 = input => undefined === input.value || true === input.value;
319
- const $io3 = input => null !== input.value && (undefined === input.value || true === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem));
320
- const $tail = __typia.json.createAssertStringify.tail;
321
- const $string = __typia.json.createAssertStringify.string;
322
- const $throws = __typia.json.createAssertStringify.throws;
323
- const $so0 = input => `{${$tail(`${undefined === input.assignee ? "" : `"assignee":${undefined !== input.assignee ? $so1(input.assignee) : undefined},`}${undefined === input.published ? "" : `"published":${undefined !== input.published ? $so2(input.published) : undefined},`}${undefined === input.comment ? "" : `"comment":${undefined !== input.comment ? $so3(input.comment) : undefined}`}`)}}`;
324
- const $so1 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
325
- const $so2 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? input.value : undefined}`}`)}}`;
326
- const $so3 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? (() => {
327
- if ("boolean" === typeof input.value)
328
- return input.value;
329
- if (Array.isArray(input.value))
330
- return `[${input.value.map(elem => $string(elem)).join(",")}]`;
331
- $throws({
332
- expected: "(Array<string> | true | undefined)",
333
- value: input.value
334
- });
335
- })() : undefined}`}`)}}`;
336
- return $so0(input);
337
- }; return stringify(assert(input, errorFactory)); };
338
- export const isUserNotificationStatusAssignee = input => {
339
- const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
340
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
341
- };
342
- export const assertUserNotificationStatusAssignee = (input, errorFactory) => {
343
- const __is = input => {
344
- const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
345
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
346
- };
347
- if (false === __is(input))
348
- ((input, _path, _exceptionable = true) => {
349
- const $guard = __typia.createAssert.guard;
350
- const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
351
- path: _path + ".value",
352
- expected: "(Array<string> | undefined)",
353
- value: input.value
354
- }, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
355
- path: _path + ".value[" + _index1 + "]",
356
- expected: "string",
357
- value: elem
358
- }, errorFactory)) || $guard(_exceptionable, {
359
- path: _path + ".value",
360
- expected: "(Array<string> | undefined)",
361
- value: input.value
362
- }, errorFactory);
363
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
364
- path: _path + "",
365
- expected: "UserNotificationStatusAssignee",
366
- value: input
367
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
368
- path: _path + "",
369
- expected: "UserNotificationStatusAssignee",
370
- value: input
371
- }, errorFactory);
372
- })(input, "$input", true);
373
- return input;
374
- };
375
- export const randomUserNotificationStatusAssignee = generator => {
376
- const $generator = __typia.createRandom.generator;
377
- const $pick = __typia.createRandom.pick;
378
- const $ro0 = (_recursive = false, _depth = 0) => ({
379
- value: $pick([
380
- () => undefined,
381
- () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
382
- ])()
383
- });
384
- return $ro0();
385
- };
386
- export const assertGuardUserNotificationStatusAssignee = (input, errorFactory) => {
387
- const __is = input => {
388
- const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
389
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
390
- };
391
- if (false === __is(input))
392
- ((input, _path, _exceptionable = true) => {
393
- const $guard = __typia.createAssertGuard.guard;
394
- const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
395
- path: _path + ".value",
396
- expected: "(Array<string> | undefined)",
397
- value: input.value
398
- }, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
399
- path: _path + ".value[" + _index1 + "]",
400
- expected: "string",
401
- value: elem
402
- }, errorFactory)) || $guard(_exceptionable, {
403
- path: _path + ".value",
404
- expected: "(Array<string> | undefined)",
405
- value: input.value
406
- }, errorFactory);
407
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
408
- path: _path + "",
409
- expected: "UserNotificationStatusAssignee",
410
- value: input
411
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
412
- path: _path + "",
413
- expected: "UserNotificationStatusAssignee",
414
- value: input
415
- }, errorFactory);
416
- })(input, "$input", true);
417
- };
418
- export const stringifyUserNotificationStatusAssignee = input => {
419
- const $string = __typia.json.createStringify.string;
420
- const $tail = __typia.json.createStringify.tail;
421
- const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
422
- return $so0(input);
423
- };
424
- export const assertStringifyUserNotificationStatusAssignee = (input, errorFactory) => { const assert = (input, errorFactory) => {
425
- const __is = input => {
426
- const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
427
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
428
- };
429
- if (false === __is(input))
430
- ((input, _path, _exceptionable = true) => {
431
- const $guard = __typia.json.createAssertStringify.guard;
432
- const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
433
- path: _path + ".value",
434
- expected: "(Array<string> | undefined)",
435
- value: input.value
436
- }, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
437
- path: _path + ".value[" + _index1 + "]",
438
- expected: "string",
439
- value: elem
440
- }, errorFactory)) || $guard(_exceptionable, {
441
- path: _path + ".value",
442
- expected: "(Array<string> | undefined)",
443
- value: input.value
444
- }, errorFactory);
445
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
446
- path: _path + "",
447
- expected: "UserNotificationStatusAssignee",
448
- value: input
449
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
450
- path: _path + "",
451
- expected: "UserNotificationStatusAssignee",
452
- value: input
453
- }, errorFactory);
454
- })(input, "$input", true);
455
- return input;
456
- }; const stringify = input => {
457
- const $string = __typia.json.createAssertStringify.string;
458
- const $tail = __typia.json.createAssertStringify.tail;
459
- const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
460
- return $so0(input);
461
- }; return stringify(assert(input, errorFactory)); };
462
- export const isUserNotificationStatusComment = input => {
463
- const $io0 = input => null !== input.value && (undefined === input.value || true === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem));
464
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
465
- };
466
- export const assertUserNotificationStatusComment = (input, errorFactory) => {
467
- const __is = input => {
468
- const $io0 = input => null !== input.value && (undefined === input.value || true === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem));
469
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
470
- };
471
- if (false === __is(input))
472
- ((input, _path, _exceptionable = true) => {
473
- const $guard = __typia.createAssert.guard;
474
- const $ao0 = (input, _path, _exceptionable = true) => (null !== input.value || $guard(_exceptionable, {
475
- path: _path + ".value",
476
- expected: "(Array<string> | true | undefined)",
477
- value: input.value
478
- }, errorFactory)) && (undefined === input.value || true === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
479
- path: _path + ".value",
480
- expected: "(Array<string> | true | undefined)",
481
- value: input.value
482
- }, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
483
- path: _path + ".value[" + _index1 + "]",
484
- expected: "string",
485
- value: elem
486
- }, errorFactory)) || $guard(_exceptionable, {
487
- path: _path + ".value",
488
- expected: "(Array<string> | true | undefined)",
489
- value: input.value
490
- }, errorFactory));
491
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
492
- path: _path + "",
493
- expected: "UserNotificationStatusComment",
494
- value: input
495
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
496
- path: _path + "",
497
- expected: "UserNotificationStatusComment",
498
- value: input
499
- }, errorFactory);
500
- })(input, "$input", true);
501
- return input;
502
- };
503
- export const randomUserNotificationStatusComment = generator => {
504
- const $generator = __typia.createRandom.generator;
505
- const $pick = __typia.createRandom.pick;
506
- const $ro0 = (_recursive = false, _depth = 0) => ({
507
- value: $pick([
508
- () => undefined,
509
- () => true,
510
- () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
511
- ])()
512
- });
513
- return $ro0();
514
- };
515
- export const assertGuardUserNotificationStatusComment = (input, errorFactory) => {
516
- const __is = input => {
517
- const $io0 = input => null !== input.value && (undefined === input.value || true === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem));
518
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
519
- };
520
- if (false === __is(input))
521
- ((input, _path, _exceptionable = true) => {
522
- const $guard = __typia.createAssertGuard.guard;
523
- const $ao0 = (input, _path, _exceptionable = true) => (null !== input.value || $guard(_exceptionable, {
524
- path: _path + ".value",
525
- expected: "(Array<string> | true | undefined)",
526
- value: input.value
527
- }, errorFactory)) && (undefined === input.value || true === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
528
- path: _path + ".value",
529
- expected: "(Array<string> | true | undefined)",
530
- value: input.value
531
- }, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
532
- path: _path + ".value[" + _index1 + "]",
533
- expected: "string",
534
- value: elem
535
- }, errorFactory)) || $guard(_exceptionable, {
536
- path: _path + ".value",
537
- expected: "(Array<string> | true | undefined)",
538
- value: input.value
539
- }, errorFactory));
540
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
541
- path: _path + "",
542
- expected: "UserNotificationStatusComment",
543
- value: input
544
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
545
- path: _path + "",
546
- expected: "UserNotificationStatusComment",
547
- value: input
548
- }, errorFactory);
549
- })(input, "$input", true);
550
- };
551
- export const stringifyUserNotificationStatusComment = input => {
552
- const $string = __typia.json.createStringify.string;
553
- const $throws = __typia.json.createStringify.throws;
554
- const $tail = __typia.json.createStringify.tail;
555
- const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? (() => {
556
- if ("boolean" === typeof input.value)
557
- return input.value;
558
- if (Array.isArray(input.value))
559
- return `[${input.value.map(elem => $string(elem)).join(",")}]`;
560
- $throws({
561
- expected: "(Array<string> | true | undefined)",
562
- value: input.value
563
- });
564
- })() : undefined}`}`)}}`;
565
- return $so0(input);
566
- };
567
- export const assertStringifyUserNotificationStatusComment = (input, errorFactory) => { const assert = (input, errorFactory) => {
568
- const __is = input => {
569
- const $io0 = input => null !== input.value && (undefined === input.value || true === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem));
570
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
571
- };
572
- if (false === __is(input))
573
- ((input, _path, _exceptionable = true) => {
574
- const $guard = __typia.json.createAssertStringify.guard;
575
- const $ao0 = (input, _path, _exceptionable = true) => (null !== input.value || $guard(_exceptionable, {
576
- path: _path + ".value",
577
- expected: "(Array<string> | true | undefined)",
578
- value: input.value
579
- }, errorFactory)) && (undefined === input.value || true === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
580
- path: _path + ".value",
581
- expected: "(Array<string> | true | undefined)",
582
- value: input.value
583
- }, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
584
- path: _path + ".value[" + _index1 + "]",
585
- expected: "string",
586
- value: elem
587
- }, errorFactory)) || $guard(_exceptionable, {
588
- path: _path + ".value",
589
- expected: "(Array<string> | true | undefined)",
590
- value: input.value
591
- }, errorFactory));
592
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
593
- path: _path + "",
594
- expected: "UserNotificationStatusComment",
595
- value: input
596
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
597
- path: _path + "",
598
- expected: "UserNotificationStatusComment",
599
- value: input
600
- }, errorFactory);
601
- })(input, "$input", true);
602
- return input;
603
- }; const stringify = input => {
604
- const $string = __typia.json.createAssertStringify.string;
605
- const $throws = __typia.json.createAssertStringify.throws;
606
- const $tail = __typia.json.createAssertStringify.tail;
607
- const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? (() => {
608
- if ("boolean" === typeof input.value)
609
- return input.value;
610
- if (Array.isArray(input.value))
611
- return `[${input.value.map(elem => $string(elem)).join(",")}]`;
612
- $throws({
613
- expected: "(Array<string> | true | undefined)",
614
- value: input.value
615
- });
616
- })() : undefined}`}`)}}`;
617
- return $so0(input);
618
- }; return stringify(assert(input, errorFactory)); };
619
- export const isUserNotificationStatusPublished = input => {
620
- const $io0 = input => undefined === input.value || true === input.value;
621
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
622
- };
623
- export const assertUserNotificationStatusPublished = (input, errorFactory) => {
624
- const __is = input => {
625
- const $io0 = input => undefined === input.value || true === input.value;
626
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
627
- };
628
- if (false === __is(input))
629
- ((input, _path, _exceptionable = true) => {
630
- const $guard = __typia.createAssert.guard;
631
- const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || true === input.value || $guard(_exceptionable, {
632
- path: _path + ".value",
633
- expected: "(true | undefined)",
634
- value: input.value
635
- }, errorFactory);
636
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
637
- path: _path + "",
638
- expected: "UserNotificationStatusPublished",
639
- value: input
640
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
641
- path: _path + "",
642
- expected: "UserNotificationStatusPublished",
643
- value: input
644
- }, errorFactory);
645
- })(input, "$input", true);
646
- return input;
647
- };
648
- export const randomUserNotificationStatusPublished = generator => {
649
- const $pick = __typia.createRandom.pick;
650
- const $ro0 = (_recursive = false, _depth = 0) => ({
651
- value: $pick([
652
- () => undefined,
653
- () => true
654
- ])()
655
- });
656
- return $ro0();
657
- };
658
- export const assertGuardUserNotificationStatusPublished = (input, errorFactory) => {
659
- const __is = input => {
660
- const $io0 = input => undefined === input.value || true === input.value;
661
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
662
- };
663
- if (false === __is(input))
664
- ((input, _path, _exceptionable = true) => {
665
- const $guard = __typia.createAssertGuard.guard;
666
- const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || true === input.value || $guard(_exceptionable, {
667
- path: _path + ".value",
668
- expected: "(true | undefined)",
669
- value: input.value
670
- }, errorFactory);
671
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
672
- path: _path + "",
673
- expected: "UserNotificationStatusPublished",
674
- value: input
675
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
676
- path: _path + "",
677
- expected: "UserNotificationStatusPublished",
678
- value: input
679
- }, errorFactory);
680
- })(input, "$input", true);
681
- };
682
- export const stringifyUserNotificationStatusPublished = input => {
683
- const $tail = __typia.json.createStringify.tail;
684
- const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? input.value : undefined}`}`)}}`;
685
- return $so0(input);
686
- };
687
- export const assertStringifyUserNotificationStatusPublished = (input, errorFactory) => { const assert = (input, errorFactory) => {
688
- const __is = input => {
689
- const $io0 = input => undefined === input.value || true === input.value;
690
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
691
- };
692
- if (false === __is(input))
693
- ((input, _path, _exceptionable = true) => {
694
- const $guard = __typia.json.createAssertStringify.guard;
695
- const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || true === input.value || $guard(_exceptionable, {
696
- path: _path + ".value",
697
- expected: "(true | undefined)",
698
- value: input.value
699
- }, errorFactory);
700
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
701
- path: _path + "",
702
- expected: "UserNotificationStatusPublished",
703
- value: input
704
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
705
- path: _path + "",
706
- expected: "UserNotificationStatusPublished",
707
- value: input
708
- }, errorFactory);
709
- })(input, "$input", true);
710
- return input;
711
- }; const stringify = input => {
712
- const $tail = __typia.json.createAssertStringify.tail;
713
- const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? input.value : undefined}`}`)}}`;
714
- return $so0(input);
715
- }; return stringify(assert(input, errorFactory)); };