@nxtedition/types 23.0.40 → 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 -33
  2. package/dist/app.js +1 -655
  3. package/dist/common/block.d.ts +6 -13
  4. package/dist/common/block.js +597 -1607
  5. package/dist/common/clone.d.ts +0 -19
  6. package/dist/common/clone.js +1 -602
  7. package/dist/common/date.d.ts +0 -7
  8. package/dist/common/date.js +1 -59
  9. package/dist/common/error.d.ts +0 -7
  10. package/dist/common/error.js +1 -404
  11. package/dist/common/file.d.ts +1 -21
  12. package/dist/common/file.js +782 -2521
  13. package/dist/common/index.d.ts +20 -26
  14. package/dist/common/index.js +20 -134
  15. package/dist/common/location.d.ts +0 -6
  16. package/dist/common/location.js +73 -238
  17. package/dist/common/lock.d.ts +1 -8
  18. package/dist/common/lock.js +1 -211
  19. package/dist/common/media.d.ts +0 -7
  20. package/dist/common/media.js +1 -83
  21. package/dist/common/nxtpression.d.ts +2 -9
  22. package/dist/common/nxtpression.js +1 -277
  23. package/dist/common/pipeline.d.ts +0 -7
  24. package/dist/common/pipeline.js +1 -97
  25. package/dist/common/promoted-tag.d.ts +0 -7
  26. package/dist/common/promoted-tag.js +1 -147
  27. package/dist/common/render-preset.d.ts +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 -1843
  33. package/dist/common/render-scene.d.ts +2 -15
  34. package/dist/common/render-scene.js +1 -2408
  35. package/dist/common/rule.d.ts +1 -7
  36. package/dist/common/rule.js +84 -254
  37. package/dist/common/search.d.ts +0 -25
  38. package/dist/common/search.js +1 -1591
  39. package/dist/common/settings.d.ts +113 -125
  40. package/dist/common/settings.js +1 -7504
  41. package/dist/common/subtitle-style.d.ts +25 -0
  42. package/dist/common/user-notification.d.ts +0 -7
  43. package/dist/common/user-notification.js +1 -85
  44. package/dist/index.d.ts +5 -108
  45. package/dist/index.js +5 -469
  46. package/dist/nxtpression.d.ts +507 -331
  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 +5 -15
  158. package/dist/rpc.js +126 -511
  159. package/dist/tsdoc-metadata.json +1 -1
  160. package/package.json +25 -15
  161. package/dist/asset.d.ts +0 -72
  162. package/dist/domains/asset.d.ts +0 -227
  163. package/dist/domains/asset.js +0 -2672
  164. package/dist/domains/bundle.d.ts +0 -25
  165. package/dist/domains/bundle.js +0 -512
  166. package/dist/domains/clone.d.ts +0 -14
  167. package/dist/domains/clone.js +0 -192
  168. package/dist/domains/comment-reaction.d.ts +0 -15
  169. package/dist/domains/comment-reaction.js +0 -115
  170. package/dist/domains/comment-read-mark.d.ts +0 -15
  171. package/dist/domains/comment-read-mark.js +0 -115
  172. package/dist/domains/comment.d.ts +0 -153
  173. package/dist/domains/comment.js +0 -5906
  174. package/dist/domains/connection.d.ts +0 -141
  175. package/dist/domains/connection.js +0 -5860
  176. package/dist/domains/contact.d.ts +0 -16
  177. package/dist/domains/contact.js +0 -149
  178. package/dist/domains/deepstream.d.ts +0 -14
  179. package/dist/domains/deepstream.js +0 -139
  180. package/dist/domains/design.d.ts +0 -24
  181. package/dist/domains/design.js +0 -303
  182. package/dist/domains/edit.d.ts +0 -17
  183. package/dist/domains/edit.js +0 -224
  184. package/dist/domains/event.d.ts +0 -170
  185. package/dist/domains/event.js +0 -2779
  186. package/dist/domains/file.d.ts +0 -51
  187. package/dist/domains/file.js +0 -2506
  188. package/dist/domains/general.d.ts +0 -84
  189. package/dist/domains/general.js +0 -906
  190. package/dist/domains/index.d.ts +0 -75
  191. package/dist/domains/index.js +0 -37
  192. package/dist/domains/media.d.ts +0 -113
  193. package/dist/domains/media.js +0 -4642
  194. package/dist/domains/monitor.d.ts +0 -416
  195. package/dist/domains/monitor.js +0 -6382
  196. package/dist/domains/panel.d.ts +0 -371
  197. package/dist/domains/panel.js +0 -3198
  198. package/dist/domains/permission.d.ts +0 -61
  199. package/dist/domains/permission.js +0 -1926
  200. package/dist/domains/pipeline-preset.d.ts +0 -17
  201. package/dist/domains/pipeline-preset.js +0 -236
  202. package/dist/domains/pipeline.d.ts +0 -30
  203. package/dist/domains/pipeline.js +0 -460
  204. package/dist/domains/planning.d.ts +0 -33
  205. package/dist/domains/planning.js +0 -324
  206. package/dist/domains/publish.d.ts +0 -1452
  207. package/dist/domains/publish.js +0 -35415
  208. package/dist/domains/published.d.ts +0 -19
  209. package/dist/domains/published.js +0 -204
  210. package/dist/domains/render-preset.d.ts +0 -4
  211. package/dist/domains/render.d.ts +0 -158
  212. package/dist/domains/render.js +0 -4452
  213. package/dist/domains/revs.d.ts +0 -13
  214. package/dist/domains/revs.js +0 -125
  215. package/dist/domains/role.d.ts +0 -13
  216. package/dist/domains/role.js +0 -119
  217. package/dist/domains/script.d.ts +0 -263
  218. package/dist/domains/script.js +0 -6777
  219. package/dist/domains/search.d.ts +0 -16
  220. package/dist/domains/search.js +0 -168
  221. package/dist/domains/settings.d.ts +0 -12
  222. package/dist/domains/settings.js +0 -7180
  223. package/dist/domains/storyboard.d.ts +0 -14
  224. package/dist/domains/storyboard.js +0 -125
  225. package/dist/domains/subtitle-style.d.ts +0 -42
  226. package/dist/domains/subtitle-style.js +0 -574
  227. package/dist/domains/subtitle.d.ts +0 -19
  228. package/dist/domains/subtitle.js +0 -212
  229. package/dist/domains/template.d.ts +0 -23
  230. package/dist/domains/template.js +0 -372
  231. package/dist/domains/user-notification-status.d.ts +0 -55
  232. package/dist/domains/user-notification-status.js +0 -715
  233. package/dist/domains/user-notification.d.ts +0 -118
  234. package/dist/domains/user-notification.js +0 -3040
  235. package/dist/domains/user.d.ts +0 -48
  236. package/dist/domains/user.js +0 -481
  237. package/dist/monitor.d.ts +0 -71
  238. package/dist/monitor.js +0 -1942
  239. package/dist/schema.json +0 -9836
  240. package/dist/storage.d.ts +0 -51
  241. package/dist/storage.js +0 -1036
  242. /package/dist/{asset.js → common/subtitle-style.js} +0 -0
  243. /package/dist/{domains/render-preset.js → records/domains/asset.js} +0 -0
