@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,48 +0,0 @@
1
- import { type AssertionGuard as __AssertionGuard } from "typia";
2
- export interface UserDomainRecords {
3
- ":user": UserDomainRecord;
4
- ":user.latestSeenNotification": UserDomainLatestSeenNotificationRecord;
5
- ":user.receivedNotifications?": UserDomainReceivedNotificationsProvidedRecord;
6
- ":user.unseenNotifications?": UserDomainUnseenNotificationsRecord;
7
- }
8
- export interface UserDomainRecord {
9
- username?: string;
10
- roles?: string[];
11
- }
12
- export declare const isUserDomainRecord: (input: unknown) => input is UserDomainRecord;
13
- export declare const assertUserDomainRecord: (input: unknown) => UserDomainRecord;
14
- export declare const randomUserDomainRecord: () => UserDomainRecord;
15
- export declare const assertGuardUserDomainRecord: __AssertionGuard<UserDomainRecord>;
16
- export declare const stringifyUserDomainRecord: (input: UserDomainRecord) => string;
17
- export declare const assertStringifyUserDomainRecord: (input: unknown) => string;
18
- export interface UserDomainLatestSeenNotificationRecord {
19
- value?: string;
20
- }
21
- export declare const isUserDomainLatestSeenNotificationRecord: (input: unknown) => input is UserDomainLatestSeenNotificationRecord;
22
- export declare const assertUserDomainLatestSeenNotificationRecord: (input: unknown) => UserDomainLatestSeenNotificationRecord;
23
- export declare const randomUserDomainLatestSeenNotificationRecord: () => UserDomainLatestSeenNotificationRecord;
24
- export declare const assertGuardUserDomainLatestSeenNotificationRecord: __AssertionGuard<UserDomainLatestSeenNotificationRecord>;
25
- export declare const stringifyUserDomainLatestSeenNotificationRecord: (input: UserDomainLatestSeenNotificationRecord) => string;
26
- export declare const assertStringifyUserDomainLatestSeenNotificationRecord: (input: unknown) => string;
27
- export interface UserDomainReceivedNotificationsProvidedRecord {
28
- /**
29
- * IDs of notifications the user has received.
30
- */
31
- value?: string[];
32
- }
33
- export declare const isUserDomainReceivedNotificationsProvidedRecord: (input: unknown) => input is UserDomainReceivedNotificationsProvidedRecord;
34
- export declare const assertUserDomainReceivedNotificationsProvidedRecord: (input: unknown) => UserDomainReceivedNotificationsProvidedRecord;
35
- export declare const randomUserDomainReceivedNotificationsProvidedRecord: () => UserDomainReceivedNotificationsProvidedRecord;
36
- export declare const assertGuardUserDomainReceivedNotificationsProvidedRecord: __AssertionGuard<UserDomainReceivedNotificationsProvidedRecord>;
37
- export declare const stringifyUserDomainReceivedNotificationsProvidedRecord: (input: UserDomainReceivedNotificationsProvidedRecord) => string;
38
- export declare const assertStringifyUserDomainReceivedNotificationsProvidedRecord: (input: unknown) => string;
39
- export interface UserDomainUnseenNotificationsRecord {
40
- hasUnseen?: boolean;
41
- latestReceived?: string;
42
- }
43
- export declare const isUserDomainUnseenNotificationsRecord: (input: unknown) => input is UserDomainUnseenNotificationsRecord;
44
- export declare const assertUserDomainUnseenNotificationsRecord: (input: unknown) => UserDomainUnseenNotificationsRecord;
45
- export declare const randomUserDomainUnseenNotificationsRecord: () => UserDomainUnseenNotificationsRecord;
46
- export declare const assertGuardUserDomainUnseenNotificationsRecord: __AssertionGuard<UserDomainUnseenNotificationsRecord>;
47
- export declare const stringifyUserDomainUnseenNotificationsRecord: (input: UserDomainUnseenNotificationsRecord) => string;
48
- export declare const assertStringifyUserDomainUnseenNotificationsRecord: (input: unknown) => string;
@@ -1,481 +0,0 @@
1
- import __typia from "typia";
2
- export const isUserDomainRecord = input => {
3
- const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.roles || Array.isArray(input.roles) && input.roles.every(elem => "string" === typeof elem));
4
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
5
- };
6
- export const assertUserDomainRecord = (input, errorFactory) => {
7
- const __is = input => {
8
- const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.roles || Array.isArray(input.roles) && input.roles.every(elem => "string" === typeof elem));
9
- return "object" === typeof input && null !== input && false === Array.isArray(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) => (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
15
- path: _path + ".username",
16
- expected: "(string | undefined)",
17
- value: input.username
18
- }, errorFactory)) && (undefined === input.roles || (Array.isArray(input.roles) || $guard(_exceptionable, {
19
- path: _path + ".roles",
20
- expected: "(Array<string> | undefined)",
21
- value: input.roles
22
- }, errorFactory)) && input.roles.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
23
- path: _path + ".roles[" + _index1 + "]",
24
- expected: "string",
25
- value: elem
26
- }, errorFactory)) || $guard(_exceptionable, {
27
- path: _path + ".roles",
28
- expected: "(Array<string> | undefined)",
29
- value: input.roles
30
- }, errorFactory));
31
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
32
- path: _path + "",
33
- expected: "UserDomainRecord",
34
- value: input
35
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
36
- path: _path + "",
37
- expected: "UserDomainRecord",
38
- value: input
39
- }, errorFactory);
40
- })(input, "$input", true);
41
- return input;
42
- };
43
- export const randomUserDomainRecord = generator => {
44
- const $generator = __typia.createRandom.generator;
45
- const $pick = __typia.createRandom.pick;
46
- const $ro0 = (_recursive = false, _depth = 0) => ({
47
- username: $pick([
48
- () => undefined,
49
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
50
- ])(),
51
- roles: $pick([
52
- () => undefined,
53
- () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
54
- ])()
55
- });
56
- return $ro0();
57
- };
58
- export const assertGuardUserDomainRecord = (input, errorFactory) => {
59
- const __is = input => {
60
- const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.roles || Array.isArray(input.roles) && input.roles.every(elem => "string" === typeof elem));
61
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
62
- };
63
- if (false === __is(input))
64
- ((input, _path, _exceptionable = true) => {
65
- const $guard = __typia.createAssertGuard.guard;
66
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
67
- path: _path + ".username",
68
- expected: "(string | undefined)",
69
- value: input.username
70
- }, errorFactory)) && (undefined === input.roles || (Array.isArray(input.roles) || $guard(_exceptionable, {
71
- path: _path + ".roles",
72
- expected: "(Array<string> | undefined)",
73
- value: input.roles
74
- }, errorFactory)) && input.roles.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
75
- path: _path + ".roles[" + _index1 + "]",
76
- expected: "string",
77
- value: elem
78
- }, errorFactory)) || $guard(_exceptionable, {
79
- path: _path + ".roles",
80
- expected: "(Array<string> | undefined)",
81
- value: input.roles
82
- }, errorFactory));
83
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
84
- path: _path + "",
85
- expected: "UserDomainRecord",
86
- value: input
87
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
88
- path: _path + "",
89
- expected: "UserDomainRecord",
90
- value: input
91
- }, errorFactory);
92
- })(input, "$input", true);
93
- };
94
- export const stringifyUserDomainRecord = input => {
95
- const $string = __typia.json.createStringify.string;
96
- const $tail = __typia.json.createStringify.tail;
97
- const $so0 = input => `{${$tail(`${undefined === input.username ? "" : `"username":${undefined !== input.username ? $string(input.username) : undefined},`}${undefined === input.roles ? "" : `"roles":${undefined !== input.roles ? `[${input.roles.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
98
- return $so0(input);
99
- };
100
- export const assertStringifyUserDomainRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
101
- const __is = input => {
102
- const $io0 = input => (undefined === input.username || "string" === typeof input.username) && (undefined === input.roles || Array.isArray(input.roles) && input.roles.every(elem => "string" === typeof elem));
103
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
104
- };
105
- if (false === __is(input))
106
- ((input, _path, _exceptionable = true) => {
107
- const $guard = __typia.json.createAssertStringify.guard;
108
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.username || "string" === typeof input.username || $guard(_exceptionable, {
109
- path: _path + ".username",
110
- expected: "(string | undefined)",
111
- value: input.username
112
- }, errorFactory)) && (undefined === input.roles || (Array.isArray(input.roles) || $guard(_exceptionable, {
113
- path: _path + ".roles",
114
- expected: "(Array<string> | undefined)",
115
- value: input.roles
116
- }, errorFactory)) && input.roles.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
117
- path: _path + ".roles[" + _index1 + "]",
118
- expected: "string",
119
- value: elem
120
- }, errorFactory)) || $guard(_exceptionable, {
121
- path: _path + ".roles",
122
- expected: "(Array<string> | undefined)",
123
- value: input.roles
124
- }, errorFactory));
125
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
126
- path: _path + "",
127
- expected: "UserDomainRecord",
128
- value: input
129
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
130
- path: _path + "",
131
- expected: "UserDomainRecord",
132
- value: input
133
- }, errorFactory);
134
- })(input, "$input", true);
135
- return input;
136
- }; const stringify = input => {
137
- const $string = __typia.json.createAssertStringify.string;
138
- const $tail = __typia.json.createAssertStringify.tail;
139
- const $so0 = input => `{${$tail(`${undefined === input.username ? "" : `"username":${undefined !== input.username ? $string(input.username) : undefined},`}${undefined === input.roles ? "" : `"roles":${undefined !== input.roles ? `[${input.roles.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
140
- return $so0(input);
141
- }; return stringify(assert(input, errorFactory)); };
142
- export const isUserDomainLatestSeenNotificationRecord = input => {
143
- const $io0 = input => undefined === input.value || "string" === typeof input.value;
144
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
145
- };
146
- export const assertUserDomainLatestSeenNotificationRecord = (input, errorFactory) => {
147
- const __is = input => {
148
- const $io0 = input => undefined === input.value || "string" === typeof input.value;
149
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
150
- };
151
- if (false === __is(input))
152
- ((input, _path, _exceptionable = true) => {
153
- const $guard = __typia.createAssert.guard;
154
- const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || "string" === typeof input.value || $guard(_exceptionable, {
155
- path: _path + ".value",
156
- expected: "(string | undefined)",
157
- value: input.value
158
- }, errorFactory);
159
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
160
- path: _path + "",
161
- expected: "UserDomainLatestSeenNotificationRecord",
162
- value: input
163
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
164
- path: _path + "",
165
- expected: "UserDomainLatestSeenNotificationRecord",
166
- value: input
167
- }, errorFactory);
168
- })(input, "$input", true);
169
- return input;
170
- };
171
- export const randomUserDomainLatestSeenNotificationRecord = generator => {
172
- const $generator = __typia.createRandom.generator;
173
- const $pick = __typia.createRandom.pick;
174
- const $ro0 = (_recursive = false, _depth = 0) => ({
175
- value: $pick([
176
- () => undefined,
177
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
178
- ])()
179
- });
180
- return $ro0();
181
- };
182
- export const assertGuardUserDomainLatestSeenNotificationRecord = (input, errorFactory) => {
183
- const __is = input => {
184
- const $io0 = input => undefined === input.value || "string" === typeof input.value;
185
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
186
- };
187
- if (false === __is(input))
188
- ((input, _path, _exceptionable = true) => {
189
- const $guard = __typia.createAssertGuard.guard;
190
- const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || "string" === typeof input.value || $guard(_exceptionable, {
191
- path: _path + ".value",
192
- expected: "(string | undefined)",
193
- value: input.value
194
- }, errorFactory);
195
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
196
- path: _path + "",
197
- expected: "UserDomainLatestSeenNotificationRecord",
198
- value: input
199
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
200
- path: _path + "",
201
- expected: "UserDomainLatestSeenNotificationRecord",
202
- value: input
203
- }, errorFactory);
204
- })(input, "$input", true);
205
- };
206
- export const stringifyUserDomainLatestSeenNotificationRecord = input => {
207
- const $string = __typia.json.createStringify.string;
208
- const $tail = __typia.json.createStringify.tail;
209
- const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? $string(input.value) : undefined}`}`)}}`;
210
- return $so0(input);
211
- };
212
- export const assertStringifyUserDomainLatestSeenNotificationRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
213
- const __is = input => {
214
- const $io0 = input => undefined === input.value || "string" === typeof input.value;
215
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
216
- };
217
- if (false === __is(input))
218
- ((input, _path, _exceptionable = true) => {
219
- const $guard = __typia.json.createAssertStringify.guard;
220
- const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || "string" === typeof input.value || $guard(_exceptionable, {
221
- path: _path + ".value",
222
- expected: "(string | undefined)",
223
- value: input.value
224
- }, errorFactory);
225
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
226
- path: _path + "",
227
- expected: "UserDomainLatestSeenNotificationRecord",
228
- value: input
229
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
230
- path: _path + "",
231
- expected: "UserDomainLatestSeenNotificationRecord",
232
- value: input
233
- }, errorFactory);
234
- })(input, "$input", true);
235
- return input;
236
- }; const stringify = input => {
237
- const $string = __typia.json.createAssertStringify.string;
238
- const $tail = __typia.json.createAssertStringify.tail;
239
- const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? $string(input.value) : undefined}`}`)}}`;
240
- return $so0(input);
241
- }; return stringify(assert(input, errorFactory)); };
242
- export const isUserDomainReceivedNotificationsProvidedRecord = input => {
243
- const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
244
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
245
- };
246
- export const assertUserDomainReceivedNotificationsProvidedRecord = (input, errorFactory) => {
247
- const __is = input => {
248
- const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
249
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
250
- };
251
- if (false === __is(input))
252
- ((input, _path, _exceptionable = true) => {
253
- const $guard = __typia.createAssert.guard;
254
- const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
255
- path: _path + ".value",
256
- expected: "(Array<string> | undefined)",
257
- value: input.value
258
- }, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
259
- path: _path + ".value[" + _index1 + "]",
260
- expected: "string",
261
- value: elem
262
- }, errorFactory)) || $guard(_exceptionable, {
263
- path: _path + ".value",
264
- expected: "(Array<string> | undefined)",
265
- value: input.value
266
- }, errorFactory);
267
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
268
- path: _path + "",
269
- expected: "UserDomainReceivedNotificationsProvidedRecord",
270
- value: input
271
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
272
- path: _path + "",
273
- expected: "UserDomainReceivedNotificationsProvidedRecord",
274
- value: input
275
- }, errorFactory);
276
- })(input, "$input", true);
277
- return input;
278
- };
279
- export const randomUserDomainReceivedNotificationsProvidedRecord = generator => {
280
- const $generator = __typia.createRandom.generator;
281
- const $pick = __typia.createRandom.pick;
282
- const $ro0 = (_recursive = false, _depth = 0) => ({
283
- value: $pick([
284
- () => undefined,
285
- () => (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
286
- ])()
287
- });
288
- return $ro0();
289
- };
290
- export const assertGuardUserDomainReceivedNotificationsProvidedRecord = (input, errorFactory) => {
291
- const __is = input => {
292
- const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
293
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
294
- };
295
- if (false === __is(input))
296
- ((input, _path, _exceptionable = true) => {
297
- const $guard = __typia.createAssertGuard.guard;
298
- const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
299
- path: _path + ".value",
300
- expected: "(Array<string> | undefined)",
301
- value: input.value
302
- }, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
303
- path: _path + ".value[" + _index1 + "]",
304
- expected: "string",
305
- value: elem
306
- }, errorFactory)) || $guard(_exceptionable, {
307
- path: _path + ".value",
308
- expected: "(Array<string> | undefined)",
309
- value: input.value
310
- }, errorFactory);
311
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
312
- path: _path + "",
313
- expected: "UserDomainReceivedNotificationsProvidedRecord",
314
- value: input
315
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
316
- path: _path + "",
317
- expected: "UserDomainReceivedNotificationsProvidedRecord",
318
- value: input
319
- }, errorFactory);
320
- })(input, "$input", true);
321
- };
322
- export const stringifyUserDomainReceivedNotificationsProvidedRecord = input => {
323
- const $string = __typia.json.createStringify.string;
324
- const $tail = __typia.json.createStringify.tail;
325
- const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
326
- return $so0(input);
327
- };
328
- export const assertStringifyUserDomainReceivedNotificationsProvidedRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
329
- const __is = input => {
330
- const $io0 = input => undefined === input.value || Array.isArray(input.value) && input.value.every(elem => "string" === typeof elem);
331
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
332
- };
333
- if (false === __is(input))
334
- ((input, _path, _exceptionable = true) => {
335
- const $guard = __typia.json.createAssertStringify.guard;
336
- const $ao0 = (input, _path, _exceptionable = true) => undefined === input.value || (Array.isArray(input.value) || $guard(_exceptionable, {
337
- path: _path + ".value",
338
- expected: "(Array<string> | undefined)",
339
- value: input.value
340
- }, errorFactory)) && input.value.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
341
- path: _path + ".value[" + _index1 + "]",
342
- expected: "string",
343
- value: elem
344
- }, errorFactory)) || $guard(_exceptionable, {
345
- path: _path + ".value",
346
- expected: "(Array<string> | undefined)",
347
- value: input.value
348
- }, errorFactory);
349
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
350
- path: _path + "",
351
- expected: "UserDomainReceivedNotificationsProvidedRecord",
352
- value: input
353
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
354
- path: _path + "",
355
- expected: "UserDomainReceivedNotificationsProvidedRecord",
356
- value: input
357
- }, errorFactory);
358
- })(input, "$input", true);
359
- return input;
360
- }; const stringify = input => {
361
- const $string = __typia.json.createAssertStringify.string;
362
- const $tail = __typia.json.createAssertStringify.tail;
363
- const $so0 = input => `{${$tail(`${undefined === input.value ? "" : `"value":${undefined !== input.value ? `[${input.value.map(elem => $string(elem)).join(",")}]` : undefined}`}`)}}`;
364
- return $so0(input);
365
- }; return stringify(assert(input, errorFactory)); };
366
- export const isUserDomainUnseenNotificationsRecord = input => {
367
- const $io0 = input => (undefined === input.hasUnseen || "boolean" === typeof input.hasUnseen) && (undefined === input.latestReceived || "string" === typeof input.latestReceived);
368
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
369
- };
370
- export const assertUserDomainUnseenNotificationsRecord = (input, errorFactory) => {
371
- const __is = input => {
372
- const $io0 = input => (undefined === input.hasUnseen || "boolean" === typeof input.hasUnseen) && (undefined === input.latestReceived || "string" === typeof input.latestReceived);
373
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
374
- };
375
- if (false === __is(input))
376
- ((input, _path, _exceptionable = true) => {
377
- const $guard = __typia.createAssert.guard;
378
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.hasUnseen || "boolean" === typeof input.hasUnseen || $guard(_exceptionable, {
379
- path: _path + ".hasUnseen",
380
- expected: "(boolean | undefined)",
381
- value: input.hasUnseen
382
- }, errorFactory)) && (undefined === input.latestReceived || "string" === typeof input.latestReceived || $guard(_exceptionable, {
383
- path: _path + ".latestReceived",
384
- expected: "(string | undefined)",
385
- value: input.latestReceived
386
- }, errorFactory));
387
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
388
- path: _path + "",
389
- expected: "UserDomainUnseenNotificationsRecord",
390
- value: input
391
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
392
- path: _path + "",
393
- expected: "UserDomainUnseenNotificationsRecord",
394
- value: input
395
- }, errorFactory);
396
- })(input, "$input", true);
397
- return input;
398
- };
399
- export const randomUserDomainUnseenNotificationsRecord = generator => {
400
- const $generator = __typia.createRandom.generator;
401
- const $pick = __typia.createRandom.pick;
402
- const $ro0 = (_recursive = false, _depth = 0) => ({
403
- hasUnseen: $pick([
404
- () => undefined,
405
- () => (generator?.boolean ?? $generator.boolean)()
406
- ])(),
407
- latestReceived: $pick([
408
- () => undefined,
409
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
410
- ])()
411
- });
412
- return $ro0();
413
- };
414
- export const assertGuardUserDomainUnseenNotificationsRecord = (input, errorFactory) => {
415
- const __is = input => {
416
- const $io0 = input => (undefined === input.hasUnseen || "boolean" === typeof input.hasUnseen) && (undefined === input.latestReceived || "string" === typeof input.latestReceived);
417
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
418
- };
419
- if (false === __is(input))
420
- ((input, _path, _exceptionable = true) => {
421
- const $guard = __typia.createAssertGuard.guard;
422
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.hasUnseen || "boolean" === typeof input.hasUnseen || $guard(_exceptionable, {
423
- path: _path + ".hasUnseen",
424
- expected: "(boolean | undefined)",
425
- value: input.hasUnseen
426
- }, errorFactory)) && (undefined === input.latestReceived || "string" === typeof input.latestReceived || $guard(_exceptionable, {
427
- path: _path + ".latestReceived",
428
- expected: "(string | undefined)",
429
- value: input.latestReceived
430
- }, errorFactory));
431
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
432
- path: _path + "",
433
- expected: "UserDomainUnseenNotificationsRecord",
434
- value: input
435
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
436
- path: _path + "",
437
- expected: "UserDomainUnseenNotificationsRecord",
438
- value: input
439
- }, errorFactory);
440
- })(input, "$input", true);
441
- };
442
- export const stringifyUserDomainUnseenNotificationsRecord = input => {
443
- const $string = __typia.json.createStringify.string;
444
- const $tail = __typia.json.createStringify.tail;
445
- const $so0 = input => `{${$tail(`${undefined === input.hasUnseen ? "" : `"hasUnseen":${undefined !== input.hasUnseen ? input.hasUnseen : undefined},`}${undefined === input.latestReceived ? "" : `"latestReceived":${undefined !== input.latestReceived ? $string(input.latestReceived) : undefined}`}`)}}`;
446
- return $so0(input);
447
- };
448
- export const assertStringifyUserDomainUnseenNotificationsRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
449
- const __is = input => {
450
- const $io0 = input => (undefined === input.hasUnseen || "boolean" === typeof input.hasUnseen) && (undefined === input.latestReceived || "string" === typeof input.latestReceived);
451
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
452
- };
453
- if (false === __is(input))
454
- ((input, _path, _exceptionable = true) => {
455
- const $guard = __typia.json.createAssertStringify.guard;
456
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.hasUnseen || "boolean" === typeof input.hasUnseen || $guard(_exceptionable, {
457
- path: _path + ".hasUnseen",
458
- expected: "(boolean | undefined)",
459
- value: input.hasUnseen
460
- }, errorFactory)) && (undefined === input.latestReceived || "string" === typeof input.latestReceived || $guard(_exceptionable, {
461
- path: _path + ".latestReceived",
462
- expected: "(string | undefined)",
463
- value: input.latestReceived
464
- }, errorFactory));
465
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
466
- path: _path + "",
467
- expected: "UserDomainUnseenNotificationsRecord",
468
- value: input
469
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
470
- path: _path + "",
471
- expected: "UserDomainUnseenNotificationsRecord",
472
- value: input
473
- }, errorFactory);
474
- })(input, "$input", true);
475
- return input;
476
- }; const stringify = input => {
477
- const $string = __typia.json.createAssertStringify.string;
478
- const $tail = __typia.json.createAssertStringify.tail;
479
- const $so0 = input => `{${$tail(`${undefined === input.hasUnseen ? "" : `"hasUnseen":${undefined !== input.hasUnseen ? input.hasUnseen : undefined},`}${undefined === input.latestReceived ? "" : `"latestReceived":${undefined !== input.latestReceived ? $string(input.latestReceived) : undefined}`}`)}}`;
480
- return $so0(input);
481
- }; return stringify(assert(input, errorFactory)); };
package/dist/monitor.d.ts DELETED
@@ -1,71 +0,0 @@
1
- import { type AssertionGuard as __AssertionGuard } from "typia";
2
- export interface MonitorRecords {
3
- "nxt.status?": NxtStatusRecord | null;
4
- }
5
- export interface NxtStatusRecord {
6
- nodes: {
7
- [k: string]: NxtStatusNode;
8
- };
9
- services: {
10
- [k: string]: NxtStatusService;
11
- };
12
- level: number;
13
- status: string;
14
- }
15
- export declare const isNxtStatusRecord: (input: unknown) => input is NxtStatusRecord;
16
- export declare const assertNxtStatusRecord: (input: unknown) => NxtStatusRecord;
17
- export declare const randomNxtStatusRecord: () => NxtStatusRecord;
18
- export declare const assertGuardNxtStatusRecord: __AssertionGuard<NxtStatusRecord>;
19
- export declare const stringifyNxtStatusRecord: (input: NxtStatusRecord) => string;
20
- export declare const assertStringifyNxtStatusRecord: (input: unknown) => string;
21
- export interface NxtStatusObject {
22
- level: number;
23
- status: string;
24
- messages: Array<{
25
- msg: string;
26
- level: number;
27
- }>;
28
- }
29
- export declare const isNxtStatusObject: (input: unknown) => input is NxtStatusObject;
30
- export declare const assertNxtStatusObject: (input: unknown) => NxtStatusObject;
31
- export declare const randomNxtStatusObject: () => NxtStatusObject;
32
- export declare const assertGuardNxtStatusObject: __AssertionGuard<NxtStatusObject>;
33
- export declare const stringifyNxtStatusObject: (input: NxtStatusObject) => string;
34
- export declare const assertStringifyNxtStatusObject: (input: unknown) => string;
35
- export interface NxtStatusNode extends NxtStatusObject {
36
- state?: string;
37
- role?: string;
38
- leader?: boolean;
39
- availability?: string;
40
- classes?: string[];
41
- address?: string;
42
- }
43
- export declare const isNxtStatusNode: (input: unknown) => input is NxtStatusNode;
44
- export declare const assertNxtStatusNode: (input: unknown) => NxtStatusNode;
45
- export declare const randomNxtStatusNode: () => NxtStatusNode;
46
- export declare const assertGuardNxtStatusNode: __AssertionGuard<NxtStatusNode>;
47
- export declare const stringifyNxtStatusNode: (input: NxtStatusNode) => string;
48
- export declare const assertStringifyNxtStatusNode: (input: unknown) => string;
49
- export interface NxtStatusService extends NxtStatusObject {
50
- image?: string;
51
- running?: number;
52
- mode?: string;
53
- total?: number;
54
- tasks?: Array<{
55
- id: string;
56
- node: string;
57
- container: string;
58
- level?: number;
59
- status?: string;
60
- messages: Array<{
61
- msg: string;
62
- level: number;
63
- }>;
64
- }>;
65
- }
66
- export declare const isNxtStatusService: (input: unknown) => input is NxtStatusService;
67
- export declare const assertNxtStatusService: (input: unknown) => NxtStatusService;
68
- export declare const randomNxtStatusService: () => NxtStatusService;
69
- export declare const assertGuardNxtStatusService: __AssertionGuard<NxtStatusService>;
70
- export declare const stringifyNxtStatusService: (input: NxtStatusService) => string;
71
- export declare const assertStringifyNxtStatusService: (input: unknown) => string;