@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,31 +1,25 @@
1
- import { type AssertionGuard as __AssertionGuard } from "typia";
2
- export * from './block.js';
3
- export * from './clone.js';
4
- export * from './date.js';
5
- export * from './file.js';
6
- export * from './location.js';
7
- export * from './nxtpression.js';
8
- export * from './lock.js';
9
- export * from './media.js';
10
- export * from './pipeline.js';
11
- export * from './promoted-tag.js';
12
- export * from './render-preset.js';
13
- export * from './render-profile.js';
14
- export * from './render-query.js';
15
- export * from './render-scene.js';
16
- export * from './rule.js';
17
- export * from './search.js';
18
- export * from './settings.js';
19
- export * from './error.js';
20
- export * from './user-notification.js';
1
+ export * from './block.ts';
2
+ export * from './clone.ts';
3
+ export * from './date.ts';
4
+ export * from './file.ts';
5
+ export * from './location.ts';
6
+ export * from './nxtpression.ts';
7
+ export * from './lock.ts';
8
+ export * from './media.ts';
9
+ export * from './pipeline.ts';
10
+ export * from './promoted-tag.ts';
11
+ export * from './render-preset.ts';
12
+ export * from './render-profile.ts';
13
+ export * from './render-query.ts';
14
+ export * from './render-scene.ts';
15
+ export * from './rule.ts';
16
+ export * from './search.ts';
17
+ export * from './settings.ts';
18
+ export * from './subtitle-style.ts';
19
+ export * from './error.ts';
20
+ export * from './user-notification.ts';
21
21
  export interface Message {
22
22
  level: number;
23
23
  code: string;
24
24
  msg: string;
25
25
  }
