@nxtedition/types 23.0.40 → 23.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/dist/app.d.ts +0 -33
  2. package/dist/app.js +1 -655
  3. package/dist/common/block.d.ts +6 -13
  4. package/dist/common/block.js +597 -1607
  5. package/dist/common/clone.d.ts +0 -19
  6. package/dist/common/clone.js +1 -602
  7. package/dist/common/date.d.ts +0 -7
  8. package/dist/common/date.js +1 -59
  9. package/dist/common/error.d.ts +0 -7
  10. package/dist/common/error.js +1 -404
  11. package/dist/common/file.d.ts +1 -21
  12. package/dist/common/file.js +782 -2521
  13. package/dist/common/index.d.ts +20 -26
  14. package/dist/common/index.js +20 -134
  15. package/dist/common/location.d.ts +0 -6
  16. package/dist/common/location.js +73 -238
  17. package/dist/common/lock.d.ts +1 -8
  18. package/dist/common/lock.js +1 -211
  19. package/dist/common/media.d.ts +0 -7
  20. package/dist/common/media.js +1 -83
  21. package/dist/common/nxtpression.d.ts +2 -9
  22. package/dist/common/nxtpression.js +1 -277
  23. package/dist/common/pipeline.d.ts +0 -7
  24. package/dist/common/pipeline.js +1 -97
  25. package/dist/common/promoted-tag.d.ts +0 -7
  26. package/dist/common/promoted-tag.js +1 -147
  27. package/dist/common/render-preset.d.ts +4 -17
  28. package/dist/common/render-preset.js +1 -1202
  29. package/dist/common/render-profile.d.ts +3 -19
  30. package/dist/common/render-profile.js +1 -1052
  31. package/dist/common/render-query.d.ts +2 -9
  32. package/dist/common/render-query.js +1 -1843
  33. package/dist/common/render-scene.d.ts +3 -16
  34. package/dist/common/render-scene.js +1 -2408
  35. package/dist/common/rule.d.ts +1 -7
  36. package/dist/common/rule.js +84 -254
  37. package/dist/common/search.d.ts +0 -25
  38. package/dist/common/search.js +1 -1591
  39. package/dist/common/settings.d.ts +113 -125
  40. package/dist/common/settings.js +1 -7504
  41. package/dist/common/subtitle-style.d.ts +25 -0
  42. package/dist/common/user-notification.d.ts +0 -7
  43. package/dist/common/user-notification.js +1 -85
  44. package/dist/index.d.ts +5 -108
  45. package/dist/index.js +5 -469
  46. package/dist/nxtpression.d.ts +538 -337
  47. package/dist/nxtpression.js +1 -323
  48. package/dist/records/domains/asset.d.ts +106 -0
  49. package/dist/records/domains/bundle.d.ts +12 -0
  50. package/dist/records/domains/bundle.js +1 -0
  51. package/dist/records/domains/clone.d.ts +7 -0
  52. package/dist/records/domains/clone.js +1 -0
  53. package/dist/records/domains/comment-reaction.d.ts +8 -0
  54. package/dist/records/domains/comment-reaction.js +1 -0
  55. package/dist/records/domains/comment-read-mark.d.ts +8 -0
  56. package/dist/records/domains/comment-read-mark.js +1 -0
  57. package/dist/records/domains/comment.d.ts +81 -0
  58. package/dist/records/domains/comment.js +19 -0
  59. package/dist/records/domains/connection.d.ts +77 -0
  60. package/dist/records/domains/connection.js +1 -0
  61. package/dist/records/domains/contact.d.ts +9 -0
  62. package/dist/records/domains/contact.js +1 -0
  63. package/dist/records/domains/deepstream.d.ts +8 -0
  64. package/dist/records/domains/deepstream.js +1 -0
  65. package/dist/records/domains/design.d.ts +11 -0
  66. package/dist/records/domains/design.js +1 -0
  67. package/dist/records/domains/edit.d.ts +10 -0
  68. package/dist/records/domains/edit.js +1 -0
  69. package/dist/records/domains/event.d.ts +66 -0
  70. package/dist/records/domains/event.js +1 -0
  71. package/dist/records/domains/file.d.ts +26 -0
  72. package/dist/records/domains/file.js +1 -0
  73. package/dist/records/domains/general.d.ts +41 -0
  74. package/dist/records/domains/general.js +1 -0
  75. package/dist/records/domains/index.d.ts +77 -0
  76. package/dist/records/domains/index.js +38 -0
  77. package/dist/records/domains/media.d.ts +64 -0
  78. package/dist/records/domains/media.js +1 -0
  79. package/dist/records/domains/monitor.d.ts +116 -0
  80. package/dist/records/domains/monitor.js +1 -0
  81. package/dist/records/domains/panel.d.ts +55 -0
  82. package/dist/records/domains/panel.js +1 -0
  83. package/dist/records/domains/permission.d.ts +25 -0
  84. package/dist/records/domains/permission.js +2 -0
  85. package/dist/records/domains/pipeline-preset.d.ts +10 -0
  86. package/dist/records/domains/pipeline-preset.js +1 -0
  87. package/dist/records/domains/pipeline.d.ts +17 -0
  88. package/dist/records/domains/pipeline.js +1 -0
  89. package/dist/records/domains/planning.d.ts +14 -0
  90. package/dist/records/domains/planning.js +1 -0
  91. package/dist/records/domains/prompter.d.ts +18 -0
  92. package/dist/records/domains/prompter.js +1 -0
  93. package/dist/records/domains/publish.d.ts +149 -0
  94. package/dist/records/domains/publish.js +1 -0
  95. package/dist/records/domains/published.d.ts +12 -0
  96. package/dist/records/domains/published.js +1 -0
  97. package/dist/records/domains/render-preset.d.ts +5 -0
  98. package/dist/records/domains/render-preset.js +1 -0
  99. package/dist/records/domains/render.d.ts +115 -0
  100. package/dist/records/domains/render.js +1 -0
  101. package/dist/records/domains/revs.d.ts +6 -0
  102. package/dist/records/domains/revs.js +1 -0
  103. package/dist/records/domains/role.d.ts +6 -0
  104. package/dist/records/domains/role.js +1 -0
  105. package/dist/records/domains/script.d.ts +101 -0
  106. package/dist/records/domains/script.js +1 -0
  107. package/dist/records/domains/search.d.ts +23 -0
  108. package/dist/records/domains/search.js +1 -0
  109. package/dist/records/domains/settings.d.ts +5 -0
  110. package/dist/records/domains/settings.js +1 -0
  111. package/dist/records/domains/storyboard.d.ts +10 -0
  112. package/dist/records/domains/storyboard.js +1 -0
  113. package/dist/records/domains/subtitle-style.d.ts +13 -0
  114. package/dist/records/domains/subtitle-style.js +1 -0
  115. package/dist/records/domains/subtitle.d.ts +12 -0
  116. package/dist/records/domains/subtitle.js +1 -0
  117. package/dist/records/domains/template.d.ts +11 -0
  118. package/dist/records/domains/template.js +1 -0
  119. package/dist/records/domains/user-notification-status.d.ts +30 -0
  120. package/dist/records/domains/user-notification-status.js +1 -0
  121. package/dist/records/domains/user-notification.d.ts +69 -0
  122. package/dist/records/domains/user-notification.js +1 -0
  123. package/dist/records/domains/user.d.ts +23 -0
  124. package/dist/records/domains/user.js +1 -0
  125. package/dist/records/exact/asset.d.ts +83 -0
  126. package/dist/records/exact/asset.js +1 -0
  127. package/dist/records/exact/index.d.ts +36 -0
  128. package/dist/records/exact/index.js +4 -0
  129. package/dist/records/exact/media.d.ts +52 -0
  130. package/dist/records/exact/media.js +1 -0
  131. package/dist/records/exact/monitor.d.ts +46 -0
  132. package/dist/records/exact/monitor.js +1 -0
  133. package/dist/records/exact/storage.d.ts +32 -0
  134. package/dist/records/exact/storage.js +1 -0
  135. package/dist/records/index.d.ts +10 -0
  136. package/dist/records/index.js +2 -0
  137. package/dist/records/utils.d.ts +7 -0
  138. package/dist/records/utils.js +1 -0
  139. package/dist/records/utils.tds.d.ts +1 -0
  140. package/dist/records/utils.tds.js +7 -0
  141. package/dist/records/validate/assert-guard.d.ts +4 -0
  142. package/dist/records/validate/assert-guard.js +16068 -0
  143. package/dist/records/validate/assert.d.ts +4 -0
  144. package/dist/records/validate/assert.js +16198 -0
  145. package/dist/records/validate/is.d.ts +4 -0
  146. package/dist/records/validate/is.js +1027 -0
  147. package/dist/records/validate/schemas.d.ts +9 -0
  148. package/dist/records/validate/schemas.js +12862 -0
  149. package/dist/records/validate/stringify.d.ts +4 -0
  150. package/dist/records/validate/stringify.js +1915 -0
  151. package/dist/records/validate/utils.d.ts +15 -0
  152. package/dist/records/validate/utils.js +26 -0
  153. package/dist/records/validate/validate-equals.d.ts +5 -0
  154. package/dist/records/validate/validate-equals.js +24363 -0
  155. package/dist/records/validate/validate.d.ts +5 -0
  156. package/dist/records/validate/validate.js +15127 -0
  157. package/dist/rpc.d.ts +5 -15
  158. package/dist/rpc.js +126 -511
  159. package/dist/tsdoc-metadata.json +1 -1
  160. package/package.json +25 -15
  161. package/dist/asset.d.ts +0 -72
  162. package/dist/domains/asset.d.ts +0 -227
  163. package/dist/domains/asset.js +0 -2672
  164. package/dist/domains/bundle.d.ts +0 -25
  165. package/dist/domains/bundle.js +0 -512
  166. package/dist/domains/clone.d.ts +0 -14
  167. package/dist/domains/clone.js +0 -192
  168. package/dist/domains/comment-reaction.d.ts +0 -15
  169. package/dist/domains/comment-reaction.js +0 -115
  170. package/dist/domains/comment-read-mark.d.ts +0 -15
  171. package/dist/domains/comment-read-mark.js +0 -115
  172. package/dist/domains/comment.d.ts +0 -153
  173. package/dist/domains/comment.js +0 -5906
  174. package/dist/domains/connection.d.ts +0 -141
  175. package/dist/domains/connection.js +0 -5860
  176. package/dist/domains/contact.d.ts +0 -16
  177. package/dist/domains/contact.js +0 -149
  178. package/dist/domains/deepstream.d.ts +0 -14
  179. package/dist/domains/deepstream.js +0 -139
  180. package/dist/domains/design.d.ts +0 -24
  181. package/dist/domains/design.js +0 -303
  182. package/dist/domains/edit.d.ts +0 -17
  183. package/dist/domains/edit.js +0 -224
  184. package/dist/domains/event.d.ts +0 -170
  185. package/dist/domains/event.js +0 -2779
  186. package/dist/domains/file.d.ts +0 -51
  187. package/dist/domains/file.js +0 -2506
  188. package/dist/domains/general.d.ts +0 -84
  189. package/dist/domains/general.js +0 -906
  190. package/dist/domains/index.d.ts +0 -75
  191. package/dist/domains/index.js +0 -37
  192. package/dist/domains/media.d.ts +0 -113
  193. package/dist/domains/media.js +0 -4642
  194. package/dist/domains/monitor.d.ts +0 -416
  195. package/dist/domains/monitor.js +0 -6382
  196. package/dist/domains/panel.d.ts +0 -371
  197. package/dist/domains/panel.js +0 -3198
  198. package/dist/domains/permission.d.ts +0 -61
  199. package/dist/domains/permission.js +0 -1926
  200. package/dist/domains/pipeline-preset.d.ts +0 -17
  201. package/dist/domains/pipeline-preset.js +0 -236
  202. package/dist/domains/pipeline.d.ts +0 -30
  203. package/dist/domains/pipeline.js +0 -460
  204. package/dist/domains/planning.d.ts +0 -33
  205. package/dist/domains/planning.js +0 -324
  206. package/dist/domains/publish.d.ts +0 -1452
  207. package/dist/domains/publish.js +0 -35415
  208. package/dist/domains/published.d.ts +0 -19
  209. package/dist/domains/published.js +0 -204
  210. package/dist/domains/render-preset.d.ts +0 -4
  211. package/dist/domains/render.d.ts +0 -158
  212. package/dist/domains/render.js +0 -4452
  213. package/dist/domains/revs.d.ts +0 -13
  214. package/dist/domains/revs.js +0 -125
  215. package/dist/domains/role.d.ts +0 -13
  216. package/dist/domains/role.js +0 -119
  217. package/dist/domains/script.d.ts +0 -263
  218. package/dist/domains/script.js +0 -6777
  219. package/dist/domains/search.d.ts +0 -16
  220. package/dist/domains/search.js +0 -168
  221. package/dist/domains/settings.d.ts +0 -12
  222. package/dist/domains/settings.js +0 -7180
  223. package/dist/domains/storyboard.d.ts +0 -14
  224. package/dist/domains/storyboard.js +0 -125
  225. package/dist/domains/subtitle-style.d.ts +0 -42
  226. package/dist/domains/subtitle-style.js +0 -574
  227. package/dist/domains/subtitle.d.ts +0 -19
  228. package/dist/domains/subtitle.js +0 -212
  229. package/dist/domains/template.d.ts +0 -23
  230. package/dist/domains/template.js +0 -372
  231. package/dist/domains/user-notification-status.d.ts +0 -55
  232. package/dist/domains/user-notification-status.js +0 -715
  233. package/dist/domains/user-notification.d.ts +0 -118
  234. package/dist/domains/user-notification.js +0 -3040
  235. package/dist/domains/user.d.ts +0 -48
  236. package/dist/domains/user.js +0 -481
  237. package/dist/monitor.d.ts +0 -71
  238. package/dist/monitor.js +0 -1942
  239. package/dist/schema.json +0 -9836
  240. package/dist/storage.d.ts +0 -51
  241. package/dist/storage.js +0 -1036
  242. /package/dist/{asset.js → common/subtitle-style.js} +0 -0
  243. /package/dist/{domains/render-preset.js → records/domains/asset.js} +0 -0
