@nxtedition/types 23.0.39 → 23.0.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/dist/app.d.ts +0 -51
  2. package/dist/app.js +1 -823
  3. package/dist/common/block.d.ts +6 -13
  4. package/dist/common/block.js +597 -1607
  5. package/dist/common/clone.d.ts +0 -19
  6. package/dist/common/clone.js +1 -602
  7. package/dist/common/date.d.ts +0 -7
  8. package/dist/common/date.js +1 -59
  9. package/dist/common/error.d.ts +0 -7
  10. package/dist/common/error.js +1 -404
  11. package/dist/common/file.d.ts +1 -21
  12. package/dist/common/file.js +782 -2521
  13. package/dist/common/index.d.ts +20 -26
  14. package/dist/common/index.js +20 -134
  15. package/dist/common/location.d.ts +0 -6
  16. package/dist/common/location.js +73 -238
  17. package/dist/common/lock.d.ts +1 -8
  18. package/dist/common/lock.js +1 -211
  19. package/dist/common/media.d.ts +0 -7
  20. package/dist/common/media.js +1 -83
  21. package/dist/common/nxtpression.d.ts +2 -9
  22. package/dist/common/nxtpression.js +1 -277
  23. package/dist/common/pipeline.d.ts +0 -7
  24. package/dist/common/pipeline.js +1 -97
  25. package/dist/common/promoted-tag.d.ts +0 -7
  26. package/dist/common/promoted-tag.js +1 -147
  27. package/dist/common/render-preset.d.ts +2 -15
  28. package/dist/common/render-preset.js +1 -1202
  29. package/dist/common/render-profile.d.ts +0 -19
  30. package/dist/common/render-profile.js +1 -1052
  31. package/dist/common/render-query.d.ts +2 -9
  32. package/dist/common/render-query.js +1 -1754
  33. package/dist/common/render-scene.d.ts +2 -15
  34. package/dist/common/render-scene.js +1 -2230
  35. package/dist/common/rule.d.ts +1 -7
  36. package/dist/common/rule.js +84 -254
  37. package/dist/common/search.d.ts +0 -25
  38. package/dist/common/search.js +1 -1591
  39. package/dist/common/settings.d.ts +128 -121
  40. package/dist/common/settings.js +1 -6936
  41. package/dist/common/subtitle-style.d.ts +25 -0
  42. package/dist/common/user-notification.d.ts +0 -7
  43. package/dist/common/user-notification.js +1 -85
  44. package/dist/index.d.ts +5 -85
  45. package/dist/index.js +5 -187
  46. package/dist/nxtpression.d.ts +732 -344
  47. package/dist/nxtpression.js +1 -323
  48. package/dist/records/domains/asset.d.ts +106 -0
  49. package/dist/records/domains/bundle.d.ts +12 -0
  50. package/dist/records/domains/bundle.js +1 -0
  51. package/dist/records/domains/clone.d.ts +7 -0
  52. package/dist/records/domains/clone.js +1 -0
  53. package/dist/records/domains/comment-reaction.d.ts +8 -0
  54. package/dist/records/domains/comment-reaction.js +1 -0
  55. package/dist/records/domains/comment-read-mark.d.ts +8 -0
  56. package/dist/records/domains/comment-read-mark.js +1 -0
  57. package/dist/records/domains/comment.d.ts +81 -0
  58. package/dist/records/domains/comment.js +19 -0
  59. package/dist/records/domains/connection.d.ts +77 -0
  60. package/dist/records/domains/connection.js +1 -0
  61. package/dist/records/domains/contact.d.ts +9 -0
  62. package/dist/records/domains/contact.js +1 -0
  63. package/dist/records/domains/deepstream.d.ts +7 -0
  64. package/dist/records/domains/deepstream.js +1 -0
  65. package/dist/records/domains/design.d.ts +11 -0
  66. package/dist/records/domains/design.js +1 -0
  67. package/dist/records/domains/edit.d.ts +10 -0
  68. package/dist/records/domains/edit.js +1 -0
  69. package/dist/records/domains/event.d.ts +66 -0
  70. package/dist/records/domains/event.js +1 -0
  71. package/dist/records/domains/file.d.ts +26 -0
  72. package/dist/records/domains/file.js +1 -0
  73. package/dist/records/domains/general.d.ts +41 -0
  74. package/dist/records/domains/general.js +1 -0
  75. package/dist/records/domains/index.d.ts +77 -0
  76. package/dist/records/domains/index.js +38 -0
  77. package/dist/records/domains/media.d.ts +64 -0
  78. package/dist/records/domains/media.js +1 -0
  79. package/dist/records/domains/monitor.d.ts +116 -0
  80. package/dist/records/domains/monitor.js +1 -0
  81. package/dist/records/domains/panel.d.ts +55 -0
  82. package/dist/records/domains/panel.js +1 -0
  83. package/dist/records/domains/permission.d.ts +25 -0
  84. package/dist/records/domains/permission.js +2 -0
  85. package/dist/records/domains/pipeline-preset.d.ts +10 -0
  86. package/dist/records/domains/pipeline-preset.js +1 -0
  87. package/dist/records/domains/pipeline.d.ts +17 -0
  88. package/dist/records/domains/pipeline.js +1 -0
  89. package/dist/records/domains/planning.d.ts +14 -0
  90. package/dist/records/domains/planning.js +1 -0
  91. package/dist/records/domains/prompter.d.ts +18 -0
  92. package/dist/records/domains/prompter.js +1 -0
  93. package/dist/records/domains/publish.d.ts +145 -0
  94. package/dist/records/domains/publish.js +1 -0
  95. package/dist/records/domains/published.d.ts +12 -0
  96. package/dist/records/domains/published.js +1 -0
  97. package/dist/records/domains/render-preset.d.ts +5 -0
  98. package/dist/records/domains/render-preset.js +1 -0
  99. package/dist/records/domains/render.d.ts +115 -0
  100. package/dist/records/domains/render.js +1 -0
  101. package/dist/records/domains/revs.d.ts +6 -0
  102. package/dist/records/domains/revs.js +1 -0
  103. package/dist/records/domains/role.d.ts +6 -0
  104. package/dist/records/domains/role.js +1 -0
  105. package/dist/records/domains/script.d.ts +101 -0
  106. package/dist/records/domains/script.js +1 -0
  107. package/dist/records/domains/search.d.ts +9 -0
  108. package/dist/records/domains/search.js +1 -0
  109. package/dist/records/domains/settings.d.ts +5 -0
  110. package/dist/records/domains/settings.js +1 -0
  111. package/dist/records/domains/storyboard.d.ts +10 -0
  112. package/dist/records/domains/storyboard.js +1 -0
  113. package/dist/records/domains/subtitle-style.d.ts +13 -0
  114. package/dist/records/domains/subtitle-style.js +1 -0
  115. package/dist/records/domains/subtitle.d.ts +12 -0
  116. package/dist/records/domains/subtitle.js +1 -0
  117. package/dist/records/domains/template.d.ts +10 -0
  118. package/dist/records/domains/template.js +1 -0
  119. package/dist/records/domains/user-notification-status.d.ts +30 -0
  120. package/dist/records/domains/user-notification-status.js +1 -0
  121. package/dist/records/domains/user-notification.d.ts +69 -0
  122. package/dist/records/domains/user-notification.js +1 -0
  123. package/dist/records/domains/user.d.ts +23 -0
  124. package/dist/records/domains/user.js +1 -0
  125. package/dist/records/exact/asset.d.ts +83 -0
  126. package/dist/records/exact/asset.js +1 -0
  127. package/dist/records/exact/index.d.ts +36 -0
  128. package/dist/records/exact/index.js +4 -0
  129. package/dist/records/exact/media.d.ts +52 -0
  130. package/dist/records/exact/media.js +1 -0
  131. package/dist/records/exact/monitor.d.ts +46 -0
  132. package/dist/records/exact/monitor.js +1 -0
  133. package/dist/records/exact/storage.d.ts +32 -0
  134. package/dist/records/exact/storage.js +1 -0
  135. package/dist/records/index.d.ts +10 -0
  136. package/dist/records/index.js +2 -0
  137. package/dist/records/utils.d.ts +7 -0
  138. package/dist/records/utils.js +1 -0
  139. package/dist/records/utils.tds.d.ts +1 -0
  140. package/dist/records/utils.tds.js +7 -0
  141. package/dist/records/validate/assert-guard.d.ts +4 -0
  142. package/dist/records/validate/assert-guard.js +15861 -0
  143. package/dist/records/validate/assert.d.ts +4 -0
  144. package/dist/records/validate/assert.js +15990 -0
  145. package/dist/records/validate/is.d.ts +4 -0
  146. package/dist/records/validate/is.js +1017 -0
  147. package/dist/records/validate/schemas.d.ts +9 -0
  148. package/dist/records/validate/schemas.js +12613 -0
  149. package/dist/records/validate/stringify.d.ts +4 -0
  150. package/dist/records/validate/stringify.js +1904 -0
  151. package/dist/records/validate/utils.d.ts +15 -0
  152. package/dist/records/validate/utils.js +18 -0
  153. package/dist/records/validate/utils.test.d.ts +1 -0
  154. package/dist/records/validate/utils.test.js +35 -0
  155. package/dist/records/validate/validate.d.ts +5 -0
  156. package/dist/records/validate/validate.js +14943 -0
  157. package/dist/rpc.d.ts +13 -14
  158. package/dist/rpc.js +126 -511
  159. package/dist/tsdoc-metadata.json +1 -1
  160. package/package.json +26 -15
  161. package/dist/asset.d.ts +0 -72
  162. package/dist/domains/asset.d.ts +0 -227
  163. package/dist/domains/asset.js +0 -2672
  164. package/dist/domains/bundle.d.ts +0 -25
  165. package/dist/domains/bundle.js +0 -512
  166. package/dist/domains/clone.d.ts +0 -14
  167. package/dist/domains/clone.js +0 -192
  168. package/dist/domains/comment-reaction.d.ts +0 -15
  169. package/dist/domains/comment-reaction.js +0 -115
  170. package/dist/domains/comment-read-mark.d.ts +0 -15
  171. package/dist/domains/comment-read-mark.js +0 -115
  172. package/dist/domains/comment.d.ts +0 -153
  173. package/dist/domains/comment.js +0 -5906
  174. package/dist/domains/connection.d.ts +0 -141
  175. package/dist/domains/connection.js +0 -5860
  176. package/dist/domains/contact.d.ts +0 -16
  177. package/dist/domains/contact.js +0 -149
  178. package/dist/domains/deepstream.d.ts +0 -14
  179. package/dist/domains/deepstream.js +0 -139
  180. package/dist/domains/design.d.ts +0 -24
  181. package/dist/domains/design.js +0 -303
  182. package/dist/domains/edit.d.ts +0 -17
  183. package/dist/domains/edit.js +0 -224
  184. package/dist/domains/event.d.ts +0 -42
  185. package/dist/domains/event.js +0 -754
  186. package/dist/domains/file.d.ts +0 -51
  187. package/dist/domains/file.js +0 -2506
  188. package/dist/domains/general.d.ts +0 -84
  189. package/dist/domains/general.js +0 -906
  190. package/dist/domains/index.d.ts +0 -75
  191. package/dist/domains/index.js +0 -37
  192. package/dist/domains/media.d.ts +0 -113
  193. package/dist/domains/media.js +0 -4553
  194. package/dist/domains/monitor.d.ts +0 -416
  195. package/dist/domains/monitor.js +0 -6382
  196. package/dist/domains/panel.d.ts +0 -371
  197. package/dist/domains/panel.js +0 -3198
  198. package/dist/domains/permission.d.ts +0 -61
  199. package/dist/domains/permission.js +0 -1926
  200. package/dist/domains/pipeline-preset.d.ts +0 -17
  201. package/dist/domains/pipeline-preset.js +0 -236
  202. package/dist/domains/pipeline.d.ts +0 -30
  203. package/dist/domains/pipeline.js +0 -460
  204. package/dist/domains/planning.d.ts +0 -33
  205. package/dist/domains/planning.js +0 -324
  206. package/dist/domains/publish.d.ts +0 -1397
  207. package/dist/domains/publish.js +0 -34436
  208. package/dist/domains/published.d.ts +0 -19
  209. package/dist/domains/published.js +0 -204
  210. package/dist/domains/render-preset.d.ts +0 -4
  211. package/dist/domains/render.d.ts +0 -172
  212. package/dist/domains/render.js +0 -4783
  213. package/dist/domains/revs.d.ts +0 -13
  214. package/dist/domains/revs.js +0 -125
  215. package/dist/domains/role.d.ts +0 -13
  216. package/dist/domains/role.js +0 -119
  217. package/dist/domains/script.d.ts +0 -13
  218. package/dist/domains/script.js +0 -125
  219. package/dist/domains/search.d.ts +0 -16
  220. package/dist/domains/search.js +0 -168
  221. package/dist/domains/settings.d.ts +0 -12
  222. package/dist/domains/settings.js +0 -6624
  223. package/dist/domains/storyboard.d.ts +0 -14
  224. package/dist/domains/storyboard.js +0 -125
  225. package/dist/domains/subtitle-style.d.ts +0 -37
  226. package/dist/domains/subtitle-style.js +0 -485
  227. package/dist/domains/subtitle.d.ts +0 -19
  228. package/dist/domains/subtitle.js +0 -212
  229. package/dist/domains/template.d.ts +0 -23
  230. package/dist/domains/template.js +0 -372
  231. package/dist/domains/user-notification-status.d.ts +0 -55
  232. package/dist/domains/user-notification-status.js +0 -715
  233. package/dist/domains/user-notification.d.ts +0 -118
  234. package/dist/domains/user-notification.js +0 -3040
  235. package/dist/domains/user.d.ts +0 -48
  236. package/dist/domains/user.js +0 -481
  237. package/dist/monitor.d.ts +0 -71
  238. package/dist/monitor.js +0 -1942
  239. package/dist/schema.json +0 -9075
  240. package/dist/storage.d.ts +0 -51
  241. package/dist/storage.js +0 -1036
  242. /package/dist/{asset.js → common/subtitle-style.js} +0 -0
  243. /package/dist/{domains/render-preset.js → records/domains/asset.js} +0 -0
