@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,25 +0,0 @@
1
- import { type AssertionGuard as __AssertionGuard } from "typia";
2
- export interface BundleDomainRecords {
3
- [":bundle"]: BundleRecord;
4
- [":bundle.revisions"]: BundleRevisionsRecord;
5
- }
6
- export interface BundleRecord {
7
- user?: string;
8
- description?: string;
9
- files: Record<string, string>;
10
- }
11
- export declare const isBundleRecord: (input: unknown) => input is BundleRecord;
12
- export declare const assertBundleRecord: (input: unknown) => BundleRecord;
13
- export declare const randomBundleRecord: () => BundleRecord;
14
- export declare const assertGuardBundleRecord: __AssertionGuard<BundleRecord>;
15
- export declare const stringifyBundleRecord: (input: BundleRecord) => string;
16
- export declare const assertStringifyBundleRecord: (input: unknown) => string;
17
- export interface BundleRevisionsRecord {
18
- [revisionId: string]: BundleRecord;
19
- }
20
- export declare const isBundleRevisionsRecord: (input: unknown) => input is BundleRevisionsRecord;
21
- export declare const assertBundleRevisionsRecord: (input: unknown) => BundleRevisionsRecord;
22
- export declare const randomBundleRevisionsRecord: () => BundleRevisionsRecord;
23
- export declare const assertGuardBundleRevisionsRecord: __AssertionGuard<BundleRevisionsRecord>;
24
- export declare const stringifyBundleRevisionsRecord: (input: BundleRevisionsRecord) => string;
25
- export declare const assertStringifyBundleRevisionsRecord: (input: unknown) => string;
@@ -1,512 +0,0 @@
1
- import __typia from "typia";
2
- export const isBundleRecord = input => {
3
- const $io0 = input => (undefined === input.user || "string" === typeof input.user) && (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) && $io1(input.files));
4
- const $io1 = input => Object.keys(input).every(key => {
5
- const value = input[key];
6
- if (undefined === value)
7
- return true;
8
- return "string" === typeof value;
9
- });
10
- return "object" === typeof input && null !== input && $io0(input);
11
- };
12
- export const assertBundleRecord = (input, errorFactory) => {
13
- const __is = input => {
14
- const $io0 = input => (undefined === input.user || "string" === typeof input.user) && (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) && $io1(input.files));
15
- const $io1 = input => Object.keys(input).every(key => {
16
- const value = input[key];
17
- if (undefined === value)
18
- return true;
19
- return "string" === typeof value;
20
- });
21
- return "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) => (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
28
- path: _path + ".user",
29
- expected: "(string | undefined)",
30
- value: input.user
31
- }, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
32
- path: _path + ".description",
33
- expected: "(string | undefined)",
34
- value: input.description
35
- }, errorFactory)) && (("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) || $guard(_exceptionable, {
36
- path: _path + ".files",
37
- expected: "Record<string, string>",
38
- value: input.files
39
- }, errorFactory)) && $ao1(input.files, _path + ".files", true && _exceptionable) || $guard(_exceptionable, {
40
- path: _path + ".files",
41
- expected: "Record<string, string>",
42
- value: input.files
43
- }, errorFactory));
44
- const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
45
- const value = input[key];
46
- if (undefined === value)
47
- return true;
48
- return "string" === typeof value || $guard(_exceptionable, {
49
- path: _path + $join(key),
50
- expected: "string",
51
- value: value
52
- }, errorFactory);
53
- });
54
- return ("object" === typeof input && null !== input || $guard(true, {
55
- path: _path + "",
56
- expected: "BundleRecord",
57
- value: input
58
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
59
- path: _path + "",
60
- expected: "BundleRecord",
61
- value: input
62
- }, errorFactory);
63
- })(input, "$input", true);
64
- return input;
65
- };
66
- export const randomBundleRecord = generator => {
67
- const $generator = __typia.createRandom.generator;
68
- const $pick = __typia.createRandom.pick;
69
- const $ro0 = (_recursive = false, _depth = 0) => ({
70
- user: $pick([
71
- () => undefined,
72
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
73
- ])(),
74
- description: $pick([
75
- () => undefined,
76
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
77
- ])(),
78
- files: $ro1(_recursive, _recursive ? 1 + _depth : _depth)
79
- });
80
- const $ro1 = (_recursive = false, _depth = 0) => {
81
- const output = {};
82
- (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(), (generator?.integer ?? $generator.integer)(0, 3));
83
- return output;
84
- };
85
- return $ro0();
86
- };
87
- export const assertGuardBundleRecord = (input, errorFactory) => {
88
- const __is = input => {
89
- const $io0 = input => (undefined === input.user || "string" === typeof input.user) && (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) && $io1(input.files));
90
- const $io1 = input => Object.keys(input).every(key => {
91
- const value = input[key];
92
- if (undefined === value)
93
- return true;
94
- return "string" === typeof value;
95
- });
96
- return "object" === typeof input && null !== input && $io0(input);
97
- };
98
- if (false === __is(input))
99
- ((input, _path, _exceptionable = true) => {
100
- const $guard = __typia.createAssertGuard.guard;
101
- const $join = __typia.createAssertGuard.join;
102
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
103
- path: _path + ".user",
104
- expected: "(string | undefined)",
105
- value: input.user
106
- }, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
107
- path: _path + ".description",
108
- expected: "(string | undefined)",
109
- value: input.description
110
- }, errorFactory)) && (("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) || $guard(_exceptionable, {
111
- path: _path + ".files",
112
- expected: "Record<string, string>",
113
- value: input.files
114
- }, errorFactory)) && $ao1(input.files, _path + ".files", true && _exceptionable) || $guard(_exceptionable, {
115
- path: _path + ".files",
116
- expected: "Record<string, string>",
117
- value: input.files
118
- }, errorFactory));
119
- const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
120
- const value = input[key];
121
- if (undefined === value)
122
- return true;
123
- return "string" === typeof value || $guard(_exceptionable, {
124
- path: _path + $join(key),
125
- expected: "string",
126
- value: value
127
- }, errorFactory);
128
- });
129
- return ("object" === typeof input && null !== input || $guard(true, {
130
- path: _path + "",
131
- expected: "BundleRecord",
132
- value: input
133
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
134
- path: _path + "",
135
- expected: "BundleRecord",
136
- value: input
137
- }, errorFactory);
138
- })(input, "$input", true);
139
- };
140
- export const stringifyBundleRecord = input => {
141
- const $io1 = input => Object.keys(input).every(key => {
142
- const value = input[key];
143
- if (undefined === value)
144
- return true;
145
- return "string" === typeof value;
146
- });
147
- const $string = __typia.json.createStringify.string;
148
- const $so0 = input => `{${undefined === input.user ? "" : `"user":${undefined !== input.user ? $string(input.user) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? $string(input.description) : undefined},`}"files":${$so1(input.files)}}`;
149
- const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
150
- return ""; return `${JSON.stringify(key)}:${$string(value)}`; }).filter(str => "" !== str).join(",")}}`;
151
- return $so0(input);
152
- };
153
- export const assertStringifyBundleRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
154
- const __is = input => {
155
- const $io0 = input => (undefined === input.user || "string" === typeof input.user) && (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) && $io1(input.files));
156
- const $io1 = input => Object.keys(input).every(key => {
157
- const value = input[key];
158
- if (undefined === value)
159
- return true;
160
- return "string" === typeof value;
161
- });
162
- return "object" === typeof input && null !== input && $io0(input);
163
- };
164
- if (false === __is(input))
165
- ((input, _path, _exceptionable = true) => {
166
- const $guard = __typia.json.createAssertStringify.guard;
167
- const $join = __typia.json.createAssertStringify.join;
168
- const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
169
- path: _path + ".user",
170
- expected: "(string | undefined)",
171
- value: input.user
172
- }, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
173
- path: _path + ".description",
174
- expected: "(string | undefined)",
175
- value: input.description
176
- }, errorFactory)) && (("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) || $guard(_exceptionable, {
177
- path: _path + ".files",
178
- expected: "Record<string, string>",
179
- value: input.files
180
- }, errorFactory)) && $ao1(input.files, _path + ".files", true && _exceptionable) || $guard(_exceptionable, {
181
- path: _path + ".files",
182
- expected: "Record<string, string>",
183
- value: input.files
184
- }, errorFactory));
185
- const $ao1 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
186
- const value = input[key];
187
- if (undefined === value)
188
- return true;
189
- return "string" === typeof value || $guard(_exceptionable, {
190
- path: _path + $join(key),
191
- expected: "string",
192
- value: value
193
- }, errorFactory);
194
- });
195
- return ("object" === typeof input && null !== input || $guard(true, {
196
- path: _path + "",
197
- expected: "BundleRecord",
198
- value: input
199
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
200
- path: _path + "",
201
- expected: "BundleRecord",
202
- value: input
203
- }, errorFactory);
204
- })(input, "$input", true);
205
- return input;
206
- }; const stringify = input => {
207
- const $io1 = input => Object.keys(input).every(key => {
208
- const value = input[key];
209
- if (undefined === value)
210
- return true;
211
- return "string" === typeof value;
212
- });
213
- const $string = __typia.json.createAssertStringify.string;
214
- const $so0 = input => `{${undefined === input.user ? "" : `"user":${undefined !== input.user ? $string(input.user) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? $string(input.description) : undefined},`}"files":${$so1(input.files)}}`;
215
- const $so1 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
216
- return ""; return `${JSON.stringify(key)}:${$string(value)}`; }).filter(str => "" !== str).join(",")}}`;
217
- return $so0(input);
218
- }; return stringify(assert(input, errorFactory)); };
219
- export const isBundleRevisionsRecord = input => {
220
- const $io0 = input => Object.keys(input).every(key => {
221
- const value = input[key];
222
- if (undefined === value)
223
- return true;
224
- return "object" === typeof value && null !== value && $io1(value);
225
- });
226
- const $io1 = input => (undefined === input.user || "string" === typeof input.user) && (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) && $io2(input.files));
227
- const $io2 = input => Object.keys(input).every(key => {
228
- const value = input[key];
229
- if (undefined === value)
230
- return true;
231
- return "string" === typeof value;
232
- });
233
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
234
- };
235
- export const assertBundleRevisionsRecord = (input, errorFactory) => {
236
- const __is = input => {
237
- const $io0 = input => Object.keys(input).every(key => {
238
- const value = input[key];
239
- if (undefined === value)
240
- return true;
241
- return "object" === typeof value && null !== value && $io1(value);
242
- });
243
- const $io1 = input => (undefined === input.user || "string" === typeof input.user) && (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) && $io2(input.files));
244
- const $io2 = input => Object.keys(input).every(key => {
245
- const value = input[key];
246
- if (undefined === value)
247
- return true;
248
- return "string" === typeof value;
249
- });
250
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
251
- };
252
- if (false === __is(input))
253
- ((input, _path, _exceptionable = true) => {
254
- const $guard = __typia.createAssert.guard;
255
- const $join = __typia.createAssert.join;
256
- const $ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
257
- const value = input[key];
258
- if (undefined === value)
259
- return true;
260
- return ("object" === typeof value && null !== value || $guard(_exceptionable, {
261
- path: _path + $join(key),
262
- expected: "BundleRecord",
263
- value: value
264
- }, errorFactory)) && $ao1(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
265
- path: _path + $join(key),
266
- expected: "BundleRecord",
267
- value: value
268
- }, errorFactory);
269
- });
270
- const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
271
- path: _path + ".user",
272
- expected: "(string | undefined)",
273
- value: input.user
274
- }, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
275
- path: _path + ".description",
276
- expected: "(string | undefined)",
277
- value: input.description
278
- }, errorFactory)) && (("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) || $guard(_exceptionable, {
279
- path: _path + ".files",
280
- expected: "Record<string, string>",
281
- value: input.files
282
- }, errorFactory)) && $ao2(input.files, _path + ".files", true && _exceptionable) || $guard(_exceptionable, {
283
- path: _path + ".files",
284
- expected: "Record<string, string>",
285
- value: input.files
286
- }, errorFactory));
287
- const $ao2 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
288
- const value = input[key];
289
- if (undefined === value)
290
- return true;
291
- return "string" === typeof value || $guard(_exceptionable, {
292
- path: _path + $join(key),
293
- expected: "string",
294
- value: value
295
- }, errorFactory);
296
- });
297
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
298
- path: _path + "",
299
- expected: "BundleRevisionsRecord",
300
- value: input
301
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
302
- path: _path + "",
303
- expected: "BundleRevisionsRecord",
304
- value: input
305
- }, errorFactory);
306
- })(input, "$input", true);
307
- return input;
308
- };
309
- export const randomBundleRevisionsRecord = generator => {
310
- const $generator = __typia.createRandom.generator;
311
- const $pick = __typia.createRandom.pick;
312
- const $ro0 = (_recursive = false, _depth = 0) => {
313
- const output = {};
314
- (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = $ro1(_recursive, _recursive ? 1 + _depth : _depth), (generator?.integer ?? $generator.integer)(0, 3));
315
- return output;
316
- };
317
- const $ro1 = (_recursive = false, _depth = 0) => ({
318
- user: $pick([
319
- () => undefined,
320
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
321
- ])(),
322
- description: $pick([
323
- () => undefined,
324
- () => (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()
325
- ])(),
326
- files: $ro2(_recursive, _recursive ? 1 + _depth : _depth)
327
- });
328
- const $ro2 = (_recursive = false, _depth = 0) => {
329
- const output = {};
330
- (generator?.array ?? $generator.array)(() => output[(generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)()] = (generator?.customs ?? $generator.customs)?.string?.([]) ?? (generator?.string ?? $generator.string)(), (generator?.integer ?? $generator.integer)(0, 3));
331
- return output;
332
- };
333
- return $ro0();
334
- };
335
- export const assertGuardBundleRevisionsRecord = (input, errorFactory) => {
336
- const __is = input => {
337
- const $io0 = input => Object.keys(input).every(key => {
338
- const value = input[key];
339
- if (undefined === value)
340
- return true;
341
- return "object" === typeof value && null !== value && $io1(value);
342
- });
343
- const $io1 = input => (undefined === input.user || "string" === typeof input.user) && (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) && $io2(input.files));
344
- const $io2 = input => Object.keys(input).every(key => {
345
- const value = input[key];
346
- if (undefined === value)
347
- return true;
348
- return "string" === typeof value;
349
- });
350
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
351
- };
352
- if (false === __is(input))
353
- ((input, _path, _exceptionable = true) => {
354
- const $guard = __typia.createAssertGuard.guard;
355
- const $join = __typia.createAssertGuard.join;
356
- const $ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
357
- const value = input[key];
358
- if (undefined === value)
359
- return true;
360
- return ("object" === typeof value && null !== value || $guard(_exceptionable, {
361
- path: _path + $join(key),
362
- expected: "BundleRecord",
363
- value: value
364
- }, errorFactory)) && $ao1(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
365
- path: _path + $join(key),
366
- expected: "BundleRecord",
367
- value: value
368
- }, errorFactory);
369
- });
370
- const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
371
- path: _path + ".user",
372
- expected: "(string | undefined)",
373
- value: input.user
374
- }, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
375
- path: _path + ".description",
376
- expected: "(string | undefined)",
377
- value: input.description
378
- }, errorFactory)) && (("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) || $guard(_exceptionable, {
379
- path: _path + ".files",
380
- expected: "Record<string, string>",
381
- value: input.files
382
- }, errorFactory)) && $ao2(input.files, _path + ".files", true && _exceptionable) || $guard(_exceptionable, {
383
- path: _path + ".files",
384
- expected: "Record<string, string>",
385
- value: input.files
386
- }, errorFactory));
387
- const $ao2 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
388
- const value = input[key];
389
- if (undefined === value)
390
- return true;
391
- return "string" === typeof value || $guard(_exceptionable, {
392
- path: _path + $join(key),
393
- expected: "string",
394
- value: value
395
- }, errorFactory);
396
- });
397
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
398
- path: _path + "",
399
- expected: "BundleRevisionsRecord",
400
- value: input
401
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
402
- path: _path + "",
403
- expected: "BundleRevisionsRecord",
404
- value: input
405
- }, errorFactory);
406
- })(input, "$input", true);
407
- };
408
- export const stringifyBundleRevisionsRecord = input => {
409
- const $io1 = input => (undefined === input.user || "string" === typeof input.user) && (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) && $io2(input.files));
410
- const $io2 = input => Object.keys(input).every(key => {
411
- const value = input[key];
412
- if (undefined === value)
413
- return true;
414
- return "string" === typeof value;
415
- });
416
- const $string = __typia.json.createStringify.string;
417
- const $so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
418
- return ""; return `${JSON.stringify(key)}:${$so1(value)}`; }).filter(str => "" !== str).join(",")}}`;
419
- const $so1 = input => `{${undefined === input.user ? "" : `"user":${undefined !== input.user ? $string(input.user) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? $string(input.description) : undefined},`}"files":${$so2(input.files)}}`;
420
- const $so2 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
421
- return ""; return `${JSON.stringify(key)}:${$string(value)}`; }).filter(str => "" !== str).join(",")}}`;
422
- return $so0(input);
423
- };
424
- export const assertStringifyBundleRevisionsRecord = (input, errorFactory) => { const assert = (input, errorFactory) => {
425
- const __is = input => {
426
- const $io0 = input => Object.keys(input).every(key => {
427
- const value = input[key];
428
- if (undefined === value)
429
- return true;
430
- return "object" === typeof value && null !== value && $io1(value);
431
- });
432
- const $io1 = input => (undefined === input.user || "string" === typeof input.user) && (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) && $io2(input.files));
433
- const $io2 = input => Object.keys(input).every(key => {
434
- const value = input[key];
435
- if (undefined === value)
436
- return true;
437
- return "string" === typeof value;
438
- });
439
- return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
440
- };
441
- if (false === __is(input))
442
- ((input, _path, _exceptionable = true) => {
443
- const $guard = __typia.json.createAssertStringify.guard;
444
- const $join = __typia.json.createAssertStringify.join;
445
- const $ao0 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
446
- const value = input[key];
447
- if (undefined === value)
448
- return true;
449
- return ("object" === typeof value && null !== value || $guard(_exceptionable, {
450
- path: _path + $join(key),
451
- expected: "BundleRecord",
452
- value: value
453
- }, errorFactory)) && $ao1(value, _path + $join(key), true && _exceptionable) || $guard(_exceptionable, {
454
- path: _path + $join(key),
455
- expected: "BundleRecord",
456
- value: value
457
- }, errorFactory);
458
- });
459
- const $ao1 = (input, _path, _exceptionable = true) => (undefined === input.user || "string" === typeof input.user || $guard(_exceptionable, {
460
- path: _path + ".user",
461
- expected: "(string | undefined)",
462
- value: input.user
463
- }, errorFactory)) && (undefined === input.description || "string" === typeof input.description || $guard(_exceptionable, {
464
- path: _path + ".description",
465
- expected: "(string | undefined)",
466
- value: input.description
467
- }, errorFactory)) && (("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) || $guard(_exceptionable, {
468
- path: _path + ".files",
469
- expected: "Record<string, string>",
470
- value: input.files
471
- }, errorFactory)) && $ao2(input.files, _path + ".files", true && _exceptionable) || $guard(_exceptionable, {
472
- path: _path + ".files",
473
- expected: "Record<string, string>",
474
- value: input.files
475
- }, errorFactory));
476
- const $ao2 = (input, _path, _exceptionable = true) => false === _exceptionable || Object.keys(input).every(key => {
477
- const value = input[key];
478
- if (undefined === value)
479
- return true;
480
- return "string" === typeof value || $guard(_exceptionable, {
481
- path: _path + $join(key),
482
- expected: "string",
483
- value: value
484
- }, errorFactory);
485
- });
486
- return ("object" === typeof input && null !== input && false === Array.isArray(input) || $guard(true, {
487
- path: _path + "",
488
- expected: "BundleRevisionsRecord",
489
- value: input
490
- }, errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
491
- path: _path + "",
492
- expected: "BundleRevisionsRecord",
493
- value: input
494
- }, errorFactory);
495
- })(input, "$input", true);
496
- return input;
497
- }; const stringify = input => {
498
- const $io1 = input => (undefined === input.user || "string" === typeof input.user) && (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.files && null !== input.files && false === Array.isArray(input.files) && $io2(input.files));
499
- const $io2 = input => Object.keys(input).every(key => {
500
- const value = input[key];
501
- if (undefined === value)
502
- return true;
503
- return "string" === typeof value;
504
- });
505
- const $string = __typia.json.createAssertStringify.string;
506
- const $so0 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
507
- return ""; return `${JSON.stringify(key)}:${$so1(value)}`; }).filter(str => "" !== str).join(",")}}`;
508
- const $so1 = input => `{${undefined === input.user ? "" : `"user":${undefined !== input.user ? $string(input.user) : undefined},`}${undefined === input.description ? "" : `"description":${undefined !== input.description ? $string(input.description) : undefined},`}"files":${$so2(input.files)}}`;
509
- const $so2 = input => `{${Object.entries(input).map(([key, value]) => { if (undefined === value)
510
- return ""; return `${JSON.stringify(key)}:${$string(value)}`; }).filter(str => "" !== str).join(",")}}`;
511
- return $so0(input);
512
- }; return stringify(assert(input, errorFactory)); };
@@ -1,14 +0,0 @@
1
- import { type AssertionGuard as __AssertionGuard } from "typia";
2
- import { CloneRule } from '../common/index.js';
3
- export interface CloneDomainRecords {
4
- ":clone": CloneDomainCloneRecord;
5
- }
6
- export interface CloneDomainCloneRecord {
7
- rules: CloneRule[];
8
- }
9
- export declare const isCloneDomainCloneRecord: (input: unknown) => input is CloneDomainCloneRecord;
10
- export declare const assertCloneDomainCloneRecord: (input: unknown) => CloneDomainCloneRecord;
11
- export declare const randomCloneDomainCloneRecord: () => CloneDomainCloneRecord;
12
- export declare const assertGuardCloneDomainCloneRecord: __AssertionGuard<CloneDomainCloneRecord>;
13
- export declare const stringifyCloneDomainCloneRecord: (input: CloneDomainCloneRecord) => string;
14
- export declare const assertStringifyCloneDomainCloneRecord: (input: unknown) => string;