@@ -1,323 +1 @@
1
- import __typia from "typia";
2
- export const isNxtpressionNxt = input => {
3
- const $io0 = input => true && true;
4
- return "object" === typeof input && null !== input && $io0(input);
5
- };
6
- export const assertNxtpressionNxt = (input, errorFactory) => {
7
- const __is = input => {
8
- const $io0 = input => true && true;
9
- return "object" === typeof input && null !== input && $io0(input);
10
- };
11
- if (false === __is(input))
12
- ((input, _path, _exceptionable = true) => {
13
- const $guard = __typia.createAssert.guard;
14
- const $ao0 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
15
- path: _path + ".asset",
16
- expected: "unknown",
17
- value: input.asset
18
- }, errorFactory)) && (true || $guard(_exceptionable, {
19
- path: _path + ".wrap",
20
- expected: "unknown",
21
- value: input.wrap
22
- }, errorFactory));
23
- return ("object" === typeof input && null !== input || $guard(true, {
24
- path: _path + "",
25
- expected: "NxtpressionNxt",
26
- value: input
27
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
28
- path: _path + "",
29
- expected: "NxtpressionNxt",
30
- value: input
31
- }, errorFactory);
32
- })(input, "$input", true);
33
- return input;
34
- };
35
- export const randomNxtpressionNxt = generator => {
36
- const $ro0 = (_recursive = false, _depth = 0) => ({
37
- asset: undefined,
38
- wrap: undefined
39
- });
40
- return $ro0();
41
- };
42
- export const assertGuardNxtpressionNxt = (input, errorFactory) => {
43
- const __is = input => {
44
- const $io0 = input => true && true;
45
- return "object" === typeof input && null !== input && $io0(input);
46
- };
47
- if (false === __is(input))
48
- ((input, _path, _exceptionable = true) => {
49
- const $guard = __typia.createAssertGuard.guard;
50
- const $ao0 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
51
- path: _path + ".asset",
52
- expected: "unknown",
53
- value: input.asset
54
- }, errorFactory)) && (true || $guard(_exceptionable, {
55
- path: _path + ".wrap",
56
- expected: "unknown",
57
- value: input.wrap
58
- }, errorFactory));
59
- return ("object" === typeof input && null !== input || $guard(true, {
60
- path: _path + "",
61
- expected: "NxtpressionNxt",
62
- value: input
63
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
64
- path: _path + "",
65
- expected: "NxtpressionNxt",
66
- value: input
67
- }, errorFactory);
68
- })(input, "$input", true);
69
- };
70
- export const stringifyNxtpressionNxt = input => {
71
- const $so0 = input => "{}";
72
- return $so0(input);
73
- };
74
- export const assertStringifyNxtpressionNxt = (input, errorFactory) => { const assert = (input, errorFactory) => {
75
- const __is = input => {
76
- const $io0 = input => true && true;
77
- return "object" === typeof input && null !== input && $io0(input);
78
- };
79
- if (false === __is(input))
80
- ((input, _path, _exceptionable = true) => {
81
- const $guard = __typia.json.createAssertStringify.guard;
82
- const $ao0 = (input, _path, _exceptionable = true) => (true || $guard(_exceptionable, {
83
- path: _path + ".asset",
84
- expected: "unknown",
85
- value: input.asset
86
- }, errorFactory)) && (true || $guard(_exceptionable, {
87
- path: _path + ".wrap",
88
- expected: "unknown",
89
- value: input.wrap
90
- }, errorFactory));
91
- return ("object" === typeof input && null !== input || $guard(true, {
92
- path: _path + "",
93
- expected: "NxtpressionNxt",
94
- value: input
95
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
96
- path: _path + "",
97
- expected: "NxtpressionNxt",
98
- value: input
99
- }, errorFactory);
100
- })(input, "$input", true);
101
- return input;
102
- }; const stringify = input => {
103
- const $so0 = input => "{}";
104
- return $so0(input);
105
- }; return stringify(assert(input, errorFactory)); };
106
- export const isNxtpressionFetch = input => {
107
- const $io0 = input => (null === input.body || "string" === typeof input.body) && (null === input.status || "number" === typeof input.status) && ("object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io1(input.headers)) && true;
108
- const $io1 = input => Object.keys(input).every(key => {
109
- const value = input[key];
110
- if (undefined === value)
111
- return true;
112
- return "string" === typeof value;
113
- });
114
- return "object" === typeof input && null !== input && $io0(input);
115
- };
116
- export const assertNxtpressionFetch = (input, errorFactory) => {
117
- const __is = input => {
118
- const $io0 = input => (null === input.body || "string" === typeof input.body) && (null === input.status || "number" === typeof input.status) && ("object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io1(input.headers)) && true;
119
- const $io1 = input => Object.keys(input).every(key => {
120
- const value = input[key];
121
- if (undefined === value)
122
- return true;
123
- return "string" === typeof value;
124
- });
125
- return "object" === typeof input && null !== input && $io0(input);
126
- };
127
- if (false === __is(input))
128
- ((input, _path, _exceptionable = true) => {
129
- const $guard = __typia.createAssert.guard;
130
- const $join = __typia.createAssert.join;
131
- const $ao0 = (input, _path, _exceptionable = true) => (null === input.body || "string" === typeof input.body || $guard(_exceptionable, {
132
- path: _path + ".body",
133
- expected: "(null | string)",
134
- value: input.body
135
- }, errorFactory)) && (null === input.status || "number" === typeof input.status || $guard(_exceptionable, {
136
- path: _path + ".status",
137
- expected: "(null | number)",
138
- value: input.status
139
- }, errorFactory)) && (("object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) || $guard(_exceptionable, {
140
- path: _path + ".headers",
141
- expected: "Record<string, string>",
142
- value: input.headers
143
- }, errorFactory)) && $ao1(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
144
- path: _path + ".headers",
145
- expected: "Record<string, string>",
146
- value: input.headers
147
- }, errorFactory)) && true;
148
- const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
149
- const value = input[key];
150
- if (undefined === value)
151
- return true;
152
- return "string" === typeof value || $guard(_exceptionable, {
153
- path: _path + $join(key),
154
- expected: "string",
155
- value: value
156
- }, errorFactory);
157
- });
158
- return ("object" === typeof input && null !== input || $guard(true, {
159
- path: _path + "",
160
- expected: "NxtpressionFetch",
161
- value: input
162
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
163
- path: _path + "",
164
- expected: "NxtpressionFetch",
165
- value: input
166
- }, errorFactory);
167
- })(input, "$input", true);
168
- return input;
169
- };
170
- export const randomNxtpressionFetch = generator => {
171
- const $generator = __typia.createRandom.generator;
172
- const $pick = __typia.createRandom.pick;
173
- const $ro0 = (_recursive = false, _depth = 0) => ({
174
- body: $pick([
175
- () => null,
176
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
177
- ])(),
178
- status: $pick([
179
- () => null,
180
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
181
- ])(),
182
- headers: $ro1(_recursive, _recursive ? 1 + _depth : _depth),
183
- err: "any type used..."
184
- });
185
- const $ro1 = (_recursive = false, _depth = 0) => {
186
- const output = {};
187
- (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(), (generator?.integer ?? $generator.integer)(0, 3));
188
- return output;
189
- };
190
- return $ro0();
191
- };
192
- export const assertGuardNxtpressionFetch = (input, errorFactory) => {
193
- const __is = input => {
194
- const $io0 = input => (null === input.body || "string" === typeof input.body) && (null === input.status || "number" === typeof input.status) && ("object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io1(input.headers)) && true;
195
- const $io1 = input => Object.keys(input).every(key => {
196
- const value = input[key];
197
- if (undefined === value)
198
- return true;
199
- return "string" === typeof value;
200
- });
201
- return "object" === typeof input && null !== input && $io0(input);
202
- };
203
- if (false === __is(input))
204
- ((input, _path, _exceptionable = true) => {
205
- const $guard = __typia.createAssertGuard.guard;
206
- const $join = __typia.createAssertGuard.join;
207
- const $ao0 = (input, _path, _exceptionable = true) => (null === input.body || "string" === typeof input.body || $guard(_exceptionable, {
208
- path: _path + ".body",
209
- expected: "(null | string)",
210
- value: input.body
211
- }, errorFactory)) && (null === input.status || "number" === typeof input.status || $guard(_exceptionable, {
212
- path: _path + ".status",
213
- expected: "(null | number)",
214
- value: input.status
215
- }, errorFactory)) && (("object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) || $guard(_exceptionable, {
216
- path: _path + ".headers",
217
- expected: "Record<string, string>",
218
- value: input.headers
219
- }, errorFactory)) && $ao1(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
220
- path: _path + ".headers",
221
- expected: "Record<string, string>",
222
- value: input.headers
223
- }, errorFactory)) && true;
224
- const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
225
- const value = input[key];
226
- if (undefined === value)
227
- return true;
228
- return "string" === typeof value || $guard(_exceptionable, {
229
- path: _path + $join(key),
230
- expected: "string",
231
- value: value
232
- }, errorFactory);
233
- });
234
- return ("object" === typeof input && null !== input || $guard(true, {
235
- path: _path + "",
236
- expected: "NxtpressionFetch",
237
- value: input
238
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
239
- path: _path + "",
240
- expected: "NxtpressionFetch",
241
- value: input
242
- }, errorFactory);
243
- })(input, "$input", true);
244
- };
245
- export const stringifyNxtpressionFetch = input => {
246
- const $io1 = input => Object.keys(input).every(key => {
247
- const value = input[key];
248
- if (undefined === value)
249
- return true;
250
- return "string" === typeof value;
251
- });
252
- const $string = __typia.json.createStringify.string;
253
- const $so0 = input => `{${undefined === input.err || "function" === typeof input.err ? "" : `"err":${undefined !== input.err ? JSON.stringify(input.err) : undefined},`}"body":${null !== input.body ? $string(input.body) : "null"},"status":${null !== input.status ? input.status : "null"},"headers":${$so1(input.headers)}}`;
254
- const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
255
- return ""; return `${JSON.stringify(key)}:${$string(value)}`; }).filter(str => "" !== str).join(",")}}`;
256
- return $so0(input);
257
- };
258
- export const assertStringifyNxtpressionFetch = (input, errorFactory) => { const assert = (input, errorFactory) => {
259
- const __is = input => {
260
- const $io0 = input => (null === input.body || "string" === typeof input.body) && (null === input.status || "number" === typeof input.status && !Number.isNaN(input.status)) && ("object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) && $io1(input.headers)) && true;
261
- const $io1 = input => Object.keys(input).every(key => {
262
- const value = input[key];
263
- if (undefined === value)
264
- return true;
265
- return "string" === typeof value;
266
- });
267
- return "object" === typeof input && null !== input && $io0(input);
268
- };
269
- if (false === __is(input))
270
- ((input, _path, _exceptionable = true) => {
271
- const $guard = __typia.json.createAssertStringify.guard;
272
- const $join = __typia.json.createAssertStringify.join;
273
- const $ao0 = (input, _path, _exceptionable = true) => (null === input.body || "string" === typeof input.body || $guard(_exceptionable, {
274
- path: _path + ".body",
275
- expected: "(null | string)",
276
- value: input.body
277
- }, errorFactory)) && (null === input.status || "number" === typeof input.status && !Number.isNaN(input.status) || $guard(_exceptionable, {
278
- path: _path + ".status",
279
- expected: "(null | number)",
280
- value: input.status
281
- }, errorFactory)) && (("object" === typeof input.headers && null !== input.headers && false === Array.isArray(input.headers) || $guard(_exceptionable, {
282
- path: _path + ".headers",
283
- expected: "Record<string, string>",
284
- value: input.headers
285
- }, errorFactory)) && $ao1(input.headers, _path + ".headers", true && _exceptionable) || $guard(_exceptionable, {
286
- path: _path + ".headers",
287
- expected: "Record<string, string>",
288
- value: input.headers
289
- }, errorFactory)) && true;
290
- const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
291
- const value = input[key];
292
- if (undefined === value)
293
- return true;
294
- return "string" === typeof value || $guard(_exceptionable, {
295
- path: _path + $join(key),
296
- expected: "string",
297
- value: value
298
- }, errorFactory);
299
- });
300
- return ("object" === typeof input && null !== input || $guard(true, {
301
- path: _path + "",
302
- expected: "NxtpressionFetch",
303
- value: input
304
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
305
- path: _path + "",
306
- expected: "NxtpressionFetch",
307
- value: input
308
- }, errorFactory);
309
- })(input, "$input", true);
310
- return input;
311
- }; const stringify = input => {
312
- const $io1 = input => Object.keys(input).every(key => {
313
- const value = input[key];
314
- if (undefined === value)
315
- return true;
316
- return "string" === typeof value;
317
- });
318
- const $string = __typia.json.createAssertStringify.string;
319
- const $so0 = input => `{${undefined === input.err || "function" === typeof input.err ? "" : `"err":${undefined !== input.err ? JSON.stringify(input.err) : undefined},`}"body":${null !== input.body ? $string(input.body) : "null"},"status":${null !== input.status ? input.status : "null"},"headers":${$so1(input.headers)}}`;
320
- const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
321
- return ""; return `${JSON.stringify(key)}:${$string(value)}`; }).filter(str => "" !== str).join(",")}}`;
322
- return $so0(input);
323
- }; return stringify(assert(input, errorFactory)); };
1
+ export {};
@@ -0,0 +1,106 @@
1
+ import type { IsoTimestamp } from '../../common/index.ts';
2
+ export interface AssetDomainRecords {
3
+ ":asset.title?": AssetTitleProvidedRecord;
4
+ ":asset.types?": AssetTypesProvidedRecord;
5
+ ":asset.assignees?": AssetAssigneesProvidedRecord;
6
+ ":asset.refs?": AssetRefsProvidedRecord;
7
+ ":asset.tags?": AssetTagsProvidedRecord;
8
+ ":asset.fileRefs?": AssetFileRefsProvidedRecord;
9
+ ":asset.created?": AssetCreatedProvidedRecord;
10
+ ":asset.modified?": AssetModifiedProvidedRecord;
11
+ ":asset.status?": AssetDomainStatusProvidedRecord;
12
+ ":asset.icon?": AssetDomainIconProvidedRecord;
13
+ ":asset.deadlines?": AssetDomainDeadlinesProvidedRecord;
14
+ ":asset.publish?": AssetDomainPublishProvidedRecord;
15
+ ":asset.published?": AssetDomainPublishedProvidedRecord;
16
+ ":asset.duration?": AssetDomainDurationProvidedRecord;
17
+ ":asset.locations?": AssetDomainLocationsProvidedRecord;
18
+ ":asset.controllers?": AssetDomainControllersProvidedRecord;
19
+ ":asset.embedding?": AssetDomainEmbeddingProvidedRecord;
20
+ ":asset.media?": AssetDomainMediaProvidedRecord;
21
+ ":asset.presence?": AssetDomainPresenceProvidedRecord;
22
+ ":asset.comments?": AssetCommentsRecord;
23
+ }
24
+ export interface AssetTitleProvidedRecord {
25
+ value?: string;
26
+ }
27
+ export interface AssetTypesProvidedRecord {
28
+ value?: string[];
29
+ }
30
+ export interface AssetAssigneesProvidedRecord {
31
+ value?: string[];
32
+ }
33
+ export interface AssetRefsProvidedRecord {
34
+ value?: AssetRef[];
35
+ }
36
+ interface AssetRef {
37
+ id: string;
38
+ key: string;
39
+ value: string;
40
+ }
41
+ export interface AssetTagsProvidedRecord {
42
+ value?: string[];
43
+ }
44
+ export interface AssetFileRefsProvidedRecord {
45
+ value?: string[];
46
+ }
47
+ export interface AssetCreatedProvidedRecord {
48
+ time?: string;
49
+ user?: string;
50
+ origin?: string;
51
+ }
52
+ export interface AssetModifiedProvidedRecord {
53
+ time?: string;
54
+ user?: string;
55
+ users?: string[];
56
+ }
57
+ export interface AssetDomainStatusProvidedRecord {
58
+ messages?: Array<{
59
+ id: string;
60
+ msg: string;
61
+ level: number;
62
+ code?: string;
63
+ expose?: boolean | null;
64
+ index?: number | null;
65
+ }>;
66
+ }
67
+ export interface AssetDomainIconProvidedRecord {
68
+ value?: string | null;
69
+ }
70
+ export interface AssetDomainDeadlinesProvidedRecord {
71
+ value?: IsoTimestamp[];
72
+ }
73
+ export interface AssetDomainPublishProvidedRecord {
74
+ value?: string[];
75
+ }
76
+ export interface AssetDomainPublishedProvidedRecord {
77
+ [publishedRecordId: string]: IsoTimestamp;
78
+ }
79
+ export interface AssetDomainDurationProvidedRecord {
80
+ value?: number | null;
81
+ }
82
+ export interface AssetDomainLocationsProvidedRecord {
83
+ value?: Array<{
84
+ lat: number;
85
+ lon: number;
86
+ }>;
87
+ }
88
+ export interface AssetDomainControllersProvidedRecord {
89
+ value?: string[];
90
+ }
91
+ export interface AssetDomainEmbeddingProvidedRecord {
92
+ value?: string[];
93
+ }
94
+ export interface AssetDomainMediaProvidedRecord {
95
+ [key: string]: unknown;
96
+ }
97
+ export interface AssetDomainPresenceProvidedRecord {
98
+ value?: string[];
99
+ }
100
+ export interface AssetCommentsRecord {
101
+ /**
102
+ * IDs of comment assets associated with the asset.
103
+ */
104
+ value?: string[];
105
+ }
106
+ export {};
@@ -0,0 +1,12 @@
1
+ export interface BundleDomainRecords {
2
+ [":bundle"]: BundleRecord;
3
+ [":bundle.revisions"]: BundleRevisionsRecord;
4
+ }
5
+ export interface BundleRecord {
6
+ user?: string;
7
+ description?: string;
8
+ files: Record<string, string>;
9
+ }
10
+ export interface BundleRevisionsRecord {
11
+ [revisionId: string]: BundleRecord;
12
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { CloneRule } from '../../common/index.ts';
2
+ export interface CloneDomainRecords {
3
+ ":clone": CloneDomainCloneRecord;
4
+ }
5
+ export interface CloneDomainCloneRecord {
6
+ rules: CloneRule[];
7
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ export interface CommentReactionDomainRecords {
2
+ ":comment-reaction": CommentReactionDomainRecord;
3
+ }
4
+ export interface CommentReactionDomainRecord {
5
+ comment: string;
6
+ user: string;
7
+ reaction: string;
8
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ export interface CommentReadMarkDomainRecords {
2
+ ":comment-read-mark": CommentReadMarkDomainRecord;
3
+ }
4
+ export interface CommentReadMarkDomainRecord {
5
+ comment: string;
6
+ user: string;
7
+ time: string;
8
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,81 @@
1
+ export interface CommentDomainRecords {
2
+ ":comment": CommentDomainCommentRecord;
3
+ ":comment.reactions?": CommentReactionsProvidedRecord;
4
+ ":comment.replies?": CommentDomainRepliesProvidedRecord;
5
+ ":comment.readMarks?": CommentDomainReadMarksProvidedRecord;
6
+ }
7
+ export interface CommentDomainCommentRecord {
8
+ asset?: string;
9
+ content?: SerializedRootNode | null;
10
+ mediaRevisionId?: string | null;
11
+ timecode?: {
12
+ start: number;
13
+ end?: number;
14
+ };
15
+ replyTo?: string;
16
+ }
17
+ export interface CommentReactionsProvidedRecord {
18
+ [reaction: string]: Array<{
19
+ id: string;
20
+ user: string;
21
+ }>;
22
+ }
23
+ export type SerializedNode = SerializedRootNode | SerializedParagraphNode | SerializedTextNode | SerializedLineBreakNode | SerializedMentionNode | SerializedEmojiNode | SerializedAutoLinkNode;
24
+ export interface SerializedRootNode {
25
+ type: "root";
26
+ version: 1;
27
+ direction: "ltr" | "rtl" | null;
28
+ format: string;
29
+ indent: number;
30
+ children: SerializedNode[];
31
+ }
32
+ export interface SerializedParagraphNode {
33
+ type: "paragraph";
34
+ version: 1;
35
+ direction: "ltr" | "rtl" | null;
36
+ format: string;
37
+ indent: number;
38
+ textFormat: number;
39
+ textStyle: string;
40
+ children: SerializedNode[];
41
+ }
42
+ export interface SerializedTextNode {
43
+ type: "text";
44
+ version: 1;
45
+ detail: number;
46
+ format: number;
47
+ mode: string;
48
+ style: string;
49
+ text: string;
50
+ }
51
+ export interface SerializedLineBreakNode {
52
+ type: "linebreak";
53
+ version: 1;
54
+ }
55
+ export interface SerializedMentionNode {
56
+ type: "mention";
57
+ version: 1;
58
+ detail: number;
59
+ format: number;
60
+ mode: string;
61
+ style: string;
62
+ text: string;
63
+ mentionId: string;
64
+ }
65
+ export interface SerializedEmojiNode {
66
+ type: "emoji";
67
+ version: 1;
68
+ emojiId: string;
69
+ }
70
+ export interface SerializedAutoLinkNode {
71
+ type: "autolink";
72
+ version: 1;
73
+ url: string;
74
+ }
75
+ export declare const isSerializedNode: (input: unknown) => input is SerializedNode;
76
+ export interface CommentDomainRepliesProvidedRecord {
77
+ value?: string[];
78
+ }
79
+ export interface CommentDomainReadMarksProvidedRecord {
80
+ value?: string[];
81
+ }
@@ -0,0 +1,19 @@
1
+ import typia from 'typia';
2
+ export const isSerializedNode = (() => { const _io0 = input => "root" === input.type && 1 === input.version && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && "string" === typeof input.format && "number" === typeof input.indent && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _iu0(elem))); const _io1 = input => "paragraph" === input.type && 1 === input.version && (null === input.direction || "ltr" === input.direction || "rtl" === input.direction) && "string" === typeof input.format && "number" === typeof input.indent && "number" === typeof input.textFormat && "string" === typeof input.textStyle && (Array.isArray(input.children) && input.children.every(elem => "object" === typeof elem && null !== elem && _iu0(elem))); const _io2 = input => "text" === input.type && 1 === input.version && "number" === typeof input.detail && "number" === typeof input.format && "string" === typeof input.mode && "string" === typeof input.style && "string" === typeof input.text; const _io3 = input => "linebreak" === input.type && 1 === input.version; const _io4 = input => "mention" === input.type && 1 === input.version && "number" === typeof input.detail && "number" === typeof input.format && "string" === typeof input.mode && "string" === typeof input.style && "string" === typeof input.text && "string" === typeof input.mentionId; const _io5 = input => "emoji" === input.type && 1 === input.version && "string" === typeof input.emojiId; const _io6 = input => "autolink" === input.type && 1 === input.version && "string" === typeof input.url; const _iu0 = input => (() => {
3
+ if ("root" === input.type)
4
+ return _io0(input);
5
+ else if ("paragraph" === input.type)
6
+ return _io1(input);
7
+ else if ("text" === input.type)
8
+ return _io2(input);
9
+ else if ("linebreak" === input.type)
10
+ return _io3(input);
11
+ else if ("mention" === input.type)
12
+ return _io4(input);
13
+ else if ("emoji" === input.type)
14
+ return _io5(input);
15
+ else if ("autolink" === input.type)
16
+ return _io6(input);
17
+ else
18
+ return false;
19
+ })(); return input => "object" === typeof input && null !== input && _iu0(input); })();
@@ -0,0 +1,77 @@
1
+ export interface ConnectionDomainRecords {
2
+ [":connection"]: ConnectionRecord;
3
+ [":connection.methods?"]: ConnectionDomainMethodsRecord;
4
+ [":connection.stats?"]: ConnectionStatsRecord;
5
+ }
6
+ export interface ConnectionDomainMethodsRecord {
7
+ [key: string]: object;
8
+ }
9
+ export type ConnectionRecord = FileConnectionRecord | ReutersConnectionRecord | FacebookConnectionRecord;
10
+ export interface ConnectionRecordCommon {
11
+ type: string;
12
+ userNotificationsEnabled?: boolean;
13
+ }
14
+ export interface ReutersConnectionRecord extends ConnectionRecordCommon {
15
+ type: "reuters";
16
+ clientId?: string;
17
+ clientSecret?: string;
18
+ audience?: string;
19
+ }
20
+ export interface FacebookConnectionRecord extends ConnectionRecordCommon {
21
+ type: "facebook";
22
+ grantedScopes?: string[];
23
+ }
24
+ export type FileConnectionRecord = FileConnectionS3Record | FileConnectionFtpRecord | FileConnectionSmbRecord | FileConnectionSftpRecord;
25
+ export interface FileConnectionRecordCommon extends ConnectionRecordCommon {
26
+ type: "file";
27
+ protocol: string;
28
+ host?: string;
29
+ port?: number | string;
30
+ ignoreMissing?: boolean;
31
+ concurrency?: number;
32
+ stabilityThreshold?: number;
33
+ pollInterval?: number;
34
+ listConcurrency?: number;
35
+ metafile?: {
36
+ content: string;
37
+ };
38
+ }
39
+ export interface FileConnectionS3Record extends FileConnectionRecordCommon {
40
+ protocol: "s3";
41
+ client?: unknown;
42
+ bucket?: string;
43
+ }
44
+ export interface FileConnectionSftpRecord extends FileConnectionRecordCommon {
45
+ protocol: "sftp";
46
+ host: string;
47
+ username?: string;
48
+ password?: string;
49
+ privateKey?: string;
50
+ timezone?: string;
51
+ debug?: boolean;
52
+ root?: string;
53
+ mode?: "libcurl" | "lftp" | "openssh" | "ssh2";
54
+ }
55
+ export interface FileConnectionFtpRecord extends FileConnectionRecordCommon {
56
+ protocol: "ftp";
57
+ host: string;
58
+ username?: string;
59
+ password?: string;
60
+ utf8?: boolean;
61
+ timezone?: string;
62
+ }
63
+ export interface FileConnectionSmbRecord extends FileConnectionRecordCommon {
64
+ protocol: "smb";
65
+ host: string;
66
+ share: string;
67
+ workgroup?: string;
68
+ username?: string;
69
+ password?: string;
70
+ }
71
+ export interface ConnectionStatsRecord {
72
+ status?: string;
73
+ substatus?: string;
74
+ pages?: Array<{
75
+ id: unknown;
76
+ }>;
77
+ }
@@ -0,0 +1 @@
1
+ export {};