package/dist/app.js CHANGED
@@ -1,823 +1 @@
1
- import __typia from "typia";
2
- export const isElectronHubApi = input => {
3
- const $io0 = input => true && true && true && true && true && true && true && true && true && true && ("object" === typeof input.clipboard && null !== input.clipboard && $io1(input.clipboard)) && true && true && true;
4
- const $io1 = input => true && true;
5
- return "object" === typeof input && null !== input && $io0(input);
6
- };
7
- export const assertElectronHubApi = (input, errorFactory) => {
8
- const __is = input => {
9
- const $io0 = input => true && true && true && true && true && true && true && true && true && true && ("object" === typeof input.clipboard && null !== input.clipboard && $io1(input.clipboard)) && true && true && true;
10
- const $io1 = input => true && true;
11
- return "object" === typeof input && null !== input && $io0(input);
12
- };
13
- if (false === __is(input))
14
- ((input, _path, _exceptionable = true) => {
15
- const $guard = __typia.createAssert.guard;
16
- const $ao0 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
17
- path: _path + ".startDrag",
18
- expected: "unknown",
19
- value: input.startDrag
20
- }, errorFactory)) && (true || $guard(_exceptionable, {
21
- path: _path + ".getWebdavPath",
22
- expected: "unknown",
23
- value: input.getWebdavPath
24
- }, errorFactory)) && (true || $guard(_exceptionable, {
25
- path: _path + ".showOpenDialogAsync",
26
- expected: "unknown",
27
- value: input.showOpenDialogAsync
28
- }, errorFactory)) && (true || $guard(_exceptionable, {
29
- path: _path + ".showSaveDialogAsync",
30
- expected: "unknown",
31
- value: input.showSaveDialogAsync
32
- }, errorFactory)) && (true || $guard(_exceptionable, {
33
- path: _path + ".getCurrentVersion",
34
- expected: "unknown",
35
- value: input.getCurrentVersion
36
- }, errorFactory)) && (true || $guard(_exceptionable, {
37
- path: _path + ".getLatestVersion",
38
- expected: "unknown",
39
- value: input.getLatestVersion
40
- }, errorFactory)) && (true || $guard(_exceptionable, {
41
- path: _path + ".triggerUpdate",
42
- expected: "unknown",
43
- value: input.triggerUpdate
44
- }, errorFactory)) && (true || $guard(_exceptionable, {
45
- path: _path + ".controlDownloadItem",
46
- expected: "unknown",
47
- value: input.controlDownloadItem
48
- }, errorFactory)) && (true || $guard(_exceptionable, {
49
- path: _path + ".openInApp",
50
- expected: "unknown",
51
- value: input.openInApp
52
- }, errorFactory)) && (true || $guard(_exceptionable, {
53
- path: _path + ".installDavinciPlugin",
54
- expected: "unknown",
55
- value: input.installDavinciPlugin
56
- }, errorFactory)) && (("object" === typeof input.clipboard && null !== input.clipboard || $guard(_exceptionable, {
57
- path: _path + ".clipboard",
58
- expected: "ElectronHubApiClipboard",
59
- value: input.clipboard
60
- }, errorFactory)) && $ao1(input.clipboard, _path + ".clipboard", true && _exceptionable) || $guard(_exceptionable, {
61
- path: _path + ".clipboard",
62
- expected: "ElectronHubApiClipboard",
63
- value: input.clipboard
64
- }, errorFactory)) && (true || $guard(_exceptionable, {
65
- path: _path + ".downloadFile",
66
- expected: "unknown",
67
- value: input.downloadFile
68
- }, errorFactory)) && (true || $guard(_exceptionable, {
69
- path: _path + ".showItemInFolder",
70
- expected: "unknown",
71
- value: input.showItemInFolder
72
- }, errorFactory)) && (true || $guard(_exceptionable, {
73
- path: _path + ".openPath",
74
- expected: "unknown",
75
- value: input.openPath
76
- }, errorFactory));
77
- const $ao1 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
78
- path: _path + ".readText",
79
- expected: "unknown",
80
- value: input.readText
81
- }, errorFactory)) && (true || $guard(_exceptionable, {
82
- path: _path + ".writeText",
83
- expected: "unknown",
84
- value: input.writeText
85
- }, errorFactory));
86
- return ("object" === typeof input && null !== input || $guard(true, {
87
- path: _path + "",
88
- expected: "ElectronHubApi",
89
- value: input
90
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
91
- path: _path + "",
92
- expected: "ElectronHubApi",
93
- value: input
94
- }, errorFactory);
95
- })(input, "$input", true);
96
- return input;
97
- };
98
- export const randomElectronHubApi = generator => {
99
- const $ro0 = (_recursive = false, _depth = 0) => ({
100
- startDrag: undefined,
101
- getWebdavPath: undefined,
102
- showOpenDialogAsync: undefined,
103
- showSaveDialogAsync: undefined,
104
- getCurrentVersion: undefined,
105
- getLatestVersion: undefined,
106
- triggerUpdate: undefined,
107
- controlDownloadItem: undefined,
108
- openInApp: undefined,
109
- installDavinciPlugin: undefined,
110
- clipboard: $ro1(_recursive, _recursive ? 1 + _depth : _depth),
111
- downloadFile: undefined,
112
- showItemInFolder: undefined,
113
- openPath: undefined
114
- });
115
- const $ro1 = (_recursive = false, _depth = 0) => ({
116
- readText: undefined,
117
- writeText: undefined
118
- });
119
- return $ro0();
120
- };
121
- export const assertGuardElectronHubApi = (input, errorFactory) => {
122
- const __is = input => {
123
- const $io0 = input => true && true && true && true && true && true && true && true && true && true && ("object" === typeof input.clipboard && null !== input.clipboard && $io1(input.clipboard)) && true && true && true;
124
- const $io1 = input => true && true;
125
- return "object" === typeof input && null !== input && $io0(input);
126
- };
127
- if (false === __is(input))
128
- ((input, _path, _exceptionable = true) => {
129
- const $guard = __typia.createAssertGuard.guard;
130
- const $ao0 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
131
- path: _path + ".startDrag",
132
- expected: "unknown",
133
- value: input.startDrag
134
- }, errorFactory)) && (true || $guard(_exceptionable, {
135
- path: _path + ".getWebdavPath",
136
- expected: "unknown",
137
- value: input.getWebdavPath
138
- }, errorFactory)) && (true || $guard(_exceptionable, {
139
- path: _path + ".showOpenDialogAsync",
140
- expected: "unknown",
141
- value: input.showOpenDialogAsync
142
- }, errorFactory)) && (true || $guard(_exceptionable, {
143
- path: _path + ".showSaveDialogAsync",
144
- expected: "unknown",
145
- value: input.showSaveDialogAsync
146
- }, errorFactory)) && (true || $guard(_exceptionable, {
147
- path: _path + ".getCurrentVersion",
148
- expected: "unknown",
149
- value: input.getCurrentVersion
150
- }, errorFactory)) && (true || $guard(_exceptionable, {
151
- path: _path + ".getLatestVersion",
152
- expected: "unknown",
153
- value: input.getLatestVersion
154
- }, errorFactory)) && (true || $guard(_exceptionable, {
155
- path: _path + ".triggerUpdate",
156
- expected: "unknown",
157
- value: input.triggerUpdate
158
- }, errorFactory)) && (true || $guard(_exceptionable, {
159
- path: _path + ".controlDownloadItem",
160
- expected: "unknown",
161
- value: input.controlDownloadItem
162
- }, errorFactory)) && (true || $guard(_exceptionable, {
163
- path: _path + ".openInApp",
164
- expected: "unknown",
165
- value: input.openInApp
166
- }, errorFactory)) && (true || $guard(_exceptionable, {
167
- path: _path + ".installDavinciPlugin",
168
- expected: "unknown",
169
- value: input.installDavinciPlugin
170
- }, errorFactory)) && (("object" === typeof input.clipboard && null !== input.clipboard || $guard(_exceptionable, {
171
- path: _path + ".clipboard",
172
- expected: "ElectronHubApiClipboard",
173
- value: input.clipboard
174
- }, errorFactory)) && $ao1(input.clipboard, _path + ".clipboard", true && _exceptionable) || $guard(_exceptionable, {
175
- path: _path + ".clipboard",
176
- expected: "ElectronHubApiClipboard",
177
- value: input.clipboard
178
- }, errorFactory)) && (true || $guard(_exceptionable, {
179
- path: _path + ".downloadFile",
180
- expected: "unknown",
181
- value: input.downloadFile
182
- }, errorFactory)) && (true || $guard(_exceptionable, {
183
- path: _path + ".showItemInFolder",
184
- expected: "unknown",
185
- value: input.showItemInFolder
186
- }, errorFactory)) && (true || $guard(_exceptionable, {
187
- path: _path + ".openPath",
188
- expected: "unknown",
189
- value: input.openPath
190
- }, errorFactory));
191
- const $ao1 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
192
- path: _path + ".readText",
193
- expected: "unknown",
194
- value: input.readText
195
- }, errorFactory)) && (true || $guard(_exceptionable, {
196
- path: _path + ".writeText",
197
- expected: "unknown",
198
- value: input.writeText
199
- }, errorFactory));
200
- return ("object" === typeof input && null !== input || $guard(true, {
201
- path: _path + "",
202
- expected: "ElectronHubApi",
203
- value: input
204
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
205
- path: _path + "",
206
- expected: "ElectronHubApi",
207
- value: input
208
- }, errorFactory);
209
- })(input, "$input", true);
210
- };
211
- export const stringifyElectronHubApi = input => {
212
- const $io1 = input => true && true;
213
- const $so0 = input => `{"clipboard":${$so1(input.clipboard)}}`;
214
- const $so1 = input => "{}";
215
- return $so0(input);
216
- };
217
- export const assertStringifyElectronHubApi = (input, errorFactory) => { const assert = (input, errorFactory) => {
218
- const __is = input => {
219
- const $io0 = input => true && true && true && true && true && true && true && true && true && true && ("object" === typeof input.clipboard && null !== input.clipboard && $io1(input.clipboard)) && true && true && true;
220
- const $io1 = input => true && true;
221
- return "object" === typeof input && null !== input && $io0(input);
222
- };
223
- if (false === __is(input))
224
- ((input, _path, _exceptionable = true) => {
225
- const $guard = __typia.json.createAssertStringify.guard;
226
- const $ao0 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
227
- path: _path + ".startDrag",
228
- expected: "unknown",
229
- value: input.startDrag
230
- }, errorFactory)) && (true || $guard(_exceptionable, {
231
- path: _path + ".getWebdavPath",
232
- expected: "unknown",
233
- value: input.getWebdavPath
234
- }, errorFactory)) && (true || $guard(_exceptionable, {
235
- path: _path + ".showOpenDialogAsync",
236
- expected: "unknown",
237
- value: input.showOpenDialogAsync
238
- }, errorFactory)) && (true || $guard(_exceptionable, {
239
- path: _path + ".showSaveDialogAsync",
240
- expected: "unknown",
241
- value: input.showSaveDialogAsync
242
- }, errorFactory)) && (true || $guard(_exceptionable, {
243
- path: _path + ".getCurrentVersion",
244
- expected: "unknown",
245
- value: input.getCurrentVersion
246
- }, errorFactory)) && (true || $guard(_exceptionable, {
247
- path: _path + ".getLatestVersion",
248
- expected: "unknown",
249
- value: input.getLatestVersion
250
- }, errorFactory)) && (true || $guard(_exceptionable, {
251
- path: _path + ".triggerUpdate",
252
- expected: "unknown",
253
- value: input.triggerUpdate
254
- }, errorFactory)) && (true || $guard(_exceptionable, {
255
- path: _path + ".controlDownloadItem",
256
- expected: "unknown",
257
- value: input.controlDownloadItem
258
- }, errorFactory)) && (true || $guard(_exceptionable, {
259
- path: _path + ".openInApp",
260
- expected: "unknown",
261
- value: input.openInApp
262
- }, errorFactory)) && (true || $guard(_exceptionable, {
263
- path: _path + ".installDavinciPlugin",
264
- expected: "unknown",
265
- value: input.installDavinciPlugin
266
- }, errorFactory)) && (("object" === typeof input.clipboard && null !== input.clipboard || $guard(_exceptionable, {
267
- path: _path + ".clipboard",
268
- expected: "ElectronHubApiClipboard",
269
- value: input.clipboard
270
- }, errorFactory)) && $ao1(input.clipboard, _path + ".clipboard", true && _exceptionable) || $guard(_exceptionable, {
271
- path: _path + ".clipboard",
272
- expected: "ElectronHubApiClipboard",
273
- value: input.clipboard
274
- }, errorFactory)) && (true || $guard(_exceptionable, {
275
- path: _path + ".downloadFile",
276
- expected: "unknown",
277
- value: input.downloadFile
278
- }, errorFactory)) && (true || $guard(_exceptionable, {
279
- path: _path + ".showItemInFolder",
280
- expected: "unknown",
281
- value: input.showItemInFolder
282
- }, errorFactory)) && (true || $guard(_exceptionable, {
283
- path: _path + ".openPath",
284
- expected: "unknown",
285
- value: input.openPath
286
- }, errorFactory));
287
- const $ao1 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
288
- path: _path + ".readText",
289
- expected: "unknown",
290
- value: input.readText
291
- }, errorFactory)) && (true || $guard(_exceptionable, {
292
- path: _path + ".writeText",
293
- expected: "unknown",
294
- value: input.writeText
295
- }, errorFactory));
296
- return ("object" === typeof input && null !== input || $guard(true, {
297
- path: _path + "",
298
- expected: "ElectronHubApi",
299
- value: input
300
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
301
- path: _path + "",
302
- expected: "ElectronHubApi",
303
- value: input
304
- }, errorFactory);
305
- })(input, "$input", true);
306
- return input;
307
- }; const stringify = input => {
308
- const $io1 = input => true && true;
309
- const $so0 = input => `{"clipboard":${$so1(input.clipboard)}}`;
310
- const $so1 = input => "{}";
311
- return $so0(input);
312
- }; return stringify(assert(input, errorFactory)); };
313
- export const isElectronHubApiClipboard = input => {
314
- const $io0 = input => true && true;
315
- return "object" === typeof input && null !== input && $io0(input);
316
- };
317
- export const assertElectronHubApiClipboard = (input, errorFactory) => {
318
- const __is = input => {
319
- const $io0 = input => true && true;
320
- return "object" === typeof input && null !== input && $io0(input);
321
- };
322
- if (false === __is(input))
323
- ((input, _path, _exceptionable = true) => {
324
- const $guard = __typia.createAssert.guard;
325
- const $ao0 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
326
- path: _path + ".readText",
327
- expected: "unknown",
328
- value: input.readText
329
- }, errorFactory)) && (true || $guard(_exceptionable, {
330
- path: _path + ".writeText",
331
- expected: "unknown",
332
- value: input.writeText
333
- }, errorFactory));
334
- return ("object" === typeof input && null !== input || $guard(true, {
335
- path: _path + "",
336
- expected: "ElectronHubApiClipboard",
337
- value: input
338
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
339
- path: _path + "",
340
- expected: "ElectronHubApiClipboard",
341
- value: input
342
- }, errorFactory);
343
- })(input, "$input", true);
344
- return input;
345
- };
346
- export const randomElectronHubApiClipboard = generator => {
347
- const $ro0 = (_recursive = false, _depth = 0) => ({
348
- readText: undefined,
349
- writeText: undefined
350
- });
351
- return $ro0();
352
- };
353
- export const assertGuardElectronHubApiClipboard = (input, errorFactory) => {
354
- const __is = input => {
355
- const $io0 = input => true && true;
356
- return "object" === typeof input && null !== input && $io0(input);
357
- };
358
- if (false === __is(input))
359
- ((input, _path, _exceptionable = true) => {
360
- const $guard = __typia.createAssertGuard.guard;
361
- const $ao0 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
362
- path: _path + ".readText",
363
- expected: "unknown",
364
- value: input.readText
365
- }, errorFactory)) && (true || $guard(_exceptionable, {
366
- path: _path + ".writeText",
367
- expected: "unknown",
368
- value: input.writeText
369
- }, errorFactory));
370
- return ("object" === typeof input && null !== input || $guard(true, {
371
- path: _path + "",
372
- expected: "ElectronHubApiClipboard",
373
- value: input
374
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
375
- path: _path + "",
376
- expected: "ElectronHubApiClipboard",
377
- value: input
378
- }, errorFactory);
379
- })(input, "$input", true);
380
- };
381
- export const stringifyElectronHubApiClipboard = input => {
382
- const $so0 = input => "{}";
383
- return $so0(input);
384
- };
385
- export const assertStringifyElectronHubApiClipboard = (input, errorFactory) => { const assert = (input, errorFactory) => {
386
- const __is = input => {
387
- const $io0 = input => true && true;
388
- return "object" === typeof input && null !== input && $io0(input);
389
- };
390
- if (false === __is(input))
391
- ((input, _path, _exceptionable = true) => {
392
- const $guard = __typia.json.createAssertStringify.guard;
393
- const $ao0 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
394
- path: _path + ".readText",
395
- expected: "unknown",
396
- value: input.readText
397
- }, errorFactory)) && (true || $guard(_exceptionable, {
398
- path: _path + ".writeText",
399
- expected: "unknown",
400
- value: input.writeText
401
- }, errorFactory));
402
- return ("object" === typeof input && null !== input || $guard(true, {
403
- path: _path + "",
404
- expected: "ElectronHubApiClipboard",
405
- value: input
406
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
407
- path: _path + "",
408
- expected: "ElectronHubApiClipboard",
409
- value: input
410
- }, errorFactory);
411
- })(input, "$input", true);
412
- return input;
413
- }; const stringify = input => {
414
- const $so0 = input => "{}";
415
- return $so0(input);
416
- }; return stringify(assert(input, errorFactory)); };
417
- export const isDownloadFileOptions = input => {
418
- const $io0 = input => (undefined === input.id || "string" === typeof input.id) && "string" === typeof input.url && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.path || "string" === typeof input.path) && (undefined === input.collisionPostfix || "boolean" === typeof input.collisionPostfix);
419
- return "object" === typeof input && null !== input && $io0(input);
420
- };
421
- export const assertDownloadFileOptions = (input, errorFactory) => {
422
- const __is = input => {
423
- const $io0 = input => (undefined === input.id || "string" === typeof input.id) && "string" === typeof input.url && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.path || "string" === typeof input.path) && (undefined === input.collisionPostfix || "boolean" === typeof input.collisionPostfix);
424
- return "object" === typeof input && null !== input && $io0(input);
425
- };
426
- if (false === __is(input))
427
- ((input, _path, _exceptionable = true) => {
428
- const $guard = __typia.createAssert.guard;
429
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
430
- path: _path + ".id",
431
- expected: "(string | undefined)",
432
- value: input.id
433
- }, errorFactory)) && ("string" === typeof input.url || $guard(_exceptionable, {
434
- path: _path + ".url",
435
- expected: "string",
436
- value: input.url
437
- }, errorFactory)) && (undefined === input.filename || "string" === typeof input.filename || $guard(_exceptionable, {
438
- path: _path + ".filename",
439
- expected: "(string | undefined)",
440
- value: input.filename
441
- }, errorFactory)) && (undefined === input.directory || "string" === typeof input.directory || $guard(_exceptionable, {
442
- path: _path + ".directory",
443
- expected: "(string | undefined)",
444
- value: input.directory
445
- }, errorFactory)) && (undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
446
- path: _path + ".path",
447
- expected: "(string | undefined)",
448
- value: input.path
449
- }, errorFactory)) && (undefined === input.collisionPostfix || "boolean" === typeof input.collisionPostfix || $guard(_exceptionable, {
450
- path: _path + ".collisionPostfix",
451
- expected: "(boolean | undefined)",
452
- value: input.collisionPostfix
453
- }, errorFactory));
454
- return ("object" === typeof input && null !== input || $guard(true, {
455
- path: _path + "",
456
- expected: "DownloadFileOptions",
457
- value: input
458
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
459
- path: _path + "",
460
- expected: "DownloadFileOptions",
461
- value: input
462
- }, errorFactory);
463
- })(input, "$input", true);
464
- return input;
465
- };
466
- export const randomDownloadFileOptions = generator => {
467
- const $generator = __typia.createRandom.generator;
468
- const $pick = __typia.createRandom.pick;
469
- const $ro0 = (_recursive = false, _depth = 0) => ({
470
- id: $pick([
471
- () => undefined,
472
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
473
- ])(),
474
- url: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
475
- filename: $pick([
476
- () => undefined,
477
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
478
- ])(),
479
- directory: $pick([
480
- () => undefined,
481
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
482
- ])(),
483
- path: $pick([
484
- () => undefined,
485
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
486
- ])(),
487
- collisionPostfix: $pick([
488
- () => undefined,
489
- () => (generator?.boolean ?? $generator.boolean)()
490
- ])()
491
- });
492
- return $ro0();
493
- };
494
- export const assertGuardDownloadFileOptions = (input, errorFactory) => {
495
- const __is = input => {
496
- const $io0 = input => (undefined === input.id || "string" === typeof input.id) && "string" === typeof input.url && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.path || "string" === typeof input.path) && (undefined === input.collisionPostfix || "boolean" === typeof input.collisionPostfix);
497
- return "object" === typeof input && null !== input && $io0(input);
498
- };
499
- if (false === __is(input))
500
- ((input, _path, _exceptionable = true) => {
501
- const $guard = __typia.createAssertGuard.guard;
502
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
503
- path: _path + ".id",
504
- expected: "(string | undefined)",
505
- value: input.id
506
- }, errorFactory)) && ("string" === typeof input.url || $guard(_exceptionable, {
507
- path: _path + ".url",
508
- expected: "string",
509
- value: input.url
510
- }, errorFactory)) && (undefined === input.filename || "string" === typeof input.filename || $guard(_exceptionable, {
511
- path: _path + ".filename",
512
- expected: "(string | undefined)",
513
- value: input.filename
514
- }, errorFactory)) && (undefined === input.directory || "string" === typeof input.directory || $guard(_exceptionable, {
515
- path: _path + ".directory",
516
- expected: "(string | undefined)",
517
- value: input.directory
518
- }, errorFactory)) && (undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
519
- path: _path + ".path",
520
- expected: "(string | undefined)",
521
- value: input.path
522
- }, errorFactory)) && (undefined === input.collisionPostfix || "boolean" === typeof input.collisionPostfix || $guard(_exceptionable, {
523
- path: _path + ".collisionPostfix",
524
- expected: "(boolean | undefined)",
525
- value: input.collisionPostfix
526
- }, errorFactory));
527
- return ("object" === typeof input && null !== input || $guard(true, {
528
- path: _path + "",
529
- expected: "DownloadFileOptions",
530
- value: input
531
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
532
- path: _path + "",
533
- expected: "DownloadFileOptions",
534
- value: input
535
- }, errorFactory);
536
- })(input, "$input", true);
537
- };
538
- export const stringifyDownloadFileOptions = input => {
539
- const $string = __typia.json.createStringify.string;
540
- const $so0 = input => `{${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.filename ? "" : `"filename":${undefined !== input.filename ? $string(input.filename) : undefined},`}${undefined === input.directory ? "" : `"directory":${undefined !== input.directory ? $string(input.directory) : undefined},`}${undefined === input.path ? "" : `"path":${undefined !== input.path ? $string(input.path) : undefined},`}${undefined === input.collisionPostfix ? "" : `"collisionPostfix":${undefined !== input.collisionPostfix ? input.collisionPostfix : undefined},`}"url":${$string(input.url)}}`;
541
- return $so0(input);
542
- };
543
- export const assertStringifyDownloadFileOptions = (input, errorFactory) => { const assert = (input, errorFactory) => {
544
- const __is = input => {
545
- const $io0 = input => (undefined === input.id || "string" === typeof input.id) && "string" === typeof input.url && (undefined === input.filename || "string" === typeof input.filename) && (undefined === input.directory || "string" === typeof input.directory) && (undefined === input.path || "string" === typeof input.path) && (undefined === input.collisionPostfix || "boolean" === typeof input.collisionPostfix);
546
- return "object" === typeof input && null !== input && $io0(input);
547
- };
548
- if (false === __is(input))
549
- ((input, _path, _exceptionable = true) => {
550
- const $guard = __typia.json.createAssertStringify.guard;
551
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
552
- path: _path + ".id",
553
- expected: "(string | undefined)",
554
- value: input.id
555
- }, errorFactory)) && ("string" === typeof input.url || $guard(_exceptionable, {
556
- path: _path + ".url",
557
- expected: "string",
558
- value: input.url
559
- }, errorFactory)) && (undefined === input.filename || "string" === typeof input.filename || $guard(_exceptionable, {
560
- path: _path + ".filename",
561
- expected: "(string | undefined)",
562
- value: input.filename
563
- }, errorFactory)) && (undefined === input.directory || "string" === typeof input.directory || $guard(_exceptionable, {
564
- path: _path + ".directory",
565
- expected: "(string | undefined)",
566
- value: input.directory
567
- }, errorFactory)) && (undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
568
- path: _path + ".path",
569
- expected: "(string | undefined)",
570
- value: input.path
571
- }, errorFactory)) && (undefined === input.collisionPostfix || "boolean" === typeof input.collisionPostfix || $guard(_exceptionable, {
572
- path: _path + ".collisionPostfix",
573
- expected: "(boolean | undefined)",
574
- value: input.collisionPostfix
575
- }, errorFactory));
576
- return ("object" === typeof input && null !== input || $guard(true, {
577
- path: _path + "",
578
- expected: "DownloadFileOptions",
579
- value: input
580
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
581
- path: _path + "",
582
- expected: "DownloadFileOptions",
583
- value: input
584
- }, errorFactory);
585
- })(input, "$input", true);
586
- return input;
587
- }; const stringify = input => {
588
- const $string = __typia.json.createAssertStringify.string;
589
- const $so0 = input => `{${undefined === input.id ? "" : `"id":${undefined !== input.id ? $string(input.id) : undefined},`}${undefined === input.filename ? "" : `"filename":${undefined !== input.filename ? $string(input.filename) : undefined},`}${undefined === input.directory ? "" : `"directory":${undefined !== input.directory ? $string(input.directory) : undefined},`}${undefined === input.path ? "" : `"path":${undefined !== input.path ? $string(input.path) : undefined},`}${undefined === input.collisionPostfix ? "" : `"collisionPostfix":${undefined !== input.collisionPostfix ? input.collisionPostfix : undefined},`}"url":${$string(input.url)}}`;
590
- return $so0(input);
591
- }; return stringify(assert(input, errorFactory)); };
592
- export const isDownloadMessage = input => {
593
- const $io0 = input => "download" === input.type && "string" === typeof input.id && "string" === typeof input.title && "number" === typeof input.bytes && "number" === typeof input.size && ("progressing" === input.state || "completed" === input.state || "cancelled" === input.state || "interrupted" === input.state) && "string" === typeof input.savePath && (undefined === input.done || "boolean" === typeof input.done);
594
- return "object" === typeof input && null !== input && $io0(input);
595
- };
596
- export const assertDownloadMessage = (input, errorFactory) => {
597
- const __is = input => {
598
- const $io0 = input => "download" === input.type && "string" === typeof input.id && "string" === typeof input.title && "number" === typeof input.bytes && "number" === typeof input.size && ("progressing" === input.state || "completed" === input.state || "cancelled" === input.state || "interrupted" === input.state) && "string" === typeof input.savePath && (undefined === input.done || "boolean" === typeof input.done);
599
- return "object" === typeof input && null !== input && $io0(input);
600
- };
601
- if (false === __is(input))
602
- ((input, _path, _exceptionable = true) => {
603
- const $guard = __typia.createAssert.guard;
604
- const $ao0 = (input, _path, _exceptionable = true) => ("download" === input.type || $guard(_exceptionable, {
605
- path: _path + ".type",
606
- expected: "\"download\"",
607
- value: input.type
608
- }, errorFactory)) && ("string" === typeof input.id || $guard(_exceptionable, {
609
- path: _path + ".id",
610
- expected: "string",
611
- value: input.id
612
- }, errorFactory)) && ("string" === typeof input.title || $guard(_exceptionable, {
613
- path: _path + ".title",
614
- expected: "string",
615
- value: input.title
616
- }, errorFactory)) && ("number" === typeof input.bytes || $guard(_exceptionable, {
617
- path: _path + ".bytes",
618
- expected: "number",
619
- value: input.bytes
620
- }, errorFactory)) && ("number" === typeof input.size || $guard(_exceptionable, {
621
- path: _path + ".size",
622
- expected: "number",
623
- value: input.size
624
- }, errorFactory)) && ("progressing" === input.state || "completed" === input.state || "cancelled" === input.state || "interrupted" === input.state || $guard(_exceptionable, {
625
- path: _path + ".state",
626
- expected: "(\"cancelled\" | \"completed\" | \"interrupted\" | \"progressing\")",
627
- value: input.state
628
- }, errorFactory)) && ("string" === typeof input.savePath || $guard(_exceptionable, {
629
- path: _path + ".savePath",
630
- expected: "string",
631
- value: input.savePath
632
- }, errorFactory)) && (undefined === input.done || "boolean" === typeof input.done || $guard(_exceptionable, {
633
- path: _path + ".done",
634
- expected: "(boolean | undefined)",
635
- value: input.done
636
- }, errorFactory));
637
- return ("object" === typeof input && null !== input || $guard(true, {
638
- path: _path + "",
639
- expected: "DownloadMessage",
640
- value: input
641
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
642
- path: _path + "",
643
- expected: "DownloadMessage",
644
- value: input
645
- }, errorFactory);
646
- })(input, "$input", true);
647
- return input;
648
- };
649
- export const randomDownloadMessage = generator => {
650
- const $generator = __typia.createRandom.generator;
651
- const $pick = __typia.createRandom.pick;
652
- const $ro0 = (_recursive = false, _depth = 0) => ({
653
- type: "download",
654
- id: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
655
- title: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
656
- bytes: (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100),
657
- size: (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100),
658
- state: $pick([
659
- () => "progressing",
660
- () => "completed",
661
- () => "cancelled",
662
- () => "interrupted"
663
- ])(),
664
- savePath: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
665
- done: $pick([
666
- () => undefined,
667
- () => (generator?.boolean ?? $generator.boolean)()
668
- ])()
669
- });
670
- return $ro0();
671
- };
672
- export const assertGuardDownloadMessage = (input, errorFactory) => {
673
- const __is = input => {
674
- const $io0 = input => "download" === input.type && "string" === typeof input.id && "string" === typeof input.title && "number" === typeof input.bytes && "number" === typeof input.size && ("progressing" === input.state || "completed" === input.state || "cancelled" === input.state || "interrupted" === input.state) && "string" === typeof input.savePath && (undefined === input.done || "boolean" === typeof input.done);
675
- return "object" === typeof input && null !== input && $io0(input);
676
- };
677
- if (false === __is(input))
678
- ((input, _path, _exceptionable = true) => {
679
- const $guard = __typia.createAssertGuard.guard;
680
- const $ao0 = (input, _path, _exceptionable = true) => ("download" === input.type || $guard(_exceptionable, {
681
- path: _path + ".type",
682
- expected: "\"download\"",
683
- value: input.type
684
- }, errorFactory)) && ("string" === typeof input.id || $guard(_exceptionable, {
685
- path: _path + ".id",
686
- expected: "string",
687
- value: input.id
688
- }, errorFactory)) && ("string" === typeof input.title || $guard(_exceptionable, {
689
- path: _path + ".title",
690
- expected: "string",
691
- value: input.title
692
- }, errorFactory)) && ("number" === typeof input.bytes || $guard(_exceptionable, {
693
- path: _path + ".bytes",
694
- expected: "number",
695
- value: input.bytes
696
- }, errorFactory)) && ("number" === typeof input.size || $guard(_exceptionable, {
697
- path: _path + ".size",
698
- expected: "number",
699
- value: input.size
700
- }, errorFactory)) && ("progressing" === input.state || "completed" === input.state || "cancelled" === input.state || "interrupted" === input.state || $guard(_exceptionable, {
701
- path: _path + ".state",
702
- expected: "(\"cancelled\" | \"completed\" | \"interrupted\" | \"progressing\")",
703
- value: input.state
704
- }, errorFactory)) && ("string" === typeof input.savePath || $guard(_exceptionable, {
705
- path: _path + ".savePath",
706
- expected: "string",
707
- value: input.savePath
708
- }, errorFactory)) && (undefined === input.done || "boolean" === typeof input.done || $guard(_exceptionable, {
709
- path: _path + ".done",
710
- expected: "(boolean | undefined)",
711
- value: input.done
712
- }, errorFactory));
713
- return ("object" === typeof input && null !== input || $guard(true, {
714
- path: _path + "",
715
- expected: "DownloadMessage",
716
- value: input
717
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
718
- path: _path + "",
719
- expected: "DownloadMessage",
720
- value: input
721
- }, errorFactory);
722
- })(input, "$input", true);
723
- };
724
- export const stringifyDownloadMessage = input => {
725
- const $string = __typia.json.createStringify.string;
726
- const $throws = __typia.json.createStringify.throws;
727
- const $so0 = input => `{${undefined === input.done ? "" : `"done":${undefined !== input.done ? input.done : undefined},`}"type":${(() => {
728
- if ("string" === typeof input.type)
729
- return $string(input.type);
730
- if ("string" === typeof input.type)
731
- return "\"" + input.type + "\"";
732
- $throws({
733
- expected: "\"download\"",
734
- value: input.type
735
- });
736
- })()},"id":${$string(input.id)},"title":${$string(input.title)},"bytes":${input.bytes},"size":${input.size},"state":${(() => {
737
- if ("string" === typeof input.state)
738
- return $string(input.state);
739
- if ("string" === typeof input.state)
740
- return "\"" + input.state + "\"";
741
- $throws({
742
- expected: "(\"cancelled\" | \"completed\" | \"interrupted\" | \"progressing\")",
743
- value: input.state
744
- });
745
- })()},"savePath":${$string(input.savePath)}}`;
746
- return $so0(input);
747
- };
748
- export const assertStringifyDownloadMessage = (input, errorFactory) => { const assert = (input, errorFactory) => {
749
- const __is = input => {
750
- const $io0 = input => "download" === input.type && "string" === typeof input.id && "string" === typeof input.title && ("number" === typeof input.bytes && !Number.isNaN(input.bytes)) && ("number" === typeof input.size && !Number.isNaN(input.size)) && ("progressing" === input.state || "completed" === input.state || "cancelled" === input.state || "interrupted" === input.state) && "string" === typeof input.savePath && (undefined === input.done || "boolean" === typeof input.done);
751
- return "object" === typeof input && null !== input && $io0(input);
752
- };
753
- if (false === __is(input))
754
- ((input, _path, _exceptionable = true) => {
755
- const $guard = __typia.json.createAssertStringify.guard;
756
- const $ao0 = (input, _path, _exceptionable = true) => ("download" === input.type || $guard(_exceptionable, {
757
- path: _path + ".type",
758
- expected: "\"download\"",
759
- value: input.type
760
- }, errorFactory)) && ("string" === typeof input.id || $guard(_exceptionable, {
761
- path: _path + ".id",
762
- expected: "string",
763
- value: input.id
764
- }, errorFactory)) && ("string" === typeof input.title || $guard(_exceptionable, {
765
- path: _path + ".title",
766
- expected: "string",
767
- value: input.title
768
- }, errorFactory)) && ("number" === typeof input.bytes && !Number.isNaN(input.bytes) || $guard(_exceptionable, {
769
- path: _path + ".bytes",
770
- expected: "number",
771
- value: input.bytes
772
- }, errorFactory)) && ("number" === typeof input.size && !Number.isNaN(input.size) || $guard(_exceptionable, {
773
- path: _path + ".size",
774
- expected: "number",
775
- value: input.size
776
- }, errorFactory)) && ("progressing" === input.state || "completed" === input.state || "cancelled" === input.state || "interrupted" === input.state || $guard(_exceptionable, {
777
- path: _path + ".state",
778
- expected: "(\"cancelled\" | \"completed\" | \"interrupted\" | \"progressing\")",
779
- value: input.state
780
- }, errorFactory)) && ("string" === typeof input.savePath || $guard(_exceptionable, {
781
- path: _path + ".savePath",
782
- expected: "string",
783
- value: input.savePath
784
- }, errorFactory)) && (undefined === input.done || "boolean" === typeof input.done || $guard(_exceptionable, {
785
- path: _path + ".done",
786
- expected: "(boolean | undefined)",
787
- value: input.done
788
- }, errorFactory));
789
- return ("object" === typeof input && null !== input || $guard(true, {
790
- path: _path + "",
791
- expected: "DownloadMessage",
792
- value: input
793
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
794
- path: _path + "",
795
- expected: "DownloadMessage",
796
- value: input
797
- }, errorFactory);
798
- })(input, "$input", true);
799
- return input;
800
- }; const stringify = input => {
801
- const $string = __typia.json.createAssertStringify.string;
802
- const $throws = __typia.json.createAssertStringify.throws;
803
- const $so0 = input => `{${undefined === input.done ? "" : `"done":${undefined !== input.done ? input.done : undefined},`}"type":${(() => {
804
- if ("string" === typeof input.type)
805
- return $string(input.type);
806
- if ("string" === typeof input.type)
807
- return "\"" + input.type + "\"";
808
- $throws({
809
- expected: "\"download\"",
810
- value: input.type
811
- });
812
- })()},"id":${$string(input.id)},"title":${$string(input.title)},"bytes":${input.bytes},"size":${input.size},"state":${(() => {
813
- if ("string" === typeof input.state)
814
- return $string(input.state);
815
- if ("string" === typeof input.state)
816
- return "\"" + input.state + "\"";
817
- $throws({
818
- expected: "(\"cancelled\" | \"completed\" | \"interrupted\" | \"progressing\")",
819
- value: input.state
820
- });
821
- })()},"savePath":${$string(input.savePath)}}`;
822
- return $so0(input);
823
- }; return stringify(assert(input, errorFactory)); };
1
+ export {};