@@ -1,211 +1 @@
1
- import __typia from "typia";
2
- export const isLock = input => {
3
- const $io0 = input => "number" === typeof input.time && 0 < input.time && (null === input.locations || Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem && 1 <= elem.length)) && ("number" === typeof input.replicas && 0 < input.replicas);
4
- return "object" === typeof input && null !== input && $io0(input);
5
- };
6
- export const assertLock = (input, errorFactory) => {
7
- const __is = input => {
8
- const $io0 = input => "number" === typeof input.time && 0 < input.time && (null === input.locations || Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem && 1 <= elem.length)) && ("number" === typeof input.replicas && 0 < input.replicas);
9
- return "object" === typeof input && null !== input && $io0(input);
10
- };
11
- if (false === __is(input))
12
- ((input, _path, _exceptionable = true) => {
13
- const $guard = __typia.createAssert.guard;
14
- const $ao0 = (input, _path, _exceptionable = true) => ("number" === typeof input.time && (0 < input.time || $guard(_exceptionable, {
15
- path: _path + ".time",
16
- expected: "number & ExclusiveMinimum<0>",
17
- value: input.time
18
- }, errorFactory)) || $guard(_exceptionable, {
19
- path: _path + ".time",
20
- expected: "(number & ExclusiveMinimum<0>)",
21
- value: input.time
22
- }, errorFactory)) && (null === input.locations || (Array.isArray(input.locations) || $guard(_exceptionable, {
23
- path: _path + ".locations",
24
- expected: "(Array<string & MinLength<1>> | null)",
25
- value: input.locations
26
- }, errorFactory)) && input.locations.every((elem, _index1) => "string" === typeof elem && (1 <= elem.length || $guard(_exceptionable, {
27
- path: _path + ".locations[" + _index1 + "]",
28
- expected: "string & MinLength<1>",
29
- value: elem
30
- }, errorFactory)) || $guard(_exceptionable, {
31
- path: _path + ".locations[" + _index1 + "]",
32
- expected: "(string & MinLength<1>)",
33
- value: elem
34
- }, errorFactory)) || $guard(_exceptionable, {
35
- path: _path + ".locations",
36
- expected: "(Array<string & MinLength<1>> | null)",
37
- value: input.locations
38
- }, errorFactory)) && ("number" === typeof input.replicas && (0 < input.replicas || $guard(_exceptionable, {
39
- path: _path + ".replicas",
40
- expected: "number & ExclusiveMinimum<0>",
41
- value: input.replicas
42
- }, errorFactory)) || $guard(_exceptionable, {
43
- path: _path + ".replicas",
44
- expected: "(number & ExclusiveMinimum<0>)",
45
- value: input.replicas
46
- }, errorFactory));
47
- return ("object" === typeof input && null !== input || $guard(true, {
48
- path: _path + "",
49
- expected: "Lock",
50
- value: input
51
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
52
- path: _path + "",
53
- expected: "Lock",
54
- value: input
55
- }, errorFactory);
56
- })(input, "$input", true);
57
- return input;
58
- };
59
- export const randomLock = generator => {
60
- const $generator = __typia.createRandom.generator;
61
- const $pick = __typia.createRandom.pick;
62
- const $ro0 = (_recursive = false, _depth = 0) => ({
63
- time: (generator?.customs ?? $generator.customs)?.number?.([
64
- {
65
- name: "ExclusiveMinimum<0>",
66
- kind: "exclusiveMinimum",
67
- value: 0
68
- }
69
- ]) ?? (generator?.number ?? $generator.number)(0, 10),
70
- locations: $pick([
71
- () => null,
72
- () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([
73
- {
74
- name: "MinLength<1>",
75
- kind: "minLength",
76
- value: 1
77
- }
78
- ]) ?? (generator?.string ?? $generator.string)((generator?.integer ?? $generator.integer)(1, 25)))
79
- ])(),
80
- replicas: (generator?.customs ?? $generator.customs)?.number?.([
81
- {
82
- name: "ExclusiveMinimum<0>",
83
- kind: "exclusiveMinimum",
84
- value: 0
85
- }
86
- ]) ?? (generator?.number ?? $generator.number)(0, 10)
87
- });
88
- return $ro0();
89
- };
90
- export const assertGuardLock = (input, errorFactory) => {
91
- const __is = input => {
92
- const $io0 = input => "number" === typeof input.time && 0 < input.time && (null === input.locations || Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem && 1 <= elem.length)) && ("number" === typeof input.replicas && 0 < input.replicas);
93
- return "object" === typeof input && null !== 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) => ("number" === typeof input.time && (0 < input.time || $guard(_exceptionable, {
99
- path: _path + ".time",
100
- expected: "number & ExclusiveMinimum<0>",
101
- value: input.time
102
- }, errorFactory)) || $guard(_exceptionable, {
103
- path: _path + ".time",
104
- expected: "(number & ExclusiveMinimum<0>)",
105
- value: input.time
106
- }, errorFactory)) && (null === input.locations || (Array.isArray(input.locations) || $guard(_exceptionable, {
107
- path: _path + ".locations",
108
- expected: "(Array<string & MinLength<1>> | null)",
109
- value: input.locations
110
- }, errorFactory)) && input.locations.every((elem, _index1) => "string" === typeof elem && (1 <= elem.length || $guard(_exceptionable, {
111
- path: _path + ".locations[" + _index1 + "]",
112
- expected: "string & MinLength<1>",
113
- value: elem
114
- }, errorFactory)) || $guard(_exceptionable, {
115
- path: _path + ".locations[" + _index1 + "]",
116
- expected: "(string & MinLength<1>)",
117
- value: elem
118
- }, errorFactory)) || $guard(_exceptionable, {
119
- path: _path + ".locations",
120
- expected: "(Array<string & MinLength<1>> | null)",
121
- value: input.locations
122
- }, errorFactory)) && ("number" === typeof input.replicas && (0 < input.replicas || $guard(_exceptionable, {
123
- path: _path + ".replicas",
124
- expected: "number & ExclusiveMinimum<0>",
125
- value: input.replicas
126
- }, errorFactory)) || $guard(_exceptionable, {
127
- path: _path + ".replicas",
128
- expected: "(number & ExclusiveMinimum<0>)",
129
- value: input.replicas
130
- }, errorFactory));
131
- return ("object" === typeof input && null !== input || $guard(true, {
132
- path: _path + "",
133
- expected: "Lock",
134
- value: input
135
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
136
- path: _path + "",
137
- expected: "Lock",
138
- value: input
139
- }, errorFactory);
140
- })(input, "$input", true);
141
- };
142
- export const stringifyLock = input => {
143
- const $string = __typia.json.createStringify.string;
144
- const $so0 = input => `{"time":${input.time},"locations":${null !== input.locations ? `[${input.locations.map(elem => $string(elem)).join(",")}]` : "null"},"replicas":${input.replicas}}`;
145
- return $so0(input);
146
- };
147
- export const assertStringifyLock = (input, errorFactory) => { const assert = (input, errorFactory) => {
148
- const __is = input => {
149
- const $io0 = input => "number" === typeof input.time && (!Number.isNaN(input.time) && 0 < input.time) && (null === input.locations || Array.isArray(input.locations) && input.locations.every(elem => "string" === typeof elem && 1 <= elem.length)) && ("number" === typeof input.replicas && (!Number.isNaN(input.replicas) && 0 < input.replicas));
150
- return "object" === typeof input && null !== input && $io0(input);
151
- };
152
- if (false === __is(input))
153
- ((input, _path, _exceptionable = true) => {
154
- const $guard = __typia.json.createAssertStringify.guard;
155
- const $ao0 = (input, _path, _exceptionable = true) => ("number" === typeof input.time && (!Number.isNaN(input.time) || $guard(_exceptionable, {
156
- path: _path + ".time",
157
- expected: "number",
158
- value: input.time
159
- }, errorFactory)) && (0 < input.time || $guard(_exceptionable, {
160
- path: _path + ".time",
161
- expected: "number & ExclusiveMinimum<0>",
162
- value: input.time
163
- }, errorFactory)) || $guard(_exceptionable, {
164
- path: _path + ".time",
165
- expected: "(number & ExclusiveMinimum<0>)",
166
- value: input.time
167
- }, errorFactory)) && (null === input.locations || (Array.isArray(input.locations) || $guard(_exceptionable, {
168
- path: _path + ".locations",
169
- expected: "(Array<string & MinLength<1>> | null)",
170
- value: input.locations
171
- }, errorFactory)) && input.locations.every((elem, _index1) => "string" === typeof elem && (1 <= elem.length || $guard(_exceptionable, {
172
- path: _path + ".locations[" + _index1 + "]",
173
- expected: "string & MinLength<1>",
174
- value: elem
175
- }, errorFactory)) || $guard(_exceptionable, {
176
- path: _path + ".locations[" + _index1 + "]",
177
- expected: "(string & MinLength<1>)",
178
- value: elem
179
- }, errorFactory)) || $guard(_exceptionable, {
180
- path: _path + ".locations",
181
- expected: "(Array<string & MinLength<1>> | null)",
182
- value: input.locations
183
- }, errorFactory)) && ("number" === typeof input.replicas && (!Number.isNaN(input.replicas) || $guard(_exceptionable, {
184
- path: _path + ".replicas",
185
- expected: "number",
186
- value: input.replicas
187
- }, errorFactory)) && (0 < input.replicas || $guard(_exceptionable, {
188
- path: _path + ".replicas",
189
- expected: "number & ExclusiveMinimum<0>",
190
- value: input.replicas
191
- }, errorFactory)) || $guard(_exceptionable, {
192
- path: _path + ".replicas",
193
- expected: "(number & ExclusiveMinimum<0>)",
194
- value: input.replicas
195
- }, errorFactory));
196
- return ("object" === typeof input && null !== input || $guard(true, {
197
- path: _path + "",
198
- expected: "Lock",
199
- value: input
200
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
201
- path: _path + "",
202
- expected: "Lock",
203
- value: input
204
- }, errorFactory);
205
- })(input, "$input", true);
206
- return input;
207
- }; const stringify = input => {
208
- const $string = __typia.json.createAssertStringify.string;
209
- const $so0 = input => `{"time":${input.time},"locations":${null !== input.locations ? `[${input.locations.map(elem => $string(elem)).join(",")}]` : "null"},"replicas":${input.replicas}}`;
210
- return $so0(input);
211
- }; return stringify(assert(input, errorFactory)); };
1
+ export {};
@@ -1,8 +1 @@
1
- import { type AssertionGuard as __AssertionGuard } from "typia";
2
1
  export type MediaType = "audio" | "video" | "image";
3
- export declare const isMediaType: (input: unknown) => input is MediaType;
4
- export declare const assertMediaType: (input: unknown) => MediaType;
5
- export declare const randomMediaType: () => MediaType;
6
- export declare const assertGuardMediaType: __AssertionGuard<MediaType>;
7
- export declare const stringifyMediaType: (input: MediaType) => string;
8
- export declare const assertStringifyMediaType: (input: unknown) => string;
@@ -1,83 +1 @@
1
- import __typia from "typia";
2
- export const isMediaType = input => {
3
- return "audio" === input || "video" === input || "image" === input;
4
- };
5
- export const assertMediaType = (input, errorFactory) => {
6
- const __is = input => {
7
- return "audio" === input || "video" === input || "image" === input;
8
- };
9
- if (false === __is(input))
10
- ((input, _path, _exceptionable = true) => {
11
- const $guard = __typia.createAssert.guard;
12
- return "audio" === input || "video" === input || "image" === input || $guard(true, {
13
- path: _path + "",
14
- expected: "(\"audio\" | \"image\" | \"video\")",
15
- value: input
16
- }, errorFactory);
17
- })(input, "$input", true);
18
- return input;
19
- };
20
- export const randomMediaType = generator => {
21
- const $pick = __typia.createRandom.pick;
22
- return $pick([
23
- () => "audio",
24
- () => "video",
25
- () => "image"
26
- ])();
27
- };
28
- export const assertGuardMediaType = (input, errorFactory) => {
29
- const __is = input => {
30
- return "audio" === input || "video" === input || "image" === input;
31
- };
32
- if (false === __is(input))
33
- ((input, _path, _exceptionable = true) => {
34
- const $guard = __typia.createAssertGuard.guard;
35
- return "audio" === input || "video" === input || "image" === input || $guard(true, {
36
- path: _path + "",
37
- expected: "(\"audio\" | \"image\" | \"video\")",
38
- value: input
39
- }, errorFactory);
40
- })(input, "$input", true);
41
- };
42
- export const stringifyMediaType = input => {
43
- const $string = __typia.json.createStringify.string;
44
- const $throws = __typia.json.createStringify.throws;
45
- return (() => {
46
- if ("string" === typeof input)
47
- return $string(input);
48
- if ("string" === typeof input)
49
- return "\"" + input + "\"";
50
- $throws({
51
- expected: "(\"audio\" | \"image\" | \"video\")",
52
- value: input
53
- });
54
- })();
55
- };
56
- export const assertStringifyMediaType = (input, errorFactory) => { const assert = (input, errorFactory) => {
57
- const __is = input => {
58
- return "audio" === input || "video" === input || "image" === input;
59
- };
60
- if (false === __is(input))
61
- ((input, _path, _exceptionable = true) => {
62
- const $guard = __typia.json.createAssertStringify.guard;
63
- return "audio" === input || "video" === input || "image" === input || $guard(true, {
64
- path: _path + "",
65
- expected: "(\"audio\" | \"image\" | \"video\")",
66
- value: input
67
- }, errorFactory);
68
- })(input, "$input", true);
69
- return input;
70
- }; const stringify = input => {
71
- const $string = __typia.json.createAssertStringify.string;
72
- const $throws = __typia.json.createAssertStringify.throws;
73
- return (() => {
74
- if ("string" === typeof input)
75
- return $string(input);
76
- if ("string" === typeof input)
77
- return "\"" + input + "\"";
78
- $throws({
79
- expected: "(\"audio\" | \"image\" | \"video\")",
80
- value: input
81
- });
82
- })();
83
- }; return stringify(assert(input, errorFactory)); };
1
+ export {};
@@ -1,5 +1,4 @@
1
- import { type AssertionGuard as __AssertionGuard } from "typia";
2
- export type Nxtpression<ReturnValue = string, Context extends object = object> = (String & {
1
+ export type Nxtpression<ReturnValue = string, Context extends object = object> = {
3
2
  /**
4
3
  * TS-HACK: this property doesn't really exist on the nxtpression string,
5
4
  * it is only here to make sure the generic Context won't get stripped.
@@ -10,13 +9,7 @@ export type Nxtpression<ReturnValue = string, Context extends object = object> =
10
9
  * it is only here to make sure the generic Context won't get stripped.
11
10
  */
12
11
  __returnValue: ReturnValue;
13
- }) | string | ReturnValue;
14
- export declare const isNxtpression: (input: unknown) => input is Nxtpression<string, object>;
15
- export declare const assertNxtpression: (input: unknown) => Nxtpression<string, object>;
16
- export declare const randomNxtpression: () => string;
17
- export declare const assertGuardNxtpression: __AssertionGuard<Nxtpression>;
18
- export declare const stringifyNxtpression: (input: Nxtpression<string, object>) => string;
19
- export declare const assertStringifyNxtpression: (input: unknown) => string;
12
+ } | string | ReturnValue;
20
13
  export type ResolveNxtpressionDeep<T> = ExtractReturn<T> extends never ? T extends Array<infer U> ? ResolveNxtpressionDeep<U> : T extends object ? {
21
14
  [K in keyof T]: ResolveNxtpressionDeep<T[K]>;
22
15
  } : T : ExtractReturn<T>;
@@ -1,277 +1 @@
1
- import __typia from "typia";
2
- export const isNxtpression = input => {
3
- const $io0 = input => "number" === typeof input.length && ("object" === typeof input.__context && null !== input.__context && true) && "string" === typeof input.__returnValue && Object.keys(input).every(key => {
4
- if (["length", "__context", "__returnValue"].some(prop => key === prop))
5
- return true;
6
- const value = input[key];
7
- if (undefined === value)
8
- return true;
9
- if ("number" === typeof Number(key))
10
- return "string" === typeof value;
11
- return true;
12
- });
13
- return null !== input && undefined !== input && ("string" === typeof input || "object" === typeof input && null !== input && $io0(input));
14
- };
15
- export const assertNxtpression = (input, errorFactory) => {
16
- const __is = input => {
17
- const $io0 = input => "number" === typeof input.length && ("object" === typeof input.__context && null !== input.__context && true) && "string" === typeof input.__returnValue && Object.keys(input).every(key => {
18
- if (["length", "__context", "__returnValue"].some(prop => key === prop))
19
- return true;
20
- const value = input[key];
21
- if (undefined === value)
22
- return true;
23
- if ("number" === typeof Number(key))
24
- return "string" === typeof value;
25
- return true;
26
- });
27
- return null !== input && undefined !== input && ("string" === typeof input || "object" === typeof input && null !== input && $io0(input));
28
- };
29
- if (false === __is(input))
30
- ((input, _path, _exceptionable = true) => {
31
- const $guard = __typia.createAssert.guard;
32
- const $join = __typia.createAssert.join;
33
- const $ao0 = (input, _path, _exceptionable = true) => ("number" === typeof input.length || $guard(_exceptionable, {
34
- path: _path + ".length",
35
- expected: "number",
36
- value: input.length
37
- }, errorFactory)) && (("object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) || $guard(_exceptionable, {
38
- path: _path + ".__context",
39
- expected: "object",
40
- value: input.__context
41
- }, errorFactory)) && $ao1(input.__context, _path + ".__context", true && _exceptionable) || $guard(_exceptionable, {
42
- path: _path + ".__context",
43
- expected: "object",
44
- value: input.__context
45
- }, errorFactory)) && ("string" === typeof input.__returnValue || $guard(_exceptionable, {
46
- path: _path + ".__returnValue",
47
- expected: "string",
48
- value: input.__returnValue
49
- }, errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
50
- if (["length", "__context", "__returnValue"].some(prop => key === prop))
51
- return true;
52
- const value = input[key];
53
- if (undefined === value)
54
- return true;
55
- if ("number" === typeof Number(key))
56
- return "string" === typeof value || $guard(_exceptionable, {
57
- path: _path + $join(key),
58
- expected: "string",
59
- value: value
60
- }, errorFactory);
61
- return true;
62
- }));
63
- const $ao1 = (input, _path, _exceptionable = true) => true;
64
- return (null !== input || $guard(true, {
65
- path: _path + "",
66
- expected: "(String & { __context: object; __returnValue: string; } | string)",
67
- value: input
68
- }, errorFactory)) && (undefined !== input || $guard(true, {
69
- path: _path + "",
70
- expected: "(String & { __context: object; __returnValue: string; } | string)",
71
- value: input
72
- }, errorFactory)) && ("string" === typeof input || ("object" === typeof input && null !== input || $guard(true, {
73
- path: _path + "",
74
- expected: "(String & { __context: object; __returnValue: string; } | string)",
75
- value: input
76
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
77
- path: _path + "",
78
- expected: "(String & { __context: object; __returnValue: string; } | string)",
79
- value: input
80
- }, errorFactory));
81
- })(input, "$input", true);
82
- return input;
83
- };
84
- export const randomNxtpression = generator => {
85
- const $generator = __typia.createRandom.generator;
86
- const $pick = __typia.createRandom.pick;
87
- const $ro0 = (_recursive = false, _depth = 0) => {
88
- const output = {
89
- length: (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100),
90
- __context: $ro1(_recursive, _recursive ? 1 + _depth : _depth),
91
- __returnValue: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
92
- };
93
- (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)] = (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(), (generator?.integer ?? $generator.integer)(0, 3));
94
- return output;
95
- };
96
- const $ro1 = (_recursive = false, _depth = 0) => {};
97
- return $pick([
98
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
99
- () => $ro0()
100
- ])();
101
- };
102
- export const assertGuardNxtpression = (input, errorFactory) => {
103
- const __is = input => {
104
- const $io0 = input => "number" === typeof input.length && ("object" === typeof input.__context && null !== input.__context && true) && "string" === typeof input.__returnValue && Object.keys(input).every(key => {
105
- if (["length", "__context", "__returnValue"].some(prop => key === prop))
106
- return true;
107
- const value = input[key];
108
- if (undefined === value)
109
- return true;
110
- if ("number" === typeof Number(key))
111
- return "string" === typeof value;
112
- return true;
113
- });
114
- return null !== input && undefined !== input && ("string" === typeof input || "object" === typeof input && null !== input && $io0(input));
115
- };
116
- if (false === __is(input))
117
- ((input, _path, _exceptionable = true) => {
118
- const $guard = __typia.createAssertGuard.guard;
119
- const $join = __typia.createAssertGuard.join;
120
- const $ao0 = (input, _path, _exceptionable = true) => ("number" === typeof input.length || $guard(_exceptionable, {
121
- path: _path + ".length",
122
- expected: "number",
123
- value: input.length
124
- }, errorFactory)) && (("object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) || $guard(_exceptionable, {
125
- path: _path + ".__context",
126
- expected: "object",
127
- value: input.__context
128
- }, errorFactory)) && $ao1(input.__context, _path + ".__context", true && _exceptionable) || $guard(_exceptionable, {
129
- path: _path + ".__context",
130
- expected: "object",
131
- value: input.__context
132
- }, errorFactory)) && ("string" === typeof input.__returnValue || $guard(_exceptionable, {
133
- path: _path + ".__returnValue",
134
- expected: "string",
135
- value: input.__returnValue
136
- }, errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
137
- if (["length", "__context", "__returnValue"].some(prop => key === prop))
138
- return true;
139
- const value = input[key];
140
- if (undefined === value)
141
- return true;
142
- if ("number" === typeof Number(key))
143
- return "string" === typeof value || $guard(_exceptionable, {
144
- path: _path + $join(key),
145
- expected: "string",
146
- value: value
147
- }, errorFactory);
148
- return true;
149
- }));
150
- const $ao1 = (input, _path, _exceptionable = true) => true;
151
- return (null !== input || $guard(true, {
152
- path: _path + "",
153
- expected: "(String & { __context: object; __returnValue: string; } | string)",
154
- value: input
155
- }, errorFactory)) && (undefined !== input || $guard(true, {
156
- path: _path + "",
157
- expected: "(String & { __context: object; __returnValue: string; } | string)",
158
- value: input
159
- }, errorFactory)) && ("string" === typeof input || ("object" === typeof input && null !== input || $guard(true, {
160
- path: _path + "",
161
- expected: "(String & { __context: object; __returnValue: string; } | string)",
162
- value: input
163
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
164
- path: _path + "",
165
- expected: "(String & { __context: object; __returnValue: string; } | string)",
166
- value: input
167
- }, errorFactory));
168
- })(input, "$input", true);
169
- };
170
- export const stringifyNxtpression = input => {
171
- const $io1 = input => true;
172
- const $string = __typia.json.createStringify.string;
173
- const $throws = __typia.json.createStringify.throws;
174
- const $tail = __typia.json.createStringify.tail;
175
- const $so0 = input => `{${$tail(`"length":${input.length},"__context":{},"__returnValue":${$string(input.__returnValue)},${Object.entries(input).map(([key, value]) => { if (undefined === value)
176
- return ""; if (["length", "__context", "__returnValue"].some(regular => regular === key))
177
- return ""; if (RegExp(/^[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(key))
178
- return `${JSON.stringify(key)}:${$string(value)}`; return ""; }).filter(str => "" !== str).join(",")}`)}}`;
179
- return (() => {
180
- if ("string" === typeof input)
181
- return $string(input);
182
- if ("object" === typeof input && null !== input)
183
- return $so0(input);
184
- $throws({
185
- expected: "(String & { __context: object; __returnValue: string; } | string)",
186
- value: input
187
- });
188
- })();
189
- };
190
- export const assertStringifyNxtpression = (input, errorFactory) => { const assert = (input, errorFactory) => {
191
- const __is = input => {
192
- const $io0 = input => "number" === typeof input.length && !Number.isNaN(input.length) && ("object" === typeof input.__context && null !== input.__context && true) && "string" === typeof input.__returnValue && Object.keys(input).every(key => {
193
- if (["length", "__context", "__returnValue"].some(prop => key === prop))
194
- return true;
195
- const value = input[key];
196
- if (undefined === value)
197
- return true;
198
- if ("number" === typeof Number(key) && !Number.isNaN(Number(key)))
199
- return "string" === typeof value;
200
- return true;
201
- });
202
- return null !== input && undefined !== input && ("string" === typeof input || "object" === typeof input && null !== input && $io0(input));
203
- };
204
- if (false === __is(input))
205
- ((input, _path, _exceptionable = true) => {
206
- const $guard = __typia.json.createAssertStringify.guard;
207
- const $join = __typia.json.createAssertStringify.join;
208
- const $ao0 = (input, _path, _exceptionable = true) => ("number" === typeof input.length && !Number.isNaN(input.length) || $guard(_exceptionable, {
209
- path: _path + ".length",
210
- expected: "number",
211
- value: input.length
212
- }, errorFactory)) && (("object" === typeof input.__context && null !== input.__context && false === Array.isArray(input.__context) || $guard(_exceptionable, {
213
- path: _path + ".__context",
214
- expected: "object",
215
- value: input.__context
216
- }, errorFactory)) && $ao1(input.__context, _path + ".__context", true && _exceptionable) || $guard(_exceptionable, {
217
- path: _path + ".__context",
218
- expected: "object",
219
- value: input.__context
220
- }, errorFactory)) && ("string" === typeof input.__returnValue || $guard(_exceptionable, {
221
- path: _path + ".__returnValue",
222
- expected: "string",
223
- value: input.__returnValue
224
- }, errorFactory)) && (false === _exceptionable || Object.keys(input).every(key => {
225
- if (["length", "__context", "__returnValue"].some(prop => key === prop))
226
- return true;
227
- const value = input[key];
228
- if (undefined === value)
229
- return true;
230
- if ("number" === typeof Number(key) && !Number.isNaN(Number(key)))
231
- return "string" === typeof value || $guard(_exceptionable, {
232
- path: _path + $join(key),
233
- expected: "string",
234
- value: value
235
- }, errorFactory);
236
- return true;
237
- }));
238
- const $ao1 = (input, _path, _exceptionable = true) => true;
239
- return (null !== input || $guard(true, {
240
- path: _path + "",
241
- expected: "(String & { __context: object; __returnValue: string; } | string)",
242
- value: input
243
- }, errorFactory)) && (undefined !== input || $guard(true, {
244
- path: _path + "",
245
- expected: "(String & { __context: object; __returnValue: string; } | string)",
246
- value: input
247
- }, errorFactory)) && ("string" === typeof input || ("object" === typeof input && null !== input || $guard(true, {
248
- path: _path + "",
249
- expected: "(String & { __context: object; __returnValue: string; } | string)",
250
- value: input
251
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
252
- path: _path + "",
253
- expected: "(String & { __context: object; __returnValue: string; } | string)",
254
- value: input
255
- }, errorFactory));
256
- })(input, "$input", true);
257
- return input;
258
- }; const stringify = input => {
259
- const $io1 = input => true;
260
- const $string = __typia.json.createAssertStringify.string;
261
- const $throws = __typia.json.createAssertStringify.throws;
262
- const $tail = __typia.json.createAssertStringify.tail;
263
- const $so0 = input => `{${$tail(`"length":${input.length},"__context":{},"__returnValue":${$string(input.__returnValue)},${Object.entries(input).map(([key, value]) => { if (undefined === value)
264
- return ""; if (["length", "__context", "__returnValue"].some(regular => regular === key))
265
- return ""; if (RegExp(/^[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(key))
266
- return `${JSON.stringify(key)}:${$string(value)}`; return ""; }).filter(str => "" !== str).join(",")}`)}}`;
267
- return (() => {
268
- if ("string" === typeof input)
269
- return $string(input);
270
- if ("object" === typeof input && null !== input)
271
- return $so0(input);
272
- $throws({
273
- expected: "(String & { __context: object; __returnValue: string; } | string)",
274
- value: input
275
- });
276
- })();
277
- }; return stringify(assert(input, errorFactory)); };
1
+ export {};
@@ -1,8 +1 @@
1
- import { type AssertionGuard as __AssertionGuard } from "typia";
2
1
  export type PipelineSortMode = "default" | "manual" | "az" | "za" | "newest" | "oldest" | "mostrecent" | "leastrecent" | "earliestdeadline" | "latestdeadline";
3
- export declare const isPipelineSortMode: (input: unknown) => input is PipelineSortMode;
4
- export declare const assertPipelineSortMode: (input: unknown) => PipelineSortMode;
5
- export declare const randomPipelineSortMode: () => PipelineSortMode;
6
- export declare const assertGuardPipelineSortMode: __AssertionGuard<PipelineSortMode>;
7
- export declare const stringifyPipelineSortMode: (input: PipelineSortMode) => string;
8
- export declare const assertStringifyPipelineSortMode: (input: unknown) => string;