@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,32 +1,13 @@
1
- import { type AssertionGuard as __AssertionGuard } from "typia";
2
1
  export type CloneSource = string | {
3
2
  id: string;
4
3
  patches?: Record<string, unknown>;
5
4
  };
6
- export declare const isCloneSource: (input: unknown) => input is CloneSource;
7
- export declare const assertCloneSource: (input: unknown) => CloneSource;
8
- export declare const randomCloneSource: () => CloneSource;
9
- export declare const assertGuardCloneSource: __AssertionGuard<CloneSource>;
10
- export declare const stringifyCloneSource: (input: CloneSource) => string;
11
- export declare const assertStringifyCloneSource: (input: unknown) => string;
12
5
  export type CloneTarget = string | {
13
6
  id: string;
14
7
  patches?: Record<string, unknown>;
15
8
  };
16
- export declare const isCloneTarget: (input: unknown) => input is CloneTarget;
17
- export declare const assertCloneTarget: (input: unknown) => CloneTarget;
18
- export declare const randomCloneTarget: () => CloneTarget;
19
- export declare const assertGuardCloneTarget: __AssertionGuard<CloneTarget>;
20
- export declare const stringifyCloneTarget: (input: CloneTarget) => string;
21
- export declare const assertStringifyCloneTarget: (input: unknown) => string;
22
9
  export interface CloneRule {
23
10
  domain: string;
24
11
  path?: string | null;
25
12
  template?: string | null;
26
13
  }
