@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/rpc.js CHANGED
@@ -1,514 +1,129 @@
1
- import __typia from "typia";
2
- export const isNxtImportMode = input => {
3
- return "clone" === input || "seed" === input;
4
- };
5
- export const assertNxtImportMode = (input, errorFactory) => {
6
- const __is = input => {
7
- return "clone" === input || "seed" === input;
8
- };
9
- if (false === __is(input))
10
- ((input, _path, _exceptionable = true) => {
11
- const $guard = __typia.createAssert.guard;
12
- return "clone" === input || "seed" === input || $guard(true, {
13
- path: _path + "",
14
- expected: "(\"clone\" | \"seed\")",
15
- value: input
16
- }, errorFactory);
17
- })(input, "$input", true);
18
- return input;
19
- };
20
- export const randomNxtImportMode = generator => {
21
- const $pick = __typia.createRandom.pick;
22
- return $pick([
23
- () => "clone",
24
- () => "seed"
25
- ])();
26
- };
27
- export const assertGuardNxtImportMode = (input, errorFactory) => {
28
- const __is = input => {
29
- return "clone" === input || "seed" === input;
30
- };
31
- if (false === __is(input))
32
- ((input, _path, _exceptionable = true) => {
33
- const $guard = __typia.createAssertGuard.guard;
34
- return "clone" === input || "seed" === input || $guard(true, {
35
- path: _path + "",
36
- expected: "(\"clone\" | \"seed\")",
37
- value: input
38
- }, errorFactory);
39
- })(input, "$input", true);
40
- };
41
- export const stringifyNxtImportMode = input => {
42
- const $string = __typia.json.createStringify.string;
43
- const $throws = __typia.json.createStringify.throws;
44
- return (() => {
45
- if ("string" === typeof input)
46
- return $string(input);
47
- if ("string" === typeof input)
48
- return "\"" + input + "\"";
49
- $throws({
50
- expected: "(\"clone\" | \"seed\")",
51
- value: input
52
- });
53
- })();
54
- };
55
- export const assertStringifyNxtImportMode = (input, errorFactory) => { const assert = (input, errorFactory) => {
56
- const __is = input => {
57
- return "clone" === input || "seed" === input;
58
- };
59
- if (false === __is(input))
60
- ((input, _path, _exceptionable = true) => {
61
- const $guard = __typia.json.createAssertStringify.guard;
62
- return "clone" === input || "seed" === input || $guard(true, {
63
- path: _path + "",
64
- expected: "(\"clone\" | \"seed\")",
65
- value: input
66
- }, errorFactory);
67
- })(input, "$input", true);
68
- return input;
69
- }; const stringify = input => {
70
- const $string = __typia.json.createAssertStringify.string;
71
- const $throws = __typia.json.createAssertStringify.throws;
72
- return (() => {
73
- if ("string" === typeof input)
74
- return $string(input);
75
- if ("string" === typeof input)
76
- return "\"" + input + "\"";
77
- $throws({
78
- expected: "(\"clone\" | \"seed\")",
79
- value: input
80
- });
81
- })();
82
- }; return stringify(assert(input, errorFactory)); };
83
- export const isNxtExport = input => {
84
- const $io0 = input => "number" === typeof input.version && (undefined === input.date || "string" === typeof input.date) && (undefined === input.root || Array.isArray(input.root) && input.root.every(elem => "string" === typeof elem)) && ("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && $io1(input.assets)) && (undefined === input.files || Array.isArray(input.files) && input.files.every(elem => "string" === typeof elem));
85
- const $io1 = input => Object.keys(input).every(key => {
86
- const value = input[key];
87
- if (undefined === value)
88
- return true;
89
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io2(value);
90
- });
91
- const $io2 = input => (undefined === input._children || Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem)) && Object.keys(input).every(key => {
92
- if (["_children"].some(prop => key === prop))
93
- return true;
94
- const value = input[key];
95
- if (undefined === value)
96
- return true;
1
+ import * as __typia_transform__assertGuard from "typia/lib/internal/_assertGuard.js";
2
+ import * as __typia_transform__accessExpressionAsString from "typia/lib/internal/_accessExpressionAsString.js";
3
+ import typia from 'typia';
4
+ export const assertGuardNxtExport = (() => { const _io0 = input => "number" === typeof input.version && (undefined === input.date || "string" === typeof input.date) && (undefined === input.root || Array.isArray(input.root) && input.root.every(elem => "string" === typeof elem)) && ("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && _io1(input.assets)) && (undefined === input.files || Array.isArray(input.files) && input.files.every(elem => "string" === typeof elem)); const _io1 = input => Object.keys(input).every(key => {
5
+ const value = input[key];
6
+ if (undefined === value)
7
+ return true;
8
+ return "object" === typeof value && null !== value && false === Array.isArray(value) && _io2(value);
9
+ }); const _io2 = input => (undefined === input._children || Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem)) && Object.keys(input).every(key => {
10
+ if (["_children"].some(prop => key === prop))
11
+ return true;
12
+ const value = input[key];
13
+ if (undefined === value)
97
14
  return true;
98
- });
99
- return "object" === typeof input && null !== input && $io0(input);
100
- };
101
- export const assertNxtExport = (input, errorFactory) => {
102
- const __is = input => {
103
- const $io0 = input => "number" === typeof input.version && (undefined === input.date || "string" === typeof input.date) && (undefined === input.root || Array.isArray(input.root) && input.root.every(elem => "string" === typeof elem)) && ("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && $io1(input.assets)) && (undefined === input.files || Array.isArray(input.files) && input.files.every(elem => "string" === typeof elem));
104
- const $io1 = input => Object.keys(input).every(key => {
105
- const value = input[key];
106
- if (undefined === value)
107
- return true;
108
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io2(value);
109
- });
110
- const $io2 = input => (undefined === input._children || Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem)) && Object.keys(input).every(key => {
111
- if (["_children"].some(prop => key === prop))
112
- return true;
113
- const value = input[key];
114
- if (undefined === value)
115
- return true;
116
- return true;
117
- });
118
- return "object" === typeof input && null !== input && $io0(input);
119
- };
120
- if (false === __is(input))
121
- ((input, _path, _exceptionable = true) => {
122
- const $guard = __typia.createAssert.guard;
123
- const $join = __typia.createAssert.join;
124
- const $ao0 = (input, _path, _exceptionable = true) => ("number" === typeof input.version || $guard(_exceptionable, {
125
- path: _path + ".version",
126
- expected: "number",
127
- value: input.version
128
- }, errorFactory)) && (undefined === input.date || "string" === typeof input.date || $guard(_exceptionable, {
129
- path: _path + ".date",
130
- expected: "(string | undefined)",
131
- value: input.date
132
- }, errorFactory)) && (undefined === input.root || (Array.isArray(input.root) || $guard(_exceptionable, {
133
- path: _path + ".root",
134
- expected: "(Array<string> | undefined)",
135
- value: input.root
136
- }, errorFactory)) && input.root.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
137
- path: _path + ".root[" + _index1 + "]",
138
- expected: "string",
139
- value: elem
140
- }, errorFactory)) || $guard(_exceptionable, {
141
- path: _path + ".root",
142
- expected: "(Array<string> | undefined)",
143
- value: input.root
144
- }, errorFactory)) && (("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) || $guard(_exceptionable, {
145
- path: _path + ".assets",
146
- expected: "__type",
147
- value: input.assets
148
- }, errorFactory)) && $ao1(input.assets, _path + ".assets", true && _exceptionable) || $guard(_exceptionable, {
149
- path: _path + ".assets",
150
- expected: "__type",
151
- value: input.assets
152
- }, errorFactory)) && (undefined === input.files || (Array.isArray(input.files) || $guard(_exceptionable, {
153
- path: _path + ".files",
154
- expected: "(Array<string> | undefined)",
155
- value: input.files
156
- }, errorFactory)) && input.files.every((elem, _index2) => "string" === typeof elem || $guard(_exceptionable, {
157
- path: _path + ".files[" + _index2 + "]",
158
- expected: "string",
159
- value: elem
160
- }, errorFactory)) || $guard(_exceptionable, {
161
- path: _path + ".files",
162
- expected: "(Array<string> | undefined)",
163
- value: input.files
164
- }, errorFactory));
165
- const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
166
- const value = input[key];
167
- if (undefined === value)
168
- return true;
169
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
170
- path: _path + $join(key),
171
- expected: "__type.o1",
172
- value: value
173
- }, errorFactory)) && $ao2(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
174
- path: _path + $join(key),
175
- expected: "__type.o1",
176
- value: value
177
- }, errorFactory);
178
- });
179
- const $ao2 = (input, _path, _exceptionable = true) => (undefined === input._children || (Array.isArray(input._children) || $guard(_exceptionable, {
180
- path: _path + "._children",
181
- expected: "(Array<string> | undefined)",
182
- value: input._children
183
- }, errorFactory)) && input._children.every((elem, _index3) => "string" === typeof elem || $guard(_exceptionable, {
184
- path: _path + "._children[" + _index3 + "]",
185
- expected: "string",
186
- value: elem
187
- }, errorFactory)) || $guard(_exceptionable, {
188
- path: _path + "._children",
189
- expected: "(Array<string> | undefined)",
190
- value: input._children
191
- }, errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
192
- if (["_children"].some(prop => key === prop))
193
- return true;
194
- const value = input[key];
195
- if (undefined === value)
196
- return true;
197
- return true;
198
- }));
199
- return ("object" === typeof input && null !== input || $guard(true, {
200
- path: _path + "",
201
- expected: "NxtExport",
202
- value: input
203
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
204
- path: _path + "",
205
- expected: "NxtExport",
206
- value: input
207
- }, errorFactory);
208
- })(input, "$input", true);
209
- return input;
210
- };
211
- export const randomNxtExport = generator => {
212
- const $generator = __typia.createRandom.generator;
213
- const $pick = __typia.createRandom.pick;
214
- const $ro0 = (_recursive = false, _depth = 0) => ({
215
- version: (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100),
216
- date: $pick([
217
- () => undefined,
218
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
219
- ])(),
220
- root: $pick([
221
- () => undefined,
222
- () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
223
- ])(),
224
- assets: $ro1(_recursive, _recursive ? 1 + _depth : _depth),
225
- files: $pick([
226
- () => undefined,
227
- () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
228
- ])()
229
- });
230
- const $ro1 = (_recursive = false, _depth = 0) => {
231
- const output = {};
232
- (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = $ro2(_recursive, _recursive ? 1 + _depth : _depth), (generator?.integer ?? $generator.integer)(0, 3));
233
- return output;
234
- };
235
- const $ro2 = (_recursive = false, _depth = 0) => {
236
- const output = {
237
- _children: $pick([
238
- () => undefined,
239
- () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
240
- ])()
241
- };
242
- (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = "any type used...", (generator?.integer ?? $generator.integer)(0, 3));
243
- return output;
244
- };
245
- return $ro0();
246
- };
247
- export const assertGuardNxtExport = (input, errorFactory) => {
248
- const __is = input => {
249
- const $io0 = input => "number" === typeof input.version && (undefined === input.date || "string" === typeof input.date) && (undefined === input.root || Array.isArray(input.root) && input.root.every(elem => "string" === typeof elem)) && ("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && $io1(input.assets)) && (undefined === input.files || Array.isArray(input.files) && input.files.every(elem => "string" === typeof elem));
250
- const $io1 = input => Object.keys(input).every(key => {
251
- const value = input[key];
252
- if (undefined === value)
253
- return true;
254
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io2(value);
255
- });
256
- const $io2 = input => (undefined === input._children || Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem)) && Object.keys(input).every(key => {
257
- if (["_children"].some(prop => key === prop))
258
- return true;
259
- const value = input[key];
260
- if (undefined === value)
261
- return true;
262
- return true;
263
- });
264
- return "object" === typeof input && null !== input && $io0(input);
265
- };
266
- if (false === __is(input))
267
- ((input, _path, _exceptionable = true) => {
268
- const $guard = __typia.createAssertGuard.guard;
269
- const $join = __typia.createAssertGuard.join;
270
- const $ao0 = (input, _path, _exceptionable = true) => ("number" === typeof input.version || $guard(_exceptionable, {
271
- path: _path + ".version",
272
- expected: "number",
273
- value: input.version
274
- }, errorFactory)) && (undefined === input.date || "string" === typeof input.date || $guard(_exceptionable, {
275
- path: _path + ".date",
276
- expected: "(string | undefined)",
277
- value: input.date
278
- }, errorFactory)) && (undefined === input.root || (Array.isArray(input.root) || $guard(_exceptionable, {
279
- path: _path + ".root",
280
- expected: "(Array<string> | undefined)",
281
- value: input.root
282
- }, errorFactory)) && input.root.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
283
- path: _path + ".root[" + _index1 + "]",
284
- expected: "string",
285
- value: elem
286
- }, errorFactory)) || $guard(_exceptionable, {
287
- path: _path + ".root",
288
- expected: "(Array<string> | undefined)",
289
- value: input.root
290
- }, errorFactory)) && (("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) || $guard(_exceptionable, {
291
- path: _path + ".assets",
292
- expected: "__type",
293
- value: input.assets
294
- }, errorFactory)) && $ao1(input.assets, _path + ".assets", true && _exceptionable) || $guard(_exceptionable, {
295
- path: _path + ".assets",
296
- expected: "__type",
297
- value: input.assets
298
- }, errorFactory)) && (undefined === input.files || (Array.isArray(input.files) || $guard(_exceptionable, {
299
- path: _path + ".files",
300
- expected: "(Array<string> | undefined)",
301
- value: input.files
302
- }, errorFactory)) && input.files.every((elem, _index2) => "string" === typeof elem || $guard(_exceptionable, {
303
- path: _path + ".files[" + _index2 + "]",
304
- expected: "string",
305
- value: elem
306
- }, errorFactory)) || $guard(_exceptionable, {
307
- path: _path + ".files",
308
- expected: "(Array<string> | undefined)",
309
- value: input.files
310
- }, errorFactory));
311
- const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
312
- const value = input[key];
313
- if (undefined === value)
314
- return true;
315
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
316
- path: _path + $join(key),
317
- expected: "__type.o1",
318
- value: value
319
- }, errorFactory)) && $ao2(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
320
- path: _path + $join(key),
321
- expected: "__type.o1",
322
- value: value
323
- }, errorFactory);
324
- });
325
- const $ao2 = (input, _path, _exceptionable = true) => (undefined === input._children || (Array.isArray(input._children) || $guard(_exceptionable, {
326
- path: _path + "._children",
327
- expected: "(Array<string> | undefined)",
328
- value: input._children
329
- }, errorFactory)) && input._children.every((elem, _index3) => "string" === typeof elem || $guard(_exceptionable, {
330
- path: _path + "._children[" + _index3 + "]",
331
- expected: "string",
332
- value: elem
333
- }, errorFactory)) || $guard(_exceptionable, {
334
- path: _path + "._children",
335
- expected: "(Array<string> | undefined)",
336
- value: input._children
337
- }, errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
338
- if (["_children"].some(prop => key === prop))
339
- return true;
340
- const value = input[key];
341
- if (undefined === value)
342
- return true;
343
- return true;
344
- }));
345
- return ("object" === typeof input && null !== input || $guard(true, {
346
- path: _path + "",
347
- expected: "NxtExport",
348
- value: input
349
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
350
- path: _path + "",
351
- expected: "NxtExport",
352
- value: input
353
- }, errorFactory);
354
- })(input, "$input", true);
355
- };
356
- export const stringifyNxtExport = input => {
357
- const $io1 = input => Object.keys(input).every(key => {
358
- const value = input[key];
359
- if (undefined === value)
360
- return true;
361
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io2(value);
362
- });
363
- const $io2 = input => (undefined === input._children || Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem)) && Object.keys(input).every(key => {
364
- if (["_children"].some(prop => key === prop))
365
- return true;
366
- const value = input[key];
367
- if (undefined === value)
368
- return true;
15
+ return true;
16
+ }); const _ao0 = (input, _path, _exceptionable = true) => ("number" === typeof input.version || __typia_transform__assertGuard._assertGuard(_exceptionable, {
17
+ method: "typia.createAssertGuard",
18
+ path: _path + ".version",
19
+ expected: "number",
20
+ value: input.version
21
+ }, _errorFactory)) && (undefined === input.date || "string" === typeof input.date || __typia_transform__assertGuard._assertGuard(_exceptionable, {
22
+ method: "typia.createAssertGuard",
23
+ path: _path + ".date",
24
+ expected: "(string | undefined)",
25
+ value: input.date
26
+ }, _errorFactory)) && (undefined === input.root || (Array.isArray(input.root) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
27
+ method: "typia.createAssertGuard",
28
+ path: _path + ".root",
29
+ expected: "(Array<string> | undefined)",
30
+ value: input.root
31
+ }, _errorFactory)) && input.root.every((elem, _index4) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
32
+ method: "typia.createAssertGuard",
33
+ path: _path + ".root[" + _index4 + "]",
34
+ expected: "string",
35
+ value: elem
36
+ }, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
37
+ method: "typia.createAssertGuard",
38
+ path: _path + ".root",
39
+ expected: "(Array<string> | undefined)",
40
+ value: input.root
41
+ }, _errorFactory)) && (("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
42
+ method: "typia.createAssertGuard",
43
+ path: _path + ".assets",
44
+ expected: "__type",
45
+ value: input.assets
46
+ }, _errorFactory)) && _ao1(input.assets, _path + ".assets", true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
47
+ method: "typia.createAssertGuard",
48
+ path: _path + ".assets",
49
+ expected: "__type",
50
+ value: input.assets
51
+ }, _errorFactory)) && (undefined === input.files || (Array.isArray(input.files) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
52
+ method: "typia.createAssertGuard",
53
+ path: _path + ".files",
54
+ expected: "(Array<string> | undefined)",
55
+ value: input.files
56
+ }, _errorFactory)) && input.files.every((elem, _index5) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
57
+ method: "typia.createAssertGuard",
58
+ path: _path + ".files[" + _index5 + "]",
59
+ expected: "string",
60
+ value: elem
61
+ }, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
62
+ method: "typia.createAssertGuard",
63
+ path: _path + ".files",
64
+ expected: "(Array<string> | undefined)",
65
+ value: input.files
66
+ }, _errorFactory)); const _ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
67
+ const value = input[key];
68
+ if (undefined === value)
369
69
  return true;
