@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
@@ -1,212 +0,0 @@
1
- import __typia from "typia";
2
- export const isSubtitleDomainRecord = input => {
3
- const $io0 = input => (undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && true;
4
- const $io1 = input => (undefined === input.lang || "string" === typeof input.lang) && "number" === typeof input.start && "number" === typeof input.end && (undefined === input.text || "string" === typeof input.text);
5
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
6
- };
7
- export const assertSubtitleDomainRecord = (input, errorFactory) => {
8
- const __is = input => {
9
- const $io0 = input => (undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && true;
10
- const $io1 = input => (undefined === input.lang || "string" === typeof input.lang) && "number" === typeof input.start && "number" === typeof input.end && (undefined === input.text || "string" === typeof input.text);
11
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
12
- };
13
- if (false === __is(input))
14
- ((input, _path, _exceptionable = true) => {
15
- const $guard = __typia.createAssert.guard;
16
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
17
- path: _path + ".value",
18
- expected: "(Array<__type> | undefined)",
19
- value: input.value
20
- }, errorFactory)) && input.value.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
21
- path: _path + ".value[" + _index1 + "]",
22
- expected: "__type",
23
- value: elem
24
- }, errorFactory)) && $ao1(elem, _path + ".value[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
25
- path: _path + ".value[" + _index1 + "]",
26
- expected: "__type",
27
- value: elem
28
- }, errorFactory)) || $guard(_exceptionable, {
29
- path: _path + ".value",
30
- expected: "(Array<__type> | undefined)",
31
- value: input.value
32
- }, errorFactory)) && true;
33
- const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
34
- path: _path + ".lang",
35
- expected: "(string | undefined)",
36
- value: input.lang
37
- }, errorFactory)) && ("number" === typeof input.start || $guard(_exceptionable, {
38
- path: _path + ".start",
39
- expected: "number",
40
- value: input.start
41
- }, errorFactory)) && ("number" === typeof input.end || $guard(_exceptionable, {
42
- path: _path + ".end",
43
- expected: "number",
44
- value: input.end
45
- }, errorFactory)) && (undefined === input.text || "string" === typeof input.text || $guard(_exceptionable, {
46
- path: _path + ".text",
47
- expected: "(string | undefined)",
48
- value: input.text
49
- }, errorFactory));
50
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
51
- path: _path + "",
52
- expected: "SubtitleDomainRecord",
53
- value: input
54
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
55
- path: _path + "",
56
- expected: "SubtitleDomainRecord",
57
- value: input
58
- }, errorFactory);
59
- })(input, "$input", true);
60
- return input;
61
- };
62
- export const randomSubtitleDomainRecord = generator => {
63
- const $generator = __typia.createRandom.generator;
64
- const $pick = __typia.createRandom.pick;
65
- const $ro0 = (_recursive = false, _depth = 0) => ({
66
- value: $pick([
67
- () => undefined,
68
- () => (generator?.array ?? $generator.array)(() => $ro1(_recursive, _recursive ? 1 + _depth : _depth))
69
- ])(),
70
- style: $pick([
71
- () => "any type used...",
72
- () => undefined
73
- ])()
74
- });
75
- const $ro1 = (_recursive = false, _depth = 0) => ({
76
- lang: $pick([
77
- () => undefined,
78
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
79
- ])(),
80
- start: (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100),
81
- end: (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100),
82
- text: $pick([
83
- () => undefined,
84
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
85
- ])()
86
- });
87
- return $ro0();
88
- };
89
- export const assertGuardSubtitleDomainRecord = (input, errorFactory) => {
90
- const __is = input => {
91
- const $io0 = input => (undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && true;
92
- const $io1 = input => (undefined === input.lang || "string" === typeof input.lang) && "number" === typeof input.start && "number" === typeof input.end && (undefined === input.text || "string" === typeof input.text);
93
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
94
- };
95
- if (false === __is(input))
96
- ((input, _path, _exceptionable = true) => {
97
- const $guard = __typia.createAssertGuard.guard;
98
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
99
- path: _path + ".value",
100
- expected: "(Array<__type> | undefined)",
101
- value: input.value
102
- }, errorFactory)) && input.value.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
103
- path: _path + ".value[" + _index1 + "]",
104
- expected: "__type",
105
- value: elem
106
- }, errorFactory)) && $ao1(elem, _path + ".value[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
107
- path: _path + ".value[" + _index1 + "]",
108
- expected: "__type",
109
- value: elem
110
- }, errorFactory)) || $guard(_exceptionable, {
111
- path: _path + ".value",
112
- expected: "(Array<__type> | undefined)",
113
- value: input.value
114
- }, errorFactory)) && true;
115
- const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
116
- path: _path + ".lang",
117
- expected: "(string | undefined)",
118
- value: input.lang
119
- }, errorFactory)) && ("number" === typeof input.start || $guard(_exceptionable, {
120
- path: _path + ".start",
121
- expected: "number",
122
- value: input.start
123
- }, errorFactory)) && ("number" === typeof input.end || $guard(_exceptionable, {
124
- path: _path + ".end",
125
- expected: "number",
126
- value: input.end
127
- }, errorFactory)) && (undefined === input.text || "string" === typeof input.text || $guard(_exceptionable, {
128
- path: _path + ".text",
129
- expected: "(string | undefined)",
130
- value: input.text
131
- }, errorFactory));
132
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
133
- path: _path + "",
134
- expected: "SubtitleDomainRecord",
135
- value: input
136
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
137
- path: _path + "",
138
- expected: "SubtitleDomainRecord",
139
- value: input
140
- }, errorFactory);
141
- })(input, "$input", true);
142
- };
143
- export const stringifySubtitleDomainRecord = input => {
144
- const $io1 = input => (undefined === input.lang || "string" === typeof input.lang) && "number" === typeof input.start && "number" === typeof input.end && (undefined === input.text || "string" === typeof input.text);
145
- const $tail = __typia.json.createStringify.tail;
146
- const $string = __typia.json.createStringify.string;
147
- const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $so1(elem)).join(",")}]` : undefined},`}${undefined === input.style || "function" === typeof input.style ? "" : `"style":${undefined !== input.style ? JSON.stringify(input.style) : undefined}`}`)}}`;
148
- const $so1 = input => `{${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.text ? "" : `"text":${undefined !== input.text ? $string(input.text) : undefined},`}"start":${input.start},"end":${input.end}}`;
149
- return $so0(input);
150
- };
151
- export const assertStringifySubtitleDomainRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
152
- const __is = input => {
153
- const $io0 = input => (undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "object" === typeof elem && null !== elem && $io1(elem))) && true;
154
- const $io1 = input => (undefined === input.lang || "string" === typeof input.lang) && ("number" === typeof input.start && !Number.isNaN(input.start)) && ("number" === typeof input.end && !Number.isNaN(input.end)) && (undefined === input.text || "string" === typeof input.text);
155
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
156
- };
157
- if (false === __is(input))
158
- ((input, _path, _exceptionable = true) => {
159
- const $guard = __typia.json.createAssertStringify.guard;
160
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
161
- path: _path + ".value",
162
- expected: "(Array<__type> | undefined)",
163
- value: input.value
164
- }, errorFactory)) && input.value.every((elem, _index1) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
165
- path: _path + ".value[" + _index1 + "]",
166
- expected: "__type",
167
- value: elem
168
- }, errorFactory)) && $ao1(elem, _path + ".value[" + _index1 + "]", true && _exceptionable) || $guard(_exceptionable, {
169
- path: _path + ".value[" + _index1 + "]",
170
- expected: "__type",
171
- value: elem
172
- }, errorFactory)) || $guard(_exceptionable, {
173
- path: _path + ".value",
174
- expected: "(Array<__type> | undefined)",
175
- value: input.value
176
- }, errorFactory)) && true;
177
- const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.lang || "string" === typeof input.lang || $guard(_exceptionable, {
178
- path: _path + ".lang",
179
- expected: "(string | undefined)",
180
- value: input.lang
181
- }, errorFactory)) && ("number" === typeof input.start && !Number.isNaN(input.start) || $guard(_exceptionable, {
182
- path: _path + ".start",
183
- expected: "number",
184
- value: input.start
185
- }, errorFactory)) && ("number" === typeof input.end && !Number.isNaN(input.end) || $guard(_exceptionable, {
186
- path: _path + ".end",
187
- expected: "number",
188
- value: input.end
189
- }, errorFactory)) && (undefined === input.text || "string" === typeof input.text || $guard(_exceptionable, {
190
- path: _path + ".text",
191
- expected: "(string | undefined)",
192
- value: input.text
193
- }, errorFactory));
194
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
195
- path: _path + "",
196
- expected: "SubtitleDomainRecord",
197
- value: input
198
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
199
- path: _path + "",
200
- expected: "SubtitleDomainRecord",
201
- value: input
202
- }, errorFactory);
203
- })(input, "$input", true);
204
- return input;
205
- }; const stringify = input => {
206
- const $io1 = input => (undefined === input.lang || "string" === typeof input.lang) && "number" === typeof input.start && "number" === typeof input.end && (undefined === input.text || "string" === typeof input.text);
207
- const $tail = __typia.json.createAssertStringify.tail;
208
- const $string = __typia.json.createAssertStringify.string;
209
- const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $so1(elem)).join(",")}]` : undefined},`}${undefined === input.style || "function" === typeof input.style ? "" : `"style":${undefined !== input.style ? JSON.stringify(input.style) : undefined}`}`)}}`;
210
- const $so1 = input => `{${undefined === input.lang ? "" : `"lang":${undefined !== input.lang ? $string(input.lang) : undefined},`}${undefined === input.text ? "" : `"text":${undefined !== input.text ? $string(input.text) : undefined},`}"start":${input.start},"end":${input.end}}`;
211
- return $so0(input);
212
- }; return stringify(assert(input, errorFactory)); };
@@ -1,23 +0,0 @@
1
- import { type AssertionGuard as __AssertionGuard } from "typia";
2
- export interface TemplateDomainRecords {
3
- ":template": TemplateRecord;
4
- }
5
- export interface TemplateRecord {
6
- mixin?: string[];
7
- properties?: Record<string, TemplateProperty>;
8
- }
9
- export declare const isTemplateRecord: (input: unknown) => input is TemplateRecord;
10
- export declare const assertTemplateRecord: (input: unknown) => TemplateRecord;
11
- export declare const randomTemplateRecord: () => TemplateRecord;
12
- export declare const assertGuardTemplateRecord: __AssertionGuard<TemplateRecord>;
13
- export declare const stringifyTemplateRecord: (input: TemplateRecord) => string;
14
- export declare const assertStringifyTemplateRecord: (input: unknown) => string;
15
- export interface TemplateProperty {
16
- path?: string;
17
- }
18
- export declare const isTemplateProperty: (input: unknown) => input is TemplateProperty;
19
- export declare const assertTemplateProperty: (input: unknown) => TemplateProperty;
20
- export declare const randomTemplateProperty: () => TemplateProperty;
21
- export declare const assertGuardTemplateProperty: __AssertionGuard<TemplateProperty>;
22
- export declare const stringifyTemplateProperty: (input: TemplateProperty) => string;
23
- export declare const assertStringifyTemplateProperty: (input: unknown) => string;
@@ -1,372 +0,0 @@
1
- import __typia from "typia";
2
- export const isTemplateRecord = input => {
3
- const $io0 = input => (undefined === input.mixin || Array.isArray(input.mixin) && input.mixin.every(elem => "string" === typeof elem)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io1(input.properties));
4
- 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
- });
10
- const $io2 = input => undefined === input.path || "string" === typeof input.path;
11
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
12
- };
13
- export const assertTemplateRecord = (input, errorFactory) => {
14
- const __is = input => {
15
- const $io0 = input => (undefined === input.mixin || Array.isArray(input.mixin) && input.mixin.every(elem => "string" === typeof elem)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io1(input.properties));
16
- const $io1 = input => Object.keys(input).every(key => {
17
- const value = input[key];
18
- if (undefined === value)
19
- return true;
20
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io2(value);
21
- });
22
- const $io2 = input => undefined === input.path || "string" === typeof input.path;
23
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
24
- };
25
- if (false === __is(input))
26
- ((input, _path, _exceptionable = true) => {
27
- const $guard = __typia.createAssert.guard;
28
- const $join = __typia.createAssert.join;
29
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.mixin || (Array.isArray(input.mixin) || $guard(_exceptionable, {
30
- path: _path + ".mixin",
31
- expected: "(Array<string> | undefined)",
32
- value: input.mixin
33
- }, errorFactory)) && input.mixin.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
34
- path: _path + ".mixin[" + _index1 + "]",
35
- expected: "string",
36
- value: elem
37
- }, errorFactory)) || $guard(_exceptionable, {
38
- path: _path + ".mixin",
39
- expected: "(Array<string> | undefined)",
40
- value: input.mixin
41
- }, errorFactory)) && (undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || $guard(_exceptionable, {
42
- path: _path + ".properties",
43
- expected: "(Record<string, TemplateProperty> | undefined)",
44
- value: input.properties
45
- }, errorFactory)) && $ao1(input.properties, _path + ".properties", true && _exceptionable) || $guard(_exceptionable, {
46
- path: _path + ".properties",
47
- expected: "(Record<string, TemplateProperty> | undefined)",
48
- value: input.properties
49
- }, errorFactory));
50
- const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
51
- const value = input[key];
52
- if (undefined === value)
53
- return true;
54
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
55
- path: _path + $join(key),
56
- expected: "TemplateProperty",
57
- value: value
58
- }, errorFactory)) && $ao2(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
59
- path: _path + $join(key),
60
- expected: "TemplateProperty",
61
- value: value
62
- }, errorFactory);
63
- });
64
- const $ao2 = (input, _path, _exceptionable = true) => undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
65
- path: _path + ".path",
66
- expected: "(string | undefined)",
67
- value: input.path
68
- }, errorFactory);
69
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
70
- path: _path + "",
71
- expected: "TemplateRecord",
72
- value: input
73
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
74
- path: _path + "",
75
- expected: "TemplateRecord",
76
- value: input
77
- }, errorFactory);
78
- })(input, "$input", true);
79
- return input;
80
- };
81
- export const randomTemplateRecord = generator => {
82
- const $generator = __typia.createRandom.generator;
83
- const $pick = __typia.createRandom.pick;
84
- const $ro0 = (_recursive = false, _depth = 0) => ({
85
- mixin: $pick([
86
- () => undefined,
87
- () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
88
- ])(),
89
- properties: $pick([
90
- () => undefined,
91
- () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
92
- ])()
93
- });
94
- const $ro1 = (_recursive = false, _depth = 0) => {
95
- const output = {};
96
- (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));
97
- return output;
98
- };
99
- const $ro2 = (_recursive = false, _depth = 0) => ({
100
- path: $pick([
101
- () => undefined,
102
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
103
- ])()
104
- });
105
- return $ro0();
106
- };
107
- export const assertGuardTemplateRecord = (input, errorFactory) => {
108
- const __is = input => {
109
- const $io0 = input => (undefined === input.mixin || Array.isArray(input.mixin) && input.mixin.every(elem => "string" === typeof elem)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io1(input.properties));
110
- const $io1 = input => Object.keys(input).every(key => {
111
- const value = input[key];
112
- if (undefined === value)
113
- return true;
114
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io2(value);
115
- });
116
- const $io2 = input => undefined === input.path || "string" === typeof input.path;
117
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
118
- };
119
- if (false === __is(input))
120
- ((input, _path, _exceptionable = true) => {
121
- const $guard = __typia.createAssertGuard.guard;
122
- const $join = __typia.createAssertGuard.join;
123
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.mixin || (Array.isArray(input.mixin) || $guard(_exceptionable, {
124
- path: _path + ".mixin",
125
- expected: "(Array<string> | undefined)",
126
- value: input.mixin
127
- }, errorFactory)) && input.mixin.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
128
- path: _path + ".mixin[" + _index1 + "]",
129
- expected: "string",
130
- value: elem
131
- }, errorFactory)) || $guard(_exceptionable, {
132
- path: _path + ".mixin",
133
- expected: "(Array<string> | undefined)",
134
- value: input.mixin
135
- }, errorFactory)) && (undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || $guard(_exceptionable, {
136
- path: _path + ".properties",
137
- expected: "(Record<string, TemplateProperty> | undefined)",
138
- value: input.properties
139
- }, errorFactory)) && $ao1(input.properties, _path + ".properties", true && _exceptionable) || $guard(_exceptionable, {
140
- path: _path + ".properties",
141
- expected: "(Record<string, TemplateProperty> | undefined)",
142
- value: input.properties
143
- }, errorFactory));
144
- const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
145
- const value = input[key];
146
- if (undefined === value)
147
- return true;
148
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
149
- path: _path + $join(key),
150
- expected: "TemplateProperty",
151
- value: value
152
- }, errorFactory)) && $ao2(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
153
- path: _path + $join(key),
154
- expected: "TemplateProperty",
155
- value: value
156
- }, errorFactory);
157
- });
158
- const $ao2 = (input, _path, _exceptionable = true) => undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
159
- path: _path + ".path",
160
- expected: "(string | undefined)",
161
- value: input.path
162
- }, errorFactory);
163
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
164
- path: _path + "",
165
- expected: "TemplateRecord",
166
- value: input
167
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
168
- path: _path + "",
169
- expected: "TemplateRecord",
170
- value: input
171
- }, errorFactory);
172
- })(input, "$input", true);
173
- };
174
- export const stringifyTemplateRecord = input => {
175
- const $io1 = input => Object.keys(input).every(key => {
176
- const value = input[key];
177
- if (undefined === value)
178
- return true;
179
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io2(value);
180
- });
181
- const $io2 = input => undefined === input.path || "string" === typeof input.path;
182
- const $string = __typia.json.createStringify.string;
183
- const $tail = __typia.json.createStringify.tail;
184
- const $so0 = input => `{${$tail(`${undefined === input.mixin ? "" : `"mixin":${undefined !== input.mixin ? `[${input.mixin.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.properties ? "" : `"properties":${undefined !== input.properties ? $so1(input.properties) : undefined}`}`)}}`;
185
- const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
186
- return ""; return `${JSON.stringify(key)}:${$so2(value)}`; }).filter(str => "" !== str).join(",")}}`;
187
- const $so2 = input => `{${$tail(`${undefined === input.path ? "" : `"path":${undefined !== input.path ? $string(input.path) : undefined}`}`)}}`;
188
- return $so0(input);
189
- };
190
- export const assertStringifyTemplateRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
191
- const __is = input => {
192
- const $io0 = input => (undefined === input.mixin || Array.isArray(input.mixin) && input.mixin.every(elem => "string" === typeof elem)) && (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io1(input.properties));
193
- const $io1 = input => Object.keys(input).every(key => {
194
- const value = input[key];
195
- if (undefined === value)
196
- return true;
197
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io2(value);
198
- });
199
- const $io2 = input => undefined === input.path || "string" === typeof input.path;
200
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
201
- };
202
- if (false === __is(input))
203
- ((input, _path, _exceptionable = true) => {
204
- const $guard = __typia.json.createAssertStringify.guard;
205
- const $join = __typia.json.createAssertStringify.join;
206
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.mixin || (Array.isArray(input.mixin) || $guard(_exceptionable, {
207
- path: _path + ".mixin",
208
- expected: "(Array<string> | undefined)",
209
- value: input.mixin
210
- }, errorFactory)) && input.mixin.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
211
- path: _path + ".mixin[" + _index1 + "]",
212
- expected: "string",
213
- value: elem
214
- }, errorFactory)) || $guard(_exceptionable, {
215
- path: _path + ".mixin",
216
- expected: "(Array<string> | undefined)",
217
- value: input.mixin
218
- }, errorFactory)) && (undefined === input.properties || ("object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) || $guard(_exceptionable, {
219
- path: _path + ".properties",
220
- expected: "(Record<string, TemplateProperty> | undefined)",
221
- value: input.properties
222
- }, errorFactory)) && $ao1(input.properties, _path + ".properties", true && _exceptionable) || $guard(_exceptionable, {
223
- path: _path + ".properties",
224
- expected: "(Record<string, TemplateProperty> | undefined)",
225
- value: input.properties
226
- }, errorFactory));
227
- const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
228
- const value = input[key];
229
- if (undefined === value)
230
- return true;
231
- return ("object" === typeof value && null !== value && false === Array.isArray(value) || $guard(_exceptionable, {
232
- path: _path + $join(key),
233
- expected: "TemplateProperty",
234
- value: value
235
- }, errorFactory)) && $ao2(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
236
- path: _path + $join(key),
237
- expected: "TemplateProperty",
238
- value: value
239
- }, errorFactory);
240
- });
241
- const $ao2 = (input, _path, _exceptionable = true) => undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
242
- path: _path + ".path",
243
- expected: "(string | undefined)",
244
- value: input.path
245
- }, errorFactory);
246
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
247
- path: _path + "",
248
- expected: "TemplateRecord",
249
- value: input
250
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
251
- path: _path + "",
252
- expected: "TemplateRecord",
253
- value: input
254
- }, errorFactory);
255
- })(input, "$input", true);
256
- return input;
257
- }; const stringify = input => {
258
- const $io1 = input => Object.keys(input).every(key => {
259
- const value = input[key];
260
- if (undefined === value)
261
- return true;
262
- return "object" === typeof value && null !== value && false === Array.isArray(value) && $io2(value);
263
- });
264
- const $io2 = input => undefined === input.path || "string" === typeof input.path;
265
- const $string = __typia.json.createAssertStringify.string;
266
- const $tail = __typia.json.createAssertStringify.tail;
267
- const $so0 = input => `{${$tail(`${undefined === input.mixin ? "" : `"mixin":${undefined !== input.mixin ? `[${input.mixin.map(elem => $string(elem)).join(",")}]` : undefined},`}${undefined === input.properties ? "" : `"properties":${undefined !== input.properties ? $so1(input.properties) : undefined}`}`)}}`;
268
- const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
269
- return ""; return `${JSON.stringify(key)}:${$so2(value)}`; }).filter(str => "" !== str).join(",")}}`;
270
- const $so2 = input => `{${$tail(`${undefined === input.path ? "" : `"path":${undefined !== input.path ? $string(input.path) : undefined}`}`)}}`;
271
- return $so0(input);
272
- }; return stringify(assert(input, errorFactory)); };
273
- export const isTemplateProperty = input => {
274
- const $io0 = input => undefined === input.path || "string" === typeof input.path;
275
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
276
- };
277
- export const assertTemplateProperty = (input, errorFactory) => {
278
- const __is = input => {
279
- const $io0 = input => undefined === input.path || "string" === typeof input.path;
280
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
281
- };
282
- if (false === __is(input))
283
- ((input, _path, _exceptionable = true) => {
284
- const $guard = __typia.createAssert.guard;
285
- const $ao0 = (input, _path, _exceptionable = true) => undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
286
- path: _path + ".path",
287
- expected: "(string | undefined)",
288
- value: input.path
289
- }, errorFactory);
290
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
291
- path: _path + "",
292
- expected: "TemplateProperty",
293
- value: input
294
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
295
- path: _path + "",
296
- expected: "TemplateProperty",
297
- value: input
298
- }, errorFactory);
299
- })(input, "$input", true);
300
- return input;
301
- };
302
- export const randomTemplateProperty = generator => {
303
- const $generator = __typia.createRandom.generator;
304
- const $pick = __typia.createRandom.pick;
305
- const $ro0 = (_recursive = false, _depth = 0) => ({
306
- path: $pick([
307
- () => undefined,
308
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
309
- ])()
310
- });
311
- return $ro0();
312
- };
313
- export const assertGuardTemplateProperty = (input, errorFactory) => {
314
- const __is = input => {
315
- const $io0 = input => undefined === input.path || "string" === typeof input.path;
316
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
317
- };
318
- if (false === __is(input))
319
- ((input, _path, _exceptionable = true) => {
320
- const $guard = __typia.createAssertGuard.guard;
321
- const $ao0 = (input, _path, _exceptionable = true) => undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
322
- path: _path + ".path",
323
- expected: "(string | undefined)",
324
- value: input.path
325
- }, errorFactory);
326
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
327
- path: _path + "",
328
- expected: "TemplateProperty",
329
- value: input
330
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
331
- path: _path + "",
332
- expected: "TemplateProperty",
333
- value: input
334
- }, errorFactory);
335
- })(input, "$input", true);
336
- };
337
- export const stringifyTemplateProperty = input => {
338
- const $string = __typia.json.createStringify.string;
339
- const $tail = __typia.json.createStringify.tail;
340
- const $so0 = input => `{${$tail(`${undefined === input.path ? "" : `"path":${undefined !== input.path ? $string(input.path) : undefined}`}`)}}`;
341
- return $so0(input);
342
- };
343
- export const assertStringifyTemplateProperty = (input, errorFactory) => { const assert = (input, errorFactory) => {
344
- const __is = input => {
345
- const $io0 = input => undefined === input.path || "string" === typeof input.path;
346
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
347
- };
348
- if (false === __is(input))
349
- ((input, _path, _exceptionable = true) => {
350
- const $guard = __typia.json.createAssertStringify.guard;
351
- const $ao0 = (input, _path, _exceptionable = true) => undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
352
- path: _path + ".path",
353
- expected: "(string | undefined)",
354
- value: input.path
355
- }, errorFactory);
356
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
357
- path: _path + "",
358
- expected: "TemplateProperty",
359
- value: input
360
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
361
- path: _path + "",
362
- expected: "TemplateProperty",
363
- value: input
364
- }, errorFactory);
365
- })(input, "$input", true);
366
- return input;
367
- }; const stringify = input => {
368
- const $string = __typia.json.createAssertStringify.string;
369
- const $tail = __typia.json.createAssertStringify.tail;
370
- const $so0 = input => `{${$tail(`${undefined === input.path ? "" : `"path":${undefined !== input.path ? $string(input.path) : undefined}`}`)}}`;
371
- return $so0(input);
372
- }; return stringify(assert(input, errorFactory)); };