27
- export declare const isCloneRule: (input: unknown) => input is CloneRule;
28
- export declare const assertCloneRule: (input: unknown) => CloneRule;
29
- export declare const randomCloneRule: () => CloneRule;
30
- export declare const assertGuardCloneRule: __AssertionGuard<CloneRule>;
31
- export declare const stringifyCloneRule: (input: CloneRule) => string;
32
- export declare const assertStringifyCloneRule: (input: unknown) => string;
@@ -1,602 +1 @@
1
- import __typia from "typia";
2
- export const isCloneSource = input => {
3
- const $io0 = input => "string" === typeof input.id && (undefined === input.patches || "object" === typeof input.patches && null !== input.patches && false === Array.isArray(input.patches) && $io1(input.patches));
4
- const $io1 = input => Object.keys(input).every(key => {
5
- const value = input[key];
6
- if (undefined === value)
7
- return true;
8
- return true;
9
- });
10
- return null !== input && undefined !== input && ("string" === typeof input || "object" === typeof input && null !== input && $io0(input));
11
- };
12
- export const assertCloneSource = (input, errorFactory) => {
13
- const __is = input => {
14
- const $io0 = input => "string" === typeof input.id && (undefined === input.patches || "object" === typeof input.patches && null !== input.patches && false === Array.isArray(input.patches) && $io1(input.patches));
15
- const $io1 = input => Object.keys(input).every(key => {
16
- const value = input[key];
17
- if (undefined === value)
18
- return true;
19
- return true;
20
- });
21
- return null !== input && undefined !== input && ("string" === typeof input || "object" === typeof input && null !== input && $io0(input));
22
- };
23
- if (false === __is(input))
24
- ((input, _path, _exceptionable = true) => {
25
- const $guard = __typia.createAssert.guard;
26
- const $join = __typia.createAssert.join;
27
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.id || $guard(_exceptionable, {
28
- path: _path + ".id",
29
- expected: "string",
30
- value: input.id
31
- }, errorFactory)) && (undefined === input.patches || ("object" === typeof input.patches && null !== input.patches && false === Array.isArray(input.patches) || $guard(_exceptionable, {
32
- path: _path + ".patches",
33
- expected: "(Record<string, unknown> | undefined)",
34
- value: input.patches
35
- }, errorFactory)) && $ao1(input.patches, _path + ".patches", true && _exceptionable) || $guard(_exceptionable, {
36
- path: _path + ".patches",
37
- expected: "(Record<string, unknown> | undefined)",
38
- value: input.patches
39
- }, errorFactory));
40
- const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
41
- const value = input[key];
42
- if (undefined === value)
43
- return true;
44
- return true;
45
- });
46
- return (null !== input || $guard(true, {
47
- path: _path + "",
48
- expected: "(__type | string)",
49
- value: input
50
- }, errorFactory)) && (undefined !== input || $guard(true, {
51
- path: _path + "",
52
- expected: "(__type | string)",
53
- value: input
54
- }, errorFactory)) && ("string" === typeof input || ("object" === typeof input && null !== input || $guard(true, {
55
- path: _path + "",
56
- expected: "(__type | string)",
57
- value: input
58
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
59
- path: _path + "",
60
- expected: "(__type | string)",
61
- value: input
62
- }, errorFactory));
63
- })(input, "$input", true);
64
- return input;
65
- };
66
- export const randomCloneSource = generator => {
67
- const $generator = __typia.createRandom.generator;
68
- const $pick = __typia.createRandom.pick;
69
- const $ro0 = (_recursive = false, _depth = 0) => ({
70
- id: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
71
- patches: $pick([
72
- () => undefined,
73
- () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
74
- ])()
75
- });
76
- const $ro1 = (_recursive = false, _depth = 0) => {
77
- const output = {};
78
- (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = "any type used...", (generator?.integer ?? $generator.integer)(0, 3));
79
- return output;
80
- };
81
- return $pick([
82
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
83
- () => $ro0()
84
- ])();
85
- };
86
- export const assertGuardCloneSource = (input, errorFactory) => {
87
- const __is = input => {
88
- const $io0 = input => "string" === typeof input.id && (undefined === input.patches || "object" === typeof input.patches && null !== input.patches && false === Array.isArray(input.patches) && $io1(input.patches));
89
- const $io1 = input => Object.keys(input).every(key => {
90
- const value = input[key];
91
- if (undefined === value)
92
- return true;
93
- return true;
94
- });
95
- return null !== input && undefined !== input && ("string" === typeof input || "object" === typeof input && null !== input && $io0(input));
96
- };
97
- if (false === __is(input))
98
- ((input, _path, _exceptionable = true) => {
99
- const $guard = __typia.createAssertGuard.guard;
100
- const $join = __typia.createAssertGuard.join;
101
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.id || $guard(_exceptionable, {
102
- path: _path + ".id",
103
- expected: "string",
104
- value: input.id
105
- }, errorFactory)) && (undefined === input.patches || ("object" === typeof input.patches && null !== input.patches && false === Array.isArray(input.patches) || $guard(_exceptionable, {
106
- path: _path + ".patches",
107
- expected: "(Record<string, unknown> | undefined)",
108
- value: input.patches
109
- }, errorFactory)) && $ao1(input.patches, _path + ".patches", true && _exceptionable) || $guard(_exceptionable, {
110
- path: _path + ".patches",
111
- expected: "(Record<string, unknown> | undefined)",
112
- value: input.patches
113
- }, errorFactory));
114
- const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
115
- const value = input[key];
116
- if (undefined === value)
117
- return true;
118
- return true;
119
- });
120
- return (null !== input || $guard(true, {
121
- path: _path + "",
122
- expected: "(__type | string)",
123
- value: input
124
- }, errorFactory)) && (undefined !== input || $guard(true, {
125
- path: _path + "",
126
- expected: "(__type | string)",
127
- value: input
128
- }, errorFactory)) && ("string" === typeof input || ("object" === typeof input && null !== input || $guard(true, {
129
- path: _path + "",
130
- expected: "(__type | string)",
131
- value: input
132
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
133
- path: _path + "",
134
- expected: "(__type | string)",
135
- value: input
136
- }, errorFactory));
137
- })(input, "$input", true);
138
- };
139
- export const stringifyCloneSource = input => {
140
- const $io1 = input => Object.keys(input).every(key => {
141
- const value = input[key];
142
- if (undefined === value)
143
- return true;
144
- return true;
145
- });
146
- const $string = __typia.json.createStringify.string;
147
- const $throws = __typia.json.createStringify.throws;
148
- const $so0 = input => `{${undefined === input.patches ? "" : `"patches":${undefined !== input.patches ? $so1(input.patches) : undefined},`}"id":${$string(input.id)}}`;
149
- const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
150
- return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`;
151
- return (() => {
152
- if ("string" === typeof input)
153
- return $string(input);
154
- if ("object" === typeof input && null !== input)
155
- return $so0(input);
156
- $throws({
157
- expected: "(__type | string)",
158
- value: input
159
- });
160
- })();
161
- };
162
- export const assertStringifyCloneSource = (input, errorFactory) => { const assert = (input, errorFactory) => {
163
- const __is = input => {
164
- const $io0 = input => "string" === typeof input.id && (undefined === input.patches || "object" === typeof input.patches && null !== input.patches && false === Array.isArray(input.patches) && $io1(input.patches));
165
- const $io1 = input => Object.keys(input).every(key => {
166
- const value = input[key];
167
- if (undefined === value)
168
- return true;
169
- return true;
170
- });
171
- return null !== input && undefined !== input && ("string" === typeof input || "object" === typeof input && null !== input && $io0(input));
172
- };
173
- if (false === __is(input))
174
- ((input, _path, _exceptionable = true) => {
175
- const $guard = __typia.json.createAssertStringify.guard;
176
- const $join = __typia.json.createAssertStringify.join;
177
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.id || $guard(_exceptionable, {
178
- path: _path + ".id",
179
- expected: "string",
180
- value: input.id
181
- }, errorFactory)) && (undefined === input.patches || ("object" === typeof input.patches && null !== input.patches && false === Array.isArray(input.patches) || $guard(_exceptionable, {
182
- path: _path + ".patches",
183
- expected: "(Record<string, unknown> | undefined)",
184
- value: input.patches
185
- }, errorFactory)) && $ao1(input.patches, _path + ".patches", true && _exceptionable) || $guard(_exceptionable, {
186
- path: _path + ".patches",
187
- expected: "(Record<string, unknown> | undefined)",
188
- value: input.patches
189
- }, errorFactory));
190
- const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
191
- const value = input[key];
192
- if (undefined === value)
193
- return true;
194
- return true;
195
- });
196
- return (null !== input || $guard(true, {
197
- path: _path + "",
198
- expected: "(__type | string)",
199
- value: input
200
- }, errorFactory)) && (undefined !== input || $guard(true, {
201
- path: _path + "",
202
- expected: "(__type | string)",
203
- value: input
204
- }, errorFactory)) && ("string" === typeof input || ("object" === typeof input && null !== input || $guard(true, {
205
- path: _path + "",
206
- expected: "(__type | string)",
207
- value: input
208
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
209
- path: _path + "",
210
- expected: "(__type | string)",
211
- value: input
212
- }, errorFactory));
213
- })(input, "$input", true);
214
- return input;
215
- }; const stringify = input => {
216
- const $io1 = input => Object.keys(input).every(key => {
217
- const value = input[key];
218
- if (undefined === value)
219
- return true;
220
- return true;
221
- });
222
- const $string = __typia.json.createAssertStringify.string;
223
- const $throws = __typia.json.createAssertStringify.throws;
224
- const $so0 = input => `{${undefined === input.patches ? "" : `"patches":${undefined !== input.patches ? $so1(input.patches) : undefined},`}"id":${$string(input.id)}}`;
225
- const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
226
- return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`;
227
- return (() => {
228
- if ("string" === typeof input)
229
- return $string(input);
230
- if ("object" === typeof input && null !== input)
231
- return $so0(input);
232
- $throws({
233
- expected: "(__type | string)",
234
- value: input
235
- });
236
- })();
237
- }; return stringify(assert(input, errorFactory)); };
238
- export const isCloneTarget = input => {
239
- const $io0 = input => "string" === typeof input.id && (undefined === input.patches || "object" === typeof input.patches && null !== input.patches && false === Array.isArray(input.patches) && $io1(input.patches));
240
- const $io1 = input => Object.keys(input).every(key => {
241
- const value = input[key];
242
- if (undefined === value)
243
- return true;
244
- return true;
245
- });
246
- return null !== input && undefined !== input && ("string" === typeof input || "object" === typeof input && null !== input && $io0(input));
247
- };
248
- export const assertCloneTarget = (input, errorFactory) => {
249
- const __is = input => {
250
- const $io0 = input => "string" === typeof input.id && (undefined === input.patches || "object" === typeof input.patches && null !== input.patches && false === Array.isArray(input.patches) && $io1(input.patches));
251
- const $io1 = input => Object.keys(input).every(key => {
252
- const value = input[key];
253
- if (undefined === value)
254
- return true;
255
- return true;
256
- });
257
- return null !== input && undefined !== input && ("string" === typeof input || "object" === typeof input && null !== input && $io0(input));
258
- };
259
- if (false === __is(input))
260
- ((input, _path, _exceptionable = true) => {
261
- const $guard = __typia.createAssert.guard;
262
- const $join = __typia.createAssert.join;
263
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.id || $guard(_exceptionable, {
264
- path: _path + ".id",
265
- expected: "string",
266
- value: input.id
267
- }, errorFactory)) && (undefined === input.patches || ("object" === typeof input.patches && null !== input.patches && false === Array.isArray(input.patches) || $guard(_exceptionable, {
268
- path: _path + ".patches",
269
- expected: "(Record<string, unknown> | undefined)",
270
- value: input.patches
271
- }, errorFactory)) && $ao1(input.patches, _path + ".patches", true && _exceptionable) || $guard(_exceptionable, {
272
- path: _path + ".patches",
273
- expected: "(Record<string, unknown> | undefined)",
274
- value: input.patches
275
- }, errorFactory));
276
- const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
277
- const value = input[key];
278
- if (undefined === value)
279
- return true;
280
- return true;
281
- });
282
- return (null !== input || $guard(true, {
283
- path: _path + "",
284
- expected: "(__type | string)",
285
- value: input
286
- }, errorFactory)) && (undefined !== input || $guard(true, {
287
- path: _path + "",
288
- expected: "(__type | string)",
289
- value: input
290
- }, errorFactory)) && ("string" === typeof input || ("object" === typeof input && null !== input || $guard(true, {
291
- path: _path + "",
292
- expected: "(__type | string)",
293
- value: input
294
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
295
- path: _path + "",
296
- expected: "(__type | string)",
297
- value: input
298
- }, errorFactory));
299
- })(input, "$input", true);
300
- return input;
301
- };
302
- export const randomCloneTarget = generator => {
303
- const $generator = __typia.createRandom.generator;
304
- const $pick = __typia.createRandom.pick;
305
- const $ro0 = (_recursive = false, _depth = 0) => ({
306
- id: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
307
- patches: $pick([
308
- () => undefined,
309
- () => $ro1(_recursive, _recursive ? 1 + _depth : _depth)
310
- ])()
311
- });
312
- const $ro1 = (_recursive = false, _depth = 0) => {
313
- const output = {};
314
- (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = "any type used...", (generator?.integer ?? $generator.integer)(0, 3));
315
- return output;
316
- };
317
- return $pick([
318
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
319
- () => $ro0()
320
- ])();
321
- };
322
- export const assertGuardCloneTarget = (input, errorFactory) => {
323
- const __is = input => {
324
- const $io0 = input => "string" === typeof input.id && (undefined === input.patches || "object" === typeof input.patches && null !== input.patches && false === Array.isArray(input.patches) && $io1(input.patches));
325
- const $io1 = input => Object.keys(input).every(key => {
326
- const value = input[key];
327
- if (undefined === value)
328
- return true;
329
- return true;
330
- });
331
- return null !== input && undefined !== input && ("string" === typeof input || "object" === typeof input && null !== input && $io0(input));
332
- };
333
- if (false === __is(input))
334
- ((input, _path, _exceptionable = true) => {
335
- const $guard = __typia.createAssertGuard.guard;
336
- const $join = __typia.createAssertGuard.join;
337
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.id || $guard(_exceptionable, {
338
- path: _path + ".id",
339
- expected: "string",
340
- value: input.id
341
- }, errorFactory)) && (undefined === input.patches || ("object" === typeof input.patches && null !== input.patches && false === Array.isArray(input.patches) || $guard(_exceptionable, {
342
- path: _path + ".patches",
343
- expected: "(Record<string, unknown> | undefined)",
344
- value: input.patches
345
- }, errorFactory)) && $ao1(input.patches, _path + ".patches", true && _exceptionable) || $guard(_exceptionable, {
346
- path: _path + ".patches",
347
- expected: "(Record<string, unknown> | undefined)",
348
- value: input.patches
349
- }, errorFactory));
350
- const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
351
- const value = input[key];
352
- if (undefined === value)
353
- return true;
354
- return true;
355
- });
356
- return (null !== input || $guard(true, {
357
- path: _path + "",
358
- expected: "(__type | string)",
359
- value: input
360
- }, errorFactory)) && (undefined !== input || $guard(true, {
361
- path: _path + "",
362
- expected: "(__type | string)",
363
- value: input
364
- }, errorFactory)) && ("string" === typeof input || ("object" === typeof input && null !== input || $guard(true, {
365
- path: _path + "",
366
- expected: "(__type | string)",
367
- value: input
368
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
369
- path: _path + "",
370
- expected: "(__type | string)",
371
- value: input
372
- }, errorFactory));
373
- })(input, "$input", true);
374
- };
375
- export const stringifyCloneTarget = input => {
376
- const $io1 = input => Object.keys(input).every(key => {
377
- const value = input[key];
378
- if (undefined === value)
379
- return true;
380
- return true;
381
- });
382
- const $string = __typia.json.createStringify.string;
383
- const $throws = __typia.json.createStringify.throws;
384
- const $so0 = input => `{${undefined === input.patches ? "" : `"patches":${undefined !== input.patches ? $so1(input.patches) : undefined},`}"id":${$string(input.id)}}`;
385
- const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
386
- return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`;
387
- return (() => {
388
- if ("string" === typeof input)
389
- return $string(input);
390
- if ("object" === typeof input && null !== input)
391
- return $so0(input);
392
- $throws({
393
- expected: "(__type | string)",
394
- value: input
395
- });
396
- })();
397
- };
398
- export const assertStringifyCloneTarget = (input, errorFactory) => { const assert = (input, errorFactory) => {
399
- const __is = input => {
400
- const $io0 = input => "string" === typeof input.id && (undefined === input.patches || "object" === typeof input.patches && null !== input.patches && false === Array.isArray(input.patches) && $io1(input.patches));
401
- const $io1 = input => Object.keys(input).every(key => {
402
- const value = input[key];
403
- if (undefined === value)
404
- return true;
405
- return true;
406
- });
407
- return null !== input && undefined !== input && ("string" === typeof input || "object" === typeof input && null !== input && $io0(input));
408
- };
409
- if (false === __is(input))
410
- ((input, _path, _exceptionable = true) => {
411
- const $guard = __typia.json.createAssertStringify.guard;
412
- const $join = __typia.json.createAssertStringify.join;
413
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.id || $guard(_exceptionable, {
414
- path: _path + ".id",
415
- expected: "string",
416
- value: input.id
417
- }, errorFactory)) && (undefined === input.patches || ("object" === typeof input.patches && null !== input.patches && false === Array.isArray(input.patches) || $guard(_exceptionable, {
418
- path: _path + ".patches",
419
- expected: "(Record<string, unknown> | undefined)",
420
- value: input.patches
421
- }, errorFactory)) && $ao1(input.patches, _path + ".patches", true && _exceptionable) || $guard(_exceptionable, {
422
- path: _path + ".patches",
423
- expected: "(Record<string, unknown> | undefined)",
424
- value: input.patches
425
- }, errorFactory));
426
- const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
427
- const value = input[key];
428
- if (undefined === value)
429
- return true;
430
- return true;
431
- });
432
- return (null !== input || $guard(true, {
433
- path: _path + "",
434
- expected: "(__type | string)",
435
- value: input
436
- }, errorFactory)) && (undefined !== input || $guard(true, {
437
- path: _path + "",
438
- expected: "(__type | string)",
439
- value: input
440
- }, errorFactory)) && ("string" === typeof input || ("object" === typeof input && null !== input || $guard(true, {
441
- path: _path + "",
442
- expected: "(__type | string)",
443
- value: input
444
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
445
- path: _path + "",
446
- expected: "(__type | string)",
447
- value: input
448
- }, errorFactory));
449
- })(input, "$input", true);
450
- return input;
451
- }; const stringify = input => {
452
- const $io1 = input => Object.keys(input).every(key => {
453
- const value = input[key];
454
- if (undefined === value)
455
- return true;
456
- return true;
457
- });
458
- const $string = __typia.json.createAssertStringify.string;
459
- const $throws = __typia.json.createAssertStringify.throws;
460
- const $so0 = input => `{${undefined === input.patches ? "" : `"patches":${undefined !== input.patches ? $so1(input.patches) : undefined},`}"id":${$string(input.id)}}`;
461
- const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
462
- return ""; return `${JSON.stringify(key)}:${undefined !== value ? JSON.stringify(value) : undefined}`; }).filter(str => "" !== str).join(",")}}`;
463
- return (() => {
464
- if ("string" === typeof input)
465
- return $string(input);
466
- if ("object" === typeof input && null !== input)
467
- return $so0(input);
468
- $throws({
469
- expected: "(__type | string)",
470
- value: input
471
- });
472
- })();
473
- }; return stringify(assert(input, errorFactory)); };
474
- export const isCloneRule = input => {
475
- const $io0 = input => "string" === typeof input.domain && (null === input.path || undefined === input.path || "string" === typeof input.path) && (null === input.template || undefined === input.template || "string" === typeof input.template);
476
- return "object" === typeof input && null !== input && $io0(input);
477
- };
478
- export const assertCloneRule = (input, errorFactory) => {
479
- const __is = input => {
480
- const $io0 = input => "string" === typeof input.domain && (null === input.path || undefined === input.path || "string" === typeof input.path) && (null === input.template || undefined === input.template || "string" === typeof input.template);
481
- return "object" === typeof input && null !== input && $io0(input);
482
- };
483
- if (false === __is(input))
484
- ((input, _path, _exceptionable = true) => {
485
- const $guard = __typia.createAssert.guard;
486
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.domain || $guard(_exceptionable, {
487
- path: _path + ".domain",
488
- expected: "string",
489
- value: input.domain
490
- }, errorFactory)) && (null === input.path || undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
491
- path: _path + ".path",
492
- expected: "(null | string | undefined)",
493
- value: input.path
494
- }, errorFactory)) && (null === input.template || undefined === input.template || "string" === typeof input.template || $guard(_exceptionable, {
495
- path: _path + ".template",
496
- expected: "(null | string | undefined)",
497
- value: input.template
498
- }, errorFactory));
499
- return ("object" === typeof input && null !== input || $guard(true, {
500
- path: _path + "",
501
- expected: "CloneRule",
502
- value: input
503
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
504
- path: _path + "",
505
- expected: "CloneRule",
506
- value: input
507
- }, errorFactory);
508
- })(input, "$input", true);
509
- return input;
510
- };
511
- export const randomCloneRule = generator => {
512
- const $generator = __typia.createRandom.generator;
513
- const $pick = __typia.createRandom.pick;
514
- const $ro0 = (_recursive = false, _depth = 0) => ({
515
- domain: (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(),
516
- path: $pick([
517
- () => undefined,
518
- () => null,
519
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
520
- ])(),
521
- template: $pick([
522
- () => undefined,
523
- () => null,
524
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
525
- ])()
526
- });
527
- return $ro0();
528
- };
529
- export const assertGuardCloneRule = (input, errorFactory) => {
530
- const __is = input => {
531
- const $io0 = input => "string" === typeof input.domain && (null === input.path || undefined === input.path || "string" === typeof input.path) && (null === input.template || undefined === input.template || "string" === typeof input.template);
532
- return "object" === typeof input && null !== input && $io0(input);
533
- };
534
- if (false === __is(input))
535
- ((input, _path, _exceptionable = true) => {
536
- const $guard = __typia.createAssertGuard.guard;
537
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.domain || $guard(_exceptionable, {
538
- path: _path + ".domain",
539
- expected: "string",
540
- value: input.domain
541
- }, errorFactory)) && (null === input.path || undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
542
- path: _path + ".path",
543
- expected: "(null | string | undefined)",
544
- value: input.path
545
- }, errorFactory)) && (null === input.template || undefined === input.template || "string" === typeof input.template || $guard(_exceptionable, {
546
- path: _path + ".template",
547
- expected: "(null | string | undefined)",
548
- value: input.template
549
- }, errorFactory));
550
- return ("object" === typeof input && null !== input || $guard(true, {
551
- path: _path + "",
552
- expected: "CloneRule",
553
- value: input
554
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
555
- path: _path + "",
556
- expected: "CloneRule",
557
- value: input
558
- }, errorFactory);
559
- })(input, "$input", true);
560
- };
561
- export const stringifyCloneRule = input => {
562
- const $string = __typia.json.createStringify.string;
563
- const $so0 = input => `{${undefined === input.path ? "" : `"path":${undefined !== input.path ? null !== input.path ? $string(input.path) : "null" : undefined},`}${undefined === input.template ? "" : `"template":${undefined !== input.template ? null !== input.template ? $string(input.template) : "null" : undefined},`}"domain":${$string(input.domain)}}`;
564
- return $so0(input);
565
- };
566
- export const assertStringifyCloneRule = (input, errorFactory) => { const assert = (input, errorFactory) => {
567
- const __is = input => {
568
- const $io0 = input => "string" === typeof input.domain && (null === input.path || undefined === input.path || "string" === typeof input.path) && (null === input.template || undefined === input.template || "string" === typeof input.template);
569
- return "object" === typeof input && null !== input && $io0(input);
570
- };
571
- if (false === __is(input))
572
- ((input, _path, _exceptionable = true) => {
573
- const $guard = __typia.json.createAssertStringify.guard;
574
- const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.domain || $guard(_exceptionable, {
575
- path: _path + ".domain",
576
- expected: "string",
577
- value: input.domain
578
- }, errorFactory)) && (null === input.path || undefined === input.path || "string" === typeof input.path || $guard(_exceptionable, {
579
- path: _path + ".path",
580
- expected: "(null | string | undefined)",
581
- value: input.path
582
- }, errorFactory)) && (null === input.template || undefined === input.template || "string" === typeof input.template || $guard(_exceptionable, {
583
- path: _path + ".template",
584
- expected: "(null | string | undefined)",
585
- value: input.template
586
- }, errorFactory));
587
- return ("object" === typeof input && null !== input || $guard(true, {
588
- path: _path + "",
589
- expected: "CloneRule",
590
- value: input
591
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
592
- path: _path + "",
593
- expected: "CloneRule",
594
- value: input
595
- }, errorFactory);
596
- })(input, "$input", true);
597
- return input;
598
- }; const stringify = input => {
599
- const $string = __typia.json.createAssertStringify.string;
600
- const $so0 = input => `{${undefined === input.path ? "" : `"path":${undefined !== input.path ? null !== input.path ? $string(input.path) : "null" : undefined},`}${undefined === input.template ? "" : `"template":${undefined !== input.template ? null !== input.template ? $string(input.template) : "null" : undefined},`}"domain":${$string(input.domain)}}`;
601
- return $so0(input);
602
- }; return stringify(assert(input, errorFactory)); };
1
+ export {};
@@ -1,8 +1 @@
1
- import { type AssertionGuard as __AssertionGuard } from "typia";
2
1
  export type IsoTimestamp = string;
3
- export declare const isIsoTimestamp: (input: unknown) => input is string;
4
- export declare const assertIsoTimestamp: (input: unknown) => string;
5
- export declare const randomIsoTimestamp: () => string;
6
- export declare const assertGuardIsoTimestamp: __AssertionGuard<IsoTimestamp>;
7
- export declare const stringifyIsoTimestamp: (input: string) => string;
8
- export declare const assertStringifyIsoTimestamp: (input: unknown) => string;