370
- });
371
- const $string = __typia.json.createStringify.string;
372
- const $tail = __typia.json.createStringify.tail;
373
- const $so0 = input => `{${undefined === input.date ? "" : `"date":${undefined !== input.date ? $string(input.date) : undefined},`}${undefined === input.root ? "" : `"root":${undefined !== input.root ? `[${input.root.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.files ? "" : `"files":${undefined !== input.files ? `[${input.files.map(elem => $string(elem)).join(",")}]` : undefined},`}"version":${input.version},"assets":${$so1(input.assets)}}`;
374
- const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
375
- return ""; return `${JSON.stringify(key)}:${$so2(value)}`; }).filter(str => "" !== str).join(",")}}`;
376
- const $so2 = input => `{${$tail(`${undefined === input._children ? "" : `"_children":${undefined !== input._children ? `[${input._children.map(elem => $string(elem)).join(",")}]` : undefined},`}${Object.entries(input).map(([key, value]) => { if (undefined === value)
377
- return ""; if (["_children"].some(regular => regular === key))
378
- return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`;
379
- return $so0(input);
380
- };
381
- export const assertStringifyNxtExport = (input, errorFactory) => { const assert = (input, errorFactory) => {
382
- const __is = input => {
383
- const $io0 = input => "number" === typeof input.version && !Number.isNaN(input.version) && (undefined === input.date || "string" === typeof input.date) && (undefined === input.root || Array.isArray(input.root) && input.root.every(elem => "string" === typeof elem)) && ("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) && $io1(input.assets)) && (undefined === input.files || Array.isArray(input.files) && input.files.every(elem => "string" === typeof elem));
384
- const $io1 = input => Object.keys(input).every(key => {
385
- const value = input[key];
386
- if (undefined === value)
387
- return true;
388
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io2(value);
389
- });
390
- const $io2 = input => (undefined === input._children || Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem)) && Object.keys(input).every(key => {
391
- if (["_children"].some(prop => key === prop))
392
- return true;
393
- const value = input[key];
394
- if (undefined === value)
395
- return true;
396
- return true;
397
- });
398
- return "object" === typeof input && null !== input && $io0(input);
399
- };
400
- if (false === __is(input))
401
- ((input, _path, _exceptionable = true) => {
402
- const $guard = __typia.json.createAssertStringify.guard;
403
- const $join = __typia.json.createAssertStringify.join;
404
- const $ao0 = (input, _path, _exceptionable = true) => ("number" === typeof input.version && !Number.isNaN(input.version) || $guard(_exceptionable, {
405
- path: _path + ".version",
406
- expected: "number",
407
- value: input.version
408
- }, errorFactory)) && (undefined === input.date || "string" === typeof input.date || $guard(_exceptionable, {
409
- path: _path + ".date",
410
- expected: "(string | undefined)",
411
- value: input.date
412
- }, errorFactory)) && (undefined === input.root || (Array.isArray(input.root) || $guard(_exceptionable, {
413
- path: _path + ".root",
414
- expected: "(Array<string> | undefined)",
415
- value: input.root
416
- }, errorFactory)) && input.root.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
417
- path: _path + ".root[" + _index1 + "]",
418
- expected: "string",
419
- value: elem
420
- }, errorFactory)) || $guard(_exceptionable, {
421
- path: _path + ".root",
422
- expected: "(Array<string> | undefined)",
423
- value: input.root
424
- }, errorFactory)) && (("object" === typeof input.assets && null !== input.assets && false === Array.isArray(input.assets) || $guard(_exceptionable, {
425
- path: _path + ".assets",
426
- expected: "__type",
427
- value: input.assets
428
- }, errorFactory)) && $ao1(input.assets, _path + ".assets", true && _exceptionable) || $guard(_exceptionable, {
429
- path: _path + ".assets",
430
- expected: "__type",
431
- value: input.assets
432
- }, errorFactory)) && (undefined === input.files || (Array.isArray(input.files) || $guard(_exceptionable, {
433
- path: _path + ".files",
434
- expected: "(Array<string> | undefined)",
435
- value: input.files
436
- }, errorFactory)) && input.files.every((elem, _index2) => "string" === typeof elem || $guard(_exceptionable, {
437
- path: _path + ".files[" + _index2 + "]",
438
- expected: "string",
439
- value: elem
440
- }, errorFactory)) || $guard(_exceptionable, {
441
- path: _path + ".files",
442
- expected: "(Array<string> | undefined)",
443
- value: input.files
444
- }, errorFactory));
445
- const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
446
- const value = input[key];
447
- if (undefined === value)
448
- return true;
449
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
450
- path: _path + $join(key),
451
- expected: "__type.o1",
452
- value: value
453
- }, errorFactory)) && $ao2(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
454
- path: _path + $join(key),
455
- expected: "__type.o1",
456
- value: value
457
- }, errorFactory);
458
- });
459
- const $ao2 = (input, _path, _exceptionable = true) => (undefined === input._children || (Array.isArray(input._children) || $guard(_exceptionable, {
460
- path: _path + "._children",
461
- expected: "(Array<string> | undefined)",
462
- value: input._children
463
- }, errorFactory)) && input._children.every((elem, _index3) => "string" === typeof elem || $guard(_exceptionable, {
464
- path: _path + "._children[" + _index3 + "]",
465
- expected: "string",
466
- value: elem
467
- }, errorFactory)) || $guard(_exceptionable, {
468
- path: _path + "._children",
469
- expected: "(Array<string> | undefined)",
470
- value: input._children
471
- }, errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
472
- if (["_children"].some(prop => key === prop))
473
- return true;
474
- const value = input[key];
475
- if (undefined === value)
476
- return true;
477
- return true;
478
- }));
479
- return ("object" === typeof input && null !== input || $guard(true, {
480
- path: _path + "",
481
- expected: "NxtExport",
482
- value: input
483
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
484
- path: _path + "",
485
- expected: "NxtExport",
486
- value: input
487
- }, errorFactory);
488
- })(input, "$input", true);
489
- return input;
490
- }; const stringify = input => {
491
- const $io1 = input => Object.keys(input).every(key => {
492
- const value = input[key];
493
- if (undefined === value)
494
- return true;
495
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io2(value);
496
- });
497
- const $io2 = input => (undefined === input._children || Array.isArray(input._children) && input._children.every(elem => "string" === typeof elem)) && Object.keys(input).every(key => {
498
- if (["_children"].some(prop => key === prop))
499
- return true;
500
- const value = input[key];
501
- if (undefined === value)
502
- return true;
70
+ return ("object" === typeof value && null !== value && false === Array.isArray(value) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
71
+ method: "typia.createAssertGuard",
72
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
73
+ expected: "__type.o1",
74
+ value: value
75
+ }, _errorFactory)) && _ao2(value, _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key), true && _exceptionable) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
76
+ method: "typia.createAssertGuard",
77
+ path: _path + __typia_transform__accessExpressionAsString._accessExpressionAsString(key),
78
+ expected: "__type.o1",
79
+ value: value
80
+ }, _errorFactory);
81
+ }); const _ao2 = (input, _path, _exceptionable = true) => (undefined === input._children || (Array.isArray(input._children) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
82
+ method: "typia.createAssertGuard",
83
+ path: _path + "._children",
84
+ expected: "(Array<string> | undefined)",
85
+ value: input._children
86
+ }, _errorFactory)) && input._children.every((elem, _index6) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
87
+ method: "typia.createAssertGuard",
88
+ path: _path + "._children[" + _index6 + "]",
89
+ expected: "string",
90
+ value: elem
91
+ }, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
92
+ method: "typia.createAssertGuard",
93
+ path: _path + "._children",
94
+ expected: "(Array<string> | undefined)",
95
+ value: input._children
96
+ }, _errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
97
+ if (["_children"].some(prop => key === prop))
503
98
  return true;
