@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
package/dist/app.js CHANGED
@@ -1,655 +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 && true && true && true;
4
- return "object" === typeof input && null !== input && $io0(input);
5
- };
6
- export const assertElectronHubApi = (input, errorFactory) => {
7
- const __is = input => {
8
- const $io0 = input => true && true && true && true && true && true && true && true && true && true && true && true && true;
9
- return "object" === typeof input && null !== 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) => (true || $guard(_exceptionable, {
15
- path: _path + ".startDrag",
16
- expected: "unknown",
17
- value: input.startDrag
18
- }, errorFactory)) && (true || $guard(_exceptionable, {
19
- path: _path + ".getWebdavPath",
20
- expected: "unknown",
21
- value: input.getWebdavPath
22
- }, errorFactory)) && (true || $guard(_exceptionable, {
23
- path: _path + ".showOpenDialogAsync",
24
- expected: "unknown",
25
- value: input.showOpenDialogAsync
26
- }, errorFactory)) && (true || $guard(_exceptionable, {
27
- path: _path + ".showSaveDialogAsync",
28
- expected: "unknown",
29
- value: input.showSaveDialogAsync
30
- }, errorFactory)) && (true || $guard(_exceptionable, {
31
- path: _path + ".getCurrentVersion",
32
- expected: "unknown",
33
- value: input.getCurrentVersion
34
- }, errorFactory)) && (true || $guard(_exceptionable, {
35
- path: _path + ".getLatestVersion",
36
- expected: "unknown",
37
- value: input.getLatestVersion
38
- }, errorFactory)) && (true || $guard(_exceptionable, {
39
- path: _path + ".triggerUpdate",
40
- expected: "unknown",
41
- value: input.triggerUpdate
42
- }, errorFactory)) && (true || $guard(_exceptionable, {
43
- path: _path + ".controlDownloadItem",
44
- expected: "unknown",
45
- value: input.controlDownloadItem
46
- }, errorFactory)) && (true || $guard(_exceptionable, {
47
- path: _path + ".openInApp",
48
- expected: "unknown",
49
- value: input.openInApp
50
- }, errorFactory)) && (true || $guard(_exceptionable, {
51
- path: _path + ".installDavinciPlugin",
52
- expected: "unknown",
53
- value: input.installDavinciPlugin
54
- }, errorFactory)) && (true || $guard(_exceptionable, {
55
- path: _path + ".downloadFile",
56
- expected: "unknown",
57
- value: input.downloadFile
58
- }, errorFactory)) && (true || $guard(_exceptionable, {
59
- path: _path + ".showItemInFolder",
60
- expected: "unknown",
61
- value: input.showItemInFolder
62
- }, errorFactory)) && (true || $guard(_exceptionable, {
63
- path: _path + ".openPath",
64
- expected: "unknown",
65
- value: input.openPath
66
- }, errorFactory));
67
- return ("object" === typeof input && null !== input || $guard(true, {
68
- path: _path + "",
69
- expected: "ElectronHubApi",
70
- value: input
71
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
72
- path: _path + "",
73
- expected: "ElectronHubApi",
74
- value: input
75
- }, errorFactory);
76
- })(input, "$input", true);
77
- return input;
78
- };
79
- export const randomElectronHubApi = generator => {
80
- const $ro0 = (_recursive = false, _depth = 0) => ({
81
- startDrag: undefined,
82
- getWebdavPath: undefined,
83
- showOpenDialogAsync: undefined,
84
- showSaveDialogAsync: undefined,
85
- getCurrentVersion: undefined,
86
- getLatestVersion: undefined,
87
- triggerUpdate: undefined,
88
- controlDownloadItem: undefined,
89
- openInApp: undefined,
90
- installDavinciPlugin: undefined,
91
- downloadFile: undefined,
92
- showItemInFolder: undefined,
93
- openPath: undefined
94
- });
95
- return $ro0();
96
- };
97
- export const assertGuardElectronHubApi = (input, errorFactory) => {
98
- const __is = input => {
99
- const $io0 = input => true && true && true && true && true && true && true && true && true && true && true && true && true;
100
- return "object" === typeof input && null !== input && $io0(input);
101
- };
102
- if (false === __is(input))
103
- ((input, _path, _exceptionable = true) => {
104
- const $guard = __typia.createAssertGuard.guard;
105
- const $ao0 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
106
- path: _path + ".startDrag",
107
- expected: "unknown",
108
- value: input.startDrag
109
- }, errorFactory)) && (true || $guard(_exceptionable, {
110
- path: _path + ".getWebdavPath",
111
- expected: "unknown",
112
- value: input.getWebdavPath
113
- }, errorFactory)) && (true || $guard(_exceptionable, {
114
- path: _path + ".showOpenDialogAsync",
115
- expected: "unknown",
116
- value: input.showOpenDialogAsync
117
- }, errorFactory)) && (true || $guard(_exceptionable, {
118
- path: _path + ".showSaveDialogAsync",
119
- expected: "unknown",
120
- value: input.showSaveDialogAsync
121
- }, errorFactory)) && (true || $guard(_exceptionable, {
122
- path: _path + ".getCurrentVersion",
123
- expected: "unknown",
124
- value: input.getCurrentVersion
125
- }, errorFactory)) && (true || $guard(_exceptionable, {
126
- path: _path + ".getLatestVersion",
127
- expected: "unknown",
128
- value: input.getLatestVersion
129
- }, errorFactory)) && (true || $guard(_exceptionable, {
130
- path: _path + ".triggerUpdate",
131
- expected: "unknown",
132
- value: input.triggerUpdate
133
- }, errorFactory)) && (true || $guard(_exceptionable, {
134
- path: _path + ".controlDownloadItem",
135
- expected: "unknown",
136
- value: input.controlDownloadItem
137
- }, errorFactory)) && (true || $guard(_exceptionable, {
138
- path: _path + ".openInApp",
139
- expected: "unknown",
140
- value: input.openInApp
141
- }, errorFactory)) && (true || $guard(_exceptionable, {
142
- path: _path + ".installDavinciPlugin",
143
- expected: "unknown",
144
- value: input.installDavinciPlugin
145
- }, errorFactory)) && (true || $guard(_exceptionable, {
146
- path: _path + ".downloadFile",
147
- expected: "unknown",
148
- value: input.downloadFile
149
- }, errorFactory)) && (true || $guard(_exceptionable, {
150
- path: _path + ".showItemInFolder",
151
- expected: "unknown",
152
- value: input.showItemInFolder
153
- }, errorFactory)) && (true || $guard(_exceptionable, {
154
- path: _path + ".openPath",
155
- expected: "unknown",
156
- value: input.openPath
157
- }, errorFactory));
158
- return ("object" === typeof input && null !== input || $guard(true, {
159
- path: _path + "",
160
- expected: "ElectronHubApi",
161
- value: input
162
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
163
- path: _path + "",
164
- expected: "ElectronHubApi",
165
- value: input
166
- }, errorFactory);
167
- })(input, "$input", true);
168
- };
169
- export const stringifyElectronHubApi = input => {
170
- const $so0 = input => "{}";
171
- return $so0(input);
172
- };
173
- export const assertStringifyElectronHubApi = (input, errorFactory) => { const assert = (input, errorFactory) => {
174
- const __is = input => {
175
- const $io0 = input => true && true && true && true && true && true && true && true && true && true && true && true && true;
176
- return "object" === typeof input && null !== input && $io0(input);
177
- };
178
- if (false === __is(input))
179
- ((input, _path, _exceptionable = true) => {
180
- const $guard = __typia.json.createAssertStringify.guard;
181
- const $ao0 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
182
- path: _path + ".startDrag",
183
- expected: "unknown",
184
- value: input.startDrag
185
- }, errorFactory)) && (true || $guard(_exceptionable, {
186
- path: _path + ".getWebdavPath",
187
- expected: "unknown",
188
- value: input.getWebdavPath
189
- }, errorFactory)) && (true || $guard(_exceptionable, {
190
- path: _path + ".showOpenDialogAsync",
191
- expected: "unknown",
192
- value: input.showOpenDialogAsync
193
- }, errorFactory)) && (true || $guard(_exceptionable, {
194
- path: _path + ".showSaveDialogAsync",
195
- expected: "unknown",
196
- value: input.showSaveDialogAsync
197
- }, errorFactory)) && (true || $guard(_exceptionable, {
198
- path: _path + ".getCurrentVersion",
199
- expected: "unknown",
200
- value: input.getCurrentVersion
201
- }, errorFactory)) && (true || $guard(_exceptionable, {
202
- path: _path + ".getLatestVersion",
203
- expected: "unknown",
204
- value: input.getLatestVersion
205
- }, errorFactory)) && (true || $guard(_exceptionable, {
206
- path: _path + ".triggerUpdate",
207
- expected: "unknown",
208
- value: input.triggerUpdate
209
- }, errorFactory)) && (true || $guard(_exceptionable, {
210
- path: _path + ".controlDownloadItem",
211
- expected: "unknown",
212
- value: input.controlDownloadItem
213
- }, errorFactory)) && (true || $guard(_exceptionable, {
214
- path: _path + ".openInApp",
215
- expected: "unknown",
216
- value: input.openInApp
217
- }, errorFactory)) && (true || $guard(_exceptionable, {
218
- path: _path + ".installDavinciPlugin",
219
- expected: "unknown",
220
- value: input.installDavinciPlugin
221
- }, errorFactory)) && (true || $guard(_exceptionable, {
222
- path: _path + ".downloadFile",
223
- expected: "unknown",
224
- value: input.downloadFile
225
- }, errorFactory)) && (true || $guard(_exceptionable, {
226
- path: _path + ".showItemInFolder",
227
- expected: "unknown",
228
- value: input.showItemInFolder
229
- }, errorFactory)) && (true || $guard(_exceptionable, {
230
- path: _path + ".openPath",
231
- expected: "unknown",
232
- value: input.openPath
233
- }, errorFactory));
234
- return ("object" === typeof input && null !== input || $guard(true, {
235
- path: _path + "",
236
- expected: "ElectronHubApi",
237
- value: input
238
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
239
- path: _path + "",
240
- expected: "ElectronHubApi",
241
- value: input
242
- }, errorFactory);
243
- })(input, "$input", true);
244
- return input;
245
- }; const stringify = input => {
246
- const $so0 = input => "{}";
247
- return $so0(input);
248
- }; return stringify(assert(input, errorFactory)); };
249
- export const isDownloadFileOptions = input => {
250
- 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);
251
- return "object" === typeof input && null !== input && $io0(input);
252
- };
253
- export const assertDownloadFileOptions = (input, errorFactory) => {
254
- const __is = input => {
255
- 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);
256
- return "object" === typeof input && null !== input && $io0(input);
257
- };
258
- if (false === __is(input))
259
- ((input, _path, _exceptionable = true) => {
260
- const $guard = __typia.createAssert.guard;
261
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
262
- path: _path + ".id",
263
- expected: "(string | undefined)",
264
- value: input.id
265
- }, errorFactory)) && ("string" === typeof input.url || $guard(_exceptionable, {
266
- path: _path + ".url",
267
- expected: "string",
268
- value: input.url
269
- }, errorFactory)) && (undefined === input.filename || "string" === typeof input.filename || $guard(_exceptionable, {
270
- path: _path + ".filename",
271
- expected: "(string | undefined)",
272
- value: input.filename
273
- }, errorFactory)) && (undefined === input.directory || "string" === typeof input.directory || $guard(_exceptionable, {
274
- path: _path + ".directory",
275
- expected: "(string | undefined)",
276
- value: input.directory
277
- }, errorFactory)) && (undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
278
- path: _path + ".path",
279
- expected: "(string | undefined)",
280
- value: input.path
281
- }, errorFactory)) && (undefined === input.collisionPostfix || "boolean" === typeof input.collisionPostfix || $guard(_exceptionable, {
282
- path: _path + ".collisionPostfix",
283
- expected: "(boolean | undefined)",
284
- value: input.collisionPostfix
285
- }, errorFactory));
286
- return ("object" === typeof input && null !== input || $guard(true, {
287
- path: _path + "",
288
- expected: "DownloadFileOptions",
289
- value: input
290
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
291
- path: _path + "",
292
- expected: "DownloadFileOptions",
293
- value: input
294
- }, errorFactory);
295
- })(input, "$input", true);
296
- return input;
297
- };
298
- export const randomDownloadFileOptions = generator => {
299
- const $generator = __typia.createRandom.generator;
300
- const $pick = __typia.createRandom.pick;
301
- const $ro0 = (_recursive = false, _depth = 0) => ({
302
- id: $pick([
303
- () => undefined,
304
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
305
- ])(),
306
- url: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
307
- filename: $pick([
308
- () => undefined,
309
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
310
- ])(),
311
- directory: $pick([
312
- () => undefined,
313
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
314
- ])(),
315
- path: $pick([
316
- () => undefined,
317
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
318
- ])(),
319
- collisionPostfix: $pick([
320
- () => undefined,
321
- () => (generator?.boolean ?? $generator.boolean)()
322
- ])()
323
- });
324
- return $ro0();
325
- };
326
- export const assertGuardDownloadFileOptions = (input, errorFactory) => {
327
- const __is = input => {
328
- 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);
329
- return "object" === typeof input && null !== input && $io0(input);
330
- };
331
- if (false === __is(input))
332
- ((input, _path, _exceptionable = true) => {
333
- const $guard = __typia.createAssertGuard.guard;
334
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
335
- path: _path + ".id",
336
- expected: "(string | undefined)",
337
- value: input.id
338
- }, errorFactory)) && ("string" === typeof input.url || $guard(_exceptionable, {
339
- path: _path + ".url",
340
- expected: "string",
341
- value: input.url
342
- }, errorFactory)) && (undefined === input.filename || "string" === typeof input.filename || $guard(_exceptionable, {
343
- path: _path + ".filename",
344
- expected: "(string | undefined)",
345
- value: input.filename
346
- }, errorFactory)) && (undefined === input.directory || "string" === typeof input.directory || $guard(_exceptionable, {
347
- path: _path + ".directory",
348
- expected: "(string | undefined)",
349
- value: input.directory
350
- }, errorFactory)) && (undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
351
- path: _path + ".path",
352
- expected: "(string | undefined)",
353
- value: input.path
354
- }, errorFactory)) && (undefined === input.collisionPostfix || "boolean" === typeof input.collisionPostfix || $guard(_exceptionable, {
355
- path: _path + ".collisionPostfix",
356
- expected: "(boolean | undefined)",
357
- value: input.collisionPostfix
358
- }, errorFactory));
359
- return ("object" === typeof input && null !== input || $guard(true, {
360
- path: _path + "",
361
- expected: "DownloadFileOptions",
362
- value: input
363
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
364
- path: _path + "",
365
- expected: "DownloadFileOptions",
366
- value: input
367
- }, errorFactory);
368
- })(input, "$input", true);
369
- };
370
- export const stringifyDownloadFileOptions = input => {
371
- const $string = __typia.json.createStringify.string;
372
- 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)}}`;
373
- return $so0(input);
374
- };
375
- export const assertStringifyDownloadFileOptions = (input, errorFactory) => { const assert = (input, errorFactory) => {
376
- const __is = input => {
377
- 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);
378
- return "object" === typeof input && null !== input && $io0(input);
379
- };
380
- if (false === __is(input))
381
- ((input, _path, _exceptionable = true) => {
382
- const $guard = __typia.json.createAssertStringify.guard;
383
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.id || "string" === typeof input.id || $guard(_exceptionable, {
384
- path: _path + ".id",
385
- expected: "(string | undefined)",
386
- value: input.id
387
- }, errorFactory)) && ("string" === typeof input.url || $guard(_exceptionable, {
388
- path: _path + ".url",
389
- expected: "string",
390
- value: input.url
391
- }, errorFactory)) && (undefined === input.filename || "string" === typeof input.filename || $guard(_exceptionable, {
392
- path: _path + ".filename",
393
- expected: "(string | undefined)",
394
- value: input.filename
395
- }, errorFactory)) && (undefined === input.directory || "string" === typeof input.directory || $guard(_exceptionable, {
396
- path: _path + ".directory",
397
- expected: "(string | undefined)",
398
- value: input.directory
399
- }, errorFactory)) && (undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
400
- path: _path + ".path",
401
- expected: "(string | undefined)",
402
- value: input.path
403
- }, errorFactory)) && (undefined === input.collisionPostfix || "boolean" === typeof input.collisionPostfix || $guard(_exceptionable, {
404
- path: _path + ".collisionPostfix",
405
- expected: "(boolean | undefined)",
406
- value: input.collisionPostfix
407
- }, errorFactory));
408
- return ("object" === typeof input && null !== input || $guard(true, {
409
- path: _path + "",
410
- expected: "DownloadFileOptions",
411
- value: input
412
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
413
- path: _path + "",
414
- expected: "DownloadFileOptions",
415
- value: input
416
- }, errorFactory);
417
- })(input, "$input", true);
418
- return input;
419
- }; const stringify = input => {
420
- const $string = __typia.json.createAssertStringify.string;
421
- 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)}}`;
422
- return $so0(input);
423
- }; return stringify(assert(input, errorFactory)); };
424
- export const isDownloadMessage = input => {
425
- 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);
426
- return "object" === typeof input && null !== input && $io0(input);
427
- };
428
- export const assertDownloadMessage = (input, errorFactory) => {
429
- const __is = input => {
430
- 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);
431
- return "object" === typeof input && null !== input && $io0(input);
432
- };
433
- if (false === __is(input))
434
- ((input, _path, _exceptionable = true) => {
435
- const $guard = __typia.createAssert.guard;
436
- const $ao0 = (input, _path, _exceptionable = true) => ("download" === input.type || $guard(_exceptionable, {
437
- path: _path + ".type",
438
- expected: "\"download\"",
439
- value: input.type
440
- }, errorFactory)) && ("string" === typeof input.id || $guard(_exceptionable, {
441
- path: _path + ".id",
442
- expected: "string",
443
- value: input.id
444
- }, errorFactory)) && ("string" === typeof input.title || $guard(_exceptionable, {
445
- path: _path + ".title",
446
- expected: "string",
447
- value: input.title
448
- }, errorFactory)) && ("number" === typeof input.bytes || $guard(_exceptionable, {
449
- path: _path + ".bytes",
450
- expected: "number",
451
- value: input.bytes
452
- }, errorFactory)) && ("number" === typeof input.size || $guard(_exceptionable, {
453
- path: _path + ".size",
454
- expected: "number",
455
- value: input.size
456
- }, errorFactory)) && ("progressing" === input.state || "completed" === input.state || "cancelled" === input.state || "interrupted" === input.state || $guard(_exceptionable, {
457
- path: _path + ".state",
458
- expected: "(\"cancelled\" | \"completed\" | \"interrupted\" | \"progressing\")",
459
- value: input.state
460
- }, errorFactory)) && ("string" === typeof input.savePath || $guard(_exceptionable, {
461
- path: _path + ".savePath",
462
- expected: "string",
463
- value: input.savePath
464
- }, errorFactory)) && (undefined === input.done || "boolean" === typeof input.done || $guard(_exceptionable, {
465
- path: _path + ".done",
466
- expected: "(boolean | undefined)",
467
- value: input.done
468
- }, errorFactory));
469
- return ("object" === typeof input && null !== input || $guard(true, {
470
- path: _path + "",
471
- expected: "DownloadMessage",
472
- value: input
473
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
474
- path: _path + "",
475
- expected: "DownloadMessage",
476
- value: input
477
- }, errorFactory);
478
- })(input, "$input", true);
479
- return input;
480
- };
481
- export const randomDownloadMessage = generator => {
482
- const $generator = __typia.createRandom.generator;
483
- const $pick = __typia.createRandom.pick;
484
- const $ro0 = (_recursive = false, _depth = 0) => ({
485
- type: "download",
486
- id: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
487
- title: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
488
- bytes: (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100),
489
- size: (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100),
490
- state: $pick([
491
- () => "progressing",
492
- () => "completed",
493
- () => "cancelled",
494
- () => "interrupted"
495
- ])(),
496
- savePath: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
497
- done: $pick([
498
- () => undefined,
499
- () => (generator?.boolean ?? $generator.boolean)()
500
- ])()
501
- });
502
- return $ro0();
503
- };
504
- export const assertGuardDownloadMessage = (input, errorFactory) => {
505
- const __is = input => {
506
- 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);
507
- return "object" === typeof input && null !== input && $io0(input);
508
- };
509
- if (false === __is(input))
510
- ((input, _path, _exceptionable = true) => {
511
- const $guard = __typia.createAssertGuard.guard;
512
- const $ao0 = (input, _path, _exceptionable = true) => ("download" === input.type || $guard(_exceptionable, {
513
- path: _path + ".type",
514
- expected: "\"download\"",
515
- value: input.type
516
- }, errorFactory)) && ("string" === typeof input.id || $guard(_exceptionable, {
517
- path: _path + ".id",
518
- expected: "string",
519
- value: input.id
520
- }, errorFactory)) && ("string" === typeof input.title || $guard(_exceptionable, {
521
- path: _path + ".title",
522
- expected: "string",
523
- value: input.title
524
- }, errorFactory)) && ("number" === typeof input.bytes || $guard(_exceptionable, {
525
- path: _path + ".bytes",
526
- expected: "number",
527
- value: input.bytes
528
- }, errorFactory)) && ("number" === typeof input.size || $guard(_exceptionable, {
529
- path: _path + ".size",
530
- expected: "number",
531
- value: input.size
532
- }, errorFactory)) && ("progressing" === input.state || "completed" === input.state || "cancelled" === input.state || "interrupted" === input.state || $guard(_exceptionable, {
533
- path: _path + ".state",
534
- expected: "(\"cancelled\" | \"completed\" | \"interrupted\" | \"progressing\")",
535
- value: input.state
536
- }, errorFactory)) && ("string" === typeof input.savePath || $guard(_exceptionable, {
537
- path: _path + ".savePath",
538
- expected: "string",
539
- value: input.savePath
540
- }, errorFactory)) && (undefined === input.done || "boolean" === typeof input.done || $guard(_exceptionable, {
541
- path: _path + ".done",
542
- expected: "(boolean | undefined)",
543
- value: input.done
544
- }, errorFactory));
545
- return ("object" === typeof input && null !== input || $guard(true, {
546
- path: _path + "",
547
- expected: "DownloadMessage",
548
- value: input
549
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
550
- path: _path + "",
551
- expected: "DownloadMessage",
552
- value: input
553
- }, errorFactory);
554
- })(input, "$input", true);
555
- };
556
- export const stringifyDownloadMessage = input => {
557
- const $string = __typia.json.createStringify.string;
558
- const $throws = __typia.json.createStringify.throws;
559
- const $so0 = input => `{${undefined === input.done ? "" : `"done":${undefined !== input.done ? input.done : undefined},`}"type":${(() => {
560
- if ("string" === typeof input.type)
561
- return $string(input.type);
562
- if ("string" === typeof input.type)
563
- return "\"" + input.type + "\"";
564
- $throws({
565
- expected: "\"download\"",
566
- value: input.type
567
- });
568
- })()},"id":${$string(input.id)},"title":${$string(input.title)},"bytes":${input.bytes},"size":${input.size},"state":${(() => {
569
- if ("string" === typeof input.state)
570
- return $string(input.state);
571
- if ("string" === typeof input.state)
572
- return "\"" + input.state + "\"";
573
- $throws({
574
- expected: "(\"cancelled\" | \"completed\" | \"interrupted\" | \"progressing\")",
575
- value: input.state
576
- });
577
- })()},"savePath":${$string(input.savePath)}}`;
578
- return $so0(input);
579
- };
580
- export const assertStringifyDownloadMessage = (input, errorFactory) => { const assert = (input, errorFactory) => {
581
- const __is = input => {
582
- 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);
583
- return "object" === typeof input && null !== input && $io0(input);
584
- };
585
- if (false === __is(input))
586
- ((input, _path, _exceptionable = true) => {
587
- const $guard = __typia.json.createAssertStringify.guard;
588
- const $ao0 = (input, _path, _exceptionable = true) => ("download" === input.type || $guard(_exceptionable, {
589
- path: _path + ".type",
590
- expected: "\"download\"",
591
- value: input.type
592
- }, errorFactory)) && ("string" === typeof input.id || $guard(_exceptionable, {
593
- path: _path + ".id",
594
- expected: "string",
595
- value: input.id
596
- }, errorFactory)) && ("string" === typeof input.title || $guard(_exceptionable, {
597
- path: _path + ".title",
598
- expected: "string",
599
- value: input.title
600
- }, errorFactory)) && ("number" === typeof input.bytes && !Number.isNaN(input.bytes) || $guard(_exceptionable, {
601
- path: _path + ".bytes",
602
- expected: "number",
603
- value: input.bytes
604
- }, errorFactory)) && ("number" === typeof input.size && !Number.isNaN(input.size) || $guard(_exceptionable, {
605
- path: _path + ".size",
606
- expected: "number",
607
- value: input.size
608
- }, errorFactory)) && ("progressing" === input.state || "completed" === input.state || "cancelled" === input.state || "interrupted" === input.state || $guard(_exceptionable, {
609
- path: _path + ".state",
610
- expected: "(\"cancelled\" | \"completed\" | \"interrupted\" | \"progressing\")",
611
- value: input.state
612
- }, errorFactory)) && ("string" === typeof input.savePath || $guard(_exceptionable, {
613
- path: _path + ".savePath",
614
- expected: "string",
615
- value: input.savePath
616
- }, errorFactory)) && (undefined === input.done || "boolean" === typeof input.done || $guard(_exceptionable, {
617
- path: _path + ".done",
618
- expected: "(boolean | undefined)",
619
- value: input.done
620
- }, errorFactory));
621
- return ("object" === typeof input && null !== input || $guard(true, {
622
- path: _path + "",
623
- expected: "DownloadMessage",
624
- value: input
625
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
626
- path: _path + "",
627
- expected: "DownloadMessage",
628
- value: input
629
- }, errorFactory);
630
- })(input, "$input", true);
631
- return input;
632
- }; const stringify = input => {
633
- const $string = __typia.json.createAssertStringify.string;
634
- const $throws = __typia.json.createAssertStringify.throws;
635
- const $so0 = input => `{${undefined === input.done ? "" : `"done":${undefined !== input.done ? input.done : undefined},`}"type":${(() => {
636
- if ("string" === typeof input.type)
637
- return $string(input.type);
638
- if ("string" === typeof input.type)
639
- return "\"" + input.type + "\"";
640
- $throws({
641
- expected: "\"download\"",
642
- value: input.type
643
- });
644
- })()},"id":${$string(input.id)},"title":${$string(input.title)},"bytes":${input.bytes},"size":${input.size},"state":${(() => {
645
- if ("string" === typeof input.state)
646
- return $string(input.state);
647
- if ("string" === typeof input.state)
648
- return "\"" + input.state + "\"";
649
- $throws({
650
- expected: "(\"cancelled\" | \"completed\" | \"interrupted\" | \"progressing\")",
651
- value: input.state
652
- });
653
- })()},"savePath":${$string(input.savePath)}}`;
654
- return $so0(input);
655
- }; return stringify(assert(input, errorFactory)); };
1
+ export {};