@nxtedition/types 23.0.40 → 23.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/dist/app.d.ts +0 -33
  2. package/dist/app.js +1 -655
  3. package/dist/common/block.d.ts +6 -13
  4. package/dist/common/block.js +597 -1607
  5. package/dist/common/clone.d.ts +0 -19
  6. package/dist/common/clone.js +1 -602
  7. package/dist/common/date.d.ts +0 -7
  8. package/dist/common/date.js +1 -59
  9. package/dist/common/error.d.ts +0 -7
  10. package/dist/common/error.js +1 -404
  11. package/dist/common/file.d.ts +1 -21
  12. package/dist/common/file.js +782 -2521
  13. package/dist/common/index.d.ts +20 -26
  14. package/dist/common/index.js +20 -134
  15. package/dist/common/location.d.ts +0 -6
  16. package/dist/common/location.js +73 -238
  17. package/dist/common/lock.d.ts +1 -8
  18. package/dist/common/lock.js +1 -211
  19. package/dist/common/media.d.ts +0 -7
  20. package/dist/common/media.js +1 -83
  21. package/dist/common/nxtpression.d.ts +2 -9
  22. package/dist/common/nxtpression.js +1 -277
  23. package/dist/common/pipeline.d.ts +0 -7
  24. package/dist/common/pipeline.js +1 -97
  25. package/dist/common/promoted-tag.d.ts +0 -7
  26. package/dist/common/promoted-tag.js +1 -147
  27. package/dist/common/render-preset.d.ts +4 -17
  28. package/dist/common/render-preset.js +1 -1202
  29. package/dist/common/render-profile.d.ts +3 -19
  30. package/dist/common/render-profile.js +1 -1052
  31. package/dist/common/render-query.d.ts +2 -9
  32. package/dist/common/render-query.js +1 -1843
  33. package/dist/common/render-scene.d.ts +3 -16
  34. package/dist/common/render-scene.js +1 -2408
  35. package/dist/common/rule.d.ts +1 -7
  36. package/dist/common/rule.js +84 -254
  37. package/dist/common/search.d.ts +0 -25
  38. package/dist/common/search.js +1 -1591
  39. package/dist/common/settings.d.ts +113 -125
  40. package/dist/common/settings.js +1 -7504
  41. package/dist/common/subtitle-style.d.ts +25 -0
  42. package/dist/common/user-notification.d.ts +0 -7
  43. package/dist/common/user-notification.js +1 -85
  44. package/dist/index.d.ts +5 -108
  45. package/dist/index.js +5 -469
  46. package/dist/nxtpression.d.ts +538 -337
  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 +8 -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 +149 -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 +23 -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 +11 -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 +16068 -0
  143. package/dist/records/validate/assert.d.ts +4 -0
  144. package/dist/records/validate/assert.js +16198 -0
  145. package/dist/records/validate/is.d.ts +4 -0
  146. package/dist/records/validate/is.js +1027 -0
  147. package/dist/records/validate/schemas.d.ts +9 -0
  148. package/dist/records/validate/schemas.js +12862 -0
  149. package/dist/records/validate/stringify.d.ts +4 -0
  150. package/dist/records/validate/stringify.js +1915 -0
  151. package/dist/records/validate/utils.d.ts +15 -0
  152. package/dist/records/validate/utils.js +26 -0
  153. package/dist/records/validate/validate-equals.d.ts +5 -0
  154. package/dist/records/validate/validate-equals.js +24363 -0
  155. package/dist/records/validate/validate.d.ts +5 -0
  156. package/dist/records/validate/validate.js +15127 -0
  157. package/dist/rpc.d.ts +5 -15
  158. package/dist/rpc.js +126 -511
  159. package/dist/tsdoc-metadata.json +1 -1
  160. package/package.json +25 -15
  161. package/dist/asset.d.ts +0 -72
  162. package/dist/domains/asset.d.ts +0 -227
  163. package/dist/domains/asset.js +0 -2672
  164. package/dist/domains/bundle.d.ts +0 -25
  165. package/dist/domains/bundle.js +0 -512
  166. package/dist/domains/clone.d.ts +0 -14
  167. package/dist/domains/clone.js +0 -192
  168. package/dist/domains/comment-reaction.d.ts +0 -15
  169. package/dist/domains/comment-reaction.js +0 -115
  170. package/dist/domains/comment-read-mark.d.ts +0 -15
  171. package/dist/domains/comment-read-mark.js +0 -115
  172. package/dist/domains/comment.d.ts +0 -153
  173. package/dist/domains/comment.js +0 -5906
  174. package/dist/domains/connection.d.ts +0 -141
  175. package/dist/domains/connection.js +0 -5860
  176. package/dist/domains/contact.d.ts +0 -16
  177. package/dist/domains/contact.js +0 -149
  178. package/dist/domains/deepstream.d.ts +0 -14
  179. package/dist/domains/deepstream.js +0 -139
  180. package/dist/domains/design.d.ts +0 -24
  181. package/dist/domains/design.js +0 -303
  182. package/dist/domains/edit.d.ts +0 -17
  183. package/dist/domains/edit.js +0 -224
  184. package/dist/domains/event.d.ts +0 -170
  185. package/dist/domains/event.js +0 -2779
  186. package/dist/domains/file.d.ts +0 -51
  187. package/dist/domains/file.js +0 -2506
  188. package/dist/domains/general.d.ts +0 -84
  189. package/dist/domains/general.js +0 -906
  190. package/dist/domains/index.d.ts +0 -75
  191. package/dist/domains/index.js +0 -37
  192. package/dist/domains/media.d.ts +0 -113
  193. package/dist/domains/media.js +0 -4642
  194. package/dist/domains/monitor.d.ts +0 -416
  195. package/dist/domains/monitor.js +0 -6382
  196. package/dist/domains/panel.d.ts +0 -371
  197. package/dist/domains/panel.js +0 -3198
  198. package/dist/domains/permission.d.ts +0 -61
  199. package/dist/domains/permission.js +0 -1926
  200. package/dist/domains/pipeline-preset.d.ts +0 -17
  201. package/dist/domains/pipeline-preset.js +0 -236
  202. package/dist/domains/pipeline.d.ts +0 -30
  203. package/dist/domains/pipeline.js +0 -460
  204. package/dist/domains/planning.d.ts +0 -33
  205. package/dist/domains/planning.js +0 -324
  206. package/dist/domains/publish.d.ts +0 -1452
  207. package/dist/domains/publish.js +0 -35415
  208. package/dist/domains/published.d.ts +0 -19
  209. package/dist/domains/published.js +0 -204
  210. package/dist/domains/render-preset.d.ts +0 -4
  211. package/dist/domains/render.d.ts +0 -158
  212. package/dist/domains/render.js +0 -4452
  213. package/dist/domains/revs.d.ts +0 -13
  214. package/dist/domains/revs.js +0 -125
  215. package/dist/domains/role.d.ts +0 -13
  216. package/dist/domains/role.js +0 -119
  217. package/dist/domains/script.d.ts +0 -263
  218. package/dist/domains/script.js +0 -6777
  219. package/dist/domains/search.d.ts +0 -16
  220. package/dist/domains/search.js +0 -168
  221. package/dist/domains/settings.d.ts +0 -12
  222. package/dist/domains/settings.js +0 -7180
  223. package/dist/domains/storyboard.d.ts +0 -14
  224. package/dist/domains/storyboard.js +0 -125
  225. package/dist/domains/subtitle-style.d.ts +0 -42
  226. package/dist/domains/subtitle-style.js +0 -574
  227. package/dist/domains/subtitle.d.ts +0 -19
  228. package/dist/domains/subtitle.js +0 -212
  229. package/dist/domains/template.d.ts +0 -23
  230. package/dist/domains/template.js +0 -372
  231. package/dist/domains/user-notification-status.d.ts +0 -55
  232. package/dist/domains/user-notification-status.js +0 -715
  233. package/dist/domains/user-notification.d.ts +0 -118
  234. package/dist/domains/user-notification.js +0 -3040
  235. package/dist/domains/user.d.ts +0 -48
  236. package/dist/domains/user.js +0 -481
  237. package/dist/monitor.d.ts +0 -71
  238. package/dist/monitor.js +0 -1942
  239. package/dist/schema.json +0 -9836
  240. package/dist/storage.d.ts +0 -51
  241. package/dist/storage.js +0 -1036
  242. /package/dist/{asset.js → common/subtitle-style.js} +0 -0
  243. /package/dist/{domains/render-preset.js → records/domains/asset.js} +0 -0