26
- export declare const isMessage: (input: unknown) => input is Message;
27
- export declare const assertMessage: (input: unknown) => Message;
28
- export declare const randomMessage: () => Message;
29
- export declare const assertGuardMessage: __AssertionGuard<Message>;
30
- export declare const stringifyMessage: (input: Message) => string;
31
- export declare const assertStringifyMessage: (input: unknown) => string;
@@ -1,134 +1,20 @@
1
- import __typia from "typia";
2
- export * from './block.js';
3
- export * from './clone.js';
4
- export * from './date.js';
5
- export * from './file.js';
6
- export * from './location.js';
7
- export * from './nxtpression.js';
8
- export * from './lock.js';
9
- export * from './media.js';
10
- export * from './pipeline.js';
11
- export * from './promoted-tag.js';
12
- export * from './render-preset.js';
13
- export * from './render-profile.js';
14
- export * from './render-query.js';
15
- export * from './render-scene.js';
16
- export * from './rule.js';
17
- export * from './search.js';
18
- export * from './settings.js';
19
- export * from './error.js';
20
- export * from './user-notification.js';
21
- export const isMessage = input => {
22
- return "object" === typeof input && null !== input && ("number" === typeof input.level && "string" === typeof input.code && "string" === typeof input.msg);
23
- };
24
- export const assertMessage = (input, errorFactory) => {
25
- const __is = input => {
26
- return "object" === typeof input && null !== input && ("number" === typeof input.level && "string" === typeof input.code && "string" === typeof input.msg);
27
- };
28
- if (false === __is(input))
29
- ((input, _path, _exceptionable = true) => {
30
- const $guard = __typia.createAssert.guard;
31
- const $ao0 = (input, _path, _exceptionable = true) => ("number" === typeof input.level || $guard(_exceptionable, {
32
- path: _path + ".level",
33
- expected: "number",
34
- value: input.level
35
- }, errorFactory)) && ("string" === typeof input.code || $guard(_exceptionable, {
36
- path: _path + ".code",
37
- expected: "string",
38
- value: input.code
39
- }, errorFactory)) && ("string" === typeof input.msg || $guard(_exceptionable, {
40
- path: _path + ".msg",
41
- expected: "string",
42
- value: input.msg
43
- }, errorFactory));
44
- return ("object" === typeof input && null !== input || $guard(true, {
45
- path: _path + "",
46
- expected: "Message",
47
- value: input
48
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
49
- path: _path + "",
50
- expected: "Message",
51
- value: input
52
- }, errorFactory);
53
- })(input, "$input", true);
54
- return input;
55
- };
56
- export const randomMessage = generator => {
57
- const $generator = __typia.createRandom.generator;
58
- const $ro0 = (_recursive = false, _depth = 0) => ({
59
- level: (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100),
60
- code: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
61
- msg: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
62
- });
63
- return $ro0();
64
- };
65
- export const assertGuardMessage = (input, errorFactory) => {
66
- const __is = input => {
67
- return "object" === typeof input && null !== input && ("number" === typeof input.level && "string" === typeof input.code && "string" === typeof input.msg);
68
- };
69
- if (false === __is(input))
70
- ((input, _path, _exceptionable = true) => {
71
- const $guard = __typia.createAssertGuard.guard;
72
- const $ao0 = (input, _path, _exceptionable = true) => ("number" === typeof input.level || $guard(_exceptionable, {
73
- path: _path + ".level",
74
- expected: "number",
75
- value: input.level
76
- }, errorFactory)) && ("string" === typeof input.code || $guard(_exceptionable, {
77
- path: _path + ".code",
78
- expected: "string",
79
- value: input.code
80
- }, errorFactory)) && ("string" === typeof input.msg || $guard(_exceptionable, {
81
- path: _path + ".msg",
82
- expected: "string",
83
- value: input.msg
84
- }, errorFactory));
85
- return ("object" === typeof input && null !== input || $guard(true, {
86
- path: _path + "",
87
- expected: "Message",
88
- value: input
89
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
90
- path: _path + "",
91
- expected: "Message",
92
- value: input
93
- }, errorFactory);
94
- })(input, "$input", true);
95
- };
96
- export const stringifyMessage = input => {
97
- const $string = __typia.json.createStringify.string;
98
- return `{"level":${input.level},"code":${$string(input.code)},"msg":${$string(input.msg)}}`;
99
- };
100
- export const assertStringifyMessage = (input, errorFactory) => { const assert = (input, errorFactory) => {
101
- const __is = input => {
102
- return "object" === typeof input && null !== input && ("number" === typeof input.level && !Number.isNaN(input.level) && "string" === typeof input.code && "string" === typeof input.msg);
103
- };
104
- if (false === __is(input))
105
- ((input, _path, _exceptionable = true) => {
106
- const $guard = __typia.json.createAssertStringify.guard;
107
- const $ao0 = (input, _path, _exceptionable = true) => ("number" === typeof input.level && !Number.isNaN(input.level) || $guard(_exceptionable, {
108
- path: _path + ".level",
109
- expected: "number",
110
- value: input.level
111
- }, errorFactory)) && ("string" === typeof input.code || $guard(_exceptionable, {
112
- path: _path + ".code",
113
- expected: "string",
114
- value: input.code
115
- }, errorFactory)) && ("string" === typeof input.msg || $guard(_exceptionable, {
116
- path: _path + ".msg",
117
- expected: "string",
118
- value: input.msg
119
- }, errorFactory));
120
- return ("object" === typeof input && null !== input || $guard(true, {
121
- path: _path + "",
122
- expected: "Message",
123
- value: input
124
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
125
- path: _path + "",
126
- expected: "Message",
127
- value: input
128
- }, errorFactory);
129
- })(input, "$input", true);
130
- return input;
131
- }; const stringify = input => {
132
- const $string = __typia.json.createAssertStringify.string;
133
- return `{"level":${input.level},"code":${$string(input.code)},"msg":${$string(input.msg)}}`;
134
- }; return stringify(assert(input, errorFactory)); };
1
+ export * from "./block.js";
2
+ export * from "./clone.js";
3
+ export * from "./date.js";
4
+ export * from "./file.js";
5
+ export * from "./location.js";
6
+ export * from "./nxtpression.js";
7
+ export * from "./lock.js";
8
+ export * from "./media.js";
9
+ export * from "./pipeline.js";
10
+ export * from "./promoted-tag.js";
11
+ export * from "./render-preset.js";
12
+ export * from "./render-profile.js";
13
+ export * from "./render-query.js";
14
+ export * from "./render-scene.js";
15
+ export * from "./rule.js";
16
+ export * from "./search.js";
17
+ export * from "./settings.js";
18
+ export * from "./subtitle-style.js";
19
+ export * from "./error.js";
20
+ export * from "./user-notification.js";
@@ -1,4 +1,3 @@
1
- import { type AssertionGuard as __AssertionGuard } from "typia";
2
1
  export interface Location {
3
2
  id: string;
4
3
  size: number | null;
@@ -10,9 +9,4 @@ export interface Location {
10
9
  zone: string;
11
10
  allows: string[];
12
11
  }
13
- export declare const isLocation: (input: unknown) => input is Location;
14
12
  export declare const assertLocation: (input: unknown) => Location;
15
- export declare const randomLocation: () => Location;
16
- export declare const assertGuardLocation: __AssertionGuard<Location>;
17
- export declare const stringifyLocation: (input: Location) => string;
18
- export declare const assertStringifyLocation: (input: unknown) => string;
@@ -1,239 +1,74 @@
1
- import __typia from "typia";
2
- export const isLocation = input => {
3
- const $io0 = input => "string" === typeof input.id && (null === input.size || "number" === typeof input.size) && (null === input.free || "number" === typeof input.free) && (null === input.capacity || "number" === typeof input.capacity) && (null === input.available || "number" === typeof input.available) && (null === input.cache || "boolean" === typeof input.cache) && "string" === typeof input.origin && "string" === typeof input.zone && (Array.isArray(input.allows) && input.allows.every(elem => "string" === typeof elem));
4
- return "object" === typeof input && null !== input && $io0(input);
5
- };
6
- export const assertLocation = (input, errorFactory) => {
7
- const __is = input => {
8
- const $io0 = input => "string" === typeof input.id && (null === input.size || "number" === typeof input.size) && (null === input.free || "number" === typeof input.free) && (null === input.capacity || "number" === typeof input.capacity) && (null === input.available || "number" === typeof input.available) && (null === input.cache || "boolean" === typeof input.cache) && "string" === typeof input.origin && "string" === typeof input.zone && (Array.isArray(input.allows) && input.allows.every(elem => "string" === typeof elem));
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) => ("string" === typeof input.id || $guard(_exceptionable, {
15
- path: _path + ".id",
16
- expected: "string",
17
- value: input.id
18
- }, errorFactory)) && (null === input.size || "number" === typeof input.size || $guard(_exceptionable, {
19
- path: _path + ".size",
20
- expected: "(null | number)",
21
- value: input.size
22
- }, errorFactory)) && (null === input.free || "number" === typeof input.free || $guard(_exceptionable, {
23
- path: _path + ".free",
24
- expected: "(null | number)",
25
- value: input.free
26
- }, errorFactory)) && (null === input.capacity || "number" === typeof input.capacity || $guard(_exceptionable, {
27
- path: _path + ".capacity",
28
- expected: "(null | number)",
29
- value: input.capacity
30
- }, errorFactory)) && (null === input.available || "number" === typeof input.available || $guard(_exceptionable, {
31
- path: _path + ".available",
32
- expected: "(null | number)",
33
- value: input.available
34
- }, errorFactory)) && (null === input.cache || "boolean" === typeof input.cache || $guard(_exceptionable, {
35
- path: _path + ".cache",
36
- expected: "(boolean | null)",
37
- value: input.cache
38
- }, errorFactory)) && ("string" === typeof input.origin || $guard(_exceptionable, {
39
- path: _path + ".origin",
40
- expected: "string",
41
- value: input.origin
42
- }, errorFactory)) && ("string" === typeof input.zone || $guard(_exceptionable, {
43
- path: _path + ".zone",
44
- expected: "string",
45
- value: input.zone
46
- }, errorFactory)) && ((Array.isArray(input.allows) || $guard(_exceptionable, {
47
- path: _path + ".allows",
48
- expected: "Array<string>",
49
- value: input.allows
50
- }, errorFactory)) && input.allows.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
51
- path: _path + ".allows[" + _index1 + "]",
52
- expected: "string",
53
- value: elem
54
- }, errorFactory)) || $guard(_exceptionable, {
55
- path: _path + ".allows",
56
- expected: "Array<string>",
57
- value: input.allows
58
- }, errorFactory));
59
- return ("object" === typeof input && null !== input || $guard(true, {
60
- path: _path + "",
61
- expected: "Location",
62
- value: input
63
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
64
- path: _path + "",
65
- expected: "Location",
66
- value: input
67
- }, errorFactory);
68
- })(input, "$input", true);
1
+ import * as __typia_transform__assertGuard from "typia/lib/internal/_assertGuard.js";
2
+ import typia from "typia";
3
+ export const assertLocation = (() => { const _io0 = input => "string" === typeof input.id && (null === input.size || "number" === typeof input.size) && (null === input.free || "number" === typeof input.free) && (null === input.capacity || "number" === typeof input.capacity) && (null === input.available || "number" === typeof input.available) && (null === input.cache || "boolean" === typeof input.cache) && "string" === typeof input.origin && "string" === typeof input.zone && (Array.isArray(input.allows) && input.allows.every(elem => "string" === typeof elem)); const _ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.id || __typia_transform__assertGuard._assertGuard(_exceptionable, {
4
+ method: "typia.createAssert",
5
+ path: _path + ".id",
6
+ expected: "string",
7
+ value: input.id
8
+ }, _errorFactory)) && (null === input.size || "number" === typeof input.size || __typia_transform__assertGuard._assertGuard(_exceptionable, {
9
+ method: "typia.createAssert",
10
+ path: _path + ".size",
11
+ expected: "(null | number)",
12
+ value: input.size
13
+ }, _errorFactory)) && (null === input.free || "number" === typeof input.free || __typia_transform__assertGuard._assertGuard(_exceptionable, {
14
+ method: "typia.createAssert",
15
+ path: _path + ".free",
16
+ expected: "(null | number)",
17
+ value: input.free
18
+ }, _errorFactory)) && (null === input.capacity || "number" === typeof input.capacity || __typia_transform__assertGuard._assertGuard(_exceptionable, {
19
+ method: "typia.createAssert",
20
+ path: _path + ".capacity",
21
+ expected: "(null | number)",
22
+ value: input.capacity
23
+ }, _errorFactory)) && (null === input.available || "number" === typeof input.available || __typia_transform__assertGuard._assertGuard(_exceptionable, {
24
+ method: "typia.createAssert",
25
+ path: _path + ".available",
26
+ expected: "(null | number)",
27
+ value: input.available
28
+ }, _errorFactory)) && (null === input.cache || "boolean" === typeof input.cache || __typia_transform__assertGuard._assertGuard(_exceptionable, {
29
+ method: "typia.createAssert",
30
+ path: _path + ".cache",
31
+ expected: "(boolean | null)",
32
+ value: input.cache
33
+ }, _errorFactory)) && ("string" === typeof input.origin || __typia_transform__assertGuard._assertGuard(_exceptionable, {
34
+ method: "typia.createAssert",
35
+ path: _path + ".origin",
36
+ expected: "string",
37
+ value: input.origin
38
+ }, _errorFactory)) && ("string" === typeof input.zone || __typia_transform__assertGuard._assertGuard(_exceptionable, {
39
+ method: "typia.createAssert",
40
+ path: _path + ".zone",
41
+ expected: "string",
42
+ value: input.zone
43
+ }, _errorFactory)) && ((Array.isArray(input.allows) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
44
+ method: "typia.createAssert",
45
+ path: _path + ".allows",
46
+ expected: "Array<string>",
47
+ value: input.allows
48
+ }, _errorFactory)) && input.allows.every((elem, _index2) => "string" === typeof elem || __typia_transform__assertGuard._assertGuard(_exceptionable, {
49
+ method: "typia.createAssert",
50
+ path: _path + ".allows[" + _index2 + "]",
51
+ expected: "string",
52
+ value: elem
53
+ }, _errorFactory)) || __typia_transform__assertGuard._assertGuard(_exceptionable, {
54
+ method: "typia.createAssert",
55
+ path: _path + ".allows",
56
+ expected: "Array<string>",
57
+ value: input.allows
58
+ }, _errorFactory)); const __is = input => "object" === typeof input && null !== input && _io0(input); let _errorFactory; return (input, errorFactory) => {
59
+ if (false === __is(input)) {
60
+ _errorFactory = errorFactory;
61
+ ((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || __typia_transform__assertGuard._assertGuard(true, {
62
+ method: "typia.createAssert",
63
+ path: _path + "",
64
+ expected: "Location",
65
+ value: input
66
+ }, _errorFactory)) && _ao0(input, _path + "", true) || __typia_transform__assertGuard._assertGuard(true, {
67
+ method: "typia.createAssert",
68
+ path: _path + "",
69
+ expected: "Location",
70
+ value: input
71
+ }, _errorFactory))(input, "$input", true);
72
+ }
69
73
  return input;
70
- };
71
- export const randomLocation = generator => {
72
- const $generator = __typia.createRandom.generator;
73
- const $pick = __typia.createRandom.pick;
74
- const $ro0 = (_recursive = false, _depth = 0) => ({
75
- id: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
76
- size: $pick([
77
- () => null,
78
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
79
- ])(),
80
- free: $pick([
81
- () => null,
82
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
83
- ])(),
84
- capacity: $pick([
85
- () => null,
86
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
87
- ])(),
88
- available: $pick([
89
- () => null,
90
- () => (generator?.customs ?? $generator.customs)?.number?.([]) ?? (generator?.number ?? $generator.number)(0, 100)
91
- ])(),
92
- cache: $pick([
93
- () => null,
94
- () => (generator?.boolean ?? $generator.boolean)()
95
- ])(),
96
- origin: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
97
- zone: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
98
- allows: (generator?.array ?? $generator.array)(() => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)())
99
- });
100
- return $ro0();
101
- };
102
- export const assertGuardLocation = (input, errorFactory) => {
103
- const __is = input => {
104
- const $io0 = input => "string" === typeof input.id && (null === input.size || "number" === typeof input.size) && (null === input.free || "number" === typeof input.free) && (null === input.capacity || "number" === typeof input.capacity) && (null === input.available || "number" === typeof input.available) && (null === input.cache || "boolean" === typeof input.cache) && "string" === typeof input.origin && "string" === typeof input.zone && (Array.isArray(input.allows) && input.allows.every(elem => "string" === typeof elem));
105
- return "object" === typeof input && null !== input && $io0(input);
106
- };
107
- if (false === __is(input))
108
- ((input, _path, _exceptionable = true) => {
109
- const $guard = __typia.createAssertGuard.guard;
110
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.id || $guard(_exceptionable, {
111
- path: _path + ".id",
112
- expected: "string",
113
- value: input.id
114
- }, errorFactory)) && (null === input.size || "number" === typeof input.size || $guard(_exceptionable, {
115
- path: _path + ".size",
116
- expected: "(null | number)",
117
- value: input.size
118
- }, errorFactory)) && (null === input.free || "number" === typeof input.free || $guard(_exceptionable, {
119
- path: _path + ".free",
120
- expected: "(null | number)",
121
- value: input.free
122
- }, errorFactory)) && (null === input.capacity || "number" === typeof input.capacity || $guard(_exceptionable, {
123
- path: _path + ".capacity",
124
- expected: "(null | number)",
125
- value: input.capacity
126
- }, errorFactory)) && (null === input.available || "number" === typeof input.available || $guard(_exceptionable, {
127
- path: _path + ".available",
128
- expected: "(null | number)",
129
- value: input.available
130
- }, errorFactory)) && (null === input.cache || "boolean" === typeof input.cache || $guard(_exceptionable, {
131
- path: _path + ".cache",
132
- expected: "(boolean | null)",
133
- value: input.cache
134
- }, errorFactory)) && ("string" === typeof input.origin || $guard(_exceptionable, {
135
- path: _path + ".origin",
136
- expected: "string",
137
- value: input.origin
138
- }, errorFactory)) && ("string" === typeof input.zone || $guard(_exceptionable, {
139
- path: _path + ".zone",
140
- expected: "string",
141
- value: input.zone
142
- }, errorFactory)) && ((Array.isArray(input.allows) || $guard(_exceptionable, {
143
- path: _path + ".allows",
144
- expected: "Array<string>",
145
- value: input.allows
146
- }, errorFactory)) && input.allows.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
147
- path: _path + ".allows[" + _index1 + "]",
148
- expected: "string",
149
- value: elem
150
- }, errorFactory)) || $guard(_exceptionable, {
151
- path: _path + ".allows",
152
- expected: "Array<string>",
153
- value: input.allows
154
- }, errorFactory));
155
- return ("object" === typeof input && null !== input || $guard(true, {
156
- path: _path + "",
157
- expected: "Location",
158
- value: input
159
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
160
- path: _path + "",
161
- expected: "Location",
162
- value: input
163
- }, errorFactory);
164
- })(input, "$input", true);
165
- };
166
- export const stringifyLocation = input => {
167
- const $string = __typia.json.createStringify.string;
168
- const $so0 = input => `{"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"free":${null !== input.free ? input.free : "null"},"capacity":${null !== input.capacity ? input.capacity : "null"},"available":${null !== input.available ? input.available : "null"},"cache":${null !== input.cache ? input.cache : "null"},"origin":${$string(input.origin)},"zone":${$string(input.zone)},"allows":${`[${input.allows.map(elem => $string(elem)).join(",")}]`}}`;
169
- return $so0(input);
170
- };
171
- export const assertStringifyLocation = (input, errorFactory) => { const assert = (input, errorFactory) => {
172
- const __is = input => {
173
- const $io0 = input => "string" === typeof input.id && (null === input.size || "number" === typeof input.size && !Number.isNaN(input.size)) && (null === input.free || "number" === typeof input.free && !Number.isNaN(input.free)) && (null === input.capacity || "number" === typeof input.capacity && !Number.isNaN(input.capacity)) && (null === input.available || "number" === typeof input.available && !Number.isNaN(input.available)) && (null === input.cache || "boolean" === typeof input.cache) && "string" === typeof input.origin && "string" === typeof input.zone && (Array.isArray(input.allows) && input.allows.every(elem => "string" === typeof elem));
174
- return "object" === typeof input && null !== input && $io0(input);
175
- };
176
- if (false === __is(input))
177
- ((input, _path, _exceptionable = true) => {
178
- const $guard = __typia.json.createAssertStringify.guard;
179
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.id || $guard(_exceptionable, {
180
- path: _path + ".id",
181
- expected: "string",
182
- value: input.id
183
- }, errorFactory)) && (null === input.size || "number" === typeof input.size && !Number.isNaN(input.size) || $guard(_exceptionable, {
184
- path: _path + ".size",
185
- expected: "(null | number)",
186
- value: input.size
187
- }, errorFactory)) && (null === input.free || "number" === typeof input.free && !Number.isNaN(input.free) || $guard(_exceptionable, {
188
- path: _path + ".free",
189
- expected: "(null | number)",
190
- value: input.free
191
- }, errorFactory)) && (null === input.capacity || "number" === typeof input.capacity && !Number.isNaN(input.capacity) || $guard(_exceptionable, {
192
- path: _path + ".capacity",
193
- expected: "(null | number)",
194
- value: input.capacity
195
- }, errorFactory)) && (null === input.available || "number" === typeof input.available && !Number.isNaN(input.available) || $guard(_exceptionable, {
196
- path: _path + ".available",
197
- expected: "(null | number)",
198
- value: input.available
199
- }, errorFactory)) && (null === input.cache || "boolean" === typeof input.cache || $guard(_exceptionable, {
200
- path: _path + ".cache",
201
- expected: "(boolean | null)",
202
- value: input.cache
203
- }, errorFactory)) && ("string" === typeof input.origin || $guard(_exceptionable, {
204
- path: _path + ".origin",
205
- expected: "string",
206
- value: input.origin
207
- }, errorFactory)) && ("string" === typeof input.zone || $guard(_exceptionable, {
208
- path: _path + ".zone",
209
- expected: "string",
210
- value: input.zone
211
- }, errorFactory)) && ((Array.isArray(input.allows) || $guard(_exceptionable, {
212
- path: _path + ".allows",
213
- expected: "Array<string>",
214
- value: input.allows
215
- }, errorFactory)) && input.allows.every((elem, _index1) => "string" === typeof elem || $guard(_exceptionable, {
216
- path: _path + ".allows[" + _index1 + "]",
217
- expected: "string",
218
- value: elem
219
- }, errorFactory)) || $guard(_exceptionable, {
220
- path: _path + ".allows",
221
- expected: "Array<string>",
222
- value: input.allows
223
- }, errorFactory));
224
- return ("object" === typeof input && null !== input || $guard(true, {
225
- path: _path + "",
226
- expected: "Location",
227
- value: input
228
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
229
- path: _path + "",
230
- expected: "Location",
231
- value: input
232
- }, errorFactory);
233
- })(input, "$input", true);
234
- return input;
235
- }; const stringify = input => {
236
- const $string = __typia.json.createAssertStringify.string;
237
- const $so0 = input => `{"id":${$string(input.id)},"size":${null !== input.size ? input.size : "null"},"free":${null !== input.free ? input.free : "null"},"capacity":${null !== input.capacity ? input.capacity : "null"},"available":${null !== input.available ? input.available : "null"},"cache":${null !== input.cache ? input.cache : "null"},"origin":${$string(input.origin)},"zone":${$string(input.zone)},"allows":${`[${input.allows.map(elem => $string(elem)).join(",")}]`}}`;
238
- return $so0(input);
239
- }; return stringify(assert(input, errorFactory)); };
74
+ }; })();
@@ -1,13 +1,6 @@
1
- import { type AssertionGuard as __AssertionGuard } from "typia";
2
- import { tags } from 'typia';
1
+ import type { tags } from 'typia';
3
2
  export interface Lock {
4
3
  time: number & tags.ExclusiveMinimum<0>;
5
4
  locations: Array<string & tags.MinLength<1>> | null;
6
5
  replicas: number & tags.ExclusiveMinimum<0>;
7
6
  }
8
- export declare const isLock: (input: unknown) => input is Lock;
9
- export declare const assertLock: (input: unknown) => Lock;
10
- export declare const randomLock: () => Lock;
11
- export declare const assertGuardLock: __AssertionGuard<Lock>;
12
- export declare const stringifyLock: (input: Lock) => string;
13
- export declare const assertStringifyLock: (input: unknown) => string;