@nxtedition/types 23.0.12 → 23.0.13

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 (43) hide show
  1. package/dist/app.d.ts +61 -1
  2. package/dist/app.js +218 -10
  3. package/dist/common/index.d.ts +1 -0
  4. package/dist/common/index.js +1 -0
  5. package/dist/common/settings.d.ts +34 -6
  6. package/dist/common/settings.js +1399 -535
  7. package/dist/common/user-notification.d.ts +8 -0
  8. package/dist/common/user-notification.js +85 -0
  9. package/dist/domains/asset.d.ts +23 -0
  10. package/dist/domains/asset.js +248 -0
  11. package/dist/domains/comment-reaction.d.ts +15 -0
  12. package/dist/domains/comment-reaction.js +115 -0
  13. package/dist/domains/comment-read-mark.d.ts +15 -0
  14. package/dist/domains/comment-read-mark.js +115 -0
  15. package/dist/domains/comment.d.ts +153 -0
  16. package/dist/domains/comment.js +5729 -0
  17. package/dist/domains/connection.d.ts +1 -1
  18. package/dist/domains/connection.js +118 -118
  19. package/dist/domains/deepstream.d.ts +14 -0
  20. package/dist/domains/deepstream.js +139 -0
  21. package/dist/domains/edit.d.ts +17 -0
  22. package/dist/domains/edit.js +224 -0
  23. package/dist/domains/index.d.ts +17 -1
  24. package/dist/domains/index.js +8 -0
  25. package/dist/domains/planning.d.ts +1 -1
  26. package/dist/domains/planning.js +29 -23
  27. package/dist/domains/publish.d.ts +1 -0
  28. package/dist/domains/publish.js +142 -46
  29. package/dist/domains/published.d.ts +2 -1
  30. package/dist/domains/published.js +50 -10
  31. package/dist/domains/settings.js +1401 -534
  32. package/dist/domains/subtitle-style.d.ts +13 -0
  33. package/dist/domains/subtitle-style.js +123 -0
  34. package/dist/domains/user-notification-status.d.ts +55 -0
  35. package/dist/domains/user-notification-status.js +715 -0
  36. package/dist/domains/user-notification.d.ts +118 -0
  37. package/dist/domains/user-notification.js +3040 -0
  38. package/dist/domains/user.d.ts +42 -8
  39. package/dist/domains/user.js +352 -12
  40. package/dist/index.d.ts +23 -1
  41. package/dist/index.js +30 -13
  42. package/dist/schema.json +1438 -35
  43. package/package.json +1 -1
@@ -0,0 +1,715 @@
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)); };