@@ -1,906 +0,0 @@
1
- import __typia from "typia";
2
- export const isGeneralTitleRecord = input => {
3
- const $io0 = input => undefined === input.value || "string" === typeof input.value;
4
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
5
- };
6
- export const assertGeneralTitleRecord = (input, errorFactory) => {
7
- const __is = input => {
8
- const $io0 = input => undefined === input.value || "string" === typeof input.value;
9
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
10
- };
11
- if (false === __is(input))
12
- ((input, _path, _exceptionable = true) => {
13
- const $guard = __typia.createAssert.guard;
14
- const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || "string" === typeof input.value || $guard(_exceptionable, {
15
- path: _path + ".value",
16
- expected: "(string | undefined)",
17
- value: input.value
18
- }, errorFactory);
19
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
20
- path: _path + "",
21
- expected: "GeneralTitleRecord",
22
- value: input
23
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
24
- path: _path + "",
25
- expected: "GeneralTitleRecord",
26
- value: input
27
- }, errorFactory);
28
- })(input, "$input", true);
29
- return input;
30
- };
31
- export const randomGeneralTitleRecord = generator => {
32
- const $generator = __typia.createRandom.generator;
33
- const $pick = __typia.createRandom.pick;
34
- const $ro0 = (_recursive = false, _depth = 0) => ({
35
- value: $pick([
36
- () => undefined,
37
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
38
- ])()
39
- });
40
- return $ro0();
41
- };
42
- export const assertGuardGeneralTitleRecord = (input, errorFactory) => {
43
- const __is = input => {
44
- const $io0 = input => undefined === input.value || "string" === typeof input.value;
45
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
46
- };
47
- if (false === __is(input))
48
- ((input, _path, _exceptionable = true) => {
49
- const $guard = __typia.createAssertGuard.guard;
50
- const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || "string" === typeof input.value || $guard(_exceptionable, {
51
- path: _path + ".value",
52
- expected: "(string | undefined)",
53
- value: input.value
54
- }, errorFactory);
55
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
56
- path: _path + "",
57
- expected: "GeneralTitleRecord",
58
- value: input
59
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
60
- path: _path + "",
61
- expected: "GeneralTitleRecord",
62
- value: input
63
- }, errorFactory);
64
- })(input, "$input", true);
65
- };
66
- export const stringifyGeneralTitleRecord = input => {
67
- const $string = __typia.json.createStringify.string;
68
- const $tail = __typia.json.createStringify.tail;
69
- const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? $string(input.value) : undefined}`}`)}}`;
70
- return $so0(input);
71
- };
72
- export const assertStringifyGeneralTitleRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
73
- const __is = input => {
74
- const $io0 = input => undefined === input.value || "string" === typeof input.value;
75
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
76
- };
77
- if (false === __is(input))
78
- ((input, _path, _exceptionable = true) => {
79
- const $guard = __typia.json.createAssertStringify.guard;
80
- const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || "string" === typeof input.value || $guard(_exceptionable, {
81
- path: _path + ".value",
82
- expected: "(string | undefined)",
83
- value: input.value
84
- }, errorFactory);
85
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
86
- path: _path + "",
87
- expected: "GeneralTitleRecord",
88
- value: input
89
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
90
- path: _path + "",
91
- expected: "GeneralTitleRecord",
92
- value: input
93
- }, errorFactory);
94
- })(input, "$input", true);
95
- return input;
96
- }; const stringify = input => {
97
- const $string = __typia.json.createAssertStringify.string;
98
- const $tail = __typia.json.createAssertStringify.tail;
99
- const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? $string(input.value) : undefined}`}`)}}`;
100
- return $so0(input);
101
- }; return stringify(assert(input, errorFactory)); };
102
- export const isGeneralTagsRecord = input => {
103
- const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
104
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
105
- };
106
- export const assertGeneralTagsRecord = (input, errorFactory) => {
107
- const __is = input => {
108
- const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
109
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
110
- };
111
- if (false === __is(input))
112
- ((input, _path, _exceptionable = true) => {
113
- const $guard = __typia.createAssert.guard;
114
- const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
115
- path: _path + ".value",
116
- expected: "(Array<string> | undefined)",
117
- value: input.value
118
- }, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
119
- path: _path + ".value[" + _index1 + "]",
120
- expected: "string",
121
- value: elem
122
- }, errorFactory)) || $guard(_exceptionable, {
123
- path: _path + ".value",
124
- expected: "(Array<string> | undefined)",
125
- value: input.value
126
- }, errorFactory);
127
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
128
- path: _path + "",
129
- expected: "GeneralTagsRecord",
130
- value: input
131
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
132
- path: _path + "",
133
- expected: "GeneralTagsRecord",
134
- value: input
135
- }, errorFactory);
136
- })(input, "$input", true);
137
- return input;
138
- };
139
- export const randomGeneralTagsRecord = generator => {
140
- const $generator = __typia.createRandom.generator;
141
- const $pick = __typia.createRandom.pick;
142
- const $ro0 = (_recursive = false, _depth = 0) => ({
143
- value: $pick([
144
- () => undefined,
145
- () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
146
- ])()
147
- });
148
- return $ro0();
149
- };
150
- export const assertGuardGeneralTagsRecord = (input, errorFactory) => {
151
- const __is = input => {
152
- const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
153
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
154
- };
155
- if (false === __is(input))
156
- ((input, _path, _exceptionable = true) => {
157
- const $guard = __typia.createAssertGuard.guard;
158
- const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
159
- path: _path + ".value",
160
- expected: "(Array<string> | undefined)",
161
- value: input.value
162
- }, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
163
- path: _path + ".value[" + _index1 + "]",
164
- expected: "string",
165
- value: elem
166
- }, errorFactory)) || $guard(_exceptionable, {
167
- path: _path + ".value",
168
- expected: "(Array<string> | undefined)",
169
- value: input.value
170
- }, errorFactory);
171
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
172
- path: _path + "",
173
- expected: "GeneralTagsRecord",
174
- value: input
175
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
176
- path: _path + "",
177
- expected: "GeneralTagsRecord",
178
- value: input
179
- }, errorFactory);
180
- })(input, "$input", true);
181
- };
182
- export const stringifyGeneralTagsRecord = input => {
183
- const $string = __typia.json.createStringify.string;
184
- const $tail = __typia.json.createStringify.tail;
185
- const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
186
- return $so0(input);
187
- };
188
- export const assertStringifyGeneralTagsRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
189
- const __is = input => {
190
- const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
191
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
192
- };
193
- if (false === __is(input))
194
- ((input, _path, _exceptionable = true) => {
195
- const $guard = __typia.json.createAssertStringify.guard;
196
- const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
197
- path: _path + ".value",
198
- expected: "(Array<string> | undefined)",
199
- value: input.value
200
- }, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
201
- path: _path + ".value[" + _index1 + "]",
202
- expected: "string",
203
- value: elem
204
- }, errorFactory)) || $guard(_exceptionable, {
205
- path: _path + ".value",
206
- expected: "(Array<string> | undefined)",
207
- value: input.value
208
- }, errorFactory);
209
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
210
- path: _path + "",
211
- expected: "GeneralTagsRecord",
212
- value: input
213
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
214
- path: _path + "",
215
- expected: "GeneralTagsRecord",
216
- value: input
217
- }, errorFactory);
218
- })(input, "$input", true);
219
- return input;
220
- }; const stringify = input => {
221
- const $string = __typia.json.createAssertStringify.string;
222
- const $tail = __typia.json.createAssertStringify.tail;
223
- const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
224
- return $so0(input);
225
- }; return stringify(assert(input, errorFactory)); };
226
- export const isGeneralCreatedRecord = input => {
227
- const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user) && (undefined === input.origin || "string" === typeof input.origin);
228
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
229
- };
230
- export const assertGeneralCreatedRecord = (input, errorFactory) => {
231
- const __is = input => {
232
- const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user) && (undefined === input.origin || "string" === typeof input.origin);
233
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
234
- };
235
- if (false === __is(input))
236
- ((input, _path, _exceptionable = true) => {
237
- const $guard = __typia.createAssert.guard;
238
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.time || "string" === typeof input.time || $guard(_exceptionable, {
239
- path: _path + ".time",
240
- expected: "(string | undefined)",
241
- value: input.time
242
- }, errorFactory)) && (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
243
- path: _path + ".user",
244
- expected: "(string | undefined)",
245
- value: input.user
246
- }, errorFactory)) && (undefined === input.origin || "string" === typeof input.origin || $guard(_exceptionable, {
247
- path: _path + ".origin",
248
- expected: "(string | undefined)",
249
- value: input.origin
250
- }, errorFactory));
251
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
252
- path: _path + "",
253
- expected: "GeneralCreatedRecord",
254
- value: input
255
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
256
- path: _path + "",
257
- expected: "GeneralCreatedRecord",
258
- value: input
259
- }, errorFactory);
260
- })(input, "$input", true);
261
- return input;
262
- };
263
- export const randomGeneralCreatedRecord = generator => {
264
- const $generator = __typia.createRandom.generator;
265
- const $pick = __typia.createRandom.pick;
266
- const $ro0 = (_recursive = false, _depth = 0) => ({
267
- time: $pick([
268
- () => undefined,
269
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
270
- ])(),
271
- user: $pick([
272
- () => undefined,
273
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
274
- ])(),
275
- origin: $pick([
276
- () => undefined,
277
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
278
- ])()
279
- });
280
- return $ro0();
281
- };
282
- export const assertGuardGeneralCreatedRecord = (input, errorFactory) => {
283
- const __is = input => {
284
- const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user) && (undefined === input.origin || "string" === typeof input.origin);
285
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
286
- };
287
- if (false === __is(input))
288
- ((input, _path, _exceptionable = true) => {
289
- const $guard = __typia.createAssertGuard.guard;
290
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.time || "string" === typeof input.time || $guard(_exceptionable, {
291
- path: _path + ".time",
292
- expected: "(string | undefined)",
293
- value: input.time
294
- }, errorFactory)) && (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
295
- path: _path + ".user",
296
- expected: "(string | undefined)",
297
- value: input.user
298
- }, errorFactory)) && (undefined === input.origin || "string" === typeof input.origin || $guard(_exceptionable, {
299
- path: _path + ".origin",
300
- expected: "(string | undefined)",
301
- value: input.origin
302
- }, errorFactory));
303
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
304
- path: _path + "",
305
- expected: "GeneralCreatedRecord",
306
- value: input
307
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
308
- path: _path + "",
309
- expected: "GeneralCreatedRecord",
310
- value: input
311
- }, errorFactory);
312
- })(input, "$input", true);
313
- };
314
- export const stringifyGeneralCreatedRecord = input => {
315
- const $string = __typia.json.createStringify.string;
316
- const $tail = __typia.json.createStringify.tail;
317
- const $so0 = input => `{${$tail(`${undefined === input.time ? "" : `"time":${undefined !== input.time ? $string(input.time) : undefined},`}${undefined === input.user ? "" : `"user":${undefined !== input.user ? $string(input.user) : undefined},`}${undefined === input.origin ? "" : `"origin":${undefined !== input.origin ? $string(input.origin) : undefined}`}`)}}`;
318
- return $so0(input);
319
- };
320
- export const assertStringifyGeneralCreatedRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
321
- const __is = input => {
322
- const $io0 = input => (undefined === input.time || "string" === typeof input.time) && (undefined === input.user || "string" === typeof input.user) && (undefined === input.origin || "string" === typeof input.origin);
323
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
324
- };
325
- if (false === __is(input))
326
- ((input, _path, _exceptionable = true) => {
327
- const $guard = __typia.json.createAssertStringify.guard;
328
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.time || "string" === typeof input.time || $guard(_exceptionable, {
329
- path: _path + ".time",
330
- expected: "(string | undefined)",
331
- value: input.time
332
- }, errorFactory)) && (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
333
- path: _path + ".user",
334
- expected: "(string | undefined)",
335
- value: input.user
336
- }, errorFactory)) && (undefined === input.origin || "string" === typeof input.origin || $guard(_exceptionable, {
337
- path: _path + ".origin",
338
- expected: "(string | undefined)",
339
- value: input.origin
340
- }, errorFactory));
341
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
342
- path: _path + "",
343
- expected: "GeneralCreatedRecord",
344
- value: input
345
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
346
- path: _path + "",
347
- expected: "GeneralCreatedRecord",
348
- value: input
349
- }, errorFactory);
350
- })(input, "$input", true);
351
- return input;
352
- }; const stringify = input => {
353
- const $string = __typia.json.createAssertStringify.string;
354
- const $tail = __typia.json.createAssertStringify.tail;
355
- const $so0 = input => `{${$tail(`${undefined === input.time ? "" : `"time":${undefined !== input.time ? $string(input.time) : undefined},`}${undefined === input.user ? "" : `"user":${undefined !== input.user ? $string(input.user) : undefined},`}${undefined === input.origin ? "" : `"origin":${undefined !== input.origin ? $string(input.origin) : undefined}`}`)}}`;
356
- return $so0(input);
357
- }; return stringify(assert(input, errorFactory)); };
358
- export const isGeneralPosterRecord = input => {
359
- const $io0 = input => (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.preset || "string" === typeof input.preset);
360
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (undefined === input.file || "string" === typeof input.file);
361
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
362
- };
363
- export const assertGeneralPosterRecord = (input, errorFactory) => {
364
- const __is = input => {
365
- const $io0 = input => (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.preset || "string" === typeof input.preset);
366
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (undefined === input.file || "string" === typeof input.file);
367
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
368
- };
369
- if (false === __is(input))
370
- ((input, _path, _exceptionable = true) => {
371
- const $guard = __typia.createAssert.guard;
372
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
373
- path: _path + ".input",
374
- expected: "(__type | undefined)",
375
- value: input.input
376
- }, errorFactory)) && $ao1(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
377
- path: _path + ".input",
378
- expected: "(__type | undefined)",
379
- value: input.input
380
- }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
381
- path: _path + ".preset",
382
- expected: "(string | undefined)",
383
- value: input.preset
384
- }, errorFactory));
385
- const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
386
- path: _path + ".type",
387
- expected: "(string | undefined)",
388
- value: input.type
389
- }, errorFactory)) && (undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
390
- path: _path + ".file",
391
- expected: "(string | undefined)",
392
- value: input.file
393
- }, errorFactory));
394
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
395
- path: _path + "",
396
- expected: "GeneralPosterRecord",
397
- value: input
398
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
399
- path: _path + "",
400
- expected: "GeneralPosterRecord",
401
- value: input
402
- }, errorFactory);
403
- })(input, "$input", true);
404
- return input;
405
- };
406
- export const randomGeneralPosterRecord = generator => {
407
- const $pick = __typia.createRandom.pick;
408
- const $generator = __typia.createRandom.generator;
409
- const $ro0 = (_recursive = false, _depth = 0) => ({
410
- input: $pick([
411
- () => undefined,
412
- () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
413
- ])(),
414
- preset: $pick([
415
- () => undefined,
416
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
417
- ])()
418
- });
419
- const $ro1 = (_recursive = false, _depth = 0) => ({
420
- type: $pick([
421
- () => undefined,
422
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
423
- ])(),
424
- file: $pick([
425
- () => undefined,
426
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
427
- ])()
428
- });
429
- return $ro0();
430
- };
431
- export const assertGuardGeneralPosterRecord = (input, errorFactory) => {
432
- const __is = input => {
433
- const $io0 = input => (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.preset || "string" === typeof input.preset);
434
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (undefined === input.file || "string" === typeof input.file);
435
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
436
- };
437
- if (false === __is(input))
438
- ((input, _path, _exceptionable = true) => {
439
- const $guard = __typia.createAssertGuard.guard;
440
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
441
- path: _path + ".input",
442
- expected: "(__type | undefined)",
443
- value: input.input
444
- }, errorFactory)) && $ao1(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
445
- path: _path + ".input",
446
- expected: "(__type | undefined)",
447
- value: input.input
448
- }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
449
- path: _path + ".preset",
450
- expected: "(string | undefined)",
451
- value: input.preset
452
- }, errorFactory));
453
- const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
454
- path: _path + ".type",
455
- expected: "(string | undefined)",
456
- value: input.type
457
- }, errorFactory)) && (undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
458
- path: _path + ".file",
459
- expected: "(string | undefined)",
460
- value: input.file
461
- }, errorFactory));
462
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
463
- path: _path + "",
464
- expected: "GeneralPosterRecord",
465
- value: input
466
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
467
- path: _path + "",
468
- expected: "GeneralPosterRecord",
469
- value: input
470
- }, errorFactory);
471
- })(input, "$input", true);
472
- };
473
- export const stringifyGeneralPosterRecord = input => {
474
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (undefined === input.file || "string" === typeof input.file);
475
- const $string = __typia.json.createStringify.string;
476
- const $tail = __typia.json.createStringify.tail;
477
- const $so0 = input => `{${$tail(`${undefined === input.input ? "" : `"input":${undefined !== input.input ? $so1(input.input) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined}`}`)}}`;
478
- const $so1 = input => `{${$tail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.file ? "" : `"file":${undefined !== input.file ? $string(input.file) : undefined}`}`)}}`;
479
- return $so0(input);
480
- };
481
- export const assertStringifyGeneralPosterRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
482
- const __is = input => {
483
- const $io0 = input => (undefined === input.input || "object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) && $io1(input.input)) && (undefined === input.preset || "string" === typeof input.preset);
484
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (undefined === input.file || "string" === typeof input.file);
485
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
486
- };
487
- if (false === __is(input))
488
- ((input, _path, _exceptionable = true) => {
489
- const $guard = __typia.json.createAssertStringify.guard;
490
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.input || ("object" === typeof input.input && null !== input.input && false === Array.isArray(input.input) || $guard(_exceptionable, {
491
- path: _path + ".input",
492
- expected: "(__type | undefined)",
493
- value: input.input
494
- }, errorFactory)) && $ao1(input.input, _path + ".input", true && _exceptionable) || $guard(_exceptionable, {
495
- path: _path + ".input",
496
- expected: "(__type | undefined)",
497
- value: input.input
498
- }, errorFactory)) && (undefined === input.preset || "string" === typeof input.preset || $guard(_exceptionable, {
499
- path: _path + ".preset",
500
- expected: "(string | undefined)",
501
- value: input.preset
502
- }, errorFactory));
503
- const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.type || "string" === typeof input.type || $guard(_exceptionable, {
504
- path: _path + ".type",
505
- expected: "(string | undefined)",
506
- value: input.type
507
- }, errorFactory)) && (undefined === input.file || "string" === typeof input.file || $guard(_exceptionable, {
508
- path: _path + ".file",
509
- expected: "(string | undefined)",
510
- value: input.file
511
- }, errorFactory));
512
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
513
- path: _path + "",
514
- expected: "GeneralPosterRecord",
515
- value: input
516
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
517
- path: _path + "",
518
- expected: "GeneralPosterRecord",
519
- value: input
520
- }, errorFactory);
521
- })(input, "$input", true);
522
- return input;
523
- }; const stringify = input => {
524
- const $io1 = input => (undefined === input.type || "string" === typeof input.type) && (undefined === input.file || "string" === typeof input.file);
525
- const $string = __typia.json.createAssertStringify.string;
526
- const $tail = __typia.json.createAssertStringify.tail;
527
- const $so0 = input => `{${$tail(`${undefined === input.input ? "" : `"input":${undefined !== input.input ? $so1(input.input) : undefined},`}${undefined === input.preset ? "" : `"preset":${undefined !== input.preset ? $string(input.preset) : undefined}`}`)}}`;
528
- const $so1 = input => `{${$tail(`${undefined === input.type ? "" : `"type":${undefined !== input.type ? $string(input.type) : undefined},`}${undefined === input.file ? "" : `"file":${undefined !== input.file ? $string(input.file) : undefined}`}`)}}`;
529
- return $so0(input);
530
- }; return stringify(assert(input, errorFactory)); };
531
- export const isGeneralStatusRecord = input => {
532
- const $io0 = input => Object.keys(input).every(key => {
533
- const value = input[key];
534
- if (undefined === value)
535
- return true;
536
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io1(value);
537
- });
538
- const $io1 = input => undefined === input.expose || "boolean" === typeof input.expose;
539
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
540
- };
541
- export const assertGeneralStatusRecord = (input, errorFactory) => {
542
- const __is = input => {
543
- const $io0 = input => Object.keys(input).every(key => {
544
- const value = input[key];
545
- if (undefined === value)
546
- return true;
547
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io1(value);
548
- });
549
- const $io1 = input => undefined === input.expose || "boolean" === typeof input.expose;
550
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
551
- };
552
- if (false === __is(input))
553
- ((input, _path, _exceptionable = true) => {
554
- const $guard = __typia.createAssert.guard;
555
- const $join = __typia.createAssert.join;
556
- const $ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
557
- const value = input[key];
558
- if (undefined === value)
559
- return true;
560
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
561
- path: _path + $join(key),
562
- expected: "GeneralStatusRecordValue",
563
- value: value
564
- }, errorFactory)) && $ao1(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
565
- path: _path + $join(key),
566
- expected: "GeneralStatusRecordValue",
567
- value: value
568
- }, errorFactory);
569
- });
570
- const $ao1 = (input, _path, _exceptionable = true) => undefined === input.expose || "boolean" === typeof input.expose || $guard(_exceptionable, {
571
- path: _path + ".expose",
572
- expected: "(boolean | undefined)",
573
- value: input.expose
574
- }, errorFactory);
575
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
576
- path: _path + "",
577
- expected: "GeneralStatusRecord",
578
- value: input
579
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
580
- path: _path + "",
581
- expected: "GeneralStatusRecord",
582
- value: input
583
- }, errorFactory);
584
- })(input, "$input", true);
585
- return input;
586
- };
587
- export const randomGeneralStatusRecord = generator => {
588
- const $generator = __typia.createRandom.generator;
589
- const $pick = __typia.createRandom.pick;
590
- const $ro0 = (_recursive = false, _depth = 0) => {
591
- const output = {};
592
- (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = $ro1(_recursive, _recursive ? 1 + _depth : _depth), (generator?.integer ?? $generator.integer)(0, 3));
593
- return output;
594
- };
595
- const $ro1 = (_recursive = false, _depth = 0) => ({
596
- expose: $pick([
597
- () => undefined,
598
- () => (generator?.boolean ?? $generator.boolean)()
599
- ])()
600
- });
601
- return $ro0();
602
- };
603
- export const assertGuardGeneralStatusRecord = (input, errorFactory) => {
604
- const __is = input => {
605
- const $io0 = input => Object.keys(input).every(key => {
606
- const value = input[key];
607
- if (undefined === value)
608
- return true;
609
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io1(value);
610
- });
611
- const $io1 = input => undefined === input.expose || "boolean" === typeof input.expose;
612
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
613
- };
614
- if (false === __is(input))
615
- ((input, _path, _exceptionable = true) => {
616
- const $guard = __typia.createAssertGuard.guard;
617
- const $join = __typia.createAssertGuard.join;
618
- const $ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
619
- const value = input[key];
620
- if (undefined === value)
621
- return true;
622
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
623
- path: _path + $join(key),
624
- expected: "GeneralStatusRecordValue",
625
- value: value
626
- }, errorFactory)) && $ao1(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
627
- path: _path + $join(key),
628
- expected: "GeneralStatusRecordValue",
629
- value: value
630
- }, errorFactory);
631
- });
632
- const $ao1 = (input, _path, _exceptionable = true) => undefined === input.expose || "boolean" === typeof input.expose || $guard(_exceptionable, {
633
- path: _path + ".expose",
634
- expected: "(boolean | undefined)",
635
- value: input.expose
636
- }, errorFactory);
637
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
638
- path: _path + "",
639
- expected: "GeneralStatusRecord",
640
- value: input
641
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
642
- path: _path + "",
643
- expected: "GeneralStatusRecord",
644
- value: input
645
- }, errorFactory);
646
- })(input, "$input", true);
647
- };
648
- export const stringifyGeneralStatusRecord = input => {
649
- const $io1 = input => undefined === input.expose || "boolean" === typeof input.expose;
650
- const $tail = __typia.json.createStringify.tail;
651
- const $so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
652
- return ""; return `${JSON.stringify(key)}:${$so1(value)}`; }).filter(str => "" !== str).join(",")}}`;
653
- const $so1 = input => `{${$tail(`${undefined === input.expose ? "" : `"expose":${undefined !== input.expose ? input.expose : undefined}`}`)}}`;
654
- return $so0(input);
655
- };
656
- export const assertStringifyGeneralStatusRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
657
- const __is = input => {
658
- const $io0 = input => Object.keys(input).every(key => {
659
- const value = input[key];
660
- if (undefined === value)
661
- return true;
662
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io1(value);
663
- });
664
- const $io1 = input => undefined === input.expose || "boolean" === typeof input.expose;
665
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
666
- };
667
- if (false === __is(input))
668
- ((input, _path, _exceptionable = true) => {
669
- const $guard = __typia.json.createAssertStringify.guard;
670
- const $join = __typia.json.createAssertStringify.join;
671
- const $ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
672
- const value = input[key];
673
- if (undefined === value)
674
- return true;
675
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
676
- path: _path + $join(key),
677
- expected: "GeneralStatusRecordValue",
678
- value: value
679
- }, errorFactory)) && $ao1(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
680
- path: _path + $join(key),
681
- expected: "GeneralStatusRecordValue",
682
- value: value
683
- }, errorFactory);
684
- });
685
- const $ao1 = (input, _path, _exceptionable = true) => undefined === input.expose || "boolean" === typeof input.expose || $guard(_exceptionable, {
686
- path: _path + ".expose",
687
- expected: "(boolean | undefined)",
688
- value: input.expose
689
- }, errorFactory);
690
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
691
- path: _path + "",
692
- expected: "GeneralStatusRecord",
693
- value: input
694
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
695
- path: _path + "",
696
- expected: "GeneralStatusRecord",
697
- value: input
698
- }, errorFactory);
699
- })(input, "$input", true);
700
- return input;
701
- }; const stringify = input => {
702
- const $io1 = input => undefined === input.expose || "boolean" === typeof input.expose;
703
- const $tail = __typia.json.createAssertStringify.tail;
704
- const $so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
705
- return ""; return `${JSON.stringify(key)}:${$so1(value)}`; }).filter(str => "" !== str).join(",")}}`;
706
- const $so1 = input => `{${$tail(`${undefined === input.expose ? "" : `"expose":${undefined !== input.expose ? input.expose : undefined}`}`)}}`;
707
- return $so0(input);
708
- }; return stringify(assert(input, errorFactory)); };
709
- export const isGeneralStatusRecordValue = input => {
710
- const $io0 = input => undefined === input.expose || "boolean" === typeof input.expose;
711
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
712
- };
713
- export const assertGeneralStatusRecordValue = (input, errorFactory) => {
714
- const __is = input => {
715
- const $io0 = input => undefined === input.expose || "boolean" === typeof input.expose;
716
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
717
- };
718
- if (false === __is(input))
719
- ((input, _path, _exceptionable = true) => {
720
- const $guard = __typia.createAssert.guard;
721
- const $ao0 = (input, _path, _exceptionable = true) => undefined === input.expose || "boolean" === typeof input.expose || $guard(_exceptionable, {
722
- path: _path + ".expose",
723
- expected: "(boolean | undefined)",
724
- value: input.expose
725
- }, errorFactory);
726
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
727
- path: _path + "",
728
- expected: "GeneralStatusRecordValue",
729
- value: input
730
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
731
- path: _path + "",
732
- expected: "GeneralStatusRecordValue",
733
- value: input
734
- }, errorFactory);
735
- })(input, "$input", true);
736
- return input;
737
- };
738
- export const randomGeneralStatusRecordValue = generator => {
739
- const $generator = __typia.createRandom.generator;
740
- const $pick = __typia.createRandom.pick;
741
- const $ro0 = (_recursive = false, _depth = 0) => ({
742
- expose: $pick([
743
- () => undefined,
744
- () => (generator?.boolean ?? $generator.boolean)()
745
- ])()
746
- });
747
- return $ro0();
748
- };
749
- export const assertGuardGeneralStatusRecordValue = (input, errorFactory) => {
750
- const __is = input => {
751
- const $io0 = input => undefined === input.expose || "boolean" === typeof input.expose;
752
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
753
- };
754
- if (false === __is(input))
755
- ((input, _path, _exceptionable = true) => {
756
- const $guard = __typia.createAssertGuard.guard;
757
- const $ao0 = (input, _path, _exceptionable = true) => undefined === input.expose || "boolean" === typeof input.expose || $guard(_exceptionable, {
758
- path: _path + ".expose",
759
- expected: "(boolean | undefined)",
760
- value: input.expose
761
- }, errorFactory);
762
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
763
- path: _path + "",
764
- expected: "GeneralStatusRecordValue",
765
- value: input
766
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
767
- path: _path + "",
768
- expected: "GeneralStatusRecordValue",
769
- value: input
770
- }, errorFactory);
771
- })(input, "$input", true);
772
- };
773
- export const stringifyGeneralStatusRecordValue = input => {
774
- const $tail = __typia.json.createStringify.tail;
775
- const $so0 = input => `{${$tail(`${undefined === input.expose ? "" : `"expose":${undefined !== input.expose ? input.expose : undefined}`}`)}}`;
776
- return $so0(input);
777
- };
778
- export const assertStringifyGeneralStatusRecordValue = (input, errorFactory) => { const assert = (input, errorFactory) => {
779
- const __is = input => {
780
- const $io0 = input => undefined === input.expose || "boolean" === typeof input.expose;
781
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
782
- };
783
- if (false === __is(input))
784
- ((input, _path, _exceptionable = true) => {
785
- const $guard = __typia.json.createAssertStringify.guard;
786
- const $ao0 = (input, _path, _exceptionable = true) => undefined === input.expose || "boolean" === typeof input.expose || $guard(_exceptionable, {
787
- path: _path + ".expose",
788
- expected: "(boolean | undefined)",
789
- value: input.expose
790
- }, errorFactory);
791
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
792
- path: _path + "",
793
- expected: "GeneralStatusRecordValue",
794
- value: input
795
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
796
- path: _path + "",
797
- expected: "GeneralStatusRecordValue",
798
- value: input
799
- }, errorFactory);
800
- })(input, "$input", true);
801
- return input;
802
- }; const stringify = input => {
803
- const $tail = __typia.json.createAssertStringify.tail;
804
- const $so0 = input => `{${$tail(`${undefined === input.expose ? "" : `"expose":${undefined !== input.expose ? input.expose : undefined}`}`)}}`;
805
- return $so0(input);
806
- }; return stringify(assert(input, errorFactory)); };
807
- export const isGeneralDescriptionRecord = input => {
808
- const $io0 = input => undefined === input.value || "string" === typeof input.value;
809
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
810
- };
811
- export const assertGeneralDescriptionRecord = (input, errorFactory) => {
812
- const __is = input => {
813
- const $io0 = input => undefined === input.value || "string" === typeof input.value;
814
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
815
- };
816
- if (false === __is(input))
817
- ((input, _path, _exceptionable = true) => {
818
- const $guard = __typia.createAssert.guard;
819
- const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || "string" === typeof input.value || $guard(_exceptionable, {
820
- path: _path + ".value",
821
- expected: "(string | undefined)",
822
- value: input.value
823
- }, errorFactory);
824
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
825
- path: _path + "",
826
- expected: "GeneralDescriptionRecord",
827
- value: input
828
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
829
- path: _path + "",
830
- expected: "GeneralDescriptionRecord",
831
- value: input
832
- }, errorFactory);
833
- })(input, "$input", true);
834
- return input;
835
- };
836
- export const randomGeneralDescriptionRecord = generator => {
837
- const $generator = __typia.createRandom.generator;
838
- const $pick = __typia.createRandom.pick;
839
- const $ro0 = (_recursive = false, _depth = 0) => ({
840
- value: $pick([
841
- () => undefined,
842
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
843
- ])()
844
- });
845
- return $ro0();
846
- };
847
- export const assertGuardGeneralDescriptionRecord = (input, errorFactory) => {
848
- const __is = input => {
849
- const $io0 = input => undefined === input.value || "string" === typeof input.value;
850
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
851
- };
852
- if (false === __is(input))
853
- ((input, _path, _exceptionable = true) => {
854
- const $guard = __typia.createAssertGuard.guard;
855
- const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || "string" === typeof input.value || $guard(_exceptionable, {
856
- path: _path + ".value",
857
- expected: "(string | undefined)",
858
- value: input.value
859
- }, errorFactory);
860
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
861
- path: _path + "",
862
- expected: "GeneralDescriptionRecord",
863
- value: input
864
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
865
- path: _path + "",
866
- expected: "GeneralDescriptionRecord",
867
- value: input
868
- }, errorFactory);
869
- })(input, "$input", true);
870
- };
871
- export const stringifyGeneralDescriptionRecord = input => {
872
- const $string = __typia.json.createStringify.string;
873
- const $tail = __typia.json.createStringify.tail;
874
- const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? $string(input.value) : undefined}`}`)}}`;
875
- return $so0(input);
876
- };
877
- export const assertStringifyGeneralDescriptionRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
878
- const __is = input => {
879
- const $io0 = input => undefined === input.value || "string" === typeof input.value;
880
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
881
- };
882
- if (false === __is(input))
883
- ((input, _path, _exceptionable = true) => {
884
- const $guard = __typia.json.createAssertStringify.guard;
885
- const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || "string" === typeof input.value || $guard(_exceptionable, {
886
- path: _path + ".value",
887
- expected: "(string | undefined)",
888
- value: input.value
889
- }, errorFactory);
890
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
891
- path: _path + "",
892
- expected: "GeneralDescriptionRecord",
893
- value: input
894
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
895
- path: _path + "",
896
- expected: "GeneralDescriptionRecord",
897
- value: input
898
- }, errorFactory);
899
- })(input, "$input", true);
900
- return input;
901
- }; const stringify = input => {
902
- const $string = __typia.json.createAssertStringify.string;
903
- const $tail = __typia.json.createAssertStringify.tail;
904
- const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? $string(input.value) : undefined}`}`)}}`;
905
- return $so0(input);
906
- }; return stringify(assert(input, errorFactory)); };