504
- });
505
- const $string = __typia.json.createAssertStringify.string;
506
- const $tail = __typia.json.createAssertStringify.tail;
507
- const $so0 = input => `{${undefined === input.date ? "" : `"date":${undefined !== input.date ? $string(input.date) : undefined},`}${undefined === input.root ? "" : `"root":${undefined !== input.root ? `[${input.root.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.files ? "" : `"files":${undefined !== input.files ? `[${input.files.map(elem => $string(elem)).join(",")}]` : undefined},`}"version":${input.version},"assets":${$so1(input.assets)}}`;
508
- const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
509
- return ""; return `${JSON.stringify(key)}:${$so2(value)}`; }).filter(str => "" !== str).join(",")}}`;
510
- const $so2 = input => `{${$tail(`${undefined === input._children ? "" : `"_children":${undefined !== input._children ? `[${input._children.map(elem => $string(elem)).join(",")}]` : undefined},`}${Object.entries(input).map(([key, value]) => { if (undefined === value)
511
- return ""; if (["_children"].some(regular => regular === key))
512
- return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}`)}}`;
513
- return $so0(input);
514
- }; return stringify(assert(input, errorFactory)); };
99
+ const value = input[key];
100
+ if (undefined === value)
101
+ return true;
102
+ return true;
103
+ })); const __is = input => "object" === typeof input && null !== input && _io0(input); let _errorFactory; return (input, errorFactory) => {
104
+ if (false === __is(input)) {
105
+ _errorFactory = errorFactory;
106
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || __typia_transform__assertGuard._assertGuard(true, {
107
+ method: "typia.createAssertGuard",
108
+ path: _path + "",
109
+ expected: "NxtExport",
110
+ value: input
111
+ }, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
112
+ method: "typia.createAssertGuard",
113
+ path: _path + "",
114
+ expected: "NxtExport",
115
+ value: input
116
+ }, _errorFactory))(input, "$input", true);
117
+ }
118
+ }; })();
119
+ export const assertGuardNxtImportMode = (() => { const __is = input => "clone" === input || "seed" === input; let _errorFactory; return (input, errorFactory) => {
120
+ if (false === __is(input)) {
121
+ _errorFactory = errorFactory;
122
+ ((input, _path, _exceptionable = true) => "clone" === input || "seed" === input || __typia_transform__assertGuard._assertGuard(true, {
123
+ method: "typia.createAssertGuard",
124
+ path: _path + "",
125
+ expected: "(\"clone\" | \"seed\")",
126
+ value: input
127
+ }, _errorFactory))(input, "$input", true);
128
+ }
129
+ }; })();